From 6901daf93af5b152d9f4baf3550b7a46ca841309 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Fri, 21 Jan 2022 11:58:49 +0200 Subject: [PATCH] Initial commit --- .gitignore | 35 + package.json | 18 + src/app/app-routing.module.d.ts | 7 + src/app/app.component.d.ts | 25 + src/app/app.module.d.ts | 20 + src/app/core/api/alarm-data-subscription.d.ts | 37 + src/app/core/api/alarm-data.service.d.ts | 24 + src/app/core/api/alias-controller.d.ts | 54 + src/app/core/api/data-aggregator.d.ts | 38 + .../core/api/entity-data-subscription.d.ts | 85 ++ src/app/core/api/entity-data.service.d.ts | 43 + src/app/core/api/public-api.d.ts | 6 + src/app/core/api/widget-api.models.d.ts | 247 +++++ src/app/core/api/widget-subscription.d.ts | 133 +++ src/app/core/auth/auth.actions.d.ts | 46 + src/app/core/auth/auth.models.d.ts | 16 + src/app/core/auth/auth.reducer.d.ts | 4 + src/app/core/auth/auth.selectors.d.ts | 13 + src/app/core/auth/auth.service.d.ts | 80 ++ src/app/core/core.module.d.ts | 20 + src/app/core/core.state.d.ts | 15 + src/app/core/guards/auth.guard.d.ts | 28 + .../core/guards/confirm-on-exit.guard.d.ts | 22 + src/app/core/http/admin.service.d.ts | 18 + src/app/core/http/alarm.service.d.ts | 23 + src/app/core/http/asset.service.d.ts | 32 + src/app/core/http/attribute.service.d.ts | 20 + src/app/core/http/audit-log.service.d.ts | 18 + .../http/component-descriptor.service.d.ts | 17 + src/app/core/http/customer.service.d.ts | 17 + src/app/core/http/dashboard.service.d.ts | 40 + src/app/core/http/device-profile.service.d.ts | 34 + src/app/core/http/device.service.d.ts | 44 + src/app/core/http/edge.service.d.ts | 33 + .../core/http/entity-relation.service.d.ts | 24 + src/app/core/http/entity-view.service.d.ts | 28 + src/app/core/http/entity.service.d.ts | 97 ++ src/app/core/http/event.service.d.ts | 17 + src/app/core/http/http-utils.d.ts | 18 + src/app/core/http/oauth2.service.d.ts | 15 + src/app/core/http/ota-package.service.d.ts | 30 + src/app/core/http/public-api.d.ts | 21 + src/app/core/http/queue.service.d.ts | 12 + src/app/core/http/resource.service.d.ts | 19 + src/app/core/http/rule-chain.service.d.ts | 56 + src/app/core/http/tenant-profile.service.d.ts | 22 + src/app/core/http/tenant.service.d.ts | 19 + src/app/core/http/ui-settings.service.d.ts | 11 + src/app/core/http/user.service.d.ts | 22 + src/app/core/http/widget.service.d.ts | 53 + .../interceptors/global-http-interceptor.d.ts | 34 + .../core/interceptors/interceptor-config.d.ts | 6 + .../interceptors/interceptor-http-params.d.ts | 8 + src/app/core/interceptors/load.actions.d.ts | 12 + src/app/core/interceptors/load.models.d.ts | 3 + src/app/core/interceptors/load.reducer.d.ts | 4 + src/app/core/interceptors/load.selectors.d.ts | 7 + .../local-storage/local-storage.service.d.ts | 12 + src/app/core/meta-reducers/debug.reducer.d.ts | 3 + ...init-state-from-local-storage.reducer.d.ts | 3 + .../notification/notification.actions.d.ts | 17 + .../notification/notification.effects.d.ts | 13 + .../notification/notification.models.d.ts | 20 + .../notification/notification.reducer.d.ts | 4 + src/app/core/operator/enterZone.d.ts | 14 + src/app/core/public-api.d.ts | 8 + src/app/core/schema-utils.d.ts | 6 + src/app/core/services/broadcast.models.d.ts | 8 + src/app/core/services/broadcast.service.d.ts | 10 + .../services/dashboard-utils.service.d.ts | 45 + src/app/core/services/dialog.service.d.ts | 20 + .../dynamic-component-factory.service.d.ts | 20 + src/app/core/services/help.service.d.ts | 20 + .../core/services/item-buffer.service.d.ts | 81 ++ src/app/core/services/menu.models.d.ts | 21 + src/app/core/services/menu.service.d.ts | 24 + src/app/core/services/mobile.service.d.ts | 31 + .../core/services/notification.service.d.ts | 14 + src/app/core/services/public-api.d.ts | 16 + src/app/core/services/raf.service.d.ts | 13 + src/app/core/services/resources.service.d.ts | 24 + .../script/node-script-test.service.d.ts | 13 + src/app/core/services/time.service.d.ts | 32 + src/app/core/services/title.service.d.ts | 12 + src/app/core/services/utils.service.d.ts | 52 + src/app/core/services/window.service.d.ts | 16 + src/app/core/settings/settings.actions.d.ts | 14 + src/app/core/settings/settings.effects.d.ts | 29 + src/app/core/settings/settings.models.d.ts | 3 + src/app/core/settings/settings.reducer.d.ts | 4 + src/app/core/settings/settings.selectors.d.ts | 5 + src/app/core/settings/settings.utils.d.ts | 2 + .../translate/missing-translate-handler.d.ts | 4 + .../translate/translate-default-compiler.d.ts | 11 + .../translate/translate-default-parser.d.ts | 11 + src/app/core/utils.d.ts | 46 + .../core/ws/telemetry-websocket.service.d.ts | 46 + src/app/modules/common/modules-map.d.ts | 8 + .../modules/common/modules-map.models.d.ts | 3 + src/app/modules/common/modules-map.ts | 596 +++++++++++ .../dashboard/dashboard-pages.module.d.ts | 11 + .../dashboard-pages.routing.module.d.ts | 21 + .../dashboard/dashboard-routing.module.d.ts | 8 + .../alarm/alarm-details-dialog.component.d.ts | 47 + .../components/alarm/alarm-table-config.d.ts | 24 + .../alarm/alarm-table-header.component.d.ts | 17 + .../alarm/alarm-table.component.d.ts | 28 + ...aliases-entity-autocomplete.component.d.ts | 43 + ...aliases-entity-select-panel.component.d.ts | 21 + .../aliases-entity-select.component.d.ts | 36 + .../alias/entity-alias-dialog.component.d.ts | 46 + .../alias/entity-alias-select.component.d.ts | 60 ++ .../entity-alias-select.component.models.d.ts | 6 + .../entity-aliases-dialog.component.d.ts | 59 ++ .../add-attribute-dialog.component.d.ts | 34 + ...-widget-to-dashboard-dialog.component.d.ts | 45 + .../attribute/attribute-table.component.d.ts | 97 ++ .../edit-attribute-value-panel.component.d.ts | 29 + .../audit-log-details-dialog.component.d.ts | 31 + .../audit-log/audit-log-table-config.d.ts | 25 + .../audit-log/audit-log-table.component.d.ts | 40 + .../add-widget-dialog.component.d.ts | 40 + .../dashboard-image-dialog.component.d.ts | 43 + .../dashboard-page.component.d.ts | 200 ++++ .../dashboard-page/dashboard-page.models.d.ts | 66 ++ .../dashboard-settings-dialog.component.d.ts | 43 + .../dashboard-state.component.d.ts | 32 + .../dashboard-toolbar.component.d.ts | 12 + .../dashboard-widget-select.component.d.ts | 44 + .../dashboard-page/edit-widget.component.d.ts | 31 + .../layout/dashboard-layout.component.d.ts | 60 ++ .../dashboard-page/layout/layout.models.d.ts | 8 + ...ge-dashboard-layouts-dialog.component.d.ts | 39 + .../dashboard-state-dialog.component.d.ts | 48 + .../default-state-controller.component.d.ts | 52 + .../entity-state-controller.component.d.ts | 54 + ...age-dashboard-states-dialog.component.d.ts | 67 ++ ...hboard-states-dialog.component.models.d.ts | 25 + .../states/state-controller.component.d.ts | 73 ++ .../states/state-controller.models.d.ts | 17 + .../states/states-component.directive.d.ts | 32 + .../states/states-controller.module.d.ts | 15 + .../states/states-controller.service.d.ts | 26 + .../widget-types-panel.component.d.ts | 20 + .../dashboard/dashboard.component.d.ts | 118 +++ ...select-target-layout-dialog.component.d.ts | 19 + .../select-target-state-dialog.component.d.ts | 37 + .../components/details-panel.component.d.ts | 38 + .../copy-device-credentials.component.d.ts | 33 + ...ce-credentials-lwm2m-server.component.d.ts | 27 + .../device-credentials-lwm2m.component.d.ts | 29 + ...vice-credentials-mqtt-basic.component.d.ts | 23 + .../device/device-credentials.component.d.ts | 34 + .../device/device-credentials.module.d.ts | 13 + .../edge/edge-downlink-table-config.d.ts | 35 + .../edge-downlink-table-header.component.d.ts | 13 + .../edge/edge-downlink-table.component.d.ts | 35 + .../entity/add-entity-dialog.component.d.ts | 41 + .../entity/contact-based.component.d.ts | 25 + .../entity/entities-table.component.d.ts | 100 ++ .../entity/entity-details-page.component.d.ts | 41 + .../entity-details-panel.component.d.ts | 65 ++ .../entity/entity-filter-view.component.d.ts | 16 + .../entity/entity-filter.component.d.ts | 38 + .../entity/entity-table-header.component.d.ts | 19 + .../entity/entity-tabs.component.d.ts | 48 + .../components/entity/entity.component.d.ts | 39 + .../event/event-content-dialog.component.d.ts | 31 + .../event/event-filter-panel.component.d.ts | 36 + .../components/event/event-table-config.d.ts | 44 + .../event/event-table-header.component.d.ts | 15 + .../event/event-table.component.d.ts | 40 + .../boolean-filter-predicate.component.d.ts | 26 + ...lex-filter-predicate-dialog.component.d.ts | 32 + .../complex-filter-predicate.component.d.ts | 28 + .../filter/filter-component.models.d.ts | 11 + .../filter/filter-dialog.component.d.ts | 40 + .../filter-predicate-list.component.d.ts | 37 + .../filter-predicate-value.component.d.ts | 35 + .../filter/filter-predicate.component.d.ts | 27 + .../filter/filter-select.component.d.ts | 56 + .../filter-select.component.models.d.ts | 5 + .../filter/filter-text.component.d.ts | 32 + .../filter-user-info-dialog.component.d.ts | 37 + .../filter/filter-user-info.component.d.ts | 24 + .../filter/filters-dialog.component.d.ts | 55 + .../filter/filters-edit-panel.component.d.ts | 23 + .../filter/filters-edit.component.d.ts | 37 + .../filter/key-filter-dialog.component.d.ts | 61 ++ .../filter/key-filter-list.component.d.ts | 35 + .../numeric-filter-predicate.component.d.ts | 27 + .../string-filter-predicate.component.d.ts | 26 + .../filter/user-filter-dialog.component.d.ts | 36 + .../components/home-components.module.d.ts | 130 +++ .../import-dialog-csv.component.d.ts | 62 ++ .../import-dialog.component.d.ts | 33 + .../import-export/import-export.models.d.ts | 84 ++ .../import-export/import-export.service.d.ts | 91 ++ .../table-columns-assignment.component.d.ts | 51 + .../add-device-profile-dialog.component.d.ts | 58 ++ ...rm-duration-predicate-value.component.d.ts | 30 + ...alarm-rule-condition-dialog.component.d.ts | 45 + .../alarm/alarm-rule-condition.component.d.ts | 36 + .../profile/alarm/alarm-rule.component.d.ts | 37 + .../alarm-schedule-dialog.component.d.ts | 37 + .../alarm/alarm-schedule-info.component.d.ts | 25 + .../alarm/alarm-schedule.component.d.ts | 39 + .../alarm/create-alarm-rules.component.d.ts | 42 + .../alarm/device-profile-alarm.component.d.ts | 41 + .../device-profile-alarms.component.d.ts | 39 + .../edit-alarm-details-dialog.component.d.ts | 35 + ...device-profile-autocomplete.component.d.ts | 69 ++ .../device-profile-dialog.component.d.ts | 37 + ...ile-provision-configuration.component.d.ts | 32 + .../profile/device-profile.component.d.ts | 44 + ...ile-transport-configuration.component.d.ts | 36 + .../common/device-profile-common.module.d.ts | 10 + .../common/power-mode-setting.component.d.ts | 17 + .../common/time-unit-select.component.d.ts | 32 + ...evice-profile-configuration.component.d.ts | 25 + ...ile-transport-configuration.component.d.ts | 25 + ...evice-profile-configuration.component.d.ts | 29 + ...ile-transport-configuration.component.d.ts | 28 + .../lwm2m-attributes-dialog.component.d.ts | 34 + .../lwm2m-attributes-key-list.component.d.ts | 43 + .../lwm2m/lwm2m-attributes.component.d.ts | 33 + ...ap-add-config-server-dialog.component.d.ts | 22 + ...2m-bootstrap-config-servers.component.d.ts | 45 + .../lwm2m-device-config-server.component.d.ts | 41 + ...ile-transport-configuration.component.d.ts | 59 ++ ...object-add-instances-dialog.component.d.ts | 28 + ...m-object-add-instances-list.component.d.ts | 29 + .../lwm2m/lwm2m-object-list.component.d.ts | 42 + ...ve-attr-telemetry-instances.component.d.ts | 39 + ...ve-attr-telemetry-resources.component.d.ts | 31 + ...wm2m-observe-attr-telemetry.component.d.ts | 54 + .../lwm2m-profile-components.module.d.ts | 22 + .../lwm2m/lwm2m-profile-config.models.d.ts | 148 +++ ...ile-transport-configuration.component.d.ts | 34 + ...rofile-communication-config.component.d.ts | 37 + ...snmp-device-profile-mapping.component.d.ts | 30 + ...ile-transport-configuration.component.d.ts | 32 + .../snmp-device-profile-transport.module.d.ts | 11 + ...tenant-profile-autocomplete.component.d.ts | 55 + .../tenant-profile-data.component.d.ts | 25 + .../tenant-profile-dialog.component.d.ts | 37 + .../profile/tenant-profile.component.d.ts | 26 + ...enant-profile-configuration.component.d.ts | 25 + ...enant-profile-configuration.component.d.ts | 27 + .../modules/home/components/public-api.d.ts | 1 + .../relation/relation-dialog.component.d.ts | 40 + .../relation/relation-filters.component.d.ts | 30 + .../relation/relation-table.component.d.ts | 61 ++ .../rule-chain-autocomplete.component.d.ts | 54 + .../shared-home-components.module.d.ts | 9 + ...-sns-provider-configuration.component.d.ts | 25 + .../sms-provider-configuration.component.d.ts | 29 + ...-sms-provider-configuration.component.d.ts | 26 + src/app/modules/home/components/tokens.d.ts | 6 + ...custom-action-pretty-editor.component.d.ts | 30 + ...ction-pretty-resources-tabs.component.d.ts | 47 + .../widget/action/custom-action.models.d.ts | 3 + .../manage-widget-actions.component.d.ts | 61 ++ ...anage-widget-actions.component.models.d.ts | 45 + .../mobile-action-editor.component.d.ts | 37 + .../action/mobile-action-editor.models.d.ts | 9 + .../widget-action-dialog.component.d.ts | 87 ++ .../data-key-config-dialog.component.d.ts | 37 + .../widget/data-key-config.component.d.ts | 70 ++ .../widget/data-keys.component.d.ts | 96 ++ .../widget/data-keys.component.models.d.ts | 7 + .../custom-dialog-container.component.d.ts | 26 + .../dialog/custom-dialog.component.d.ts | 25 + .../widget/dialog/custom-dialog.service.d.ts | 20 + .../dialog/embed-dashboard-dialog-token.d.ts | 3 + .../embed-dashboard-dialog.component.d.ts | 33 + .../widget/dynamic-widget.component.d.ts | 33 + .../widget/legend-config.component.d.ts | 29 + .../components/widget/legend.component.d.ts | 16 + .../lib/alarm-filter-panel.component.d.ts | 33 + .../lib/alarms-table-widget.component.d.ts | 156 +++ .../widget/lib/analogue-compass.d.ts | 13 + .../widget/lib/analogue-compass.models.d.ts | 23 + .../widget/lib/analogue-gauge.models.d.ts | 60 ++ .../widget/lib/analogue-linear-gauge.d.ts | 13 + .../lib/analogue-linear-gauge.models.d.ts | 11 + .../widget/lib/analogue-radial-gauge.d.ts | 13 + .../lib/analogue-radial-gauge.models.d.ts | 8 + .../widget/lib/canvas-digital-gauge.d.ts | 96 ++ .../date-range-navigator.component.d.ts | 65 ++ .../date-range-navigator.models.d.ts | 29 + .../components/widget/lib/digital-gauge.d.ts | 26 + .../widget/lib/digital-gauge.models.d.ts | 61 ++ .../lib/display-columns-panel.component.d.ts | 16 + .../lib/edges-overview-widget.component.d.ts | 39 + .../lib/edges-overview-widget.models.d.ts | 27 + .../entities-hierarchy-widget.component.d.ts | 60 ++ .../lib/entities-hierarchy-widget.models.d.ts | 51 + .../lib/entities-table-widget.component.d.ts | 121 +++ .../components/widget/lib/flot-widget.d.ts | 95 ++ .../widget/lib/flot-widget.models.d.ts | 192 ++++ .../lib/gateway/gateway-form.component.d.ts | 76 ++ .../lib/gateway/gateway-form.models.d.ts | 127 +++ .../lib/json-input-widget.component.d.ts | 55 + .../widget/lib/maps/common-maps-utils.d.ts | 34 + .../select-entity-dialog.component.d.ts | 23 + .../widget/lib/maps/leaflet-map.d.ts | 90 ++ .../widget/lib/maps/map-models.d.ts | 224 ++++ .../widget/lib/maps/map-widget.interface.d.ts | 14 + .../widget/lib/maps/map-widget2.d.ts | 39 + .../widget/lib/maps/maps-utils.d.ts | 6 + .../components/widget/lib/maps/markers.d.ts | 31 + .../components/widget/lib/maps/polygon.d.ts | 22 + .../components/widget/lib/maps/polyline.d.ts | 16 + .../widget/lib/maps/providers/google-map.d.ts | 9 + .../widget/lib/maps/providers/here-map.d.ts | 6 + .../widget/lib/maps/providers/image-map.d.ts | 31 + .../widget/lib/maps/providers/index.d.ts | 5 + .../lib/maps/providers/openstreet-map.d.ts | 6 + .../lib/maps/providers/tencent-map.d.ts | 6 + .../components/widget/lib/maps/schemes.d.ts | 974 ++++++++++++++++++ .../widget/lib/markdown-widget.component.d.ts | 33 + .../lib/multiple-input-widget.component.d.ts | 134 +++ .../lib/navigation-card-widget.component.d.ts | 28 + .../navigation-cards-widget.component.d.ts | 35 + .../lib/photo-camera-input.component.d.ts | 70 ++ .../widget/lib/qrcode-widget.component.d.ts | 34 + .../widget/lib/rpc/knob.component.d.ts | 83 ++ .../lib/rpc/led-indicator.component.d.ts | 64 ++ .../rpc/persistent-add-dialog.component.d.ts | 26 + .../persistent-details-dialog.component.d.ts | 42 + .../persistent-filter-panel.component.d.ts | 26 + .../lib/rpc/persistent-table.component.d.ts | 104 ++ .../lib/rpc/round-switch.component.d.ts | 65 ++ .../widget/lib/rpc/rpc-widgets.module.d.ts | 16 + .../widget/lib/rpc/switch.component.d.ts | 72 ++ .../widget/lib/settings.models.d.ts | 12 + .../widget/lib/table-widget.models.d.ts | 100 ++ .../timeseries-table-widget.component.d.ts | 149 +++ .../trip-animation.component.d.ts | 51 + .../widget/widget-component.service.d.ts | 45 + .../widget/widget-components.module.d.ts | 28 + .../widget/widget-config.component.d.ts | 164 +++ .../widget-config.component.models.d.ts | 5 + .../widget/widget-container.component.d.ts | 58 ++ .../components/widget/widget.component.d.ts | 139 +++ .../device-wizard-dialog.component.d.ts | 68 ++ ...entities-to-customer-dialog.component.d.ts | 45 + ...add-entities-to-edge-dialog.component.d.ts | 48 + .../assign-to-customer-dialog.component.d.ts | 44 + .../home/dialogs/home-dialogs.module.d.ts | 11 + .../home/dialogs/home-dialogs.service.d.ts | 12 + src/app/modules/home/home-routing.module.d.ts | 8 + src/app/modules/home/home.component.d.ts | 46 + src/app/modules/home/home.module.d.ts | 13 + .../home/menu/menu-link.component.d.ts | 10 + .../home/menu/menu-toggle.component.d.ts | 15 + .../home/menu/side-menu.component.d.ts | 13 + .../modules/home/models/contact.models.d.ts | 21 + .../models/dashboard-component.models.d.ts | 144 +++ .../datasource/attribute-datasource.d.ts | 32 + .../models/datasource/entity-datasource.d.ts | 31 + .../datasource/relation-datasource.d.ts | 27 + .../entity/entities-table-config.models.d.ts | 154 +++ .../entity/entity-component.models.d.ts | 10 + .../entity-details-page-component.models.d.ts | 3 + .../entity/entity-table-component.models.d.ts | 65 ++ .../models/searchable-component.models.d.ts | 4 + src/app/modules/home/models/services.map.d.ts | 2 + .../home/models/widget-component.models.d.ts | 203 ++++ .../pages/admin/admin-routing.module.d.ts | 17 + .../home/pages/admin/admin.module.d.ts | 18 + .../admin/general-settings.component.d.ts | 25 + .../pages/admin/home-settings.component.d.ts | 23 + .../pages/admin/mail-server.component.d.ts | 36 + .../admin/oauth2-settings.component.d.ts | 83 ++ ...esources-library-table-config.resolve.d.ts | 29 + .../resource/resources-library.component.d.ts | 33 + .../admin/security-settings.component.d.ts | 25 + .../admin/send-test-sms-dialog.component.d.ts | 32 + .../pages/admin/sms-provider.component.d.ts | 28 + .../api-usage/api-usage-routing.module.d.ts | 7 + .../pages/api-usage/api-usage.component.d.ts | 14 + .../pages/api-usage/api-usage.module.d.ts | 11 + .../pages/asset/asset-routing.module.d.ts | 7 + .../asset/asset-table-header.component.d.ts | 14 + .../pages/asset/asset-tabs.component.d.ts | 12 + .../home/pages/asset/asset.component.d.ts | 29 + .../home/pages/asset/asset.module.d.ts | 14 + .../asset/assets-table-config.resolver.d.ts | 53 + .../audit-log/audit-log-routing.module.d.ts | 7 + .../pages/audit-log/audit-log.module.d.ts | 9 + .../customer/customer-routing.module.d.ts | 7 + .../customer/customer-tabs.component.d.ts | 12 + .../pages/customer/customer.component.d.ts | 28 + .../home/pages/customer/customer.module.d.ts | 12 + .../customers-table-config.resolver.d.ts | 29 + .../dashboard/dashboard-form.component.d.ts | 35 + .../dashboard/dashboard-routing.module.d.ts | 23 + .../dashboard/dashboard-tabs.component.d.ts | 12 + .../pages/dashboard/dashboard.module.d.ts | 15 + .../dashboards-table-config.resolver.d.ts | 55 + ...ake-dashboard-public-dialog.component.d.ts | 31 + ...-dashboard-customers-dialog.component.d.ts | 41 + .../device-profile-routing.module.d.ts | 7 + .../device-profile-tabs.component.d.ts | 16 + .../device-profile/device-profile.module.d.ts | 11 + ...device-profiles-table-config.resolver.d.ts | 32 + ...ice-transport-configuration.component.d.ts | 27 + ...efault-device-configuration.component.d.ts | 25 + ...ice-transport-configuration.component.d.ts | 25 + .../data/device-configuration.component.d.ts | 27 + .../device/data/device-data.component.d.ts | 28 + ...ice-transport-configuration.component.d.ts | 28 + ...ice-transport-configuration.component.d.ts | 27 + ...ice-transport-configuration.component.d.ts | 25 + ...ice-transport-configuration.component.d.ts | 33 + .../device-credentials-dialog.component.d.ts | 41 + .../pages/device/device-routing.module.d.ts | 7 + .../device/device-table-header.component.d.ts | 15 + .../pages/device/device-tabs.component.d.ts | 12 + .../home/pages/device/device.component.d.ts | 35 + .../home/pages/device/device.module.d.ts | 26 + .../device/devices-table-config.resolver.d.ts | 55 + .../home/pages/edge/edge-routing.module.d.ts | 7 + .../edge/edge-table-header.component.d.ts | 14 + .../home/pages/edge/edge-tabs.component.d.ts | 12 + .../home/pages/edge/edge.component.d.ts | 32 + .../modules/home/pages/edge/edge.module.d.ts | 14 + .../edge/edges-table-config.resolver.d.ts | 51 + .../entity-view-routing.module.d.ts | 7 + .../entity-view-table-header.component.d.ts | 14 + .../entity-view-tabs.component.d.ts | 12 + .../entity-view/entity-view.component.d.ts | 37 + .../pages/entity-view/entity-view.module.d.ts | 14 + .../entity-views-table-config.resolver.d.ts | 50 + .../home-links/home-links-routing.module.d.ts | 18 + .../home-links/home-links.component.d.ts | 22 + .../pages/home-links/home-links.module.d.ts | 11 + .../modules/home/pages/home-pages.models.d.ts | 3 + .../modules/home/pages/home-pages.module.d.ts | 24 + .../ota-update/ota-update-routing.module.d.ts | 7 + .../ota-update-table-config.resolve.d.ts | 29 + .../ota-update/ota-update.component.d.ts | 34 + .../pages/ota-update/ota-update.module.d.ts | 11 + .../change-password-dialog.component.d.ts | 25 + .../pages/profile/profile-routing.module.d.ts | 21 + .../home/pages/profile/profile.component.d.ts | 48 + .../home/pages/profile/profile.module.d.ts | 11 + .../rulechain/link-labels.component.d.ts | 60 ++ .../rulechain/rule-node-config.component.d.ts | 47 + .../rule-node-details.component.d.ts | 38 + .../rulechain/rule-node-link.component.d.ts | 34 + .../rulechain/rulechain-page.component.d.ts | 258 +++++ .../rulechain/rulechain-page.models.d.ts | 25 + .../rulechain/rulechain-routing.module.d.ts | 54 + .../rulechain/rulechain-tabs.component.d.ts | 12 + .../pages/rulechain/rulechain.component.d.ts | 29 + .../pages/rulechain/rulechain.module.d.ts | 18 + .../rulechains-table-config.resolver.d.ts | 57 + .../pages/rulechain/rulenode.component.d.ts | 20 + .../tenant-profile-routing.module.d.ts | 7 + .../tenant-profile-tabs.component.d.ts | 12 + .../tenant-profile/tenant-profile.module.d.ts | 11 + ...tenant-profiles-table-config.resolver.d.ts | 29 + .../pages/tenant/tenant-routing.module.d.ts | 7 + .../pages/tenant/tenant-tabs.component.d.ts | 12 + .../home/pages/tenant/tenant.component.d.ts | 26 + .../home/pages/tenant/tenant.module.d.ts | 12 + .../tenant/tenants-table-config.resolver.d.ts | 22 + .../activation-link-dialog.component.d.ts | 25 + .../pages/user/add-user-dialog.component.d.ts | 40 + .../home/pages/user/user-routing.module.d.ts | 7 + .../home/pages/user/user-tabs.component.d.ts | 12 + .../home/pages/user/user.component.d.ts | 29 + .../modules/home/pages/user/user.module.d.ts | 14 + .../user/users-table-config.resolver.d.ts | 49 + .../save-widget-type-as-dialog.component.d.ts | 27 + .../select-widget-type-dialog.component.d.ts | 20 + .../pages/widget/widget-editor.component.d.ts | 115 +++ .../pages/widget/widget-editor.models.d.ts | 2 + .../widget/widget-library-routing.module.d.ts | 51 + .../widget/widget-library.component.d.ts | 49 + .../pages/widget/widget-library.module.d.ts | 15 + .../widget/widgets-bundle.component.d.ts | 21 + ...widgets-bundles-table-config.resolver.d.ts | 32 + .../modules/login/login-routing.module.d.ts | 7 + src/app/modules/login/login.module.d.ts | 13 + .../login/create-password.component.d.ts | 26 + .../login/pages/login/login.component.d.ts | 22 + .../reset-password-request.component.d.ts | 22 + .../pages/login/reset-password.component.d.ts | 27 + .../animations/speed-dial-fab.animations.d.ts | 1 + .../components/breadcrumb.component.d.ts | 27 + src/app/shared/components/breadcrumb.d.ts | 19 + .../button/copy-button.component.d.ts | 29 + .../button/toggle-password.component.d.ts | 13 + .../components/cheatsheet.component.d.ts | 19 + .../circular-progress.directive.d.ts | 17 + .../components/color-input.component.d.ts | 42 + .../shared/components/contact.component.d.ts | 9 + src/app/shared/components/css.component.d.ts | 47 + .../dashboard-autocomplete.component.d.ts | 52 + .../dashboard-select-panel.component.d.ts | 19 + .../dashboard-select.component.d.ts | 44 + .../shared/components/dialog.component.d.ts | 18 + .../dialog/alert-dialog.component.d.ts | 14 + .../dialog/color-picker-dialog.component.d.ts | 30 + .../dialog/confirm-dialog.component.d.ts | 15 + .../json-object-edit-dialog.component.d.ts | 30 + .../material-icons-dialog.component.d.ts | 32 + .../node-script-test-dialog.component.d.ts | 59 ++ .../dialog/todo-dialog.component.d.ts | 8 + .../component-outlet.directive.d.ts | 25 + .../sring-template-outlet.directive.d.ts | 20 + .../tb-json-to-string.directive.d.ts | 21 + .../entity/entity-autocomplete.component.d.ts | 58 ++ .../entity-gateway-select.component.d.ts | 53 + .../entity/entity-keys-list.component.d.ts | 53 + .../entity/entity-list-select.component.d.ts | 43 + .../entity/entity-list.component.d.ts | 53 + .../entity/entity-select.component.d.ts | 37 + ...entity-subtype-autocomplete.component.d.ts | 57 + .../entity/entity-subtype-list.component.d.ts | 67 ++ .../entity-subtype-select.component.d.ts | 52 + .../entity/entity-type-list.component.d.ts | 57 + .../entity/entity-type-select.component.d.ts | 38 + .../components/fab-toolbar.component.d.ts | 39 + .../components/file-input.component.d.ts | 58 ++ .../footer-fab-buttons.component.d.ts | 32 + .../shared/components/footer.component.d.ts | 6 + .../components/fullscreen.directive.d.ts | 29 + .../components/help-markdown.component.d.ts | 27 + .../components/help-popup.component.d.ts | 32 + src/app/shared/components/help.component.d.ts | 7 + .../shared/components/hotkeys.directive.d.ts | 18 + .../components/image-input.component.d.ts | 46 + .../shared/components/js-func.component.d.ts | 68 ++ .../components/json-content.component.d.ts | 62 ++ .../json-form/json-form-component.models.d.ts | 4 + .../json-form/json-form.component.d.ts | 63 ++ .../json-form/react/json-form-ace-editor.d.ts | 33 + .../json-form/react/json-form-array.d.ts | 33 + .../react/json-form-base-component.d.ts | 33 + .../json-form/react/json-form-checkbox.d.ts | 33 + .../json-form/react/json-form-color.d.ts | 33 + .../json-form/react/json-form-css.d.ts | 9 + .../json-form/react/json-form-date.d.ts | 33 + .../json-form/react/json-form-fieldset.d.ts | 6 + .../json-form/react/json-form-help.d.ts | 6 + .../json-form/react/json-form-html.d.ts | 9 + .../json-form/react/json-form-icon.d.ts | 33 + .../json-form/react/json-form-image.d.ts | 33 + .../json-form/react/json-form-javascript.d.ts | 9 + .../json-form/react/json-form-json.d.ts | 9 + .../json-form/react/json-form-markdown.d.ts | 7 + .../json-form/react/json-form-number.d.ts | 33 + .../json-form/react/json-form-radios.d.ts | 33 + .../json-form/react/json-form-rc-select.d.ts | 33 + .../json-form/react/json-form-react.d.ts | 8 + .../react/json-form-schema-form.d.ts | 20 + .../json-form/react/json-form-select.d.ts | 33 + .../json-form/react/json-form-text.d.ts | 33 + .../json-form/react/json-form-utils.d.ts | 20 + .../json-form/react/json-form.models.d.ts | 114 ++ .../react/styles/thingsboardTheme.d.ts | 3 + .../json-object-edit.component.d.ts | 58 ++ .../json-object-view.component.d.ts | 38 + .../shared/components/kv-map.component.d.ts | 37 + .../components/led-light.component.d.ts | 26 + src/app/shared/components/logo.component.d.ts | 7 + .../shared/components/markdown.component.d.ts | 43 + .../components/marked-options.service.d.ts | 29 + .../mat-chip-draggable.directive.d.ts | 19 + .../material-icon-select.component.d.ts | 26 + .../message-type-autocomplete.component.d.ts | 39 + .../shared/components/nav-tree.component.d.ts | 56 + .../ota-package-autocomplete.component.d.ts | 67 ++ src/app/shared/components/page.component.d.ts | 17 + .../shared/components/popover.component.d.ts | 120 +++ src/app/shared/components/popover.models.d.ts | 20 + .../shared/components/popover.service.d.ts | 21 + .../protobuf-content.component.d.ts | 44 + src/app/shared/components/public-api.d.ts | 5 + .../queue/queue-type-list.component.d.ts | 48 + .../relation-type-autocomplete.component.d.ts | 40 + .../socialshare-panel.component.d.ts | 13 + .../components/tb-anchor.component.d.ts | 8 + .../components/tb-checkbox.component.d.ts | 19 + .../shared/components/tb-error.component.d.ts | 9 + .../time/datetime-period.component.d.ts | 28 + .../components/time/datetime.component.d.ts | 29 + .../history-selector.component.d.ts | 34 + .../time/quick-time-interval.component.d.ts | 23 + .../time/timeinterval.component.d.ts | 50 + .../time/timewindow-panel.component.d.ts | 56 + .../components/time/timewindow.component.d.ts | 63 ++ .../time/timezone-select.component.d.ts | 54 + .../shared/components/toast.directive.d.ts | 69 ++ src/app/shared/components/tokens.d.ts | 4 + .../components/user-menu.component.d.ts | 27 + .../components/value-input.component.d.ts | 29 + .../widgets-bundle-search.component.d.ts | 20 + .../widgets-bundle-select.component.d.ts | 37 + src/app/shared/decorators/enumerable.d.ts | 1 + src/app/shared/decorators/tb-inject.d.ts | 2 + src/app/shared/models/ace/ace.models.d.ts | 34 + .../shared/models/ace/completion.models.d.ts | 46 + .../models/ace/service-completion.models.d.ts | 53 + .../models/ace/widget-completion.models.d.ts | 3 + src/app/shared/models/alarm.models.d.ts | 72 ++ src/app/shared/models/alias.models.d.ts | 120 +++ src/app/shared/models/asset.models.d.ts | 20 + src/app/shared/models/audit-log.models.d.ts | 61 ++ src/app/shared/models/authority.enum.d.ts | 7 + src/app/shared/models/base-data.d.ts | 10 + src/app/shared/models/beautify.models.d.ts | 4 + .../models/component-descriptor.models.d.ts | 21 + src/app/shared/models/constants.d.ts | 152 +++ .../shared/models/contact-based.model.d.ts | 11 + src/app/shared/models/customer.model.d.ts | 13 + src/app/shared/models/dashboard.models.d.ts | 103 ++ src/app/shared/models/device.models.d.ts | 339 ++++++ src/app/shared/models/edge.models.d.ts | 89 ++ src/app/shared/models/entity-type.models.d.ts | 52 + src/app/shared/models/entity-view.models.d.ts | 33 + src/app/shared/models/entity.models.d.ts | 67 ++ src/app/shared/models/error.models.d.ts | 6 + src/app/shared/models/event.models.d.ts | 81 ++ src/app/shared/models/id/alarm-id.d.ts | 7 + src/app/shared/models/id/asset-id.d.ts | 7 + src/app/shared/models/id/audit-log-id.d.ts | 5 + src/app/shared/models/id/customer-id.d.ts | 7 + src/app/shared/models/id/dashboard-id.d.ts | 7 + .../models/id/device-credentials-id.d.ts | 5 + src/app/shared/models/id/device-id.d.ts | 7 + .../shared/models/id/device-profile-id.d.ts | 7 + src/app/shared/models/id/edge-id.d.ts | 7 + src/app/shared/models/id/entity-id.d.ts | 6 + src/app/shared/models/id/entity-view-id.d.ts | 7 + src/app/shared/models/id/event-id.d.ts | 5 + src/app/shared/models/id/has-uuid.d.ts | 4 + src/app/shared/models/id/ota-package-id.d.ts | 7 + src/app/shared/models/id/public-api.d.ts | 22 + src/app/shared/models/id/rpc-id.d.ts | 7 + src/app/shared/models/id/rule-chain-id.d.ts | 7 + src/app/shared/models/id/rule-node-id.d.ts | 7 + src/app/shared/models/id/tb-resource-id.d.ts | 7 + src/app/shared/models/id/tenant-id.d.ts | 7 + .../shared/models/id/tenant-profile-id.d.ts | 7 + src/app/shared/models/id/user-id.d.ts | 7 + src/app/shared/models/id/widget-type-id.d.ts | 7 + .../shared/models/id/widgets-bundle-id.d.ts | 7 + src/app/shared/models/login.models.d.ts | 11 + .../models/lwm2m-security-config.models.d.ts | 29 + src/app/shared/models/material.models.d.ts | 12 + src/app/shared/models/oauth2.models.d.ts | 96 ++ src/app/shared/models/ota-package.models.d.ts | 52 + src/app/shared/models/page/page-data.d.ts | 7 + src/app/shared/models/page/page-link.d.ts | 31 + src/app/shared/models/page/public-api.d.ts | 3 + src/app/shared/models/page/sort-order.d.ts | 9 + src/app/shared/models/public-api.d.ts | 37 + src/app/shared/models/query/query.models.d.ts | 253 +++++ src/app/shared/models/queue.models.d.ts | 6 + src/app/shared/models/relation.models.d.ts | 52 + src/app/shared/models/resource.models.d.ts | 25 + src/app/shared/models/rpc.models.d.ts | 46 + src/app/shared/models/rule-chain.models.d.ts | 39 + src/app/shared/models/rule-node.models.d.ts | 170 +++ src/app/shared/models/settings.models.d.ts | 71 ++ .../models/telemetry/telemetry.models.d.ts | 256 +++++ src/app/shared/models/tenant.model.d.ts | 60 ++ src/app/shared/models/time/time.models.d.ts | 158 +++ src/app/shared/models/user.model.d.ts | 31 + src/app/shared/models/widget.models.d.ts | 383 +++++++ .../shared/models/widgets-bundle.model.d.ts | 10 + .../shared/models/window-message.model.d.ts | 15 + src/app/shared/pipe/enum-to-array.pipe.d.ts | 7 + src/app/shared/pipe/file-size.pipe.d.ts | 13 + src/app/shared/pipe/highlight.pipe.d.ts | 7 + .../shared/pipe/keyboard-shortcut.pipe.d.ts | 9 + .../milliseconds-to-time-string.pipe.d.ts | 10 + src/app/shared/pipe/nospace.pipe.d.ts | 7 + src/app/shared/pipe/public-api.d.ts | 8 + src/app/shared/pipe/safe.pipe.d.ts | 10 + .../shared/pipe/selectable-columns.pipe.d.ts | 8 + src/app/shared/pipe/tbJson.pipe.d.ts | 7 + src/app/shared/pipe/truncate.pipe.d.ts | 7 + src/app/shared/public-api.d.ts | 4 + src/app/shared/shared.module.d.ts | 142 +++ src/environments/environment.d.ts | 7 + src/main.d.ts | 1 + src/polyfills.d.ts | 53 + src/zone-flags.d.ts | 0 695 files changed, 26294 insertions(+) create mode 100644 .gitignore create mode 100755 package.json create mode 100644 src/app/app-routing.module.d.ts create mode 100644 src/app/app.component.d.ts create mode 100644 src/app/app.module.d.ts create mode 100644 src/app/core/api/alarm-data-subscription.d.ts create mode 100644 src/app/core/api/alarm-data.service.d.ts create mode 100644 src/app/core/api/alias-controller.d.ts create mode 100644 src/app/core/api/data-aggregator.d.ts create mode 100644 src/app/core/api/entity-data-subscription.d.ts create mode 100644 src/app/core/api/entity-data.service.d.ts create mode 100644 src/app/core/api/public-api.d.ts create mode 100644 src/app/core/api/widget-api.models.d.ts create mode 100644 src/app/core/api/widget-subscription.d.ts create mode 100644 src/app/core/auth/auth.actions.d.ts create mode 100644 src/app/core/auth/auth.models.d.ts create mode 100644 src/app/core/auth/auth.reducer.d.ts create mode 100644 src/app/core/auth/auth.selectors.d.ts create mode 100644 src/app/core/auth/auth.service.d.ts create mode 100644 src/app/core/core.module.d.ts create mode 100644 src/app/core/core.state.d.ts create mode 100644 src/app/core/guards/auth.guard.d.ts create mode 100644 src/app/core/guards/confirm-on-exit.guard.d.ts create mode 100644 src/app/core/http/admin.service.d.ts create mode 100644 src/app/core/http/alarm.service.d.ts create mode 100644 src/app/core/http/asset.service.d.ts create mode 100644 src/app/core/http/attribute.service.d.ts create mode 100644 src/app/core/http/audit-log.service.d.ts create mode 100644 src/app/core/http/component-descriptor.service.d.ts create mode 100644 src/app/core/http/customer.service.d.ts create mode 100644 src/app/core/http/dashboard.service.d.ts create mode 100644 src/app/core/http/device-profile.service.d.ts create mode 100644 src/app/core/http/device.service.d.ts create mode 100644 src/app/core/http/edge.service.d.ts create mode 100644 src/app/core/http/entity-relation.service.d.ts create mode 100644 src/app/core/http/entity-view.service.d.ts create mode 100644 src/app/core/http/entity.service.d.ts create mode 100644 src/app/core/http/event.service.d.ts create mode 100644 src/app/core/http/http-utils.d.ts create mode 100644 src/app/core/http/oauth2.service.d.ts create mode 100644 src/app/core/http/ota-package.service.d.ts create mode 100644 src/app/core/http/public-api.d.ts create mode 100644 src/app/core/http/queue.service.d.ts create mode 100644 src/app/core/http/resource.service.d.ts create mode 100644 src/app/core/http/rule-chain.service.d.ts create mode 100644 src/app/core/http/tenant-profile.service.d.ts create mode 100644 src/app/core/http/tenant.service.d.ts create mode 100644 src/app/core/http/ui-settings.service.d.ts create mode 100644 src/app/core/http/user.service.d.ts create mode 100644 src/app/core/http/widget.service.d.ts create mode 100644 src/app/core/interceptors/global-http-interceptor.d.ts create mode 100644 src/app/core/interceptors/interceptor-config.d.ts create mode 100644 src/app/core/interceptors/interceptor-http-params.d.ts create mode 100644 src/app/core/interceptors/load.actions.d.ts create mode 100644 src/app/core/interceptors/load.models.d.ts create mode 100644 src/app/core/interceptors/load.reducer.d.ts create mode 100644 src/app/core/interceptors/load.selectors.d.ts create mode 100644 src/app/core/local-storage/local-storage.service.d.ts create mode 100644 src/app/core/meta-reducers/debug.reducer.d.ts create mode 100644 src/app/core/meta-reducers/init-state-from-local-storage.reducer.d.ts create mode 100644 src/app/core/notification/notification.actions.d.ts create mode 100644 src/app/core/notification/notification.effects.d.ts create mode 100644 src/app/core/notification/notification.models.d.ts create mode 100644 src/app/core/notification/notification.reducer.d.ts create mode 100644 src/app/core/operator/enterZone.d.ts create mode 100644 src/app/core/public-api.d.ts create mode 100644 src/app/core/schema-utils.d.ts create mode 100644 src/app/core/services/broadcast.models.d.ts create mode 100644 src/app/core/services/broadcast.service.d.ts create mode 100644 src/app/core/services/dashboard-utils.service.d.ts create mode 100644 src/app/core/services/dialog.service.d.ts create mode 100644 src/app/core/services/dynamic-component-factory.service.d.ts create mode 100644 src/app/core/services/help.service.d.ts create mode 100644 src/app/core/services/item-buffer.service.d.ts create mode 100644 src/app/core/services/menu.models.d.ts create mode 100644 src/app/core/services/menu.service.d.ts create mode 100644 src/app/core/services/mobile.service.d.ts create mode 100644 src/app/core/services/notification.service.d.ts create mode 100644 src/app/core/services/public-api.d.ts create mode 100644 src/app/core/services/raf.service.d.ts create mode 100644 src/app/core/services/resources.service.d.ts create mode 100644 src/app/core/services/script/node-script-test.service.d.ts create mode 100644 src/app/core/services/time.service.d.ts create mode 100644 src/app/core/services/title.service.d.ts create mode 100644 src/app/core/services/utils.service.d.ts create mode 100644 src/app/core/services/window.service.d.ts create mode 100644 src/app/core/settings/settings.actions.d.ts create mode 100644 src/app/core/settings/settings.effects.d.ts create mode 100644 src/app/core/settings/settings.models.d.ts create mode 100644 src/app/core/settings/settings.reducer.d.ts create mode 100644 src/app/core/settings/settings.selectors.d.ts create mode 100644 src/app/core/settings/settings.utils.d.ts create mode 100644 src/app/core/translate/missing-translate-handler.d.ts create mode 100644 src/app/core/translate/translate-default-compiler.d.ts create mode 100644 src/app/core/translate/translate-default-parser.d.ts create mode 100644 src/app/core/utils.d.ts create mode 100644 src/app/core/ws/telemetry-websocket.service.d.ts create mode 100644 src/app/modules/common/modules-map.d.ts create mode 100644 src/app/modules/common/modules-map.models.d.ts create mode 100644 src/app/modules/common/modules-map.ts create mode 100644 src/app/modules/dashboard/dashboard-pages.module.d.ts create mode 100644 src/app/modules/dashboard/dashboard-pages.routing.module.d.ts create mode 100644 src/app/modules/dashboard/dashboard-routing.module.d.ts create mode 100644 src/app/modules/home/components/alarm/alarm-details-dialog.component.d.ts create mode 100644 src/app/modules/home/components/alarm/alarm-table-config.d.ts create mode 100644 src/app/modules/home/components/alarm/alarm-table-header.component.d.ts create mode 100644 src/app/modules/home/components/alarm/alarm-table.component.d.ts create mode 100644 src/app/modules/home/components/alias/aliases-entity-autocomplete.component.d.ts create mode 100644 src/app/modules/home/components/alias/aliases-entity-select-panel.component.d.ts create mode 100644 src/app/modules/home/components/alias/aliases-entity-select.component.d.ts create mode 100644 src/app/modules/home/components/alias/entity-alias-dialog.component.d.ts create mode 100644 src/app/modules/home/components/alias/entity-alias-select.component.d.ts create mode 100644 src/app/modules/home/components/alias/entity-alias-select.component.models.d.ts create mode 100644 src/app/modules/home/components/alias/entity-aliases-dialog.component.d.ts create mode 100644 src/app/modules/home/components/attribute/add-attribute-dialog.component.d.ts create mode 100644 src/app/modules/home/components/attribute/add-widget-to-dashboard-dialog.component.d.ts create mode 100644 src/app/modules/home/components/attribute/attribute-table.component.d.ts create mode 100644 src/app/modules/home/components/attribute/edit-attribute-value-panel.component.d.ts create mode 100644 src/app/modules/home/components/audit-log/audit-log-details-dialog.component.d.ts create mode 100644 src/app/modules/home/components/audit-log/audit-log-table-config.d.ts create mode 100644 src/app/modules/home/components/audit-log/audit-log-table.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/add-widget-dialog.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/dashboard-image-dialog.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/dashboard-page.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/dashboard-page.models.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/dashboard-settings-dialog.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/dashboard-state.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/dashboard-toolbar.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/edit-widget.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/layout/layout.models.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/states/dashboard-state-dialog.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/states/default-state-controller.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/states/entity-state-controller.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/states/manage-dashboard-states-dialog.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/states/manage-dashboard-states-dialog.component.models.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/states/state-controller.component.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/states/state-controller.models.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/states/states-component.directive.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/states/states-controller.module.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/states/states-controller.service.d.ts create mode 100644 src/app/modules/home/components/dashboard-page/widget-types-panel.component.d.ts create mode 100644 src/app/modules/home/components/dashboard/dashboard.component.d.ts create mode 100644 src/app/modules/home/components/dashboard/select-target-layout-dialog.component.d.ts create mode 100644 src/app/modules/home/components/dashboard/select-target-state-dialog.component.d.ts create mode 100644 src/app/modules/home/components/details-panel.component.d.ts create mode 100644 src/app/modules/home/components/device/copy-device-credentials.component.d.ts create mode 100644 src/app/modules/home/components/device/device-credentials-lwm2m-server.component.d.ts create mode 100644 src/app/modules/home/components/device/device-credentials-lwm2m.component.d.ts create mode 100644 src/app/modules/home/components/device/device-credentials-mqtt-basic.component.d.ts create mode 100644 src/app/modules/home/components/device/device-credentials.component.d.ts create mode 100644 src/app/modules/home/components/device/device-credentials.module.d.ts create mode 100644 src/app/modules/home/components/edge/edge-downlink-table-config.d.ts create mode 100644 src/app/modules/home/components/edge/edge-downlink-table-header.component.d.ts create mode 100644 src/app/modules/home/components/edge/edge-downlink-table.component.d.ts create mode 100644 src/app/modules/home/components/entity/add-entity-dialog.component.d.ts create mode 100644 src/app/modules/home/components/entity/contact-based.component.d.ts create mode 100644 src/app/modules/home/components/entity/entities-table.component.d.ts create mode 100644 src/app/modules/home/components/entity/entity-details-page.component.d.ts create mode 100644 src/app/modules/home/components/entity/entity-details-panel.component.d.ts create mode 100644 src/app/modules/home/components/entity/entity-filter-view.component.d.ts create mode 100644 src/app/modules/home/components/entity/entity-filter.component.d.ts create mode 100644 src/app/modules/home/components/entity/entity-table-header.component.d.ts create mode 100644 src/app/modules/home/components/entity/entity-tabs.component.d.ts create mode 100644 src/app/modules/home/components/entity/entity.component.d.ts create mode 100644 src/app/modules/home/components/event/event-content-dialog.component.d.ts create mode 100644 src/app/modules/home/components/event/event-filter-panel.component.d.ts create mode 100644 src/app/modules/home/components/event/event-table-config.d.ts create mode 100644 src/app/modules/home/components/event/event-table-header.component.d.ts create mode 100644 src/app/modules/home/components/event/event-table.component.d.ts create mode 100644 src/app/modules/home/components/filter/boolean-filter-predicate.component.d.ts create mode 100644 src/app/modules/home/components/filter/complex-filter-predicate-dialog.component.d.ts create mode 100644 src/app/modules/home/components/filter/complex-filter-predicate.component.d.ts create mode 100644 src/app/modules/home/components/filter/filter-component.models.d.ts create mode 100644 src/app/modules/home/components/filter/filter-dialog.component.d.ts create mode 100644 src/app/modules/home/components/filter/filter-predicate-list.component.d.ts create mode 100644 src/app/modules/home/components/filter/filter-predicate-value.component.d.ts create mode 100644 src/app/modules/home/components/filter/filter-predicate.component.d.ts create mode 100644 src/app/modules/home/components/filter/filter-select.component.d.ts create mode 100644 src/app/modules/home/components/filter/filter-select.component.models.d.ts create mode 100644 src/app/modules/home/components/filter/filter-text.component.d.ts create mode 100644 src/app/modules/home/components/filter/filter-user-info-dialog.component.d.ts create mode 100644 src/app/modules/home/components/filter/filter-user-info.component.d.ts create mode 100644 src/app/modules/home/components/filter/filters-dialog.component.d.ts create mode 100644 src/app/modules/home/components/filter/filters-edit-panel.component.d.ts create mode 100644 src/app/modules/home/components/filter/filters-edit.component.d.ts create mode 100644 src/app/modules/home/components/filter/key-filter-dialog.component.d.ts create mode 100644 src/app/modules/home/components/filter/key-filter-list.component.d.ts create mode 100644 src/app/modules/home/components/filter/numeric-filter-predicate.component.d.ts create mode 100644 src/app/modules/home/components/filter/string-filter-predicate.component.d.ts create mode 100644 src/app/modules/home/components/filter/user-filter-dialog.component.d.ts create mode 100644 src/app/modules/home/components/home-components.module.d.ts create mode 100644 src/app/modules/home/components/import-export/import-dialog-csv.component.d.ts create mode 100644 src/app/modules/home/components/import-export/import-dialog.component.d.ts create mode 100644 src/app/modules/home/components/import-export/import-export.models.d.ts create mode 100644 src/app/modules/home/components/import-export/import-export.service.d.ts create mode 100644 src/app/modules/home/components/import-export/table-columns-assignment.component.d.ts create mode 100644 src/app/modules/home/components/profile/add-device-profile-dialog.component.d.ts create mode 100644 src/app/modules/home/components/profile/alarm/alarm-duration-predicate-value.component.d.ts create mode 100644 src/app/modules/home/components/profile/alarm/alarm-rule-condition-dialog.component.d.ts create mode 100644 src/app/modules/home/components/profile/alarm/alarm-rule-condition.component.d.ts create mode 100644 src/app/modules/home/components/profile/alarm/alarm-rule.component.d.ts create mode 100644 src/app/modules/home/components/profile/alarm/alarm-schedule-dialog.component.d.ts create mode 100644 src/app/modules/home/components/profile/alarm/alarm-schedule-info.component.d.ts create mode 100644 src/app/modules/home/components/profile/alarm/alarm-schedule.component.d.ts create mode 100644 src/app/modules/home/components/profile/alarm/create-alarm-rules.component.d.ts create mode 100644 src/app/modules/home/components/profile/alarm/device-profile-alarm.component.d.ts create mode 100644 src/app/modules/home/components/profile/alarm/device-profile-alarms.component.d.ts create mode 100644 src/app/modules/home/components/profile/alarm/edit-alarm-details-dialog.component.d.ts create mode 100644 src/app/modules/home/components/profile/device-profile-autocomplete.component.d.ts create mode 100644 src/app/modules/home/components/profile/device-profile-dialog.component.d.ts create mode 100644 src/app/modules/home/components/profile/device-profile-provision-configuration.component.d.ts create mode 100644 src/app/modules/home/components/profile/device-profile.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/coap-device-profile-transport-configuration.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/common/device-profile-common.module.d.ts create mode 100644 src/app/modules/home/components/profile/device/common/power-mode-setting.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/common/time-unit-select.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/default-device-profile-configuration.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/default-device-profile-transport-configuration.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/device-profile-configuration.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/device-profile-transport-configuration.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes-dialog.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes-key-list.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-bootstrap-add-config-server-dialog.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-bootstrap-config-servers.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-config-server.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-object-add-instances-dialog.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-object-add-instances-list.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-object-list.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry-instances.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry-resources.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-components.module.d.ts create mode 100644 src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-config.models.d.ts create mode 100644 src/app/modules/home/components/profile/device/mqtt-device-profile-transport-configuration.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/snpm/snmp-device-profile-communication-config.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/snpm/snmp-device-profile-mapping.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/snpm/snmp-device-profile-transport-configuration.component.d.ts create mode 100644 src/app/modules/home/components/profile/device/snpm/snmp-device-profile-transport.module.d.ts create mode 100644 src/app/modules/home/components/profile/tenant-profile-autocomplete.component.d.ts create mode 100644 src/app/modules/home/components/profile/tenant-profile-data.component.d.ts create mode 100644 src/app/modules/home/components/profile/tenant-profile-dialog.component.d.ts create mode 100644 src/app/modules/home/components/profile/tenant-profile.component.d.ts create mode 100644 src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.d.ts create mode 100644 src/app/modules/home/components/profile/tenant/tenant-profile-configuration.component.d.ts create mode 100644 src/app/modules/home/components/public-api.d.ts create mode 100644 src/app/modules/home/components/relation/relation-dialog.component.d.ts create mode 100644 src/app/modules/home/components/relation/relation-filters.component.d.ts create mode 100644 src/app/modules/home/components/relation/relation-table.component.d.ts create mode 100644 src/app/modules/home/components/rule-chain/rule-chain-autocomplete.component.d.ts create mode 100644 src/app/modules/home/components/shared-home-components.module.d.ts create mode 100644 src/app/modules/home/components/sms/aws-sns-provider-configuration.component.d.ts create mode 100644 src/app/modules/home/components/sms/sms-provider-configuration.component.d.ts create mode 100644 src/app/modules/home/components/sms/twilio-sms-provider-configuration.component.d.ts create mode 100644 src/app/modules/home/components/tokens.d.ts create mode 100644 src/app/modules/home/components/widget/action/custom-action-pretty-editor.component.d.ts create mode 100644 src/app/modules/home/components/widget/action/custom-action-pretty-resources-tabs.component.d.ts create mode 100644 src/app/modules/home/components/widget/action/custom-action.models.d.ts create mode 100644 src/app/modules/home/components/widget/action/manage-widget-actions.component.d.ts create mode 100644 src/app/modules/home/components/widget/action/manage-widget-actions.component.models.d.ts create mode 100644 src/app/modules/home/components/widget/action/mobile-action-editor.component.d.ts create mode 100644 src/app/modules/home/components/widget/action/mobile-action-editor.models.d.ts create mode 100644 src/app/modules/home/components/widget/action/widget-action-dialog.component.d.ts create mode 100644 src/app/modules/home/components/widget/data-key-config-dialog.component.d.ts create mode 100644 src/app/modules/home/components/widget/data-key-config.component.d.ts create mode 100644 src/app/modules/home/components/widget/data-keys.component.d.ts create mode 100644 src/app/modules/home/components/widget/data-keys.component.models.d.ts create mode 100644 src/app/modules/home/components/widget/dialog/custom-dialog-container.component.d.ts create mode 100644 src/app/modules/home/components/widget/dialog/custom-dialog.component.d.ts create mode 100644 src/app/modules/home/components/widget/dialog/custom-dialog.service.d.ts create mode 100644 src/app/modules/home/components/widget/dialog/embed-dashboard-dialog-token.d.ts create mode 100644 src/app/modules/home/components/widget/dialog/embed-dashboard-dialog.component.d.ts create mode 100644 src/app/modules/home/components/widget/dynamic-widget.component.d.ts create mode 100644 src/app/modules/home/components/widget/legend-config.component.d.ts create mode 100644 src/app/modules/home/components/widget/legend.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/alarm-filter-panel.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/alarms-table-widget.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/analogue-compass.d.ts create mode 100644 src/app/modules/home/components/widget/lib/analogue-compass.models.d.ts create mode 100644 src/app/modules/home/components/widget/lib/analogue-gauge.models.d.ts create mode 100644 src/app/modules/home/components/widget/lib/analogue-linear-gauge.d.ts create mode 100644 src/app/modules/home/components/widget/lib/analogue-linear-gauge.models.d.ts create mode 100644 src/app/modules/home/components/widget/lib/analogue-radial-gauge.d.ts create mode 100644 src/app/modules/home/components/widget/lib/analogue-radial-gauge.models.d.ts create mode 100644 src/app/modules/home/components/widget/lib/canvas-digital-gauge.d.ts create mode 100644 src/app/modules/home/components/widget/lib/date-range-navigator/date-range-navigator.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/date-range-navigator/date-range-navigator.models.d.ts create mode 100644 src/app/modules/home/components/widget/lib/digital-gauge.d.ts create mode 100644 src/app/modules/home/components/widget/lib/digital-gauge.models.d.ts create mode 100644 src/app/modules/home/components/widget/lib/display-columns-panel.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/edges-overview-widget.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/edges-overview-widget.models.d.ts create mode 100644 src/app/modules/home/components/widget/lib/entities-hierarchy-widget.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/entities-hierarchy-widget.models.d.ts create mode 100644 src/app/modules/home/components/widget/lib/entities-table-widget.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/flot-widget.d.ts create mode 100644 src/app/modules/home/components/widget/lib/flot-widget.models.d.ts create mode 100644 src/app/modules/home/components/widget/lib/gateway/gateway-form.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/gateway/gateway-form.models.d.ts create mode 100644 src/app/modules/home/components/widget/lib/json-input-widget.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/common-maps-utils.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/dialogs/select-entity-dialog.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/leaflet-map.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/map-models.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/map-widget.interface.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/map-widget2.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/maps-utils.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/markers.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/polygon.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/polyline.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/providers/google-map.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/providers/here-map.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/providers/image-map.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/providers/index.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/providers/openstreet-map.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/providers/tencent-map.d.ts create mode 100644 src/app/modules/home/components/widget/lib/maps/schemes.d.ts create mode 100644 src/app/modules/home/components/widget/lib/markdown-widget.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/multiple-input-widget.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/navigation-card-widget.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/navigation-cards-widget.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/photo-camera-input.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/qrcode-widget.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/rpc/knob.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/rpc/led-indicator.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/rpc/persistent-add-dialog.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/rpc/persistent-details-dialog.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/rpc/persistent-filter-panel.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/rpc/persistent-table.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/rpc/round-switch.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/rpc/rpc-widgets.module.d.ts create mode 100644 src/app/modules/home/components/widget/lib/rpc/switch.component.d.ts create mode 100644 src/app/modules/home/components/widget/lib/settings.models.d.ts create mode 100644 src/app/modules/home/components/widget/lib/table-widget.models.d.ts create mode 100644 src/app/modules/home/components/widget/lib/timeseries-table-widget.component.d.ts create mode 100644 src/app/modules/home/components/widget/trip-animation/trip-animation.component.d.ts create mode 100644 src/app/modules/home/components/widget/widget-component.service.d.ts create mode 100644 src/app/modules/home/components/widget/widget-components.module.d.ts create mode 100644 src/app/modules/home/components/widget/widget-config.component.d.ts create mode 100644 src/app/modules/home/components/widget/widget-config.component.models.d.ts create mode 100644 src/app/modules/home/components/widget/widget-container.component.d.ts create mode 100644 src/app/modules/home/components/widget/widget.component.d.ts create mode 100644 src/app/modules/home/components/wizard/device-wizard-dialog.component.d.ts create mode 100644 src/app/modules/home/dialogs/add-entities-to-customer-dialog.component.d.ts create mode 100644 src/app/modules/home/dialogs/add-entities-to-edge-dialog.component.d.ts create mode 100644 src/app/modules/home/dialogs/assign-to-customer-dialog.component.d.ts create mode 100644 src/app/modules/home/dialogs/home-dialogs.module.d.ts create mode 100644 src/app/modules/home/dialogs/home-dialogs.service.d.ts create mode 100644 src/app/modules/home/home-routing.module.d.ts create mode 100644 src/app/modules/home/home.component.d.ts create mode 100644 src/app/modules/home/home.module.d.ts create mode 100644 src/app/modules/home/menu/menu-link.component.d.ts create mode 100644 src/app/modules/home/menu/menu-toggle.component.d.ts create mode 100644 src/app/modules/home/menu/side-menu.component.d.ts create mode 100644 src/app/modules/home/models/contact.models.d.ts create mode 100644 src/app/modules/home/models/dashboard-component.models.d.ts create mode 100644 src/app/modules/home/models/datasource/attribute-datasource.d.ts create mode 100644 src/app/modules/home/models/datasource/entity-datasource.d.ts create mode 100644 src/app/modules/home/models/datasource/relation-datasource.d.ts create mode 100644 src/app/modules/home/models/entity/entities-table-config.models.d.ts create mode 100644 src/app/modules/home/models/entity/entity-component.models.d.ts create mode 100644 src/app/modules/home/models/entity/entity-details-page-component.models.d.ts create mode 100644 src/app/modules/home/models/entity/entity-table-component.models.d.ts create mode 100644 src/app/modules/home/models/searchable-component.models.d.ts create mode 100644 src/app/modules/home/models/services.map.d.ts create mode 100644 src/app/modules/home/models/widget-component.models.d.ts create mode 100644 src/app/modules/home/pages/admin/admin-routing.module.d.ts create mode 100644 src/app/modules/home/pages/admin/admin.module.d.ts create mode 100644 src/app/modules/home/pages/admin/general-settings.component.d.ts create mode 100644 src/app/modules/home/pages/admin/home-settings.component.d.ts create mode 100644 src/app/modules/home/pages/admin/mail-server.component.d.ts create mode 100644 src/app/modules/home/pages/admin/oauth2-settings.component.d.ts create mode 100644 src/app/modules/home/pages/admin/resource/resources-library-table-config.resolve.d.ts create mode 100644 src/app/modules/home/pages/admin/resource/resources-library.component.d.ts create mode 100644 src/app/modules/home/pages/admin/security-settings.component.d.ts create mode 100644 src/app/modules/home/pages/admin/send-test-sms-dialog.component.d.ts create mode 100644 src/app/modules/home/pages/admin/sms-provider.component.d.ts create mode 100644 src/app/modules/home/pages/api-usage/api-usage-routing.module.d.ts create mode 100644 src/app/modules/home/pages/api-usage/api-usage.component.d.ts create mode 100644 src/app/modules/home/pages/api-usage/api-usage.module.d.ts create mode 100644 src/app/modules/home/pages/asset/asset-routing.module.d.ts create mode 100644 src/app/modules/home/pages/asset/asset-table-header.component.d.ts create mode 100644 src/app/modules/home/pages/asset/asset-tabs.component.d.ts create mode 100644 src/app/modules/home/pages/asset/asset.component.d.ts create mode 100644 src/app/modules/home/pages/asset/asset.module.d.ts create mode 100644 src/app/modules/home/pages/asset/assets-table-config.resolver.d.ts create mode 100644 src/app/modules/home/pages/audit-log/audit-log-routing.module.d.ts create mode 100644 src/app/modules/home/pages/audit-log/audit-log.module.d.ts create mode 100644 src/app/modules/home/pages/customer/customer-routing.module.d.ts create mode 100644 src/app/modules/home/pages/customer/customer-tabs.component.d.ts create mode 100644 src/app/modules/home/pages/customer/customer.component.d.ts create mode 100644 src/app/modules/home/pages/customer/customer.module.d.ts create mode 100644 src/app/modules/home/pages/customer/customers-table-config.resolver.d.ts create mode 100644 src/app/modules/home/pages/dashboard/dashboard-form.component.d.ts create mode 100644 src/app/modules/home/pages/dashboard/dashboard-routing.module.d.ts create mode 100644 src/app/modules/home/pages/dashboard/dashboard-tabs.component.d.ts create mode 100644 src/app/modules/home/pages/dashboard/dashboard.module.d.ts create mode 100644 src/app/modules/home/pages/dashboard/dashboards-table-config.resolver.d.ts create mode 100644 src/app/modules/home/pages/dashboard/make-dashboard-public-dialog.component.d.ts create mode 100644 src/app/modules/home/pages/dashboard/manage-dashboard-customers-dialog.component.d.ts create mode 100644 src/app/modules/home/pages/device-profile/device-profile-routing.module.d.ts create mode 100644 src/app/modules/home/pages/device-profile/device-profile-tabs.component.d.ts create mode 100644 src/app/modules/home/pages/device-profile/device-profile.module.d.ts create mode 100644 src/app/modules/home/pages/device-profile/device-profiles-table-config.resolver.d.ts create mode 100644 src/app/modules/home/pages/device/data/coap-device-transport-configuration.component.d.ts create mode 100644 src/app/modules/home/pages/device/data/default-device-configuration.component.d.ts create mode 100644 src/app/modules/home/pages/device/data/default-device-transport-configuration.component.d.ts create mode 100644 src/app/modules/home/pages/device/data/device-configuration.component.d.ts create mode 100644 src/app/modules/home/pages/device/data/device-data.component.d.ts create mode 100644 src/app/modules/home/pages/device/data/device-transport-configuration.component.d.ts create mode 100644 src/app/modules/home/pages/device/data/lwm2m-device-transport-configuration.component.d.ts create mode 100644 src/app/modules/home/pages/device/data/mqtt-device-transport-configuration.component.d.ts create mode 100644 src/app/modules/home/pages/device/data/snmp-device-transport-configuration.component.d.ts create mode 100644 src/app/modules/home/pages/device/device-credentials-dialog.component.d.ts create mode 100644 src/app/modules/home/pages/device/device-routing.module.d.ts create mode 100644 src/app/modules/home/pages/device/device-table-header.component.d.ts create mode 100644 src/app/modules/home/pages/device/device-tabs.component.d.ts create mode 100644 src/app/modules/home/pages/device/device.component.d.ts create mode 100644 src/app/modules/home/pages/device/device.module.d.ts create mode 100644 src/app/modules/home/pages/device/devices-table-config.resolver.d.ts create mode 100644 src/app/modules/home/pages/edge/edge-routing.module.d.ts create mode 100644 src/app/modules/home/pages/edge/edge-table-header.component.d.ts create mode 100644 src/app/modules/home/pages/edge/edge-tabs.component.d.ts create mode 100644 src/app/modules/home/pages/edge/edge.component.d.ts create mode 100644 src/app/modules/home/pages/edge/edge.module.d.ts create mode 100644 src/app/modules/home/pages/edge/edges-table-config.resolver.d.ts create mode 100644 src/app/modules/home/pages/entity-view/entity-view-routing.module.d.ts create mode 100644 src/app/modules/home/pages/entity-view/entity-view-table-header.component.d.ts create mode 100644 src/app/modules/home/pages/entity-view/entity-view-tabs.component.d.ts create mode 100644 src/app/modules/home/pages/entity-view/entity-view.component.d.ts create mode 100644 src/app/modules/home/pages/entity-view/entity-view.module.d.ts create mode 100644 src/app/modules/home/pages/entity-view/entity-views-table-config.resolver.d.ts create mode 100644 src/app/modules/home/pages/home-links/home-links-routing.module.d.ts create mode 100644 src/app/modules/home/pages/home-links/home-links.component.d.ts create mode 100644 src/app/modules/home/pages/home-links/home-links.module.d.ts create mode 100644 src/app/modules/home/pages/home-pages.models.d.ts create mode 100644 src/app/modules/home/pages/home-pages.module.d.ts create mode 100644 src/app/modules/home/pages/ota-update/ota-update-routing.module.d.ts create mode 100644 src/app/modules/home/pages/ota-update/ota-update-table-config.resolve.d.ts create mode 100644 src/app/modules/home/pages/ota-update/ota-update.component.d.ts create mode 100644 src/app/modules/home/pages/ota-update/ota-update.module.d.ts create mode 100644 src/app/modules/home/pages/profile/change-password-dialog.component.d.ts create mode 100644 src/app/modules/home/pages/profile/profile-routing.module.d.ts create mode 100644 src/app/modules/home/pages/profile/profile.component.d.ts create mode 100644 src/app/modules/home/pages/profile/profile.module.d.ts create mode 100644 src/app/modules/home/pages/rulechain/link-labels.component.d.ts create mode 100644 src/app/modules/home/pages/rulechain/rule-node-config.component.d.ts create mode 100644 src/app/modules/home/pages/rulechain/rule-node-details.component.d.ts create mode 100644 src/app/modules/home/pages/rulechain/rule-node-link.component.d.ts create mode 100644 src/app/modules/home/pages/rulechain/rulechain-page.component.d.ts create mode 100644 src/app/modules/home/pages/rulechain/rulechain-page.models.d.ts create mode 100644 src/app/modules/home/pages/rulechain/rulechain-routing.module.d.ts create mode 100644 src/app/modules/home/pages/rulechain/rulechain-tabs.component.d.ts create mode 100644 src/app/modules/home/pages/rulechain/rulechain.component.d.ts create mode 100644 src/app/modules/home/pages/rulechain/rulechain.module.d.ts create mode 100644 src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.d.ts create mode 100644 src/app/modules/home/pages/rulechain/rulenode.component.d.ts create mode 100644 src/app/modules/home/pages/tenant-profile/tenant-profile-routing.module.d.ts create mode 100644 src/app/modules/home/pages/tenant-profile/tenant-profile-tabs.component.d.ts create mode 100644 src/app/modules/home/pages/tenant-profile/tenant-profile.module.d.ts create mode 100644 src/app/modules/home/pages/tenant-profile/tenant-profiles-table-config.resolver.d.ts create mode 100644 src/app/modules/home/pages/tenant/tenant-routing.module.d.ts create mode 100644 src/app/modules/home/pages/tenant/tenant-tabs.component.d.ts create mode 100644 src/app/modules/home/pages/tenant/tenant.component.d.ts create mode 100644 src/app/modules/home/pages/tenant/tenant.module.d.ts create mode 100644 src/app/modules/home/pages/tenant/tenants-table-config.resolver.d.ts create mode 100644 src/app/modules/home/pages/user/activation-link-dialog.component.d.ts create mode 100644 src/app/modules/home/pages/user/add-user-dialog.component.d.ts create mode 100644 src/app/modules/home/pages/user/user-routing.module.d.ts create mode 100644 src/app/modules/home/pages/user/user-tabs.component.d.ts create mode 100644 src/app/modules/home/pages/user/user.component.d.ts create mode 100644 src/app/modules/home/pages/user/user.module.d.ts create mode 100644 src/app/modules/home/pages/user/users-table-config.resolver.d.ts create mode 100644 src/app/modules/home/pages/widget/save-widget-type-as-dialog.component.d.ts create mode 100644 src/app/modules/home/pages/widget/select-widget-type-dialog.component.d.ts create mode 100644 src/app/modules/home/pages/widget/widget-editor.component.d.ts create mode 100644 src/app/modules/home/pages/widget/widget-editor.models.d.ts create mode 100644 src/app/modules/home/pages/widget/widget-library-routing.module.d.ts create mode 100644 src/app/modules/home/pages/widget/widget-library.component.d.ts create mode 100644 src/app/modules/home/pages/widget/widget-library.module.d.ts create mode 100644 src/app/modules/home/pages/widget/widgets-bundle.component.d.ts create mode 100644 src/app/modules/home/pages/widget/widgets-bundles-table-config.resolver.d.ts create mode 100644 src/app/modules/login/login-routing.module.d.ts create mode 100644 src/app/modules/login/login.module.d.ts create mode 100644 src/app/modules/login/pages/login/create-password.component.d.ts create mode 100644 src/app/modules/login/pages/login/login.component.d.ts create mode 100644 src/app/modules/login/pages/login/reset-password-request.component.d.ts create mode 100644 src/app/modules/login/pages/login/reset-password.component.d.ts create mode 100644 src/app/shared/animations/speed-dial-fab.animations.d.ts create mode 100644 src/app/shared/components/breadcrumb.component.d.ts create mode 100644 src/app/shared/components/breadcrumb.d.ts create mode 100644 src/app/shared/components/button/copy-button.component.d.ts create mode 100644 src/app/shared/components/button/toggle-password.component.d.ts create mode 100644 src/app/shared/components/cheatsheet.component.d.ts create mode 100644 src/app/shared/components/circular-progress.directive.d.ts create mode 100644 src/app/shared/components/color-input.component.d.ts create mode 100644 src/app/shared/components/contact.component.d.ts create mode 100644 src/app/shared/components/css.component.d.ts create mode 100644 src/app/shared/components/dashboard-autocomplete.component.d.ts create mode 100644 src/app/shared/components/dashboard-select-panel.component.d.ts create mode 100644 src/app/shared/components/dashboard-select.component.d.ts create mode 100644 src/app/shared/components/dialog.component.d.ts create mode 100644 src/app/shared/components/dialog/alert-dialog.component.d.ts create mode 100644 src/app/shared/components/dialog/color-picker-dialog.component.d.ts create mode 100644 src/app/shared/components/dialog/confirm-dialog.component.d.ts create mode 100644 src/app/shared/components/dialog/json-object-edit-dialog.component.d.ts create mode 100644 src/app/shared/components/dialog/material-icons-dialog.component.d.ts create mode 100644 src/app/shared/components/dialog/node-script-test-dialog.component.d.ts create mode 100644 src/app/shared/components/dialog/todo-dialog.component.d.ts create mode 100644 src/app/shared/components/directives/component-outlet.directive.d.ts create mode 100644 src/app/shared/components/directives/sring-template-outlet.directive.d.ts create mode 100644 src/app/shared/components/directives/tb-json-to-string.directive.d.ts create mode 100644 src/app/shared/components/entity/entity-autocomplete.component.d.ts create mode 100644 src/app/shared/components/entity/entity-gateway-select.component.d.ts create mode 100644 src/app/shared/components/entity/entity-keys-list.component.d.ts create mode 100644 src/app/shared/components/entity/entity-list-select.component.d.ts create mode 100644 src/app/shared/components/entity/entity-list.component.d.ts create mode 100644 src/app/shared/components/entity/entity-select.component.d.ts create mode 100644 src/app/shared/components/entity/entity-subtype-autocomplete.component.d.ts create mode 100644 src/app/shared/components/entity/entity-subtype-list.component.d.ts create mode 100644 src/app/shared/components/entity/entity-subtype-select.component.d.ts create mode 100644 src/app/shared/components/entity/entity-type-list.component.d.ts create mode 100644 src/app/shared/components/entity/entity-type-select.component.d.ts create mode 100644 src/app/shared/components/fab-toolbar.component.d.ts create mode 100644 src/app/shared/components/file-input.component.d.ts create mode 100644 src/app/shared/components/footer-fab-buttons.component.d.ts create mode 100644 src/app/shared/components/footer.component.d.ts create mode 100644 src/app/shared/components/fullscreen.directive.d.ts create mode 100644 src/app/shared/components/help-markdown.component.d.ts create mode 100644 src/app/shared/components/help-popup.component.d.ts create mode 100644 src/app/shared/components/help.component.d.ts create mode 100644 src/app/shared/components/hotkeys.directive.d.ts create mode 100644 src/app/shared/components/image-input.component.d.ts create mode 100644 src/app/shared/components/js-func.component.d.ts create mode 100644 src/app/shared/components/json-content.component.d.ts create mode 100644 src/app/shared/components/json-form/json-form-component.models.d.ts create mode 100644 src/app/shared/components/json-form/json-form.component.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-ace-editor.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-array.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-base-component.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-checkbox.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-color.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-css.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-date.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-fieldset.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-help.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-html.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-icon.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-image.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-javascript.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-json.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-markdown.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-number.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-radios.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-rc-select.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-react.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-schema-form.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-select.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-text.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form-utils.d.ts create mode 100644 src/app/shared/components/json-form/react/json-form.models.d.ts create mode 100644 src/app/shared/components/json-form/react/styles/thingsboardTheme.d.ts create mode 100644 src/app/shared/components/json-object-edit.component.d.ts create mode 100644 src/app/shared/components/json-object-view.component.d.ts create mode 100644 src/app/shared/components/kv-map.component.d.ts create mode 100644 src/app/shared/components/led-light.component.d.ts create mode 100644 src/app/shared/components/logo.component.d.ts create mode 100644 src/app/shared/components/markdown.component.d.ts create mode 100644 src/app/shared/components/marked-options.service.d.ts create mode 100644 src/app/shared/components/mat-chip-draggable.directive.d.ts create mode 100644 src/app/shared/components/material-icon-select.component.d.ts create mode 100644 src/app/shared/components/message-type-autocomplete.component.d.ts create mode 100644 src/app/shared/components/nav-tree.component.d.ts create mode 100644 src/app/shared/components/ota-package/ota-package-autocomplete.component.d.ts create mode 100644 src/app/shared/components/page.component.d.ts create mode 100644 src/app/shared/components/popover.component.d.ts create mode 100644 src/app/shared/components/popover.models.d.ts create mode 100644 src/app/shared/components/popover.service.d.ts create mode 100644 src/app/shared/components/protobuf-content.component.d.ts create mode 100644 src/app/shared/components/public-api.d.ts create mode 100644 src/app/shared/components/queue/queue-type-list.component.d.ts create mode 100644 src/app/shared/components/relation/relation-type-autocomplete.component.d.ts create mode 100644 src/app/shared/components/socialshare-panel.component.d.ts create mode 100644 src/app/shared/components/tb-anchor.component.d.ts create mode 100644 src/app/shared/components/tb-checkbox.component.d.ts create mode 100644 src/app/shared/components/tb-error.component.d.ts create mode 100644 src/app/shared/components/time/datetime-period.component.d.ts create mode 100644 src/app/shared/components/time/datetime.component.d.ts create mode 100644 src/app/shared/components/time/history-selector/history-selector.component.d.ts create mode 100644 src/app/shared/components/time/quick-time-interval.component.d.ts create mode 100644 src/app/shared/components/time/timeinterval.component.d.ts create mode 100644 src/app/shared/components/time/timewindow-panel.component.d.ts create mode 100644 src/app/shared/components/time/timewindow.component.d.ts create mode 100644 src/app/shared/components/time/timezone-select.component.d.ts create mode 100644 src/app/shared/components/toast.directive.d.ts create mode 100644 src/app/shared/components/tokens.d.ts create mode 100644 src/app/shared/components/user-menu.component.d.ts create mode 100644 src/app/shared/components/value-input.component.d.ts create mode 100644 src/app/shared/components/widgets-bundle-search.component.d.ts create mode 100644 src/app/shared/components/widgets-bundle-select.component.d.ts create mode 100644 src/app/shared/decorators/enumerable.d.ts create mode 100644 src/app/shared/decorators/tb-inject.d.ts create mode 100644 src/app/shared/models/ace/ace.models.d.ts create mode 100644 src/app/shared/models/ace/completion.models.d.ts create mode 100644 src/app/shared/models/ace/service-completion.models.d.ts create mode 100644 src/app/shared/models/ace/widget-completion.models.d.ts create mode 100644 src/app/shared/models/alarm.models.d.ts create mode 100644 src/app/shared/models/alias.models.d.ts create mode 100644 src/app/shared/models/asset.models.d.ts create mode 100644 src/app/shared/models/audit-log.models.d.ts create mode 100644 src/app/shared/models/authority.enum.d.ts create mode 100644 src/app/shared/models/base-data.d.ts create mode 100644 src/app/shared/models/beautify.models.d.ts create mode 100644 src/app/shared/models/component-descriptor.models.d.ts create mode 100644 src/app/shared/models/constants.d.ts create mode 100644 src/app/shared/models/contact-based.model.d.ts create mode 100644 src/app/shared/models/customer.model.d.ts create mode 100644 src/app/shared/models/dashboard.models.d.ts create mode 100644 src/app/shared/models/device.models.d.ts create mode 100644 src/app/shared/models/edge.models.d.ts create mode 100644 src/app/shared/models/entity-type.models.d.ts create mode 100644 src/app/shared/models/entity-view.models.d.ts create mode 100644 src/app/shared/models/entity.models.d.ts create mode 100644 src/app/shared/models/error.models.d.ts create mode 100644 src/app/shared/models/event.models.d.ts create mode 100644 src/app/shared/models/id/alarm-id.d.ts create mode 100644 src/app/shared/models/id/asset-id.d.ts create mode 100644 src/app/shared/models/id/audit-log-id.d.ts create mode 100644 src/app/shared/models/id/customer-id.d.ts create mode 100644 src/app/shared/models/id/dashboard-id.d.ts create mode 100644 src/app/shared/models/id/device-credentials-id.d.ts create mode 100644 src/app/shared/models/id/device-id.d.ts create mode 100644 src/app/shared/models/id/device-profile-id.d.ts create mode 100644 src/app/shared/models/id/edge-id.d.ts create mode 100644 src/app/shared/models/id/entity-id.d.ts create mode 100644 src/app/shared/models/id/entity-view-id.d.ts create mode 100644 src/app/shared/models/id/event-id.d.ts create mode 100644 src/app/shared/models/id/has-uuid.d.ts create mode 100644 src/app/shared/models/id/ota-package-id.d.ts create mode 100644 src/app/shared/models/id/public-api.d.ts create mode 100644 src/app/shared/models/id/rpc-id.d.ts create mode 100644 src/app/shared/models/id/rule-chain-id.d.ts create mode 100644 src/app/shared/models/id/rule-node-id.d.ts create mode 100644 src/app/shared/models/id/tb-resource-id.d.ts create mode 100644 src/app/shared/models/id/tenant-id.d.ts create mode 100644 src/app/shared/models/id/tenant-profile-id.d.ts create mode 100644 src/app/shared/models/id/user-id.d.ts create mode 100644 src/app/shared/models/id/widget-type-id.d.ts create mode 100644 src/app/shared/models/id/widgets-bundle-id.d.ts create mode 100644 src/app/shared/models/login.models.d.ts create mode 100644 src/app/shared/models/lwm2m-security-config.models.d.ts create mode 100644 src/app/shared/models/material.models.d.ts create mode 100644 src/app/shared/models/oauth2.models.d.ts create mode 100644 src/app/shared/models/ota-package.models.d.ts create mode 100644 src/app/shared/models/page/page-data.d.ts create mode 100644 src/app/shared/models/page/page-link.d.ts create mode 100644 src/app/shared/models/page/public-api.d.ts create mode 100644 src/app/shared/models/page/sort-order.d.ts create mode 100644 src/app/shared/models/public-api.d.ts create mode 100644 src/app/shared/models/query/query.models.d.ts create mode 100644 src/app/shared/models/queue.models.d.ts create mode 100644 src/app/shared/models/relation.models.d.ts create mode 100644 src/app/shared/models/resource.models.d.ts create mode 100644 src/app/shared/models/rpc.models.d.ts create mode 100644 src/app/shared/models/rule-chain.models.d.ts create mode 100644 src/app/shared/models/rule-node.models.d.ts create mode 100644 src/app/shared/models/settings.models.d.ts create mode 100644 src/app/shared/models/telemetry/telemetry.models.d.ts create mode 100644 src/app/shared/models/tenant.model.d.ts create mode 100644 src/app/shared/models/time/time.models.d.ts create mode 100644 src/app/shared/models/user.model.d.ts create mode 100644 src/app/shared/models/widget.models.d.ts create mode 100644 src/app/shared/models/widgets-bundle.model.d.ts create mode 100644 src/app/shared/models/window-message.model.d.ts create mode 100644 src/app/shared/pipe/enum-to-array.pipe.d.ts create mode 100644 src/app/shared/pipe/file-size.pipe.d.ts create mode 100644 src/app/shared/pipe/highlight.pipe.d.ts create mode 100644 src/app/shared/pipe/keyboard-shortcut.pipe.d.ts create mode 100644 src/app/shared/pipe/milliseconds-to-time-string.pipe.d.ts create mode 100644 src/app/shared/pipe/nospace.pipe.d.ts create mode 100644 src/app/shared/pipe/public-api.d.ts create mode 100644 src/app/shared/pipe/safe.pipe.d.ts create mode 100644 src/app/shared/pipe/selectable-columns.pipe.d.ts create mode 100644 src/app/shared/pipe/tbJson.pipe.d.ts create mode 100644 src/app/shared/pipe/truncate.pipe.d.ts create mode 100644 src/app/shared/public-api.d.ts create mode 100644 src/app/shared/shared.module.d.ts create mode 100644 src/environments/environment.d.ts create mode 100644 src/main.d.ts create mode 100644 src/polyfills.d.ts create mode 100644 src/zone-flags.d.ts diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..5baa5039 --- /dev/null +++ b/.gitignore @@ -0,0 +1,35 @@ +# See http://help.github.com/ignore-files/ for more about ignoring files. + +# dependencies +/node_modules + +# IDEs and editors +/.idea +.project +.classpath +.c9/ +*.launch +.settings/ +*.sublime-workspace + +# IDE - VSCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +.history/* + +# misc +/.sass-cache +/connect.lock +/coverage +/libpeerconnection.log +npm-debug.log +yarn-error.log +testem.log +/typings + +# System Files +.DS_Store +Thumbs.db diff --git a/package.json b/package.json new file mode 100755 index 00000000..20af40da --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "thingsboard-types", + "version": "3.3.3", + "description": "TypeScript definitions for ThingsBoard", + "homepage": "https://github.com/vvlladd28/thingsboard-types", + "license": "MIT", + "main": "", + "types": "app/app.module.d,ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/jstree" + }, + "scripts": {}, + "dependencies": { + }, + "typeScriptVersion": "4.3.5" +} diff --git a/src/app/app-routing.module.d.ts b/src/app/app-routing.module.d.ts new file mode 100644 index 00000000..0ee1bac5 --- /dev/null +++ b/src/app/app-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class AppRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/app.component.d.ts b/src/app/app.component.d.ts new file mode 100644 index 00000000..15b8fd91 --- /dev/null +++ b/src/app/app.component.d.ts @@ -0,0 +1,25 @@ +import 'hammerjs'; +import { OnInit } from '@angular/core'; +import { TranslateService } from '@ngx-translate/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { LocalStorageService } from '@core/local-storage/local-storage.service'; +import { DomSanitizer } from '@angular/platform-browser'; +import { MatIconRegistry } from '@angular/material/icon'; +import { AuthService } from '@core/auth/auth.service'; +import * as i0 from "@angular/core"; +export declare class AppComponent implements OnInit { + private store; + private storageService; + private translate; + private matIconRegistry; + private domSanitizer; + private authService; + constructor(store: Store, storageService: LocalStorageService, translate: TranslateService, matIconRegistry: MatIconRegistry, domSanitizer: DomSanitizer, authService: AuthService); + setupTranslate(): void; + setupAuth(): void; + ngOnInit(): void; + onActivateComponent($event: any): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/app.module.d.ts b/src/app/app.module.d.ts new file mode 100644 index 00000000..bfdd0205 --- /dev/null +++ b/src/app/app.module.d.ts @@ -0,0 +1,20 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +import * as i2 from "./app.component"; +import * as i3 from "@angular/platform-browser"; +import * as i4 from "@angular/platform-browser/animations"; +import * as i5 from "./app-routing.module"; +import * as i6 from "@core/core.module"; +import * as i7 from "@modules/login/login.module"; +import * as i8 from "@home/home.module"; +import * as i9 from "@modules/dashboard/dashboard-routing.module"; +export declare class PageNotFoundRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} +export declare class AppModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/core/api/alarm-data-subscription.d.ts b/src/app/core/api/alarm-data-subscription.d.ts new file mode 100644 index 00000000..14ca7f86 --- /dev/null +++ b/src/app/core/api/alarm-data-subscription.d.ts @@ -0,0 +1,37 @@ +import { DataKeyType, TelemetryService } from '@shared/models/telemetry/telemetry.models'; +import { DatasourceType } from '@shared/models/widget.models'; +import { AlarmDataPageLink, EntityFilter, KeyFilter } from '@shared/models/query/query.models'; +import { SubscriptionTimewindow } from '@shared/models/time/time.models'; +import { AlarmDataListener } from '@core/api/alarm-data.service'; +export interface AlarmSubscriptionDataKey { + name: string; + type: DataKeyType; +} +export interface AlarmDataSubscriptionOptions { + datasourceType: DatasourceType; + dataKeys: Array; + entityFilter?: EntityFilter; + pageLink?: AlarmDataPageLink; + keyFilters?: Array; + additionalKeyFilters?: Array; + subscriptionTimewindow?: SubscriptionTimewindow; +} +export declare class AlarmDataSubscription { + private listener; + private telemetryService; + private alarmDataSubscriptionOptions; + private datasourceType; + private history; + private realtime; + private subscriber; + private alarmDataCommand; + private pageData; + private alarmIdToDataIndex; + private subsTw; + constructor(listener: AlarmDataListener, telemetryService: TelemetryService); + unsubscribe(): void; + subscribe(): void; + private resetData; + private onPageData; + private onDataUpdate; +} diff --git a/src/app/core/api/alarm-data.service.d.ts b/src/app/core/api/alarm-data.service.d.ts new file mode 100644 index 00000000..b37c389e --- /dev/null +++ b/src/app/core/api/alarm-data.service.d.ts @@ -0,0 +1,24 @@ +import { SubscriptionTimewindow } from '@shared/models/time/time.models'; +import { Datasource } from '@shared/models/widget.models'; +import { PageData } from '@shared/models/page/page-data'; +import { AlarmData, AlarmDataPageLink, KeyFilter } from '@shared/models/query/query.models'; +import { TelemetryWebsocketService } from '@core/ws/telemetry-websocket.service'; +import { AlarmDataSubscription, AlarmDataSubscriptionOptions } from '@core/api/alarm-data-subscription'; +import * as i0 from "@angular/core"; +export interface AlarmDataListener { + subscriptionTimewindow?: SubscriptionTimewindow; + alarmSource: Datasource; + alarmsLoaded: (pageData: PageData, allowedEntities: number, totalEntities: number) => void; + alarmsUpdated: (update: Array, pageData: PageData) => void; + alarmDataSubscriptionOptions?: AlarmDataSubscriptionOptions; + subscription?: AlarmDataSubscription; +} +export declare class AlarmDataService { + private telemetryService; + constructor(telemetryService: TelemetryWebsocketService); + subscribeForAlarms(listener: AlarmDataListener, pageLink: AlarmDataPageLink, keyFilters: KeyFilter[]): void; + stopSubscription(listener: AlarmDataListener): void; + private createAlarmSubscriptionOptions; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/api/alias-controller.d.ts b/src/app/core/api/alias-controller.d.ts new file mode 100644 index 00000000..f5218eb8 --- /dev/null +++ b/src/app/core/api/alias-controller.d.ts @@ -0,0 +1,54 @@ +import { AliasInfo, IAliasController, StateControllerHolder, StateEntityInfo } from '@core/api/widget-api.models'; +import { Observable, Subject } from 'rxjs'; +import { Datasource } from '@app/shared/models/widget.models'; +import { EntityService } from '@core/http/entity.service'; +import { UtilsService } from '@core/services/utils.service'; +import { EntityAliases } from '@shared/models/alias.models'; +import { EntityInfo } from '@shared/models/entity.models'; +import { Filter, FilterInfo, Filters, KeyFilter } from '@shared/models/query/query.models'; +import { TranslateService } from '@ngx-translate/core'; +export declare class AliasController implements IAliasController { + private utils; + private entityService; + private translate; + private stateControllerHolder; + private origEntityAliases; + private origFilters; + entityAliasesChangedSubject: Subject; + entityAliasesChanged: Observable>; + filtersChangedSubject: Subject; + filtersChanged: Observable>; + private entityAliasResolvedSubject; + entityAliasResolved: Observable; + entityAliases: EntityAliases; + filters: Filters; + userFilters: Filters; + resolvedAliases: { + [aliasId: string]: AliasInfo; + }; + resolvedAliasesObservable: { + [aliasId: string]: Observable; + }; + resolvedAliasesToStateEntities: { + [aliasId: string]: StateEntityInfo; + }; + constructor(utils: UtilsService, entityService: EntityService, translate: TranslateService, stateControllerHolder: StateControllerHolder, origEntityAliases: EntityAliases, origFilters: Filters); + updateEntityAliases(newEntityAliases: EntityAliases): void; + updateFilters(newFilters: Filters): void; + updateAliases(aliasIds?: Array): void; + dashboardStateChanged(): void; + setAliasUnresolved(aliasId: string): void; + getEntityAliases(): EntityAliases; + getFilters(): Filters; + getFilterInfo(filterId: string): FilterInfo; + getKeyFilters(filterId: string): Array; + getEntityAliasId(aliasName: string): string; + getAliasInfo(aliasId: string): Observable; + resolveSingleEntityInfo(aliasId: string): Observable; + private resolveDatasource; + resolveAlarmSource(alarmSource: Datasource): Observable; + resolveDatasources(datasources: Array, singleEntity?: boolean): Observable>; + getInstantAliasInfo(aliasId: string): AliasInfo; + updateCurrentAliasEntity(aliasId: string, currentEntity: EntityInfo): void; + updateUserFilter(filter: Filter): void; +} diff --git a/src/app/core/api/data-aggregator.d.ts b/src/app/core/api/data-aggregator.d.ts new file mode 100644 index 00000000..dffd4e02 --- /dev/null +++ b/src/app/core/api/data-aggregator.d.ts @@ -0,0 +1,38 @@ +import { SubscriptionData, SubscriptionDataHolder } from '@app/shared/models/telemetry/telemetry.models'; +import { SubscriptionTimewindow } from '@shared/models/time/time.models'; +import { UtilsService } from '@core/services/utils.service'; +export declare type onAggregatedData = (data: SubscriptionData, detectChanges: boolean) => void; +export declare class DataAggregator { + private onDataCb; + private tsKeyNames; + private subsTw; + private utils; + private ignoreDataUpdateOnIntervalTick; + private dataBuffer; + private data; + private readonly lastPrevKvPairData; + private aggregationMap; + private dataReceived; + private resetPending; + private updatedData; + private noAggregation; + private aggregationTimeout; + private readonly aggFunction; + private intervalTimeoutHandle; + private intervalScheduledTime; + private startTs; + private endTs; + private elapsed; + constructor(onDataCb: onAggregatedData, tsKeyNames: string[], subsTw: SubscriptionTimewindow, utils: UtilsService, ignoreDataUpdateOnIntervalTick: boolean); + updateOnDataCb(newOnDataCb: onAggregatedData): onAggregatedData; + reset(subsTw: SubscriptionTimewindow): void; + destroy(): void; + onData(data: SubscriptionDataHolder, update: boolean, history: boolean, detectChanges: boolean): void; + private calculateStartEndTs; + private onInterval; + private updateData; + private updateStateBounds; + private processAggregatedData; + private updateAggregatedData; + private convertValue; +} diff --git a/src/app/core/api/entity-data-subscription.d.ts b/src/app/core/api/entity-data-subscription.d.ts new file mode 100644 index 00000000..8fc4cb17 --- /dev/null +++ b/src/app/core/api/entity-data-subscription.d.ts @@ -0,0 +1,85 @@ +import { DatasourceType, widgetType } from '@shared/models/widget.models'; +import { SubscriptionTimewindow } from '@shared/models/time/time.models'; +import { EntityDataPageLink, EntityFilter, KeyFilter } from '@shared/models/query/query.models'; +import { DataKeyType, TelemetryService } from '@shared/models/telemetry/telemetry.models'; +import { UtilsService } from '@core/services/utils.service'; +import { EntityDataListener, EntityDataLoadResult } from '@core/api/entity-data.service'; +import { Observable } from 'rxjs'; +declare type DataKeyFunction = (time: number, prevValue: any) => any; +declare type DataKeyPostFunction = (time: number, value: any, prevValue: any, timePrev: number, prevOrigValue: any) => any; +export interface SubscriptionDataKey { + name: string; + type: DataKeyType; + funcBody: string; + func?: DataKeyFunction; + postFuncBody: string; + postFunc?: DataKeyPostFunction; + index?: number; + key?: string; + lastUpdateTime?: number; +} +export interface EntityDataSubscriptionOptions { + datasourceType: DatasourceType; + dataKeys: Array; + type: widgetType; + entityFilter?: EntityFilter; + isPaginatedDataSubscription?: boolean; + ignoreDataUpdateOnIntervalTick?: boolean; + pageLink?: EntityDataPageLink; + keyFilters?: Array; + additionalKeyFilters?: Array; + subscriptionTimewindow?: SubscriptionTimewindow; + latestTsOffset?: number; +} +export declare class EntityDataSubscription { + private listener; + private telemetryService; + private utils; + private entityDataSubscriptionOptions; + private datasourceType; + private history; + private realtime; + private subscriber; + private dataCommand; + private subsCommand; + private countCommand; + private attrFields; + private tsFields; + private latestValues; + private entityDataResolveSubject; + private pageData; + private subsTw; + private latestTsOffset; + private dataAggregators; + private dataKeys; + private datasourceData; + private datasourceOrigData; + private entityIdToDataIndex; + private frequency; + private tickScheduledTime; + private tickElapsed; + private timer; + private dataResolved; + private started; + constructor(listener: EntityDataListener, telemetryService: TelemetryService, utils: UtilsService); + private initializeSubscription; + unsubscribe(): void; + subscribe(): Observable; + start(): void; + private prepareSubscriptionCommands; + private startFunction; + private prepareData; + private resetData; + private onPageData; + private onDataUpdate; + private notifyListener; + private processEntityData; + private onData; + private convertValue; + private toSubscriptionData; + private createRealtimeDataAggregator; + private generateSeries; + private generateLatest; + private onTick; +} +export {}; diff --git a/src/app/core/api/entity-data.service.d.ts b/src/app/core/api/entity-data.service.d.ts new file mode 100644 index 00000000..350f0096 --- /dev/null +++ b/src/app/core/api/entity-data.service.d.ts @@ -0,0 +1,43 @@ +import { DataSetHolder, Datasource, widgetType } from '@shared/models/widget.models'; +import { SubscriptionTimewindow } from '@shared/models/time/time.models'; +import { EntityData, EntityDataPageLink, KeyFilter } from '@shared/models/query/query.models'; +import { PageData } from '@shared/models/page/page-data'; +import { TelemetryWebsocketService } from '@core/ws/telemetry-websocket.service'; +import { UtilsService } from '@core/services/utils.service'; +import { EntityDataSubscription, EntityDataSubscriptionOptions } from '@core/api/entity-data-subscription'; +import { Observable } from 'rxjs'; +import * as i0 from "@angular/core"; +export interface EntityDataListener { + subscriptionType: widgetType; + subscriptionTimewindow?: SubscriptionTimewindow; + latestTsOffset?: number; + configDatasource: Datasource; + configDatasourceIndex: number; + dataLoaded: (pageData: PageData, data: Array>, datasourceIndex: number, pageLink: EntityDataPageLink) => void; + dataUpdated: (data: DataSetHolder, datasourceIndex: number, dataIndex: number, dataKeyIndex: number, detectChanges: boolean) => void; + initialPageDataChanged?: (nextPageData: PageData) => void; + forceReInit?: () => void; + updateRealtimeSubscription?: () => SubscriptionTimewindow; + setRealtimeSubscription?: (subscriptionTimewindow: SubscriptionTimewindow) => void; + subscriptionOptions?: EntityDataSubscriptionOptions; + subscription?: EntityDataSubscription; +} +export interface EntityDataLoadResult { + pageData: PageData; + data: Array>; + datasourceIndex: number; + pageLink: EntityDataPageLink; +} +export declare class EntityDataService { + private telemetryService; + private utils; + constructor(telemetryService: TelemetryWebsocketService, utils: UtilsService); + private static isUnresolvedDatasource; + prepareSubscription(listener: EntityDataListener, ignoreDataUpdateOnIntervalTick?: boolean): Observable; + startSubscription(listener: EntityDataListener): void; + subscribeForPaginatedData(listener: EntityDataListener, pageLink: EntityDataPageLink, keyFilters: KeyFilter[], ignoreDataUpdateOnIntervalTick?: boolean): Observable; + stopSubscription(listener: EntityDataListener): void; + private createSubscriptionOptions; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/api/public-api.d.ts b/src/app/core/api/public-api.d.ts new file mode 100644 index 00000000..ae24ec1f --- /dev/null +++ b/src/app/core/api/public-api.d.ts @@ -0,0 +1,6 @@ +export * from './alias-controller'; +export * from './data-aggregator'; +export * from './entity-data.service'; +export * from './entity-data-subscription'; +export * from './widget-api.models'; +export * from './widget-subscription'; diff --git a/src/app/core/api/widget-api.models.d.ts b/src/app/core/api/widget-api.models.d.ts new file mode 100644 index 00000000..162c2d95 --- /dev/null +++ b/src/app/core/api/widget-api.models.d.ts @@ -0,0 +1,247 @@ +import { Observable } from 'rxjs'; +import { EntityId } from '@app/shared/models/id/entity-id'; +import { DataSet, Datasource, DatasourceData, DatasourceType, KeyInfo, LegendConfig, LegendData, WidgetActionDescriptor, widgetType } from '@shared/models/widget.models'; +import { TimeService } from '../services/time.service'; +import { DeviceService } from '../http/device.service'; +import { UtilsService } from '@core/services/utils.service'; +import { Timewindow, WidgetTimewindow } from '@shared/models/time/time.models'; +import { EntityType } from '@shared/models/entity-type.models'; +import { HttpErrorResponse } from '@angular/common/http'; +import { RafService } from '@core/services/raf.service'; +import { EntityAliases } from '@shared/models/alias.models'; +import { EntityInfo } from '@app/shared/models/entity.models'; +import { IDashboardComponent } from '@home/models/dashboard-component.models'; +import * as moment_ from 'moment'; +import { AlarmData, AlarmDataPageLink, EntityData, EntityDataPageLink, EntityFilter, Filter, FilterInfo, Filters, KeyFilter } from '@shared/models/query/query.models'; +import { EntityDataService } from '@core/api/entity-data.service'; +import { PageData } from '@shared/models/page/page-data'; +import { TranslateService } from '@ngx-translate/core'; +import { AlarmDataService } from '@core/api/alarm-data.service'; +import { IDashboardController } from '@home/components/dashboard-page/dashboard-page.models'; +import { PopoverPlacement } from '@shared/components/popover.models'; +import { PersistentRpc } from '@shared/models/rpc.models'; +export interface TimewindowFunctions { + onUpdateTimewindow: (startTimeMs: number, endTimeMs: number, interval?: number) => void; + onResetTimewindow: () => void; +} +export interface WidgetSubscriptionApi { + createSubscription: (options: WidgetSubscriptionOptions, subscribe?: boolean) => Observable; + createSubscriptionFromInfo: (type: widgetType, subscriptionsInfo: Array, options: WidgetSubscriptionOptions, useDefaultComponents: boolean, subscribe: boolean) => Observable; + removeSubscription: (id: string) => void; +} +export interface RpcApi { + sendOneWayCommand: (method: string, params?: any, timeout?: number, persistent?: boolean, persistentPollingInterval?: number, retries?: number, additionalInfo?: any, requestUUID?: string) => Observable; + sendTwoWayCommand: (method: string, params?: any, timeout?: number, persistent?: boolean, persistentPollingInterval?: number, retries?: number, additionalInfo?: any, requestUUID?: string) => Observable; + completedCommand: () => void; +} +export interface IWidgetUtils { + formatValue: (value: any, dec?: number, units?: string, showZeroDecimals?: boolean) => string | undefined; +} +export interface WidgetActionsApi { + actionDescriptorsBySourceId: { + [sourceId: string]: Array; + }; + getActionDescriptors: (actionSourceId: string) => Array; + handleWidgetAction: ($event: Event, descriptor: WidgetActionDescriptor, entityId?: EntityId, entityName?: string, additionalParams?: any, entityLabel?: string) => void; + elementClick: ($event: Event) => void; + getActiveEntityInfo: () => SubscriptionEntityInfo; + openDashboardStateInSeparateDialog: (targetDashboardStateId: string, params?: StateParams, dialogTitle?: string, hideDashboardToolbar?: boolean, dialogWidth?: number, dialogHeight?: number) => void; + openDashboardStateInPopover: ($event: Event, targetDashboardStateId: string, params?: StateParams, hideDashboardToolbar?: boolean, preferredPlacement?: PopoverPlacement, hideOnClickOutside?: boolean, popoverWidth?: string, popoverHeight?: string, popoverStyle?: { + [klass: string]: any; + }) => void; +} +export interface AliasInfo { + alias?: string; + stateEntity?: boolean; + entityFilter?: EntityFilter; + currentEntity?: EntityInfo; + entityParamName?: string; + resolveMultiple?: boolean; +} +export interface StateEntityInfo { + entityParamName: string; + entityId: EntityId; +} +export interface IAliasController { + entityAliasesChanged: Observable>; + entityAliasResolved: Observable; + filtersChanged: Observable>; + getAliasInfo(aliasId: string): Observable; + getEntityAliasId(aliasName: string): string; + getInstantAliasInfo(aliasId: string): AliasInfo; + resolveSingleEntityInfo(aliasId: string): Observable; + resolveDatasources(datasources: Array, singleEntity?: boolean): Observable>; + resolveAlarmSource(alarmSource: Datasource): Observable; + getEntityAliases(): EntityAliases; + getFilters(): Filters; + getFilterInfo(filterId: string): FilterInfo; + getKeyFilters(filterId: string): Array; + updateCurrentAliasEntity(aliasId: string, currentEntity: EntityInfo): any; + updateUserFilter(filter: Filter): any; + updateEntityAliases(entityAliases: EntityAliases): any; + updateFilters(filters: Filters): any; + updateAliases(aliasIds?: Array): any; + dashboardStateChanged(): any; +} +export interface StateObject { + id?: string; + params?: StateParams; +} +export interface StateParams { + entityName?: string; + entityLabel?: string; + targetEntityParamName?: string; + entityId?: EntityId; + [key: string]: any | null; +} +export declare type StateControllerHolder = () => IStateController; +export interface IStateController { + dashboardCtrl: IDashboardController; + getStateParams(): StateParams; + stateChanged(): Observable; + getStateParamsByStateId(stateId: string): StateParams; + openState(id: string, params?: StateParams, openRightLayout?: boolean): void; + updateState(id?: string, params?: StateParams, openRightLayout?: boolean): void; + resetState(): void; + openRightLayout(): void; + preserveState(): void; + cleanupPreservedStates(): void; + navigatePrevState(index: number): void; + getStateId(): string; + getStateIndex(): number; + getStateIdAtIndex(index: number): string; + getEntityId(entityParamName: string): EntityId; + getCurrentStateName(): string; +} +export interface SubscriptionInfo { + type: DatasourceType; + name?: string; + entityType?: EntityType; + entityId?: string; + entityIds?: Array; + entityName?: string; + entityNamePrefix?: string; + timeseries?: Array; + attributes?: Array; + functions?: Array; + alarmFields?: Array; + deviceId?: string; + deviceName?: string; + deviceNamePrefix?: string; + deviceIds?: Array; +} +export declare class WidgetSubscriptionContext { + private dashboard; + constructor(dashboard: IDashboardComponent); + get aliasController(): IAliasController; + dashboardTimewindowApi: TimewindowFunctions; + timeService: TimeService; + deviceService: DeviceService; + translate: TranslateService; + entityDataService: EntityDataService; + alarmDataService: AlarmDataService; + utils: UtilsService; + raf: RafService; + widgetUtils: IWidgetUtils; + getServerTimeDiff: () => Observable; +} +export declare type SubscriptionMessageSeverity = 'info' | 'warn' | 'error' | 'success'; +export interface SubscriptionMessage { + severity: SubscriptionMessageSeverity; + message: string; +} +export interface WidgetSubscriptionCallbacks { + onDataUpdated?: (subscription: IWidgetSubscription, detectChanges: boolean) => void; + onDataUpdateError?: (subscription: IWidgetSubscription, e: any) => void; + onSubscriptionMessage?: (subscription: IWidgetSubscription, message: SubscriptionMessage) => void; + onInitialPageDataChanged?: (subscription: IWidgetSubscription, nextPageData: PageData) => void; + forceReInit?: () => void; + dataLoading?: (subscription: IWidgetSubscription) => void; + legendDataUpdated?: (subscription: IWidgetSubscription, detectChanges: boolean) => void; + timeWindowUpdated?: (subscription: IWidgetSubscription, timeWindowConfig: Timewindow) => void; + rpcStateChanged?: (subscription: IWidgetSubscription) => void; + onRpcSuccess?: (subscription: IWidgetSubscription) => void; + onRpcFailed?: (subscription: IWidgetSubscription) => void; + onRpcErrorCleared?: (subscription: IWidgetSubscription) => void; +} +export interface WidgetSubscriptionOptions { + type?: widgetType; + stateData?: boolean; + alarmSource?: Datasource; + datasources?: Array; + datasourcesOptional?: boolean; + hasDataPageLink?: boolean; + singleEntity?: boolean; + warnOnPageDataOverflow?: boolean; + ignoreDataUpdateOnIntervalTick?: boolean; + targetDeviceAliasIds?: Array; + targetDeviceIds?: Array; + useDashboardTimewindow?: boolean; + displayTimewindow?: boolean; + timeWindowConfig?: Timewindow; + dashboardTimewindow?: Timewindow; + legendConfig?: LegendConfig; + comparisonEnabled?: boolean; + timeForComparison?: moment_.unitOfTime.DurationConstructor; + comparisonCustomIntervalValue?: number; + decimals?: number; + units?: string; + callbacks?: WidgetSubscriptionCallbacks; +} +export interface SubscriptionEntityInfo { + entityId: EntityId; + entityName: string; + entityLabel: string; + entityDescription: string; +} +export interface IWidgetSubscription { + options: WidgetSubscriptionOptions; + id: string; + init$: Observable; + ctx: WidgetSubscriptionContext; + type: widgetType; + callbacks: WidgetSubscriptionCallbacks; + loadingData: boolean; + useDashboardTimewindow: boolean; + legendData: LegendData; + datasourcePages?: PageData[]; + dataPages?: PageData>[]; + datasources?: Array; + data?: Array; + hiddenData?: Array<{ + data: DataSet; + }>; + timeWindowConfig?: Timewindow; + timeWindow?: WidgetTimewindow; + widgetTimewindowChanged$: Observable; + comparisonEnabled?: boolean; + comparisonTimeWindow?: WidgetTimewindow; + persistentRequests?: PageData; + alarms?: PageData; + alarmSource?: Datasource; + targetDeviceAliasIds?: Array; + targetDeviceIds?: Array; + rpcEnabled?: boolean; + executingRpcRequest?: boolean; + rpcErrorText?: string; + rpcRejection?: HttpErrorResponse; + getFirstEntityInfo(): SubscriptionEntityInfo; + onAliasesChanged(aliasIds: Array): boolean; + onFiltersChanged(filterIds: Array): boolean; + onDashboardTimewindowChanged(dashboardTimewindow: Timewindow): void; + updateDataVisibility(index: number): void; + onUpdateTimewindow(startTimeMs: number, endTimeMs: number, interval?: number): void; + onResetTimewindow(): void; + updateTimewindowConfig(newTimewindow: Timewindow): void; + sendOneWayCommand(method: string, params?: any, timeout?: number, persistent?: boolean, persistentPollingInterval?: number, retries?: number, additionalInfo?: any, requestUUID?: string): Observable; + sendTwoWayCommand(method: string, params?: any, timeout?: number, persistent?: boolean, persistentPollingInterval?: number, retries?: number, additionalInfo?: any, requestUUID?: string): Observable; + clearRpcError(): void; + subscribe(): void; + subscribeAllForPaginatedData(pageLink: EntityDataPageLink, keyFilters: KeyFilter[]): void; + subscribeForPaginatedData(datasourceIndex: number, pageLink: EntityDataPageLink, keyFilters: KeyFilter[]): Observable; + subscribeForAlarms(pageLink: AlarmDataPageLink, keyFilters: KeyFilter[]): void; + isDataResolved(): boolean; + destroy(): void; + update(): void; + [key: string]: any; +} diff --git a/src/app/core/api/widget-subscription.d.ts b/src/app/core/api/widget-subscription.d.ts new file mode 100644 index 00000000..183af9f3 --- /dev/null +++ b/src/app/core/api/widget-subscription.d.ts @@ -0,0 +1,133 @@ +import { IWidgetSubscription, SubscriptionEntityInfo, WidgetSubscriptionCallbacks, WidgetSubscriptionContext, WidgetSubscriptionOptions } from '@core/api/widget-api.models'; +import { DataSetHolder, Datasource, DatasourceData, LegendConfig, LegendData, widgetType } from '@app/shared/models/widget.models'; +import { HttpErrorResponse } from '@angular/common/http'; +import { ComparisonDuration, SubscriptionTimewindow, Timewindow, WidgetTimewindow } from '@app/shared/models/time/time.models'; +import { Observable, Subject } from 'rxjs'; +import { CancelAnimationFrame } from '@core/services/raf.service'; +import { PageData } from '@shared/models/page/page-data'; +import { EntityDataListener } from '@core/api/entity-data.service'; +import { AlarmData, AlarmDataPageLink, EntityDataPageLink, KeyFilter } from '@shared/models/query/query.models'; +import { AlarmDataListener } from '@core/api/alarm-data.service'; +export declare class WidgetSubscription implements IWidgetSubscription { + options: WidgetSubscriptionOptions; + id: string; + ctx: WidgetSubscriptionContext; + type: widgetType; + callbacks: WidgetSubscriptionCallbacks; + timeWindow: WidgetTimewindow; + originalTimewindow: Timewindow; + timeWindowConfig: Timewindow; + timezone: string; + subscriptionTimewindow: SubscriptionTimewindow; + useDashboardTimewindow: boolean; + tsOffset: number; + hasDataPageLink: boolean; + singleEntity: boolean; + warnOnPageDataOverflow: boolean; + ignoreDataUpdateOnIntervalTick: boolean; + datasourcePages: PageData[]; + dataPages: PageData>[]; + entityDataListeners: Array; + configuredDatasources: Array; + data: Array; + datasources: Array; + hiddenData: Array; + legendData: LegendData; + legendConfig: LegendConfig; + caulculateLegendData: boolean; + displayLegend: boolean; + stateData: boolean; + datasourcesOptional: boolean; + decimals: number; + units: string; + comparisonEnabled: boolean; + timeForComparison: ComparisonDuration; + comparisonCustomIntervalValue: number; + comparisonTimeWindow: WidgetTimewindow; + timewindowForComparison: SubscriptionTimewindow; + alarms: PageData; + alarmSource: Datasource; + alarmDataListener: AlarmDataListener; + loadingData: boolean; + targetDeviceAliasIds?: Array; + targetDeviceIds?: Array; + executingRpcRequest: boolean; + rpcEnabled: boolean; + rpcErrorText: string; + rpcRejection: HttpErrorResponse; + init$: Observable; + cafs: { + [cafId: string]: CancelAnimationFrame; + }; + hasResolvedData: boolean; + targetDeviceAliasId: string; + targetDeviceId: string; + targetDeviceName: string; + executingSubjects: Array>; + subscribed: boolean; + widgetTimewindowChangedSubject: Subject; + widgetTimewindowChanged$: Observable; + constructor(subscriptionContext: WidgetSubscriptionContext, options: WidgetSubscriptionOptions); + private initRpc; + private initAlarmSubscription; + private configureAlarmsData; + private initDataSubscription; + private prepareDataSubscriptions; + private resetData; + getFirstEntityInfo(): SubscriptionEntityInfo; + onAliasesChanged(aliasIds: Array): boolean; + onFiltersChanged(filterIds: Array): boolean; + private onDataUpdated; + private onSubscriptionMessage; + onDashboardTimewindowChanged(newDashboardTimewindow: Timewindow): void; + updateDataVisibility(index: number): void; + updateTimewindowConfig(newTimewindow: Timewindow): void; + onResetTimewindow(): void; + onUpdateTimewindow(startTimeMs: number, endTimeMs: number, interval?: number): void; + sendOneWayCommand(method: string, params?: any, timeout?: number, persistent?: boolean, persistentPollingInterval?: number, retries?: number, additionalInfo?: any, requestUUID?: string): Observable; + sendTwoWayCommand(method: string, params?: any, timeout?: number, persistent?: boolean, persistentPollingInterval?: number, retries?: number, additionalInfo?: any, requestUUID?: string): Observable; + clearRpcError(): void; + completedCommand(): void; + sendCommand(oneWayElseTwoWay: boolean, method: string, params?: any, timeout?: number, persistent?: boolean, persistentPollingInterval?: number, retries?: number, additionalInfo?: any, requestUUID?: string): Observable; + private extractRejectionErrorText; + private prepareMessageFromData; + update(isTimewindowTypeChanged?: boolean): void; + subscribe(): void; + subscribeAllForPaginatedData(pageLink: EntityDataPageLink, keyFilters: KeyFilter[]): Observable; + subscribeForPaginatedData(datasourceIndex: number, pageLink: EntityDataPageLink, keyFilters: KeyFilter[]): Observable; + subscribeForAlarms(pageLink: AlarmDataPageLink, keyFilters: KeyFilter[]): void; + private doSubscribe; + private updateDataTimewindow; + private dataSubscribe; + unsubscribe(): void; + private alarmsUnsubscribe; + private checkRpcTarget; + private checkAlarmSource; + private checkAlarmSourceFilters; + private updateAlarmSubscription; + private updateAlarmDataSubscription; + private checkSubscriptions; + private checkSubscriptionsFilters; + private updateDataSubscriptions; + private updatePaginatedDataSubscriptions; + isDataResolved(): boolean; + destroy(): void; + private notifyDataLoading; + private notifyDataLoaded; + private updateTimewindow; + private updateTsOffset; + private updateRealtimeSubscription; + private updateComparisonTimewindow; + private updateSubscriptionForComparison; + private initialPageDataChanged; + private forceReInit; + private dataLoaded; + private configureLoadedData; + private entityDataToDatasourceData; + private entityDataToDatasource; + private dataUpdated; + private alarmsLoaded; + private alarmsUpdated; + private updateLegend; + private loadStDiff; +} diff --git a/src/app/core/auth/auth.actions.d.ts b/src/app/core/auth/auth.actions.d.ts new file mode 100644 index 00000000..abd9c077 --- /dev/null +++ b/src/app/core/auth/auth.actions.d.ts @@ -0,0 +1,46 @@ +import { Action } from '@ngrx/store'; +import { User } from '@shared/models/user.model'; +import { AuthPayload } from '@core/auth/auth.models'; +export declare enum AuthActionTypes { + AUTHENTICATED = "[Auth] Authenticated", + UNAUTHENTICATED = "[Auth] Unauthenticated", + LOAD_USER = "[Auth] Load User", + UPDATE_USER_DETAILS = "[Auth] Update User Details", + UPDATE_LAST_PUBLIC_DASHBOARD_ID = "[Auth] Update Last Public Dashboard Id" +} +export declare class ActionAuthAuthenticated implements Action { + readonly payload: AuthPayload; + readonly type = AuthActionTypes.AUTHENTICATED; + constructor(payload: AuthPayload); +} +export declare class ActionAuthUnauthenticated implements Action { + readonly type = AuthActionTypes.UNAUTHENTICATED; +} +export declare class ActionAuthLoadUser implements Action { + readonly payload: { + isUserLoaded: boolean; + }; + readonly type = AuthActionTypes.LOAD_USER; + constructor(payload: { + isUserLoaded: boolean; + }); +} +export declare class ActionAuthUpdateUserDetails implements Action { + readonly payload: { + userDetails: User; + }; + readonly type = AuthActionTypes.UPDATE_USER_DETAILS; + constructor(payload: { + userDetails: User; + }); +} +export declare class ActionAuthUpdateLastPublicDashboardId implements Action { + readonly payload: { + lastPublicDashboardId: string; + }; + readonly type = AuthActionTypes.UPDATE_LAST_PUBLIC_DASHBOARD_ID; + constructor(payload: { + lastPublicDashboardId: string; + }); +} +export declare type AuthActions = ActionAuthAuthenticated | ActionAuthUnauthenticated | ActionAuthLoadUser | ActionAuthUpdateUserDetails | ActionAuthUpdateLastPublicDashboardId; diff --git a/src/app/core/auth/auth.models.d.ts b/src/app/core/auth/auth.models.d.ts new file mode 100644 index 00000000..899915bd --- /dev/null +++ b/src/app/core/auth/auth.models.d.ts @@ -0,0 +1,16 @@ +import { AuthUser, User } from '@shared/models/user.model'; +export interface SysParamsState { + userTokenAccessEnabled: boolean; + allowedDashboardIds: string[]; + edgesSupportEnabled: boolean; +} +export interface AuthPayload extends SysParamsState { + authUser: AuthUser; + userDetails: User; + forceFullscreen: boolean; +} +export interface AuthState extends AuthPayload { + isAuthenticated: boolean; + isUserLoaded: boolean; + lastPublicDashboardId: string; +} diff --git a/src/app/core/auth/auth.reducer.d.ts b/src/app/core/auth/auth.reducer.d.ts new file mode 100644 index 00000000..0932492c --- /dev/null +++ b/src/app/core/auth/auth.reducer.d.ts @@ -0,0 +1,4 @@ +import { AuthState } from './auth.models'; +import { AuthActions } from './auth.actions'; +export declare const initialState: AuthState; +export declare function authReducer(state: AuthState, action: AuthActions): AuthState; diff --git a/src/app/core/auth/auth.selectors.d.ts b/src/app/core/auth/auth.selectors.d.ts new file mode 100644 index 00000000..6c566016 --- /dev/null +++ b/src/app/core/auth/auth.selectors.d.ts @@ -0,0 +1,13 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '../core.state'; +import { AuthState } from './auth.models'; +import { AuthUser } from '@shared/models/user.model'; +export declare const selectAuthState: import("@ngrx/store").MemoizedSelector>; +export declare const selectAuth: import("@ngrx/store").MemoizedSelector>; +export declare const selectIsAuthenticated: import("@ngrx/store").MemoizedSelector>; +export declare const selectIsUserLoaded: import("@ngrx/store").MemoizedSelector>; +export declare const selectAuthUser: import("@ngrx/store").MemoizedSelector>; +export declare const selectUserDetails: import("@ngrx/store").MemoizedSelector>; +export declare const selectUserTokenAccessEnabled: import("@ngrx/store").MemoizedSelector>; +export declare function getCurrentAuthState(store: Store): AuthState; +export declare function getCurrentAuthUser(store: Store): AuthUser; diff --git a/src/app/core/auth/auth.service.d.ts b/src/app/core/auth/auth.service.d.ts new file mode 100644 index 00000000..efa9802d --- /dev/null +++ b/src/app/core/auth/auth.service.d.ts @@ -0,0 +1,80 @@ +import { NgZone } from '@angular/core'; +import { HttpClient } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { LoginRequest, LoginResponse } from '@shared/models/login.models'; +import { ActivatedRoute, Router, UrlTree } from '@angular/router'; +import { UserService } from '../http/user.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '../core.state'; +import { AuthState } from '@core/auth/auth.models'; +import { TranslateService } from '@ngx-translate/core'; +import { TimeService } from '@core/services/time.service'; +import { UtilsService } from '@core/services/utils.service'; +import { DashboardService } from '@core/http/dashboard.service'; +import { AdminService } from '@core/http/admin.service'; +import { MatDialog } from '@angular/material/dialog'; +import { OAuth2ClientInfo } from '@shared/models/oauth2.models'; +import * as i0 from "@angular/core"; +export declare class AuthService { + private store; + private http; + private userService; + private timeService; + private router; + private route; + private zone; + private utils; + private dashboardService; + private adminService; + private translate; + private dialog; + constructor(store: Store, http: HttpClient, userService: UserService, timeService: TimeService, router: Router, route: ActivatedRoute, zone: NgZone, utils: UtilsService, dashboardService: DashboardService, adminService: AdminService, translate: TranslateService, dialog: MatDialog); + redirectUrl: string; + oauth2Clients: Array; + private refreshTokenSubject; + private jwtHelper; + private static _storeGet; + private static isTokenValid; + static isJwtTokenValid(): boolean; + private static clearTokenData; + static getJwtToken(): string; + reloadUser(): void; + login(loginRequest: LoginRequest): Observable; + publicLogin(publicId: string): Observable; + sendResetPasswordLink(email: string): Observable; + activate(activateToken: string, password: string, sendActivationMail: boolean): Observable; + resetPassword(resetToken: string, password: string): Observable; + changePassword(currentPassword: string, newPassword: string): Observable; + activateByEmailCode(emailCode: string): Observable; + resendEmailActivation(email: string): Observable; + loginAsUser(userId: string): Observable; + logout(captureLastUrl?: boolean): void; + private notifyUserLoaded; + gotoDefaultPlace(isAuthenticated: boolean): void; + loadOAuth2Clients(): Observable>; + private forceDefaultPlace; + defaultUrl(isAuthenticated: boolean, authState?: AuthState, path?: string, params?: any): UrlTree; + private loadUser; + private showLoginErrorDialog; + private procceedJwtTokenValidate; + private loadIsUserTokenAccessEnabled; + loadIsEdgesSupportEnabled(): Observable; + private loadSystemParams; + refreshJwtToken(loadUserElseStoreJwtToken?: boolean): Observable; + private validateJwtToken; + refreshTokenPending(): boolean; + setUserFromJwtToken(jwtToken: any, refreshToken: any, notify: any): Observable; + private updateAndValidateTokens; + parsePublicId(): string; + private notifyUnauthenticated; + private notifyAuthenticated; + private notifyUserLang; + private updateAndValidateToken; + private clearJwtToken; + private userForceFullscreen; + private userHasProfile; + private userHasDefaultDashboard; + private fetchAllowedDashboardIds; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/core.module.d.ts b/src/app/core/core.module.d.ts new file mode 100644 index 00000000..744e00f9 --- /dev/null +++ b/src/app/core/core.module.d.ts @@ -0,0 +1,20 @@ +import { HttpClient } from '@angular/common/http'; +import { TranslateHttpLoader } from '@ngx-translate/http-loader'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/common"; +import * as i2 from "@angular/common/http"; +import * as i3 from "@angular/flex-layout"; +import * as i4 from "@angular/material/dialog"; +import * as i5 from "@angular/material/button"; +import * as i6 from "@angular/material/snack-bar"; +import * as i7 from "@ngx-translate/core"; +import * as i8 from "angular2-hotkeys"; +import * as i9 from "@ngrx/store"; +import * as i10 from "@ngrx/effects"; +import * as i11 from "@ngrx/store-devtools"; +export declare function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader; +export declare class CoreModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/core/core.state.d.ts b/src/app/core/core.state.d.ts new file mode 100644 index 00000000..e41c35f0 --- /dev/null +++ b/src/app/core/core.state.d.ts @@ -0,0 +1,15 @@ +import { ActionReducerMap, MetaReducer } from '@ngrx/store'; +import { LoadState } from './interceptors/load.models'; +import { AuthState } from './auth/auth.models'; +import { SettingsState } from '@app/core/settings/settings.models'; +import { Type } from '@angular/core'; +import { NotificationState } from '@app/core/notification/notification.models'; +export declare const reducers: ActionReducerMap; +export declare const metaReducers: MetaReducer[]; +export declare const effects: Type[]; +export interface AppState { + load: LoadState; + auth: AuthState; + settings: SettingsState; + notification: NotificationState; +} diff --git a/src/app/core/guards/auth.guard.d.ts b/src/app/core/guards/auth.guard.d.ts new file mode 100644 index 00000000..636fc801 --- /dev/null +++ b/src/app/core/guards/auth.guard.d.ts @@ -0,0 +1,28 @@ +import { NgZone } from '@angular/core'; +import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, Router, RouterStateSnapshot } from '@angular/router'; +import { AuthService } from '../auth/auth.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '../core.state'; +import { AuthState } from '../auth/auth.models'; +import { Observable } from 'rxjs'; +import { DialogService } from '@core/services/dialog.service'; +import { TranslateService } from '@ngx-translate/core'; +import { UtilsService } from '@core/services/utils.service'; +import { MobileService } from '@core/services/mobile.service'; +import * as i0 from "@angular/core"; +export declare class AuthGuard implements CanActivate, CanActivateChild { + private store; + private router; + private authService; + private dialogService; + private utils; + private translate; + private mobileService; + private zone; + constructor(store: Store, router: Router, authService: AuthService, dialogService: DialogService, utils: UtilsService, translate: TranslateService, mobileService: MobileService, zone: NgZone); + getAuthState(): Observable; + canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable; + canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/guards/confirm-on-exit.guard.d.ts b/src/app/core/guards/confirm-on-exit.guard.d.ts new file mode 100644 index 00000000..b16525d1 --- /dev/null +++ b/src/app/core/guards/confirm-on-exit.guard.d.ts @@ -0,0 +1,22 @@ +import { ActivatedRouteSnapshot, CanDeactivate, RouterStateSnapshot } from '@angular/router'; +import { FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { DialogService } from '@core/services/dialog.service'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export interface HasConfirmForm { + confirmForm(): FormGroup; +} +export interface HasDirtyFlag { + isDirty: boolean; +} +export declare class ConfirmOnExitGuard implements CanDeactivate { + private store; + private dialogService; + private translate; + constructor(store: Store, dialogService: DialogService, translate: TranslateService); + canDeactivate(component: HasConfirmForm & HasDirtyFlag, route: ActivatedRouteSnapshot, state: RouterStateSnapshot): true | import("rxjs").Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/admin.service.d.ts b/src/app/core/http/admin.service.d.ts new file mode 100644 index 00000000..e6e885cc --- /dev/null +++ b/src/app/core/http/admin.service.d.ts @@ -0,0 +1,18 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { AdminSettings, MailServerSettings, SecuritySettings, TestSmsRequest, UpdateMessage } from '@shared/models/settings.models'; +import * as i0 from "@angular/core"; +export declare class AdminService { + private http; + constructor(http: HttpClient); + getAdminSettings(key: string, config?: RequestConfig): Observable>; + saveAdminSettings(adminSettings: AdminSettings, config?: RequestConfig): Observable>; + sendTestMail(adminSettings: AdminSettings, config?: RequestConfig): Observable; + sendTestSms(testSmsRequest: TestSmsRequest, config?: RequestConfig): Observable; + getSecuritySettings(config?: RequestConfig): Observable; + saveSecuritySettings(securitySettings: SecuritySettings, config?: RequestConfig): Observable; + checkUpdates(config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/alarm.service.d.ts b/src/app/core/http/alarm.service.d.ts new file mode 100644 index 00000000..e4737712 --- /dev/null +++ b/src/app/core/http/alarm.service.d.ts @@ -0,0 +1,23 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { PageData } from '@shared/models/page/page-data'; +import { EntityId } from '@shared/models/id/entity-id'; +import { Alarm, AlarmInfo, AlarmQuery, AlarmSearchStatus, AlarmSeverity, AlarmStatus } from '@shared/models/alarm.models'; +import { UtilsService } from '@core/services/utils.service'; +import * as i0 from "@angular/core"; +export declare class AlarmService { + private http; + private utils; + constructor(http: HttpClient, utils: UtilsService); + getAlarm(alarmId: string, config?: RequestConfig): Observable; + getAlarmInfo(alarmId: string, config?: RequestConfig): Observable; + saveAlarm(alarm: Alarm, config?: RequestConfig): Observable; + ackAlarm(alarmId: string, config?: RequestConfig): Observable; + clearAlarm(alarmId: string, config?: RequestConfig): Observable; + deleteAlarm(alarmId: string, config?: RequestConfig): Observable; + getAlarms(query: AlarmQuery, config?: RequestConfig): Observable>; + getHighestAlarmSeverity(entityId: EntityId, alarmSearchStatus: AlarmSearchStatus, alarmStatus: AlarmStatus, config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/asset.service.d.ts b/src/app/core/http/asset.service.d.ts new file mode 100644 index 00000000..135a3cb1 --- /dev/null +++ b/src/app/core/http/asset.service.d.ts @@ -0,0 +1,32 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { PageData } from '@shared/models/page/page-data'; +import { EntitySubtype } from '@app/shared/models/entity-type.models'; +import { Asset, AssetInfo, AssetSearchQuery } from '@app/shared/models/asset.models'; +import { BulkImportRequest, BulkImportResult } from '@home/components/import-export/import-export.models'; +import * as i0 from "@angular/core"; +export declare class AssetService { + private http; + constructor(http: HttpClient); + getTenantAssetInfos(pageLink: PageLink, type?: string, config?: RequestConfig): Observable>; + getCustomerAssetInfos(customerId: string, pageLink: PageLink, type?: string, config?: RequestConfig): Observable>; + getAsset(assetId: string, config?: RequestConfig): Observable; + getAssets(assetIds: Array, config?: RequestConfig): Observable>; + getAssetInfo(assetId: string, config?: RequestConfig): Observable; + saveAsset(asset: Asset, config?: RequestConfig): Observable; + deleteAsset(assetId: string, config?: RequestConfig): Observable; + getAssetTypes(config?: RequestConfig): Observable>; + makeAssetPublic(assetId: string, config?: RequestConfig): Observable; + assignAssetToCustomer(customerId: string, assetId: string, config?: RequestConfig): Observable; + unassignAssetFromCustomer(assetId: string, config?: RequestConfig): Observable; + findByQuery(query: AssetSearchQuery, config?: RequestConfig): Observable>; + findByName(assetName: string, config?: RequestConfig): Observable; + assignAssetToEdge(edgeId: string, assetId: string, config?: RequestConfig): Observable; + unassignAssetFromEdge(edgeId: string, assetId: string, config?: RequestConfig): Observable; + getEdgeAssets(edgeId: string, pageLink: PageLink, type?: string, config?: RequestConfig): Observable>; + bulkImportAssets(entitiesData: BulkImportRequest, config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/attribute.service.d.ts b/src/app/core/http/attribute.service.d.ts new file mode 100644 index 00000000..cfbc32a7 --- /dev/null +++ b/src/app/core/http/attribute.service.d.ts @@ -0,0 +1,20 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { EntityId } from '@shared/models/id/entity-id'; +import { AttributeData, AttributeScope, DataSortOrder, TimeseriesData } from '@shared/models/telemetry/telemetry.models'; +import { AggregationType } from '@shared/models/time/time.models'; +import * as i0 from "@angular/core"; +export declare class AttributeService { + private http; + constructor(http: HttpClient); + getEntityAttributes(entityId: EntityId, attributeScope: AttributeScope, keys?: Array, config?: RequestConfig): Observable>; + deleteEntityAttributes(entityId: EntityId, attributeScope: AttributeScope, attributes: Array, config?: RequestConfig): Observable; + deleteEntityTimeseries(entityId: EntityId, timeseries: Array, deleteAllDataForKeys?: boolean, startTs?: number, endTs?: number, config?: RequestConfig): Observable; + saveEntityAttributes(entityId: EntityId, attributeScope: AttributeScope, attributes: Array, config?: RequestConfig): Observable; + saveEntityTimeseries(entityId: EntityId, timeseriesScope: string, timeseries: Array, config?: RequestConfig): Observable; + getEntityTimeseries(entityId: EntityId, keys: Array, startTs: number, endTs: number, limit?: number, agg?: AggregationType, interval?: number, orderBy?: DataSortOrder, useStrictDataTypes?: boolean, config?: RequestConfig): Observable; + getEntityTimeseriesLatest(entityId: EntityId, keys?: Array, useStrictDataTypes?: boolean, config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/audit-log.service.d.ts b/src/app/core/http/audit-log.service.d.ts new file mode 100644 index 00000000..aa899d57 --- /dev/null +++ b/src/app/core/http/audit-log.service.d.ts @@ -0,0 +1,18 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { TimePageLink } from '@shared/models/page/page-link'; +import { PageData } from '@shared/models/page/page-data'; +import { AuditLog } from '@shared/models/audit-log.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import * as i0 from "@angular/core"; +export declare class AuditLogService { + private http; + constructor(http: HttpClient); + getAuditLogs(pageLink: TimePageLink, config?: RequestConfig): Observable>; + getAuditLogsByCustomerId(customerId: string, pageLink: TimePageLink, config?: RequestConfig): Observable>; + getAuditLogsByUserId(userId: string, pageLink: TimePageLink, config?: RequestConfig): Observable>; + getAuditLogsByEntityId(entityId: EntityId, pageLink: TimePageLink, config?: RequestConfig): Observable>; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/component-descriptor.service.d.ts b/src/app/core/http/component-descriptor.service.d.ts new file mode 100644 index 00000000..c4e8b6c1 --- /dev/null +++ b/src/app/core/http/component-descriptor.service.d.ts @@ -0,0 +1,17 @@ +import { HttpClient } from '@angular/common/http'; +import { ComponentDescriptor, ComponentType } from '@shared/models/component-descriptor.models'; +import { RequestConfig } from '@core/http/http-utils'; +import { Observable } from 'rxjs'; +import { RuleChainType } from '@shared/models/rule-chain.models'; +import * as i0 from "@angular/core"; +export declare class ComponentDescriptorService { + private http; + private componentsByTypeByRuleChainType; + private componentsByClazz; + constructor(http: HttpClient); + getComponentDescriptorsByType(componentType: ComponentType, ruleChainType: RuleChainType, config?: RequestConfig): Observable>; + getComponentDescriptorsByTypes(componentTypes: Array, ruleChainType: RuleChainType, config?: RequestConfig): Observable>; + getComponentDescriptorByClazz(componentDescriptorClazz: string, config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/customer.service.d.ts b/src/app/core/http/customer.service.d.ts new file mode 100644 index 00000000..d234491d --- /dev/null +++ b/src/app/core/http/customer.service.d.ts @@ -0,0 +1,17 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { PageData } from '@shared/models/page/page-data'; +import { Customer } from '@shared/models/customer.model'; +import * as i0 from "@angular/core"; +export declare class CustomerService { + private http; + constructor(http: HttpClient); + getCustomers(pageLink: PageLink, config?: RequestConfig): Observable>; + getCustomer(customerId: string, config?: RequestConfig): Observable; + saveCustomer(customer: Customer, config?: RequestConfig): Observable; + deleteCustomer(customerId: string, config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/dashboard.service.d.ts b/src/app/core/http/dashboard.service.d.ts new file mode 100644 index 00000000..2ddd1514 --- /dev/null +++ b/src/app/core/http/dashboard.service.d.ts @@ -0,0 +1,40 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { PageData } from '@shared/models/page/page-data'; +import { Dashboard, DashboardInfo, HomeDashboard, HomeDashboardInfo } from '@shared/models/dashboard.models'; +import { Router } from '@angular/router'; +import * as i0 from "@angular/core"; +export declare class DashboardService { + private http; + private router; + private window; + stDiffObservable: Observable; + currentUrl: string; + constructor(http: HttpClient, router: Router, window: Window); + getTenantDashboards(pageLink: PageLink, config?: RequestConfig): Observable>; + getTenantDashboardsByTenantId(tenantId: string, pageLink: PageLink, config?: RequestConfig): Observable>; + getCustomerDashboards(customerId: string, pageLink: PageLink, config?: RequestConfig): Observable>; + getDashboard(dashboardId: string, config?: RequestConfig): Observable; + getDashboardInfo(dashboardId: string, config?: RequestConfig): Observable; + saveDashboard(dashboard: Dashboard, config?: RequestConfig): Observable; + deleteDashboard(dashboardId: string, config?: RequestConfig): Observable; + assignDashboardToCustomer(customerId: string, dashboardId: string, config?: RequestConfig): Observable; + unassignDashboardFromCustomer(customerId: string, dashboardId: string, config?: RequestConfig): Observable; + makeDashboardPublic(dashboardId: string, config?: RequestConfig): Observable; + makeDashboardPrivate(dashboardId: string, config?: RequestConfig): Observable; + updateDashboardCustomers(dashboardId: string, customerIds: Array, config?: RequestConfig): Observable; + addDashboardCustomers(dashboardId: string, customerIds: Array, config?: RequestConfig): Observable; + removeDashboardCustomers(dashboardId: string, customerIds: Array, config?: RequestConfig): Observable; + getHomeDashboard(config?: RequestConfig): Observable; + getTenantHomeDashboardInfo(config?: RequestConfig): Observable; + setTenantHomeDashboardInfo(homeDashboardInfo: HomeDashboardInfo, config?: RequestConfig): Observable; + getPublicDashboardLink(dashboard: DashboardInfo): string | null; + getServerTimeDiff(): Observable; + getEdgeDashboards(edgeId: string, pageLink: PageLink, type?: string, config?: RequestConfig): Observable>; + assignDashboardToEdge(edgeId: string, dashboardId: string, config?: RequestConfig): Observable; + unassignDashboardFromEdge(edgeId: string, dashboardId: string, config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/device-profile.service.d.ts b/src/app/core/http/device-profile.service.d.ts new file mode 100644 index 00000000..b9faa912 --- /dev/null +++ b/src/app/core/http/device-profile.service.d.ts @@ -0,0 +1,34 @@ +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { PageData } from '@shared/models/page/page-data'; +import { DeviceProfile, DeviceProfileInfo, DeviceTransportType } from '@shared/models/device.models'; +import { ObjectLwM2M, ServerSecurityConfig, ServerSecurityConfigInfo } from '@home/components/profile/device/lwm2m/lwm2m-profile-config.models'; +import { SortOrder } from '@shared/models/page/sort-order'; +import { OtaPackageService } from '@core/http/ota-package.service'; +import { Lwm2mSecurityType } from '@shared/models/lwm2m-security-config.models'; +import * as i0 from "@angular/core"; +export declare class DeviceProfileService { + private http; + private otaPackageService; + private lwm2mBootstrapSecurityInfoInMemoryCache; + constructor(http: HttpClient, otaPackageService: OtaPackageService); + getDeviceProfiles(pageLink: PageLink, config?: RequestConfig): Observable>; + getDeviceProfile(deviceProfileId: string, config?: RequestConfig): Observable; + getLwm2mObjects(sortOrder: SortOrder, objectIds?: string[], searchText?: string, config?: RequestConfig): Observable>; + getLwm2mBootstrapSecurityInfo(isBootstrapServer: boolean, config?: RequestConfig): Observable; + getLwm2mBootstrapSecurityInfoBySecurityType(isBootstrapServer: boolean, securityMode?: Lwm2mSecurityType, config?: RequestConfig): Observable; + getLwm2mObjectsPage(pageLink: PageLink, config?: RequestConfig): Observable>; + saveDeviceProfileAndConfirmOtaChange(originDeviceProfile: DeviceProfile, deviceProfile: DeviceProfile, config?: RequestConfig): Observable; + saveDeviceProfile(deviceProfile: DeviceProfile, config?: RequestConfig): Observable; + deleteDeviceProfile(deviceProfileId: string, config?: RequestConfig): Observable; + setDefaultDeviceProfile(deviceProfileId: string, config?: RequestConfig): Observable; + getDefaultDeviceProfileInfo(config?: RequestConfig): Observable; + getDeviceProfileInfo(deviceProfileId: string, config?: RequestConfig): Observable; + getDeviceProfileInfos(pageLink: PageLink, transportType?: DeviceTransportType, config?: RequestConfig): Observable>; + getDeviceProfileDevicesAttributesKeys(deviceProfileId?: string, config?: RequestConfig): Observable>; + getDeviceProfileDevicesTimeseriesKeys(deviceProfileId?: string, config?: RequestConfig): Observable>; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/device.service.d.ts b/src/app/core/http/device.service.d.ts new file mode 100644 index 00000000..9166e7e7 --- /dev/null +++ b/src/app/core/http/device.service.d.ts @@ -0,0 +1,44 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { PageData } from '@shared/models/page/page-data'; +import { ClaimRequest, ClaimResult, Device, DeviceCredentials, DeviceInfo, DeviceSearchQuery } from '@app/shared/models/device.models'; +import { EntitySubtype } from '@app/shared/models/entity-type.models'; +import { BulkImportRequest, BulkImportResult } from '@home/components/import-export/import-export.models'; +import { PersistentRpc, RpcStatus } from '@shared/models/rpc.models'; +import * as i0 from "@angular/core"; +export declare class DeviceService { + private http; + constructor(http: HttpClient); + getTenantDeviceInfos(pageLink: PageLink, type?: string, config?: RequestConfig): Observable>; + getTenantDeviceInfosByDeviceProfileId(pageLink: PageLink, deviceProfileId?: string, config?: RequestConfig): Observable>; + getCustomerDeviceInfos(customerId: string, pageLink: PageLink, type?: string, config?: RequestConfig): Observable>; + getCustomerDeviceInfosByDeviceProfileId(customerId: string, pageLink: PageLink, deviceProfileId?: string, config?: RequestConfig): Observable>; + getDevice(deviceId: string, config?: RequestConfig): Observable; + getDevices(deviceIds: Array, config?: RequestConfig): Observable>; + getDeviceInfo(deviceId: string, config?: RequestConfig): Observable; + saveDevice(device: Device, config?: RequestConfig): Observable; + deleteDevice(deviceId: string, config?: RequestConfig): Observable; + getDeviceTypes(config?: RequestConfig): Observable>; + getDeviceCredentials(deviceId: string, sync?: boolean, config?: RequestConfig): Observable; + saveDeviceCredentials(deviceCredentials: DeviceCredentials, config?: RequestConfig): Observable; + makeDevicePublic(deviceId: string, config?: RequestConfig): Observable; + assignDeviceToCustomer(customerId: string, deviceId: string, config?: RequestConfig): Observable; + unassignDeviceFromCustomer(deviceId: string, config?: RequestConfig): Observable; + sendOneWayRpcCommand(deviceId: string, requestBody: any, config?: RequestConfig): Observable; + sendTwoWayRpcCommand(deviceId: string, requestBody: any, config?: RequestConfig): Observable; + getPersistedRpc(rpcId: string, fullResponse?: boolean, config?: RequestConfig): Observable; + deletePersistedRpc(rpcId: string, config?: RequestConfig): Observable; + getPersistedRpcRequests(deviceId: string, pageLink: PageLink, rpcStatus?: RpcStatus, config?: RequestConfig): Observable>; + findByQuery(query: DeviceSearchQuery, config?: RequestConfig): Observable>; + findByName(deviceName: string, config?: RequestConfig): Observable; + claimDevice(deviceName: string, claimRequest: ClaimRequest, config?: RequestConfig): Observable; + unclaimDevice(deviceName: string, config?: RequestConfig): Observable; + assignDeviceToEdge(edgeId: string, deviceId: string, config?: RequestConfig): Observable; + unassignDeviceFromEdge(edgeId: string, deviceId: string, config?: RequestConfig): Observable; + getEdgeDevices(edgeId: string, pageLink: PageLink, type?: string, config?: RequestConfig): Observable>; + bulkImportDevices(entitiesData: BulkImportRequest, config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/edge.service.d.ts b/src/app/core/http/edge.service.d.ts new file mode 100644 index 00000000..cb4e2c07 --- /dev/null +++ b/src/app/core/http/edge.service.d.ts @@ -0,0 +1,33 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { PageLink, TimePageLink } from '@shared/models/page/page-link'; +import { PageData } from '@shared/models/page/page-data'; +import { EntitySubtype } from '@app/shared/models/entity-type.models'; +import { Edge, EdgeEvent, EdgeInfo, EdgeSearchQuery } from '@shared/models/edge.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import { BulkImportRequest, BulkImportResult } from '@home/components/import-export/import-export.models'; +import * as i0 from "@angular/core"; +export declare class EdgeService { + private http; + constructor(http: HttpClient); + getEdges(edgeIds: Array, config?: RequestConfig): Observable>; + getEdge(edgeId: string, config?: RequestConfig): Observable; + getEdgeInfo(edgeId: string, config?: RequestConfig): Observable; + saveEdge(edge: Edge, config?: RequestConfig): Observable; + deleteEdge(edgeId: string, config?: RequestConfig): Observable; + getEdgeTypes(config?: RequestConfig): Observable>; + getCustomerEdgeInfos(customerId: string, pageLink: PageLink, type?: string, config?: RequestConfig): Observable>; + assignEdgeToCustomer(customerId: string, edgeId: string, config?: RequestConfig): Observable; + unassignEdgeFromCustomer(edgeId: string, config?: RequestConfig): Observable; + makeEdgePublic(edgeId: string, config?: RequestConfig): Observable; + getTenantEdgeInfos(pageLink: PageLink, type?: string, config?: RequestConfig): Observable>; + findByQuery(query: EdgeSearchQuery, config?: RequestConfig): Observable>; + getEdgeEvents(entityId: EntityId, pageLink: TimePageLink, config?: RequestConfig): Observable>; + syncEdge(edgeId: string, config?: RequestConfig): Observable; + findMissingToRelatedRuleChains(edgeId: string, config?: RequestConfig): Observable; + findByName(edgeName: string, config?: RequestConfig): Observable; + bulkImportEdges(entitiesData: BulkImportRequest, config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/entity-relation.service.d.ts b/src/app/core/http/entity-relation.service.d.ts new file mode 100644 index 00000000..da02b236 --- /dev/null +++ b/src/app/core/http/entity-relation.service.d.ts @@ -0,0 +1,24 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { EntityRelation, EntityRelationInfo, EntityRelationsQuery } from '@shared/models/relation.models'; +import { EntityId } from '@app/shared/models/id/entity-id'; +import * as i0 from "@angular/core"; +export declare class EntityRelationService { + private http; + constructor(http: HttpClient); + saveRelation(relation: EntityRelation, config?: RequestConfig): Observable; + deleteRelation(fromId: EntityId, relationType: string, toId: EntityId, config?: RequestConfig): Observable; + deleteRelations(entityId: EntityId, config?: RequestConfig): Observable; + getRelation(fromId: EntityId, relationType: string, toId: EntityId, config?: RequestConfig): Observable; + findByFrom(fromId: EntityId, config?: RequestConfig): Observable>; + findInfoByFrom(fromId: EntityId, config?: RequestConfig): Observable>; + findByFromAndType(fromId: EntityId, relationType: string, config?: RequestConfig): Observable>; + findByTo(toId: EntityId, config?: RequestConfig): Observable>; + findInfoByTo(toId: EntityId, config?: RequestConfig): Observable>; + findByToAndType(toId: EntityId, relationType: string, config?: RequestConfig): Observable>; + findByQuery(query: EntityRelationsQuery, config?: RequestConfig): Observable>; + findInfoByQuery(query: EntityRelationsQuery, config?: RequestConfig): Observable>; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/entity-view.service.d.ts b/src/app/core/http/entity-view.service.d.ts new file mode 100644 index 00000000..107b9696 --- /dev/null +++ b/src/app/core/http/entity-view.service.d.ts @@ -0,0 +1,28 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { PageData } from '@shared/models/page/page-data'; +import { EntitySubtype } from '@app/shared/models/entity-type.models'; +import { EntityView, EntityViewInfo, EntityViewSearchQuery } from '@app/shared/models/entity-view.models'; +import * as i0 from "@angular/core"; +export declare class EntityViewService { + private http; + constructor(http: HttpClient); + getTenantEntityViewInfos(pageLink: PageLink, type?: string, config?: RequestConfig): Observable>; + getCustomerEntityViewInfos(customerId: string, pageLink: PageLink, type?: string, config?: RequestConfig): Observable>; + getEntityView(entityViewId: string, config?: RequestConfig): Observable; + getEntityViewInfo(entityViewId: string, config?: RequestConfig): Observable; + saveEntityView(entityView: EntityView, config?: RequestConfig): Observable; + deleteEntityView(entityViewId: string, config?: RequestConfig): Observable; + getEntityViewTypes(config?: RequestConfig): Observable>; + makeEntityViewPublic(entityViewId: string, config?: RequestConfig): Observable; + assignEntityViewToCustomer(customerId: string, entityViewId: string, config?: RequestConfig): Observable; + unassignEntityViewFromCustomer(entityViewId: string, config?: RequestConfig): Observable; + findByQuery(query: EntityViewSearchQuery, config?: RequestConfig): Observable>; + assignEntityViewToEdge(edgeId: string, entityViewId: string, config?: RequestConfig): Observable; + unassignEntityViewFromEdge(edgeId: string, entityViewId: string, config?: RequestConfig): Observable; + getEdgeEntityViews(edgeId: string, pageLink: PageLink, type?: string, config?: RequestConfig): Observable>; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/entity.service.d.ts b/src/app/core/http/entity.service.d.ts new file mode 100644 index 00000000..5c0df2ac --- /dev/null +++ b/src/app/core/http/entity.service.d.ts @@ -0,0 +1,97 @@ +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { AliasEntityType, EntityType } from '@shared/models/entity-type.models'; +import { BaseData, HasId } from '@shared/models/base-data'; +import { EntityId } from '@shared/models/id/entity-id'; +import { DeviceService } from '@core/http/device.service'; +import { TenantService } from '@core/http/tenant.service'; +import { CustomerService } from '@core/http/customer.service'; +import { UserService } from './user.service'; +import { DashboardService } from '@core/http/dashboard.service'; +import { PageData } from '@shared/models/page/page-data'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { AssetService } from '@core/http/asset.service'; +import { EntityViewService } from '@core/http/entity-view.service'; +import { DataKeyType } from '@shared/models/telemetry/telemetry.models'; +import { RequestConfig } from '@core/http/http-utils'; +import { RuleChainService } from '@core/http/rule-chain.service'; +import { AliasInfo, StateParams, SubscriptionInfo } from '@core/api/widget-api.models'; +import { DataKey, Datasource } from '@app/shared/models/widget.models'; +import { UtilsService } from '@core/services/utils.service'; +import { AliasFilterType, EntityAlias, EntityAliasFilter, EntityAliasFilterResult } from '@shared/models/alias.models'; +import { EntitiesKeysByQuery, EntityInfo, ImportEntitiesResultInfo, ImportEntityData } from '@shared/models/entity.models'; +import { EntityRelationService } from '@core/http/entity-relation.service'; +import { AttributeService } from '@core/http/attribute.service'; +import { AlarmData, AlarmDataQuery, EntityData, EntityDataQuery, EntityFilter } from '@shared/models/query/query.models'; +import { OtaPackageService } from '@core/http/ota-package.service'; +import { EdgeService } from '@core/http/edge.service'; +import { EdgeEvent } from '@shared/models/edge.models'; +import { RuleChainMetaData } from '@shared/models/rule-chain.models'; +import { WidgetService } from '@core/http/widget.service'; +import { DeviceProfileService } from '@core/http/device-profile.service'; +import * as i0 from "@angular/core"; +export declare class EntityService { + private http; + private store; + private deviceService; + private edgeService; + private assetService; + private entityViewService; + private tenantService; + private customerService; + private userService; + private ruleChainService; + private dashboardService; + private entityRelationService; + private attributeService; + private otaPackageService; + private widgetService; + private deviceProfileService; + private utils; + constructor(http: HttpClient, store: Store, deviceService: DeviceService, edgeService: EdgeService, assetService: AssetService, entityViewService: EntityViewService, tenantService: TenantService, customerService: CustomerService, userService: UserService, ruleChainService: RuleChainService, dashboardService: DashboardService, entityRelationService: EntityRelationService, attributeService: AttributeService, otaPackageService: OtaPackageService, widgetService: WidgetService, deviceProfileService: DeviceProfileService, utils: UtilsService); + private getEntityObservable; + getEntity(entityType: EntityType, entityId: string, config?: RequestConfig): Observable>; + private getEntitiesByIdsObservable; + private getEntitiesObservable; + getEntities(entityType: EntityType, entityIds: Array, config?: RequestConfig): Observable>>; + private getSingleTenantByPageLinkObservable; + private getSingleCustomerByPageLinkObservable; + private getEntitiesByPageLinkObservable; + private getEntitiesByPageLink; + getEntitiesByNameFilter(entityType: EntityType, entityNameFilter: string, pageSize: number, subType?: string, config?: RequestConfig): Observable>>; + findEntityDataByQuery(query: EntityDataQuery, config?: RequestConfig): Observable>; + findEntityKeysByQuery(query: EntityDataQuery, attributes?: boolean, timeseries?: boolean, config?: RequestConfig): Observable; + findAlarmDataByQuery(query: AlarmDataQuery, config?: RequestConfig): Observable>; + findEntityInfosByFilterAndName(filter: EntityFilter, searchText: string, config?: RequestConfig): Observable>; + findSingleEntityInfoByEntityFilter(filter: EntityFilter, config?: RequestConfig): Observable; + getAliasFilterTypesByEntityTypes(entityTypes: Array): Array; + filterAliasByEntityTypes(entityAlias: EntityAlias, entityTypes: Array): boolean; + private filterAliasFilterTypeByEntityTypes; + private filterAliasFilterTypeByEntityType; + prepareAllowedEntityTypesList(allowedEntityTypes: Array, useAliasEntityTypes?: boolean): Array; + private getEntityFieldKeys; + private getAlarmKeys; + getEntityKeys(entityId: EntityId, query: string, type: DataKeyType, config?: RequestConfig): Observable>; + getEntityKeysByEntityFilter(filter: EntityFilter, types: DataKeyType[], config?: RequestConfig): Observable>; + createDatasourcesFromSubscriptionsInfo(subscriptionsInfo: Array): Array; + createAlarmSourceFromSubscriptionInfo(subscriptionInfo: SubscriptionInfo): Datasource; + resolveAlias(entityAlias: EntityAlias, stateParams: StateParams): Observable; + resolveAliasFilter(filter: EntityAliasFilter, stateParams: StateParams): Observable; + checkEntityAlias(entityAlias: EntityAlias): Observable; + saveEntityParameters(entityType: EntityType, entityData: ImportEntityData, update: boolean, config?: RequestConfig): Observable; + private getSaveEntityObservable; + private getUpdateEntityTasks; + saveEntityData(entityId: EntityId, entityData: ImportEntityData, config?: RequestConfig): Observable; + private getStateEntityInfo; + private resolveAliasEntityId; + private createDatasourceFromSubscriptionInfo; + private validateSubscriptionInfo; + private prepareEntityFilterFromSubscriptionInfo; + private createDatasourceKeys; + getAssignedToEdgeEntitiesByType(edgeId: string, entityType: EntityType, pageLink: PageLink): Observable>; + getEdgeEventContent(entity: EdgeEvent): Observable | RuleChainMetaData | string>; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/event.service.d.ts b/src/app/core/http/event.service.d.ts new file mode 100644 index 00000000..5b2c37eb --- /dev/null +++ b/src/app/core/http/event.service.d.ts @@ -0,0 +1,17 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { TimePageLink } from '@shared/models/page/page-link'; +import { PageData } from '@shared/models/page/page-data'; +import { EntityId } from '@shared/models/id/entity-id'; +import { DebugEventType, Event, EventType, FilterEventBody } from '@shared/models/event.models'; +import * as i0 from "@angular/core"; +export declare class EventService { + private http; + constructor(http: HttpClient); + getEvents(entityId: EntityId, eventType: EventType | DebugEventType, tenantId: string, pageLink: TimePageLink, config?: RequestConfig): Observable>; + getFilterEvents(entityId: EntityId, eventType: EventType | DebugEventType, tenantId: string, filters: FilterEventBody, pageLink: TimePageLink, config?: RequestConfig): Observable>; + clearEvents(entityId: EntityId, eventType: EventType | DebugEventType, filters: FilterEventBody, tenantId: string, pageLink: TimePageLink, config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/http-utils.d.ts b/src/app/core/http/http-utils.d.ts new file mode 100644 index 00000000..55e3623e --- /dev/null +++ b/src/app/core/http/http-utils.d.ts @@ -0,0 +1,18 @@ +import { InterceptorHttpParams } from '../interceptors/interceptor-http-params'; +import { HttpHeaders } from '@angular/common/http'; +export interface RequestConfig { + ignoreLoading?: boolean; + ignoreErrors?: boolean; + resendRequest?: boolean; +} +export declare function defaultHttpOptionsFromConfig(config?: RequestConfig): { + headers: HttpHeaders; + params: InterceptorHttpParams; +}; +export declare function defaultHttpOptions(ignoreLoading?: boolean, ignoreErrors?: boolean, resendRequest?: boolean): { + headers: HttpHeaders; + params: InterceptorHttpParams; +}; +export declare function defaultHttpUploadOptions(ignoreLoading?: boolean, ignoreErrors?: boolean, resendRequest?: boolean): { + params: InterceptorHttpParams; +}; diff --git a/src/app/core/http/oauth2.service.d.ts b/src/app/core/http/oauth2.service.d.ts new file mode 100644 index 00000000..345be8b6 --- /dev/null +++ b/src/app/core/http/oauth2.service.d.ts @@ -0,0 +1,15 @@ +import { HttpClient } from '@angular/common/http'; +import { RequestConfig } from '@core/http/http-utils'; +import { Observable } from 'rxjs'; +import { OAuth2ClientRegistrationTemplate, OAuth2Info } from '@shared/models/oauth2.models'; +import * as i0 from "@angular/core"; +export declare class OAuth2Service { + private http; + constructor(http: HttpClient); + getOAuth2Settings(config?: RequestConfig): Observable; + getOAuth2Template(config?: RequestConfig): Observable>; + saveOAuth2Settings(OAuth2Setting: OAuth2Info, config?: RequestConfig): Observable; + getLoginProcessingUrl(config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/ota-package.service.d.ts b/src/app/core/http/ota-package.service.d.ts new file mode 100644 index 00000000..c06d661a --- /dev/null +++ b/src/app/core/http/ota-package.service.d.ts @@ -0,0 +1,30 @@ +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { RequestConfig } from '@core/http/http-utils'; +import { Observable } from 'rxjs'; +import { PageData } from '@shared/models/page/page-data'; +import { ChecksumAlgorithm, OtaPackage, OtaPackageInfo, OtaPagesIds, OtaUpdateType } from '@shared/models/ota-package.models'; +import { BaseData } from '@shared/models/base-data'; +import { EntityId } from '@shared/models/id/entity-id'; +import { TranslateService } from '@ngx-translate/core'; +import { DialogService } from '@core/services/dialog.service'; +import * as i0 from "@angular/core"; +export declare class OtaPackageService { + private http; + private translate; + private dialogService; + constructor(http: HttpClient, translate: TranslateService, dialogService: DialogService); + getOtaPackages(pageLink: PageLink, config?: RequestConfig): Observable>; + getOtaPackagesInfoByDeviceProfileId(pageLink: PageLink, deviceProfileId: string, type: OtaUpdateType, config?: RequestConfig): Observable>; + getOtaPackage(otaPackageId: string, config?: RequestConfig): Observable; + getOtaPackageInfo(otaPackageId: string, config?: RequestConfig): Observable; + downloadOtaPackage(otaPackageId: string): Observable; + saveOtaPackage(otaPackage: OtaPackage, config?: RequestConfig): Observable; + saveOtaPackageInfo(otaPackageInfo: OtaPackageInfo, config?: RequestConfig): Observable; + uploadOtaPackageFile(otaPackageId: string, file: File, checksumAlgorithm: ChecksumAlgorithm, checksum?: string, config?: RequestConfig): Observable; + deleteOtaPackage(otaPackageId: string, config?: RequestConfig): Observable; + countUpdateDeviceAfterChangePackage(type: OtaUpdateType, entityId: EntityId, config?: RequestConfig): Observable; + confirmDialogUpdatePackage(entity: BaseData & OtaPagesIds, originEntity: BaseData & OtaPagesIds): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/public-api.d.ts b/src/app/core/http/public-api.d.ts new file mode 100644 index 00000000..d96f9dd1 --- /dev/null +++ b/src/app/core/http/public-api.d.ts @@ -0,0 +1,21 @@ +export * from './admin.service'; +export * from './alarm.service'; +export * from './asset.service'; +export * from './attribute.service'; +export * from './audit-log.service'; +export * from './component-descriptor.service'; +export * from './customer.service'; +export * from './dashboard.service'; +export * from './device.service'; +export * from './entity.service'; +export * from './edge.service'; +export * from './entity-relation.service'; +export * from './entity-view.service'; +export * from './event.service'; +export * from './http-utils'; +export * from './oauth2.service'; +export * from './queue.service'; +export * from './rule-chain.service'; +export * from './tenant.service'; +export * from './user.service'; +export * from './widget.service'; diff --git a/src/app/core/http/queue.service.d.ts b/src/app/core/http/queue.service.d.ts new file mode 100644 index 00000000..b6ff6b20 --- /dev/null +++ b/src/app/core/http/queue.service.d.ts @@ -0,0 +1,12 @@ +import { HttpClient } from '@angular/common/http'; +import { RequestConfig } from '@core/http/http-utils'; +import { Observable } from 'rxjs'; +import { ServiceType } from '@shared/models/queue.models'; +import * as i0 from "@angular/core"; +export declare class QueueService { + private http; + constructor(http: HttpClient); + getTenantQueuesByServiceType(serviceType: ServiceType, config?: RequestConfig): Observable>; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/resource.service.d.ts b/src/app/core/http/resource.service.d.ts new file mode 100644 index 00000000..9ab895b2 --- /dev/null +++ b/src/app/core/http/resource.service.d.ts @@ -0,0 +1,19 @@ +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { RequestConfig } from '@core/http/http-utils'; +import { Observable } from 'rxjs'; +import { PageData } from '@shared/models/page/page-data'; +import { Resource, ResourceInfo } from '@shared/models/resource.models'; +import * as i0 from "@angular/core"; +export declare class ResourceService { + private http; + constructor(http: HttpClient); + getResources(pageLink: PageLink, config?: RequestConfig): Observable>; + getResource(resourceId: string, config?: RequestConfig): Observable; + downloadResource(resourceId: string): Observable; + saveResources(resources: Resource[], config?: RequestConfig): Observable; + saveResource(resource: Resource, config?: RequestConfig): Observable; + deleteResource(resourceId: string, config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/rule-chain.service.d.ts b/src/app/core/http/rule-chain.service.d.ts new file mode 100644 index 00000000..45aeab06 --- /dev/null +++ b/src/app/core/http/rule-chain.service.d.ts @@ -0,0 +1,56 @@ +import { ComponentFactory } from '@angular/core'; +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { PageData } from '@shared/models/page/page-data'; +import { RuleChain, RuleChainMetaData, RuleChainType } from '@shared/models/rule-chain.models'; +import { ComponentDescriptorService } from './component-descriptor.service'; +import { IRuleNodeConfigurationComponent, LinkLabel, RuleNodeComponentDescriptor, RuleNodeConfiguration, TestScriptInputParams, TestScriptResult } from '@app/shared/models/rule-node.models'; +import { ResourcesService } from '../services/resources.service'; +import { TranslateService } from '@ngx-translate/core'; +import { DebugRuleNodeEventBody } from '@app/shared/models/event.models'; +import { Edge } from '@shared/models/edge.models'; +import { IModulesMap } from '@modules/common/modules-map.models'; +import * as i0 from "@angular/core"; +export declare class RuleChainService { + private http; + private componentDescriptorService; + private resourcesService; + private translate; + private ruleNodeComponentsMap; + private ruleNodeConfigFactories; + constructor(http: HttpClient, componentDescriptorService: ComponentDescriptorService, resourcesService: ResourcesService, translate: TranslateService); + getRuleChains(pageLink: PageLink, type?: RuleChainType, config?: RequestConfig): Observable>; + getRuleChain(ruleChainId: string, config?: RequestConfig): Observable; + getRuleChainOutputLabels(ruleChainId: string, config?: RequestConfig): Observable>; + createDefaultRuleChain(ruleChainName: string, config?: RequestConfig): Observable; + saveRuleChain(ruleChain: RuleChain, config?: RequestConfig): Observable; + deleteRuleChain(ruleChainId: string, config?: RequestConfig): Observable; + setRootRuleChain(ruleChainId: string, config?: RequestConfig): Observable; + getRuleChainMetadata(ruleChainId: string, config?: RequestConfig): Observable; + saveRuleChainMetadata(ruleChainMetaData: RuleChainMetaData, config?: RequestConfig): Observable; + getRuleNodeComponents(modulesMap: IModulesMap, ruleChainType: RuleChainType, config?: RequestConfig): Observable>; + getRuleNodeConfigFactory(directive: string): ComponentFactory; + getRuleNodeComponentByClazz(ruleChainType: RuleChainType, clazz: string): RuleNodeComponentDescriptor; + getRuleNodeSupportedLinks(component: RuleNodeComponentDescriptor): { + [label: string]: LinkLabel; + }; + ruleNodeAllowCustomLinks(component: RuleNodeComponentDescriptor): boolean; + ruleNodeSourceRuleChainId(component: RuleNodeComponentDescriptor, config: RuleNodeConfiguration): string; + getLatestRuleNodeDebugInput(ruleNodeId: string, config?: RequestConfig): Observable; + testScript(inputParams: TestScriptInputParams, config?: RequestConfig): Observable; + private loadRuleNodeComponents; + private resolveRuleNodeComponentsUiResources; + private resolveRuleNodeComponentUiResources; + getEdgeRuleChains(edgeId: string, pageLink: PageLink, config?: RequestConfig): Observable>; + assignRuleChainToEdge(edgeId: string, ruleChainId: string, config?: RequestConfig): Observable; + unassignRuleChainFromEdge(edgeId: string, ruleChainId: string, config?: RequestConfig): Observable; + setEdgeTemplateRootRuleChain(ruleChainId: string, config?: RequestConfig): Observable; + setAutoAssignToEdgeRuleChain(ruleChainId: string, config?: RequestConfig): Observable; + unsetAutoAssignToEdgeRuleChain(ruleChainId: string, config?: RequestConfig): Observable; + getAutoAssignToEdgeRuleChains(config?: RequestConfig): Observable>; + setEdgeRootRuleChain(edgeId: string, ruleChainId: string, config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/tenant-profile.service.d.ts b/src/app/core/http/tenant-profile.service.d.ts new file mode 100644 index 00000000..e89334ba --- /dev/null +++ b/src/app/core/http/tenant-profile.service.d.ts @@ -0,0 +1,22 @@ +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { PageData } from '@shared/models/page/page-data'; +import { TenantProfile } from '@shared/models/tenant.model'; +import { EntityInfoData } from '@shared/models/entity.models'; +import * as i0 from "@angular/core"; +export declare class TenantProfileService { + private http; + constructor(http: HttpClient); + getTenantProfiles(pageLink: PageLink, config?: RequestConfig): Observable>; + getTenantProfile(tenantProfileId: string, config?: RequestConfig): Observable; + saveTenantProfile(tenantProfile: TenantProfile, config?: RequestConfig): Observable; + deleteTenantProfile(tenantProfileId: string, config?: RequestConfig): Observable; + setDefaultTenantProfile(tenantProfileId: string, config?: RequestConfig): Observable; + getDefaultTenantProfileInfo(config?: RequestConfig): Observable; + getTenantProfileInfo(tenantProfileId: string, config?: RequestConfig): Observable; + getTenantProfileInfos(pageLink: PageLink, config?: RequestConfig): Observable>; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/tenant.service.d.ts b/src/app/core/http/tenant.service.d.ts new file mode 100644 index 00000000..43881115 --- /dev/null +++ b/src/app/core/http/tenant.service.d.ts @@ -0,0 +1,19 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { PageData } from '@shared/models/page/page-data'; +import { Tenant, TenantInfo } from '@shared/models/tenant.model'; +import * as i0 from "@angular/core"; +export declare class TenantService { + private http; + constructor(http: HttpClient); + getTenants(pageLink: PageLink, config?: RequestConfig): Observable>; + getTenantInfos(pageLink: PageLink, config?: RequestConfig): Observable>; + getTenant(tenantId: string, config?: RequestConfig): Observable; + getTenantInfo(tenantId: string, config?: RequestConfig): Observable; + saveTenant(tenant: Tenant, config?: RequestConfig): Observable; + deleteTenant(tenantId: string, config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/ui-settings.service.d.ts b/src/app/core/http/ui-settings.service.d.ts new file mode 100644 index 00000000..ff6ec96d --- /dev/null +++ b/src/app/core/http/ui-settings.service.d.ts @@ -0,0 +1,11 @@ +import { HttpClient } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import * as i0 from "@angular/core"; +export declare class UiSettingsService { + private http; + private helpBaseUrlObservable; + constructor(http: HttpClient); + getHelpBaseUrl(): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/user.service.d.ts b/src/app/core/http/user.service.d.ts new file mode 100644 index 00000000..2e1dea8b --- /dev/null +++ b/src/app/core/http/user.service.d.ts @@ -0,0 +1,22 @@ +import { RequestConfig } from './http-utils'; +import { User } from '@shared/models/user.model'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { PageData } from '@shared/models/page/page-data'; +import * as i0 from "@angular/core"; +export declare class UserService { + private http; + constructor(http: HttpClient); + getUsers(pageLink: PageLink, config?: RequestConfig): Observable>; + getTenantAdmins(tenantId: string, pageLink: PageLink, config?: RequestConfig): Observable>; + getCustomerUsers(customerId: string, pageLink: PageLink, config?: RequestConfig): Observable>; + getUser(userId: string, config?: RequestConfig): Observable; + saveUser(user: User, sendActivationMail?: boolean, config?: RequestConfig): Observable; + deleteUser(userId: string, config?: RequestConfig): Observable; + getActivationLink(userId: string, config?: RequestConfig): Observable; + sendActivationEmail(email: string, config?: RequestConfig): Observable; + setUserCredentialsEnabled(userId: string, userCredentialsEnabled?: boolean, config?: RequestConfig): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/http/widget.service.d.ts b/src/app/core/http/widget.service.d.ts new file mode 100644 index 00000000..0f8a5c14 --- /dev/null +++ b/src/app/core/http/widget.service.d.ts @@ -0,0 +1,53 @@ +import { RequestConfig } from './http-utils'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { PageLink } from '@shared/models/page/page-link'; +import { PageData } from '@shared/models/page/page-data'; +import { WidgetsBundle } from '@shared/models/widgets-bundle.model'; +import { Widget, WidgetType, widgetType, WidgetTypeDetails, WidgetTypeInfo } from '@shared/models/widget.models'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { ResourcesService } from '../services/resources.service'; +import { WidgetInfo } from '@app/modules/home/models/widget-component.models'; +import { WidgetTypeId } from '@shared/models/id/widget-type-id'; +import { Router } from '@angular/router'; +import * as i0 from "@angular/core"; +export declare class WidgetService { + private http; + private utils; + private resources; + private translate; + private router; + private widgetTypeUpdatedSubject; + private widgetsBundleDeletedSubject; + private allWidgetsBundles; + private systemWidgetsBundles; + private tenantWidgetsBundles; + private widgetTypeInfosCache; + private loadWidgetsBundleCacheSubject; + constructor(http: HttpClient, utils: UtilsService, resources: ResourcesService, translate: TranslateService, router: Router); + getWidgetScopeVariables(): string[]; + getAllWidgetsBundles(config?: RequestConfig): Observable>; + getSystemWidgetsBundles(config?: RequestConfig): Observable>; + getTenantWidgetsBundles(config?: RequestConfig): Observable>; + getWidgetBundles(pageLink: PageLink, config?: RequestConfig): Observable>; + getWidgetsBundle(widgetsBundleId: string, config?: RequestConfig): Observable; + saveWidgetsBundle(widgetsBundle: WidgetsBundle, config?: RequestConfig): Observable; + deleteWidgetsBundle(widgetsBundleId: string, config?: RequestConfig): Observable; + getBundleWidgetTypes(bundleAlias: string, isSystem: boolean, config?: RequestConfig): Observable>; + getBundleWidgetTypesDetails(bundleAlias: string, isSystem: boolean, config?: RequestConfig): Observable>; + getBundleWidgetTypeInfos(bundleAlias: string, isSystem: boolean, config?: RequestConfig): Observable>; + loadBundleLibraryWidgets(bundleAlias: string, isSystem: boolean, config?: RequestConfig): Observable>; + getWidgetType(bundleAlias: string, widgetTypeAlias: string, isSystem: boolean, config?: RequestConfig): Observable; + saveWidgetTypeDetails(widgetInfo: WidgetInfo, id: WidgetTypeId, bundleAlias: string, createdTime: number, config?: RequestConfig): Observable; + saveImportedWidgetTypeDetails(widgetTypeDetails: WidgetTypeDetails, config?: RequestConfig): Observable; + deleteWidgetType(bundleAlias: string, widgetTypeAlias: string, isSystem: boolean, config?: RequestConfig): Observable; + getWidgetTypeById(widgetTypeId: string, config?: RequestConfig): Observable; + getWidgetTemplate(widgetTypeParam: widgetType, config?: RequestConfig): Observable; + onWidgetTypeUpdated(): Observable; + onWidgetBundleDeleted(): Observable; + private loadWidgetsBundleCache; + private invalidateWidgetsBundleCache; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/interceptors/global-http-interceptor.d.ts b/src/app/core/interceptors/global-http-interceptor.d.ts new file mode 100644 index 00000000..d711222b --- /dev/null +++ b/src/app/core/interceptors/global-http-interceptor.d.ts @@ -0,0 +1,34 @@ +import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; +import { Observable } from 'rxjs/internal/Observable'; +import { AuthService } from '@core/auth/auth.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { DialogService } from '@core/services/dialog.service'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class GlobalHttpInterceptor implements HttpInterceptor { + private store; + private dialogService; + private translate; + private authService; + private AUTH_SCHEME; + private AUTH_HEADER_NAME; + private internalUrlPrefixes; + private activeRequests; + constructor(store: Store, dialogService: DialogService, translate: TranslateService, authService: AuthService); + intercept(req: HttpRequest, next: HttpHandler): Observable>; + private jwtIntercept; + private handleRequest; + private handleResponseError; + private prepareMessageFromData; + private retryRequest; + private refreshTokenAndRetry; + private updateAuthorizationHeader; + private isInternalUrlPrefix; + private isTokenBasedAuthEntryPoint; + private updateLoadingState; + private getInterceptorConfig; + private showError; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/interceptors/interceptor-config.d.ts b/src/app/core/interceptors/interceptor-config.d.ts new file mode 100644 index 00000000..8a8734b1 --- /dev/null +++ b/src/app/core/interceptors/interceptor-config.d.ts @@ -0,0 +1,6 @@ +export declare class InterceptorConfig { + ignoreLoading: boolean; + ignoreErrors: boolean; + resendRequest: boolean; + constructor(ignoreLoading?: boolean, ignoreErrors?: boolean, resendRequest?: boolean); +} diff --git a/src/app/core/interceptors/interceptor-http-params.d.ts b/src/app/core/interceptors/interceptor-http-params.d.ts new file mode 100644 index 00000000..6507df16 --- /dev/null +++ b/src/app/core/interceptors/interceptor-http-params.d.ts @@ -0,0 +1,8 @@ +import { HttpParams } from '@angular/common/http'; +import { InterceptorConfig } from './interceptor-config'; +export declare class InterceptorHttpParams extends HttpParams { + interceptorConfig: InterceptorConfig; + constructor(interceptorConfig: InterceptorConfig, params?: { + [param: string]: string | string[]; + }); +} diff --git a/src/app/core/interceptors/load.actions.d.ts b/src/app/core/interceptors/load.actions.d.ts new file mode 100644 index 00000000..c99632b9 --- /dev/null +++ b/src/app/core/interceptors/load.actions.d.ts @@ -0,0 +1,12 @@ +import { Action } from '@ngrx/store'; +export declare enum LoadActionTypes { + START_LOAD = "[Load] Start", + FINISH_LOAD = "[Load] Finish" +} +export declare class ActionLoadStart implements Action { + readonly type = LoadActionTypes.START_LOAD; +} +export declare class ActionLoadFinish implements Action { + readonly type = LoadActionTypes.FINISH_LOAD; +} +export declare type LoadActions = ActionLoadStart | ActionLoadFinish; diff --git a/src/app/core/interceptors/load.models.d.ts b/src/app/core/interceptors/load.models.d.ts new file mode 100644 index 00000000..5a098a5d --- /dev/null +++ b/src/app/core/interceptors/load.models.d.ts @@ -0,0 +1,3 @@ +export interface LoadState { + isLoading: boolean; +} diff --git a/src/app/core/interceptors/load.reducer.d.ts b/src/app/core/interceptors/load.reducer.d.ts new file mode 100644 index 00000000..060eb4f5 --- /dev/null +++ b/src/app/core/interceptors/load.reducer.d.ts @@ -0,0 +1,4 @@ +import { LoadState } from './load.models'; +import { LoadActions } from './load.actions'; +export declare const initialState: LoadState; +export declare function loadReducer(state: LoadState, action: LoadActions): LoadState; diff --git a/src/app/core/interceptors/load.selectors.d.ts b/src/app/core/interceptors/load.selectors.d.ts new file mode 100644 index 00000000..720a713e --- /dev/null +++ b/src/app/core/interceptors/load.selectors.d.ts @@ -0,0 +1,7 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '../core.state'; +import { LoadState } from './load.models'; +export declare const selectLoadState: import("@ngrx/store").MemoizedSelector>; +export declare const selectLoad: import("@ngrx/store").MemoizedSelector>; +export declare const selectIsLoading: import("@ngrx/store").MemoizedSelector>; +export declare function getCurrentIsLoading(store: Store): boolean; diff --git a/src/app/core/local-storage/local-storage.service.d.ts b/src/app/core/local-storage/local-storage.service.d.ts new file mode 100644 index 00000000..30846db8 --- /dev/null +++ b/src/app/core/local-storage/local-storage.service.d.ts @@ -0,0 +1,12 @@ +import * as i0 from "@angular/core"; +export declare class LocalStorageService { + constructor(); + static loadInitialState(): any; + setItem(key: string, value: any): void; + getItem(key: string): any; + removeItem(key: string): void; + /** Tests that localStorage exists, can be written to, and read from. */ + testLocalStorage(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/meta-reducers/debug.reducer.d.ts b/src/app/core/meta-reducers/debug.reducer.d.ts new file mode 100644 index 00000000..50cd24a2 --- /dev/null +++ b/src/app/core/meta-reducers/debug.reducer.d.ts @@ -0,0 +1,3 @@ +import { ActionReducer } from '@ngrx/store'; +import { AppState } from '../core.state'; +export declare function debug(reducer: ActionReducer): ActionReducer; diff --git a/src/app/core/meta-reducers/init-state-from-local-storage.reducer.d.ts b/src/app/core/meta-reducers/init-state-from-local-storage.reducer.d.ts new file mode 100644 index 00000000..1ddde555 --- /dev/null +++ b/src/app/core/meta-reducers/init-state-from-local-storage.reducer.d.ts @@ -0,0 +1,3 @@ +import { ActionReducer } from '@ngrx/store'; +import { AppState } from '../core.state'; +export declare function initStateFromLocalStorage(reducer: ActionReducer): ActionReducer; diff --git a/src/app/core/notification/notification.actions.d.ts b/src/app/core/notification/notification.actions.d.ts new file mode 100644 index 00000000..a3f415d8 --- /dev/null +++ b/src/app/core/notification/notification.actions.d.ts @@ -0,0 +1,17 @@ +import { Action } from '@ngrx/store'; +import { HideNotification, NotificationMessage } from '@app/core/notification/notification.models'; +export declare enum NotificationActionTypes { + SHOW_NOTIFICATION = "[Notification] Show", + HIDE_NOTIFICATION = "[Notification] Hide" +} +export declare class ActionNotificationShow implements Action { + readonly notification: NotificationMessage; + readonly type = NotificationActionTypes.SHOW_NOTIFICATION; + constructor(notification: NotificationMessage); +} +export declare class ActionNotificationHide implements Action { + readonly hideNotification: HideNotification; + readonly type = NotificationActionTypes.HIDE_NOTIFICATION; + constructor(hideNotification: HideNotification); +} +export declare type NotificationActions = ActionNotificationShow | ActionNotificationHide; diff --git a/src/app/core/notification/notification.effects.d.ts b/src/app/core/notification/notification.effects.d.ts new file mode 100644 index 00000000..396229e2 --- /dev/null +++ b/src/app/core/notification/notification.effects.d.ts @@ -0,0 +1,13 @@ +import { Actions } from '@ngrx/effects'; +import { NotificationActions } from '@app/core/notification/notification.actions'; +import { NotificationService } from '@app/core/services/notification.service'; +import * as i0 from "@angular/core"; +export declare class NotificationEffects { + private actions$; + private notificationService; + constructor(actions$: Actions, notificationService: NotificationService); + dispatchNotification: import("rxjs").Observable; + hideNotification: import("rxjs").Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/notification/notification.models.d.ts b/src/app/core/notification/notification.models.d.ts new file mode 100644 index 00000000..59105b8c --- /dev/null +++ b/src/app/core/notification/notification.models.d.ts @@ -0,0 +1,20 @@ +export interface NotificationState { + notification: NotificationMessage; + hideNotification: HideNotification; +} +export declare type NotificationType = 'info' | 'warn' | 'success' | 'error'; +export declare type NotificationHorizontalPosition = 'start' | 'center' | 'end' | 'left' | 'right'; +export declare type NotificationVerticalPosition = 'top' | 'bottom'; +export declare class NotificationMessage { + message: string; + type: NotificationType; + target?: string; + duration?: number; + forceDismiss?: boolean; + horizontalPosition?: NotificationHorizontalPosition; + verticalPosition?: NotificationVerticalPosition; + panelClass?: string | string[]; +} +export declare class HideNotification { + target?: string; +} diff --git a/src/app/core/notification/notification.reducer.d.ts b/src/app/core/notification/notification.reducer.d.ts new file mode 100644 index 00000000..7df3126d --- /dev/null +++ b/src/app/core/notification/notification.reducer.d.ts @@ -0,0 +1,4 @@ +import { NotificationState } from './notification.models'; +import { NotificationActions } from './notification.actions'; +export declare const initialState: NotificationState; +export declare function notificationReducer(state: NotificationState, action: NotificationActions): NotificationState; diff --git a/src/app/core/operator/enterZone.d.ts b/src/app/core/operator/enterZone.d.ts new file mode 100644 index 00000000..71502d1d --- /dev/null +++ b/src/app/core/operator/enterZone.d.ts @@ -0,0 +1,14 @@ +import { MonoTypeOperatorFunction, Observable, Operator, Subscriber } from 'rxjs'; +export declare type EnterZoneSignature = (zone: { + run: (fn: any) => any; +}) => Observable; +export declare function enterZone(zone: { + run: (fn: any) => any; +}): MonoTypeOperatorFunction; +export declare class EnterZoneOperator implements Operator { + private zone; + constructor(zone: { + run: (fn: any) => any; + }); + call(subscriber: Subscriber, source: any): any; +} diff --git a/src/app/core/public-api.d.ts b/src/app/core/public-api.d.ts new file mode 100644 index 00000000..4413b032 --- /dev/null +++ b/src/app/core/public-api.d.ts @@ -0,0 +1,8 @@ +export * from './api/public-api'; +export * from './http/public-api'; +export * from './local-storage/local-storage.service'; +export * from './services/public-api'; +export * from './ws/telemetry-websocket.service'; +export * from './core.state'; +export * from './core.module'; +export * from './utils'; diff --git a/src/app/core/schema-utils.d.ts b/src/app/core/schema-utils.d.ts new file mode 100644 index 00000000..91b3c969 --- /dev/null +++ b/src/app/core/schema-utils.d.ts @@ -0,0 +1,6 @@ +import { JsonSettingsSchema } from '@shared/models/widget.models'; +export declare function initSchema(): JsonSettingsSchema; +export declare function addGroupInfo(schema: JsonSettingsSchema, title: string): void; +export declare function addToSchema(schema: JsonSettingsSchema, newSchema: JsonSettingsSchema): void; +export declare function mergeSchemes(schemes: JsonSettingsSchema[]): JsonSettingsSchema; +export declare function addCondition(schema: JsonSettingsSchema, condition: string, exclude?: string[]): JsonSettingsSchema; diff --git a/src/app/core/services/broadcast.models.d.ts b/src/app/core/services/broadcast.models.d.ts new file mode 100644 index 00000000..45b2e11e --- /dev/null +++ b/src/app/core/services/broadcast.models.d.ts @@ -0,0 +1,8 @@ +export interface BroadcastMessage { + name: string; + args?: Array; +} +export interface BroadcastEvent { + name: string; +} +export declare type BroadcastListener = (event: BroadcastEvent, ...args: Array) => void; diff --git a/src/app/core/services/broadcast.service.d.ts b/src/app/core/services/broadcast.service.d.ts new file mode 100644 index 00000000..b11098f9 --- /dev/null +++ b/src/app/core/services/broadcast.service.d.ts @@ -0,0 +1,10 @@ +import { Subscription } from 'rxjs'; +import { BroadcastListener } from '@core/services/broadcast.models'; +import * as i0 from "@angular/core"; +export declare class BroadcastService { + private broadcastSubject; + broadcast(name: string, ...args: Array): void; + on(name: string, listener: BroadcastListener): Subscription; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/dashboard-utils.service.d.ts b/src/app/core/services/dashboard-utils.service.d.ts new file mode 100644 index 00000000..6c940112 --- /dev/null +++ b/src/app/core/services/dashboard-utils.service.d.ts @@ -0,0 +1,45 @@ +import { UtilsService } from '@core/services/utils.service'; +import { TimeService } from '@core/services/time.service'; +import { Dashboard, DashboardLayout, DashboardLayoutId, DashboardLayoutsInfo, DashboardState, DashboardStateLayouts, GridSettings } from '@shared/models/dashboard.models'; +import { Widget } from '@app/shared/models/widget.models'; +import { EntityAliasFilter } from '@app/shared/models/alias.models'; +import { EntityId } from '@app/shared/models/id/entity-id'; +import * as i0 from "@angular/core"; +export declare class DashboardUtilsService { + private utils; + private timeService; + constructor(utils: UtilsService, timeService: TimeService); + validateAndUpdateDashboard(dashboard: Dashboard): Dashboard; + createSingleWidgetDashboard(widget: Widget): Dashboard; + validateAndUpdateWidget(widget: Widget): Widget; + createDefaultLayoutData(): DashboardLayout; + private createDefaultGridSettings; + createDefaultLayouts(): DashboardStateLayouts; + createDefaultState(name: string, root: boolean): DashboardState; + createSingleEntityFilter(entityId: EntityId): EntityAliasFilter; + private validateAndUpdateState; + private validateAndUpdateLayout; + setLayouts(dashboard: Dashboard, targetState: string, newLayouts: DashboardStateLayouts): void; + getRootStateId(states: { + [id: string]: DashboardState; + }): string; + getStateLayoutsData(dashboard: Dashboard, targetState: string): DashboardLayoutsInfo; + getWidgetsArray(dashboard: Dashboard): Array; + addWidgetToLayout(dashboard: Dashboard, targetState: string, targetLayout: DashboardLayoutId, widget: Widget, originalColumns?: number, originalSize?: { + sizeX: number; + sizeY: number; + }, row?: number, column?: number): void; + removeWidgetFromLayout(dashboard: Dashboard, targetState: string, targetLayout: DashboardLayoutId, widgetId: string): void; + isSingleLayoutDashboard(dashboard: Dashboard): { + state: string; + layout: DashboardLayoutId; + }; + updateLayoutSettings(layout: DashboardLayout, gridSettings: GridSettings): void; + removeUnusedWidgets(dashboard: Dashboard): void; + private validateAndUpdateEntityAliases; + private validateAndUpdateDeviceAlias; + private validateAndUpdateEntityAlias; + private validateAliasId; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/dialog.service.d.ts b/src/app/core/services/dialog.service.d.ts new file mode 100644 index 00000000..99683f34 --- /dev/null +++ b/src/app/core/services/dialog.service.d.ts @@ -0,0 +1,20 @@ +import { Observable } from 'rxjs'; +import { MatDialog } from '@angular/material/dialog'; +import { TranslateService } from '@ngx-translate/core'; +import { AuthService } from '@core/auth/auth.service'; +import * as i0 from "@angular/core"; +export declare class DialogService { + private translate; + private authService; + dialog: MatDialog; + constructor(translate: TranslateService, authService: AuthService, dialog: MatDialog); + confirm(title: string, message: string, cancel?: string, ok?: string, fullscreen?: boolean): Observable; + alert(title: string, message: string, ok?: string, fullscreen?: boolean): Observable; + colorPicker(color: string): Observable; + materialIconPicker(icon: string): Observable; + private permissionDenied; + forbidden(): Observable; + todo(): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/dynamic-component-factory.service.d.ts b/src/app/core/services/dynamic-component-factory.service.d.ts new file mode 100644 index 00000000..2b511df4 --- /dev/null +++ b/src/app/core/services/dynamic-component-factory.service.d.ts @@ -0,0 +1,20 @@ +import { Compiler, ComponentFactory, Injector, OnDestroy, Type } from '@angular/core'; +import { Observable } from 'rxjs'; +import * as i0 from "@angular/core"; +export declare abstract class DynamicComponentModule implements OnDestroy { + ngOnDestroy(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} +export declare class DynamicComponentFactoryService { + private compiler; + private injector; + private dynamicComponentModulesMap; + constructor(compiler: Compiler, injector: Injector); + createDynamicComponentFactory(componentType: Type, template: string, modules?: Type[], preserveWhitespaces?: boolean, compileAttempt?: number): Observable>; + destroyDynamicComponentFactory(factory: ComponentFactory): void; + private createDynamicComponent; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/help.service.d.ts b/src/app/core/services/help.service.d.ts new file mode 100644 index 00000000..719be27b --- /dev/null +++ b/src/app/core/services/help.service.d.ts @@ -0,0 +1,20 @@ +import { HttpClient } from '@angular/common/http'; +import { TranslateService } from '@ngx-translate/core'; +import { Observable } from 'rxjs'; +import { UiSettingsService } from '@core/http/ui-settings.service'; +import * as i0 from "@angular/core"; +export declare class HelpService { + private translate; + private http; + private uiSettingsService; + private siteBaseUrl; + private helpCache; + constructor(translate: TranslateService, http: HttpClient, uiSettingsService: UiSettingsService); + getHelpContent(key: string): Observable; + private loadHelpContent; + private loadHelpContentFromBaseUrl; + private processVariables; + private processIncludes; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/item-buffer.service.d.ts b/src/app/core/services/item-buffer.service.d.ts new file mode 100644 index 00000000..61ec0507 --- /dev/null +++ b/src/app/core/services/item-buffer.service.d.ts @@ -0,0 +1,81 @@ +import { Dashboard, DashboardLayoutId } from '@app/shared/models/dashboard.models'; +import { AliasesInfo } from '@shared/models/alias.models'; +import { Widget, WidgetPosition, WidgetSize } from '@shared/models/widget.models'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import { UtilsService } from '@core/services/utils.service'; +import { Observable } from 'rxjs'; +import { FcRuleNode } from '@shared/models/rule-node.models'; +import { RuleChainService } from '@core/http/rule-chain.service'; +import { RuleChainImport } from '@shared/models/rule-chain.models'; +import { FiltersInfo } from '@shared/models/query/query.models'; +import * as i0 from "@angular/core"; +export interface WidgetItem { + widget: Widget; + aliasesInfo: AliasesInfo; + filtersInfo: FiltersInfo; + originalSize: WidgetSize; + originalColumns: number; +} +export interface WidgetReference { + dashboardId: string; + sourceState: string; + sourceLayout: DashboardLayoutId; + widgetId: string; + originalSize: WidgetSize; + originalColumns: number; +} +export interface RuleNodeConnection { + isInputSource: boolean; + fromIndex: number; + toIndex: number; + label: string; + labels: string[]; +} +export interface RuleNodesReference { + nodes: FcRuleNode[]; + connections: RuleNodeConnection[]; + originX?: number; + originY?: number; +} +export declare class ItemBufferService { + private dashboardUtils; + private ruleChainService; + private utils; + private namespace; + private delimiter; + constructor(dashboardUtils: DashboardUtilsService, ruleChainService: RuleChainService, utils: UtilsService); + prepareWidgetItem(dashboard: Dashboard, sourceState: string, sourceLayout: DashboardLayoutId, widget: Widget): WidgetItem; + copyWidget(dashboard: Dashboard, sourceState: string, sourceLayout: DashboardLayoutId, widget: Widget): void; + copyWidgetReference(dashboard: Dashboard, sourceState: string, sourceLayout: DashboardLayoutId, widget: Widget): void; + hasWidget(): boolean; + canPasteWidgetReference(dashboard: Dashboard, state: string, layout: DashboardLayoutId): boolean; + pasteWidget(targetDashboard: Dashboard, targetState: string, targetLayout: DashboardLayoutId, position: WidgetPosition, onAliasesUpdateFunction: () => void, onFiltersUpdateFunction: () => void): Observable; + pasteWidgetReference(targetDashboard: Dashboard, targetState: string, targetLayout: DashboardLayoutId, position: WidgetPosition): Observable; + addWidgetToDashboard(dashboard: Dashboard, targetState: string, targetLayout: DashboardLayoutId, widget: Widget, aliasesInfo: AliasesInfo, filtersInfo: FiltersInfo, onAliasesUpdateFunction: () => void, onFiltersUpdateFunction: () => void, originalColumns: number, originalSize: WidgetSize, row: number, column: number): Observable; + copyRuleNodes(nodes: FcRuleNode[], connections: RuleNodeConnection[]): void; + hasRuleNodes(): boolean; + pasteRuleNodes(x: number, y: number): RuleNodesReference; + hasRuleChainImport(): boolean; + storeRuleChainImport(ruleChainImport: RuleChainImport): void; + getRuleChainImport(): RuleChainImport; + private getOriginalColumns; + private getOriginalSize; + private prepareAliasInfo; + private prepareFilterInfo; + private prepareWidgetReference; + private updateAliases; + private updateFilters; + private isEntityAliasEqual; + private getEntityAliasId; + private createEntityAliasName; + private isFilterEqual; + private getFilterId; + private createFilterName; + private storeSet; + private storeGet; + private storeHas; + private storeRemove; + private getNamespacedKey; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/menu.models.d.ts b/src/app/core/services/menu.models.d.ts new file mode 100644 index 00000000..704be2f3 --- /dev/null +++ b/src/app/core/services/menu.models.d.ts @@ -0,0 +1,21 @@ +import { HasUUID } from '@shared/models/id/has-uuid'; +export declare type MenuSectionType = 'link' | 'toggle'; +export interface MenuSection extends HasUUID { + name: string; + type: MenuSectionType; + path: string; + icon: string; + isMdiIcon?: boolean; + height?: string; + pages?: Array; +} +export interface HomeSection { + name: string; + places: Array; +} +export interface HomeSectionPlace { + name: string; + icon: string; + isMdiIcon?: boolean; + path: string; +} diff --git a/src/app/core/services/menu.service.d.ts b/src/app/core/services/menu.service.d.ts new file mode 100644 index 00000000..5e4303e3 --- /dev/null +++ b/src/app/core/services/menu.service.d.ts @@ -0,0 +1,24 @@ +import { AuthService } from '../auth/auth.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '../core.state'; +import { HomeSection, MenuSection } from '@core/services/menu.models'; +import { Observable, Subject } from 'rxjs'; +import * as i0 from "@angular/core"; +export declare class MenuService { + private store; + private authService; + menuSections$: Subject>; + homeSections$: Subject>; + constructor(store: Store, authService: AuthService); + private buildMenu; + private buildSysAdminMenu; + private buildSysAdminHome; + private buildTenantAdminMenu; + private buildTenantAdminHome; + private buildCustomerUserMenu; + private buildCustomerUserHome; + menuSections(): Observable>; + homeSections(): Observable>; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/mobile.service.d.ts b/src/app/core/services/mobile.service.d.ts new file mode 100644 index 00000000..76c639b5 --- /dev/null +++ b/src/app/core/services/mobile.service.d.ts @@ -0,0 +1,31 @@ +import { MobileActionResult, WidgetMobileActionResult, WidgetMobileActionType } from '@shared/models/widget.models'; +import { Observable } from 'rxjs/internal/Observable'; +import { Params, Router } from '@angular/router'; +import { AuthService } from '@core/auth/auth.service'; +import * as i0 from "@angular/core"; +export declare class MobileService { + private window; + private router; + private authService; + private readonly mobileApp; + private readonly mobileChannel; + private readonly onWindowMessageListener; + private reloadUserObservable; + private lastDashboardId; + private toggleLayoutFunction; + constructor(window: Window, router: Router, authService: AuthService); + isMobileApp(): boolean; + handleDashboardStateName(name: string): void; + onDashboardLoaded(hasRightLayout: boolean, rightLayoutOpened: boolean): void; + onDashboardRightLayoutChanged(opened: boolean): void; + registerToggleLayoutFunction(toggleLayoutFunction: () => void): void; + unregisterToggleLayoutFunction(): void; + handleWidgetMobileAction(type: WidgetMobileActionType, ...args: any[]): Observable>; + handleMobileNavigation(path?: string, params?: Params): void; + private onWindowMessage; + private openDashboard; + private doDashboardNavigation; + private reloadUser; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/notification.service.d.ts b/src/app/core/services/notification.service.d.ts new file mode 100644 index 00000000..4075d086 --- /dev/null +++ b/src/app/core/services/notification.service.d.ts @@ -0,0 +1,14 @@ +import { HideNotification, NotificationMessage } from '@app/core/notification/notification.models'; +import { Observable } from 'rxjs'; +import * as i0 from "@angular/core"; +export declare class NotificationService { + private notificationSubject; + private hideNotificationSubject; + constructor(); + dispatchNotification(notification: NotificationMessage): void; + hideNotification(hideNotification: HideNotification): void; + getNotification(): Observable; + getHideNotification(): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/public-api.d.ts b/src/app/core/services/public-api.d.ts new file mode 100644 index 00000000..cf41c1dd --- /dev/null +++ b/src/app/core/services/public-api.d.ts @@ -0,0 +1,16 @@ +export * from './script/node-script-test.service'; +export * from './broadcast.models'; +export * from './broadcast.service'; +export * from './dashboard-utils.service'; +export * from './dialog.service'; +export * from './dynamic-component-factory.service'; +export * from './item-buffer.service'; +export * from './menu.models'; +export * from './menu.service'; +export * from './notification.service'; +export * from './raf.service'; +export * from './resources.service'; +export * from './time.service'; +export * from './title.service'; +export * from './utils.service'; +export * from './window.service'; diff --git a/src/app/core/services/raf.service.d.ts b/src/app/core/services/raf.service.d.ts new file mode 100644 index 00000000..1ca7340a --- /dev/null +++ b/src/app/core/services/raf.service.d.ts @@ -0,0 +1,13 @@ +import { NgZone } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare type CancelAnimationFrame = () => void; +export declare class RafService { + private window; + private ngZone; + private readonly rafFunction; + private readonly rafSupported; + constructor(window: Window, ngZone: NgZone); + raf(frameCallback: () => void, runInZone?: boolean): CancelAnimationFrame; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/resources.service.d.ts b/src/app/core/services/resources.service.d.ts new file mode 100644 index 00000000..0cb19486 --- /dev/null +++ b/src/app/core/services/resources.service.d.ts @@ -0,0 +1,24 @@ +import { Compiler, ComponentFactory, Injector, Type } from '@angular/core'; +import { Observable } from 'rxjs'; +import { HttpClient } from '@angular/common/http'; +import { IModulesMap } from '@modules/common/modules-map.models'; +import * as i0 from "@angular/core"; +export declare class ResourcesService { + private readonly document; + private compiler; + private http; + private injector; + private loadedResources; + private loadedModules; + private loadedFactories; + private anchor; + constructor(document: any, compiler: Compiler, http: HttpClient, injector: Injector); + loadResource(url: string): Observable; + loadFactories(url: string, modulesMap: IModulesMap): Observable[]>; + loadModules(url: string, modulesMap: IModulesMap): Observable[]>; + private extractNgModules; + private isPrimitive; + private loadResourceByType; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/script/node-script-test.service.d.ts b/src/app/core/services/script/node-script-test.service.d.ts new file mode 100644 index 00000000..e3026b01 --- /dev/null +++ b/src/app/core/services/script/node-script-test.service.d.ts @@ -0,0 +1,13 @@ +import { Observable } from 'rxjs'; +import { RuleChainService } from '@core/http/rule-chain.service'; +import { MatDialog } from '@angular/material/dialog'; +import * as i0 from "@angular/core"; +export declare class NodeScriptTestService { + private ruleChainService; + dialog: MatDialog; + constructor(ruleChainService: RuleChainService, dialog: MatDialog); + testNodeScript(script: string, scriptType: string, functionTitle: string, functionName: string, argNames: string[], ruleNodeId: string, helpId?: string): Observable; + private openTestScriptDialog; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/time.service.d.ts b/src/app/core/services/time.service.d.ts new file mode 100644 index 00000000..c2cc575c --- /dev/null +++ b/src/app/core/services/time.service.d.ts @@ -0,0 +1,32 @@ +import { AggregationType, Timewindow } from '@shared/models/time/time.models'; +import { HttpClient } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import * as i0 from "@angular/core"; +export interface TimeInterval { + name: string; + translateParams: { + [key: string]: any; + }; + value: number; +} +export declare class TimeService { + private http; + private maxDatapointsLimit; + constructor(http: HttpClient); + loadMaxDatapointsLimit(): Observable; + matchesExistingInterval(min: number, max: number, intervalMs: number): boolean; + getIntervals(min: number, max: number): Array; + boundMinInterval(min: number): number; + boundMaxInterval(max: number): number; + boundToPredefinedInterval(min: number, max: number, intervalMs: number): number; + boundIntervalToTimewindow(timewindow: number, intervalMs: number, aggType: AggregationType): number; + getMaxDatapointsLimit(): number; + getMinDatapointsLimit(): number; + avgInterval(timewindow: number): number; + minIntervalLimit(timewindowMs: number): number; + maxIntervalLimit(timewindowMs: number): number; + defaultTimewindow(): Timewindow; + private toBound; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/title.service.d.ts b/src/app/core/services/title.service.d.ts new file mode 100644 index 00000000..b927f661 --- /dev/null +++ b/src/app/core/services/title.service.d.ts @@ -0,0 +1,12 @@ +import { Title } from '@angular/platform-browser'; +import { ActivatedRouteSnapshot } from '@angular/router'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class TitleService { + private translate; + private title; + constructor(translate: TranslateService, title: Title); + setTitle(snapshot: ActivatedRouteSnapshot, lazyTranslate?: TranslateService): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/utils.service.d.ts b/src/app/core/services/utils.service.d.ts new file mode 100644 index 00000000..c4b168d8 --- /dev/null +++ b/src/app/core/services/utils.service.d.ts @@ -0,0 +1,52 @@ +/// +import { NgZone } from '@angular/core'; +import { ExceptionData } from '@app/shared/models/error.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DataKey, Datasource, KeyInfo } from '@shared/models/widget.models'; +import { DataKeyType } from '@app/shared/models/telemetry/telemetry.models'; +import { WidgetInfo } from '@home/models/widget-component.models'; +import { Observable } from 'rxjs'; +import * as i0 from "@angular/core"; +export declare class UtilsService { + private window; + private zone; + private translate; + iframeMode: boolean; + widgetEditMode: boolean; + editWidgetInfo: WidgetInfo; + defaultDataKey: DataKey; + defaultDatasource: Datasource; + defaultAlarmDataKeys: Array; + materialIcons: Array; + constructor(window: Window, zone: NgZone, translate: TranslateService); + getPredefinedFunctionsList(): Array; + getPredefinedFunctionBody(func: string): string; + getDefaultDatasource(dataKeySchema: any): Datasource; + private initDefaultAlarmDataKeys; + getDefaultAlarmDataKeys(): Array; + generateObjectFromJsonSchema(schema: any): any; + processWidgetException(exception: any): ExceptionData; + parseException(exception: any, lineOffset?: number): ExceptionData; + customTranslation(translationValue: string, defaultValue: string): string; + private doTranslate; + guid(): string; + validateDatasources(datasources: Array): Array; + getMaterialIcons(): Observable>; + getCommonMaterialIcons(): Array; + getMaterialColor(index: number): string; + createKey(keyInfo: KeyInfo, type: DataKeyType, index?: number): DataKey; + createLabelFromDatasource(datasource: Datasource, pattern: string): string; + generateColors(datasources: Array): void; + currentPerfTime(): number; + getQueryParam(name: string): string; + removeQueryParams(keys: Array): void; + updateQueryParam(name: string, value: string | null): void; + private updateUrlQueryString; + baseUrl(): string; + deepClone(target: T, ignoreFields?: string[]): T; + isUndefined(value: any): boolean; + isDefined(value: any): boolean; + defaultValue(value: any, defaultValue: any): any; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/services/window.service.d.ts b/src/app/core/services/window.service.d.ts new file mode 100644 index 00000000..a1c673fe --- /dev/null +++ b/src/app/core/services/window.service.d.ts @@ -0,0 +1,16 @@ +import { ClassProvider, FactoryProvider, InjectionToken } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare const WINDOW: InjectionToken; +export declare abstract class WindowRef { + get nativeWindow(): Window | object; +} +export declare class BrowserWindowRef extends WindowRef { + constructor(); + get nativeWindow(): Window | object; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare function windowFactory(browserWindowRef: BrowserWindowRef, platformId: object): Window | object; +export declare const browserWindowProvider: ClassProvider; +export declare const windowProvider: FactoryProvider; +export declare const WINDOW_PROVIDERS: (ClassProvider | FactoryProvider)[]; diff --git a/src/app/core/settings/settings.actions.d.ts b/src/app/core/settings/settings.actions.d.ts new file mode 100644 index 00000000..5c8b9f56 --- /dev/null +++ b/src/app/core/settings/settings.actions.d.ts @@ -0,0 +1,14 @@ +import { Action } from '@ngrx/store'; +export declare enum SettingsActionTypes { + CHANGE_LANGUAGE = "[Settings] Change Language" +} +export declare class ActionSettingsChangeLanguage implements Action { + readonly payload: { + userLang: string; + }; + readonly type = SettingsActionTypes.CHANGE_LANGUAGE; + constructor(payload: { + userLang: string; + }); +} +export declare type SettingsActions = ActionSettingsChangeLanguage; diff --git a/src/app/core/settings/settings.effects.d.ts b/src/app/core/settings/settings.effects.d.ts new file mode 100644 index 00000000..cad15a0f --- /dev/null +++ b/src/app/core/settings/settings.effects.d.ts @@ -0,0 +1,29 @@ +import { Router } from '@angular/router'; +import { Store } from '@ngrx/store'; +import { Actions } from '@ngrx/effects'; +import { TranslateService } from '@ngx-translate/core'; +import { SettingsActions } from './settings.actions'; +import { AppState } from '@app/core/core.state'; +import { LocalStorageService } from '@app/core/local-storage/local-storage.service'; +import { TitleService } from '@app/core/services/title.service'; +import { AuthService } from '@core/auth/auth.service'; +import { UtilsService } from '@core/services/utils.service'; +import * as i0 from "@angular/core"; +export declare const SETTINGS_KEY = "SETTINGS"; +export declare class SettingsEffects { + private actions$; + private store; + private authService; + private utils; + private router; + private localStorageService; + private titleService; + private translate; + constructor(actions$: Actions, store: Store, authService: AuthService, utils: UtilsService, router: Router, localStorageService: LocalStorageService, titleService: TitleService, translate: TranslateService); + persistSettings: import("rxjs").Observable<[import("./settings.actions").ActionSettingsChangeLanguage, import("./settings.models").SettingsState]>; + setTranslateServiceLanguage: import("rxjs").Observable; + setTitle: import("rxjs").Observable; + setPublicId: import("rxjs").Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/settings/settings.models.d.ts b/src/app/core/settings/settings.models.d.ts new file mode 100644 index 00000000..290de8fc --- /dev/null +++ b/src/app/core/settings/settings.models.d.ts @@ -0,0 +1,3 @@ +export interface SettingsState { + userLang: string; +} diff --git a/src/app/core/settings/settings.reducer.d.ts b/src/app/core/settings/settings.reducer.d.ts new file mode 100644 index 00000000..72148926 --- /dev/null +++ b/src/app/core/settings/settings.reducer.d.ts @@ -0,0 +1,4 @@ +import { SettingsState } from './settings.models'; +import { SettingsActions } from './settings.actions'; +export declare const initialState: SettingsState; +export declare function settingsReducer(state: SettingsState, action: SettingsActions): SettingsState; diff --git a/src/app/core/settings/settings.selectors.d.ts b/src/app/core/settings/settings.selectors.d.ts new file mode 100644 index 00000000..f3258617 --- /dev/null +++ b/src/app/core/settings/settings.selectors.d.ts @@ -0,0 +1,5 @@ +import { SettingsState } from './settings.models'; +import { AppState } from '@app/core/core.state'; +export declare const selectSettingsState: import("@ngrx/store").MemoizedSelector>; +export declare const selectSettings: import("@ngrx/store").MemoizedSelector>; +export declare const selectUserLang: import("@ngrx/store").MemoizedSelector>; diff --git a/src/app/core/settings/settings.utils.d.ts b/src/app/core/settings/settings.utils.d.ts new file mode 100644 index 00000000..f9adf77b --- /dev/null +++ b/src/app/core/settings/settings.utils.d.ts @@ -0,0 +1,2 @@ +import { TranslateService } from '@ngx-translate/core'; +export declare function updateUserLang(translate: TranslateService, userLang: string): void; diff --git a/src/app/core/translate/missing-translate-handler.d.ts b/src/app/core/translate/missing-translate-handler.d.ts new file mode 100644 index 00000000..a7a57f4f --- /dev/null +++ b/src/app/core/translate/missing-translate-handler.d.ts @@ -0,0 +1,4 @@ +import { MissingTranslationHandler, MissingTranslationHandlerParams } from '@ngx-translate/core'; +export declare class TbMissingTranslationHandler implements MissingTranslationHandler { + handle(params: MissingTranslationHandlerParams): void; +} diff --git a/src/app/core/translate/translate-default-compiler.d.ts b/src/app/core/translate/translate-default-compiler.d.ts new file mode 100644 index 00000000..d02b1d98 --- /dev/null +++ b/src/app/core/translate/translate-default-compiler.d.ts @@ -0,0 +1,11 @@ +import { MessageFormatConfig, TranslateMessageFormatCompiler } from 'ngx-translate-messageformat-compiler'; +import * as i0 from "@angular/core"; +export declare class TranslateDefaultCompiler extends TranslateMessageFormatCompiler { + constructor(config?: MessageFormatConfig); + compile(value: string, lang: string): (params: any) => string; + compileTranslations(translations: any, lang: string): any; + private defaultCompile; + private checkIsPlural; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/translate/translate-default-parser.d.ts b/src/app/core/translate/translate-default-parser.d.ts new file mode 100644 index 00000000..148dacc9 --- /dev/null +++ b/src/app/core/translate/translate-default-parser.d.ts @@ -0,0 +1,11 @@ +import { TranslateParser } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class TranslateDefaultParser extends TranslateParser { + templateMatcher: RegExp; + interpolate(expr: string | Function, params?: any): string; + getValue(target: any, key: string): any; + private interpolateFunction; + private interpolateString; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/core/utils.d.ts b/src/app/core/utils.d.ts new file mode 100644 index 00000000..6904d7fb --- /dev/null +++ b/src/app/core/utils.d.ts @@ -0,0 +1,46 @@ +import { Observable } from 'rxjs'; +import { Datasource } from '@app/shared/models/widget.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare function onParentScrollOrWindowResize(el: Node): Observable; +export declare function isLocalUrl(url: string): boolean; +export declare function animatedScroll(element: HTMLElement, scrollTop: number, delay?: number): void; +export declare function isUndefined(value: any): boolean; +export declare function isUndefinedOrNull(value: any): boolean; +export declare function isDefined(value: any): boolean; +export declare function isDefinedAndNotNull(value: any): boolean; +export declare function isEmptyStr(value: any): boolean; +export declare function isNotEmptyStr(value: any): boolean; +export declare function isFunction(value: any): boolean; +export declare function isObject(value: any): boolean; +export declare function isNumber(value: any): boolean; +export declare function isNumeric(value: any): boolean; +export declare function isBoolean(value: any): boolean; +export declare function isString(value: any): boolean; +export declare function isEmpty(obj: any): boolean; +export declare function isLiteralObject(value: any): boolean; +export declare function formatValue(value: any, dec?: number, units?: string, showZeroDecimals?: boolean): string | undefined; +export declare function objectValues(obj: any): any[]; +export declare function deleteNullProperties(obj: any): void; +export declare function objToBase64(obj: any): string; +export declare function objToBase64URI(obj: any): string; +export declare function base64toObj(b64Encoded: string): any; +export declare function hashCode(str: string): number; +export declare function objectHashCode(obj: any): number; +export declare function deepClone(target: T, ignoreFields?: string[]): T; +export declare function isEqual(a: any, b: any): boolean; +export declare function mergeDeep(target: T, ...sources: T[]): T; +export declare function guid(): string; +export declare function snakeCase(name: string, separator: string): string; +export declare function getDescendantProp(obj: any, path: string): any; +export declare function insertVariable(pattern: string, name: string, value: any): string; +export declare function createLabelFromDatasource(datasource: Datasource, pattern: string): string; +export declare function padValue(val: any, dec: number): string; +export declare function baseUrl(): string; +export declare function sortObjectKeys(obj: T): T; +export declare function deepTrim(obj: T): T; +export declare function generateSecret(length?: number): string; +export declare function validateEntityId(entityId: EntityId | null): boolean; +export declare function isMobileApp(): boolean; +export declare function randomAlphanumeric(length: number): string; +export declare function getEntityDetailsPageURL(id: string, entityType: EntityType): string; diff --git a/src/app/core/ws/telemetry-websocket.service.d.ts b/src/app/core/ws/telemetry-websocket.service.d.ts new file mode 100644 index 00000000..33125c9c --- /dev/null +++ b/src/app/core/ws/telemetry-websocket.service.d.ts @@ -0,0 +1,46 @@ +/// +import { NgZone } from '@angular/core'; +import { TelemetryPluginCmdsWrapper, TelemetryService, TelemetrySubscriber, WebsocketDataMsg } from '@app/shared/models/telemetry/telemetry.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { AuthService } from '@core/auth/auth.service'; +import { WebSocketSubject } from 'rxjs/webSocket'; +import Timeout = NodeJS.Timeout; +import * as i0 from "@angular/core"; +export declare class TelemetryWebsocketService implements TelemetryService { + private store; + private authService; + private ngZone; + private window; + isActive: boolean; + isOpening: boolean; + isOpened: boolean; + isReconnect: boolean; + socketCloseTimer: Timeout; + reconnectTimer: Timeout; + lastCmdId: number; + subscribersCount: number; + subscribersMap: Map; + reconnectSubscribers: Set; + cmdsWrapper: TelemetryPluginCmdsWrapper; + telemetryUri: string; + dataStream: WebSocketSubject; + constructor(store: Store, authService: AuthService, ngZone: NgZone, window: Window); + subscribe(subscriber: TelemetrySubscriber): void; + update(subscriber: TelemetrySubscriber): void; + unsubscribe(subscriber: TelemetrySubscriber): void; + private nextCmdId; + private publishCommands; + private checkToClose; + private reset; + private closeSocket; + private tryOpenSocket; + private openSocket; + private onOpen; + private onMessage; + private onError; + private onClose; + private showWsError; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/common/modules-map.d.ts b/src/app/modules/common/modules-map.d.ts new file mode 100644 index 00000000..94e0e906 --- /dev/null +++ b/src/app/modules/common/modules-map.d.ts @@ -0,0 +1,8 @@ +import { IModulesMap } from '@modules/common/modules-map.models'; +declare class ModulesMap implements IModulesMap { + private initialized; + private modulesMap; + init(): void; +} +export declare const modulesMap: ModulesMap; +export {}; diff --git a/src/app/modules/common/modules-map.models.d.ts b/src/app/modules/common/modules-map.models.d.ts new file mode 100644 index 00000000..667f3b3c --- /dev/null +++ b/src/app/modules/common/modules-map.models.d.ts @@ -0,0 +1,3 @@ +export interface IModulesMap { + init(): void; +} diff --git a/src/app/modules/common/modules-map.ts b/src/app/modules/common/modules-map.ts new file mode 100644 index 00000000..b4f4ea13 --- /dev/null +++ b/src/app/modules/common/modules-map.ts @@ -0,0 +1,596 @@ +/// +/// Copyright © 2016-2022 The Thingsboard Authors +/// +/// Licensed under the Apache License, Version 2.0 (the "License"); +/// you may not use this file except in compliance with the License. +/// You may obtain a copy of the License at +/// +/// http://www.apache.org/licenses/LICENSE-2.0 +/// +/// Unless required by applicable law or agreed to in writing, software +/// distributed under the License is distributed on an "AS IS" BASIS, +/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +/// See the License for the specific language governing permissions and +/// limitations under the License. +/// + +import * as AngularAnimations from '@angular/animations'; +import * as AngularCore from '@angular/core'; +import * as AngularCommon from '@angular/common'; +import * as AngularForms from '@angular/forms'; +import * as AngularFlexLayout from '@angular/flex-layout'; +import * as AngularFlexLayoutFlex from '@angular/flex-layout/flex'; +import * as AngularFlexLayoutGrid from '@angular/flex-layout/grid'; +import * as AngularFlexLayoutExtended from '@angular/flex-layout/extended'; +import * as AngularPlatformBrowser from '@angular/platform-browser'; +import * as AngularPlatformBrowserAnimations from '@angular/platform-browser/animations'; +import * as AngularRouter from '@angular/router'; +import * as AngularCdkCoercion from '@angular/cdk/coercion'; +import * as AngularCdkCollections from '@angular/cdk/collections'; +import * as AngularCdkKeycodes from '@angular/cdk/keycodes'; +import * as AngularCdkLayout from '@angular/cdk/layout'; +import * as AngularCdkOverlay from '@angular/cdk/overlay'; +import * as AngularCdkPortal from '@angular/cdk/portal'; +import * as AngularCdkBidi from '@angular/cdk/bidi'; +import * as AngularCdkPlatform from '@angular/cdk/platform'; +import * as AngularMaterialAutocomplete from '@angular/material/autocomplete'; +import * as AngularMaterialBadge from '@angular/material/badge'; +import * as AngularMaterialBottomSheet from '@angular/material/bottom-sheet'; +import * as AngularMaterialButton from '@angular/material/button'; +import * as AngularMaterialButtonToggle from '@angular/material/button-toggle'; +import * as AngularMaterialCard from '@angular/material/card'; +import * as AngularMaterialCheckbox from '@angular/material/checkbox'; +import * as AngularMaterialChips from '@angular/material/chips'; +import * as AngularMaterialCore from '@angular/material/core'; +import * as AngularMaterialDatepicker from '@angular/material/datepicker'; +import * as AngularMaterialDialog from '@angular/material/dialog'; +import * as AngularMaterialDivider from '@angular/material/divider'; +import * as AngularMaterialExpansion from '@angular/material/expansion'; +import * as AngularMaterialFormField from '@angular/material/form-field'; +import * as AngularMaterialGridList from '@angular/material/grid-list'; +import * as AngularMaterialIcon from '@angular/material/icon'; +import * as AngularMaterialInput from '@angular/material/input'; +import * as AngularMaterialList from '@angular/material/list'; +import * as AngularMaterialMenu from '@angular/material/menu'; +import * as AngularMaterialPaginator from '@angular/material/paginator'; +import * as AngularMaterialProgressBar from '@angular/material/progress-bar'; +import * as AngularMaterialProgressSpinner from '@angular/material/progress-spinner'; +import * as AngularMaterialRadio from '@angular/material/radio'; +import * as AngularMaterialSelect from '@angular/material/select'; +import * as AngularMaterialSidenav from '@angular/material/sidenav'; +import * as AngularMaterialSlideToggle from '@angular/material/slide-toggle'; +import * as AngularMaterialSlider from '@angular/material/slider'; +import * as AngularMaterialSnackBar from '@angular/material/snack-bar'; +import * as AngularMaterialSort from '@angular/material/sort'; +import * as AngularMaterialStepper from '@angular/material/stepper'; +import * as AngularMaterialTable from '@angular/material/table'; +import * as AngularMaterialTabs from '@angular/material/tabs'; +import * as AngularMaterialToolbar from '@angular/material/toolbar'; +import * as AngularMaterialTooltip from '@angular/material/tooltip'; +import * as AngularMaterialTree from '@angular/material/tree'; +import * as DragDropModule from '@angular/cdk/drag-drop'; +import * as HttpClientModule from '@angular/common/http'; + +import * as NgrxStore from '@ngrx/store'; +import * as RxJs from 'rxjs'; +import * as RxJsOperators from 'rxjs/operators'; +import * as TranslateCore from '@ngx-translate/core'; +import * as MatDateTimePicker from '@mat-datetimepicker/core'; +import * as _moment from 'moment'; +import * as tslib from 'tslib'; + +import * as TbCore from '@core/public-api'; +import * as TbShared from '@shared/public-api'; +import * as TbHomeComponents from '@home/components/public-api'; + +import * as MillisecondsToTimeStringPipe from '@shared/pipe/milliseconds-to-time-string.pipe'; +import * as EnumToArrayPipe from '@shared/pipe/enum-to-array.pipe'; +import * as HighlightPipe from '@shared/pipe/highlight.pipe'; +import * as TruncatePipe from '@shared/pipe/truncate.pipe'; +import * as TbJsonPipe from '@shared/pipe/tbJson.pipe'; +import * as FileSizePipe from '@shared/pipe/file-size.pipe'; +import * as NospacePipe from '@shared/pipe/nospace.pipe'; +import * as SelectableColumnsPipe from '@shared/pipe/selectable-columns.pipe'; +import * as KeyboardShortcutPipe from '@shared/pipe/keyboard-shortcut.pipe'; + +import * as FooterComponent from '@shared/components/footer.component'; +import * as LogoComponent from '@shared/components/logo.component'; +import * as FooterFabButtonsComponent from '@shared/components/footer-fab-buttons.component'; +import * as FullscreenDirective from '@shared/components/fullscreen.directive'; +import * as CircularProgressDirective from '@shared/components/circular-progress.directive'; +import * as MatChipDraggableDirective from '@shared/components/mat-chip-draggable.directive'; +import * as TbHotkeysDirective from '@shared/components/hotkeys.directive'; +import * as TbAnchorComponent from '@shared/components/tb-anchor.component'; +import * as TbPopoverComponent from '@shared/components/popover.component'; +import * as TbStringTemplateOutletDirective from '@shared/components/directives/sring-template-outlet.directive'; +import * as TbComponentOutletDirective from '@shared/components/directives/component-outlet.directive'; +import * as TbMarkdownComponent from '@shared/components/markdown.component'; +import * as HelpComponent from '@shared/components/help.component'; +import * as HelpMarkdownComponent from '@shared/components/help-markdown.component'; +import * as HelpPopupComponent from '@shared/components/help-popup.component'; +import * as TbCheckboxComponent from '@shared/components/tb-checkbox.component'; +import * as TbToast from '@shared/components/toast.directive'; +import * as TbErrorComponent from '@shared/components/tb-error.component'; +import * as TbCheatSheetComponent from '@shared/components/cheatsheet.component'; +import * as BreadcrumbComponent from '@shared/components/breadcrumb.component'; +import * as UserMenuComponent from '@shared/components/user-menu.component'; +import * as TimewindowComponent from '@shared/components/time/timewindow.component'; +import * as TimewindowPanelComponent from '@shared/components/time/timewindow-panel.component'; +import * as TimeintervalComponent from '@shared/components/time/timeinterval.component'; +import * as QuickTimeIntervalComponent from '@shared/components/time/quick-time-interval.component'; +import * as DashboardSelectComponent from '@shared/components/dashboard-select.component'; +import * as DashboardSelectPanelComponent from '@shared/components/dashboard-select-panel.component'; +import * as DatetimePeriodComponent from '@shared/components/time/datetime-period.component'; +import * as DatetimeComponent from '@shared/components/time/datetime.component'; +import * as TimezoneSelectComponent from '@shared/components/time/timezone-select.component'; +import * as ValueInputComponent from '@shared/components/value-input.component'; +import * as DashboardAutocompleteComponent from '@shared/components/dashboard-autocomplete.component'; +import * as EntitySubTypeAutocompleteComponent from '@shared/components/entity/entity-subtype-autocomplete.component'; +import * as EntitySubTypeSelectComponent from '@shared/components/entity/entity-subtype-select.component'; +import * as EntitySubTypeListComponent from '@shared/components/entity/entity-subtype-list.component'; +import * as EntityAutocompleteComponent from '@shared/components/entity/entity-autocomplete.component'; +import * as EntityListComponent from '@shared/components/entity/entity-list.component'; +import * as EntityTypeSelectComponent from '@shared/components/entity/entity-type-select.component'; +import * as EntitySelectComponent from '@shared/components/entity/entity-select.component'; +import * as EntityKeysListComponent from '@shared/components/entity/entity-keys-list.component'; +import * as EntityListSelectComponent from '@shared/components/entity/entity-list-select.component'; +import * as EntityTypeListComponent from '@shared/components/entity/entity-type-list.component'; +import * as QueueTypeListComponent from '@shared/components/queue/queue-type-list.component'; +import * as RelationTypeAutocompleteComponent from '@shared/components/relation/relation-type-autocomplete.component'; +import * as SocialSharePanelComponent from '@shared/components/socialshare-panel.component'; +import * as JsonObjectEditComponent from '@shared/components/json-object-edit.component'; +import * as JsonObjectViewComponent from '@shared/components/json-object-view.component'; +import * as JsonContentComponent from '@shared/components/json-content.component'; +import * as JsFuncComponent from '@shared/components/js-func.component'; +import * as FabToolbarComponent from '@shared/components/fab-toolbar.component'; +import * as WidgetsBundleSelectComponent from '@shared/components/widgets-bundle-select.component'; +import * as ConfirmDialogComponent from '@shared/components/dialog/confirm-dialog.component'; +import * as AlertDialogComponent from '@shared/components/dialog/alert-dialog.component'; +import * as TodoDialogComponent from '@shared/components/dialog/todo-dialog.component'; +import * as ColorPickerDialogComponent from '@shared/components/dialog/color-picker-dialog.component'; +import * as MaterialIconsDialogComponent from '@shared/components/dialog/material-icons-dialog.component'; +import * as ColorInputComponent from '@shared/components/color-input.component'; +import * as MaterialIconSelectComponent from '@shared/components/material-icon-select.component'; +import * as NodeScriptTestDialogComponent from '@shared/components/dialog/node-script-test-dialog.component'; +import * as JsonFormComponent from '@shared/components/json-form/json-form.component'; +import * as ImageInputComponent from '@shared/components/image-input.component'; +import * as FileInputComponent from '@shared/components/file-input.component'; +import * as MessageTypeAutocompleteComponent from '@shared/components/message-type-autocomplete.component'; +import * as KeyValMapComponent from '@shared/components/kv-map.component'; +import * as NavTreeComponent from '@shared/components/nav-tree.component'; +import * as LedLightComponent from '@shared/components/led-light.component'; +import * as TbJsonToStringDirective from '@shared/components/directives/tb-json-to-string.directive'; +import * as JsonObjectEditDialogComponent from '@shared/components/dialog/json-object-edit-dialog.component'; +import * as HistorySelectorComponent from '@shared/components/time/history-selector/history-selector.component'; +import * as EntityGatewaySelectComponent from '@shared/components/entity/entity-gateway-select.component'; +import * as ContactComponent from '@shared/components/contact.component'; +import * as OtaPackageAutocompleteComponent from '@shared/components/ota-package/ota-package-autocomplete.component'; +import * as WidgetsBundleSearchComponent from '@shared/components/widgets-bundle-search.component'; +import * as CopyButtonComponent from '@shared/components/button/copy-button.component'; +import * as TogglePasswordComponent from '@shared/components/button/toggle-password.component'; +import * as ProtobufContentComponent from '@shared/components/protobuf-content.component'; + +import * as AddEntityDialogComponent from '@home/components/entity/add-entity-dialog.component'; +import * as EntitiesTableComponent from '@home/components/entity/entities-table.component'; +import * as DetailsPanelComponent from '@home/components/details-panel.component'; +import * as EntityDetailsPanelComponent from '@home/components/entity/entity-details-panel.component'; +import * as AuditLogDetailsDialogComponent from '@home/components/audit-log/audit-log-details-dialog.component'; +import * as AuditLogTableComponent from '@home/components/audit-log/audit-log-table.component'; +import * as EventTableHeaderComponent from '@home/components/event/event-table-header.component'; +import * as EventTableComponent from '@home/components/event/event-table.component'; +import * as EventFilterPanelComponent from '@home/components/event/event-filter-panel.component'; +import * as RelationTableComponent from '@home/components/relation/relation-table.component'; +import * as RelationDialogComponent from '@home/components/relation/relation-dialog.component'; +import * as AlarmTableHeaderComponent from '@home/components/alarm/alarm-table-header.component'; +import * as AlarmTableComponent from '@home/components/alarm/alarm-table.component'; +import * as AttributeTableComponent from '@home/components/attribute/attribute-table.component'; +import * as AddAttributeDialogComponent from '@home/components/attribute/add-attribute-dialog.component'; +import * as EditAttributeValuePanelComponent from '@home/components/attribute/edit-attribute-value-panel.component'; +import * as DashboardComponent from '@home/components/dashboard/dashboard.component'; +import * as WidgetComponent from '@home/components/widget/widget.component'; +import * as LegendComponent from '@home/components/widget/legend.component'; +import * as AliasesEntitySelectPanelComponent from '@home/components/alias/aliases-entity-select-panel.component'; +import * as AliasesEntitySelectComponent from '@home/components/alias/aliases-entity-select.component'; +import * as WidgetConfigComponent from '@home/components/widget/widget-config.component'; +import * as EntityAliasesDialogComponent from '@home/components/alias/entity-aliases-dialog.component'; +import * as EntityFilterViewComponent from '@home/components/entity/entity-filter-view.component'; +import * as EntityAliasDialogComponent from '@home/components/alias/entity-alias-dialog.component'; +import * as EntityFilterComponent from '@home/components/entity/entity-filter.component'; +import * as RelationFiltersComponent from '@home/components/relation/relation-filters.component'; +import * as EntityAliasSelectComponent from '@home/components/alias/entity-alias-select.component'; +import * as DataKeysComponent from '@home/components/widget/data-keys.component'; +import * as DataKeyConfigDialogComponent from '@home/components/widget/data-key-config-dialog.component'; +import * as DataKeyConfigComponent from '@home/components/widget/data-key-config.component'; +import * as LegendConfigComponent from '@home/components/widget/legend-config.component'; +import * as ManageWidgetActionsComponent from '@home/components/widget/action/manage-widget-actions.component'; +import * as WidgetActionDialogComponent from '@home/components/widget/action/widget-action-dialog.component'; +import * as CustomActionPrettyResourcesTabsComponent from '@home/components/widget/action/custom-action-pretty-resources-tabs.component'; +import * as CustomActionPrettyEditorComponent from '@home/components/widget/action/custom-action-pretty-editor.component'; +import * as MobileActionEditorComponent from '@home/components/widget/action/mobile-action-editor.component'; +import * as CustomDialogService from '@home/components/widget/dialog/custom-dialog.service'; +import * as CustomDialogContainerComponent from '@home/components/widget/dialog/custom-dialog-container.component'; +import * as ImportDialogComponent from '@home/components/import-export/import-dialog.component'; +import * as AddWidgetToDashboardDialogComponent from '@home/components/attribute/add-widget-to-dashboard-dialog.component'; +import * as ImportDialogCsvComponent from '@home/components/import-export/import-dialog-csv.component'; +import * as TableColumnsAssignmentComponent from '@home/components/import-export/table-columns-assignment.component'; +import * as EventContentDialogComponent from '@home/components/event/event-content-dialog.component'; +import * as SharedHomeComponentsModule from '@home/components/shared-home-components.module'; +import * as SelectTargetLayoutDialogComponent from '@home/components/dashboard/select-target-layout-dialog.component'; +import * as SelectTargetStateDialogComponent from '@home/components/dashboard/select-target-state-dialog.component'; +import * as AliasesEntityAutocompleteComponent from '@home/components/alias/aliases-entity-autocomplete.component'; +import * as BooleanFilterPredicateComponent from '@home/components/filter/boolean-filter-predicate.component'; +import * as StringFilterPredicateComponent from '@home/components/filter/string-filter-predicate.component'; +import * as NumericFilterPredicateComponent from '@home/components/filter/numeric-filter-predicate.component'; +import * as ComplexFilterPredicateComponent from '@home/components/filter/complex-filter-predicate.component'; +import * as FilterPredicateComponent from '@home/components/filter/filter-predicate.component'; +import * as FilterPredicateListComponent from '@home/components/filter/filter-predicate-list.component'; +import * as KeyFilterListComponent from '@home/components/filter/key-filter-list.component'; +import * as ComplexFilterPredicateDialogComponent from '@home/components/filter/complex-filter-predicate-dialog.component'; +import * as KeyFilterDialogComponent from '@home/components/filter/key-filter-dialog.component'; +import * as FiltersDialogComponent from '@home/components/filter/filters-dialog.component'; +import * as FilterDialogComponent from '@home/components/filter/filter-dialog.component'; +import * as FilterSelectComponent from '@home/components/filter/filter-select.component'; +import * as FiltersEditComponent from '@home/components/filter/filters-edit.component'; +import * as FiltersEditPanelComponent from '@home/components/filter/filters-edit-panel.component'; +import * as UserFilterDialogComponent from '@home/components/filter/user-filter-dialog.component'; +import * as FilterUserInfoComponent from '@home/components/filter/filter-user-info.component'; +import * as FilterUserInfoDialogComponent from '@home/components/filter/filter-user-info-dialog.component'; +import * as FilterPredicateValueComponent from '@home/components/filter/filter-predicate-value.component'; +import * as TenantProfileComponent from '@home/components/profile/tenant-profile.component'; +import * as TenantProfileDialogComponent from '@home/components/profile/tenant-profile-dialog.component'; +import * as TenantProfileDataComponent from '@home/components/profile/tenant-profile-data.component'; +// tslint:disable-next-line:max-line-length +import * as DefaultDeviceProfileConfigurationComponent from '@home/components/profile/device/default-device-profile-configuration.component'; +import * as DeviceProfileConfigurationComponent from '@home/components/profile/device/device-profile-configuration.component'; +import * as DeviceProfileComponent from '@home/components/profile/device-profile.component'; +import * as DefaultDeviceProfileTransportConfigurationComponent from '@home/components/profile/device/default-device-profile-transport-configuration.component'; +import * as DeviceProfileTransportConfigurationComponent from '@home/components/profile/device/device-profile-transport-configuration.component'; +import * as DeviceProfileDialogComponent from '@home/components/profile/device-profile-dialog.component'; +import * as DeviceProfileAutocompleteComponent from '@home/components/profile/device-profile-autocomplete.component'; +import * as MqttDeviceProfileTransportConfigurationComponent from '@home/components/profile/device/mqtt-device-profile-transport-configuration.component'; +import * as CoapDeviceProfileTransportConfigurationComponent from '@home/components/profile/device/coap-device-profile-transport-configuration.component'; +import * as DeviceProfileAlarmsComponent from '@home/components/profile/alarm/device-profile-alarms.component'; +import * as DeviceProfileAlarmComponent from '@home/components/profile/alarm/device-profile-alarm.component'; +import * as CreateAlarmRulesComponent from '@home/components/profile/alarm/create-alarm-rules.component'; +import * as AlarmRuleComponent from '@home/components/profile/alarm/alarm-rule.component'; +import * as AlarmRuleConditionComponent from '@home/components/profile/alarm/alarm-rule-condition.component'; +import * as FilterTextComponent from '@home/components/filter/filter-text.component'; +import * as AddDeviceProfileDialogComponent from '@home/components/profile/add-device-profile-dialog.component'; +import * as RuleChainAutocompleteComponent from '@home/components/rule-chain/rule-chain-autocomplete.component'; +import * as DeviceProfileProvisionConfigurationComponent from '@home/components/profile/device-profile-provision-configuration.component'; +import * as AlarmScheduleComponent from '@home/components/profile/alarm/alarm-schedule.component'; +import * as DeviceWizardDialogComponent from '@home/components/wizard/device-wizard-dialog.component'; +import * as AlarmScheduleInfoComponent from '@home/components/profile/alarm/alarm-schedule-info.component'; +import * as AlarmScheduleDialogComponent from '@home/components/profile/alarm/alarm-schedule-dialog.component'; +import * as EditAlarmDetailsDialogComponent from '@home/components/profile/alarm/edit-alarm-details-dialog.component'; +import * as AlarmRuleConditionDialogComponent from '@home/components/profile/alarm/alarm-rule-condition-dialog.component'; +// tslint:disable-next-line:max-line-length +import * as DefaultTenantProfileConfigurationComponent from '@home/components/profile/tenant/default-tenant-profile-configuration.component'; +import * as TenantProfileConfigurationComponent from '@home/components/profile/tenant/tenant-profile-configuration.component'; +import * as SmsProviderConfigurationComponent from '@home/components/sms/sms-provider-configuration.component'; +import * as AwsSnsProviderConfigurationComponent from '@home/components/sms/aws-sns-provider-configuration.component'; +import * as TwilioSmsProviderConfigurationComponent from '@home/components/sms/twilio-sms-provider-configuration.component'; +import * as DashboardPageComponent from '@home/components/dashboard-page/dashboard-page.component'; +import * as DashboardToolbarComponent from '@home/components/dashboard-page/dashboard-toolbar.component'; +import * as DashboardLayoutComponent from '@home/components/dashboard-page/layout/dashboard-layout.component'; +import * as EditWidgetComponent from '@home/components/dashboard-page/edit-widget.component'; +import * as DashboardWidgetSelectComponent from '@home/components/dashboard-page/dashboard-widget-select.component'; +import * as AddWidgetDialogComponent from '@home/components/dashboard-page/add-widget-dialog.component'; +import * as ManageDashboardLayoutsDialogComponent from '@home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component'; +import * as DashboardSettingsDialogComponent from '@home/components/dashboard-page/dashboard-settings-dialog.component'; +import * as ManageDashboardStatesDialogComponent from '@home/components/dashboard-page/states/manage-dashboard-states-dialog.component'; +import * as DashboardStateDialogComponent from '@home/components/dashboard-page/states/dashboard-state-dialog.component'; +import * as EmbedDashboardDialogComponent from '@home/components/widget/dialog/embed-dashboard-dialog.component'; +import * as EdgeDownlinkTableComponent from '@home/components/edge/edge-downlink-table.component'; +import * as EdgeDownlinkTableHeaderComponent from '@home/components/edge/edge-downlink-table-header.component'; +import * as DisplayWidgetTypesPanelComponent from '@home/components/dashboard-page/widget-types-panel.component'; +import * as AlarmDurationPredicateValueComponent from '@home/components/profile/alarm/alarm-duration-predicate-value.component'; +import * as DashboardImageDialogComponent from '@home/components/dashboard-page/dashboard-image-dialog.component'; +import * as WidgetContainerComponent from '@home/components/widget/widget-container.component'; + +import { IModulesMap } from '@modules/common/modules-map.models'; + +declare const System; + +class ModulesMap implements IModulesMap { + + private initialized = false; + + private modulesMap: {[key: string]: any} = { + '@angular/animations': AngularAnimations, + '@angular/core': AngularCore, + '@angular/common': AngularCommon, + '@angular/common/http': HttpClientModule, + '@angular/forms': AngularForms, + '@angular/flex-layout': AngularFlexLayout, + '@angular/flex-layout/flex': AngularFlexLayoutFlex, + '@angular/flex-layout/grid': AngularFlexLayoutGrid, + '@angular/flex-layout/extended': AngularFlexLayoutExtended, + '@angular/platform-browser': AngularPlatformBrowser, + '@angular/platform-browser/animations': AngularPlatformBrowserAnimations, + '@angular/router': AngularRouter, + '@angular/cdk/coercion': AngularCdkCoercion, + '@angular/cdk/collections': AngularCdkCollections, + '@angular/cdk/keycodes': AngularCdkKeycodes, + '@angular/cdk/layout': AngularCdkLayout, + '@angular/cdk/overlay': AngularCdkOverlay, + '@angular/cdk/portal': AngularCdkPortal, + '@angular/cdk/bidi': AngularCdkBidi, + '@angular/cdk/platform': AngularCdkPlatform, + '@angular/cdk/drag-drop': DragDropModule, + '@angular/material/autocomplete': AngularMaterialAutocomplete, + '@angular/material/badge': AngularMaterialBadge, + '@angular/material/bottom-sheet': AngularMaterialBottomSheet, + '@angular/material/button': AngularMaterialButton, + '@angular/material/button-toggle': AngularMaterialButtonToggle, + '@angular/material/card': AngularMaterialCard, + '@angular/material/checkbox': AngularMaterialCheckbox, + '@angular/material/chips': AngularMaterialChips, + '@angular/material/core': AngularMaterialCore, + '@angular/material/datepicker': AngularMaterialDatepicker, + '@angular/material/dialog': AngularMaterialDialog, + '@angular/material/divider': AngularMaterialDivider, + '@angular/material/expansion': AngularMaterialExpansion, + '@angular/material/form-field': AngularMaterialFormField, + '@angular/material/grid-list': AngularMaterialGridList, + '@angular/material/icon': AngularMaterialIcon, + '@angular/material/input': AngularMaterialInput, + '@angular/material/list': AngularMaterialList, + '@angular/material/menu': AngularMaterialMenu, + '@angular/material/paginator': AngularMaterialPaginator, + '@angular/material/progress-bar': AngularMaterialProgressBar, + '@angular/material/progress-spinner': AngularMaterialProgressSpinner, + '@angular/material/radio': AngularMaterialRadio, + '@angular/material/select': AngularMaterialSelect, + '@angular/material/sidenav': AngularMaterialSidenav, + '@angular/material/slide-toggle': AngularMaterialSlideToggle, + '@angular/material/slider': AngularMaterialSlider, + '@angular/material/snack-bar': AngularMaterialSnackBar, + '@angular/material/sort': AngularMaterialSort, + '@angular/material/stepper': AngularMaterialStepper, + '@angular/material/table': AngularMaterialTable, + '@angular/material/tabs': AngularMaterialTabs, + '@angular/material/toolbar': AngularMaterialToolbar, + '@angular/material/tooltip': AngularMaterialTooltip, + '@angular/material/tree': AngularMaterialTree, + '@ngrx/store': NgrxStore, + rxjs: RxJs, + 'rxjs/operators': RxJsOperators, + '@ngx-translate/core': TranslateCore, + '@mat-datetimepicker/core': MatDateTimePicker, + moment: _moment, + tslib, + + '@core/public-api': TbCore, + '@shared/public-api': TbShared, + '@home/components/public-api': TbHomeComponents, + + '@shared/pipe/milliseconds-to-time-string.pipe': MillisecondsToTimeStringPipe, + '@shared/pipe/enum-to-array.pipe': EnumToArrayPipe, + '@shared/pipe/highlight.pipe': HighlightPipe, + '@shared/pipe/truncate.pipe': TruncatePipe, + '@shared/pipe/tbJson.pipe': TbJsonPipe, + '@shared/pipe/file-size.pipe': FileSizePipe, + '@shared/pipe/nospace.pipe': NospacePipe, + '@shared/pipe/selectable-columns.pipe': SelectableColumnsPipe, + '@shared/pipe/keyboard-shortcut.pipe': KeyboardShortcutPipe, + + '@shared/components/footer.component': FooterComponent, + '@shared/components/logo.component': LogoComponent, + '@shared/components/footer-fab-buttons.component': FooterFabButtonsComponent, + '@shared/components/fullscreen.directive': FullscreenDirective, + '@shared/components/circular-progress.directive': CircularProgressDirective, + '@shared/components/mat-chip-draggable.directive': MatChipDraggableDirective, + '@shared/components/hotkeys.directive': TbHotkeysDirective, + '@shared/components/tb-anchor.component': TbAnchorComponent, + '@shared/components/popover.component': TbPopoverComponent, + '@shared/components/directives/sring-template-outlet.directive': TbStringTemplateOutletDirective, + '@shared/components/directives/component-outlet.directive': TbComponentOutletDirective, + '@shared/components/markdown.component': TbMarkdownComponent, + '@shared/components/help.component': HelpComponent, + '@shared/components/help-markdown.component': HelpMarkdownComponent, + '@shared/components/help-popup.component': HelpPopupComponent, + '@shared/components/tb-checkbox.component': TbCheckboxComponent, + '@shared/components/toast.directive': TbToast, + '@shared/components/tb-error.component': TbErrorComponent, + '@shared/components/cheatsheet.component': TbCheatSheetComponent, + '@shared/components/breadcrumb.component': BreadcrumbComponent, + '@shared/components/user-menu.component': UserMenuComponent, + '@shared/components/time/timewindow.component': TimewindowComponent, + '@shared/components/time/timewindow-panel.component': TimewindowPanelComponent, + '@shared/components/time/timeinterval.component': TimeintervalComponent, + '@shared/components/time/quick-time-interval.component': QuickTimeIntervalComponent, + '@shared/components/dashboard-select.component': DashboardSelectComponent, + '@shared/components/dashboard-select-panel.component': DashboardSelectPanelComponent, + '@shared/components/time/datetime-period.component': DatetimePeriodComponent, + '@shared/components/time/datetime.component': DatetimeComponent, + '@shared/components/time/timezone-select.component': TimezoneSelectComponent, + '@shared/components/value-input.component': ValueInputComponent, + '@shared/components/dashboard-autocomplete.component': DashboardAutocompleteComponent, + '@shared/components/entity/entity-subtype-autocomplete.component': EntitySubTypeAutocompleteComponent, + '@shared/components/entity/entity-subtype-select.component': EntitySubTypeSelectComponent, + '@shared/components/entity/entity-subtype-list.component': EntitySubTypeListComponent, + '@shared/components/entity/entity-autocomplete.component': EntityAutocompleteComponent, + '@shared/components/entity/entity-list.component': EntityListComponent, + '@shared/components/entity/entity-type-select.component': EntityTypeSelectComponent, + '@shared/components/entity/entity-select.component': EntitySelectComponent, + '@shared/components/entity/entity-keys-list.component': EntityKeysListComponent, + '@shared/components/entity/entity-list-select.component': EntityListSelectComponent, + '@shared/components/entity/entity-type-list.component': EntityTypeListComponent, + '@shared/components/queue/queue-type-list.component': QueueTypeListComponent, + '@shared/components/relation/relation-type-autocomplete.component': RelationTypeAutocompleteComponent, + '@shared/components/socialshare-panel.component': SocialSharePanelComponent, + '@shared/components/json-object-edit.component': JsonObjectEditComponent, + '@shared/components/json-object-view.component': JsonObjectViewComponent, + '@shared/components/json-content.component': JsonContentComponent, + '@shared/components/js-func.component': JsFuncComponent, + '@shared/components/fab-toolbar.component': FabToolbarComponent, + '@shared/components/widgets-bundle-select.component': WidgetsBundleSelectComponent, + '@shared/components/dialog/confirm-dialog.component': ConfirmDialogComponent, + '@shared/components/dialog/alert-dialog.component': AlertDialogComponent, + '@shared/components/dialog/todo-dialog.component': TodoDialogComponent, + '@shared/components/dialog/color-picker-dialog.component': ColorPickerDialogComponent, + '@shared/components/dialog/material-icons-dialog.component': MaterialIconsDialogComponent, + '@shared/components/color-input.component': ColorInputComponent, + '@shared/components/material-icon-select.component': MaterialIconSelectComponent, + '@shared/components/dialog/node-script-test-dialog.component': NodeScriptTestDialogComponent, + '@shared/components/json-form/json-form.component': JsonFormComponent, + '@shared/components/image-input.component': ImageInputComponent, + '@shared/components/file-input.component': FileInputComponent, + '@shared/components/message-type-autocomplete.component': MessageTypeAutocompleteComponent, + '@shared/components/kv-map.component': KeyValMapComponent, + '@shared/components/nav-tree.component': NavTreeComponent, + '@shared/components/led-light.component': LedLightComponent, + '@shared/components/directives/tb-json-to-string.directive': TbJsonToStringDirective, + '@shared/components/dialog/json-object-edit-dialog.component': JsonObjectEditDialogComponent, + '@shared/components/time/history-selector/history-selector.component': HistorySelectorComponent, + '@shared/components/entity/entity-gateway-select.component': EntityGatewaySelectComponent, + '@shared/components/contact.component': ContactComponent, + '@shared/components/ota-package/ota-package-autocomplete.component': OtaPackageAutocompleteComponent, + '@shared/components/widgets-bundle-search.component': WidgetsBundleSearchComponent, + '@shared/components/button/copy-button.component': CopyButtonComponent, + '@shared/components/button/toggle-password.component': TogglePasswordComponent, + '@shared/components/protobuf-content.component': ProtobufContentComponent, + + '@home/components/entity/add-entity-dialog.component': AddEntityDialogComponent, + '@home/components/entity/entities-table.component': EntitiesTableComponent, + '@home/components/details-panel.component': DetailsPanelComponent, + '@home/components/entity/entity-details-panel.component': EntityDetailsPanelComponent, + '@home/components/audit-log/audit-log-details-dialog.component': AuditLogDetailsDialogComponent, + '@home/components/audit-log/audit-log-table.component': AuditLogTableComponent, + '@home/components/event/event-table-header.component': EventTableHeaderComponent, + '@home/components/event/event-table.component': EventTableComponent, + '@home/components/event/event-filter-panel.component': EventFilterPanelComponent, + '@home/components/relation/relation-table.component': RelationTableComponent, + '@home/components/relation/relation-dialog.component': RelationDialogComponent, + '@home/components/alarm/alarm-table-header.component': AlarmTableHeaderComponent, + '@home/components/alarm/alarm-table.component': AlarmTableComponent, + '@home/components/attribute/attribute-table.component': AttributeTableComponent, + '@home/components/attribute/add-attribute-dialog.component': AddAttributeDialogComponent, + '@home/components/attribute/edit-attribute-value-panel.component': EditAttributeValuePanelComponent, + '@home/components/dashboard/dashboard.component': DashboardComponent, + '@home/components/widget/widget.component': WidgetComponent, + '@home/components/widget/legend.component': LegendComponent, + '@home/components/alias/aliases-entity-select-panel.component': AliasesEntitySelectPanelComponent, + '@home/components/alias/aliases-entity-select.component': AliasesEntitySelectComponent, + '@home/components/widget/widget-config.component': WidgetConfigComponent, + '@home/components/alias/entity-aliases-dialog.component': EntityAliasesDialogComponent, + '@home/components/entity/entity-filter-view.component': EntityFilterViewComponent, + '@home/components/alias/entity-alias-dialog.component': EntityAliasDialogComponent, + '@home/components/entity/entity-filter.component': EntityFilterComponent, + '@home/components/relation/relation-filters.component': RelationFiltersComponent, + '@home/components/alias/entity-alias-select.component': EntityAliasSelectComponent, + '@home/components/widget/data-keys.component': DataKeysComponent, + '@home/components/widget/data-key-config-dialog.component': DataKeyConfigDialogComponent, + '@home/components/widget/data-key-config.component': DataKeyConfigComponent, + '@home/components/widget/legend-config.component': LegendConfigComponent, + '@home/components/widget/action/manage-widget-actions.component': ManageWidgetActionsComponent, + '@home/components/widget/action/widget-action-dialog.component': WidgetActionDialogComponent, + '@home/components/widget/action/custom-action-pretty-resources-tabs.component': CustomActionPrettyResourcesTabsComponent, + '@home/components/widget/action/custom-action-pretty-editor.component': CustomActionPrettyEditorComponent, + '@home/components/widget/action/mobile-action-editor.component': MobileActionEditorComponent, + '@home/components/widget/dialog/custom-dialog.service': CustomDialogService, + '@home/components/widget/dialog/custom-dialog-container.component': CustomDialogContainerComponent, + '@home/components/import-export/import-dialog.component': ImportDialogComponent, + '@home/components/attribute/add-widget-to-dashboard-dialog.component': AddWidgetToDashboardDialogComponent, + '@home/components/import-export/import-dialog-csv.component': ImportDialogCsvComponent, + '@home/components/import-export/table-columns-assignment.component': TableColumnsAssignmentComponent, + '@home/components/event/event-content-dialog.component': EventContentDialogComponent, + '@home/components/shared-home-components.module': SharedHomeComponentsModule, + '@home/components/dashboard/select-target-layout-dialog.component': SelectTargetLayoutDialogComponent, + '@home/components/dashboard/select-target-state-dialog.component': SelectTargetStateDialogComponent, + '@home/components/alias/aliases-entity-autocomplete.component': AliasesEntityAutocompleteComponent, + '@home/components/filter/boolean-filter-predicate.component': BooleanFilterPredicateComponent, + '@home/components/filter/string-filter-predicate.component': StringFilterPredicateComponent, + '@home/components/filter/numeric-filter-predicate.component': NumericFilterPredicateComponent, + '@home/components/filter/complex-filter-predicate.component': ComplexFilterPredicateComponent, + '@home/components/filter/filter-predicate.component': FilterPredicateComponent, + '@home/components/filter/filter-predicate-list.component': FilterPredicateListComponent, + '@home/components/filter/key-filter-list.component': KeyFilterListComponent, + '@home/components/filter/complex-filter-predicate-dialog.component': ComplexFilterPredicateDialogComponent, + '@home/components/filter/key-filter-dialog.component': KeyFilterDialogComponent, + '@home/components/filter/filters-dialog.component': FiltersDialogComponent, + '@home/components/filter/filter-dialog.component': FilterDialogComponent, + '@home/components/filter/filter-select.component': FilterSelectComponent, + '@home/components/filter/filters-edit.component': FiltersEditComponent, + '@home/components/filter/filters-edit-panel.component': FiltersEditPanelComponent, + '@home/components/filter/user-filter-dialog.component': UserFilterDialogComponent, + '@home/components/filter/filter-user-info.component': FilterUserInfoComponent, + '@home/components/filter/filter-user-info-dialog.component': FilterUserInfoDialogComponent, + '@home/components/filter/filter-predicate-value.component': FilterPredicateValueComponent, + '@home/components/profile/tenant-profile.component': TenantProfileComponent, + '@home/components/profile/tenant-profile-dialog.component': TenantProfileDialogComponent, + '@home/components/profile/tenant-profile-data.component': TenantProfileDataComponent, + '@home/components/profile/device/default-device-profile-configuration.component': DefaultDeviceProfileConfigurationComponent, + '@home/components/profile/device/device-profile-configuration.component': DeviceProfileConfigurationComponent, + '@home/components/profile/device-profile.component': DeviceProfileComponent, + '@home/components/profile/device/default-device-profile-transport-configuration.component': + DefaultDeviceProfileTransportConfigurationComponent, + '@home/components/profile/device/device-profile-transport-configuration.component': DeviceProfileTransportConfigurationComponent, + '@home/components/profile/device-profile-dialog.component': DeviceProfileDialogComponent, + '@home/components/profile/device-profile-autocomplete.component': DeviceProfileAutocompleteComponent, + '@home/components/profile/device/mqtt-device-profile-transport-configuration.component': + MqttDeviceProfileTransportConfigurationComponent, + '@home/components/profile/device/coap-device-profile-transport-configuration.component': + CoapDeviceProfileTransportConfigurationComponent, + '@home/components/profile/alarm/device-profile-alarms.component': DeviceProfileAlarmsComponent, + '@home/components/profile/alarm/device-profile-alarm.component': DeviceProfileAlarmComponent, + '@home/components/profile/alarm/create-alarm-rules.component': CreateAlarmRulesComponent, + '@home/components/profile/alarm/alarm-rule.component': AlarmRuleComponent, + '@home/components/profile/alarm/alarm-rule-condition.component': AlarmRuleConditionComponent, + '@home/components/filter/filter-text.component': FilterTextComponent, + '@home/components/profile/add-device-profile-dialog.component': AddDeviceProfileDialogComponent, + '@home/components/rule-chain/rule-chain-autocomplete.component': RuleChainAutocompleteComponent, + '@home/components/profile/device-profile-provision-configuration.component': DeviceProfileProvisionConfigurationComponent, + '@home/components/profile/alarm/alarm-schedule.component': AlarmScheduleComponent, + '@home/components/wizard/device-wizard-dialog.component': DeviceWizardDialogComponent, + '@home/components/profile/alarm/alarm-schedule-info.component': AlarmScheduleInfoComponent, + '@home/components/profile/alarm/alarm-schedule-dialog.component': AlarmScheduleDialogComponent, + '@home/components/profile/alarm/edit-alarm-details-dialog.component': EditAlarmDetailsDialogComponent, + '@home/components/profile/alarm/alarm-rule-condition-dialog.component': AlarmRuleConditionDialogComponent, + '@home/components/profile/tenant/default-tenant-profile-configuration.component': DefaultTenantProfileConfigurationComponent, + '@home/components/profile/tenant/tenant-profile-configuration.component': TenantProfileConfigurationComponent, + '@home/components/sms/sms-provider-configuration.component': SmsProviderConfigurationComponent, + '@home/components/sms/aws-sns-provider-configuration.component': AwsSnsProviderConfigurationComponent, + '@home/components/sms/twilio-sms-provider-configuration.component': TwilioSmsProviderConfigurationComponent, + '@home/components/dashboard-page/dashboard-page.component': DashboardPageComponent, + '@home/components/dashboard-page/dashboard-toolbar.component': DashboardToolbarComponent, + '@home/components/dashboard-page/layout/dashboard-layout.component': DashboardLayoutComponent, + '@home/components/dashboard-page/edit-widget.component': EditWidgetComponent, + '@home/components/dashboard-page/dashboard-widget-select.component': DashboardWidgetSelectComponent, + '@home/components/dashboard-page/add-widget-dialog.component': AddWidgetDialogComponent, + '@home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component': ManageDashboardLayoutsDialogComponent, + '@home/components/dashboard-page/dashboard-settings-dialog.component': DashboardSettingsDialogComponent, + '@home/components/dashboard-page/states/manage-dashboard-states-dialog.component': ManageDashboardStatesDialogComponent, + '@home/components/dashboard-page/states/dashboard-state-dialog.component': DashboardStateDialogComponent, + '@home/components/widget/dialog/embed-dashboard-dialog.component': EmbedDashboardDialogComponent, + '@home/components/edge/edge-downlink-table.component': EdgeDownlinkTableComponent, + '@home/components/edge/edge-downlink-table-header.component': EdgeDownlinkTableHeaderComponent, + '@home/components/dashboard-page/widget-types-panel.component': DisplayWidgetTypesPanelComponent, + '@home/components/profile/alarm/alarm-duration-predicate-value.component': AlarmDurationPredicateValueComponent, + '@home/components/dashboard-page/dashboard-image-dialog.component': DashboardImageDialogComponent, + '@home/components/widget/widget-container.component': WidgetContainerComponent, + }; + + init() { + if (!this.initialized) { + System.constructor.prototype.resolve = (id) => { + try { + if (this.modulesMap[id]) { + return 'app:' + id; + } else { + return id; + } + } catch (err) { + return id; + } + }; + for (const moduleId of Object.keys(this.modulesMap)) { + System.set('app:' + moduleId, this.modulesMap[moduleId]); + } + this.initialized = true; + } + } +} + +export const modulesMap = new ModulesMap(); diff --git a/src/app/modules/dashboard/dashboard-pages.module.d.ts b/src/app/modules/dashboard/dashboard-pages.module.d.ts new file mode 100644 index 00000000..e9130b4e --- /dev/null +++ b/src/app/modules/dashboard/dashboard-pages.module.d.ts @@ -0,0 +1,11 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/common"; +import * as i2 from "@shared/shared.module"; +import * as i3 from "@modules/home/components/home-components.module"; +import * as i4 from "@app/modules/home/dialogs/home-dialogs.module"; +import * as i5 from "./dashboard-pages.routing.module"; +export declare class DashboardPagesModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/dashboard/dashboard-pages.routing.module.d.ts b/src/app/modules/dashboard/dashboard-pages.routing.module.d.ts new file mode 100644 index 00000000..e4a8e226 --- /dev/null +++ b/src/app/modules/dashboard/dashboard-pages.routing.module.d.ts @@ -0,0 +1,21 @@ +import { ActivatedRouteSnapshot, Resolve } from '@angular/router'; +import { Dashboard } from '@app/shared/models/dashboard.models'; +import { DashboardService } from '@core/http/dashboard.service'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import { UtilsService } from '@core/services/utils.service'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class WidgetEditorDashboardResolver implements Resolve { + private dashboardService; + private dashboardUtils; + private utils; + constructor(dashboardService: DashboardService, dashboardUtils: DashboardUtilsService, utils: UtilsService); + resolve(route: ActivatedRouteSnapshot): Dashboard; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare class DashboardPagesRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/dashboard/dashboard-routing.module.d.ts b/src/app/modules/dashboard/dashboard-routing.module.d.ts new file mode 100644 index 00000000..e6aff606 --- /dev/null +++ b/src/app/modules/dashboard/dashboard-routing.module.d.ts @@ -0,0 +1,8 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@ngrx/store"; +import * as i2 from "@angular/router"; +export declare class DashboardRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/components/alarm/alarm-details-dialog.component.d.ts b/src/app/modules/home/components/alarm/alarm-details-dialog.component.d.ts new file mode 100644 index 00000000..bbe84bbe --- /dev/null +++ b/src/app/modules/home/components/alarm/alarm-details-dialog.component.d.ts @@ -0,0 +1,47 @@ +import { OnInit } from '@angular/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { Observable, ReplaySubject } from 'rxjs'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { AlarmInfo, AlarmStatus } from '@app/shared/models/alarm.models'; +import { AlarmService } from '@core/http/alarm.service'; +import { DatePipe } from '@angular/common'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export interface AlarmDetailsDialogData { + alarmId: string; + allowAcknowledgment: boolean; + allowClear: boolean; + displayDetails: boolean; +} +export declare class AlarmDetailsDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + private datePipe; + private translate; + data: AlarmDetailsDialogData; + private alarmService; + dialogRef: MatDialogRef; + fb: FormBuilder; + alarmFormGroup: FormGroup; + allowAcknowledgment: boolean; + allowClear: boolean; + displayDetails: boolean; + loadAlarmSubject: ReplaySubject; + alarm$: Observable; + alarmSeverityColorsMap: Map; + alarmStatuses: typeof AlarmStatus; + alarmUpdated: boolean; + constructor(store: Store, router: Router, datePipe: DatePipe, translate: TranslateService, data: AlarmDetailsDialogData, alarmService: AlarmService, dialogRef: MatDialogRef, fb: FormBuilder); + loadAlarm(): void; + loadAlarmFields(alarm: AlarmInfo): void; + ngOnInit(): void; + close(): void; + acknowledge(): void; + clear(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/alarm/alarm-table-config.d.ts b/src/app/modules/home/components/alarm/alarm-table-config.d.ts new file mode 100644 index 00000000..32af978c --- /dev/null +++ b/src/app/modules/home/components/alarm/alarm-table-config.d.ts @@ -0,0 +1,24 @@ +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { MatDialog } from '@angular/material/dialog'; +import { TimePageLink } from '@shared/models/page/page-link'; +import { Observable } from 'rxjs'; +import { PageData } from '@shared/models/page/page-data'; +import { EntityId } from '@shared/models/id/entity-id'; +import { AlarmInfo, AlarmSearchStatus } from '@app/shared/models/alarm.models'; +import { AlarmService } from '@app/core/http/alarm.service'; +import { DialogService } from '@core/services/dialog.service'; +export declare class AlarmTableConfig extends EntityTableConfig { + private alarmService; + private dialogService; + private translate; + private datePipe; + private dialog; + entityId: EntityId; + private defaultSearchStatus; + searchStatus: AlarmSearchStatus; + constructor(alarmService: AlarmService, dialogService: DialogService, translate: TranslateService, datePipe: DatePipe, dialog: MatDialog, entityId?: EntityId, defaultSearchStatus?: AlarmSearchStatus); + fetchAlarms(pageLink: TimePageLink): Observable>; + showAlarmDetails(entity: AlarmInfo): void; +} diff --git a/src/app/modules/home/components/alarm/alarm-table-header.component.d.ts b/src/app/modules/home/components/alarm/alarm-table-header.component.d.ts new file mode 100644 index 00000000..07236ddb --- /dev/null +++ b/src/app/modules/home/components/alarm/alarm-table-header.component.d.ts @@ -0,0 +1,17 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTableHeaderComponent } from '../entity/entity-table-header.component'; +import { AlarmInfo, AlarmSearchStatus } from '@shared/models/alarm.models'; +import { AlarmTableConfig } from './alarm-table-config'; +import * as i0 from "@angular/core"; +export declare class AlarmTableHeaderComponent extends EntityTableHeaderComponent { + protected store: Store; + alarmSearchStatusTranslationsMap: Map; + alarmSearchStatusTypes: string[]; + alarmSearchStatusEnum: typeof AlarmSearchStatus; + get alarmTableConfig(): AlarmTableConfig; + constructor(store: Store); + searchStatusChanged(searchStatus: AlarmSearchStatus): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/alarm/alarm-table.component.d.ts b/src/app/modules/home/components/alarm/alarm-table.component.d.ts new file mode 100644 index 00000000..dcc4030a --- /dev/null +++ b/src/app/modules/home/components/alarm/alarm-table.component.d.ts @@ -0,0 +1,28 @@ +import { OnInit } from '@angular/core'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { MatDialog } from '@angular/material/dialog'; +import { EntityId } from '@shared/models/id/entity-id'; +import { EntitiesTableComponent } from '@home/components/entity/entities-table.component'; +import { DialogService } from '@core/services/dialog.service'; +import { AlarmTableConfig } from './alarm-table-config'; +import { AlarmService } from '@app/core/http/alarm.service'; +import * as i0 from "@angular/core"; +export declare class AlarmTableComponent implements OnInit { + private alarmService; + private dialogService; + private translate; + private datePipe; + private dialog; + activeValue: boolean; + dirtyValue: boolean; + entityIdValue: EntityId; + set active(active: boolean); + set entityId(entityId: EntityId); + entitiesTable: EntitiesTableComponent; + alarmTableConfig: AlarmTableConfig; + constructor(alarmService: AlarmService, dialogService: DialogService, translate: TranslateService, datePipe: DatePipe, dialog: MatDialog); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/alias/aliases-entity-autocomplete.component.d.ts b/src/app/modules/home/components/alias/aliases-entity-autocomplete.component.d.ts new file mode 100644 index 00000000..2b24a233 --- /dev/null +++ b/src/app/modules/home/components/alias/aliases-entity-autocomplete.component.d.ts @@ -0,0 +1,43 @@ +import { AfterViewInit, ElementRef, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { PageData } from '@shared/models/page/page-data'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityInfo } from '@shared/models/entity.models'; +import { EntityFilter } from '@shared/models/query/query.models'; +import { EntityService } from '@core/http/entity.service'; +import * as i0 from "@angular/core"; +export declare class AliasesEntityAutocompleteComponent implements ControlValueAccessor, OnInit, AfterViewInit { + private store; + translate: TranslateService; + private entityService; + private fb; + selectEntityInfoFormGroup: FormGroup; + modelValue: EntityInfo | null; + alias: string; + entityFilter: EntityFilter; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + entityInfoInput: ElementRef; + filteredEntityInfos: Observable>; + searchText: string; + private propagateChange; + constructor(store: Store, translate: TranslateService, entityService: EntityService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: EntityInfo | null): void; + updateView(value: EntityInfo | null): void; + displayEntityInfoFn(entityInfo?: EntityInfo): string | undefined; + fetchEntityInfos(searchText?: string): Observable>; + getEntityInfos(searchText: string): Observable>; + clear(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/alias/aliases-entity-select-panel.component.d.ts b/src/app/modules/home/components/alias/aliases-entity-select-panel.component.d.ts new file mode 100644 index 00000000..b522836d --- /dev/null +++ b/src/app/modules/home/components/alias/aliases-entity-select-panel.component.d.ts @@ -0,0 +1,21 @@ +import { InjectionToken } from '@angular/core'; +import { AliasInfo, IAliasController } from '@core/api/widget-api.models'; +import { EntityInfo } from '@shared/models/entity.models'; +import * as i0 from "@angular/core"; +export declare const ALIASES_ENTITY_SELECT_PANEL_DATA: InjectionToken; +export interface AliasesEntitySelectPanelData { + aliasController: IAliasController; + entityAliasesInfo: { + [aliasId: string]: AliasInfo; + }; +} +export declare class AliasesEntitySelectPanelComponent { + data: AliasesEntitySelectPanelData; + entityAliasesInfo: { + [aliasId: string]: AliasInfo; + }; + constructor(data: AliasesEntitySelectPanelData); + currentAliasEntityChanged(aliasId: string, selected: EntityInfo | null): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/alias/aliases-entity-select.component.d.ts b/src/app/modules/home/components/alias/aliases-entity-select.component.d.ts new file mode 100644 index 00000000..753fb515 --- /dev/null +++ b/src/app/modules/home/components/alias/aliases-entity-select.component.d.ts @@ -0,0 +1,36 @@ +import { ChangeDetectorRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core'; +import { TooltipPosition } from '@angular/material/tooltip'; +import { AliasInfo, IAliasController } from '@core/api/widget-api.models'; +import { CdkOverlayOrigin, Overlay } from '@angular/cdk/overlay'; +import { TranslateService } from '@ngx-translate/core'; +import { BreakpointObserver } from '@angular/cdk/layout'; +import * as i0 from "@angular/core"; +export declare class AliasesEntitySelectComponent implements OnInit, OnDestroy { + private translate; + private overlay; + private cd; + private breakpointObserver; + private viewContainerRef; + aliasControllerValue: IAliasController; + set aliasController(aliasController: IAliasController); + get aliasController(): IAliasController; + tooltipPosition: TooltipPosition; + disabled: boolean; + aliasEntitySelectPanelOrigin: CdkOverlayOrigin; + displayValue: string; + entityAliasesInfo: { + [aliasId: string]: AliasInfo; + }; + hasSelectableAliasEntities: boolean; + private rxSubscriptions; + constructor(translate: TranslateService, overlay: Overlay, cd: ChangeDetectorRef, breakpointObserver: BreakpointObserver, viewContainerRef: ViewContainerRef); + private setupAliasController; + ngOnInit(): void; + ngOnDestroy(): void; + openEditMode(): void; + private _createAliasesEntitySelectPanelInjector; + private updateDisplayValue; + private updateEntityAliasesInfo; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/alias/entity-alias-dialog.component.d.ts b/src/app/modules/home/components/alias/entity-alias-dialog.component.d.ts new file mode 100644 index 00000000..28415fa4 --- /dev/null +++ b/src/app/modules/home/components/alias/entity-alias-dialog.component.d.ts @@ -0,0 +1,46 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, ValidatorFn } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { EntityAlias, EntityAliases } from '@shared/models/alias.models'; +import { AliasEntityType, EntityType } from '@shared/models/entity-type.models'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityService } from '@core/http/entity.service'; +import * as i0 from "@angular/core"; +export interface EntityAliasDialogData { + isAdd: boolean; + allowedEntityTypes: Array; + entityAliases: EntityAliases | Array; + alias?: EntityAlias; +} +export declare class EntityAliasDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: EntityAliasDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + private utils; + translate: TranslateService; + private entityService; + isAdd: boolean; + allowedEntityTypes: Array; + entityAliases: Array; + alias: EntityAlias; + entityAliasFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: EntityAliasDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, utils: UtilsService, translate: TranslateService, entityService: EntityService); + validateDuplicateAliasName(): ValidatorFn; + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + private validate; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/alias/entity-alias-select.component.d.ts b/src/app/modules/home/components/alias/entity-alias-select.component.d.ts new file mode 100644 index 00000000..49cf9cff --- /dev/null +++ b/src/app/modules/home/components/alias/entity-alias-select.component.d.ts @@ -0,0 +1,60 @@ +import { AfterViewInit, ElementRef, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityType } from '@shared/models/entity-type.models'; +import { EntityService } from '@core/http/entity.service'; +import { EntityAlias } from '@shared/models/alias.models'; +import { IAliasController } from '@core/api/widget-api.models'; +import { TruncatePipe } from '@shared/pipe/truncate.pipe'; +import { MatAutocomplete, MatAutocompleteTrigger } from '@angular/material/autocomplete'; +import { EntityAliasSelectCallbacks } from './entity-alias-select.component.models'; +import { ErrorStateMatcher } from '@angular/material/core'; +import * as i0 from "@angular/core"; +export declare class EntityAliasSelectComponent implements ControlValueAccessor, OnInit, AfterViewInit, ErrorStateMatcher { + private store; + private errorStateMatcher; + private entityService; + translate: TranslateService; + truncate: TruncatePipe; + private fb; + selectEntityAliasFormGroup: FormGroup; + modelValue: string | null; + aliasController: IAliasController; + allowedEntityTypes: Array; + callbacks: EntityAliasSelectCallbacks; + showLabel: boolean; + entityAliasAutocomplete: MatAutocomplete; + autoCompleteTrigger: MatAutocompleteTrigger; + private requiredValue; + get tbRequired(): boolean; + set tbRequired(value: boolean); + disabled: boolean; + entityAliasInput: ElementRef; + entityAliasList: Array; + filteredEntityAliases: Observable>; + searchText: string; + private dirty; + private creatingEntityAlias; + private propagateChange; + constructor(store: Store, errorStateMatcher: ErrorStateMatcher, entityService: EntityService, translate: TranslateService, truncate: TruncatePipe, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + ngAfterViewInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string | null): void; + onFocus(): void; + updateView(value: EntityAlias | null): void; + displayEntityAliasFn(entityAlias?: EntityAlias): string | undefined; + fetchEntityAliases(searchText?: string): Observable>; + clear(value?: string): void; + textIsNotEmpty(text: string): boolean; + entityAliasEnter($event: KeyboardEvent): void; + createEntityAlias($event: Event, alias: string): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/alias/entity-alias-select.component.models.d.ts b/src/app/modules/home/components/alias/entity-alias-select.component.models.d.ts new file mode 100644 index 00000000..4c2f8ed7 --- /dev/null +++ b/src/app/modules/home/components/alias/entity-alias-select.component.models.d.ts @@ -0,0 +1,6 @@ +import { EntityType } from '@shared/models/entity-type.models'; +import { Observable } from 'rxjs'; +import { EntityAlias } from '@shared/models/alias.models'; +export interface EntityAliasSelectCallbacks { + createEntityAlias: (alias: string, allowedEntityTypes: Array) => Observable; +} diff --git a/src/app/modules/home/components/alias/entity-aliases-dialog.component.d.ts b/src/app/modules/home/components/alias/entity-aliases-dialog.component.d.ts new file mode 100644 index 00000000..115d7c19 --- /dev/null +++ b/src/app/modules/home/components/alias/entity-aliases-dialog.component.d.ts @@ -0,0 +1,59 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialog, MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormArray, FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { EntityAlias, EntityAliases } from '@shared/models/alias.models'; +import { Widget } from '@shared/models/widget.models'; +import { AliasEntityType, EntityType } from '@shared/models/entity-type.models'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { DialogService } from '@core/services/dialog.service'; +import * as i0 from "@angular/core"; +export interface EntityAliasesDialogData { + entityAliases: EntityAliases; + widgets: Array; + isSingleEntityAlias?: boolean; + isSingleWidget?: boolean; + allowedEntityTypes?: Array; + disableAdd?: boolean; + singleEntityAlias?: EntityAlias; + customTitle?: string; +} +export declare class EntityAliasesDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: EntityAliasesDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + private utils; + private translate; + private dialogs; + private dialog; + title: string; + disableAdd: boolean; + allowedEntityTypes: Array; + aliasToWidgetsMap: { + [aliasId: string]: Array; + }; + entityAliasesFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: EntityAliasesDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, utils: UtilsService, translate: TranslateService, dialogs: DialogService, dialog: MatDialog); + private addWidgetTitleToWidgetsMap; + private createEntityAliasFormControl; + entityAliasesFormArray(): FormArray; + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + removeAlias(index: number): void; + addAlias(): void; + editAlias(index: number): void; + private openAliasDialog; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/attribute/add-attribute-dialog.component.d.ts b/src/app/modules/home/components/attribute/add-attribute-dialog.component.d.ts new file mode 100644 index 00000000..a0ca248c --- /dev/null +++ b/src/app/modules/home/components/attribute/add-attribute-dialog.component.d.ts @@ -0,0 +1,34 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { EntityId } from '@shared/models/id/entity-id'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { AttributeScope } from '@shared/models/telemetry/telemetry.models'; +import { AttributeService } from '@core/http/attribute.service'; +import * as i0 from "@angular/core"; +export interface AddAttributeDialogData { + entityId: EntityId; + attributeScope: AttributeScope; +} +export declare class AddAttributeDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: AddAttributeDialogData; + private attributeService; + private errorStateMatcher; + dialogRef: MatDialogRef; + fb: FormBuilder; + attributeFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: AddAttributeDialogData, attributeService: AttributeService, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + add(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/attribute/add-widget-to-dashboard-dialog.component.d.ts b/src/app/modules/home/components/attribute/add-widget-to-dashboard-dialog.component.d.ts new file mode 100644 index 00000000..15d8e29d --- /dev/null +++ b/src/app/modules/home/components/attribute/add-widget-to-dashboard-dialog.component.d.ts @@ -0,0 +1,45 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialog, MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { UtilsService } from '@core/services/utils.service'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import { EntityId } from '@app/shared/models/id/entity-id'; +import { Widget } from '@app/shared/models/widget.models'; +import { DashboardService } from '@core/http/dashboard.service'; +import { ItemBufferService } from '@core/services/item-buffer.service'; +import * as i0 from "@angular/core"; +export interface AddWidgetToDashboardDialogData { + entityId: EntityId; + entityName: string; + widget: Widget; +} +export declare class AddWidgetToDashboardDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: AddWidgetToDashboardDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + private utils; + private dashboardUtils; + private dashboardService; + private itembuffer; + private dialog; + addWidgetFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: AddWidgetToDashboardDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, utils: UtilsService, dashboardUtils: DashboardUtilsService, dashboardService: DashboardService, itembuffer: ItemBufferService, dialog: MatDialog); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + add(): void; + private selectTargetState; + private selectTargetLayout; + private addWidgetToDashboard; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/attribute/attribute-table.component.d.ts b/src/app/modules/home/components/attribute/attribute-table.component.d.ts new file mode 100644 index 00000000..48d655c2 --- /dev/null +++ b/src/app/modules/home/components/attribute/attribute-table.component.d.ts @@ -0,0 +1,97 @@ +import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnInit, ViewContainerRef } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { PageLink } from '@shared/models/page/page-link'; +import { MatPaginator } from '@angular/material/paginator'; +import { MatSort } from '@angular/material/sort'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { MatDialog } from '@angular/material/dialog'; +import { DialogService } from '@core/services/dialog.service'; +import { EntityId } from '@shared/models/id/entity-id'; +import { AttributeData, LatestTelemetry, TelemetryType, toTelemetryType } from '@shared/models/telemetry/telemetry.models'; +import { AttributeDatasource } from '@home/models/datasource/attribute-datasource'; +import { AttributeService } from '@app/core/http/attribute.service'; +import { Overlay } from '@angular/cdk/overlay'; +import { TelemetryWebsocketService } from '@core/ws/telemetry-websocket.service'; +import { WidgetsBundle } from '@shared/models/widgets-bundle.model'; +import { Widget } from '@shared/models/widget.models'; +import { IAliasController } from '@core/api/widget-api.models'; +import { UtilsService } from '@core/services/utils.service'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import { WidgetService } from '@core/http/widget.service'; +import { EntityService } from '@core/http/entity.service'; +import * as i0 from "@angular/core"; +export declare class AttributeTableComponent extends PageComponent implements AfterViewInit, OnInit { + protected store: Store; + private attributeService; + private telemetryWsService; + translate: TranslateService; + dialog: MatDialog; + private overlay; + private viewContainerRef; + private dialogService; + private entityService; + private utils; + private dashboardUtils; + private widgetService; + private zone; + private cd; + private elementRef; + telemetryTypeTranslationsMap: Map; + isClientSideTelemetryTypeMap: Map; + latestTelemetryTypes: typeof LatestTelemetry; + mode: 'default' | 'widget'; + attributeScopes: Array; + attributeScope: TelemetryType; + toTelemetryTypeFunc: typeof toTelemetryType; + displayedColumns: string[]; + pageLink: PageLink; + textSearchMode: boolean; + dataSource: AttributeDatasource; + hidePageSize: boolean; + activeValue: boolean; + dirtyValue: boolean; + entityIdValue: EntityId; + attributeScopeSelectionReadonly: boolean; + viewsInited: boolean; + selectedWidgetsBundleAlias: string; + widgetBundleSet: boolean; + widgetsLoaded: boolean; + widgetsCarouselIndex: number; + widgetsList: Array>; + widgetsListCache: Array>; + aliasController: IAliasController; + private widgetDatasource; + private widgetResize$; + private disableAttributeScopeSelectionValue; + get disableAttributeScopeSelection(): boolean; + set disableAttributeScopeSelection(value: boolean); + defaultAttributeScope: TelemetryType; + set active(active: boolean); + set entityId(entityId: EntityId); + entityName: string; + searchInputField: ElementRef; + paginator: MatPaginator; + sort: MatSort; + constructor(store: Store, attributeService: AttributeService, telemetryWsService: TelemetryWebsocketService, translate: TranslateService, dialog: MatDialog, overlay: Overlay, viewContainerRef: ViewContainerRef, dialogService: DialogService, entityService: EntityService, utils: UtilsService, dashboardUtils: DashboardUtilsService, widgetService: WidgetService, zone: NgZone, cd: ChangeDetectorRef, elementRef: ElementRef); + ngOnInit(): void; + ngOnDestroy(): void; + attributeScopeChanged(attributeScope: TelemetryType): void; + ngAfterViewInit(): void; + updateData(reload?: boolean): void; + enterFilterMode(): void; + exitFilterMode(): void; + resetSortAndFilter(update?: boolean): void; + reloadAttributes(): void; + addAttribute($event: Event): void; + editAttribute($event: Event, attribute: AttributeData): void; + deleteAttributes($event: Event): void; + enterWidgetMode(): void; + onWidgetsCarouselIndexChanged(): void; + onWidgetsBundleChanged(widgetsBundle: WidgetsBundle): void; + addWidgetToDashboard(): void; + exitWidgetMode(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/attribute/edit-attribute-value-panel.component.d.ts b/src/app/modules/home/components/attribute/edit-attribute-value-panel.component.d.ts new file mode 100644 index 00000000..ff00059b --- /dev/null +++ b/src/app/modules/home/components/attribute/edit-attribute-value-panel.component.d.ts @@ -0,0 +1,29 @@ +import { InjectionToken, OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { PageComponent } from '@shared/components/page.component'; +import { OverlayRef } from '@angular/cdk/overlay'; +import * as i0 from "@angular/core"; +export declare const EDIT_ATTRIBUTE_VALUE_PANEL_DATA: InjectionToken; +export interface EditAttributeValuePanelData { + attributeValue: any; +} +export declare class EditAttributeValuePanelComponent extends PageComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + data: EditAttributeValuePanelData; + private errorStateMatcher; + overlayRef: OverlayRef; + fb: FormBuilder; + attributeFormGroup: FormGroup; + result: any; + submitted: boolean; + constructor(store: Store, data: EditAttributeValuePanelData, errorStateMatcher: ErrorStateMatcher, overlayRef: OverlayRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + update(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/audit-log/audit-log-details-dialog.component.d.ts b/src/app/modules/home/components/audit-log/audit-log-details-dialog.component.d.ts new file mode 100644 index 00000000..25d41fea --- /dev/null +++ b/src/app/modules/home/components/audit-log/audit-log-details-dialog.component.d.ts @@ -0,0 +1,31 @@ +import { ElementRef, OnInit, Renderer2 } from '@angular/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { AuditLog } from '@shared/models/audit-log.models'; +import { Ace } from 'ace-builds'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import * as i0 from "@angular/core"; +export interface AuditLogDetailsDialogData { + auditLog: AuditLog; +} +export declare class AuditLogDetailsDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + data: AuditLogDetailsDialogData; + dialogRef: MatDialogRef; + private renderer; + actionDataEditorElmRef: ElementRef; + failureDetailsEditorElmRef: ElementRef; + auditLog: AuditLog; + displayFailureDetails: boolean; + actionData: string; + actionFailureDetails: string; + constructor(store: Store, router: Router, data: AuditLogDetailsDialogData, dialogRef: MatDialogRef, renderer: Renderer2); + ngOnInit(): void; + createEditor(editorElementRef: ElementRef, content: string): void; + updateEditorSize(editorElement: any, content: string, editor: Ace.Editor): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/audit-log/audit-log-table-config.d.ts b/src/app/modules/home/components/audit-log/audit-log-table-config.d.ts new file mode 100644 index 00000000..e2daf862 --- /dev/null +++ b/src/app/modules/home/components/audit-log/audit-log-table-config.d.ts @@ -0,0 +1,25 @@ +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { AuditLog, AuditLogMode } from '@shared/models/audit-log.models'; +import { AuditLogService } from '@core/http/audit-log.service'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { MatDialog } from '@angular/material/dialog'; +import { TimePageLink } from '@shared/models/page/page-link'; +import { Observable } from 'rxjs'; +import { PageData } from '@shared/models/page/page-data'; +import { EntityId } from '@shared/models/id/entity-id'; +import { UserId } from '@shared/models/id/user-id'; +import { CustomerId } from '@shared/models/id/customer-id'; +export declare class AuditLogTableConfig extends EntityTableConfig { + private auditLogService; + private translate; + private datePipe; + private dialog; + private auditLogMode; + entityId: EntityId; + userId: UserId; + customerId: CustomerId; + constructor(auditLogService: AuditLogService, translate: TranslateService, datePipe: DatePipe, dialog: MatDialog, auditLogMode?: AuditLogMode, entityId?: EntityId, userId?: UserId, customerId?: CustomerId, updateOnInit?: boolean, pageMode?: boolean); + fetchAuditLogs(pageLink: TimePageLink): Observable>; + showAuditLogDetails(entity: AuditLog): void; +} diff --git a/src/app/modules/home/components/audit-log/audit-log-table.component.d.ts b/src/app/modules/home/components/audit-log/audit-log-table.component.d.ts new file mode 100644 index 00000000..64120fce --- /dev/null +++ b/src/app/modules/home/components/audit-log/audit-log-table.component.d.ts @@ -0,0 +1,40 @@ +import { OnInit } from '@angular/core'; +import { AuditLogService } from '@core/http/audit-log.service'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { MatDialog } from '@angular/material/dialog'; +import { AuditLogMode } from '@shared/models/audit-log.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import { UserId } from '@shared/models/id/user-id'; +import { CustomerId } from '@shared/models/id/customer-id'; +import { AuditLogTableConfig } from '@home/components/audit-log/audit-log-table-config'; +import { EntitiesTableComponent } from '@home/components/entity/entities-table.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { ActivatedRoute } from '@angular/router'; +import * as i0 from "@angular/core"; +export declare class AuditLogTableComponent implements OnInit { + private auditLogService; + private translate; + private datePipe; + private dialog; + private store; + private route; + auditLogMode: AuditLogMode; + detailsMode: boolean; + activeValue: boolean; + dirtyValue: boolean; + entityIdValue: EntityId; + userIdValue: UserId; + customerIdValue: CustomerId; + set active(active: boolean); + set entityId(entityId: EntityId); + set userId(userId: UserId); + set customerId(customerId: CustomerId); + entitiesTable: EntitiesTableComponent; + auditLogTableConfig: AuditLogTableConfig; + constructor(auditLogService: AuditLogService, translate: TranslateService, datePipe: DatePipe, dialog: MatDialog, store: Store, route: ActivatedRoute); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/add-widget-dialog.component.d.ts b/src/app/modules/home/components/dashboard-page/add-widget-dialog.component.d.ts new file mode 100644 index 00000000..afb08765 --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/add-widget-dialog.component.d.ts @@ -0,0 +1,40 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { Widget } from '@shared/models/widget.models'; +import { Dashboard } from '@app/shared/models/dashboard.models'; +import { IAliasController } from '@core/api/widget-api.models'; +import { WidgetInfo } from '@home/models/widget-component.models'; +import * as i0 from "@angular/core"; +export interface AddWidgetDialogData { + dashboard: Dashboard; + aliasController: IAliasController; + widget: Widget; + widgetInfo: WidgetInfo; +} +export declare class AddWidgetDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: AddWidgetDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + widgetFormGroup: FormGroup; + dashboard: Dashboard; + aliasController: IAliasController; + widget: Widget; + submitted: boolean; + constructor(store: Store, router: Router, data: AddWidgetDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + helpLinkIdForWidgetType(): string; + cancel(): void; + add(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/dashboard-image-dialog.component.d.ts b/src/app/modules/home/components/dashboard-page/dashboard-image-dialog.component.d.ts new file mode 100644 index 00000000..4430e6ff --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/dashboard-image-dialog.component.d.ts @@ -0,0 +1,43 @@ +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { DashboardId } from '@shared/models/id/dashboard-id'; +import { DashboardService } from '@core/http/dashboard.service'; +import { DomSanitizer, SafeUrl } from '@angular/platform-browser'; +import { BehaviorSubject } from 'rxjs'; +import * as i0 from "@angular/core"; +export interface DashboardImageDialogData { + dashboardId: DashboardId; + currentImage?: string; + dashboardElement: HTMLElement; +} +export interface DashboardImageDialogResult { + image?: string; +} +export declare class DashboardImageDialogComponent extends DialogComponent { + protected store: Store; + protected router: Router; + data: DashboardImageDialogData; + dialogRef: MatDialogRef; + private dashboardService; + private sanitizer; + private fb; + takingScreenshotSubject: BehaviorSubject; + takingScreenshot$: import("rxjs").Observable; + dashboardId: DashboardId; + safeImageUrl?: SafeUrl; + dashboardElement: HTMLElement; + dashboardRectFormGroup: FormGroup; + dashboardImageFormGroup: FormGroup; + constructor(store: Store, router: Router, data: DashboardImageDialogData, dialogRef: MatDialogRef, dashboardService: DashboardService, sanitizer: DomSanitizer, fb: FormBuilder); + private convertUserPercent; + takeScreenShot(): void; + cancel(): void; + save(): void; + private updateImage; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/dashboard-page.component.d.ts b/src/app/modules/home/components/dashboard-page/dashboard-page.component.d.ts new file mode 100644 index 00000000..486ae97e --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/dashboard-page.component.d.ts @@ -0,0 +1,200 @@ +import { ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit, ViewContainerRef } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { ActivatedRoute, Router } from '@angular/router'; +import { UtilsService } from '@core/services/utils.service'; +import { AuthService } from '@core/auth/auth.service'; +import { Dashboard, DashboardConfiguration, WidgetLayout } from '@app/shared/models/dashboard.models'; +import { DashboardContext, DashboardPageLayoutContext, DashboardPageLayouts, DashboardPageScope, IDashboardController } from './dashboard-page.models'; +import { BreakpointObserver } from '@angular/cdk/layout'; +import { AuthUser } from '@shared/models/user.model'; +import { Widget, WidgetInfo, WidgetPosition, widgetType } from '@shared/models/widget.models'; +import { DialogService } from '@core/services/dialog.service'; +import { EntityService } from '@core/http/entity.service'; +import { FooterFabButtons } from '@shared/components/footer-fab-buttons.component'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import { DashboardService } from '@core/http/dashboard.service'; +import { DashboardContextMenuItem, IDashboardComponent, WidgetContextMenuItem } from '../../models/dashboard-component.models'; +import { WidgetComponentService } from '../widget/widget-component.service'; +import { FormBuilder } from '@angular/forms'; +import { ItemBufferService } from '@core/services/item-buffer.service'; +import { MatDialog } from '@angular/material/dialog'; +import { EditWidgetComponent } from '@home/components/dashboard-page/edit-widget.component'; +import { TranslateService } from '@ngx-translate/core'; +import { ImportExportService } from '@home/components/import-export/import-export.service'; +import { AuthState } from '@app/core/auth/auth.models'; +import { Overlay } from '@angular/cdk/overlay'; +import { DashboardWidgetSelectComponent } from '@home/components/dashboard-page/dashboard-widget-select.component'; +import { MobileService } from '@core/services/mobile.service'; +import { DomSanitizer, SafeUrl } from '@angular/platform-browser'; +import * as i0 from "@angular/core"; +export declare class DashboardPageComponent extends PageComponent implements IDashboardController, OnInit, OnDestroy { + protected store: Store; + private window; + private document; + private breakpointObserver; + private route; + private router; + private utils; + private dashboardUtils; + private authService; + private entityService; + private dialogService; + private widgetComponentService; + private dashboardService; + private itembuffer; + private importExport; + private mobileService; + private fb; + private dialog; + private translate; + private ngZone; + private embeddedValue; + private overlay; + private viewContainerRef; + private cd; + private sanitizer; + authState: AuthState; + authUser: AuthUser; + dashboardPageClass: string; + embedded: boolean; + currentState: string; + private hideToolbarValue; + set hideToolbar(hideToolbar: boolean); + get hideToolbar(): boolean; + syncStateWithQueryParam: boolean; + dashboard: Dashboard; + dashboardConfiguration: DashboardConfiguration; + parentDashboard?: IDashboardComponent; + dashboardContainer: ElementRef; + prevDashboard: Dashboard; + iframeMode: boolean; + widgetEditMode: boolean; + singlePageMode: boolean; + forceFullscreen: boolean; + readonly: boolean; + isMobileApp: boolean; + isFullscreen: boolean; + isEdit: boolean; + isEditingWidget: boolean; + isEditingWidgetClosed: boolean; + isMobile: boolean; + forceDashboardMobileMode: boolean; + isAddingWidget: boolean; + isAddingWidgetClosed: boolean; + searchBundle: string; + filterWidgetTypes: widgetType[]; + isToolbarOpened: boolean; + isToolbarOpenedAnimate: boolean; + isRightLayoutOpened: boolean; + editingWidget: Widget; + editingWidgetLayout: WidgetLayout; + editingWidgetOriginal: Widget; + editingWidgetLayoutOriginal: WidgetLayout; + editingWidgetSubtitle: string; + editingLayoutCtx: DashboardPageLayoutContext; + thingsboardVersion: string; + translatedDashboardTitle: string; + currentDashboardId: string; + currentCustomerId: string; + currentDashboardScope: DashboardPageScope; + setStateDashboardId: boolean; + addingLayoutCtx: DashboardPageLayoutContext; + private dashboardLogoCache; + private defaultDashboardLogo; + dashboardCtx: DashboardContext; + layouts: DashboardPageLayouts; + addWidgetFabButtons: FooterFabButtons; + private rxSubscriptions; + get toolbarOpened(): boolean; + set toolbarOpened(toolbarOpened: boolean); + get rightLayoutOpened(): boolean; + set rightLayoutOpened(rightLayoutOpened: boolean); + editWidgetComponent: EditWidgetComponent; + dashboardWidgetSelectComponent: DashboardWidgetSelectComponent; + constructor(store: Store, window: Window, document: Document, breakpointObserver: BreakpointObserver, route: ActivatedRoute, router: Router, utils: UtilsService, dashboardUtils: DashboardUtilsService, authService: AuthService, entityService: EntityService, dialogService: DialogService, widgetComponentService: WidgetComponentService, dashboardService: DashboardService, itembuffer: ItemBufferService, importExport: ImportExportService, mobileService: MobileService, fb: FormBuilder, dialog: MatDialog, translate: TranslateService, ngZone: NgZone, embeddedValue: any, overlay: Overlay, viewContainerRef: ViewContainerRef, cd: ChangeDetectorRef, sanitizer: DomSanitizer); + ngOnInit(): void; + private init; + private updateDashboardCss; + private cleanupDashboardCss; + private reset; + ngOnDestroy(): void; + runChangeDetection(): void; + openToolbar(): void; + closeToolbar(): void; + showCloseToolbar(): boolean; + hideFullscreenButton(): boolean; + toolbarAlwaysOpen(): boolean; + private hideToolbarSetting; + displayTitle(): boolean; + private getTranslatedDashboardTitle; + displayExport(): boolean; + displayUpdateDashboardImage(): boolean; + displayDashboardTimewindow(): boolean; + displayDashboardsSelect(): boolean; + displayEntitiesSelect(): boolean; + displayFilters(): boolean; + showDashboardLogo(): boolean; + get dashboardLogo(): SafeUrl; + showRightLayoutSwitch(): boolean; + toggleLayouts(): void; + openRightLayout(): void; + mainLayoutWidth(): string; + mainLayoutHeight(): string; + rightLayoutWidth(): string; + rightLayoutHeight(): string; + isPublicUser(): boolean; + isTenantAdmin(): boolean; + isSystemAdmin(): boolean; + exportDashboard($event: Event): void; + openEntityAliases($event: Event): void; + openFilters($event: Event): void; + openDashboardSettings($event: Event): void; + manageDashboardStates($event: Event): void; + manageDashboardLayouts($event: Event): void; + private updateDashboardLayouts; + private updateStates; + private importWidget; + currentDashboardIdChanged(dashboardId: string): void; + toggleDashboardEditMode(): void; + saveDashboard(): void; + openDashboardState(state: string, openRightLayout?: boolean): void; + private updateLayouts; + private updateLayout; + private setEditMode; + private resetHighlight; + private entityAliasesUpdated; + private filtersUpdated; + private notifyDashboardUpdated; + helpLinkIdForWidgetType(): string; + addWidget($event: Event, layoutCtx?: DashboardPageLayoutContext): void; + onAddWidgetClosed(): void; + detailsDrawerOpenedStart(): void; + detailsDrawerClosed(): void; + private addWidgetToLayout; + private selectTargetLayout; + private addWidgetToDashboard; + addWidgetFromType(widget: WidgetInfo): void; + onRevertWidgetEdit(): void; + saveWidget(): void; + onEditWidgetClosed(): void; + editWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): void; + copyWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): void; + copyWidgetReference($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): void; + pasteWidget($event: Event, layoutCtx: DashboardPageLayoutContext, pos: WidgetPosition): void; + pasteWidgetReference($event: Event, layoutCtx: DashboardPageLayoutContext, pos: WidgetPosition): void; + removeWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): void; + exportWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): void; + widgetClicked($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): void; + widgetMouseDown($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): void; + prepareDashboardContextMenu(layoutCtx: DashboardPageLayoutContext): Array; + prepareWidgetContextMenu(layoutCtx: DashboardPageLayoutContext, widget: Widget): Array; + widgetBundleSelected(): void; + clearSelectedWidgetBundle(): void; + editWidgetsTypesToDisplay($event: Event): void; + onCloseSearchBundle(): void; + updateDashboardImage($event: Event): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/dashboard-page.models.d.ts b/src/app/modules/home/components/dashboard-page/dashboard-page.models.d.ts new file mode 100644 index 00000000..982f7f77 --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/dashboard-page.models.d.ts @@ -0,0 +1,66 @@ +import { Dashboard, DashboardLayoutId, GridSettings, WidgetLayouts } from '@app/shared/models/dashboard.models'; +import { Widget, WidgetPosition } from '@app/shared/models/widget.models'; +import { Timewindow } from '@shared/models/time/time.models'; +import { IAliasController, IStateController } from '@core/api/widget-api.models'; +import { ILayoutController } from './layout/layout.models'; +import { DashboardContextMenuItem, WidgetContextMenuItem } from '@home/models/dashboard-component.models'; +import { Observable } from 'rxjs'; +export declare type DashboardPageScope = 'tenant' | 'customer'; +export interface DashboardContext { + instanceId: string; + state: string; + getDashboard: () => Dashboard; + dashboardTimewindow: Timewindow; + aliasController: IAliasController; + stateController: IStateController; + stateChanged: Observable; + runChangeDetection: () => void; +} +export interface IDashboardController { + dashboardCtx: DashboardContext; + openRightLayout(): any; + openDashboardState(stateId: string, openRightLayout: boolean): any; + addWidget($event: Event, layoutCtx: DashboardPageLayoutContext): any; + editWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): any; + exportWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): any; + removeWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): any; + widgetMouseDown($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): any; + widgetClicked($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): any; + prepareDashboardContextMenu(layoutCtx: DashboardPageLayoutContext): Array; + prepareWidgetContextMenu(layoutCtx: DashboardPageLayoutContext, widget: Widget): Array; + copyWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): any; + copyWidgetReference($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget): any; + pasteWidget($event: Event, layoutCtx: DashboardPageLayoutContext, pos: WidgetPosition): any; + pasteWidgetReference($event: Event, layoutCtx: DashboardPageLayoutContext, pos: WidgetPosition): any; +} +export interface DashboardPageLayoutContext { + id: DashboardLayoutId; + widgets: LayoutWidgetsArray; + widgetLayouts: WidgetLayouts; + gridSettings: GridSettings; + ctrl: ILayoutController; + dashboardCtrl: IDashboardController; + ignoreLoading: boolean; +} +export interface DashboardPageLayout { + show: boolean; + layoutCtx: DashboardPageLayoutContext; +} +export declare type DashboardPageLayouts = { + [key in DashboardLayoutId]: DashboardPageLayout; +}; +export declare class LayoutWidgetsArray implements Iterable { + private dashboardCtx; + private widgetIds; + private loaded; + constructor(dashboardCtx: DashboardContext); + size(): number; + isLoading(): boolean; + isEmpty(): boolean; + setWidgetIds(widgetIds: string[]): void; + addWidgetId(widgetId: string): void; + removeWidgetId(widgetId: string): boolean; + [Symbol.iterator](): Iterator; + widgetByIndex(index: number): Widget; + private widgetById; +} diff --git a/src/app/modules/home/components/dashboard-page/dashboard-settings-dialog.component.d.ts b/src/app/modules/home/components/dashboard-page/dashboard-settings-dialog.component.d.ts new file mode 100644 index 00000000..533eb8c9 --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/dashboard-settings-dialog.component.d.ts @@ -0,0 +1,43 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { DashboardSettings, GridSettings } from '@app/shared/models/dashboard.models'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import { StatesControllerService } from './states/states-controller.service'; +import * as i0 from "@angular/core"; +export interface DashboardSettingsDialogData { + settings?: DashboardSettings; + gridSettings?: GridSettings; +} +export declare class DashboardSettingsDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: DashboardSettingsDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + private utils; + private dashboardUtils; + private translate; + private statesControllerService; + settings: DashboardSettings; + gridSettings: GridSettings; + settingsFormGroup: FormGroup; + gridSettingsFormGroup: FormGroup; + stateControllerIds: string[]; + submitted: boolean; + constructor(store: Store, router: Router, data: DashboardSettingsDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, utils: UtilsService, dashboardUtils: DashboardUtilsService, translate: TranslateService, statesControllerService: StatesControllerService); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/dashboard-state.component.d.ts b/src/app/modules/home/components/dashboard-page/dashboard-state.component.d.ts new file mode 100644 index 00000000..4a80af8c --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/dashboard-state.component.d.ts @@ -0,0 +1,32 @@ +import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Dashboard } from '@shared/models/dashboard.models'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { IDashboardComponent } from '@home/models/dashboard-component.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import * as i0 from "@angular/core"; +export declare class DashboardStateComponent extends PageComponent implements OnInit, OnDestroy { + protected store: Store; + private cd; + ctx: WidgetContext; + stateId: string; + syncParentStateParams: boolean; + defaultAutofillLayout: boolean; + defaultMargin: any; + defaultBackgroundColor: any; + entityParamName: string; + entityId: EntityId; + currentState: string; + dashboard: Dashboard; + parentDashboard: IDashboardComponent; + stateExists: boolean; + private stateSubscription; + constructor(store: Store, cd: ChangeDetectorRef); + ngOnInit(): void; + ngOnDestroy(): void; + private updateCurrentState; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/dashboard-toolbar.component.d.ts b/src/app/modules/home/components/dashboard-page/dashboard-toolbar.component.d.ts new file mode 100644 index 00000000..0ed14d4f --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/dashboard-toolbar.component.d.ts @@ -0,0 +1,12 @@ +import { EventEmitter, OnInit } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class DashboardToolbarComponent implements OnInit { + toolbarOpened: boolean; + forceFullscreen: boolean; + triggerClick: EventEmitter; + constructor(); + ngOnInit(): void; + onTriggerClick(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.d.ts b/src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.d.ts new file mode 100644 index 00000000..bc3597e5 --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.d.ts @@ -0,0 +1,44 @@ +import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core'; +import { WidgetsBundle } from '@shared/models/widgets-bundle.model'; +import { IAliasController } from '@core/api/widget-api.models'; +import { WidgetService } from '@core/http/widget.service'; +import { WidgetInfo, widgetType } from '@shared/models/widget.models'; +import { BehaviorSubject, Observable } from 'rxjs'; +import { DomSanitizer, SafeUrl } from '@angular/platform-browser'; +import * as i0 from "@angular/core"; +export declare class DashboardWidgetSelectComponent implements OnInit { + private widgetsService; + private sanitizer; + private cd; + private search$; + private filterWidgetTypes$; + private widgetsInfo; + private widgetsBundleValue; + widgetTypes: Set; + widgets$: Observable>; + loadingWidgetsSubject: BehaviorSubject; + loadingWidgets$: Observable; + widgetsBundles$: Observable>; + loadingWidgetBundlesSubject: BehaviorSubject; + loadingWidgetBundles$: Observable; + set widgetsBundle(widgetBundle: WidgetsBundle); + get widgetsBundle(): WidgetsBundle; + aliasController: IAliasController; + set searchBundle(search: string); + set filterWidgetTypes(widgetTypes: Array); + get filterWidgetTypes(): Array; + widgetSelected: EventEmitter; + widgetsBundleSelected: EventEmitter; + constructor(widgetsService: WidgetService, sanitizer: DomSanitizer, cd: ChangeDetectorRef); + ngOnInit(): void; + private getWidgets; + onWidgetClicked($event: Event, widget: WidgetInfo): void; + isSystem(item: WidgetsBundle): boolean; + selectBundle($event: Event, bundle: WidgetsBundle): void; + getPreviewImage(imageUrl: string | null): SafeUrl | string; + private getWidgetsBundle; + private fetchWidgetBundle; + private fetchWidget; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/edit-widget.component.d.ts b/src/app/modules/home/components/dashboard-page/edit-widget.component.d.ts new file mode 100644 index 00000000..7a9e28f3 --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/edit-widget.component.d.ts @@ -0,0 +1,31 @@ +import { OnChanges, OnInit, SimpleChanges } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { MatDialog } from '@angular/material/dialog'; +import { Dashboard, WidgetLayout } from '@shared/models/dashboard.models'; +import { IAliasController } from '@core/api/widget-api.models'; +import { Widget } from '@shared/models/widget.models'; +import { WidgetComponentService } from '@home/components/widget/widget-component.service'; +import { WidgetConfigComponentData } from '../../models/widget-component.models'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import * as i0 from "@angular/core"; +export declare class EditWidgetComponent extends PageComponent implements OnInit, OnChanges { + protected store: Store; + private dialog; + private fb; + private widgetComponentService; + dashboard: Dashboard; + aliasController: IAliasController; + widgetEditMode: boolean; + widget: Widget; + widgetLayout: WidgetLayout; + widgetFormGroup: FormGroup; + widgetConfig: WidgetConfigComponentData; + constructor(store: Store, dialog: MatDialog, fb: FormBuilder, widgetComponentService: WidgetComponentService); + ngOnInit(): void; + ngOnChanges(changes: SimpleChanges): void; + private loadWidgetConfig; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.d.ts b/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.d.ts new file mode 100644 index 00000000..47ebec22 --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.d.ts @@ -0,0 +1,60 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { ILayoutController } from '@home/components/dashboard-page/layout/layout.models'; +import { DashboardContext, DashboardPageLayoutContext } from '@home/components/dashboard-page/dashboard-page.models'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Widget } from '@shared/models/widget.models'; +import { DashboardCallbacks, DashboardContextMenuItem, IDashboardComponent, WidgetContextMenuItem } from '@home/models/dashboard-component.models'; +import { Hotkey } from 'angular2-hotkeys'; +import { TranslateService } from '@ngx-translate/core'; +import { ItemBufferService } from '@app/core/services/item-buffer.service'; +import { DomSanitizer, SafeStyle } from '@angular/platform-browser'; +import { TbCheatSheetComponent } from '@shared/components/cheatsheet.component'; +import * as i0 from "@angular/core"; +export declare class DashboardLayoutComponent extends PageComponent implements ILayoutController, DashboardCallbacks, OnInit, OnDestroy { + protected store: Store; + private translate; + private itembuffer; + private sanitizer; + layoutCtxValue: DashboardPageLayoutContext; + dashboardStyle: { + [klass: string]: any; + }; + backgroundImage: SafeStyle | string; + hotKeys: Hotkey[]; + dashboardCheatSheet: TbCheatSheetComponent; + set layoutCtx(val: DashboardPageLayoutContext); + get layoutCtx(): DashboardPageLayoutContext; + dashboardCtx: DashboardContext; + isEdit: boolean; + isEditingWidget: boolean; + isMobile: boolean; + widgetEditMode: boolean; + parentDashboard?: IDashboardComponent; + dashboard: IDashboardComponent; + private rxSubscriptions; + constructor(store: Store, translate: TranslateService, itembuffer: ItemBufferService, sanitizer: DomSanitizer); + ngOnInit(): void; + ngOnDestroy(): void; + private initHotKeys; + private loadDashboardStyle; + reload(): void; + resetHighlight(): void; + highlightWidget(widgetId: string, delay?: number): void; + selectWidget(widgetId: string, delay?: number): void; + addWidget($event: Event): void; + onEditWidget($event: Event, widget: Widget): void; + onExportWidget($event: Event, widget: Widget): void; + onRemoveWidget($event: Event, widget: Widget): void; + onWidgetMouseDown($event: Event, widget: Widget): void; + onWidgetClicked($event: Event, widget: Widget): void; + prepareDashboardContextMenu($event: Event): Array; + prepareWidgetContextMenu($event: Event, widget: Widget): Array; + copyWidget($event: Event, widget: Widget): void; + copyWidgetReference($event: Event, widget: Widget): void; + pasteWidget($event: Event): void; + pasteWidgetReference($event: Event): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/layout/layout.models.d.ts b/src/app/modules/home/components/dashboard-page/layout/layout.models.d.ts new file mode 100644 index 00000000..2f27b20e --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/layout/layout.models.d.ts @@ -0,0 +1,8 @@ +export interface ILayoutController { + reload(): any; + resetHighlight(): any; + highlightWidget(widgetId: string, delay?: number): any; + selectWidget(widgetId: string, delay?: number): any; + pasteWidget($event: MouseEvent): any; + pasteWidgetReference($event: MouseEvent): any; +} diff --git a/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.d.ts b/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.d.ts new file mode 100644 index 00000000..cf4aacda --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.d.ts @@ -0,0 +1,39 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialog, MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { DashboardLayoutId, DashboardStateLayouts } from '@app/shared/models/dashboard.models'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import * as i0 from "@angular/core"; +export interface ManageDashboardLayoutsDialogData { + layouts: DashboardStateLayouts; +} +export declare class ManageDashboardLayoutsDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: ManageDashboardLayoutsDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + private utils; + private dashboardUtils; + private translate; + private dialog; + layoutsFormGroup: FormGroup; + layouts: DashboardStateLayouts; + submitted: boolean; + constructor(store: Store, router: Router, data: ManageDashboardLayoutsDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, utils: UtilsService, dashboardUtils: DashboardUtilsService, translate: TranslateService, dialog: MatDialog); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + openLayoutSettings(layoutId: DashboardLayoutId): void; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/states/dashboard-state-dialog.component.d.ts b/src/app/modules/home/components/dashboard-page/states/dashboard-state-dialog.component.d.ts new file mode 100644 index 00000000..05f22a78 --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/states/dashboard-state-dialog.component.d.ts @@ -0,0 +1,48 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { DashboardState } from '@app/shared/models/dashboard.models'; +import { DashboardStateInfo } from '@home/components/dashboard-page/states/manage-dashboard-states-dialog.component.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import * as i0 from "@angular/core"; +export interface DashboardStateDialogData { + states: { + [id: string]: DashboardState; + }; + state: DashboardStateInfo; + isAdd: boolean; +} +export declare class DashboardStateDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: DashboardStateDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + private translate; + private dashboardUtils; + stateFormGroup: FormGroup; + states: { + [id: string]: DashboardState; + }; + state: DashboardStateInfo; + prevStateId: string; + stateIdTouched: boolean; + isAdd: boolean; + submitted: boolean; + constructor(store: Store, router: Router, data: DashboardStateDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, translate: TranslateService, dashboardUtils: DashboardUtilsService); + private checkStateName; + private validateDuplicateStateId; + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/states/default-state-controller.component.d.ts b/src/app/modules/home/components/dashboard-page/states/default-state-controller.component.d.ts new file mode 100644 index 00000000..0b6ccb8e --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/states/default-state-controller.component.d.ts @@ -0,0 +1,52 @@ +import { NgZone, OnDestroy, OnInit } from '@angular/core'; +import { StateObject, StateParams } from '@core/api/widget-api.models'; +import { ActivatedRoute, Router } from '@angular/router'; +import { DashboardState } from '@shared/models/dashboard.models'; +import { StateControllerComponent } from './state-controller.component'; +import { StatesControllerService } from '@home/components/dashboard-page/states/states-controller.service'; +import { EntityId } from '@app/shared/models/id/entity-id'; +import { UtilsService } from '@core/services/utils.service'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import { EntityService } from '@core/http/entity.service'; +import { MobileService } from '@core/services/mobile.service'; +import * as i0 from "@angular/core"; +export declare class DefaultStateControllerComponent extends StateControllerComponent implements OnInit, OnDestroy { + protected router: Router; + protected route: ActivatedRoute; + protected ngZone: NgZone; + protected statesControllerService: StatesControllerService; + private utils; + private entityService; + private mobileService; + private dashboardUtils; + constructor(router: Router, route: ActivatedRoute, ngZone: NgZone, statesControllerService: StatesControllerService, utils: UtilsService, entityService: EntityService, mobileService: MobileService, dashboardUtils: DashboardUtilsService); + ngOnInit(): void; + ngOnDestroy(): void; + init(): void; + protected onMobileChanged(): void; + protected onStateIdChanged(): void; + protected onStatesChanged(): void; + protected onStateChanged(): void; + protected stateControllerId(): string; + getStateParams(): StateParams; + openState(id: string, params?: StateParams, openRightLayout?: boolean): void; + pushAndOpenState(states: Array, openRightLayout?: boolean): void; + updateState(id: string, params?: StateParams, openRightLayout?: boolean): void; + getEntityId(entityParamName: string): EntityId; + getStateId(): string; + getStateIdAtIndex(index: number): string; + getStateIndex(): number; + getStateParamsByStateId(stateId: string): StateParams; + navigatePrevState(index: number): void; + resetState(): void; + getStateName(id: string, state: DashboardState): string; + getCurrentStateName(): string; + displayStateSelection(): boolean; + selectedStateIdChanged(): void; + private parseState; + private gotoState; + private updateLocation; + private getStateObjById; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/states/entity-state-controller.component.d.ts b/src/app/modules/home/components/dashboard-page/states/entity-state-controller.component.d.ts new file mode 100644 index 00000000..9fee4123 --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/states/entity-state-controller.component.d.ts @@ -0,0 +1,54 @@ +import { NgZone, OnDestroy, OnInit } from '@angular/core'; +import { StateObject, StateParams } from '@core/api/widget-api.models'; +import { ActivatedRoute, Router } from '@angular/router'; +import { StateControllerComponent } from './state-controller.component'; +import { StatesControllerService } from '@home/components/dashboard-page/states/states-controller.service'; +import { EntityId } from '@app/shared/models/id/entity-id'; +import { UtilsService } from '@core/services/utils.service'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import { EntityService } from '@core/http/entity.service'; +import { MobileService } from '@core/services/mobile.service'; +import * as i0 from "@angular/core"; +export declare class EntityStateControllerComponent extends StateControllerComponent implements OnInit, OnDestroy { + protected router: Router; + protected route: ActivatedRoute; + protected ngZone: NgZone; + protected statesControllerService: StatesControllerService; + private utils; + private entityService; + private mobileService; + private dashboardUtils; + selectedStateIndex: number; + constructor(router: Router, route: ActivatedRoute, ngZone: NgZone, statesControllerService: StatesControllerService, utils: UtilsService, entityService: EntityService, mobileService: MobileService, dashboardUtils: DashboardUtilsService); + ngOnInit(): void; + ngOnDestroy(): void; + init(): void; + protected onMobileChanged(): void; + protected onStateIdChanged(): void; + protected onStatesChanged(): void; + protected onStateChanged(): void; + protected stateControllerId(): string; + getStateParams(): StateParams; + openState(id: string, params?: StateParams, openRightLayout?: boolean): void; + pushAndOpenState(states: Array, openRightLayout?: boolean): void; + updateState(id: string, params?: StateParams, openRightLayout?: boolean): void; + getEntityId(entityParamName: string): EntityId; + getStateId(): string; + getStateIdAtIndex(index: number): string; + getStateIndex(): number; + getStateParamsByStateId(stateId: string): StateParams; + navigatePrevState(index: number): void; + resetState(): void; + getStateName(index: number): string; + getCurrentStateName(): string; + selectedStateIndexChanged(): void; + private parseState; + private gotoState; + private updateLocation; + private isDefaultState; + private resolveEntity; + private isEntityResolved; + private getStateObjById; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/states/manage-dashboard-states-dialog.component.d.ts b/src/app/modules/home/components/dashboard-page/states/manage-dashboard-states-dialog.component.d.ts new file mode 100644 index 00000000..0837535e --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/states/manage-dashboard-states-dialog.component.d.ts @@ -0,0 +1,67 @@ +import { AfterViewInit, ElementRef, OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialog, MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { DashboardState } from '@app/shared/models/dashboard.models'; +import { PageLink } from '@shared/models/page/page-link'; +import { DashboardStateInfo, DashboardStatesDatasource } from '@home/components/dashboard-page/states/manage-dashboard-states-dialog.component.models'; +import { MatPaginator } from '@angular/material/paginator'; +import { MatSort } from '@angular/material/sort'; +import { TranslateService } from '@ngx-translate/core'; +import { DialogService } from '@core/services/dialog.service'; +import * as i0 from "@angular/core"; +export interface ManageDashboardStatesDialogData { + states: { + [id: string]: DashboardState; + }; +} +export declare class ManageDashboardStatesDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher, AfterViewInit { + protected store: Store; + protected router: Router; + data: ManageDashboardStatesDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + private translate; + private dialogs; + private dialog; + statesFormGroup: FormGroup; + states: { + [id: string]: DashboardState; + }; + displayedColumns: string[]; + pageLink: PageLink; + textSearchMode: boolean; + dataSource: DashboardStatesDatasource; + submitted: boolean; + searchInputField: ElementRef; + paginator: MatPaginator; + sort: MatSort; + constructor(store: Store, router: Router, data: ManageDashboardStatesDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, translate: TranslateService, dialogs: DialogService, dialog: MatDialog); + ngOnInit(): void; + ngAfterViewInit(): void; + updateData(reload?: boolean): void; + addState($event: Event): void; + editState($event: Event, state: DashboardStateInfo): void; + deleteState($event: Event, state: DashboardStateInfo): void; + enterFilterMode(): void; + exitFilterMode(): void; + openStateDialog($event: Event, state?: DashboardStateInfo): void; + saveState(state: DashboardStateInfo, prevStateId: string): void; + private onStatesUpdated; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/states/manage-dashboard-states-dialog.component.models.d.ts b/src/app/modules/home/components/dashboard-page/states/manage-dashboard-states-dialog.component.models.d.ts new file mode 100644 index 00000000..8695d402 --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/states/manage-dashboard-states-dialog.component.models.d.ts @@ -0,0 +1,25 @@ +import { DashboardState } from '@shared/models/dashboard.models'; +import { CollectionViewer, DataSource } from '@angular/cdk/collections'; +import { Observable } from 'rxjs'; +import { PageData } from '@shared/models/page/page-data'; +import { PageLink } from '@shared/models/page/page-link'; +export interface DashboardStateInfo extends DashboardState { + id: string; +} +export declare class DashboardStatesDatasource implements DataSource { + private states; + private statesSubject; + private pageDataSubject; + pageData$: Observable>; + private allStates; + constructor(states: { + [id: string]: DashboardState; + }); + connect(collectionViewer: CollectionViewer): Observable>; + disconnect(collectionViewer: CollectionViewer): void; + loadStates(pageLink: PageLink, reload?: boolean): Observable>; + fetchStates(pageLink: PageLink): Observable>; + getAllStates(): Observable>; + isEmpty(): Observable; + total(): Observable; +} diff --git a/src/app/modules/home/components/dashboard-page/states/state-controller.component.d.ts b/src/app/modules/home/components/dashboard-page/states/state-controller.component.d.ts new file mode 100644 index 00000000..210bbeda --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/states/state-controller.component.d.ts @@ -0,0 +1,73 @@ +import { IStateControllerComponent, StateControllerState } from '@home/components/dashboard-page/states/state-controller.models'; +import { IDashboardController } from '../dashboard-page.models'; +import { DashboardState } from '@app/shared/models/dashboard.models'; +import { Observable } from 'rxjs'; +import { NgZone, OnDestroy, OnInit } from '@angular/core'; +import { ActivatedRoute, Router } from '@angular/router'; +import { StatesControllerService } from '@home/components/dashboard-page/states/states-controller.service'; +import { EntityId } from '@app/shared/models/id/entity-id'; +import { StateObject, StateParams } from '@app/core/api/widget-api.models'; +import * as i0 from "@angular/core"; +export declare abstract class StateControllerComponent implements IStateControllerComponent, OnInit, OnDestroy { + protected router: Router; + protected route: ActivatedRoute; + protected ngZone: NgZone; + protected statesControllerService: StatesControllerService; + private stateChangedSubject; + stateObject: StateControllerState; + dashboardCtrl: IDashboardController; + preservedState: any; + stateControllerInstanceId: string; + isMobileValue: boolean; + set isMobile(val: boolean); + get isMobile(): boolean; + stateValue: string; + set state(val: string); + get state(): string; + dashboardIdValue: string; + set dashboardId(val: string); + get dashboardId(): string; + statesValue: { + [id: string]: DashboardState; + }; + set states(val: { + [id: string]: DashboardState; + }); + get states(): { + [id: string]: DashboardState; + }; + currentState: string; + syncStateWithQueryParam: boolean; + private rxSubscriptions; + private inited; + protected constructor(router: Router, route: ActivatedRoute, ngZone: NgZone, statesControllerService: StatesControllerService); + ngOnInit(): void; + ngOnDestroy(): void; + protected updateStateParam(newState: string, replaceCurrentHistoryUrl?: boolean): void; + stateChanged(): Observable; + openRightLayout(): void; + preserveState(): void; + cleanupPreservedStates(): void; + reInit(): void; + private decodeStateParam; + abstract init(): any; + protected abstract onMobileChanged(): any; + protected abstract onStateIdChanged(): any; + protected abstract onStatesChanged(): any; + protected abstract onStateChanged(): any; + protected abstract stateControllerId(): string; + abstract getEntityId(entityParamName: string): EntityId; + abstract getStateId(): string; + abstract getStateIdAtIndex(index: number): string; + abstract getStateIndex(): number; + abstract getStateParams(): StateParams; + abstract getStateParamsByStateId(stateId: string): StateParams; + abstract navigatePrevState(index: number): void; + abstract openState(id: string, params?: StateParams, openRightLayout?: boolean): void; + abstract pushAndOpenState(states: Array, openRightLayout?: boolean): void; + abstract resetState(): void; + abstract updateState(id?: string, params?: StateParams, openRightLayout?: boolean): void; + abstract getCurrentStateName(): string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/states/state-controller.models.d.ts b/src/app/modules/home/components/dashboard-page/states/state-controller.models.d.ts new file mode 100644 index 00000000..73ee391b --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/states/state-controller.models.d.ts @@ -0,0 +1,17 @@ +import { IStateController, StateObject } from '@core/api/widget-api.models'; +import { DashboardState } from '@shared/models/dashboard.models'; +export declare type StateControllerState = StateObject[]; +export interface IStateControllerComponent extends IStateController { + stateControllerInstanceId: string; + state: string; + currentState: string; + syncStateWithQueryParam: boolean; + isMobile: boolean; + states: { + [id: string]: DashboardState; + }; + dashboardId: string; + preservedState: any; + reInit(): void; + init(): void; +} diff --git a/src/app/modules/home/components/dashboard-page/states/states-component.directive.d.ts b/src/app/modules/home/components/dashboard-page/states/states-component.directive.d.ts new file mode 100644 index 00000000..bfbcde03 --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/states/states-component.directive.d.ts @@ -0,0 +1,32 @@ +import { ComponentRef, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core'; +import { DashboardState } from '@shared/models/dashboard.models'; +import { IDashboardController } from '@home/components/dashboard-page/dashboard-page.models'; +import { StatesControllerService } from '@home/components/dashboard-page/states/states-controller.service'; +import { IStateControllerComponent } from '@home/components/dashboard-page/states/state-controller.models'; +import * as i0 from "@angular/core"; +export declare class StatesComponentDirective implements OnInit, OnDestroy, OnChanges { + private viewContainerRef; + private statesControllerService; + statesControllerId: string; + dashboardCtrl: IDashboardController; + dashboardId: string; + states: { + [id: string]: DashboardState; + }; + state: string; + currentState: string; + syncStateWithQueryParam: boolean; + isMobile: boolean; + stateControllerComponentRef: ComponentRef; + stateControllerComponent: IStateControllerComponent; + private stateChangedSubject; + constructor(viewContainerRef: ViewContainerRef, statesControllerService: StatesControllerService); + ngOnInit(): void; + ngOnDestroy(): void; + ngOnChanges(changes: SimpleChanges): void; + private reInit; + private init; + private destroy; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/states/states-controller.module.d.ts b/src/app/modules/home/components/dashboard-page/states/states-controller.module.d.ts new file mode 100644 index 00000000..2c1f96ed --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/states/states-controller.module.d.ts @@ -0,0 +1,15 @@ +import { StatesControllerService } from '@home/components/dashboard-page/states/states-controller.service'; +import * as i0 from "@angular/core"; +import * as i1 from "@home/components/dashboard-page/states/states-component.directive"; +import * as i2 from "@home/components/dashboard-page/states/default-state-controller.component"; +import * as i3 from "@home/components/dashboard-page/states/entity-state-controller.component"; +import * as i4 from "@angular/common"; +import * as i5 from "@shared/shared.module"; +import * as i6 from "@app/modules/home/dialogs/home-dialogs.module"; +export declare class StatesControllerModule { + private statesControllerService; + constructor(statesControllerService: StatesControllerService); + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/states/states-controller.service.d.ts b/src/app/modules/home/components/dashboard-page/states/states-controller.service.d.ts new file mode 100644 index 00000000..4f698fd4 --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/states/states-controller.service.d.ts @@ -0,0 +1,26 @@ +import { ComponentFactory, ComponentFactoryResolver, Type } from '@angular/core'; +import { IStateControllerComponent } from '@home/components/dashboard-page/states/state-controller.models'; +import * as i0 from "@angular/core"; +export interface StateControllerData { + factory: ComponentFactory; +} +export declare class StatesControllerService { + private componentFactoryResolver; + statesControllers: { + [stateControllerId: string]: StateControllerData; + }; + statesControllerStates: { + [stateControllerInstanceId: string]: any; + }; + constructor(componentFactoryResolver: ComponentFactoryResolver); + registerStatesController(stateControllerId: string, stateControllerComponent: Type): void; + getStateControllers(): { + [stateControllerId: string]: StateControllerData; + }; + getStateController(stateControllerId: string): StateControllerData; + preserveStateControllerState(stateControllerInstanceId: string, state: any): void; + withdrawStateControllerState(stateControllerInstanceId: string): any; + cleanupPreservedStates(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/components/dashboard-page/widget-types-panel.component.d.ts b/src/app/modules/home/components/dashboard-page/widget-types-panel.component.d.ts new file mode 100644 index 00000000..ab8852a2 --- /dev/null +++ b/src/app/modules/home/components/dashboard-page/widget-types-panel.component.d.ts @@ -0,0 +1,20 @@ +import { InjectionToken } from '@angular/core'; +import { widgetType } from '@shared/models/widget.models'; +import * as i0 from "@angular/core"; +export declare const DISPLAY_WIDGET_TYPES_PANEL_DATA: InjectionToken; +export interface WidgetTypes { + type: widgetType; + display: boolean; +} +export interface DisplayWidgetTypesPanelData { + types: WidgetTypes[]; + typesUpdated: (columns: WidgetTypes[]) => void; +} +export declare class DisplayWidgetTypesPanelComponent { + data: DisplayWidgetTypesPanelData; + types: WidgetTypes[]; + constructor(data: DisplayWidgetTypesPanelData); + update(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard/dashboard.component.d.ts b/src/app/modules/home/components/dashboard/dashboard.component.d.ts new file mode 100644 index 00000000..05b52d58 --- /dev/null +++ b/src/app/modules/home/components/dashboard/dashboard.component.d.ts @@ -0,0 +1,118 @@ +import { AfterViewInit, ChangeDetectorRef, DoCheck, IterableDiffers, KeyValueDiffers, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import { AuthUser } from '@shared/models/user.model'; +import { Timewindow } from '@shared/models/time/time.models'; +import { TimeService } from '@core/services/time.service'; +import { GridsterComponent, GridsterConfig } from 'angular-gridster2'; +import { DashboardCallbacks, DashboardWidget, IDashboardComponent } from '../../models/dashboard-component.models'; +import { Subject, Subscription } from 'rxjs'; +import { WidgetLayouts } from '@shared/models/dashboard.models'; +import { DialogService } from '@core/services/dialog.service'; +import { BreakpointObserver } from '@angular/cdk/layout'; +import { IAliasController, IStateController } from '@app/core/api/widget-api.models'; +import { Widget, WidgetPosition } from '@app/shared/models/widget.models'; +import { MatMenuTrigger } from '@angular/material/menu'; +import { SafeStyle } from '@angular/platform-browser'; +import { UtilsService } from '@core/services/utils.service'; +import { WidgetComponentAction } from '@home/components/widget/widget-container.component'; +import * as i0 from "@angular/core"; +export declare class DashboardComponent extends PageComponent implements IDashboardComponent, DoCheck, OnInit, OnDestroy, AfterViewInit, OnChanges { + protected store: Store; + utils: UtilsService; + private timeService; + private dialogService; + private breakpointObserver; + private differs; + private kvDiffers; + private cd; + private ngZone; + authUser: AuthUser; + widgets: Iterable; + widgetLayouts: WidgetLayouts; + callbacks: DashboardCallbacks; + aliasController: IAliasController; + stateController: IStateController; + columns: number; + margin: number; + isEdit: boolean; + autofillHeight: boolean; + mobileAutofillHeight: boolean; + mobileRowHeight: number; + isMobile: boolean; + isMobileDisabled: boolean; + isEditActionEnabled: boolean; + isExportActionEnabled: boolean; + isRemoveActionEnabled: boolean; + disableWidgetInteraction: boolean; + dashboardStyle: { + [klass: string]: any; + }; + backgroundImage: SafeStyle | string; + dashboardClass: string; + ignoreLoading: boolean; + dashboardTimewindow: Timewindow; + parentDashboard?: IDashboardComponent; + dashboardTimewindowChangedSubject: Subject; + dashboardTimewindowChanged: import("rxjs").Observable; + originalDashboardTimewindow: Timewindow; + gridsterOpts: GridsterConfig; + isWidgetExpanded: boolean; + isMobileSize: boolean; + gridster: GridsterComponent; + dashboardMenuTrigger: MatMenuTrigger; + dashboardMenuPosition: { + x: string; + y: string; + }; + dashboardContextMenuEvent: MouseEvent; + widgetMenuTrigger: MatMenuTrigger; + widgetMenuPosition: { + x: string; + y: string; + }; + widgetContextMenuEvent: MouseEvent; + dashboardWidgets: any; + breakpointObserverSubscription: Subscription; + private optionsChangeNotificationsPaused; + private gridsterResize$; + constructor(store: Store, utils: UtilsService, timeService: TimeService, dialogService: DialogService, breakpointObserver: BreakpointObserver, differs: IterableDiffers, kvDiffers: KeyValueDiffers, cd: ChangeDetectorRef, ngZone: NgZone); + ngOnInit(): void; + ngOnDestroy(): void; + ngDoCheck(): void; + ngOnChanges(changes: SimpleChanges): void; + private updateWidgets; + private updateWidgetLayouts; + ngAfterViewInit(): void; + onUpdateTimewindow(startTimeMs: number, endTimeMs: number, interval?: number, persist?: boolean): void; + onResetTimewindow(): void; + isAutofillHeight(): boolean; + openDashboardContextMenu($event: MouseEvent): void; + private openWidgetContextMenu; + onWidgetFullscreenChanged(expanded: boolean): void; + onWidgetComponentAction(action: WidgetComponentAction, widget: DashboardWidget): void; + private widgetMouseDown; + private widgetClicked; + private editWidget; + private exportWidget; + private removeWidget; + highlightWidget(widgetId: string, delay?: number): void; + selectWidget(widgetId: string, delay?: number): void; + getSelectedWidget(): Widget; + getEventGridPosition(event: Event): WidgetPosition; + resetHighlight(): void; + private scrollToWidget; + private updateMobileOpts; + private onGridsterParentResize; + private updateLayoutOpts; + private updateEditingOpts; + notifyGridsterOptionsChanged(): void; + pauseChangeNotifications(): void; + resumeChangeNotifications(): void; + notifyLayoutUpdated(): void; + private detectRowSize; + private checkIsMobileSize; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard/select-target-layout-dialog.component.d.ts b/src/app/modules/home/components/dashboard/select-target-layout-dialog.component.d.ts new file mode 100644 index 00000000..32daf17e --- /dev/null +++ b/src/app/modules/home/components/dashboard/select-target-layout-dialog.component.d.ts @@ -0,0 +1,19 @@ +import { OnInit } from '@angular/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { DashboardLayoutId } from '@app/shared/models/dashboard.models'; +import * as i0 from "@angular/core"; +export declare class SelectTargetLayoutDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + dialogRef: MatDialogRef; + constructor(store: Store, router: Router, dialogRef: MatDialogRef); + ngOnInit(): void; + selectLayout(layoutId: DashboardLayoutId): void; + cancel(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/dashboard/select-target-state-dialog.component.d.ts b/src/app/modules/home/components/dashboard/select-target-state-dialog.component.d.ts new file mode 100644 index 00000000..7802f88c --- /dev/null +++ b/src/app/modules/home/components/dashboard/select-target-state-dialog.component.d.ts @@ -0,0 +1,37 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { DashboardState } from '@app/shared/models/dashboard.models'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import * as i0 from "@angular/core"; +export interface SelectTargetStateDialogData { + states: { + [id: string]: DashboardState; + }; +} +export declare class SelectTargetStateDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: SelectTargetStateDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + private dashboardUtils; + states: { + [id: string]: DashboardState; + }; + stateFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: SelectTargetStateDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, dashboardUtils: DashboardUtilsService); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/details-panel.component.d.ts b/src/app/modules/home/components/details-panel.component.d.ts new file mode 100644 index 00000000..a86cb6fe --- /dev/null +++ b/src/app/modules/home/components/details-panel.component.d.ts @@ -0,0 +1,38 @@ +import { ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormGroup } from '@angular/forms'; +import * as i0 from "@angular/core"; +export declare class DetailsPanelComponent extends PageComponent implements OnDestroy { + protected store: Store; + private cd; + headerHeightPx: number; + headerTitle: string; + headerSubtitle: string; + isReadOnly: boolean; + isAlwaysEdit: boolean; + isShowSearch: boolean; + backgroundColor: string; + private theFormValue; + private formSubscription; + set theForm(value: FormGroup); + get theForm(): FormGroup; + closeDetails: EventEmitter; + toggleDetailsEditMode: EventEmitter; + applyDetails: EventEmitter; + closeSearch: EventEmitter; + isEditValue: boolean; + showSearchPane: boolean; + isEditChange: EventEmitter; + get isEdit(): boolean; + set isEdit(val: boolean); + constructor(store: Store, cd: ChangeDetectorRef); + ngOnDestroy(): void; + onCloseDetails(): void; + onToggleDetailsEditMode(): void; + onApplyDetails(): void; + onToggleSearch(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/device/copy-device-credentials.component.d.ts b/src/app/modules/home/components/device/copy-device-credentials.component.d.ts new file mode 100644 index 00000000..8966a2db --- /dev/null +++ b/src/app/modules/home/components/device/copy-device-credentials.component.d.ts @@ -0,0 +1,33 @@ +import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core'; +import { EntityId } from '@shared/models/id/entity-id'; +import { DeviceService } from '@core/http/device.service'; +import { DeviceCredentials } from '@shared/models/device.models'; +import { Subject } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class CopyDeviceCredentialsComponent implements OnInit, OnDestroy { + private store; + private translate; + private deviceService; + private cd; + private deviceId$; + private tooltipMessage; + hideButton: boolean; + credential: string; + loading: boolean; + buttonLabel: string; + set deviceId(deviceId: EntityId); + disabled: boolean; + credentials$: Subject; + private credentialsSubscription; + constructor(store: Store, translate: TranslateService, deviceService: DeviceService, cd: ChangeDetectorRef); + ngOnInit(): void; + ngOnDestroy(): void; + private processingValue; + private convertObjectToString; + onCopyCredential(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/device/device-credentials-lwm2m-server.component.d.ts b/src/app/modules/home/components/device/device-credentials-lwm2m-server.component.d.ts new file mode 100644 index 00000000..62435d02 --- /dev/null +++ b/src/app/modules/home/components/device/device-credentials-lwm2m-server.component.d.ts @@ -0,0 +1,27 @@ +import { OnDestroy } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { Lwm2mSecurityType } from '@shared/models/lwm2m-security-config.models'; +import * as i0 from "@angular/core"; +export declare class DeviceCredentialsLwm2mServerComponent implements OnDestroy, ControlValueAccessor, Validator { + private fb; + serverFormGroup: FormGroup; + securityConfigLwM2MType: typeof Lwm2mSecurityType; + securityConfigLwM2MTypes: Lwm2mSecurityType[]; + lwm2mSecurityTypeTranslationMap: Map; + publicKeyOrIdTooltipNamesMap: Map; + clientSecretKeyTooltipNamesMap: Map; + private destroy$; + private propagateChange; + constructor(fb: FormBuilder); + writeValue(value: any): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(control: any): ValidationErrors | null; + ngOnDestroy(): void; + private updateValueFields; + private updateValidate; + private setValidatorsSecurity; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/device/device-credentials-lwm2m.component.d.ts b/src/app/modules/home/components/device/device-credentials-lwm2m.component.d.ts new file mode 100644 index 00000000..7645dc9e --- /dev/null +++ b/src/app/modules/home/components/device/device-credentials-lwm2m.component.d.ts @@ -0,0 +1,29 @@ +import { OnDestroy } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { Lwm2mSecurityType } from '@shared/models/lwm2m-security-config.models'; +import * as i0 from "@angular/core"; +export declare class DeviceCredentialsLwm2mComponent implements ControlValueAccessor, Validator, OnDestroy { + private fb; + lwm2mConfigFormGroup: FormGroup; + securityConfigLwM2MType: typeof Lwm2mSecurityType; + securityConfigLwM2MTypes: string[]; + credentialTypeLwM2MNamesMap: Map; + clientKeyTooltipNamesMap: Map; + private destroy$; + private propagateChange; + constructor(fb: FormBuilder); + writeValue(obj: string): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(): ValidationErrors | null; + ngOnDestroy(): void; + private initClientSecurityConfig; + private securityConfigClientModeChanged; + private securityConfigClientUpdateValidators; + private setValidatorsNoSecX509; + private setValidatorsPskRpk; + private initLwm2mConfigForm; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/device/device-credentials-mqtt-basic.component.d.ts b/src/app/modules/home/components/device/device-credentials-mqtt-basic.component.d.ts new file mode 100644 index 00000000..6d94a273 --- /dev/null +++ b/src/app/modules/home/components/device/device-credentials-mqtt-basic.component.d.ts @@ -0,0 +1,23 @@ +import { OnDestroy } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { DeviceCredentialMQTTBasic } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class DeviceCredentialsMqttBasicComponent implements ControlValueAccessor, Validator, OnDestroy { + fb: FormBuilder; + disabled: boolean; + deviceCredentialsMqttFormGroup: FormGroup; + private destroy$; + private propagateChange; + constructor(fb: FormBuilder); + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(): ValidationErrors | null; + writeValue(mqttBasic: string): void; + updateView(value: DeviceCredentialMQTTBasic): void; + passwordChanged(): void; + private atLeastOne; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/device/device-credentials.component.d.ts b/src/app/modules/home/components/device/device-credentials.component.d.ts new file mode 100644 index 00000000..a5276d70 --- /dev/null +++ b/src/app/modules/home/components/device/device-credentials.component.d.ts @@ -0,0 +1,34 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormControl, FormGroup, Validator } from '@angular/forms'; +import { DeviceCredentials, DeviceCredentialsType, DeviceTransportType } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class DeviceCredentialsComponent implements ControlValueAccessor, OnInit, Validator, OnDestroy { + fb: FormBuilder; + disabled: boolean; + private deviceTransportTypeValue; + get deviceTransportType(): DeviceTransportType; + set deviceTransportType(type: DeviceTransportType); + private destroy$; + deviceCredentialsFormGroup: FormGroup; + deviceCredentialsType: typeof DeviceCredentialsType; + credentialsTypes: DeviceCredentialsType[]; + credentialTypeNamesMap: Map; + private propagateChange; + constructor(fb: FormBuilder); + ngOnInit(): void; + ngOnDestroy(): void; + writeValue(value: DeviceCredentials | null): void; + updateView(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(c: FormControl): { + deviceCredentials: { + valid: boolean; + }; + }; + credentialsTypeChanged(): void; + updateValidators(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/device/device-credentials.module.d.ts b/src/app/modules/home/components/device/device-credentials.module.d.ts new file mode 100644 index 00000000..ad006039 --- /dev/null +++ b/src/app/modules/home/components/device/device-credentials.module.d.ts @@ -0,0 +1,13 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@home/components/device/copy-device-credentials.component"; +import * as i2 from "@home/components/device/device-credentials.component"; +import * as i3 from "@home/components/device/device-credentials-lwm2m.component"; +import * as i4 from "@home/components/device/device-credentials-lwm2m-server.component"; +import * as i5 from "@home/components/device/device-credentials-mqtt-basic.component"; +import * as i6 from "@angular/common"; +import * as i7 from "@shared/shared.module"; +export declare class DeviceCredentialsModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/components/edge/edge-downlink-table-config.d.ts b/src/app/modules/home/components/edge/edge-downlink-table-config.d.ts new file mode 100644 index 00000000..2dfbf98c --- /dev/null +++ b/src/app/modules/home/components/edge/edge-downlink-table-config.d.ts @@ -0,0 +1,35 @@ +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { EdgeEvent } from '@shared/models/edge.models'; +import { TimePageLink } from '@shared/models/page/page-link'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { MatDialog } from '@angular/material/dialog'; +import { EntityId } from '@shared/models/id/entity-id'; +import { DialogService } from '@core/services/dialog.service'; +import { AttributeService } from '@core/http/attribute.service'; +import { EdgeService } from '@core/http/edge.service'; +import { EntityService } from '@core/http/entity.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +export declare class EdgeDownlinkTableConfig extends EntityTableConfig { + private attributeService; + private datePipe; + private dialogService; + private dialog; + private edgeService; + private entityService; + private translate; + private store; + entityId: EntityId; + private queueStartTs; + constructor(attributeService: AttributeService, datePipe: DatePipe, dialogService: DialogService, dialog: MatDialog, edgeService: EdgeService, entityService: EntityService, translate: TranslateService, store: Store, entityId: EntityId); + private fetchEvents; + private onUpdate; + private updateColumns; + private updateEdgeEventStatus; + private isPending; + private isEdgeEventHasData; + private prepareEdgeEventContent; + private showEdgeEventContent; + private showEntityNotFoundError; +} diff --git a/src/app/modules/home/components/edge/edge-downlink-table-header.component.d.ts b/src/app/modules/home/components/edge/edge-downlink-table-header.component.d.ts new file mode 100644 index 00000000..d0a989a0 --- /dev/null +++ b/src/app/modules/home/components/edge/edge-downlink-table-header.component.d.ts @@ -0,0 +1,13 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTableHeaderComponent } from '../entity/entity-table-header.component'; +import { EdgeEvent } from "@shared/models/edge.models"; +import { EdgeDownlinkTableConfig } from "@home/components/edge/edge-downlink-table-config"; +import * as i0 from "@angular/core"; +export declare class EdgeDownlinkTableHeaderComponent extends EntityTableHeaderComponent { + protected store: Store; + get eventTableConfig(): EdgeDownlinkTableConfig; + constructor(store: Store); + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/edge/edge-downlink-table.component.d.ts b/src/app/modules/home/components/edge/edge-downlink-table.component.d.ts new file mode 100644 index 00000000..a984973b --- /dev/null +++ b/src/app/modules/home/components/edge/edge-downlink-table.component.d.ts @@ -0,0 +1,35 @@ +import { OnInit } from '@angular/core'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { MatDialog } from '@angular/material/dialog'; +import { EntityId } from '@shared/models/id/entity-id'; +import { EntitiesTableComponent } from '@home/components/entity/entities-table.component'; +import { EdgeDownlinkTableConfig } from './edge-downlink-table-config'; +import { DialogService } from '@core/services/dialog.service'; +import { AttributeService } from '@core/http/attribute.service'; +import { EdgeService } from '@core/http/edge.service'; +import { EntityService } from "@core/http/entity.service"; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import * as i0 from "@angular/core"; +export declare class EdgeDownlinkTableComponent implements OnInit { + private attributeService; + private datePipe; + private dialogService; + private dialog; + private edgeService; + private entityService; + private translate; + protected store: Store; + activeValue: boolean; + dirtyValue: boolean; + entityIdValue: EntityId; + set active(active: boolean); + set entityId(entityId: EntityId); + entitiesTable: EntitiesTableComponent; + edgeDownlinkTableConfig: EdgeDownlinkTableConfig; + constructor(attributeService: AttributeService, datePipe: DatePipe, dialogService: DialogService, dialog: MatDialog, edgeService: EdgeService, entityService: EntityService, translate: TranslateService, store: Store); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/entity/add-entity-dialog.component.d.ts b/src/app/modules/home/components/entity/add-entity-dialog.component.d.ts new file mode 100644 index 00000000..36981b5f --- /dev/null +++ b/src/app/modules/home/components/entity/add-entity-dialog.component.d.ts @@ -0,0 +1,41 @@ +import { ComponentFactoryResolver, Injector, OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { EntityTypeResource, EntityTypeTranslation } from '@shared/models/entity-type.models'; +import { BaseData, HasId } from '@shared/models/base-data'; +import { EntityId } from '@shared/models/id/entity-id'; +import { TbAnchorComponent } from '@shared/components/tb-anchor.component'; +import { EntityComponent } from './entity.component'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { AddEntityDialogData } from '@home/models/entity/entity-component.models'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import * as i0 from "@angular/core"; +export declare class AddEntityDialogComponent extends DialogComponent> implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: AddEntityDialogData>; + dialogRef: MatDialogRef>; + private componentFactoryResolver; + private injector; + private errorStateMatcher; + entityComponent: EntityComponent>; + detailsForm: FormGroup; + entitiesTableConfig: EntityTableConfig>; + translations: EntityTypeTranslation; + resources: EntityTypeResource>; + entity: BaseData; + submitted: boolean; + entityDetailsFormAnchor: TbAnchorComponent; + constructor(store: Store, router: Router, data: AddEntityDialogData>, dialogRef: MatDialogRef>, componentFactoryResolver: ComponentFactoryResolver, injector: Injector, errorStateMatcher: ErrorStateMatcher); + ngOnInit(): void; + helpLinkId(): string; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + add(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/entity/contact-based.component.d.ts b/src/app/modules/home/components/entity/contact-based.component.d.ts new file mode 100644 index 00000000..dfb10e0e --- /dev/null +++ b/src/app/modules/home/components/entity/contact-based.component.d.ts @@ -0,0 +1,25 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup, ValidatorFn } from '@angular/forms'; +import { ContactBased } from '@shared/models/contact-based.model'; +import { AfterViewInit, ChangeDetectorRef } from '@angular/core'; +import { HasId } from '@shared/models/base-data'; +import { EntityComponent } from './entity.component'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import * as i0 from "@angular/core"; +export declare abstract class ContactBasedComponent> extends EntityComponent implements AfterViewInit { + protected store: Store; + protected fb: FormBuilder; + protected entityValue: T; + protected entitiesTableConfigValue: EntityTableConfig; + protected cd: ChangeDetectorRef; + protected constructor(store: Store, fb: FormBuilder, entityValue: T, entitiesTableConfigValue: EntityTableConfig, cd: ChangeDetectorRef); + buildForm(entity: T): FormGroup; + updateForm(entity: T): void; + ngAfterViewInit(): void; + zipValidators(country: string): ValidatorFn[]; + abstract buildEntityForm(entity: T): FormGroup; + abstract updateEntityForm(entity: T): any; + static ɵfac: i0.ɵɵFactoryDeclaration, never>; + static ɵdir: i0.ɵɵDirectiveDeclaration, never, never, {}, {}, never>; +} diff --git a/src/app/modules/home/components/entity/entities-table.component.d.ts b/src/app/modules/home/components/entity/entities-table.component.d.ts new file mode 100644 index 00000000..4a397ee8 --- /dev/null +++ b/src/app/modules/home/components/entity/entities-table.component.d.ts @@ -0,0 +1,100 @@ +import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageLink } from '@shared/models/page/page-link'; +import { MatDialog } from '@angular/material/dialog'; +import { MatPaginator } from '@angular/material/paginator'; +import { MatSort } from '@angular/material/sort'; +import { EntitiesDataSource } from '@home/models/datasource/entity-datasource'; +import { TranslateService } from '@ngx-translate/core'; +import { BaseData, HasId } from '@shared/models/base-data'; +import { ActivatedRoute, QueryParamsHandling, Router } from '@angular/router'; +import { CellActionDescriptor, CellActionDescriptorType, EntityActionTableColumn, EntityColumn, EntityTableColumn, EntityTableConfig, GroupActionDescriptor, HeaderActionDescriptor } from '@home/models/entity/entities-table-config.models'; +import { EntityTypeTranslation } from '@shared/models/entity-type.models'; +import { DialogService } from '@core/services/dialog.service'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { Timewindow } from '@shared/models/time/time.models'; +import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; +import { TbAnchorComponent } from '@shared/components/tb-anchor.component'; +import { IEntitiesTableComponent } from '@home/models/entity/entity-table-component.models'; +import { EntityDetailsPanelComponent } from '@home/components/entity/entity-details-panel.component'; +import * as i0 from "@angular/core"; +export declare class EntitiesTableComponent extends PageComponent implements IEntitiesTableComponent, AfterViewInit, OnInit, OnChanges { + protected store: Store; + route: ActivatedRoute; + translate: TranslateService; + dialog: MatDialog; + private dialogService; + private domSanitizer; + private cd; + private router; + private componentFactoryResolver; + private elementRef; + entitiesTableConfig: EntityTableConfig>; + translations: EntityTypeTranslation; + headerActionDescriptors: Array; + groupActionDescriptors: Array>>; + cellActionDescriptors: Array>>; + actionColumns: Array>>; + entityColumns: Array>>; + displayedColumns: string[]; + headerCellStyleCache: Array; + cellContentCache: Array; + cellTooltipCache: Array; + cellStyleCache: Array; + selectionEnabled: any; + defaultPageSize: number; + displayPagination: boolean; + hidePageSize: boolean; + pageSizeOptions: any; + pageLink: PageLink; + pageMode: boolean; + textSearchMode: boolean; + timewindow: Timewindow; + dataSource: EntitiesDataSource>; + cellActionType: typeof CellActionDescriptorType; + isDetailsOpen: boolean; + detailsPanelOpened: EventEmitter; + entityTableHeaderAnchor: TbAnchorComponent; + searchInputField: ElementRef; + paginator: MatPaginator; + sort: MatSort; + entityDetailsPanel: EntityDetailsPanelComponent; + private updateDataSubscription; + private viewInited; + private widgetResize$; + constructor(store: Store, route: ActivatedRoute, translate: TranslateService, dialog: MatDialog, dialogService: DialogService, domSanitizer: DomSanitizer, cd: ChangeDetectorRef, router: Router, componentFactoryResolver: ComponentFactoryResolver, elementRef: ElementRef); + ngOnInit(): void; + ngOnDestroy(): void; + ngOnChanges(changes: SimpleChanges): void; + private init; + ngAfterViewInit(): void; + private updatePaginationSubscriptions; + addEnabled(): boolean; + clearSelection(): void; + updateData(closeDetails?: boolean): void; + private dataLoaded; + onRowClick($event: Event, entity: any): void; + toggleEntityDetails($event: Event, entity: any): void; + addEntity($event: Event): void; + onEntityUpdated(entity: BaseData): void; + onEntityAction(action: EntityAction>): void; + deleteEntity($event: Event, entity: BaseData): void; + deleteEntities($event: Event, entities: BaseData[]): void; + onTimewindowChange(): void; + enterFilterMode(): void; + exitFilterMode(): void; + resetSortAndFilter(update?: boolean, preserveTimewindow?: boolean): void; + columnsUpdated(resetData?: boolean): void; + headerCellStyle(column: EntityColumn>): any; + clearCellCache(col: number, row: number): void; + cellContent(entity: BaseData, column: EntityColumn>, row: number): SafeHtml; + cellTooltip(entity: BaseData, column: EntityColumn>, row: number): string; + cellStyle(entity: BaseData, column: EntityColumn>, row: number): any; + trackByColumnKey(index: any, column: EntityTableColumn>): string; + trackByEntityId(index: number, entity: BaseData): string; + protected updatedRouterParamsAndData(queryParams: object, queryParamsHandling?: QueryParamsHandling): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/entity/entity-details-page.component.d.ts b/src/app/modules/home/components/entity/entity-details-page.component.d.ts new file mode 100644 index 00000000..ef9681b8 --- /dev/null +++ b/src/app/modules/home/components/entity/entity-details-page.component.d.ts @@ -0,0 +1,41 @@ +import { ChangeDetectorRef, ComponentFactoryResolver, Injector, OnDestroy, OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { BaseData, HasId } from '@shared/models/base-data'; +import { ActivatedRoute, Router } from '@angular/router'; +import { FormGroup } from '@angular/forms'; +import { TranslateService } from '@ngx-translate/core'; +import { BroadcastService } from '@core/services/broadcast.service'; +import { EntityDetailsPanelComponent } from '@home/components/entity/entity-details-panel.component'; +import { DialogService } from '@core/services/dialog.service'; +import { IEntityDetailsPageComponent } from '@home/models/entity/entity-details-page-component.models'; +import * as i0 from "@angular/core"; +export declare class EntityDetailsPageComponent extends EntityDetailsPanelComponent implements IEntityDetailsPageComponent, OnInit, OnDestroy { + private route; + private router; + protected injector: Injector; + protected cd: ChangeDetectorRef; + protected componentFactoryResolver: ComponentFactoryResolver; + private broadcast; + private translate; + private dialogService; + protected store: Store; + headerTitle: string; + headerSubtitle: string; + isReadOnly: boolean; + set entitiesTableConfig(entitiesTableConfig: EntityTableConfig>); + get entitiesTableConfig(): EntityTableConfig>; + 'tb-absolute-fill': any; + constructor(route: ActivatedRoute, router: Router, injector: Injector, cd: ChangeDetectorRef, componentFactoryResolver: ComponentFactoryResolver, broadcast: BroadcastService, translate: TranslateService, dialogService: DialogService, store: Store); + ngOnInit(): void; + ngOnDestroy(): void; + reload(): void; + onToggleDetailsEditMode(): void; + onApplyDetails(): void; + confirmForm(): FormGroup; + private onUpdateEntity; + private deleteEntity; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/entity/entity-details-panel.component.d.ts b/src/app/modules/home/components/entity/entity-details-panel.component.d.ts new file mode 100644 index 00000000..ea11a8f4 --- /dev/null +++ b/src/app/modules/home/components/entity/entity-details-panel.component.d.ts @@ -0,0 +1,65 @@ +import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, EventEmitter, Injector, OnDestroy, QueryList } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { BaseData, HasId } from '@shared/models/base-data'; +import { EntityType, EntityTypeResource, EntityTypeTranslation } from '@shared/models/entity-type.models'; +import { FormGroup } from '@angular/forms'; +import { EntityComponent } from './entity.component'; +import { TbAnchorComponent } from '@shared/components/tb-anchor.component'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { Observable, Subscription } from 'rxjs'; +import { MatTab, MatTabGroup } from '@angular/material/tabs'; +import { EntityTabsComponent } from '@home/components/entity/entity-tabs.component'; +import * as i0 from "@angular/core"; +export declare class EntityDetailsPanelComponent extends PageComponent implements AfterViewInit, OnDestroy { + protected store: Store; + protected injector: Injector; + protected cd: ChangeDetectorRef; + protected componentFactoryResolver: ComponentFactoryResolver; + closeEntityDetails: EventEmitter; + entityUpdated: EventEmitter>; + entityAction: EventEmitter>>; + entityComponentRef: ComponentRef>>; + entityComponent: EntityComponent>; + entityTabsComponentRef: ComponentRef>>; + entityTabsComponent: EntityTabsComponent>; + detailsForm: FormGroup; + entitiesTableConfigValue: EntityTableConfig>; + isEditValue: boolean; + selectedTab: number; + entityTypes: typeof EntityType; + entityDetailsFormAnchor: TbAnchorComponent; + entityTabsAnchor: TbAnchorComponent; + matTabGroup: MatTabGroup; + inclusiveTabs: QueryList; + translations: EntityTypeTranslation; + resources: EntityTypeResource>; + entity: BaseData; + editingEntity: BaseData; + protected currentEntityId: HasId; + protected subscriptions: Subscription[]; + protected viewInited: boolean; + protected pendingTabs: MatTab[]; + constructor(store: Store, injector: Injector, cd: ChangeDetectorRef, componentFactoryResolver: ComponentFactoryResolver); + set entityId(entityId: HasId); + set entitiesTableConfig(entitiesTableConfig: EntityTableConfig>); + get entitiesTableConfig(): EntityTableConfig>; + set isEdit(val: boolean); + get isEdit(): boolean; + protected init(): void; + private clearSubscriptions; + ngOnDestroy(): void; + buildEntityComponent(): void; + buildEntityTabsComponent(): void; + hideDetailsTabs(): boolean; + reloadEntity(): Observable>; + onCloseEntityDetails(): void; + onToggleEditMode(isEdit: boolean): void; + helpLinkId(): string; + saveEntity(emitEntityUpdated?: boolean): Observable>; + ngAfterViewInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/entity/entity-filter-view.component.d.ts b/src/app/modules/home/components/entity/entity-filter-view.component.d.ts new file mode 100644 index 00000000..44e4c4ce --- /dev/null +++ b/src/app/modules/home/components/entity/entity-filter-view.component.d.ts @@ -0,0 +1,16 @@ +import { ControlValueAccessor } from '@angular/forms'; +import { EntityAliasFilter } from '@shared/models/alias.models'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class EntityFilterViewComponent implements ControlValueAccessor { + private translate; + constructor(translate: TranslateService); + filterDisplayValue: string; + filter: EntityAliasFilter; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState?(isDisabled: boolean): void; + writeValue(filter: EntityAliasFilter): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/entity/entity-filter.component.d.ts b/src/app/modules/home/components/entity/entity-filter.component.d.ts new file mode 100644 index 00000000..1efe1a7d --- /dev/null +++ b/src/app/modules/home/components/entity/entity-filter.component.d.ts @@ -0,0 +1,38 @@ +import { EventEmitter, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { AliasFilterType, EntityAliasFilter } from '@shared/models/alias.models'; +import { AliasEntityType, EntityType } from '@shared/models/entity-type.models'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityService } from '@core/http/entity.service'; +import { EntitySearchDirection } from '@shared/models/relation.models'; +import * as i0 from "@angular/core"; +export declare class EntityFilterComponent implements ControlValueAccessor, OnInit { + private translate; + private entityService; + private fb; + disabled: boolean; + allowedEntityTypes: Array; + resolveMultiple: boolean; + resolveMultipleChanged: EventEmitter; + entityFilterFormGroup: FormGroup; + filterFormGroup: FormGroup; + aliasFilterTypes: Array; + aliasFilterType: typeof AliasFilterType; + aliasFilterTypeTranslations: Map; + entityType: typeof EntityType; + directionTypes: string[]; + directionTypeTranslations: Map; + directionTypeEnum: typeof EntitySearchDirection; + private propagateChange; + constructor(translate: TranslateService, entityService: EntityService, fb: FormBuilder); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState?(isDisabled: boolean): void; + writeValue(filter: EntityAliasFilter): void; + private updateFilterFormGroup; + private filterTypeChanged; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/entity/entity-table-header.component.d.ts b/src/app/modules/home/components/entity/entity-table-header.component.d.ts new file mode 100644 index 00000000..8d588ca0 --- /dev/null +++ b/src/app/modules/home/components/entity/entity-table-header.component.d.ts @@ -0,0 +1,19 @@ +import { BaseData, HasId } from '@shared/models/base-data'; +import { PageComponent } from '@shared/components/page.component'; +import { OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { PageLink } from '@shared/models/page/page-link'; +import * as i0 from "@angular/core"; +export declare abstract class EntityTableHeaderComponent, P extends PageLink = PageLink, L extends BaseData = T, C extends EntityTableConfig = EntityTableConfig> extends PageComponent implements OnInit { + protected store: Store; + entitiesTableConfigValue: C; + set entitiesTableConfig(entitiesTableConfig: C); + get entitiesTableConfig(): C; + protected constructor(store: Store); + ngOnInit(): void; + protected setEntitiesTableConfig(entitiesTableConfig: C): void; + static ɵfac: i0.ɵɵFactoryDeclaration, never>; + static ɵdir: i0.ɵɵDirectiveDeclaration, never, never, { "entitiesTableConfig": "entitiesTableConfig"; }, {}, never>; +} diff --git a/src/app/modules/home/components/entity/entity-tabs.component.d.ts b/src/app/modules/home/components/entity/entity-tabs.component.d.ts new file mode 100644 index 00000000..53b1143b --- /dev/null +++ b/src/app/modules/home/components/entity/entity-tabs.component.d.ts @@ -0,0 +1,48 @@ +import { BaseData, HasId } from '@shared/models/base-data'; +import { PageComponent } from '@shared/components/page.component'; +import { AfterViewInit, OnInit, QueryList } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { MatTab } from '@angular/material/tabs'; +import { Authority } from '@app/shared/models/authority.enum'; +import { AuthUser } from '@shared/models/user.model'; +import { EntityType } from '@shared/models/entity-type.models'; +import { AuditLogMode } from '@shared/models/audit-log.models'; +import { DebugEventType, EventType } from '@shared/models/event.models'; +import { AttributeScope, LatestTelemetry } from '@shared/models/telemetry/telemetry.models'; +import { FormGroup } from '@angular/forms'; +import { PageLink } from '@shared/models/page/page-link'; +import * as i0 from "@angular/core"; +export declare abstract class EntityTabsComponent, P extends PageLink = PageLink, L extends BaseData = T, C extends EntityTableConfig = EntityTableConfig> extends PageComponent implements OnInit, AfterViewInit { + protected store: Store; + attributeScopes: typeof AttributeScope; + latestTelemetryTypes: typeof LatestTelemetry; + authorities: typeof Authority; + entityTypes: typeof EntityType; + auditLogModes: typeof AuditLogMode; + eventTypes: typeof EventType; + debugEventTypes: typeof DebugEventType; + authUser: AuthUser; + nullUid: string; + entityValue: T; + entitiesTableConfigValue: C; + entityTabs: QueryList; + isEditValue: boolean; + set isEdit(isEdit: boolean); + get isEdit(): boolean; + set entity(entity: T); + get entity(): T; + set entitiesTableConfig(entitiesTableConfig: C); + get entitiesTableConfig(): C; + detailsForm: FormGroup; + private entityTabsSubject; + entityTabsChanged: import("rxjs").Observable; + protected constructor(store: Store); + ngOnInit(): void; + ngAfterViewInit(): void; + protected setEntity(entity: T): void; + protected setEntitiesTableConfig(entitiesTableConfig: C): void; + static ɵfac: i0.ɵɵFactoryDeclaration, never>; + static ɵdir: i0.ɵɵDirectiveDeclaration, never, never, { "isEdit": "isEdit"; "entity": "entity"; "entitiesTableConfig": "entitiesTableConfig"; "detailsForm": "detailsForm"; }, {}, never>; +} diff --git a/src/app/modules/home/components/entity/entity.component.d.ts b/src/app/modules/home/components/entity/entity.component.d.ts new file mode 100644 index 00000000..c1d352f4 --- /dev/null +++ b/src/app/modules/home/components/entity/entity.component.d.ts @@ -0,0 +1,39 @@ +import { BaseData, HasId } from '@shared/models/base-data'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { PageComponent } from '@shared/components/page.component'; +import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { PageLink } from '@shared/models/page/page-link'; +import * as i0 from "@angular/core"; +export declare abstract class EntityComponent, P extends PageLink = PageLink, L extends BaseData = T, C extends EntityTableConfig = EntityTableConfig> extends PageComponent implements OnInit { + protected store: Store; + protected fb: FormBuilder; + protected entityValue: T; + protected entitiesTableConfigValue: C; + protected cd: ChangeDetectorRef; + entityForm: FormGroup; + isEditValue: boolean; + isDetailsPage: boolean; + set entitiesTableConfig(entitiesTableConfig: C); + get entitiesTableConfig(): C; + set isEdit(isEdit: boolean); + get isEdit(): boolean; + get isAdd(): boolean; + set entity(entity: T); + get entity(): T; + entityAction: EventEmitter>; + protected constructor(store: Store, fb: FormBuilder, entityValue: T, entitiesTableConfigValue: C, cd: ChangeDetectorRef); + ngOnInit(): void; + onEntityAction($event: Event, action: string): void; + updateFormState(): void; + entityFormValue(): any; + prepareFormValue(formValue: any): any; + protected setEntitiesTableConfig(entitiesTableConfig: C): void; + abstract buildForm(entity: T): FormGroup; + abstract updateForm(entity: T): any; + static ɵfac: i0.ɵɵFactoryDeclaration, never>; + static ɵdir: i0.ɵɵDirectiveDeclaration, never, never, { "entitiesTableConfig": "entitiesTableConfig"; "isEdit": "isEdit"; "entity": "entity"; }, { "entityAction": "entityAction"; }, never>; +} diff --git a/src/app/modules/home/components/event/event-content-dialog.component.d.ts b/src/app/modules/home/components/event/event-content-dialog.component.d.ts new file mode 100644 index 00000000..1d079b0d --- /dev/null +++ b/src/app/modules/home/components/event/event-content-dialog.component.d.ts @@ -0,0 +1,31 @@ +import { ElementRef, OnInit, Renderer2 } from '@angular/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Ace } from 'ace-builds'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import { ContentType } from '@shared/models/constants'; +import * as i0 from "@angular/core"; +export interface EventContentDialogData { + content: string; + title: string; + contentType: ContentType; +} +export declare class EventContentDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + data: EventContentDialogData; + dialogRef: MatDialogRef; + private renderer; + eventContentEditorElmRef: ElementRef; + content: string; + title: string; + contentType: ContentType; + constructor(store: Store, router: Router, data: EventContentDialogData, dialogRef: MatDialogRef, renderer: Renderer2); + ngOnInit(): void; + createEditor(editorElementRef: ElementRef, content: string): void; + updateEditorSize(editorElement: any, content: string, editor: Ace.Editor): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/event/event-filter-panel.component.d.ts b/src/app/modules/home/components/event/event-filter-panel.component.d.ts new file mode 100644 index 00000000..9e2c8c41 --- /dev/null +++ b/src/app/modules/home/components/event/event-filter-panel.component.d.ts @@ -0,0 +1,36 @@ +import { InjectionToken } from '@angular/core'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { OverlayRef } from '@angular/cdk/overlay'; +import { FilterEventBody } from '@shared/models/event.models'; +import * as i0 from "@angular/core"; +export declare const EVENT_FILTER_PANEL_DATA: InjectionToken; +export interface EventFilterPanelData { + filterParams: FilterEventBody; + columns: Array; +} +export interface FilterEntityColumn { + key: string; + title: string; +} +export declare class EventFilterPanelComponent { + data: EventFilterPanelData; + overlayRef: OverlayRef; + private fb; + eventFilterFormGroup: FormGroup; + result: EventFilterPanelData; + private conditionError; + private msgDirectionTypes; + private statusTypes; + private entityTypes; + showColumns: FilterEntityColumn[]; + constructor(data: EventFilterPanelData, overlayRef: OverlayRef, fb: FormBuilder); + isSelector(key: string): string; + isNumberFields(key: string): string; + selectorValues(key: string): string[]; + update(): void; + showErrorMsgFields(): boolean; + cancel(): void; + changeIsError(value: boolean | string): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/event/event-table-config.d.ts b/src/app/modules/home/components/event/event-table-config.d.ts new file mode 100644 index 00000000..ff104ade --- /dev/null +++ b/src/app/modules/home/components/event/event-table-config.d.ts @@ -0,0 +1,44 @@ +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { DebugEventType, Event, EventType } from '@shared/models/event.models'; +import { TimePageLink } from '@shared/models/page/page-link'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { MatDialog } from '@angular/material/dialog'; +import { EntityId } from '@shared/models/id/entity-id'; +import { EventService } from '@app/core/http/event.service'; +import { Observable } from 'rxjs'; +import { PageData } from '@shared/models/page/page-data'; +import { DialogService } from '@core/services/dialog.service'; +import { ContentType } from '@shared/models/constants'; +import { Overlay } from '@angular/cdk/overlay'; +import { ChangeDetectorRef, ViewContainerRef } from '@angular/core'; +export declare class EventTableConfig extends EntityTableConfig { + private eventService; + private dialogService; + private translate; + private datePipe; + private dialog; + entityId: EntityId; + tenantId: string; + private defaultEventType; + private disabledEventTypes; + private debugEventTypes; + private overlay; + private viewContainerRef; + private cd; + eventTypeValue: EventType | DebugEventType; + hideClearEventAction: boolean; + private filterParams; + private filterColumns; + set eventType(eventType: EventType | DebugEventType); + get eventType(): EventType | DebugEventType; + eventTypes: Array; + constructor(eventService: EventService, dialogService: DialogService, translate: TranslateService, datePipe: DatePipe, dialog: MatDialog, entityId: EntityId, tenantId: string, defaultEventType: EventType | DebugEventType, disabledEventTypes: Array, debugEventTypes: Array, overlay: Overlay, viewContainerRef: ViewContainerRef, cd: ChangeDetectorRef); + clearEvents($event: any): void; + fetchEvents(pageLink: TimePageLink): Observable>; + updateColumns(updateTableColumns?: boolean): void; + showContent($event: MouseEvent, content: string, title: string, contentType?: ContentType, sortKeys?: boolean): void; + private updateFilterColumns; + private clearFiter; + private editEventFilter; +} diff --git a/src/app/modules/home/components/event/event-table-header.component.d.ts b/src/app/modules/home/components/event/event-table-header.component.d.ts new file mode 100644 index 00000000..b0307103 --- /dev/null +++ b/src/app/modules/home/components/event/event-table-header.component.d.ts @@ -0,0 +1,15 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTableHeaderComponent } from '../entity/entity-table-header.component'; +import { DebugEventType, Event, EventType } from '@app/shared/models/event.models'; +import { EventTableConfig } from '@home/components/event/event-table-config'; +import * as i0 from "@angular/core"; +export declare class EventTableHeaderComponent extends EntityTableHeaderComponent { + protected store: Store; + eventTypeTranslationsMap: Map; + get eventTableConfig(): EventTableConfig; + constructor(store: Store); + eventTypeChanged(eventType: EventType | DebugEventType): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/event/event-table.component.d.ts b/src/app/modules/home/components/event/event-table.component.d.ts new file mode 100644 index 00000000..5ec47eda --- /dev/null +++ b/src/app/modules/home/components/event/event-table.component.d.ts @@ -0,0 +1,40 @@ +import { AfterViewInit, ChangeDetectorRef, OnInit, ViewContainerRef } from '@angular/core'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { MatDialog } from '@angular/material/dialog'; +import { EntityId } from '@shared/models/id/entity-id'; +import { EntitiesTableComponent } from '@home/components/entity/entities-table.component'; +import { EventTableConfig } from './event-table-config'; +import { EventService } from '@core/http/event.service'; +import { DialogService } from '@core/services/dialog.service'; +import { DebugEventType, EventType } from '@shared/models/event.models'; +import { Overlay } from '@angular/cdk/overlay'; +import * as i0 from "@angular/core"; +export declare class EventTableComponent implements OnInit, AfterViewInit { + private eventService; + private dialogService; + private translate; + private datePipe; + private dialog; + private overlay; + private viewContainerRef; + private cd; + tenantId: string; + defaultEventType: EventType | DebugEventType; + disabledEventTypes: Array; + debugEventTypes: Array; + activeValue: boolean; + dirtyValue: boolean; + entityIdValue: EntityId; + set active(active: boolean); + set entityId(entityId: EntityId); + entitiesTable: EntitiesTableComponent; + eventTableConfig: EventTableConfig; + private isEmptyData$; + constructor(eventService: EventService, dialogService: DialogService, translate: TranslateService, datePipe: DatePipe, dialog: MatDialog, overlay: Overlay, viewContainerRef: ViewContainerRef, cd: ChangeDetectorRef); + ngOnInit(): void; + ngAfterViewInit(): void; + ngOnDestroy(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/boolean-filter-predicate.component.d.ts b/src/app/modules/home/components/filter/boolean-filter-predicate.component.d.ts new file mode 100644 index 00000000..01cddf46 --- /dev/null +++ b/src/app/modules/home/components/filter/boolean-filter-predicate.component.d.ts @@ -0,0 +1,26 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { BooleanFilterPredicate, BooleanOperation, EntityKeyValueType } from '@shared/models/query/query.models'; +import * as i0 from "@angular/core"; +export declare class BooleanFilterPredicateComponent implements ControlValueAccessor, Validator, OnInit { + private fb; + disabled: boolean; + allowUserDynamicSource: boolean; + onlyUserDynamicSource: boolean; + valueTypeEnum: typeof EntityKeyValueType; + booleanFilterPredicateFormGroup: FormGroup; + booleanOperations: string[]; + booleanOperationEnum: typeof BooleanOperation; + booleanOperationTranslations: Map; + private propagateChange; + constructor(fb: FormBuilder); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(): ValidationErrors | null; + writeValue(predicate: BooleanFilterPredicate): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/complex-filter-predicate-dialog.component.d.ts b/src/app/modules/home/components/filter/complex-filter-predicate-dialog.component.d.ts new file mode 100644 index 00000000..10723f29 --- /dev/null +++ b/src/app/modules/home/components/filter/complex-filter-predicate-dialog.component.d.ts @@ -0,0 +1,32 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { ComplexFilterPredicateInfo, ComplexOperation } from '@shared/models/query/query.models'; +import { ComplexFilterPredicateDialogData } from '@home/components/filter/filter-component.models'; +import * as i0 from "@angular/core"; +export declare class ComplexFilterPredicateDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: ComplexFilterPredicateDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + complexFilterFormGroup: FormGroup; + complexOperations: string[]; + complexOperationEnum: typeof ComplexOperation; + complexOperationTranslations: Map; + isAdd: boolean; + submitted: boolean; + constructor(store: Store, router: Router, data: ComplexFilterPredicateDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/complex-filter-predicate.component.d.ts b/src/app/modules/home/components/filter/complex-filter-predicate.component.d.ts new file mode 100644 index 00000000..af82981d --- /dev/null +++ b/src/app/modules/home/components/filter/complex-filter-predicate.component.d.ts @@ -0,0 +1,28 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import { ComplexFilterPredicateInfo, EntityKeyValueType } from '@shared/models/query/query.models'; +import { MatDialog } from '@angular/material/dialog'; +import { ComponentType } from '@angular/cdk/portal'; +import * as i0 from "@angular/core"; +export declare class ComplexFilterPredicateComponent implements ControlValueAccessor, OnInit { + private complexFilterPredicateDialogComponent; + private dialog; + disabled: boolean; + valueType: EntityKeyValueType; + key: string; + displayUserParameters: boolean; + allowUserDynamicSource: boolean; + onlyUserDynamicSource: boolean; + private propagateChange; + private complexFilterPredicate; + constructor(complexFilterPredicateDialogComponent: ComponentType, dialog: MatDialog); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(predicate: ComplexFilterPredicateInfo): void; + openComplexFilterDialog(): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/filter-component.models.d.ts b/src/app/modules/home/components/filter/filter-component.models.d.ts new file mode 100644 index 00000000..c8811281 --- /dev/null +++ b/src/app/modules/home/components/filter/filter-component.models.d.ts @@ -0,0 +1,11 @@ +import { ComplexFilterPredicateInfo, EntityKeyValueType } from '@shared/models/query/query.models'; +export interface ComplexFilterPredicateDialogData { + complexPredicate: ComplexFilterPredicateInfo; + key: string; + readonly: boolean; + isAdd: boolean; + valueType: EntityKeyValueType; + displayUserParameters: boolean; + allowUserDynamicSource: boolean; + onlyUserDynamicSource: boolean; +} diff --git a/src/app/modules/home/components/filter/filter-dialog.component.d.ts b/src/app/modules/home/components/filter/filter-dialog.component.d.ts new file mode 100644 index 00000000..56c7ed90 --- /dev/null +++ b/src/app/modules/home/components/filter/filter-dialog.component.d.ts @@ -0,0 +1,40 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, ValidatorFn } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { Filter, Filters } from '@shared/models/query/query.models'; +import * as i0 from "@angular/core"; +export interface FilterDialogData { + isAdd: boolean; + filters: Filters | Array; + filter?: Filter; +} +export declare class FilterDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: FilterDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + private utils; + translate: TranslateService; + isAdd: boolean; + filters: Array; + filter: Filter; + filterFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: FilterDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, utils: UtilsService, translate: TranslateService); + validateDuplicateFilterName(): ValidatorFn; + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/filter-predicate-list.component.d.ts b/src/app/modules/home/components/filter/filter-predicate-list.component.d.ts new file mode 100644 index 00000000..b9e46901 --- /dev/null +++ b/src/app/modules/home/components/filter/filter-predicate-list.component.d.ts @@ -0,0 +1,37 @@ +import { OnInit } from '@angular/core'; +import { AbstractControl, ControlValueAccessor, FormArray, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { ComplexOperation, EntityKeyValueType, KeyFilterPredicateInfo } from '@shared/models/query/query.models'; +import { MatDialog } from '@angular/material/dialog'; +import { ComponentType } from '@angular/cdk/portal'; +import * as i0 from "@angular/core"; +export declare class FilterPredicateListComponent implements ControlValueAccessor, Validator, OnInit { + private fb; + private complexFilterPredicateDialogComponent; + private dialog; + disabled: boolean; + valueType: EntityKeyValueType; + key: string; + operation: ComplexOperation; + displayUserParameters: boolean; + allowUserDynamicSource: boolean; + onlyUserDynamicSource: boolean; + filterListFormGroup: FormGroup; + valueTypeEnum: typeof EntityKeyValueType; + complexOperationTranslations: Map; + private propagateChange; + private valueChangeSubscription; + constructor(fb: FormBuilder, complexFilterPredicateDialogComponent: ComponentType, dialog: MatDialog); + ngOnInit(): void; + predicatesFormArray(): FormArray; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState?(isDisabled: boolean): void; + validate(control: AbstractControl): ValidationErrors | null; + writeValue(predicates: Array): void; + removePredicate(index: number): void; + addPredicate(complex: boolean): void; + private openComplexFilterDialog; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/filter-predicate-value.component.d.ts b/src/app/modules/home/components/filter/filter-predicate-value.component.d.ts new file mode 100644 index 00000000..a335c523 --- /dev/null +++ b/src/app/modules/home/components/filter/filter-predicate-value.component.d.ts @@ -0,0 +1,35 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { DynamicValueSourceType, EntityKeyValueType, FilterPredicateValue } from '@shared/models/query/query.models'; +import * as i0 from "@angular/core"; +export declare class FilterPredicateValueComponent implements ControlValueAccessor, Validator, OnInit { + private fb; + private readonly inheritModeForSources; + disabled: boolean; + set allowUserDynamicSource(allow: boolean); + private onlyUserDynamicSourceValue; + set onlyUserDynamicSource(dynamicMode: boolean); + get onlyUserDynamicSource(): boolean; + valueType: EntityKeyValueType; + valueTypeEnum: typeof EntityKeyValueType; + allow: boolean; + dynamicValueSourceTypes: DynamicValueSourceType[]; + dynamicValueSourceTypeTranslations: Map; + filterPredicateValueFormGroup: FormGroup; + dynamicMode: boolean; + inheritMode: boolean; + private propagateChange; + private propagateChangePending; + constructor(fb: FormBuilder); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(): ValidationErrors | null; + writeValue(predicateValue: FilterPredicateValue): void; + private updateModel; + private updateShowInheritMode; + private updateValidationDynamicMode; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/filter-predicate.component.d.ts b/src/app/modules/home/components/filter/filter-predicate.component.d.ts new file mode 100644 index 00000000..8fd22453 --- /dev/null +++ b/src/app/modules/home/components/filter/filter-predicate.component.d.ts @@ -0,0 +1,27 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { EntityKeyValueType, FilterPredicateType, KeyFilterPredicateInfo } from '@shared/models/query/query.models'; +import * as i0 from "@angular/core"; +export declare class FilterPredicateComponent implements ControlValueAccessor, Validator, OnInit { + private fb; + disabled: boolean; + valueType: EntityKeyValueType; + key: string; + displayUserParameters: boolean; + allowUserDynamicSource: boolean; + onlyUserDynamicSource: boolean; + filterPredicateFormGroup: FormGroup; + type: FilterPredicateType; + filterPredicateType: typeof FilterPredicateType; + private propagateChange; + constructor(fb: FormBuilder); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(): ValidationErrors | null; + writeValue(predicate: KeyFilterPredicateInfo): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/filter-select.component.d.ts b/src/app/modules/home/components/filter/filter-select.component.d.ts new file mode 100644 index 00000000..87a3af4b --- /dev/null +++ b/src/app/modules/home/components/filter/filter-select.component.d.ts @@ -0,0 +1,56 @@ +import { AfterViewInit, ElementRef, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { IAliasController } from '@core/api/widget-api.models'; +import { TruncatePipe } from '@shared/pipe/truncate.pipe'; +import { MatAutocomplete, MatAutocompleteTrigger } from '@angular/material/autocomplete'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { FilterSelectCallbacks } from '@home/components/filter/filter-select.component.models'; +import { Filter } from '@shared/models/query/query.models'; +import * as i0 from "@angular/core"; +export declare class FilterSelectComponent implements ControlValueAccessor, OnInit, AfterViewInit, ErrorStateMatcher { + private store; + private errorStateMatcher; + translate: TranslateService; + truncate: TruncatePipe; + private fb; + selectFilterFormGroup: FormGroup; + modelValue: string | null; + aliasController: IAliasController; + callbacks: FilterSelectCallbacks; + showLabel: boolean; + filterAutocomplete: MatAutocomplete; + autoCompleteTrigger: MatAutocompleteTrigger; + private requiredValue; + get tbRequired(): boolean; + set tbRequired(value: boolean); + disabled: boolean; + filterInput: ElementRef; + filterList: Array; + filteredFilters: Observable>; + searchText: string; + private dirty; + private creatingFilter; + private propagateChange; + constructor(store: Store, errorStateMatcher: ErrorStateMatcher, translate: TranslateService, truncate: TruncatePipe, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + ngAfterViewInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string | null): void; + onFocus(): void; + updateView(value: Filter | null): void; + displayFilterFn(filter?: Filter): string | undefined; + fetchFilters(searchText?: string): Observable>; + clear(value?: string): void; + textIsNotEmpty(text: string): boolean; + filterEnter($event: KeyboardEvent): void; + createFilter($event: Event, filter: string): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/filter-select.component.models.d.ts b/src/app/modules/home/components/filter/filter-select.component.models.d.ts new file mode 100644 index 00000000..2c8c813b --- /dev/null +++ b/src/app/modules/home/components/filter/filter-select.component.models.d.ts @@ -0,0 +1,5 @@ +import { Observable } from 'rxjs'; +import { Filter } from '@shared/models/query/query.models'; +export interface FilterSelectCallbacks { + createFilter: (filter: string) => Observable; +} diff --git a/src/app/modules/home/components/filter/filter-text.component.d.ts b/src/app/modules/home/components/filter/filter-text.component.d.ts new file mode 100644 index 00000000..0f15e8fb --- /dev/null +++ b/src/app/modules/home/components/filter/filter-text.component.d.ts @@ -0,0 +1,32 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder } from '@angular/forms'; +import { MatDialog } from '@angular/material/dialog'; +import { KeyFilter } from '@shared/models/query/query.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import * as i0 from "@angular/core"; +export declare class FilterTextComponent implements ControlValueAccessor, OnInit { + private dialog; + private fb; + private translate; + private datePipe; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + noFilterText: any; + addFilterPrompt: any; + nowrap: boolean; + requiredClass: boolean; + filterText: string; + private propagateChange; + constructor(dialog: MatDialog, fb: FormBuilder, translate: TranslateService, datePipe: DatePipe); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: Array): void; + private updateFilterText; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/filter-user-info-dialog.component.d.ts b/src/app/modules/home/components/filter/filter-user-info-dialog.component.d.ts new file mode 100644 index 00000000..064d6dea --- /dev/null +++ b/src/app/modules/home/components/filter/filter-user-info-dialog.component.d.ts @@ -0,0 +1,37 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { BooleanOperation, EntityKeyValueType, KeyFilterPredicateUserInfo, NumericOperation, StringOperation } from '@shared/models/query/query.models'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export interface FilterUserInfoDialogData { + key: string; + valueType: EntityKeyValueType; + operation: StringOperation | BooleanOperation | NumericOperation; + keyFilterPredicateUserInfo: KeyFilterPredicateUserInfo; + readonly: boolean; +} +export declare class FilterUserInfoDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: FilterUserInfoDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + private translate; + filterUserInfoFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: FilterUserInfoDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, translate: TranslateService); + private onAutogeneratedLabelChange; + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/filter-user-info.component.d.ts b/src/app/modules/home/components/filter/filter-user-info.component.d.ts new file mode 100644 index 00000000..3b05c5ca --- /dev/null +++ b/src/app/modules/home/components/filter/filter-user-info.component.d.ts @@ -0,0 +1,24 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import { BooleanOperation, EntityKeyValueType, KeyFilterPredicateUserInfo, NumericOperation, StringOperation } from '@shared/models/query/query.models'; +import { MatDialog } from '@angular/material/dialog'; +import * as i0 from "@angular/core"; +export declare class FilterUserInfoComponent implements ControlValueAccessor, OnInit { + private dialog; + disabled: boolean; + key: string; + operation: StringOperation | BooleanOperation | NumericOperation; + valueType: EntityKeyValueType; + private propagateChange; + private keyFilterPredicateUserInfo; + constructor(dialog: MatDialog); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState?(isDisabled: boolean): void; + writeValue(keyFilterPredicateUserInfo: KeyFilterPredicateUserInfo): void; + openFilterUserInfoDialog(): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/filters-dialog.component.d.ts b/src/app/modules/home/components/filter/filters-dialog.component.d.ts new file mode 100644 index 00000000..a21508a5 --- /dev/null +++ b/src/app/modules/home/components/filter/filters-dialog.component.d.ts @@ -0,0 +1,55 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialog, MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormArray, FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { Widget } from '@shared/models/widget.models'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { DialogService } from '@core/services/dialog.service'; +import { Filter, Filters } from '@shared/models/query/query.models'; +import * as i0 from "@angular/core"; +export interface FiltersDialogData { + filters: Filters; + widgets: Array; + isSingleFilter?: boolean; + isSingleWidget?: boolean; + disableAdd?: boolean; + singleFilter?: Filter; + customTitle?: string; +} +export declare class FiltersDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: FiltersDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + private utils; + private translate; + private dialogs; + private dialog; + title: string; + disableAdd: boolean; + filterToWidgetsMap: { + [filterId: string]: Array; + }; + filtersFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: FiltersDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, utils: UtilsService, translate: TranslateService, dialogs: DialogService, dialog: MatDialog); + private createFilterFormControl; + filtersFormArray(): FormArray; + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + removeFilter(index: number): void; + addFilter(): void; + editFilter(index: number): void; + private openFilterDialog; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/filters-edit-panel.component.d.ts b/src/app/modules/home/components/filter/filters-edit-panel.component.d.ts new file mode 100644 index 00000000..40b54d32 --- /dev/null +++ b/src/app/modules/home/components/filter/filters-edit-panel.component.d.ts @@ -0,0 +1,23 @@ +import { InjectionToken } from '@angular/core'; +import { IAliasController } from '@core/api/widget-api.models'; +import { FilterInfo } from '@shared/models/query/query.models'; +import { MatDialog } from '@angular/material/dialog'; +import * as i0 from "@angular/core"; +export declare const FILTER_EDIT_PANEL_DATA: InjectionToken; +export interface FiltersEditPanelData { + aliasController: IAliasController; + filtersInfo: { + [filterId: string]: FilterInfo; + }; +} +export declare class FiltersEditPanelComponent { + data: FiltersEditPanelData; + private dialog; + filtersInfo: { + [filterId: string]: FilterInfo; + }; + constructor(data: FiltersEditPanelData, dialog: MatDialog); + editFilter(filterId: string, filter: FilterInfo): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/filters-edit.component.d.ts b/src/app/modules/home/components/filter/filters-edit.component.d.ts new file mode 100644 index 00000000..e3cc94d6 --- /dev/null +++ b/src/app/modules/home/components/filter/filters-edit.component.d.ts @@ -0,0 +1,37 @@ +import { OnDestroy, OnInit, ViewContainerRef } from '@angular/core'; +import { TooltipPosition } from '@angular/material/tooltip'; +import { IAliasController } from '@core/api/widget-api.models'; +import { CdkOverlayOrigin, Overlay } from '@angular/cdk/overlay'; +import { TranslateService } from '@ngx-translate/core'; +import { BreakpointObserver } from '@angular/cdk/layout'; +import { FilterInfo } from '@shared/models/query/query.models'; +import { MatDialog } from '@angular/material/dialog'; +import * as i0 from "@angular/core"; +export declare class FiltersEditComponent implements OnInit, OnDestroy { + private translate; + private overlay; + private breakpointObserver; + private viewContainerRef; + private dialog; + aliasControllerValue: IAliasController; + set aliasController(aliasController: IAliasController); + get aliasController(): IAliasController; + tooltipPosition: TooltipPosition; + disabled: boolean; + filtersEditPanelOrigin: CdkOverlayOrigin; + displayValue: string; + filtersInfo: { + [filterId: string]: FilterInfo; + }; + hasEditableFilters: boolean; + private rxSubscriptions; + constructor(translate: TranslateService, overlay: Overlay, breakpointObserver: BreakpointObserver, viewContainerRef: ViewContainerRef, dialog: MatDialog); + private setupAliasController; + ngOnInit(): void; + ngOnDestroy(): void; + openEditMode(): void; + private _createFiltersEditPanelInjector; + private updateFiltersInfo; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/key-filter-dialog.component.d.ts b/src/app/modules/home/components/filter/key-filter-dialog.component.d.ts new file mode 100644 index 00000000..beb205fd --- /dev/null +++ b/src/app/modules/home/components/filter/key-filter-dialog.component.d.ts @@ -0,0 +1,61 @@ +import { OnDestroy } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { EntityKeyType, EntityKeyValueType, KeyFilterInfo } from '@shared/models/query/query.models'; +import { DialogService } from '@core/services/dialog.service'; +import { TranslateService } from '@ngx-translate/core'; +import { Observable } from 'rxjs'; +import { EntityId } from '@shared/models/id/entity-id'; +import { DeviceProfileService } from '@core/http/device-profile.service'; +import * as i0 from "@angular/core"; +export interface KeyFilterDialogData { + keyFilter: KeyFilterInfo; + isAdd: boolean; + displayUserParameters: boolean; + allowUserDynamicSource: boolean; + readonly: boolean; + telemetryKeysOnly: boolean; + entityId?: EntityId; +} +export declare class KeyFilterDialogComponent extends DialogComponent implements OnDestroy, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: KeyFilterDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private deviceProfileService; + private dialogs; + private translate; + private fb; + private keyNameInput; + private dirty; + private entityKeysName; + private destroy$; + keyFilterFormGroup: FormGroup; + entityKeyTypes: EntityKeyType[]; + entityKeyTypeTranslations: Map; + entityKeyValueTypesKeys: string[]; + entityKeyValueTypeEnum: typeof EntityKeyValueType; + entityKeyValueTypes: Map; + submitted: boolean; + showAutocomplete: boolean; + filteredKeysName: Observable>; + searchText: string; + constructor(store: Store, router: Router, data: KeyFilterDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, deviceProfileService: DeviceProfileService, dialogs: DialogService, translate: TranslateService, fb: FormBuilder); + ngOnDestroy(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + clear(): void; + onFocus(): void; + save(): void; + get isConstantKeyType(): boolean; + private fetchEntityName; + private getEntityKeys; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/key-filter-list.component.d.ts b/src/app/modules/home/components/filter/key-filter-list.component.d.ts new file mode 100644 index 00000000..8f9fb2fb --- /dev/null +++ b/src/app/modules/home/components/filter/key-filter-list.component.d.ts @@ -0,0 +1,35 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormArray, FormBuilder, FormControl, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { EntityKeyType, KeyFilterInfo } from '@shared/models/query/query.models'; +import { MatDialog } from '@angular/material/dialog'; +import { EntityId } from '@shared/models/id/entity-id'; +import * as i0 from "@angular/core"; +export declare class KeyFilterListComponent implements ControlValueAccessor, Validator, OnInit { + private fb; + private dialog; + disabled: boolean; + displayUserParameters: boolean; + allowUserDynamicSource: boolean; + telemetryKeysOnly: boolean; + entityId: EntityId; + keyFilterListFormGroup: FormGroup; + entityKeyTypeTranslations: Map; + keyFiltersControl: FormControl; + private propagateChange; + private valueChangeSubscription; + constructor(fb: FormBuilder, dialog: MatDialog); + ngOnInit(): void; + keyFiltersFormArray(): FormArray; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState?(isDisabled: boolean): void; + validate(): ValidationErrors | null; + writeValue(keyFilters: Array): void; + removeKeyFilter(index: number): void; + addKeyFilter(): void; + editKeyFilter(index: number): void; + private openKeyFilterDialog; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/numeric-filter-predicate.component.d.ts b/src/app/modules/home/components/filter/numeric-filter-predicate.component.d.ts new file mode 100644 index 00000000..2872ba94 --- /dev/null +++ b/src/app/modules/home/components/filter/numeric-filter-predicate.component.d.ts @@ -0,0 +1,27 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { EntityKeyValueType, NumericFilterPredicate, NumericOperation } from '@shared/models/query/query.models'; +import * as i0 from "@angular/core"; +export declare class NumericFilterPredicateComponent implements ControlValueAccessor, Validator, OnInit { + private fb; + disabled: boolean; + allowUserDynamicSource: boolean; + onlyUserDynamicSource: boolean; + valueType: EntityKeyValueType; + numericFilterPredicateFormGroup: FormGroup; + valueTypeEnum: typeof EntityKeyValueType; + numericOperations: string[]; + numericOperationEnum: typeof NumericOperation; + numericOperationTranslations: Map; + private propagateChange; + constructor(fb: FormBuilder); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(): ValidationErrors | null; + writeValue(predicate: NumericFilterPredicate): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/string-filter-predicate.component.d.ts b/src/app/modules/home/components/filter/string-filter-predicate.component.d.ts new file mode 100644 index 00000000..675372ed --- /dev/null +++ b/src/app/modules/home/components/filter/string-filter-predicate.component.d.ts @@ -0,0 +1,26 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { EntityKeyValueType, StringFilterPredicate, StringOperation } from '@shared/models/query/query.models'; +import * as i0 from "@angular/core"; +export declare class StringFilterPredicateComponent implements ControlValueAccessor, Validator, OnInit { + private fb; + disabled: boolean; + allowUserDynamicSource: boolean; + onlyUserDynamicSource: boolean; + valueTypeEnum: typeof EntityKeyValueType; + stringFilterPredicateFormGroup: FormGroup; + stringOperations: string[]; + stringOperationEnum: typeof StringOperation; + stringOperationTranslations: Map; + private propagateChange; + constructor(fb: FormBuilder); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState?(isDisabled: boolean): void; + writeValue(predicate: StringFilterPredicate): void; + validate(c: any): ValidationErrors; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/filter/user-filter-dialog.component.d.ts b/src/app/modules/home/components/filter/user-filter-dialog.component.d.ts new file mode 100644 index 00000000..295ae3c2 --- /dev/null +++ b/src/app/modules/home/components/filter/user-filter-dialog.component.d.ts @@ -0,0 +1,36 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormArray, FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityKeyValueType, Filter } from '@shared/models/query/query.models'; +import * as i0 from "@angular/core"; +export interface UserFilterDialogData { + filter: Filter; +} +export declare class UserFilterDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: UserFilterDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + translate: TranslateService; + filter: Filter; + userFilterFormGroup: FormGroup; + valueTypeEnum: typeof EntityKeyValueType; + submitted: boolean; + constructor(store: Store, router: Router, data: UserFilterDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, translate: TranslateService); + private createUserInputFormControl; + userInputsFormArray(): FormArray; + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/home-components.module.d.ts b/src/app/modules/home/components/home-components.module.d.ts new file mode 100644 index 00000000..239c82d9 --- /dev/null +++ b/src/app/modules/home/components/home-components.module.d.ts @@ -0,0 +1,130 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@home/components/entity/entities-table.component"; +import * as i2 from "@home/components/entity/add-entity-dialog.component"; +import * as i3 from "@home/components/details-panel.component"; +import * as i4 from "@home/components/entity/entity-details-panel.component"; +import * as i5 from "@home/components/entity/entity-details-page.component"; +import * as i6 from "@home/components/audit-log/audit-log-table.component"; +import * as i7 from "@home/components/audit-log/audit-log-details-dialog.component"; +import * as i8 from "@home/components/event/event-content-dialog.component"; +import * as i9 from "@home/components/event/event-table-header.component"; +import * as i10 from "@home/components/event/event-table.component"; +import * as i11 from "@home/components/event/event-filter-panel.component"; +import * as i12 from "@home/components/edge/edge-downlink-table-header.component"; +import * as i13 from "@home/components/edge/edge-downlink-table.component"; +import * as i14 from "@home/components/relation/relation-table.component"; +import * as i15 from "@home/components/relation/relation-dialog.component"; +import * as i16 from "@home/components/relation/relation-filters.component"; +import * as i17 from "@home/components/alarm/alarm-table-header.component"; +import * as i18 from "@home/components/alarm/alarm-table.component"; +import * as i19 from "@home/components/attribute/attribute-table.component"; +import * as i20 from "@home/components/attribute/add-attribute-dialog.component"; +import * as i21 from "@home/components/attribute/edit-attribute-value-panel.component"; +import * as i22 from "@home/components/alias/aliases-entity-select-panel.component"; +import * as i23 from "@home/components/alias/aliases-entity-select.component"; +import * as i24 from "@home/components/alias/aliases-entity-autocomplete.component"; +import * as i25 from "@home/components/alias/entity-aliases-dialog.component"; +import * as i26 from "@home/components/alias/entity-alias-dialog.component"; +import * as i27 from "@home/components/dashboard/dashboard.component"; +import * as i28 from "@home/components/widget/widget-container.component"; +import * as i29 from "@home/components/widget/widget.component"; +import * as i30 from "@home/components/widget/legend.component"; +import * as i31 from "@home/components/widget/widget-config.component"; +import * as i32 from "@home/components/entity/entity-filter-view.component"; +import * as i33 from "@home/components/entity/entity-filter.component"; +import * as i34 from "@home/components/alias/entity-alias-select.component"; +import * as i35 from "@home/components/widget/data-keys.component"; +import * as i36 from "@home/components/widget/data-key-config.component"; +import * as i37 from "@home/components/widget/data-key-config-dialog.component"; +import * as i38 from "@home/components/widget/legend-config.component"; +import * as i39 from "@home/components/widget/action/manage-widget-actions.component"; +import * as i40 from "@home/components/widget/action/widget-action-dialog.component"; +import * as i41 from "@home/components/widget/action/custom-action-pretty-resources-tabs.component"; +import * as i42 from "@home/components/widget/action/custom-action-pretty-editor.component"; +import * as i43 from "@home/components/widget/action/mobile-action-editor.component"; +import * as i44 from "@home/components/widget/dialog/custom-dialog-container.component"; +import * as i45 from "@home/components/import-export/import-dialog.component"; +import * as i46 from "@home/components/import-export/import-dialog-csv.component"; +import * as i47 from "@home/components/dashboard/select-target-layout-dialog.component"; +import * as i48 from "@home/components/dashboard/select-target-state-dialog.component"; +import * as i49 from "@home/components/attribute/add-widget-to-dashboard-dialog.component"; +import * as i50 from "@home/components/import-export/table-columns-assignment.component"; +import * as i51 from "@home/components/filter/boolean-filter-predicate.component"; +import * as i52 from "@home/components/filter/string-filter-predicate.component"; +import * as i53 from "@home/components/filter/numeric-filter-predicate.component"; +import * as i54 from "@home/components/filter/complex-filter-predicate.component"; +import * as i55 from "@home/components/filter/complex-filter-predicate-dialog.component"; +import * as i56 from "@home/components/filter/filter-predicate.component"; +import * as i57 from "@home/components/filter/filter-predicate-list.component"; +import * as i58 from "@home/components/filter/key-filter-list.component"; +import * as i59 from "@home/components/filter/key-filter-dialog.component"; +import * as i60 from "@home/components/filter/filter-dialog.component"; +import * as i61 from "@home/components/filter/filters-dialog.component"; +import * as i62 from "@home/components/filter/filter-select.component"; +import * as i63 from "@home/components/filter/filter-text.component"; +import * as i64 from "@home/components/filter/filters-edit.component"; +import * as i65 from "@home/components/filter/filters-edit-panel.component"; +import * as i66 from "@home/components/filter/user-filter-dialog.component"; +import * as i67 from "@home/components/filter/filter-user-info.component"; +import * as i68 from "@home/components/filter/filter-user-info-dialog.component"; +import * as i69 from "@home/components/filter/filter-predicate-value.component"; +import * as i70 from "@home/components/profile/tenant-profile-autocomplete.component"; +import * as i71 from "@home/components/profile/tenant/default-tenant-profile-configuration.component"; +import * as i72 from "@home/components/profile/tenant/tenant-profile-configuration.component"; +import * as i73 from "@home/components/profile/tenant-profile-data.component"; +import * as i74 from "@home/components/profile/tenant-profile.component"; +import * as i75 from "@home/components/profile/tenant-profile-dialog.component"; +import * as i76 from "@home/components/profile/device-profile-autocomplete.component"; +import * as i77 from "@home/components/profile/device/default-device-profile-configuration.component"; +import * as i78 from "@home/components/profile/device/device-profile-configuration.component"; +import * as i79 from "@home/components/profile/device/default-device-profile-transport-configuration.component"; +import * as i80 from "@home/components/profile/device/mqtt-device-profile-transport-configuration.component"; +import * as i81 from "@home/components/profile/device/coap-device-profile-transport-configuration.component"; +import * as i82 from "@home/components/profile/device/device-profile-transport-configuration.component"; +import * as i83 from "@home/components/profile/alarm/create-alarm-rules.component"; +import * as i84 from "@home/components/profile/alarm/alarm-rule.component"; +import * as i85 from "@home/components/profile/alarm/alarm-rule-condition-dialog.component"; +import * as i86 from "@home/components/profile/alarm/alarm-rule-condition.component"; +import * as i87 from "@home/components/profile/alarm/device-profile-alarm.component"; +import * as i88 from "@home/components/profile/alarm/device-profile-alarms.component"; +import * as i89 from "@home/components/profile/device-profile.component"; +import * as i90 from "@home/components/profile/device-profile-dialog.component"; +import * as i91 from "@home/components/profile/add-device-profile-dialog.component"; +import * as i92 from "@home/components/rule-chain/rule-chain-autocomplete.component"; +import * as i93 from "@home/components/profile/alarm/alarm-schedule-info.component"; +import * as i94 from "@home/components/profile/device-profile-provision-configuration.component"; +import * as i95 from "@home/components/profile/alarm/alarm-schedule.component"; +import * as i96 from "@home/components/profile/alarm/alarm-duration-predicate-value.component"; +import * as i97 from "@home/components/wizard/device-wizard-dialog.component"; +import * as i98 from "@home/components/profile/alarm/alarm-schedule-dialog.component"; +import * as i99 from "@home/components/profile/alarm/edit-alarm-details-dialog.component"; +import * as i100 from "@home/components/sms/sms-provider-configuration.component"; +import * as i101 from "@home/components/sms/aws-sns-provider-configuration.component"; +import * as i102 from "@home/components/sms/twilio-sms-provider-configuration.component"; +import * as i103 from "@home/components/dashboard-page/dashboard-toolbar.component"; +import * as i104 from "@home/components/dashboard-page/dashboard-page.component"; +import * as i105 from "@home/components/dashboard-page/dashboard-state.component"; +import * as i106 from "@home/components/dashboard-page/layout/dashboard-layout.component"; +import * as i107 from "@home/components/dashboard-page/edit-widget.component"; +import * as i108 from "@home/components/dashboard-page/dashboard-widget-select.component"; +import * as i109 from "@home/components/dashboard-page/add-widget-dialog.component"; +import * as i110 from "@home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component"; +import * as i111 from "@home/components/dashboard-page/dashboard-settings-dialog.component"; +import * as i112 from "@home/components/dashboard-page/states/manage-dashboard-states-dialog.component"; +import * as i113 from "@home/components/dashboard-page/states/dashboard-state-dialog.component"; +import * as i114 from "@home/components/dashboard-page/dashboard-image-dialog.component"; +import * as i115 from "@home/components/widget/dialog/embed-dashboard-dialog.component"; +import * as i116 from "@home/components/dashboard-page/widget-types-panel.component"; +import * as i117 from "@angular/common"; +import * as i118 from "@app/shared/shared.module"; +import * as i119 from "@home/components/shared-home-components.module"; +import * as i120 from "@home/components/profile/device/lwm2m/lwm2m-profile-components.module"; +import * as i121 from "@home/components/profile/device/snpm/snmp-device-profile-transport.module"; +import * as i122 from "@home/components/dashboard-page/states/states-controller.module"; +import * as i123 from "@home/components/device/device-credentials.module"; +import * as i124 from "@home/components/profile/device/common/device-profile-common.module"; +export declare class HomeComponentsModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/components/import-export/import-dialog-csv.component.d.ts b/src/app/modules/home/components/import-export/import-dialog-csv.component.d.ts new file mode 100644 index 00000000..f6ea99d2 --- /dev/null +++ b/src/app/modules/home/components/import-export/import-dialog-csv.component.d.ts @@ -0,0 +1,62 @@ +import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { EntityType } from '@shared/models/entity-type.models'; +import { TranslateService } from '@ngx-translate/core'; +import { MatVerticalStepper } from '@angular/material/stepper'; +import { BulkImportResult, CSVDelimiter } from '@home/components/import-export/import-export.models'; +import { ImportExportService } from '@home/components/import-export/import-export.service'; +import { TableColumnsAssignmentComponent } from '@home/components/import-export/table-columns-assignment.component'; +import * as i0 from "@angular/core"; +export interface ImportDialogCsvData { + entityType: EntityType; + importTitle: string; + importFileLabel: string; +} +export declare class ImportDialogCsvComponent extends DialogComponent implements AfterViewInit { + protected store: Store; + protected router: Router; + data: ImportDialogCsvData; + dialogRef: MatDialogRef; + translate: TranslateService; + private importExport; + private fb; + private renderer; + importStepper: MatVerticalStepper; + columnsAssignmentComponent: TableColumnsAssignmentComponent; + failureDetailsEditorElmRef: ElementRef; + entityType: EntityType; + importTitle: string; + importFileLabel: string; + delimiters: { + key: CSVDelimiter; + value: string; + }[]; + selectedIndex: number; + selectFileFormGroup: FormGroup; + importParametersFormGroup: FormGroup; + columnTypesFormGroup: FormGroup; + isImportData: boolean; + statistical: BulkImportResult; + private allowAssignColumn; + private initEditorComponent; + private parseData; + constructor(store: Store, router: Router, data: ImportDialogCsvData, dialogRef: MatDialogRef, translate: TranslateService, importExport: ImportExportService, fb: FormBuilder, renderer: Renderer2); + ngAfterViewInit(): void; + cancel(): void; + previousStep(): void; + nextStep(step: number): void; + private parseCSV; + private createColumnsData; + private addEntities; + private processingColumnsParams; + initEditor(): void; + private createEditor; + private updateEditorSize; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/import-export/import-dialog.component.d.ts b/src/app/modules/home/components/import-export/import-dialog.component.d.ts new file mode 100644 index 00000000..4100e30f --- /dev/null +++ b/src/app/modules/home/components/import-export/import-dialog.component.d.ts @@ -0,0 +1,33 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import * as i0 from "@angular/core"; +export interface ImportDialogData { + importTitle: string; + importFileLabel: string; +} +export declare class ImportDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: ImportDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + importTitle: string; + importFileLabel: string; + importFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: ImportDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + loadDataFromJsonContent(content: string): any; + cancel(): void; + importFromJson(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/import-export/import-export.models.d.ts b/src/app/modules/home/components/import-export/import-export.models.d.ts new file mode 100644 index 00000000..8b71543b --- /dev/null +++ b/src/app/modules/home/components/import-export/import-export.models.d.ts @@ -0,0 +1,84 @@ +import { Widget, WidgetTypeDetails } from '@app/shared/models/widget.models'; +import { DashboardLayoutId } from '@shared/models/dashboard.models'; +import { WidgetsBundle } from '@shared/models/widgets-bundle.model'; +export interface ImportWidgetResult { + widget: Widget; + layoutId: DashboardLayoutId; +} +export interface WidgetsBundleItem { + widgetsBundle: WidgetsBundle; + widgetTypes: WidgetTypeDetails[]; +} +export interface CsvToJsonConfig { + delim?: string; + header?: boolean; +} +export interface CsvToJsonResult { + headers?: string[]; + rows?: any[][]; +} +export declare type CSVDelimiter = ',' | ';' | '|' | '\t'; +export declare enum ImportEntityColumnType { + name = "NAME", + type = "TYPE", + label = "LABEL", + clientAttribute = "CLIENT_ATTRIBUTE", + sharedAttribute = "SHARED_ATTRIBUTE", + serverAttribute = "SERVER_ATTRIBUTE", + timeseries = "TIMESERIES", + accessToken = "ACCESS_TOKEN", + x509 = "X509", + mqttClientId = "MQTT_CLIENT_ID", + mqttUserName = "MQTT_USER_NAME", + mqttPassword = "MQTT_PASSWORD", + lwm2mClientEndpoint = "LWM2M_CLIENT_ENDPOINT", + lwm2mClientSecurityConfigMode = "LWM2M_CLIENT_SECURITY_CONFIG_MODE", + lwm2mClientIdentity = "LWM2M_CLIENT_IDENTITY", + lwm2mClientKey = "LWM2M_CLIENT_KEY", + lwm2mClientCert = "LWM2M_CLIENT_CERT", + lwm2mBootstrapServerSecurityMode = "LWM2M_BOOTSTRAP_SERVER_SECURITY_MODE", + lwm2mBootstrapServerClientPublicKeyOrId = "LWM2M_BOOTSTRAP_SERVER_PUBLIC_KEY_OR_ID", + lwm2mBootstrapServerClientSecretKey = "LWM2M_BOOTSTRAP_SERVER_SECRET_KEY", + lwm2mServerSecurityMode = "LWM2M_SERVER_SECURITY_MODE", + lwm2mServerClientPublicKeyOrId = "LWM2M_SERVER_CLIENT_PUBLIC_KEY_OR_ID", + lwm2mServerClientSecretKey = "LWM2M_SERVER_CLIENT_SECRET_KEY", + isGateway = "IS_GATEWAY", + description = "DESCRIPTION", + edgeLicenseKey = "EDGE_LICENSE_KEY", + cloudEndpoint = "CLOUD_ENDPOINT", + routingKey = "ROUTING_KEY", + secret = "SECRET" +} +export declare const importEntityObjectColumns: ImportEntityColumnType[]; +export declare const importEntityColumnTypeTranslations: Map; +export interface CsvColumnParam { + type: ImportEntityColumnType; + key: string; + sampleData: any; +} +export interface ColumnMapping { + type: ImportEntityColumnType; + key?: string; +} +export interface BulkImportRequest { + file: string; + mapping: { + columns: Array; + delimiter: CSVDelimiter; + header: boolean; + update: boolean; + }; +} +export interface BulkImportResult { + created: number; + updated: number; + errors: number; + errorsList: Array; +} +export interface FileType { + mimeType: string; + extension: string; +} +export declare const JSON_TYPE: FileType; +export declare const ZIP_TYPE: FileType; +export declare function convertCSVToJson(csvdata: string, config: CsvToJsonConfig, onError: (messageId: string, params?: any) => void): CsvToJsonResult | number; diff --git a/src/app/modules/home/components/import-export/import-export.service.d.ts b/src/app/modules/home/components/import-export/import-export.service.d.ts new file mode 100644 index 00000000..65d31a33 --- /dev/null +++ b/src/app/modules/home/components/import-export/import-export.service.d.ts @@ -0,0 +1,91 @@ +import { DashboardService } from '@core/http/dashboard.service'; +import { TranslateService } from '@ngx-translate/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Dashboard, DashboardLayoutId } from '@shared/models/dashboard.models'; +import { MatDialog } from '@angular/material/dialog'; +import { Observable } from 'rxjs'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import { EntityService } from '@core/http/entity.service'; +import { Widget, WidgetType } from '@shared/models/widget.models'; +import { ItemBufferService } from '@core/services/item-buffer.service'; +import { ImportWidgetResult, BulkImportRequest, BulkImportResult } from './import-export.models'; +import { EntityType } from '@shared/models/entity-type.models'; +import { UtilsService } from '@core/services/utils.service'; +import { WidgetService } from '@core/http/widget.service'; +import { WidgetsBundle } from '@shared/models/widgets-bundle.model'; +import { ImportEntitiesResultInfo, ImportEntityData } from '@shared/models/entity.models'; +import { RequestConfig } from '@core/http/http-utils'; +import { RuleChainImport, RuleChainType } from '@shared/models/rule-chain.models'; +import { RuleChainService } from '@core/http/rule-chain.service'; +import { DeviceProfileService } from '@core/http/device-profile.service'; +import { DeviceProfile } from '@shared/models/device.models'; +import { TenantProfile } from '@shared/models/tenant.model'; +import { TenantProfileService } from '@core/http/tenant-profile.service'; +import { DeviceService } from '@core/http/device.service'; +import { AssetService } from '@core/http/asset.service'; +import { EdgeService } from '@core/http/edge.service'; +import * as i0 from "@angular/core"; +export declare class ImportExportService { + private window; + private document; + private store; + private translate; + private dashboardService; + private dashboardUtils; + private widgetService; + private deviceProfileService; + private tenantProfileService; + private entityService; + private ruleChainService; + private deviceService; + private assetService; + private edgeService; + private utils; + private itembuffer; + private dialog; + constructor(window: Window, document: Document, store: Store, translate: TranslateService, dashboardService: DashboardService, dashboardUtils: DashboardUtilsService, widgetService: WidgetService, deviceProfileService: DeviceProfileService, tenantProfileService: TenantProfileService, entityService: EntityService, ruleChainService: RuleChainService, deviceService: DeviceService, assetService: AssetService, edgeService: EdgeService, utils: UtilsService, itembuffer: ItemBufferService, dialog: MatDialog); + exportDashboard(dashboardId: string): void; + importDashboard(): Observable; + exportWidget(dashboard: Dashboard, sourceState: string, sourceLayout: DashboardLayoutId, widget: Widget): void; + importWidget(dashboard: Dashboard, targetState: string, targetLayoutFunction: () => Observable, onAliasesUpdateFunction: () => void, onFiltersUpdateFunction: () => void): Observable; + exportWidgetType(widgetTypeId: string): void; + importWidgetType(bundleAlias: string): Observable; + exportWidgetsBundle(widgetsBundleId: string): void; + importWidgetsBundle(): Observable; + bulkImportEntities(entitiesData: BulkImportRequest, entityType: EntityType, config?: RequestConfig): Observable; + importEntities(entitiesData: ImportEntityData[], entityType: EntityType, updateData: boolean, importEntityCompleted?: () => void, config?: RequestConfig): Observable; + exportRuleChain(ruleChainId: string): void; + importRuleChain(expectedRuleChainType: RuleChainType): Observable; + exportDeviceProfile(deviceProfileId: string): void; + importDeviceProfile(): Observable; + exportTenantProfile(tenantProfileId: string): void; + importTenantProfile(): Observable; + exportJSZip(data: object, filename: string): void; + private prepareRuleChain; + private prepareRuleChainMetaData; + private validateImportedRuleChain; + private validateImportedDeviceProfile; + private validateImportedTenantProfile; + private sumObject; + private handleExportError; + private validateImportedDashboard; + private validateImportedWidget; + private validateImportedWidgetTypeDetails; + private validateImportedWidgetsBundle; + private saveImportedDashboard; + private addImportedWidget; + private processEntityAliases; + private editMissingAliases; + private prepareAliasesInfo; + private prepareEntityAlias; + private openImportDialog; + private exportToPc; + private exportJson; + private downloadFile; + private prepareDashboardExport; + private prepareProfileExport; + private prepareExport; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/components/import-export/table-columns-assignment.component.d.ts b/src/app/modules/home/components/import-export/table-columns-assignment.component.d.ts new file mode 100644 index 00000000..92c87bb6 --- /dev/null +++ b/src/app/modules/home/components/import-export/table-columns-assignment.component.d.ts @@ -0,0 +1,51 @@ +import { ElementRef, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormControl, Validator } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityType } from '@shared/models/entity-type.models'; +import { CsvColumnParam, ImportEntityColumnType } from '@home/components/import-export/import-export.models'; +import { Observable } from 'rxjs'; +import { CollectionViewer, DataSource } from '@angular/cdk/collections'; +import * as i0 from "@angular/core"; +export declare class TableColumnsAssignmentComponent implements OnInit, ControlValueAccessor, Validator { + elementRef: ElementRef; + protected store: Store; + entityType: EntityType; + disabled: boolean; + dataSource: CsvColumnsDatasource; + displayedColumns: string[]; + columnTypes: AssignmentColumnType[]; + columnDeviceCredentials: AssignmentColumnType[]; + columnTypesTranslations: Map; + readonly entityTypeDevice = EntityType.DEVICE; + private columns; + private valid; + private propagateChangePending; + private propagateChange; + constructor(elementRef: ElementRef, store: Store); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + columnsUpdated(): void; + isColumnTypeDiffers(columnType: ImportEntityColumnType): boolean; + private columnValid; + validate(c: FormControl): { + columnsInvalid: boolean; + }; + writeValue(value: CsvColumnParam[]): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +interface AssignmentColumnType { + value: ImportEntityColumnType; + disabled?: boolean; +} +declare class CsvColumnsDatasource implements DataSource { + private columnsSubject; + constructor(); + connect(collectionViewer: CollectionViewer): Observable>; + disconnect(collectionViewer: CollectionViewer): void; + setColumns(columns: CsvColumnParam[]): void; +} +export {}; diff --git a/src/app/modules/home/components/profile/add-device-profile-dialog.component.d.ts b/src/app/modules/home/components/profile/add-device-profile-dialog.component.d.ts new file mode 100644 index 00000000..1bf124ff --- /dev/null +++ b/src/app/modules/home/components/profile/add-device-profile-dialog.component.d.ts @@ -0,0 +1,58 @@ +import { AfterViewInit, ComponentFactoryResolver, Injector } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import { DeviceProfile, DeviceProfileType, DeviceTransportType } from '@shared/models/device.models'; +import { DeviceProfileService } from '@core/http/device-profile.service'; +import { EntityType } from '@shared/models/entity-type.models'; +import { MatHorizontalStepper } from '@angular/material/stepper'; +import { StepperSelectionEvent } from '@angular/cdk/stepper'; +import { ServiceType } from '@shared/models/queue.models'; +import * as i0 from "@angular/core"; +export interface AddDeviceProfileDialogData { + deviceProfileName: string; + transportType: DeviceTransportType; +} +export declare class AddDeviceProfileDialogComponent extends DialogComponent implements AfterViewInit { + protected store: Store; + protected router: Router; + data: AddDeviceProfileDialogData; + dialogRef: MatDialogRef; + private componentFactoryResolver; + private injector; + private errorStateMatcher; + private deviceProfileService; + private fb; + addDeviceProfileStepper: MatHorizontalStepper; + selectedIndex: number; + showNext: boolean; + entityType: typeof EntityType; + deviceProfileTypes: DeviceProfileType[]; + deviceProfileTypeTranslations: Map; + deviceTransportTypeHints: Map; + deviceTransportTypes: DeviceTransportType[]; + deviceTransportTypeTranslations: Map; + deviceProfileDetailsFormGroup: FormGroup; + transportConfigFormGroup: FormGroup; + alarmRulesFormGroup: FormGroup; + provisionConfigFormGroup: FormGroup; + serviceType: ServiceType; + constructor(store: Store, router: Router, data: AddDeviceProfileDialogData, dialogRef: MatDialogRef, componentFactoryResolver: ComponentFactoryResolver, injector: Injector, errorStateMatcher: ErrorStateMatcher, deviceProfileService: DeviceProfileService, fb: FormBuilder); + private deviceProfileTransportTypeChanged; + ngAfterViewInit(): void; + cancel(): void; + previousStep(): void; + nextStep(): void; + selectedForm(): FormGroup; + add(): void; + getFormLabel(index: number): string; + changeStep($event: StepperSelectionEvent): void; + private get maxStepperIndex(); + allValid(): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/alarm/alarm-duration-predicate-value.component.d.ts b/src/app/modules/home/components/profile/alarm/alarm-duration-predicate-value.component.d.ts new file mode 100644 index 00000000..15e7eb46 --- /dev/null +++ b/src/app/modules/home/components/profile/alarm/alarm-duration-predicate-value.component.d.ts @@ -0,0 +1,30 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { DynamicValueSourceType, FilterPredicateValue } from '@shared/models/query/query.models'; +import { AlarmConditionType } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class AlarmDurationPredicateValueComponent implements ControlValueAccessor, OnInit { + private fb; + private readonly inheritModeForSources; + set alarmConditionType(alarmConditionType: AlarmConditionType); + defaultValuePlaceholder: string; + defaultValueRequiredError: string; + defaultValueRangeError: string; + defaultValuePatternError: string; + dynamicValueSourceTypes: DynamicValueSourceType[]; + dynamicValueSourceTypeTranslations: Map; + alarmDurationPredicateValueFormGroup: FormGroup; + dynamicMode: boolean; + inheritMode: boolean; + private propagateChange; + constructor(fb: FormBuilder); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(predicateValue: FilterPredicateValue): void; + private updateModel; + private updateShowInheritMode; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/alarm/alarm-rule-condition-dialog.component.d.ts b/src/app/modules/home/components/profile/alarm/alarm-rule-condition-dialog.component.d.ts new file mode 100644 index 00000000..61f8ed2b --- /dev/null +++ b/src/app/modules/home/components/profile/alarm/alarm-rule-condition-dialog.component.d.ts @@ -0,0 +1,45 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { TranslateService } from '@ngx-translate/core'; +import { AlarmCondition, AlarmConditionType } from '@shared/models/device.models'; +import { TimeUnit } from '@shared/models/time/time.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import * as i0 from "@angular/core"; +export interface AlarmRuleConditionDialogData { + readonly: boolean; + condition: AlarmCondition; + entityId?: EntityId; +} +export declare class AlarmRuleConditionDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: AlarmRuleConditionDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + translate: TranslateService; + timeUnits: TimeUnit[]; + timeUnitTranslations: Map; + alarmConditionTypes: AlarmConditionType[]; + AlarmConditionType: typeof AlarmConditionType; + alarmConditionTypeTranslation: Map; + readonly: boolean; + condition: AlarmCondition; + entityId: EntityId; + conditionFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: AlarmRuleConditionDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, translate: TranslateService); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + private updateValidators; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/alarm/alarm-rule-condition.component.d.ts b/src/app/modules/home/components/profile/alarm/alarm-rule-condition.component.d.ts new file mode 100644 index 00000000..938efb6e --- /dev/null +++ b/src/app/modules/home/components/profile/alarm/alarm-rule-condition.component.d.ts @@ -0,0 +1,36 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormControl, FormGroup, Validator } from '@angular/forms'; +import { MatDialog } from '@angular/material/dialog'; +import { TranslateService } from '@ngx-translate/core'; +import { AlarmCondition } from '@shared/models/device.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import * as i0 from "@angular/core"; +export declare class AlarmRuleConditionComponent implements ControlValueAccessor, OnInit, Validator { + private dialog; + private fb; + private translate; + disabled: boolean; + deviceProfileId: EntityId; + alarmRuleConditionFormGroup: FormGroup; + specText: string; + private modelValue; + private propagateChange; + constructor(dialog: MatDialog, fb: FormBuilder, translate: TranslateService); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: AlarmCondition): void; + conditionSet(): number; + validate(c: FormControl): { + alarmRuleCondition: { + valid: boolean; + }; + }; + openFilterDialog($event: Event): void; + private updateConditionInfo; + private updateSpecText; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/alarm/alarm-rule.component.d.ts b/src/app/modules/home/components/profile/alarm/alarm-rule.component.d.ts new file mode 100644 index 00000000..e696a46f --- /dev/null +++ b/src/app/modules/home/components/profile/alarm/alarm-rule.component.d.ts @@ -0,0 +1,37 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormControl, FormGroup, Validator } from '@angular/forms'; +import { AlarmRule } from '@shared/models/device.models'; +import { MatDialog } from '@angular/material/dialog'; +import { EntityId } from '@shared/models/id/entity-id'; +import { UtilsService } from '@core/services/utils.service'; +import * as i0 from "@angular/core"; +export declare class AlarmRuleComponent implements ControlValueAccessor, OnInit, Validator { + private dialog; + private utils; + private fb; + disabled: boolean; + private requiredValue; + get required(): boolean; + set required(value: boolean); + deviceProfileId: EntityId; + private modelValue; + alarmRuleFormGroup: FormGroup; + expandAlarmDetails: boolean; + private propagateChange; + constructor(dialog: MatDialog, utils: UtilsService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: AlarmRule): void; + openEditDetailsDialog($event: Event): void; + validate(c: FormControl): { + alarmRule: { + valid: boolean; + }; + }; + get alarmDetailsText(): string; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/alarm/alarm-schedule-dialog.component.d.ts b/src/app/modules/home/components/profile/alarm/alarm-schedule-dialog.component.d.ts new file mode 100644 index 00000000..b2440f88 --- /dev/null +++ b/src/app/modules/home/components/profile/alarm/alarm-schedule-dialog.component.d.ts @@ -0,0 +1,37 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { AlarmSchedule } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export interface AlarmScheduleDialogData { + readonly: boolean; + alarmSchedule: AlarmSchedule; +} +export declare class AlarmScheduleDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: AlarmScheduleDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + private utils; + translate: TranslateService; + readonly: boolean; + alarmSchedule: AlarmSchedule; + alarmScheduleFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: AlarmScheduleDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, utils: UtilsService, translate: TranslateService); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/alarm/alarm-schedule-info.component.d.ts b/src/app/modules/home/components/profile/alarm/alarm-schedule-info.component.d.ts new file mode 100644 index 00000000..b050c7c9 --- /dev/null +++ b/src/app/modules/home/components/profile/alarm/alarm-schedule-info.component.d.ts @@ -0,0 +1,25 @@ +import { ChangeDetectorRef, OnInit } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import { AlarmSchedule } from '@shared/models/device.models'; +import { MatDialog } from '@angular/material/dialog'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class AlarmScheduleInfoComponent implements ControlValueAccessor, OnInit { + private dialog; + private translate; + private cd; + disabled: boolean; + private modelValue; + scheduleText: string; + private propagateChange; + constructor(dialog: MatDialog, translate: TranslateService, cd: ChangeDetectorRef); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: AlarmSchedule): void; + private updateScheduleText; + openScheduleDialog($event: Event): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/alarm/alarm-schedule.component.d.ts b/src/app/modules/home/components/profile/alarm/alarm-schedule.component.d.ts new file mode 100644 index 00000000..b65d6dd5 --- /dev/null +++ b/src/app/modules/home/components/profile/alarm/alarm-schedule.component.d.ts @@ -0,0 +1,39 @@ +import { OnInit } from '@angular/core'; +import { AbstractControl, ControlValueAccessor, FormArray, FormBuilder, FormControl, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { AlarmSchedule, AlarmScheduleType } from '@shared/models/device.models'; +import { MatCheckboxChange } from '@angular/material/checkbox'; +import * as i0 from "@angular/core"; +export declare class AlarmScheduleComponent implements ControlValueAccessor, Validator, OnInit { + private fb; + disabled: boolean; + alarmScheduleForm: FormGroup; + alarmScheduleTypes: string[]; + alarmScheduleType: typeof AlarmScheduleType; + alarmScheduleTypeTranslate: Map; + dayOfWeekTranslationsArray: string[]; + allDays: number[]; + firstRowDays: number[]; + secondRowDays: number[]; + private modelValue; + private defaultItems; + private propagateChange; + constructor(fb: FormBuilder); + ngOnInit(): void; + validateDayOfWeeks(control: AbstractControl): ValidationErrors | null; + validateItems(control: AbstractControl): ValidationErrors | null; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: AlarmSchedule): void; + validate(control: FormGroup): ValidationErrors | null; + weeklyRepeatControl(index: number): FormControl; + private updateValidators; + private updateModel; + private defaultItemsScheduler; + changeCustomScheduler($event: MatCheckboxChange, index: number): void; + private disabledSelectedTime; + getSchedulerRangeText(control: FormGroup | AbstractControl): string; + get itemsSchedulerForm(): FormArray; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/alarm/create-alarm-rules.component.d.ts b/src/app/modules/home/components/profile/alarm/create-alarm-rules.component.d.ts new file mode 100644 index 00000000..916a46d0 --- /dev/null +++ b/src/app/modules/home/components/profile/alarm/create-alarm-rules.component.d.ts @@ -0,0 +1,42 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormArray, FormBuilder, FormControl, FormGroup, Validator } from '@angular/forms'; +import { AlarmRule } from '@shared/models/device.models'; +import { MatDialog } from '@angular/material/dialog'; +import { AlarmSeverity } from '@shared/models/alarm.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import * as i0 from "@angular/core"; +export declare class CreateAlarmRulesComponent implements ControlValueAccessor, OnInit, Validator { + private dialog; + private fb; + alarmSeverities: string[]; + alarmSeverityEnum: typeof AlarmSeverity; + alarmSeverityTranslationMap: Map; + disabled: boolean; + deviceProfileId: EntityId; + createAlarmRulesFormGroup: FormGroup; + private usedSeverities; + private valueChangeSubscription; + private propagateChange; + constructor(dialog: MatDialog, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + createAlarmRulesFormArray(): FormArray; + setDisabledState(isDisabled: boolean): void; + writeValue(createAlarmRules: { + [severity: string]: AlarmRule; + }): void; + removeCreateAlarmRule(index: number): void; + addCreateAlarmRule(): void; + private getFirstUnusedSeverity; + validate(c: FormControl): { + createAlarmRules: { + valid: boolean; + }; + }; + isDisabledSeverity(severity: AlarmSeverity, index: number): boolean; + private updateUsedSeverities; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/alarm/device-profile-alarm.component.d.ts b/src/app/modules/home/components/profile/alarm/device-profile-alarm.component.d.ts new file mode 100644 index 00000000..04238006 --- /dev/null +++ b/src/app/modules/home/components/profile/alarm/device-profile-alarm.component.d.ts @@ -0,0 +1,41 @@ +import { EventEmitter, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormControl, FormGroup, Validator } from '@angular/forms'; +import { DeviceProfileAlarm } from '@shared/models/device.models'; +import { MatDialog } from '@angular/material/dialog'; +import { MatChipInputEvent } from '@angular/material/chips'; +import { EntityId } from '@shared/models/id/entity-id'; +import { UtilsService } from '@core/services/utils.service'; +import * as i0 from "@angular/core"; +export declare class DeviceProfileAlarmComponent implements ControlValueAccessor, OnInit, Validator { + private dialog; + private utils; + private fb; + disabled: boolean; + removeAlarm: EventEmitter; + separatorKeysCodes: number[]; + expanded: boolean; + deviceProfileId: EntityId; + private modelValue; + alarmFormGroup: FormGroup; + private propagateChange; + private propagateChangePending; + constructor(dialog: MatDialog, utils: UtilsService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DeviceProfileAlarm): void; + addClearAlarmRule(): void; + removeClearAlarmRule(): void; + validate(c: FormControl): { + alarm: { + valid: boolean; + }; + }; + removeRelationType(key: string): void; + addRelationType(event: MatChipInputEvent): void; + get alarmTypeTitle(): string; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/alarm/device-profile-alarms.component.d.ts b/src/app/modules/home/components/profile/alarm/device-profile-alarms.component.d.ts new file mode 100644 index 00000000..84f464b4 --- /dev/null +++ b/src/app/modules/home/components/profile/alarm/device-profile-alarms.component.d.ts @@ -0,0 +1,39 @@ +import { OnInit } from '@angular/core'; +import { AbstractControl, ControlValueAccessor, FormArray, FormBuilder, FormControl, FormGroup, Validator } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { DeviceProfileAlarm } from '@shared/models/device.models'; +import { MatDialog } from '@angular/material/dialog'; +import { EntityId } from '@shared/models/id/entity-id'; +import * as i0 from "@angular/core"; +export declare class DeviceProfileAlarmsComponent implements ControlValueAccessor, OnInit, Validator { + private store; + private fb; + private dialog; + deviceProfileAlarmsFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + deviceProfileId: EntityId; + private valueChangeSubscription; + private propagateChange; + constructor(store: Store, fb: FormBuilder, dialog: MatDialog); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + alarmsFormArray(): FormArray; + setDisabledState(isDisabled: boolean): void; + writeValue(alarms: Array | null): void; + trackByAlarm(index: number, alarmControl: AbstractControl): string; + removeAlarm(index: number): void; + addAlarm(): void; + validate(c: FormControl): { + alarms: { + valid: boolean; + }; + }; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/alarm/edit-alarm-details-dialog.component.d.ts b/src/app/modules/home/components/profile/alarm/edit-alarm-details-dialog.component.d.ts new file mode 100644 index 00000000..85f333c7 --- /dev/null +++ b/src/app/modules/home/components/profile/alarm/edit-alarm-details-dialog.component.d.ts @@ -0,0 +1,35 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export interface EditAlarmDetailsDialogData { + alarmDetails: string; + readonly: boolean; +} +export declare class EditAlarmDetailsDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: EditAlarmDetailsDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + private utils; + translate: TranslateService; + alarmDetails: string; + editDetailsFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: EditAlarmDetailsDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, utils: UtilsService, translate: TranslateService); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device-profile-autocomplete.component.d.ts b/src/app/modules/home/components/profile/device-profile-autocomplete.component.d.ts new file mode 100644 index 00000000..494a6d24 --- /dev/null +++ b/src/app/modules/home/components/profile/device-profile-autocomplete.component.d.ts @@ -0,0 +1,69 @@ +import { ElementRef, EventEmitter, NgZone, OnChanges, OnInit, SimpleChanges } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { TruncatePipe } from '@shared//pipe/truncate.pipe'; +import { MatDialog } from '@angular/material/dialog'; +import { DeviceProfileId } from '@shared/models/id/device-profile-id'; +import { DeviceProfile, DeviceProfileInfo, DeviceTransportType } from '@shared/models/device.models'; +import { DeviceProfileService } from '@core/http/device-profile.service'; +import { MatAutocomplete } from '@angular/material/autocomplete'; +import * as i0 from "@angular/core"; +export declare class DeviceProfileAutocompleteComponent implements ControlValueAccessor, OnInit, OnChanges { + private store; + translate: TranslateService; + truncate: TruncatePipe; + private deviceProfileService; + private fb; + private zone; + private dialog; + selectDeviceProfileFormGroup: FormGroup; + modelValue: DeviceProfileId | null; + selectDefaultProfile: boolean; + selectFirstProfile: boolean; + displayAllOnEmpty: boolean; + editProfileEnabled: boolean; + addNewProfile: boolean; + showDetailsPageLink: boolean; + transportType: DeviceTransportType; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + hint: string; + deviceProfileUpdated: EventEmitter; + deviceProfileChanged: EventEmitter; + deviceProfileInput: ElementRef; + deviceProfileAutocomplete: MatAutocomplete; + filteredDeviceProfiles: Observable>; + searchText: string; + deviceProfileURL: string; + private dirty; + private ignoreClosedPanel; + private allDeviceProfile; + private propagateChange; + constructor(store: Store, translate: TranslateService, truncate: TruncatePipe, deviceProfileService: DeviceProfileService, fb: FormBuilder, zone: NgZone, dialog: MatDialog); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngOnChanges(changes: SimpleChanges): void; + selectDefaultDeviceProfileIfNeeded(): void; + selectFirstDeviceProfileIfNeeded(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DeviceProfileId | null): void; + onFocus(): void; + onPanelClosed(): void; + updateView(deviceProfile: DeviceProfileInfo | null): void; + displayDeviceProfileFn(profile?: DeviceProfileInfo): string | undefined; + fetchDeviceProfiles(searchText?: string): Observable>; + clear(): void; + textIsNotEmpty(text: string): boolean; + deviceProfileEnter($event: KeyboardEvent): void; + createDeviceProfile($event: Event, profileName: string): void; + editDeviceProfile($event: Event): void; + openDeviceProfileDialog(deviceProfile: DeviceProfile, isAdd: boolean): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device-profile-dialog.component.d.ts b/src/app/modules/home/components/profile/device-profile-dialog.component.d.ts new file mode 100644 index 00000000..51926350 --- /dev/null +++ b/src/app/modules/home/components/profile/device-profile-dialog.component.d.ts @@ -0,0 +1,37 @@ +import { AfterViewInit, ComponentFactoryResolver, Injector } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormControl, FormGroupDirective, NgForm } from '@angular/forms'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import { DeviceProfile } from '@shared/models/device.models'; +import { DeviceProfileComponent } from './device-profile.component'; +import { DeviceProfileService } from '@core/http/device-profile.service'; +import * as i0 from "@angular/core"; +export interface DeviceProfileDialogData { + deviceProfile: DeviceProfile; + isAdd: boolean; +} +export declare class DeviceProfileDialogComponent extends DialogComponent implements ErrorStateMatcher, AfterViewInit { + protected store: Store; + protected router: Router; + data: DeviceProfileDialogData; + dialogRef: MatDialogRef; + private componentFactoryResolver; + private injector; + private errorStateMatcher; + private deviceProfileService; + isAdd: boolean; + deviceProfile: DeviceProfile; + submitted: boolean; + deviceProfileComponent: DeviceProfileComponent; + constructor(store: Store, router: Router, data: DeviceProfileDialogData, dialogRef: MatDialogRef, componentFactoryResolver: ComponentFactoryResolver, injector: Injector, errorStateMatcher: ErrorStateMatcher, deviceProfileService: DeviceProfileService); + ngAfterViewInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device-profile-provision-configuration.component.d.ts b/src/app/modules/home/components/profile/device-profile-provision-configuration.component.d.ts new file mode 100644 index 00000000..69fa3a27 --- /dev/null +++ b/src/app/modules/home/components/profile/device-profile-provision-configuration.component.d.ts @@ -0,0 +1,32 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormControl, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { DeviceProvisionConfiguration, DeviceProvisionType } from '@shared/models/device.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class DeviceProfileProvisionConfigurationComponent implements ControlValueAccessor, OnInit, Validator { + protected store: Store; + private fb; + private translate; + provisionConfigurationFormGroup: FormGroup; + deviceProvisionType: typeof DeviceProvisionType; + deviceProvisionTypes: string[]; + deviceProvisionTypeTranslateMap: Map; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder, translate: TranslateService); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + writeValue(value: DeviceProvisionConfiguration | null): void; + setDisabledState(isDisabled: boolean): void; + validate(c: FormControl): ValidationErrors | null; + private updateModel; + onProvisionCopied(isKey: boolean): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device-profile.component.d.ts b/src/app/modules/home/components/profile/device-profile.component.d.ts new file mode 100644 index 00000000..ce3e78f8 --- /dev/null +++ b/src/app/modules/home/components/profile/device-profile.component.d.ts @@ -0,0 +1,44 @@ +import { ChangeDetectorRef } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { EntityComponent } from '../entity/entity.component'; +import { DeviceProfile, DeviceProfileType, DeviceTransportType } from '@shared/models/device.models'; +import { EntityType } from '@shared/models/entity-type.models'; +import { ServiceType } from '@shared/models/queue.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import { OtaUpdateType } from '@shared/models/ota-package.models'; +import * as i0 from "@angular/core"; +export declare class DeviceProfileComponent extends EntityComponent { + protected store: Store; + protected translate: TranslateService; + protected entityValue: DeviceProfile; + protected entitiesTableConfigValue: EntityTableConfig; + protected fb: FormBuilder; + protected cd: ChangeDetectorRef; + standalone: boolean; + entityType: typeof EntityType; + deviceProfileTypes: DeviceProfileType[]; + deviceProfileTypeTranslations: Map; + deviceTransportTypes: DeviceTransportType[]; + deviceTransportTypeTranslations: Map; + displayProfileConfiguration: boolean; + displayTransportConfiguration: boolean; + isTransportTypeChanged: boolean; + serviceType: ServiceType; + deviceProfileId: EntityId; + otaUpdateType: typeof OtaUpdateType; + constructor(store: Store, translate: TranslateService, entityValue: DeviceProfile, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef); + hideDelete(): boolean; + buildForm(entity: DeviceProfile): FormGroup; + private checkIsNewDeviceProfile; + private deviceProfileTypeChanged; + private deviceProfileTransportTypeChanged; + updateForm(entity: DeviceProfile): void; + prepareFormValue(formValue: any): any; + onDeviceProfileIdCopied(event: any): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/coap-device-profile-transport-configuration.component.d.ts b/src/app/modules/home/components/profile/device/coap-device-profile-transport-configuration.component.d.ts new file mode 100644 index 00000000..f4ec1f6e --- /dev/null +++ b/src/app/modules/home/components/profile/device/coap-device-profile-transport-configuration.component.d.ts @@ -0,0 +1,36 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { CoapDeviceProfileTransportConfiguration, CoapTransportDeviceType, TransportPayloadType } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class CoapDeviceProfileTransportConfigurationComponent implements ControlValueAccessor, OnInit, OnDestroy { + private store; + private fb; + coapTransportDeviceTypes: CoapTransportDeviceType[]; + coapTransportDeviceTypeTranslations: Map; + transportPayloadTypes: TransportPayloadType[]; + transportPayloadTypeTranslations: Map; + coapTransportConfigurationFormGroup: FormGroup; + private destroy$; + private requiredValue; + private transportPayloadTypeConfiguration; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngOnDestroy(): void; + get coapDeviceTypeDefault(): boolean; + get protoPayloadType(): boolean; + get clientSettingsFormGroup(): FormGroup; + private updateCoapDeviceTypeBasedControls; + setDisabledState(isDisabled: boolean): void; + writeValue(value: CoapDeviceProfileTransportConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/common/device-profile-common.module.d.ts b/src/app/modules/home/components/profile/device/common/device-profile-common.module.d.ts new file mode 100644 index 00000000..74330177 --- /dev/null +++ b/src/app/modules/home/components/profile/device/common/device-profile-common.module.d.ts @@ -0,0 +1,10 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@home/components/profile/device/common/power-mode-setting.component"; +import * as i2 from "@home/components/profile/device/common/time-unit-select.component"; +import * as i3 from "@angular/common"; +import * as i4 from "@shared/shared.module"; +export declare class DeviceProfileCommonModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/common/power-mode-setting.component.d.ts b/src/app/modules/home/components/profile/device/common/power-mode-setting.component.d.ts new file mode 100644 index 00000000..9836c909 --- /dev/null +++ b/src/app/modules/home/components/profile/device/common/power-mode-setting.component.d.ts @@ -0,0 +1,17 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { FormGroup } from '@angular/forms'; +import { PowerMode } from '@home/components/profile/device/lwm2m/lwm2m-profile-config.models'; +import * as i0 from "@angular/core"; +export declare class PowerModeSettingComponent implements OnInit, OnDestroy { + powerMods: PowerMode[]; + powerModeTranslationMap: Map; + private destroy$; + parentForm: FormGroup; + isDeviceSetting: boolean; + ngOnInit(): void; + ngOnDestroy(): void; + private disablePSKMode; + private disableEdrxMode; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/common/time-unit-select.component.d.ts b/src/app/modules/home/components/profile/device/common/time-unit-select.component.d.ts new file mode 100644 index 00000000..0ec5d93b --- /dev/null +++ b/src/app/modules/home/components/profile/device/common/time-unit-select.component.d.ts @@ -0,0 +1,32 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { FullTimeUnit, TimeUnit, TimeUnitMilli } from '@shared/models/time/time.models'; +import * as i0 from "@angular/core"; +export declare class TimeUnitSelectComponent implements OnInit, OnDestroy, ControlValueAccessor, Validator { + private fb; + timeUnitSelectFormGroup: FormGroup; + timeUnits: (TimeUnit | TimeUnitMilli.MILLISECONDS)[]; + timeUnitTranslations: Map; + private destroy$; + private timeUnitToTimeMap; + private timeToTimeUnitMap; + disabled: boolean; + labelText: string; + requiredText: string; + patternText: string; + minTime: number; + minText: string; + private propagateChange; + constructor(fb: FormBuilder); + ngOnInit(): void; + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: number): void; + validate(): ValidationErrors | null; + private updateModel; + private calculateTimeUnit; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/default-device-profile-configuration.component.d.ts b/src/app/modules/home/components/profile/device/default-device-profile-configuration.component.d.ts new file mode 100644 index 00000000..d07682de --- /dev/null +++ b/src/app/modules/home/components/profile/device/default-device-profile-configuration.component.d.ts @@ -0,0 +1,25 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { DefaultDeviceProfileConfiguration } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class DefaultDeviceProfileConfigurationComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + defaultDeviceProfileConfigurationFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DefaultDeviceProfileConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/default-device-profile-transport-configuration.component.d.ts b/src/app/modules/home/components/profile/device/default-device-profile-transport-configuration.component.d.ts new file mode 100644 index 00000000..939c406c --- /dev/null +++ b/src/app/modules/home/components/profile/device/default-device-profile-transport-configuration.component.d.ts @@ -0,0 +1,25 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { DefaultDeviceProfileTransportConfiguration } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class DefaultDeviceProfileTransportConfigurationComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + defaultDeviceProfileTransportConfigurationFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DefaultDeviceProfileTransportConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/device-profile-configuration.component.d.ts b/src/app/modules/home/components/profile/device/device-profile-configuration.component.d.ts new file mode 100644 index 00000000..16f1a344 --- /dev/null +++ b/src/app/modules/home/components/profile/device/device-profile-configuration.component.d.ts @@ -0,0 +1,29 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { DeviceProfileConfiguration, DeviceProfileType } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class DeviceProfileConfigurationComponent implements ControlValueAccessor, OnInit, OnDestroy { + private store; + private fb; + deviceProfileType: typeof DeviceProfileType; + deviceProfileConfigurationFormGroup: FormGroup; + private destroy$; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + type: DeviceProfileType; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngOnDestroy(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DeviceProfileConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/device-profile-transport-configuration.component.d.ts b/src/app/modules/home/components/profile/device/device-profile-transport-configuration.component.d.ts new file mode 100644 index 00000000..7a85190a --- /dev/null +++ b/src/app/modules/home/components/profile/device/device-profile-transport-configuration.component.d.ts @@ -0,0 +1,28 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { DeviceProfileTransportConfiguration, DeviceTransportType } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class DeviceProfileTransportConfigurationComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + deviceTransportType: typeof DeviceTransportType; + deviceProfileTransportConfigurationFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + isAdd: boolean; + transportType: DeviceTransportType; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DeviceProfileTransportConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes-dialog.component.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes-dialog.component.d.ts new file mode 100644 index 00000000..c5f377ad --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes-dialog.component.d.ts @@ -0,0 +1,34 @@ +import { ErrorStateMatcher } from '@angular/material/core'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Router } from '@angular/router'; +import { MatDialogRef } from '@angular/material/dialog'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { AttributesNameValueMap } from '@home/components/profile/device/lwm2m/lwm2m-profile-config.models'; +import * as i0 from "@angular/core"; +export interface Lwm2mAttributesDialogData { + readonly: boolean; + attributes: AttributesNameValueMap; + modelName: string; + isResource: boolean; +} +export declare class Lwm2mAttributesDialogComponent extends DialogComponent implements ErrorStateMatcher { + protected store: Store; + protected router: Router; + private data; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + readonly: boolean; + name: string; + isResource: boolean; + private submitted; + attributeFormGroup: FormGroup; + constructor(store: Store, router: Router, data: Lwm2mAttributesDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + save(): void; + cancel(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes-key-list.component.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes-key-list.component.d.ts new file mode 100644 index 00000000..d6aef715 --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes-key-list.component.d.ts @@ -0,0 +1,43 @@ +import { OnDestroy } from '@angular/core'; +import { ControlValueAccessor, FormArray, FormBuilder, FormGroup, Validator } from '@angular/forms'; +import { AttributeName, AttributesNameValueMap } from './lwm2m-profile-config.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import * as i0 from "@angular/core"; +export declare class Lwm2mAttributesKeyListComponent extends PageComponent implements ControlValueAccessor, OnDestroy, OnDestroy, Validator { + protected store: Store; + private fb; + attributeNames: any; + attributeNameTranslationMap: Map; + disabled: boolean; + isResource: boolean; + attributesValueFormGroup: FormGroup; + private propagateChange; + private valueChange$; + private destroy$; + private usedAttributesName; + constructor(store: Store, fb: FormBuilder); + ngOnInit(): void; + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(keyValMap: AttributesNameValueMap): void; + attributesValueFormArray(): FormArray; + removeKeyVal(index: number): void; + addKeyVal(): void; + private createdFormGroup; + validate(): { + attributesValue: { + valid: boolean; + }; + }; + private updateModel; + isDisabledAttributeName(type: AttributeName, index: number): boolean; + private getFirstUnusedAttributesName; + private updateUsedAttributesName; + get isAddEnabled(): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes.component.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes.component.d.ts new file mode 100644 index 00000000..f88ddc2b --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes.component.d.ts @@ -0,0 +1,33 @@ +import { OnDestroy } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { MatDialog } from '@angular/material/dialog'; +import { AttributesNameValueMap } from './lwm2m-profile-config.models'; +import * as i0 from "@angular/core"; +export declare class Lwm2mAttributesComponent implements ControlValueAccessor, OnDestroy { + private dialog; + private fb; + attributesFormGroup: FormGroup; + private requiredValue; + private destroy$; + isAttributeTelemetry: boolean; + modelName: string; + disabled: boolean; + isResource: boolean; + set required(value: boolean); + private propagateChange; + constructor(dialog: MatDialog, fb: FormBuilder); + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: AttributesNameValueMap | null): void; + get attributesValueMap(): AttributesNameValueMap; + isDisableBtn(): boolean; + isEmpty(): boolean; + get tooltipSetAttributesTelemetry(): string; + get tooltipButton(): string; + get iconButton(): string; + editAttributesLwm2m: ($event: Event) => void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-bootstrap-add-config-server-dialog.component.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-bootstrap-add-config-server-dialog.component.d.ts new file mode 100644 index 00000000..8fdafd45 --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-bootstrap-add-config-server-dialog.component.d.ts @@ -0,0 +1,22 @@ +import { DialogComponent } from '@shared/components/dialog.component'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Router } from '@angular/router'; +import { MatDialogRef } from '@angular/material/dialog'; +import { ServerConfigType } from '@home/components/profile/device/lwm2m/lwm2m-profile-config.models'; +import * as i0 from "@angular/core"; +export declare class Lwm2mBootstrapAddConfigServerDialogComponent extends DialogComponent { + protected store: Store; + protected router: Router; + private fb; + dialogRef: MatDialogRef; + addConfigServerFormGroup: FormGroup; + serverTypes: ServerConfigType[]; + serverConfigTypeNamesMap: Map; + constructor(store: Store, router: Router, fb: FormBuilder, dialogRef: MatDialogRef); + addServerConfig(): void; + cancel(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-bootstrap-config-servers.component.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-bootstrap-config-servers.component.d.ts new file mode 100644 index 00000000..1af7c489 --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-bootstrap-config-servers.component.d.ts @@ -0,0 +1,45 @@ +import { EventEmitter, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormArray, FormBuilder, FormControl, FormGroup } from '@angular/forms'; +import { ServerSecurityConfig } from '@home/components/profile/device/lwm2m/lwm2m-profile-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DialogService } from '@core/services/dialog.service'; +import { MatDialog } from '@angular/material/dialog'; +import { DeviceProfileService } from '@core/http/device-profile.service'; +import * as i0 from "@angular/core"; +export declare class Lwm2mBootstrapConfigServersComponent implements OnInit, ControlValueAccessor { + translate: TranslateService; + matDialog: MatDialog; + private dialogService; + private deviceProfileService; + private fb; + bootstrapConfigServersFormGroup: FormGroup; + disabled: boolean; + isTransportWasRunWithBootstrap: boolean; + isTransportWasRunWithBootstrapChange: EventEmitter; + isBootstrapServerUpdateEnableValue: boolean; + set isBootstrapServerUpdateEnable(value: boolean); + private valueChangeSubscription; + private propagateChange; + constructor(translate: TranslateService, matDialog: MatDialog, dialogService: DialogService, deviceProfileService: DeviceProfileService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + serverConfigsFromArray(): FormArray; + setDisabledState(isDisabled: boolean): void; + writeValue(serverConfigs: Array | null): void; + trackByParams(index: number): number; + removeServerConfig($event: Event, index: number): void; + addServerConfig(): void; + updateIsTransportWasRunWithBootstrap(newValue: boolean): void; + validate(c: FormControl): { + serverConfigs: { + valid: boolean; + }; + }; + isBootstrapServerNotAvailable(): boolean; + private isBootstrapAdded; + private removeBootstrapServerConfig; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-config-server.component.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-config-server.component.d.ts new file mode 100644 index 00000000..a344950a --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-config-server.component.d.ts @@ -0,0 +1,41 @@ +import { EventEmitter, OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { BingingMode, ServerSecurityConfig } from './lwm2m-profile-config.models'; +import { DeviceProfileService } from '@core/http/device-profile.service'; +import { Lwm2mSecurityType } from '@shared/models/lwm2m-security-config.models'; +import * as i0 from "@angular/core"; +export declare class Lwm2mDeviceConfigServerComponent implements OnInit, ControlValueAccessor, Validator, OnDestroy { + fb: FormBuilder; + private deviceProfileService; + disabled: boolean; + private destroy$; + private isDataLoadedIntoCache; + serverFormGroup: FormGroup; + bindingModeTypes: BingingMode[]; + bindingModeTypeNamesMap: Map; + securityConfigLwM2MType: typeof Lwm2mSecurityType; + securityConfigLwM2MTypes: string[]; + credentialTypeLwM2MNamesMap: Map; + publicKeyOrIdTooltipNamesMap: Map; + currentSecurityMode: any; + bootstrapDisabled: boolean; + removeServer: EventEmitter; + isTransportWasRunWithBootstrapChange: EventEmitter; + private propagateChange; + constructor(fb: FormBuilder, deviceProfileService: DeviceProfileService); + ngOnInit(): void; + ngOnDestroy(): void; + writeValue(serverData: ServerSecurityConfig): void; + registerOnChange(fn: any): void; + setDisabledState(isDisabled: boolean): void; + registerOnTouched(fn: any): void; + private updateValidate; + private clearValidators; + private setValidators; + private propagateChangeState; + private getLwm2mBootstrapSecurityInfo; + private changeSecurityHostPortFields; + validate(): ValidationErrors | null; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.d.ts new file mode 100644 index 00000000..5a464d5a --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.d.ts @@ -0,0 +1,59 @@ +import { ChangeDetectorRef, OnDestroy } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { Lwm2mProfileConfigModels, ObjectLwM2M } from './lwm2m-profile-config.models'; +import { DeviceProfileService } from '@core/http/device-profile.service'; +import { DialogService } from '@core/services/dialog.service'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class Lwm2mDeviceProfileTransportConfigurationComponent implements ControlValueAccessor, Validator, OnDestroy { + translate: TranslateService; + private fb; + private cd; + private dialogService; + private deviceProfileService; + disabled: boolean; + isTransportWasRunWithBootstrap: boolean; + isBootstrapServerUpdateEnable: boolean; + private requiredValue; + private destroy$; + lwm2mDeviceProfileFormGroup: FormGroup; + configurationValue: Lwm2mProfileConfigModels; + sortFunction: (key: string, value: object) => object; + get required(): boolean; + set required(value: boolean); + isAdd: boolean; + private propagateChange; + constructor(translate: TranslateService, fb: FormBuilder, cd: ChangeDetectorRef, dialogService: DialogService, deviceProfileService: DeviceProfileService); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnDestroy(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: Lwm2mProfileConfigModels | null): Promise; + validate(): ValidationErrors | null; + private defaultProfileConfig; + private initWriteValue; + private updateWriteValue; + private updateModel; + private updateObserveAttrTelemetryObjectFormGroup; + private updateDeviceProfileValue; + private getObserveAttrTelemetryObjects; + private includesNotZeroInstance; + private addInstances; + private updateInInstanceKeyName; + private updateObserveAttrTelemetryObjects; + private updateAttributes; + private updateKeyNameObjects; + private validateKeyNameObjects; + private updateObserveAttrTelemetryFromGroupToJson; + sortObjectKeyPathJson: (key: string, value: object) => object; + private sortPath; + private getObjectsFromJsonAllConfig; + addObjectsList: (value: ObjectLwM2M[]) => void; + removeObjectsList: (value: ObjectLwM2M) => void; + private removeObserveAttrTelemetryFromJson; + private removeKeyNameFromJson; + private removeAttributesFromJson; + get clientSettingsFormGroup(): FormGroup; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-object-add-instances-dialog.component.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-object-add-instances-dialog.component.d.ts new file mode 100644 index 00000000..1033cdfe --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-object-add-instances-dialog.component.d.ts @@ -0,0 +1,28 @@ +import { OnInit } from '@angular/core'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Router } from '@angular/router'; +import { MatDialogRef } from '@angular/material/dialog'; +import * as i0 from "@angular/core"; +export interface Lwm2mObjectAddInstancesData { + instancesId: Set; + objectName?: string; + objectId?: number; +} +export declare class Lwm2mObjectAddInstancesDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + data: Lwm2mObjectAddInstancesData; + dialogRef: MatDialogRef; + fb: FormBuilder; + instancesFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: Lwm2mObjectAddInstancesData, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + cancel(): void; + add(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-object-add-instances-list.component.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-object-add-instances-list.component.d.ts new file mode 100644 index 00000000..09640e0c --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-object-add-instances-list.component.d.ts @@ -0,0 +1,29 @@ +import { ElementRef } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { MatChipInputEvent } from '@angular/material/chips'; +import * as i0 from "@angular/core"; +export declare class Lwm2mObjectAddInstancesListComponent implements ControlValueAccessor, Validator { + private fb; + private requiredValue; + disabled: boolean; + get required(): boolean; + set required(value: boolean); + instanceId: ElementRef; + instancesListFormGroup: FormGroup; + instancesId: Set; + separatorKeysCodes: number[]; + instanceIdValueMax: number; + private propagateChange; + constructor(fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: Set): void; + validate(): ValidationErrors | null; + add: (event: MatChipInputEvent) => void; + remove: (object: number) => void; + onFocus(): void; + private updateValidators; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-object-list.component.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-object-list.component.d.ts new file mode 100644 index 00000000..48fab138 --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-object-list.component.d.ts @@ -0,0 +1,42 @@ +import { ElementRef, EventEmitter, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { ObjectLwM2M } from './lwm2m-profile-config.models'; +import { DeviceProfileService } from '@core/http/device-profile.service'; +import { TruncatePipe } from '@shared/pipe/truncate.pipe'; +import * as i0 from "@angular/core"; +export declare class Lwm2mObjectListComponent implements ControlValueAccessor, OnInit, Validator { + truncate: TruncatePipe; + private deviceProfileService; + private fb; + private requiredValue; + private dirty; + lwm2mListFormGroup: FormGroup; + objectsList: Array; + filteredObjectsList: Observable>; + disabled: boolean; + searchText: string; + get required(): boolean; + set required(value: boolean); + addList: EventEmitter; + removeList: EventEmitter; + objectInput: ElementRef; + private propagateChange; + constructor(truncate: TruncatePipe, deviceProfileService: DeviceProfileService, fb: FormBuilder); + private updateValidators; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: ObjectLwM2M[]): void; + validate(): ValidationErrors | null; + private add; + remove: (object: ObjectLwM2M) => void; + displayObjectLwm2mFn: (object?: ObjectLwM2M) => string; + private fetchListObjects; + onFocus: () => void; + textIsNotEmpty(text: string): boolean; + private clear; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry-instances.component.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry-instances.component.d.ts new file mode 100644 index 00000000..de0e6749 --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry-instances.component.d.ts @@ -0,0 +1,39 @@ +import { OnDestroy } from '@angular/core'; +import { AbstractControl, ControlValueAccessor, FormArray, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { Instance, ResourceSettingTelemetry } from './lwm2m-profile-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class Lwm2mObserveAttrTelemetryInstancesComponent implements ControlValueAccessor, Validator, OnDestroy { + private fb; + translate: TranslateService; + instancesFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private valueChange$; + private propagateChange; + constructor(fb: FormBuilder, translate: TranslateService); + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: Instance[]): void; + validate(control: AbstractControl): ValidationErrors | null; + get instancesFormArray(): FormArray; + private updateInstances; + private createInstanceFormGroup; + private updateModel; + changeInstanceResourcesCheckBox: (value: boolean, instance: AbstractControl, type: ResourceSettingTelemetry) => void; + private updateValidators; + trackByParams: (index: number, instance: Instance) => number; + getIndeterminate: (instance: AbstractControl, type: ResourceSettingTelemetry) => boolean; + getChecked: (instance: AbstractControl, type: ResourceSettingTelemetry) => boolean; + disableObserve(instance: AbstractControl): boolean; + get isExpend(): boolean; + getNameInstance(instance: Instance): string; + disableObserveInstance: (instance: AbstractControl) => boolean; + observeInstance: (instance: AbstractControl) => boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry-resources.component.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry-resources.component.d.ts new file mode 100644 index 00000000..36f02ae1 --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry-resources.component.d.ts @@ -0,0 +1,31 @@ +import { OnDestroy } from '@angular/core'; +import { ControlValueAccessor, FormArray, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { ResourceLwM2M } from '@home/components/profile/device/lwm2m/lwm2m-profile-config.models'; +import * as i0 from "@angular/core"; +export declare class Lwm2mObserveAttrTelemetryResourcesComponent implements ControlValueAccessor, OnDestroy, Validator { + private fb; + resourcesFormGroup: FormGroup; + disabled: boolean; + private requiredValue; + get required(): boolean; + set required(value: boolean); + private destroy$; + private valueChange$; + private propagateChange; + constructor(fb: FormBuilder); + ngOnDestroy(): void; + registerOnTouched(fn: any): void; + registerOnChange(fn: any): void; + writeValue(value: ResourceLwM2M[]): void; + setDisabledState(isDisabled: boolean): void; + validate(): ValidationErrors | null; + get resourcesFormArray(): FormArray; + getNameResourceLwm2m(resourceLwM2M: ResourceLwM2M): string; + private updatedResources; + private createdResourceFormGroup; + private updateModel; + trackByParams(index: number, resource: ResourceLwM2M): number; + isDisabledObserve(index: number): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry.component.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry.component.d.ts new file mode 100644 index 00000000..d597953d --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry.component.d.ts @@ -0,0 +1,54 @@ +import { ChangeDetectorRef, OnDestroy } from '@angular/core'; +import { AbstractControl, ControlValueAccessor, FormArray, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { ObjectLwM2M } from './lwm2m-profile-config.models'; +import { MatDialog } from '@angular/material/dialog'; +import * as i0 from "@angular/core"; +export declare class Lwm2mObserveAttrTelemetryComponent implements ControlValueAccessor, OnDestroy, Validator { + private fb; + private dialog; + private cd; + modelsFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private valueChange$; + private propagateChange; + constructor(fb: FormBuilder, dialog: MatDialog, cd: ChangeDetectorRef); + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: ObjectLwM2M[]): void; + validate(): ValidationErrors | null; + get modelsFormArray(): FormArray; + private updateModels; + private createModelFormGroup; + private updateModel; + private updateValidators; + trackByParams: (index: number, objectLwM2M: ObjectLwM2M) => number; + /** + * Instances: indicates whether this Object supports multiple Object Instances or not. + * 1) Field in object: == Multiple/Single + * 2) Field in object: == Mandatory/Optional + * If this field is “Multiple” then the number of Object Instance can be from 0 to many (Object Instance ID MAX_ID=65535). + * If this field is “Single” then the number of Object Instance can be from 0 to 1. (max count == 1) + * If the Object field “Mandatory” is “Mandatory” and the Object field “Instances” is “Single” then - + * the number of Object Instance MUST be 1. + * 1. == Multiple (true), == Optional (false) - + * Object Instance ID MIN_ID=0 MAX_ID=65535 (there may be none) + * 2. == Multiple (true), == Mandatory (true) - + * Object Instance ID MIN_ID=0 MAX_ID=65535 (min one mandatory) + * 3. == Single (false), == Optional (false) - + * Object Instance ID cnt_max = 1 cnt_min = 0 (there may be none ) + * 4. == Single (false), == Mandatory (true) - + * Object Instance ID cnt_max = cnt_min = 1 (there must always be one) + */ + addInstances: ($event: Event, control: AbstractControl) => void; + private updateInstancesIds; + private diffBetweenSet; + private instancesToSetId; + getNameObject: (objectLwM2M: ObjectLwM2M) => string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-components.module.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-components.module.d.ts new file mode 100644 index 00000000..9d67767c --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-components.module.d.ts @@ -0,0 +1,22 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component"; +import * as i2 from "@home/components/profile/device/lwm2m/lwm2m-object-list.component"; +import * as i3 from "@home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry.component"; +import * as i4 from "@home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry-resources.component"; +import * as i5 from "@home/components/profile/device/lwm2m/lwm2m-attributes-dialog.component"; +import * as i6 from "@home/components/profile/device/lwm2m/lwm2m-attributes.component"; +import * as i7 from "@home/components/profile/device/lwm2m/lwm2m-attributes-key-list.component"; +import * as i8 from "@home/components/profile/device/lwm2m/lwm2m-bootstrap-config-servers.component"; +import * as i9 from "@home/components/profile/device/lwm2m/lwm2m-device-config-server.component"; +import * as i10 from "@home/components/profile/device/lwm2m/lwm2m-bootstrap-add-config-server-dialog.component"; +import * as i11 from "@home/components/profile/device/lwm2m/lwm2m-object-add-instances-dialog.component"; +import * as i12 from "@home/components/profile/device/lwm2m/lwm2m-object-add-instances-list.component"; +import * as i13 from "@home/components/profile/device/lwm2m/lwm2m-observe-attr-telemetry-instances.component"; +import * as i14 from "@angular/common"; +import * as i15 from "@app/shared/shared.module"; +import * as i16 from "@home/components/profile/device/common/device-profile-common.module"; +export declare class Lwm2mProfileComponentsModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-config.models.d.ts b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-config.models.d.ts new file mode 100644 index 00000000..46bb67d1 --- /dev/null +++ b/src/app/modules/home/components/profile/device/lwm2m/lwm2m-profile-config.models.d.ts @@ -0,0 +1,148 @@ +import { ValidatorFn } from '@angular/forms'; +import { Lwm2mSecurityType } from '@shared/models/lwm2m-security-config.models'; +export declare const PAGE_SIZE_LIMIT = 50; +export declare const INSTANCES = "instances"; +export declare const RESOURCES = "resources"; +export declare const OBSERVE = "observe"; +export declare const ATTRIBUTE = "attribute"; +export declare const TELEMETRY = "telemetry"; +export declare const KEY_NAME = "keyName"; +export declare const DEFAULT_ID_SERVER = 123; +export declare const DEFAULT_ID_BOOTSTRAP = 111; +export declare const DEFAULT_LOCAL_HOST_NAME = "localhost"; +export declare const DEFAULT_PORT_SERVER_NO_SEC = 5685; +export declare const DEFAULT_PORT_BOOTSTRAP_NO_SEC = 5687; +export declare const DEFAULT_CLIENT_HOLD_OFF_TIME = 1; +export declare const DEFAULT_LIFE_TIME = 300; +export declare const DEFAULT_MIN_PERIOD = 1; +export declare const DEFAULT_NOTIF_IF_DESIBLED = true; +export declare const DEFAULT_BINDING = "U"; +export declare const DEFAULT_BOOTSTRAP_SERVER_ACCOUNT_TIME_OUT = 0; +export declare const INSTANCES_ID_VALUE_MIN = 0; +export declare const INSTANCES_ID_VALUE_MAX = 65535; +export declare const DEFAULT_OTA_UPDATE_PROTOCOL = "coap://"; +export declare const DEFAULT_FW_UPDATE_RESOURCE: string; +export declare const DEFAULT_SW_UPDATE_RESOURCE: string; +export declare const DEFAULT_PSM_ACTIVITY_TIMER = 10000; +export declare const DEFAULT_EDRX_CYCLE = 81000; +export declare const DEFAULT_PAGING_TRANSMISSION_WINDOW = 10000; +export declare enum BingingMode { + U = "U", + M = "M", + H = "H", + T = "T", + S = "S", + N = "N", + UQ = "UQ", + UQS = "UQS", + TQ = "TQ", + TQS = "TQS", + SQ = "SQ" +} +export declare const BingingModeTranslationsMap: Map; +export declare enum AttributeName { + pmin = "pmin", + pmax = "pmax", + gt = "gt", + lt = "lt", + st = "st" +} +export declare const AttributeNameTranslationMap: Map; +export declare enum ServerConfigType { + LWM2M = "LWM2M", + BOOTSTRAP = "BOOTSTRAP" +} +export declare const ServerConfigTypeTranslationMap: Map; +export declare enum PowerMode { + PSM = "PSM", + DRX = "DRX", + E_DRX = "E_DRX" +} +export declare const PowerModeTranslationMap: Map; +export interface ServerSecurityConfig { + host?: string; + port?: number; + securityMode: Lwm2mSecurityType; + securityHost?: string; + securityPort?: number; + serverPublicKey?: string; + serverCertificate?: string; + clientHoldOffTime?: number; + shortServerId?: number; + bootstrapServerAccountTimeout: number; + lifetime: number; + defaultMinPeriod: number; + notifIfDisabled: boolean; + binding: string; + bootstrapServerIs: boolean; +} +export interface ServerSecurityConfigInfo extends ServerSecurityConfig { + securityHost?: string; + securityPort?: number; + bootstrapServerIs: boolean; +} +export interface Lwm2mProfileConfigModels { + clientLwM2mSettings: ClientLwM2mSettings; + observeAttr: ObservableAttributes; + bootstrapServerUpdateEnable: boolean; + bootstrap: Array; +} +export interface ClientLwM2mSettings { + clientOnlyObserveAfterConnect: number; + fwUpdateStrategy: number; + swUpdateStrategy: number; + fwUpdateResource?: string; + swUpdateResource?: string; + powerMode: PowerMode; + edrxCycle?: number; + pagingTransmissionWindow?: number; + psmActivityTimer?: number; + compositeOperationsSupport: boolean; +} +export interface ObservableAttributes { + observe: string[]; + attribute: string[]; + telemetry: string[]; + keyName: {}; + attributeLwm2m: AttributesNameValueMap; +} +export declare function getDefaultProfileObserveAttrConfig(): ObservableAttributes; +export declare function getDefaultProfileClientLwM2mSettingsConfig(): ClientLwM2mSettings; +export declare type ResourceSettingTelemetry = 'observe' | 'attribute' | 'telemetry'; +export interface ResourceLwM2M { + id: number; + name: string; + observe: boolean; + attribute: boolean; + telemetry: boolean; + keyName: string; + attributes?: AttributesNameValueMap; +} +export interface Instance { + id: number; + attributes?: AttributesNameValueMap; + resources: ResourceLwM2M[]; +} +/** + * multiple == true => Multiple + * multiple == false => Single + * mandatory == true => Mandatory + * mandatory == false => Optional + */ +export interface ObjectLwM2M { + id: number; + keyId: string; + name: string; + multiple?: boolean; + mandatory?: boolean; + attributes?: AttributesNameValueMap; + instances?: Instance[]; +} +export declare type AttributesNameValueMap = { + [key in AttributeName]?: number; +}; +export interface AttributesNameValue { + name: AttributeName; + value: number; +} +export declare function valueValidatorByAttributeName(attributeName: AttributeName): ValidatorFn[]; diff --git a/src/app/modules/home/components/profile/device/mqtt-device-profile-transport-configuration.component.d.ts b/src/app/modules/home/components/profile/device/mqtt-device-profile-transport-configuration.component.d.ts new file mode 100644 index 00000000..cd12bcae --- /dev/null +++ b/src/app/modules/home/components/profile/device/mqtt-device-profile-transport-configuration.component.d.ts @@ -0,0 +1,34 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { MqttDeviceProfileTransportConfiguration, TransportPayloadType } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class MqttDeviceProfileTransportConfigurationComponent implements ControlValueAccessor, OnInit, OnDestroy { + private store; + private fb; + transportPayloadTypes: string[]; + transportPayloadTypeTranslations: Map; + mqttDeviceProfileTransportConfigurationFormGroup: FormGroup; + private destroy$; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngOnDestroy(): void; + setDisabledState(isDisabled: boolean): void; + get protoPayloadType(): boolean; + get compatibilityWithJsonPayloadFormatEnabled(): boolean; + writeValue(value: MqttDeviceProfileTransportConfiguration | null): void; + private updateModel; + private updateTransportPayloadBasedControls; + private validationMQTTTopic; + private uniqueDeviceTopicValidator; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/snpm/snmp-device-profile-communication-config.component.d.ts b/src/app/modules/home/components/profile/device/snpm/snmp-device-profile-communication-config.component.d.ts new file mode 100644 index 00000000..f1ae8515 --- /dev/null +++ b/src/app/modules/home/components/profile/device/snpm/snmp-device-profile-communication-config.component.d.ts @@ -0,0 +1,37 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormArray, FormBuilder, FormGroup, Validator } from '@angular/forms'; +import { SnmpCommunicationConfig, SnmpSpecType } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class SnmpDeviceProfileCommunicationConfigComponent implements OnInit, OnDestroy, ControlValueAccessor, Validator { + private fb; + snmpSpecTypes: SnmpSpecType[]; + snmpSpecTypeTranslationMap: Map; + deviceProfileCommunicationConfig: FormGroup; + disabled: boolean; + private usedSpecType; + private valueChange$; + private destroy$; + private propagateChange; + constructor(fb: FormBuilder); + ngOnInit(): void; + ngOnDestroy(): void; + communicationConfigFormArray(): FormArray; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(communicationConfig: SnmpCommunicationConfig[]): void; + validate(): { + communicationConfig: boolean; + }; + removeCommunicationConfig(index: number): void; + get isAddEnabled(): boolean; + addCommunicationConfig(): void; + private getFirstUnusedSeverity; + isDisabledSeverity(type: SnmpSpecType, index: number): boolean; + isShowFrequency(type: SnmpSpecType): boolean; + private updateUsedSpecType; + private createdFormGroup; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/snpm/snmp-device-profile-mapping.component.d.ts b/src/app/modules/home/components/profile/device/snpm/snmp-device-profile-mapping.component.d.ts new file mode 100644 index 00000000..b87e8ca3 --- /dev/null +++ b/src/app/modules/home/components/profile/device/snpm/snmp-device-profile-mapping.component.d.ts @@ -0,0 +1,30 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormArray, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { SnmpMapping } from '@shared/models/device.models'; +import { DataType } from '@shared/models/constants'; +import * as i0 from "@angular/core"; +export declare class SnmpDeviceProfileMappingComponent implements OnInit, OnDestroy, ControlValueAccessor, Validator { + private fb; + mappingsConfigForm: FormGroup; + dataTypes: DataType[]; + dataTypesTranslationMap: Map; + disabled: boolean; + private readonly oidPattern; + private valueChange$; + private propagateChange; + constructor(fb: FormBuilder); + ngOnInit(): void; + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(): ValidationErrors | null; + writeValue(mappings: SnmpMapping[]): void; + mappingsConfigFormArray(): FormArray; + addMappingConfig(): void; + removeMappingConfig(index: number): void; + private createdFormGroup; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/snpm/snmp-device-profile-transport-configuration.component.d.ts b/src/app/modules/home/components/profile/device/snpm/snmp-device-profile-transport-configuration.component.d.ts new file mode 100644 index 00000000..25a646fb --- /dev/null +++ b/src/app/modules/home/components/profile/device/snpm/snmp-device-profile-transport-configuration.component.d.ts @@ -0,0 +1,32 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { SnmpDeviceProfileTransportConfiguration } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export interface OidMappingConfiguration { + isAttribute: boolean; + key: string; + type: string; + method: string; + oid: string; +} +export declare class SnmpDeviceProfileTransportConfigurationComponent implements OnInit, OnDestroy, ControlValueAccessor, Validator { + private fb; + snmpDeviceProfileTransportConfigurationFormGroup: FormGroup; + private destroy$; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(fb: FormBuilder); + ngOnInit(): void; + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: SnmpDeviceProfileTransportConfiguration | null): void; + private updateModel; + validate(): ValidationErrors | null; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/device/snpm/snmp-device-profile-transport.module.d.ts b/src/app/modules/home/components/profile/device/snpm/snmp-device-profile-transport.module.d.ts new file mode 100644 index 00000000..8fdbfe6b --- /dev/null +++ b/src/app/modules/home/components/profile/device/snpm/snmp-device-profile-transport.module.d.ts @@ -0,0 +1,11 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@home/components/profile/device/snpm/snmp-device-profile-transport-configuration.component"; +import * as i2 from "@home/components/profile/device/snpm/snmp-device-profile-communication-config.component"; +import * as i3 from "@home/components/profile/device/snpm/snmp-device-profile-mapping.component"; +import * as i4 from "@angular/common"; +import * as i5 from "@shared/shared.module"; +export declare class SnmpDeviceProfileTransportModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/components/profile/tenant-profile-autocomplete.component.d.ts b/src/app/modules/home/components/profile/tenant-profile-autocomplete.component.d.ts new file mode 100644 index 00000000..86e8fcca --- /dev/null +++ b/src/app/modules/home/components/profile/tenant-profile-autocomplete.component.d.ts @@ -0,0 +1,55 @@ +import { ElementRef, EventEmitter, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { TenantProfileId } from '@shared/models/id/tenant-profile-id'; +import { EntityInfoData } from '@shared/models/entity.models'; +import { TenantProfileService } from '@core/http/tenant-profile.service'; +import { TruncatePipe } from '@shared//pipe/truncate.pipe'; +import { TenantProfile } from '@shared/models/tenant.model'; +import { MatDialog } from '@angular/material/dialog'; +import * as i0 from "@angular/core"; +export declare class TenantProfileAutocompleteComponent implements ControlValueAccessor, OnInit { + private store; + translate: TranslateService; + truncate: TruncatePipe; + private tenantProfileService; + private fb; + private dialog; + selectTenantProfileFormGroup: FormGroup; + modelValue: TenantProfileId | null; + selectDefaultProfile: boolean; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + showDetailsPageLink: boolean; + tenantProfileUpdated: EventEmitter; + tenantProfileInput: ElementRef; + filteredTenantProfiles: Observable>; + searchText: string; + tenantProfileURL: string; + private dirty; + private propagateChange; + constructor(store: Store, translate: TranslateService, truncate: TruncatePipe, tenantProfileService: TenantProfileService, fb: FormBuilder, dialog: MatDialog); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + selectDefaultTenantProfileIfNeeded(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: TenantProfileId | null): void; + onFocus(): void; + updateView(value: TenantProfileId | null): void; + displayTenantProfileFn(profile?: EntityInfoData): string | undefined; + fetchTenantProfiles(searchText?: string): Observable>; + clear(): void; + textIsNotEmpty(text: string): boolean; + tenantProfileEnter($event: KeyboardEvent): void; + createTenantProfile($event: Event, profileName: string): void; + editTenantProfile($event: Event): void; + openTenantProfileDialog(tenantProfile: TenantProfile, isAdd: boolean): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/tenant-profile-data.component.d.ts b/src/app/modules/home/components/profile/tenant-profile-data.component.d.ts new file mode 100644 index 00000000..fe555eb0 --- /dev/null +++ b/src/app/modules/home/components/profile/tenant-profile-data.component.d.ts @@ -0,0 +1,25 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TenantProfileData } from '@shared/models/tenant.model'; +import * as i0 from "@angular/core"; +export declare class TenantProfileDataComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + tenantProfileDataFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: TenantProfileData | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/tenant-profile-dialog.component.d.ts b/src/app/modules/home/components/profile/tenant-profile-dialog.component.d.ts new file mode 100644 index 00000000..3fb592eb --- /dev/null +++ b/src/app/modules/home/components/profile/tenant-profile-dialog.component.d.ts @@ -0,0 +1,37 @@ +import { AfterViewInit, ComponentFactoryResolver, Injector } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormControl, FormGroupDirective, NgForm } from '@angular/forms'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import { TenantProfile } from '@shared/models/tenant.model'; +import { TenantProfileComponent } from './tenant-profile.component'; +import { TenantProfileService } from '@core/http/tenant-profile.service'; +import * as i0 from "@angular/core"; +export interface TenantProfileDialogData { + tenantProfile: TenantProfile; + isAdd: boolean; +} +export declare class TenantProfileDialogComponent extends DialogComponent implements ErrorStateMatcher, AfterViewInit { + protected store: Store; + protected router: Router; + data: TenantProfileDialogData; + dialogRef: MatDialogRef; + private componentFactoryResolver; + private injector; + private errorStateMatcher; + private tenantProfileService; + isAdd: boolean; + tenantProfile: TenantProfile; + submitted: boolean; + tenantProfileComponent: TenantProfileComponent; + constructor(store: Store, router: Router, data: TenantProfileDialogData, dialogRef: MatDialogRef, componentFactoryResolver: ComponentFactoryResolver, injector: Injector, errorStateMatcher: ErrorStateMatcher, tenantProfileService: TenantProfileService); + ngAfterViewInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/tenant-profile.component.d.ts b/src/app/modules/home/components/profile/tenant-profile.component.d.ts new file mode 100644 index 00000000..659f7066 --- /dev/null +++ b/src/app/modules/home/components/profile/tenant-profile.component.d.ts @@ -0,0 +1,26 @@ +import { ChangeDetectorRef } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { TenantProfile } from '@shared/models/tenant.model'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { EntityComponent } from '../entity/entity.component'; +import * as i0 from "@angular/core"; +export declare class TenantProfileComponent extends EntityComponent { + protected store: Store; + protected translate: TranslateService; + protected entityValue: TenantProfile; + protected entitiesTableConfigValue: EntityTableConfig; + protected fb: FormBuilder; + protected cd: ChangeDetectorRef; + standalone: boolean; + constructor(store: Store, translate: TranslateService, entityValue: TenantProfile, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef); + hideDelete(): boolean; + buildForm(entity: TenantProfile): FormGroup; + updateForm(entity: TenantProfile): void; + updateFormState(): void; + onTenantProfileIdCopied(event: any): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.d.ts b/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.d.ts new file mode 100644 index 00000000..346443e3 --- /dev/null +++ b/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.d.ts @@ -0,0 +1,25 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { DefaultTenantProfileConfiguration } from '@shared/models/tenant.model'; +import * as i0 from "@angular/core"; +export declare class DefaultTenantProfileConfigurationComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + defaultTenantProfileConfigurationFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DefaultTenantProfileConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/profile/tenant/tenant-profile-configuration.component.d.ts b/src/app/modules/home/components/profile/tenant/tenant-profile-configuration.component.d.ts new file mode 100644 index 00000000..126d58ab --- /dev/null +++ b/src/app/modules/home/components/profile/tenant/tenant-profile-configuration.component.d.ts @@ -0,0 +1,27 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TenantProfileConfiguration, TenantProfileType } from '@shared/models/tenant.model'; +import * as i0 from "@angular/core"; +export declare class TenantProfileConfigurationComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + tenantProfileType: typeof TenantProfileType; + tenantProfileConfigurationFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + type: TenantProfileType; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: TenantProfileConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/public-api.d.ts b/src/app/modules/home/components/public-api.d.ts new file mode 100644 index 00000000..ba829136 --- /dev/null +++ b/src/app/modules/home/components/public-api.d.ts @@ -0,0 +1 @@ +export * from './home-components.module'; diff --git a/src/app/modules/home/components/relation/relation-dialog.component.d.ts b/src/app/modules/home/components/relation/relation-dialog.component.d.ts new file mode 100644 index 00000000..658f35e8 --- /dev/null +++ b/src/app/modules/home/components/relation/relation-dialog.component.d.ts @@ -0,0 +1,40 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { EntityRelation, EntitySearchDirection } from '@shared/models/relation.models'; +import { EntityRelationService } from '@core/http/entity-relation.service'; +import { JsonObjectEditComponent } from '@shared/components/json-object-edit.component'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@shared/components/dialog.component'; +import * as i0 from "@angular/core"; +export interface RelationDialogData { + isAdd: boolean; + direction: EntitySearchDirection; + relation: EntityRelation; +} +export declare class RelationDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: RelationDialogData; + private entityRelationService; + private errorStateMatcher; + dialogRef: MatDialogRef; + fb: FormBuilder; + relationFormGroup: FormGroup; + isAdd: boolean; + direction: EntitySearchDirection; + entitySearchDirection: typeof EntitySearchDirection; + additionalInfo: FormControl; + additionalInfoEdit: JsonObjectEditComponent; + submitted: boolean; + constructor(store: Store, router: Router, data: RelationDialogData, entityRelationService: EntityRelationService, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/relation/relation-filters.component.d.ts b/src/app/modules/home/components/relation/relation-filters.component.d.ts new file mode 100644 index 00000000..4d2b275d --- /dev/null +++ b/src/app/modules/home/components/relation/relation-filters.component.d.ts @@ -0,0 +1,30 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormArray, FormBuilder, FormGroup } from '@angular/forms'; +import { AliasEntityType, EntityType } from '@shared/models/entity-type.models'; +import { RelationEntityTypeFilter } from '@shared/models/relation.models'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import * as i0 from "@angular/core"; +export declare class RelationFiltersComponent extends PageComponent implements ControlValueAccessor, OnInit { + protected store: Store; + private fb; + disabled: boolean; + allowedEntityTypes: Array; + relationFiltersFormGroup: FormGroup; + private propagateChange; + private valueChangeSubscription; + constructor(store: Store, fb: FormBuilder); + ngOnInit(): void; + relationFiltersFormArray(): FormArray; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState?(isDisabled: boolean): void; + writeValue(filters: Array): void; + removeFilter(index: number): void; + addFilter(): void; + private createRelationFilterFormGroup; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/relation/relation-table.component.d.ts b/src/app/modules/home/components/relation/relation-table.component.d.ts new file mode 100644 index 00000000..39cc9cf8 --- /dev/null +++ b/src/app/modules/home/components/relation/relation-table.component.d.ts @@ -0,0 +1,61 @@ +import { AfterViewInit, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { PageLink } from '@shared/models/page/page-link'; +import { MatPaginator } from '@angular/material/paginator'; +import { MatSort } from '@angular/material/sort'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { MatDialog } from '@angular/material/dialog'; +import { DialogService } from '@core/services/dialog.service'; +import { EntityRelationService } from '@core/http/entity-relation.service'; +import { EntityRelation, EntityRelationInfo, EntitySearchDirection } from '@shared/models/relation.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import { RelationsDatasource } from '../../models/datasource/relation-datasource'; +import * as i0 from "@angular/core"; +export declare class RelationTableComponent extends PageComponent implements AfterViewInit, OnInit { + protected store: Store; + private entityRelationService; + translate: TranslateService; + dialog: MatDialog; + private dialogService; + private cd; + private elementRef; + directions: typeof EntitySearchDirection; + directionTypes: string[]; + directionTypeTranslations: Map; + displayedColumns: string[]; + direction: EntitySearchDirection; + pageLink: PageLink; + hidePageSize: boolean; + textSearchMode: boolean; + dataSource: RelationsDatasource; + activeValue: boolean; + dirtyValue: boolean; + entityIdValue: EntityId; + viewsInited: boolean; + private widgetResize$; + set active(active: boolean); + set entityId(entityId: EntityId); + searchInputField: ElementRef; + paginator: MatPaginator; + sort: MatSort; + constructor(store: Store, entityRelationService: EntityRelationService, translate: TranslateService, dialog: MatDialog, dialogService: DialogService, cd: ChangeDetectorRef, elementRef: ElementRef); + ngOnInit(): void; + ngOnDestroy(): void; + updateColumns(): void; + directionChanged(direction: EntitySearchDirection): void; + ngAfterViewInit(): void; + updateData(reload?: boolean): void; + enterFilterMode(): void; + exitFilterMode(): void; + resetSortAndFilter(update?: boolean): void; + reloadRelations(): void; + addRelation($event: Event): void; + editRelation($event: Event, relation: EntityRelationInfo): void; + deleteRelation($event: Event, relation: EntityRelationInfo): void; + deleteRelations($event: Event): void; + openRelationDialog($event: Event, relation?: EntityRelation): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/rule-chain/rule-chain-autocomplete.component.d.ts b/src/app/modules/home/components/rule-chain/rule-chain-autocomplete.component.d.ts new file mode 100644 index 00000000..4c2e6569 --- /dev/null +++ b/src/app/modules/home/components/rule-chain/rule-chain-autocomplete.component.d.ts @@ -0,0 +1,54 @@ +import { ElementRef, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityId } from '@shared/models/id/entity-id'; +import { BaseData } from '@shared/models/base-data'; +import { EntityService } from '@core/http/entity.service'; +import { TruncatePipe } from '@shared/pipe/truncate.pipe'; +import { RuleChainService } from '@core/http/rule-chain.service'; +import { MatAutocompleteTrigger } from '@angular/material/autocomplete'; +import * as i0 from "@angular/core"; +export declare class RuleChainAutocompleteComponent implements ControlValueAccessor, OnInit { + private store; + translate: TranslateService; + truncate: TruncatePipe; + private entityService; + private ruleChainService; + private fb; + selectRuleChainFormGroup: FormGroup; + ruleChainLabel: string; + modelValue: string | null; + labelText: string; + requiredText: string; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + ruleChainInput: ElementRef; + ruleChainAutocomplete: MatAutocompleteTrigger; + filteredRuleChains: Observable>>; + searchText: string; + private dirty; + private propagateChange; + constructor(store: Store, translate: TranslateService, truncate: TruncatePipe, entityService: EntityService, ruleChainService: RuleChainService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + getCurrentEntity(): BaseData | null; + setDisabledState(isDisabled: boolean): void; + textIsNotEmpty(text: string): boolean; + writeValue(value: string | null): void; + onFocus(): void; + reset(): void; + updateView(value: string | null): void; + displayRuleChainFn(ruleChain?: BaseData): string | undefined; + fetchRuleChain(searchText?: string): Observable>>; + clear(): void; + createDefaultRuleChain($event: Event, ruleChainName: string): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/shared-home-components.module.d.ts b/src/app/modules/home/components/shared-home-components.module.d.ts new file mode 100644 index 00000000..1e697de8 --- /dev/null +++ b/src/app/modules/home/components/shared-home-components.module.d.ts @@ -0,0 +1,9 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@home/components/alarm/alarm-details-dialog.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@app/shared/shared.module"; +export declare class SharedHomeComponentsModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/components/sms/aws-sns-provider-configuration.component.d.ts b/src/app/modules/home/components/sms/aws-sns-provider-configuration.component.d.ts new file mode 100644 index 00000000..7c7a5d53 --- /dev/null +++ b/src/app/modules/home/components/sms/aws-sns-provider-configuration.component.d.ts @@ -0,0 +1,25 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { AwsSnsSmsProviderConfiguration } from '@shared/models/settings.models'; +import * as i0 from "@angular/core"; +export declare class AwsSnsProviderConfigurationComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + awsSnsProviderConfigurationFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: AwsSnsSmsProviderConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/sms/sms-provider-configuration.component.d.ts b/src/app/modules/home/components/sms/sms-provider-configuration.component.d.ts new file mode 100644 index 00000000..5fcc7b09 --- /dev/null +++ b/src/app/modules/home/components/sms/sms-provider-configuration.component.d.ts @@ -0,0 +1,29 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { SmsProviderConfiguration, SmsProviderType } from '@shared/models/settings.models'; +import * as i0 from "@angular/core"; +export declare class SmsProviderConfigurationComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + smsProviderType: typeof SmsProviderType; + smsProviderTypes: string[]; + smsProviderTypeTranslations: Map; + smsProviderConfigurationFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: SmsProviderConfiguration | null): void; + private smsProviderTypeChanged; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/sms/twilio-sms-provider-configuration.component.d.ts b/src/app/modules/home/components/sms/twilio-sms-provider-configuration.component.d.ts new file mode 100644 index 00000000..ca4da705 --- /dev/null +++ b/src/app/modules/home/components/sms/twilio-sms-provider-configuration.component.d.ts @@ -0,0 +1,26 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TwilioSmsProviderConfiguration } from '@shared/models/settings.models'; +import * as i0 from "@angular/core"; +export declare class TwilioSmsProviderConfigurationComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + twilioSmsProviderConfigurationFormGroup: FormGroup; + phoneNumberPatternTwilio: RegExp; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: TwilioSmsProviderConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/tokens.d.ts b/src/app/modules/home/components/tokens.d.ts new file mode 100644 index 00000000..d35979f6 --- /dev/null +++ b/src/app/modules/home/components/tokens.d.ts @@ -0,0 +1,6 @@ +import { InjectionToken, Type } from '@angular/core'; +import { ComponentType } from '@angular/cdk/portal'; +export declare const SHARED_HOME_COMPONENTS_MODULE_TOKEN: InjectionToken>; +export declare const HOME_COMPONENTS_MODULE_TOKEN: InjectionToken>; +export declare const COMPLEX_FILTER_PREDICATE_DIALOG_COMPONENT_TOKEN: InjectionToken>; +export declare const DASHBOARD_PAGE_COMPONENT_TOKEN: InjectionToken>; diff --git a/src/app/modules/home/components/widget/action/custom-action-pretty-editor.component.d.ts b/src/app/modules/home/components/widget/action/custom-action-pretty-editor.component.d.ts new file mode 100644 index 00000000..a757309e --- /dev/null +++ b/src/app/modules/home/components/widget/action/custom-action-pretty-editor.component.d.ts @@ -0,0 +1,30 @@ +/// +import { AfterViewInit, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { CustomActionDescriptor } from '@shared/models/widget.models'; +import * as i0 from "@angular/core"; +export declare class CustomActionPrettyEditorComponent extends PageComponent implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor { + protected store: Store; + disabled: boolean; + action: CustomActionDescriptor; + fullscreen: boolean; + leftPanelElmRef: QueryList>; + rightPanelElmRef: QueryList>; + customPrettyActionEditorCompleter: import("../../../../../shared/models/ace/completion.models").TbEditorCompleter; + private propagateChange; + constructor(store: Store); + ngOnInit(): void; + ngAfterViewInit(): void; + private initSplitLayout; + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(obj: CustomActionDescriptor): void; + onActionUpdated(valid?: boolean): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/action/custom-action-pretty-resources-tabs.component.d.ts b/src/app/modules/home/components/widget/action/custom-action-pretty-resources-tabs.component.d.ts new file mode 100644 index 00000000..4d2b7513 --- /dev/null +++ b/src/app/modules/home/components/widget/action/custom-action-pretty-resources-tabs.component.d.ts @@ -0,0 +1,47 @@ +import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; +import { TranslateService } from '@ngx-translate/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { CustomActionDescriptor } from '@shared/models/widget.models'; +import { Ace } from 'ace-builds'; +import { CancelAnimationFrame, RafService } from '@core/services/raf.service'; +import { ResizeObserver } from '@juggle/resize-observer'; +import * as i0 from "@angular/core"; +export declare class CustomActionPrettyResourcesTabsComponent extends PageComponent implements OnInit, OnChanges, OnDestroy { + protected store: Store; + private translate; + private raf; + action: CustomActionDescriptor; + hasCustomFunction: boolean; + actionUpdated: EventEmitter; + htmlInputElmRef: ElementRef; + cssInputElmRef: ElementRef; + htmlFullscreen: boolean; + cssFullscreen: boolean; + aceEditors: Ace.Editor[]; + editorsResizeCafs: { + [editorId: string]: CancelAnimationFrame; + }; + aceResize$: ResizeObserver; + htmlEditor: Ace.Editor; + cssEditor: Ace.Editor; + setValuesPending: boolean; + customPrettyActionEditorCompleter: import("../../../../../shared/models/ace/completion.models").TbEditorCompleter; + constructor(store: Store, translate: TranslateService, raf: RafService); + ngOnInit(): void; + ngOnDestroy(): void; + ngOnChanges(changes: SimpleChanges): void; + notifyActionUpdated(): void; + private validate; + addResource(): void; + removeResource(index: number): void; + beautifyCss(): void; + beautifyHtml(): void; + private initAceEditors; + private createAceEditor; + private setAceEditorValues; + private onAceEditorResize; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/action/custom-action.models.d.ts b/src/app/modules/home/components/widget/action/custom-action.models.d.ts new file mode 100644 index 00000000..1373b140 --- /dev/null +++ b/src/app/modules/home/components/widget/action/custom-action.models.d.ts @@ -0,0 +1,3 @@ +import { TbEditorCompleter } from '@shared/models/ace/completion.models'; +export declare const CustomActionEditorCompleter: TbEditorCompleter; +export declare const CustomPrettyActionEditorCompleter: TbEditorCompleter; diff --git a/src/app/modules/home/components/widget/action/manage-widget-actions.component.d.ts b/src/app/modules/home/components/widget/action/manage-widget-actions.component.d.ts new file mode 100644 index 00000000..5c225c78 --- /dev/null +++ b/src/app/modules/home/components/widget/action/manage-widget-actions.component.d.ts @@ -0,0 +1,61 @@ +import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import { TranslateService } from '@ngx-translate/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { MatDialog } from '@angular/material/dialog'; +import { DialogService } from '@core/services/dialog.service'; +import { PageLink } from '@shared/models/page/page-link'; +import { MatPaginator } from '@angular/material/paginator'; +import { MatSort } from '@angular/material/sort'; +import { WidgetActionCallbacks, WidgetActionDescriptorInfo, WidgetActionsData, WidgetActionsDatasource } from '@home/components/widget/action/manage-widget-actions.component.models'; +import { UtilsService } from '@core/services/utils.service'; +import { widgetType } from '@shared/models/widget.models'; +import * as i0 from "@angular/core"; +export declare class ManageWidgetActionsComponent extends PageComponent implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor { + protected store: Store; + private translate; + private utils; + private dialog; + private dialogs; + private cd; + private elementRef; + disabled: boolean; + widgetType: widgetType; + callbacks: WidgetActionCallbacks; + innerValue: WidgetActionsData; + displayedColumns: string[]; + pageLink: PageLink; + textSearchMode: boolean; + hidePageSize: boolean; + dataSource: WidgetActionsDatasource; + viewsInited: boolean; + dirtyValue: boolean; + private widgetResize$; + searchInputField: ElementRef; + paginator: MatPaginator; + sort: MatSort; + private propagateChange; + constructor(store: Store, translate: TranslateService, utils: UtilsService, dialog: MatDialog, dialogs: DialogService, cd: ChangeDetectorRef, elementRef: ElementRef); + ngOnInit(): void; + ngOnDestroy(): void; + ngAfterViewInit(): void; + updateData(reload?: boolean): void; + addAction($event: Event): void; + editAction($event: Event, action: WidgetActionDescriptorInfo): void; + openWidgetActionDialog($event: Event, action?: WidgetActionDescriptorInfo): void; + private saveAction; + private getOrCreateTargetActions; + deleteAction($event: Event, action: WidgetActionDescriptorInfo): void; + enterFilterMode(): void; + exitFilterMode(): void; + resetSortAndFilter(update?: boolean): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(obj: WidgetActionsData): void; + private onActionsUpdated; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/action/manage-widget-actions.component.models.d.ts b/src/app/modules/home/components/widget/action/manage-widget-actions.component.models.d.ts new file mode 100644 index 00000000..4ecbf6c9 --- /dev/null +++ b/src/app/modules/home/components/widget/action/manage-widget-actions.component.models.d.ts @@ -0,0 +1,45 @@ +import { CustomActionDescriptor, WidgetActionDescriptor, WidgetActionSource } from '@app/shared/models/widget.models'; +import { CollectionViewer, DataSource } from '@angular/cdk/collections'; +import { Observable } from 'rxjs'; +import { PageData } from '@shared/models/page/page-data'; +import { TranslateService } from '@ngx-translate/core'; +import { PageLink } from '@shared/models/page/page-link'; +import { UtilsService } from '@core/services/utils.service'; +export interface WidgetActionCallbacks { + fetchDashboardStates: (query: string) => Array; +} +export interface WidgetActionsData { + actionsMap: { + [actionSourceId: string]: Array; + }; + actionSources: { + [actionSourceId: string]: WidgetActionSource; + }; +} +export interface WidgetActionDescriptorInfo extends WidgetActionDescriptor { + actionSourceId?: string; + actionSourceName?: string; + typeName?: string; +} +export declare function toWidgetActionDescriptor(action: WidgetActionDescriptorInfo): WidgetActionDescriptor; +export declare function toCustomAction(action: WidgetActionDescriptorInfo): CustomActionDescriptor; +export declare class WidgetActionsDatasource implements DataSource { + private translate; + private utils; + private actionsSubject; + private pageDataSubject; + pageData$: Observable>; + private allActions; + private actionsMap; + private actionSources; + constructor(translate: TranslateService, utils: UtilsService); + connect(collectionViewer: CollectionViewer): Observable>; + disconnect(collectionViewer: CollectionViewer): void; + setActions(actionsData: WidgetActionsData): void; + loadActions(pageLink: PageLink, reload?: boolean): Observable>; + fetchActions(pageLink: PageLink): Observable>; + getAllActions(): Observable>; + private toWidgetActionDescriptorInfo; + isEmpty(): Observable; + total(): Observable; +} diff --git a/src/app/modules/home/components/widget/action/mobile-action-editor.component.d.ts b/src/app/modules/home/components/widget/action/mobile-action-editor.component.d.ts new file mode 100644 index 00000000..817ec5f6 --- /dev/null +++ b/src/app/modules/home/components/widget/action/mobile-action-editor.component.d.ts @@ -0,0 +1,37 @@ +import { OnInit, QueryList } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { WidgetMobileActionDescriptor, WidgetMobileActionType } from '@shared/models/widget.models'; +import { JsFuncComponent } from '@shared/components/js-func.component'; +import { WidgetService } from '@core/http/widget.service'; +import * as i0 from "@angular/core"; +export declare class MobileActionEditorComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + private widgetService; + jsFuncComponents: QueryList; + mobileActionTypes: string[]; + mobileActionTypeTranslations: Map; + mobileActionType: typeof WidgetMobileActionType; + customActionEditorCompleter: import("../../../../../shared/models/ace/completion.models").TbEditorCompleter; + mobileActionFormGroup: FormGroup; + mobileActionTypeFormGroup: FormGroup; + functionScopeVariables: string[]; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder, widgetService: WidgetService); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: WidgetMobileActionDescriptor | null): void; + private updateModel; + private updateMobileActionType; + validateOnSubmit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/action/mobile-action-editor.models.d.ts b/src/app/modules/home/components/widget/action/mobile-action-editor.models.d.ts new file mode 100644 index 00000000..389ba0e1 --- /dev/null +++ b/src/app/modules/home/components/widget/action/mobile-action-editor.models.d.ts @@ -0,0 +1,9 @@ +import { WidgetMobileActionType } from '@shared/models/widget.models'; +export declare function getDefaultProcessImageFunction(type: WidgetMobileActionType): string; +export declare function getDefaultProcessLaunchResultFunction(type: WidgetMobileActionType): string; +export declare function getDefaultProcessQrCodeFunction(): string; +export declare function getDefaultProcessLocationFunction(): string; +export declare function getDefaultGetLocationFunction(): string; +export declare function getDefaultGetPhoneNumberFunction(): string; +export declare function getDefaultHandleEmptyResultFunction(type: WidgetMobileActionType): string; +export declare function getDefaultHandleErrorFunction(type: WidgetMobileActionType): string; diff --git a/src/app/modules/home/components/widget/action/widget-action-dialog.component.d.ts b/src/app/modules/home/components/widget/action/widget-action-dialog.component.d.ts new file mode 100644 index 00000000..38982da8 --- /dev/null +++ b/src/app/modules/home/components/widget/action/widget-action-dialog.component.d.ts @@ -0,0 +1,87 @@ +import { ElementRef, OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Observable, Subscription } from 'rxjs'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@app/shared/components/dialog.component'; +import { WidgetActionCallbacks, WidgetActionDescriptorInfo, WidgetActionsData } from '@home/components/widget/action/manage-widget-actions.component.models'; +import { UtilsService } from '@core/services/utils.service'; +import { WidgetActionSource, WidgetActionType } from '@shared/models/widget.models'; +import { DashboardService } from '@core/http/dashboard.service'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import { MobileActionEditorComponent } from '@home/components/widget/action/mobile-action-editor.component'; +import { widgetType } from '@shared/models/widget.models'; +import { WidgetService } from '@core/http/widget.service'; +import { TranslateService } from '@ngx-translate/core'; +import { PopoverPlacement } from '@shared/components/popover.models'; +import * as i0 from "@angular/core"; +export interface WidgetActionDialogData { + isAdd: boolean; + callbacks: WidgetActionCallbacks; + actionsData: WidgetActionsData; + action?: WidgetActionDescriptorInfo; + widgetType: widgetType; +} +declare const stateDisplayTypes: readonly ["normal", "separateDialog", "popover"]; +declare type stateDisplayTypeTuple = typeof stateDisplayTypes; +export declare type stateDisplayType = stateDisplayTypeTuple[number]; +export declare class WidgetActionDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + private utils; + private dashboardService; + private dashboardUtils; + private widgetService; + private translate; + data: WidgetActionDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + fb: FormBuilder; + dashboardStateInput: ElementRef; + mobileActionEditor: MobileActionEditorComponent; + widgetActionFormGroup: FormGroup; + actionTypeFormGroup: FormGroup; + actionTypeFormGroupSubscriptions: Subscription[]; + stateDisplayTypeFormGroup: FormGroup; + isAdd: boolean; + action: WidgetActionDescriptorInfo; + widgetActionTypes: string[]; + widgetActionTypeTranslations: Map; + widgetActionType: typeof WidgetActionType; + filteredDashboardStates: Observable>; + targetDashboardStateSearchText: string; + selectedDashboardStateIds: Observable>; + customActionEditorCompleter: import("../../../../../shared/models/ace/completion.models").TbEditorCompleter; + submitted: boolean; + widgetType: typeof widgetType; + functionScopeVariables: string[]; + allStateDisplayTypes: readonly ["normal", "separateDialog", "popover"]; + allPopoverPlacements: readonly ["top", "topLeft", "topRight", "right", "rightTop", "rightBottom", "bottom", "bottomLeft", "bottomRight", "left", "leftTop", "leftBottom"]; + constructor(store: Store, router: Router, utils: UtilsService, dashboardService: DashboardService, dashboardUtils: DashboardUtilsService, widgetService: WidgetService, translate: TranslateService, data: WidgetActionDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + displayShowWidgetActionForm(): boolean; + getWidgetActionFunctionHelpId(): string | undefined; + private updateShowWidgetActionForm; + private updateActionTypeFormGroup; + private updateStateDisplayTypeFormGroup; + private getStateDisplayType; + private setupSelectedDashboardStateIds; + private setupFilteredDashboardStates; + private fetchDashboardStates; + private createFilterForDashboardState; + clearTargetDashboardState(value?: string): void; + private validateActionName; + private checkActionName; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + actionSourceName(actionSource: WidgetActionSource): string; + stateDisplayTypeName(displayType: stateDisplayType): string; + popoverPlacementName(placement: PopoverPlacement): string; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export {}; diff --git a/src/app/modules/home/components/widget/data-key-config-dialog.component.d.ts b/src/app/modules/home/components/widget/data-key-config-dialog.component.d.ts new file mode 100644 index 00000000..5c30c102 --- /dev/null +++ b/src/app/modules/home/components/widget/data-key-config-dialog.component.d.ts @@ -0,0 +1,37 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { DataKey } from '@shared/models/widget.models'; +import { DataKeysCallbacks } from './data-keys.component.models'; +import { DataKeyConfigComponent } from '@home/components/widget/data-key-config.component'; +import * as i0 from "@angular/core"; +export interface DataKeyConfigDialogData { + dataKey: DataKey; + dataKeySettingsSchema: any; + entityAliasId?: string; + showPostProcessing?: boolean; + callbacks?: DataKeysCallbacks; +} +export declare class DataKeyConfigDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: DataKeyConfigDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + fb: FormBuilder; + dataKeyConfig: DataKeyConfigComponent; + dataKeyFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: DataKeyConfigDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/data-key-config.component.d.ts b/src/app/modules/home/components/widget/data-key-config.component.d.ts new file mode 100644 index 00000000..5be39208 --- /dev/null +++ b/src/app/modules/home/components/widget/data-key-config.component.d.ts @@ -0,0 +1,70 @@ +import { ElementRef, OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { DataKey } from '@shared/models/widget.models'; +import { ControlValueAccessor, FormBuilder, FormControl, FormGroup, Validator } from '@angular/forms'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { MatDialog } from '@angular/material/dialog'; +import { EntityService } from '@core/http/entity.service'; +import { DataKeysCallbacks } from '@home/components/widget/data-keys.component.models'; +import { DataKeyType } from '@shared/models/telemetry/telemetry.models'; +import { Observable } from 'rxjs'; +import { JsFuncComponent } from '@shared/components/js-func.component'; +import { WidgetService } from '@core/http/widget.service'; +import * as i0 from "@angular/core"; +export declare class DataKeyConfigComponent extends PageComponent implements OnInit, ControlValueAccessor, Validator { + protected store: Store; + private utils; + private entityService; + private dialog; + private translate; + private widgetService; + private fb; + dataKeyTypes: typeof DataKeyType; + entityAliasId: string; + callbacks: DataKeysCallbacks; + dataKeySettingsSchema: any; + showPostProcessing: boolean; + keyInput: ElementRef; + funcBodyEdit: JsFuncComponent; + postFuncBodyEdit: JsFuncComponent; + displayAdvanced: boolean; + modelValue: DataKey; + private propagateChange; + dataKeyFormGroup: FormGroup; + dataKeySettingsFormGroup: FormGroup; + private dataKeySettingsData; + private alarmKeys; + filteredKeys: Observable>; + private latestKeySearchResult; + private fetchObservable$; + keySearchText: string; + functionScopeVariables: string[]; + constructor(store: Store, utils: UtilsService, entityService: EntityService, dialog: MatDialog, translate: TranslateService, widgetService: WidgetService, fb: FormBuilder); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DataKey): void; + private updateModel; + clearKey(): void; + private fetchKeys; + private getKeys; + private createKeyFilter; + validateOnSubmit(): void; + validate(c: FormControl): { + dataKey: { + valid: boolean; + }; + dataKeySettings?: undefined; + } | { + dataKeySettings: { + valid: boolean; + }; + dataKey?: undefined; + }; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/data-keys.component.d.ts b/src/app/modules/home/components/widget/data-keys.component.d.ts new file mode 100644 index 00000000..40b59f65 --- /dev/null +++ b/src/app/modules/home/components/widget/data-keys.component.d.ts @@ -0,0 +1,96 @@ +import { AfterViewInit, ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { MatAutocomplete } from '@angular/material/autocomplete'; +import { MatChipInputEvent, MatChipList } from '@angular/material/chips'; +import { DataKeyType } from '@shared/models/telemetry/telemetry.models'; +import { DataKey, DatasourceType, widgetType } from '@shared/models/widget.models'; +import { IAliasController } from '@core/api/widget-api.models'; +import { DataKeysCallbacks } from './data-keys.component.models'; +import { UtilsService } from '@core/services/utils.service'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { TruncatePipe } from '@shared/pipe/truncate.pipe'; +import { DialogService } from '@core/services/dialog.service'; +import { MatDialog } from '@angular/material/dialog'; +import { MatChipDropEvent } from '@app/shared/components/mat-chip-draggable.directive'; +import * as i0 from "@angular/core"; +export declare class DataKeysComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnChanges, ErrorStateMatcher { + private store; + private errorStateMatcher; + translate: TranslateService; + private utils; + private dialogs; + private dialog; + private fb; + truncate: TruncatePipe; + datasourceTypes: typeof DatasourceType; + widgetTypes: typeof widgetType; + dataKeyTypes: typeof DataKeyType; + keysListFormGroup: FormGroup; + modelValue: Array | null; + widgetType: widgetType; + datasourceType: DatasourceType; + private maxDataKeysValue; + get maxDataKeys(): number; + set maxDataKeys(value: number); + optDataKeys: boolean; + aliasController: IAliasController; + datakeySettingsSchema: any; + callbacks: DataKeysCallbacks; + entityAliasId: string; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + keyInput: ElementRef; + matAutocomplete: MatAutocomplete; + chipList: MatChipList; + keys: Array; + filteredKeys: Observable>; + separatorKeysCodes: number[]; + alarmKeys: Array; + functionTypeKeys: Array; + dataKeyType: DataKeyType; + placeholder: string; + requiredText: string; + searchText: string; + private latestSearchTextResult; + private fetchObservable$; + private dirty; + private propagateChange; + constructor(store: Store, errorStateMatcher: ErrorStateMatcher, translate: TranslateService, utils: UtilsService, dialogs: DialogService, dialog: MatDialog, fb: FormBuilder, truncate: TruncatePipe); + updateValidators(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + maxDataKeysText(): string; + private updateParams; + private reset; + ngOnChanges(changes: SimpleChanges): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + ngAfterViewInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: Array | null): void; + onFocus(): void; + private addFromChipValue; + addKey(key: DataKey): void; + add(event: MatChipInputEvent): void; + remove(key: DataKey): void; + onChipDrop(event: MatChipDropEvent): void; + showColorPicker(key: DataKey): void; + editDataKey(key: DataKey, index: number): void; + createKey(name: string, dataKeyType?: DataKeyType): void; + displayKeyFn(key?: DataKey): string | undefined; + private fetchKeys; + private getKeys; + private createDataKeyFilter; + textIsNotEmpty(text: string): boolean; + clear(value?: string): void; + get isEntityCountDatasource(): boolean; + private clearSearchCache; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/data-keys.component.models.d.ts b/src/app/modules/home/components/widget/data-keys.component.models.d.ts new file mode 100644 index 00000000..0719cc4b --- /dev/null +++ b/src/app/modules/home/components/widget/data-keys.component.models.d.ts @@ -0,0 +1,7 @@ +import { DataKeyType } from '@shared/models/telemetry/telemetry.models'; +import { DataKey } from '@shared/models/widget.models'; +import { Observable } from 'rxjs'; +export interface DataKeysCallbacks { + generateDataKey: (chip: any, type: DataKeyType) => DataKey; + fetchEntityKeys: (entityAliasId: string, types: Array) => Observable>; +} diff --git a/src/app/modules/home/components/widget/dialog/custom-dialog-container.component.d.ts b/src/app/modules/home/components/widget/dialog/custom-dialog-container.component.d.ts new file mode 100644 index 00000000..ca6a2ffa --- /dev/null +++ b/src/app/modules/home/components/widget/dialog/custom-dialog-container.component.d.ts @@ -0,0 +1,26 @@ +import { MatDialogRef } from '@angular/material/dialog'; +import { ComponentFactory, OnDestroy, ViewContainerRef } from '@angular/core'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Router } from '@angular/router'; +import { CustomDialogComponent } from '@home/components/widget/dialog/custom-dialog.component'; +import * as i0 from "@angular/core"; +export interface CustomDialogContainerData { + controller: (instance: CustomDialogComponent) => void; + data?: any; + customComponentFactory: ComponentFactory; +} +export declare class CustomDialogContainerComponent extends DialogComponent implements OnDestroy { + protected store: Store; + protected router: Router; + viewContainerRef: ViewContainerRef; + dialogRef: MatDialogRef; + data: CustomDialogContainerData; + height: string; + private readonly customComponentRef; + constructor(store: Store, router: Router, viewContainerRef: ViewContainerRef, dialogRef: MatDialogRef, data: CustomDialogContainerData); + ngOnDestroy(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/dialog/custom-dialog.component.d.ts b/src/app/modules/home/components/widget/dialog/custom-dialog.component.d.ts new file mode 100644 index 00000000..da9cd474 --- /dev/null +++ b/src/app/modules/home/components/widget/dialog/custom-dialog.component.d.ts @@ -0,0 +1,25 @@ +import { MatDialogRef } from '@angular/material/dialog'; +import { InjectionToken } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Router } from '@angular/router'; +import { PageComponent } from '@shared/components/page.component'; +import { CustomDialogContainerComponent } from './custom-dialog-container.component'; +import { FormBuilder } from '@angular/forms'; +import * as i0 from "@angular/core"; +export declare const CUSTOM_DIALOG_DATA: InjectionToken; +export interface CustomDialogData { + controller: (instance: CustomDialogComponent) => void; + [key: string]: any; +} +export declare class CustomDialogComponent extends PageComponent { + protected store: Store; + protected router: Router; + dialogRef: MatDialogRef; + fb: FormBuilder; + data: CustomDialogData; + [key: string]: any; + constructor(store: Store, router: Router, dialogRef: MatDialogRef, fb: FormBuilder, data: CustomDialogData); + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} diff --git a/src/app/modules/home/components/widget/dialog/custom-dialog.service.d.ts b/src/app/modules/home/components/widget/dialog/custom-dialog.service.d.ts new file mode 100644 index 00000000..86285d97 --- /dev/null +++ b/src/app/modules/home/components/widget/dialog/custom-dialog.service.d.ts @@ -0,0 +1,20 @@ +import { Type } from '@angular/core'; +import { Observable } from 'rxjs'; +import { MatDialog } from '@angular/material/dialog'; +import { TranslateService } from '@ngx-translate/core'; +import { AuthService } from '@core/auth/auth.service'; +import { DynamicComponentFactoryService } from '@core/services/dynamic-component-factory.service'; +import { CustomDialogComponent } from './custom-dialog.component'; +import * as i0 from "@angular/core"; +export declare class CustomDialogService { + private translate; + private authService; + private dynamicComponentFactoryService; + private sharedModule; + private sharedHomeComponentsModule; + dialog: MatDialog; + constructor(translate: TranslateService, authService: AuthService, dynamicComponentFactoryService: DynamicComponentFactoryService, sharedModule: Type, sharedHomeComponentsModule: Type, dialog: MatDialog); + customDialog(template: string, controller: (instance: CustomDialogComponent) => void, data?: any): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/components/widget/dialog/embed-dashboard-dialog-token.d.ts b/src/app/modules/home/components/widget/dialog/embed-dashboard-dialog-token.d.ts new file mode 100644 index 00000000..2e00ecc8 --- /dev/null +++ b/src/app/modules/home/components/widget/dialog/embed-dashboard-dialog-token.d.ts @@ -0,0 +1,3 @@ +import { InjectionToken } from '@angular/core'; +import { ComponentType } from '@angular/cdk/portal'; +export declare const EMBED_DASHBOARD_DIALOG_TOKEN: InjectionToken>; diff --git a/src/app/modules/home/components/widget/dialog/embed-dashboard-dialog.component.d.ts b/src/app/modules/home/components/widget/dialog/embed-dashboard-dialog.component.d.ts new file mode 100644 index 00000000..c91f7f48 --- /dev/null +++ b/src/app/modules/home/components/widget/dialog/embed-dashboard-dialog.component.d.ts @@ -0,0 +1,33 @@ +import { OnInit, ViewContainerRef } from '@angular/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Dashboard } from '@shared/models/dashboard.models'; +import * as i0 from "@angular/core"; +export interface EmbedDashboardDialogData { + dashboard: Dashboard; + state: string; + title: string; + hideToolbar: boolean; + width?: number; + height?: number; +} +export declare class EmbedDashboardDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + data: EmbedDashboardDialogData; + dialogRef: MatDialogRef; + dashboardContentContainer: ViewContainerRef; + dashboard: Dashboard; + state: string; + title: string; + hideToolbar: boolean; + dialogStyle: any; + constructor(store: Store, router: Router, data: EmbedDashboardDialogData, dialogRef: MatDialogRef); + ngOnInit(): void; + close(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/dynamic-widget.component.d.ts b/src/app/modules/home/components/widget/dynamic-widget.component.d.ts new file mode 100644 index 00000000..45e4f0f7 --- /dev/null +++ b/src/app/modules/home/components/widget/dynamic-widget.component.d.ts @@ -0,0 +1,33 @@ +import { PageComponent } from '@shared/components/page.component'; +import { Injector, OnDestroy, OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { IDynamicWidgetComponent, WidgetContext } from '@home/models/widget-component.models'; +import { HttpErrorResponse } from '@angular/common/http'; +import { RafService } from '@core/services/raf.service'; +import { NotificationHorizontalPosition, NotificationType, NotificationVerticalPosition } from '@core/notification/notification.models'; +import { FormBuilder, Validators } from '@angular/forms'; +import * as i0 from "@angular/core"; +export declare class DynamicWidgetComponent extends PageComponent implements IDynamicWidgetComponent, OnInit, OnDestroy { + raf: RafService; + protected store: Store; + fb: FormBuilder; + readonly $injector: Injector; + readonly ctx: WidgetContext; + readonly errorMessages: string[]; + executingRpcRequest: boolean; + rpcEnabled: boolean; + rpcErrorText: string; + rpcRejection: HttpErrorResponse; + [key: string]: any; + validators: typeof Validators; + constructor(raf: RafService, store: Store, fb: FormBuilder, $injector: Injector, ctx: WidgetContext, errorMessages: string[]); + ngOnInit(): void; + ngOnDestroy(): void; + clearRpcError(): void; + showSuccessToast(message: string, duration?: number, verticalPosition?: NotificationVerticalPosition, horizontalPosition?: NotificationHorizontalPosition, target?: string): void; + showErrorToast(message: string, verticalPosition?: NotificationVerticalPosition, horizontalPosition?: NotificationHorizontalPosition, target?: string): void; + showToast(type: NotificationType, message: string, duration: number, verticalPosition?: NotificationVerticalPosition, horizontalPosition?: NotificationHorizontalPosition, target?: string): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} diff --git a/src/app/modules/home/components/widget/legend-config.component.d.ts b/src/app/modules/home/components/widget/legend-config.component.d.ts new file mode 100644 index 00000000..f500a309 --- /dev/null +++ b/src/app/modules/home/components/widget/legend-config.component.d.ts @@ -0,0 +1,29 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { LegendConfig, LegendDirection, LegendPosition } from '@shared/models/widget.models'; +import * as i0 from "@angular/core"; +export declare class LegendConfigComponent implements OnInit, OnDestroy, ControlValueAccessor { + private fb; + disabled: boolean; + legendConfigForm: FormGroup; + legendDirection: typeof LegendDirection; + legendDirections: string[]; + legendDirectionTranslations: Map; + legendPosition: typeof LegendPosition; + legendPositions: string[]; + legendPositionTranslations: Map; + private legendSettingsFormChanges$; + private legendSettingsFormDirectionChanges$; + private propagateChange; + constructor(fb: FormBuilder); + ngOnInit(): void; + private onDirectionChanged; + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(legendConfig: LegendConfig): void; + private legendConfigUpdated; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/legend.component.d.ts b/src/app/modules/home/components/widget/legend.component.d.ts new file mode 100644 index 00000000..615e8dd5 --- /dev/null +++ b/src/app/modules/home/components/widget/legend.component.d.ts @@ -0,0 +1,16 @@ +import { EventEmitter, OnInit } from '@angular/core'; +import { LegendConfig, LegendData, LegendKey } from '@shared/models/widget.models'; +import * as i0 from "@angular/core"; +export declare class LegendComponent implements OnInit { + legendConfig: LegendConfig; + legendData: LegendData; + legendKeyHiddenChange: EventEmitter; + displayHeader: boolean; + isHorizontal: boolean; + isRowDirection: boolean; + ngOnInit(): void; + toggleHideData(index: number): void; + legendKeys(): LegendKey[]; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/alarm-filter-panel.component.d.ts b/src/app/modules/home/components/widget/lib/alarm-filter-panel.component.d.ts new file mode 100644 index 00000000..6f4e8ca2 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/alarm-filter-panel.component.d.ts @@ -0,0 +1,33 @@ +import { InjectionToken } from '@angular/core'; +import { AlarmSearchStatus, AlarmSeverity } from '@shared/models/alarm.models'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { MatChipInputEvent } from '@angular/material/chips'; +import { OverlayRef } from '@angular/cdk/overlay'; +import * as i0 from "@angular/core"; +export declare const ALARM_FILTER_PANEL_DATA: InjectionToken; +export interface AlarmFilterPanelData { + statusList: AlarmSearchStatus[]; + severityList: AlarmSeverity[]; + typeList: string[]; +} +export declare class AlarmFilterPanelComponent { + data: AlarmFilterPanelData; + overlayRef: OverlayRef; + private fb; + readonly separatorKeysCodes: number[]; + alarmFilterFormGroup: FormGroup; + result: AlarmFilterPanelData; + alarmSearchStatuses: AlarmSearchStatus[]; + alarmSearchStatusTranslationMap: Map; + alarmSeverities: string[]; + alarmSeverityEnum: typeof AlarmSeverity; + alarmSeverityTranslationMap: Map; + constructor(data: AlarmFilterPanelData, overlayRef: OverlayRef, fb: FormBuilder); + alarmTypeList(): string[]; + removeAlarmType(type: string): void; + addAlarmType(event: MatChipInputEvent): void; + update(): void; + cancel(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/alarms-table-widget.component.d.ts b/src/app/modules/home/components/widget/lib/alarms-table-widget.component.d.ts new file mode 100644 index 00000000..956845f5 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/alarms-table-widget.component.d.ts @@ -0,0 +1,156 @@ +import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnInit, ViewContainerRef } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { DataKey, WidgetActionDescriptor } from '@shared/models/widget.models'; +import { IWidgetSubscription } from '@core/api/widget-api.models'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { CollectionViewer, DataSource, SelectionModel } from '@angular/cdk/collections'; +import { Observable } from 'rxjs'; +import { MatPaginator } from '@angular/material/paginator'; +import { MatSort, SortDirection } from '@angular/material/sort'; +import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; +import { EntityColumn, TableCellButtonActionDescriptor } from '@home/components/widget/lib/table-widget.models'; +import { Overlay } from '@angular/cdk/overlay'; +import { AlarmDataInfo } from '@shared/models/alarm.models'; +import { DatePipe } from '@angular/common'; +import { MatDialog } from '@angular/material/dialog'; +import { DialogService } from '@core/services/dialog.service'; +import { AlarmService } from '@core/http/alarm.service'; +import { AlarmData, AlarmDataPageLink, KeyFilter } from '@app/shared/models/query/query.models'; +import * as i0 from "@angular/core"; +interface AlarmWidgetActionDescriptor extends TableCellButtonActionDescriptor { + details?: boolean; + acknowledge?: boolean; + clear?: boolean; +} +export declare class AlarmsTableWidgetComponent extends PageComponent implements OnInit, AfterViewInit { + protected store: Store; + private elementRef; + private ngZone; + private overlay; + private viewContainerRef; + private utils; + translate: TranslateService; + private domSanitizer; + private datePipe; + private dialog; + private dialogService; + private alarmService; + private cd; + ctx: WidgetContext; + searchInputField: ElementRef; + paginator: MatPaginator; + sort: MatSort; + enableSelection: boolean; + displayPagination: boolean; + enableStickyHeader: boolean; + enableStickyAction: boolean; + pageSizeOptions: any; + pageLink: AlarmDataPageLink; + sortOrderProperty: string; + textSearchMode: boolean; + hidePageSize: boolean; + columns: Array; + displayedColumns: string[]; + alarmsDatasource: AlarmsDatasource; + noDataDisplayMessageText: string; + private setCellButtonAction; + private cellContentCache; + private cellStyleCache; + private rowStyleCache; + private settings; + private widgetConfig; + private subscription; + private widgetResize$; + private alarmsTitlePattern; + private displayDetails; + allowAcknowledgment: boolean; + private allowClear; + private defaultPageSize; + private defaultSortOrder; + private contentsInfo; + private stylesInfo; + private columnWidth; + private columnDefaultVisibility; + private columnSelectionAvailability; + private rowStylesInfo; + private widgetTimewindowChanged$; + private searchAction; + private columnDisplayAction; + private alarmFilterAction; + constructor(store: Store, elementRef: ElementRef, ngZone: NgZone, overlay: Overlay, viewContainerRef: ViewContainerRef, utils: UtilsService, translate: TranslateService, domSanitizer: DomSanitizer, datePipe: DatePipe, dialog: MatDialog, dialogService: DialogService, alarmService: AlarmService, cd: ChangeDetectorRef); + ngOnInit(): void; + ngOnDestroy(): void; + ngAfterViewInit(): void; + onDataUpdated(): void; + pageLinkSortDirection(): SortDirection; + private initializeConfig; + private updateTitle; + private updateAlarmSource; + private editColumnsToDisplay; + private editAlarmFilter; + private enterFilterMode; + exitFilterMode(): void; + private updateData; + trackByColumnDef(index: any, column: EntityColumn): string; + trackByAlarmId(index: number, alarm: AlarmData): string; + trackByActionCellDescriptionId(index: number, action: WidgetActionDescriptor): string; + headerStyle(key: EntityColumn): any; + rowStyle(alarm: AlarmDataInfo, row: number): any; + cellStyle(alarm: AlarmDataInfo, key: EntityColumn, row: number): any; + cellContent(alarm: AlarmDataInfo, key: EntityColumn, row: number): SafeHtml; + onRowClick($event: Event, alarm: AlarmDataInfo): void; + onActionButtonClick($event: Event, alarm: AlarmDataInfo, actionDescriptor: AlarmWidgetActionDescriptor): void; + actionEnabled(alarm: AlarmDataInfo, actionDescriptor: AlarmWidgetActionDescriptor): boolean; + private openAlarmDetails; + private ackAlarm; + ackAlarms($event: Event): void; + private clearAlarm; + clearAlarms($event: Event): void; + private defaultContent; + private defaultStyle; + isSorting(column: EntityColumn): boolean; + private clearCache; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +declare class AlarmsDatasource implements DataSource { + private subscription; + private dataKeys; + private ngZone; + private widgetContext; + private alarmsSubject; + private pageDataSubject; + selection: SelectionModel; + private selectionModeChanged; + selectionModeChanged$: Observable; + private currentAlarm; + dataLoading: boolean; + countCellButtonAction: number; + private appliedPageLink; + private appliedSortOrderLabel; + private reserveSpaceForHiddenAction; + private cellButtonActions; + private readonly usedShowCellActionFunction; + constructor(subscription: IWidgetSubscription, dataKeys: Array, ngZone: NgZone, widgetContext: WidgetContext, actionCellDescriptors: AlarmWidgetActionDescriptor[]); + connect(collectionViewer: CollectionViewer): Observable>; + disconnect(collectionViewer: CollectionViewer): void; + loadAlarms(pageLink: AlarmDataPageLink, sortOrderLabel: string, keyFilters: KeyFilter[]): void; + private clear; + updateAlarms(): void; + private alarmDataToInfo; + isAllSelected(): Observable; + isEmpty(): Observable; + total(): Observable; + toggleSelection(alarm: AlarmDataInfo): void; + isSelected(alarm: AlarmDataInfo): boolean; + clearSelection(): void; + masterToggle(): void; + toggleCurrentAlarm(alarm: AlarmDataInfo): boolean; + isCurrentAlarm(alarm: AlarmDataInfo): boolean; + private onSelectionModeChanged; +} +export {}; diff --git a/src/app/modules/home/components/widget/lib/analogue-compass.d.ts b/src/app/modules/home/components/widget/lib/analogue-compass.d.ts new file mode 100644 index 00000000..37ae1da4 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/analogue-compass.d.ts @@ -0,0 +1,13 @@ +import { WidgetContext } from '@home/models/widget-component.models'; +import * as CanvasGauges from 'canvas-gauges'; +import { AnalogueCompassSettings } from '@home/components/widget/lib/analogue-compass.models'; +import { JsonSettingsSchema } from '@shared/models/widget.models'; +import { TbBaseGauge } from '@home/components/widget/lib/analogue-gauge.models'; +import RadialGaugeOptions = CanvasGauges.RadialGaugeOptions; +import BaseGauge = CanvasGauges.BaseGauge; +export declare class TbAnalogueCompass extends TbBaseGauge { + static get settingsSchema(): JsonSettingsSchema; + constructor(ctx: WidgetContext, canvasId: string); + protected createGaugeOptions(gaugeElement: HTMLElement, settings: AnalogueCompassSettings): RadialGaugeOptions; + protected createGauge(gaugeData: RadialGaugeOptions): BaseGauge; +} diff --git a/src/app/modules/home/components/widget/lib/analogue-compass.models.d.ts b/src/app/modules/home/components/widget/lib/analogue-compass.models.d.ts new file mode 100644 index 00000000..c50b8ce8 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/analogue-compass.models.d.ts @@ -0,0 +1,23 @@ +import { JsonSettingsSchema } from '@shared/models/widget.models'; +import { FontSettings } from '@home/components/widget/lib/settings.models'; +import { AnimationRule, AnimationTarget } from '@home/components/widget/lib/analogue-gauge.models'; +export interface AnalogueCompassSettings { + majorTicks: string[]; + minorTicks: number; + showStrokeTicks: boolean; + needleCircleSize: number; + showBorder: boolean; + borderOuterWidth: number; + colorPlate: string; + colorMajorTicks: string; + colorMinorTicks: string; + colorNeedle: string; + colorNeedleCircle: string; + colorBorder: string; + majorTickFont: FontSettings; + animation: boolean; + animationDuration: number; + animationRule: AnimationRule; + animationTarget: AnimationTarget; +} +export declare const analogueCompassSettingsSchema: JsonSettingsSchema; diff --git a/src/app/modules/home/components/widget/lib/analogue-gauge.models.d.ts b/src/app/modules/home/components/widget/lib/analogue-gauge.models.d.ts new file mode 100644 index 00000000..7617421f --- /dev/null +++ b/src/app/modules/home/components/widget/lib/analogue-gauge.models.d.ts @@ -0,0 +1,60 @@ +import * as CanvasGauges from 'canvas-gauges'; +import { FontSettings } from '@home/components/widget/lib/settings.models'; +import { JsonSettingsSchema } from '@shared/models/widget.models'; +import { WidgetContext } from '@home/models/widget-component.models'; +import Highlight = CanvasGauges.Highlight; +import BaseGauge = CanvasGauges.BaseGauge; +import GenericOptions = CanvasGauges.GenericOptions; +export declare type AnimationRule = 'linear' | 'quad' | 'quint' | 'cycle' | 'bounce' | 'elastic' | 'dequad' | 'dequint' | 'decycle' | 'debounce' | 'delastic'; +export declare type AnimationTarget = 'needle' | 'plate'; +export interface AnalogueGaugeSettings { + minValue: number; + maxValue: number; + unitTitle: string; + showUnitTitle: boolean; + majorTicksCount: number; + minorTicks: number; + valueBox: boolean; + valueInt: number; + valueDec?: number; + units?: string; + defaultColor: string; + colorPlate: string; + colorMajorTicks: string; + colorMinorTicks: string; + colorNeedle: string; + colorNeedleEnd: string; + colorNeedleShadowUp: string; + colorNeedleShadowDown: string; + colorValueBoxRect: string; + colorValueBoxRectEnd: string; + colorValueBoxBackground: string; + colorValueBoxShadow: string; + highlights: Highlight[]; + highlightsWidth: number; + showBorder: boolean; + numbersFont: FontSettings; + titleFont: FontSettings; + unitsFont: FontSettings; + valueFont: FontSettings; + animation: boolean; + animationDuration: number; + animationRule: AnimationRule; +} +export declare const analogueGaugeSettingsSchema: JsonSettingsSchema; +export declare abstract class TbBaseGauge { + protected ctx: WidgetContext; + private gauge; + protected constructor(ctx: WidgetContext, canvasId: string); + protected abstract createGaugeOptions(gaugeElement: HTMLElement, settings: S): O; + protected abstract createGauge(gaugeData: O): BaseGauge; + update(): void; + mobileModeChanged(): void; + resize(): void; + destroy(): void; +} +export declare abstract class TbAnalogueGauge extends TbBaseGauge { + protected constructor(ctx: WidgetContext, canvasId: string); + protected createGaugeOptions(gaugeElement: HTMLElement, settings: S): O; + protected abstract prepareGaugeOptions(settings: S, gaugeData: O): any; +} diff --git a/src/app/modules/home/components/widget/lib/analogue-linear-gauge.d.ts b/src/app/modules/home/components/widget/lib/analogue-linear-gauge.d.ts new file mode 100644 index 00000000..7f35bbd6 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/analogue-linear-gauge.d.ts @@ -0,0 +1,13 @@ +import * as CanvasGauges from 'canvas-gauges'; +import { JsonSettingsSchema } from '@shared/models/widget.models'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { TbAnalogueGauge } from '@home/components/widget/lib/analogue-gauge.models'; +import { AnalogueLinearGaugeSettings } from '@home/components/widget/lib/analogue-linear-gauge.models'; +import LinearGaugeOptions = CanvasGauges.LinearGaugeOptions; +import BaseGauge = CanvasGauges.BaseGauge; +export declare class TbAnalogueLinearGauge extends TbAnalogueGauge { + static get settingsSchema(): JsonSettingsSchema; + constructor(ctx: WidgetContext, canvasId: string); + protected prepareGaugeOptions(settings: AnalogueLinearGaugeSettings, gaugeData: LinearGaugeOptions): void; + protected createGauge(gaugeData: LinearGaugeOptions): BaseGauge; +} diff --git a/src/app/modules/home/components/widget/lib/analogue-linear-gauge.models.d.ts b/src/app/modules/home/components/widget/lib/analogue-linear-gauge.models.d.ts new file mode 100644 index 00000000..7e3010d1 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/analogue-linear-gauge.models.d.ts @@ -0,0 +1,11 @@ +import { JsonSettingsSchema } from '@shared/models/widget.models'; +import { AnalogueGaugeSettings } from '@home/components/widget/lib/analogue-gauge.models'; +export interface AnalogueLinearGaugeSettings extends AnalogueGaugeSettings { + barStrokeWidth: number; + colorBarStroke: string; + colorBar: string; + colorBarEnd: string; + colorBarProgress: string; + colorBarProgressEnd: string; +} +export declare function getAnalogueLinearGaugeSettingsSchema(): JsonSettingsSchema; diff --git a/src/app/modules/home/components/widget/lib/analogue-radial-gauge.d.ts b/src/app/modules/home/components/widget/lib/analogue-radial-gauge.d.ts new file mode 100644 index 00000000..81cdb073 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/analogue-radial-gauge.d.ts @@ -0,0 +1,13 @@ +import * as CanvasGauges from 'canvas-gauges'; +import { AnalogueRadialGaugeSettings } from '@home/components/widget/lib/analogue-radial-gauge.models'; +import { JsonSettingsSchema } from '@shared/models/widget.models'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { TbAnalogueGauge } from '@home/components/widget/lib/analogue-gauge.models'; +import RadialGaugeOptions = CanvasGauges.RadialGaugeOptions; +import BaseGauge = CanvasGauges.BaseGauge; +export declare class TbAnalogueRadialGauge extends TbAnalogueGauge { + static get settingsSchema(): JsonSettingsSchema; + constructor(ctx: WidgetContext, canvasId: string); + protected prepareGaugeOptions(settings: AnalogueRadialGaugeSettings, gaugeData: RadialGaugeOptions): void; + protected createGauge(gaugeData: RadialGaugeOptions): BaseGauge; +} diff --git a/src/app/modules/home/components/widget/lib/analogue-radial-gauge.models.d.ts b/src/app/modules/home/components/widget/lib/analogue-radial-gauge.models.d.ts new file mode 100644 index 00000000..9ef0bf16 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/analogue-radial-gauge.models.d.ts @@ -0,0 +1,8 @@ +import { JsonSettingsSchema } from '@shared/models/widget.models'; +import { AnalogueGaugeSettings } from '@home/components/widget/lib/analogue-gauge.models'; +export interface AnalogueRadialGaugeSettings extends AnalogueGaugeSettings { + startAngle: number; + ticksAngle: number; + needleCircleSize: number; +} +export declare function getAnalogueRadialGaugeSettingsSchema(): JsonSettingsSchema; diff --git a/src/app/modules/home/components/widget/lib/canvas-digital-gauge.d.ts b/src/app/modules/home/components/widget/lib/canvas-digital-gauge.d.ts new file mode 100644 index 00000000..606270d7 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/canvas-digital-gauge.d.ts @@ -0,0 +1,96 @@ +import * as CanvasGauges from 'canvas-gauges'; +import { FontStyle, FontWeight } from '@home/components/widget/lib/settings.models'; +import { ColorFormats } from 'tinycolor2'; +import GenericOptions = CanvasGauges.GenericOptions; +import BaseGauge = CanvasGauges.BaseGauge; +export declare type GaugeType = 'arc' | 'donut' | 'horizontalBar' | 'verticalBar'; +export interface DigitalGaugeColorRange { + pct: number; + color: ColorFormats.RGBA; + rgbString: string; +} +export interface ColorLevelSetting { + value: number; + color: string; +} +export declare type levelColors = Array; +export interface CanvasDigitalGaugeOptions extends GenericOptions { + gaugeType?: GaugeType; + gaugeWithScale?: number; + dashThickness?: number; + roundedLineCap?: boolean; + gaugeColor?: string; + levelColors?: levelColors; + symbol?: string; + label?: string; + hideValue?: boolean; + hideMinMax?: boolean; + fontTitle?: string; + fontValue?: string; + fontMinMaxSize?: number; + fontMinMaxStyle?: FontStyle; + fontMinMaxWeight?: FontWeight; + colorMinMax?: string; + fontMinMax?: string; + fontLabelSize?: number; + fontLabelStyle?: FontStyle; + fontLabelWeight?: FontWeight; + colorLabel?: string; + colorValue?: string; + fontLabel?: string; + neonGlowBrightness?: number; + isMobile?: boolean; + donutStartAngle?: number; + donutEndAngle?: number; + colorsRange?: DigitalGaugeColorRange[]; + neonColorsRange?: DigitalGaugeColorRange[]; + neonColorTitle?: string; + neonColorLabel?: string; + neonColorValue?: string; + neonColorMinMax?: string; + timestamp?: number; + gaugeWidthScale?: number; + fontTitleHeight?: FontHeightInfo; + fontLabelHeight?: FontHeightInfo; + fontValueHeight?: FontHeightInfo; + fontMinMaxHeight?: FontHeightInfo; + ticksValue?: number[]; + ticks?: number[]; + colorTicks?: string; + tickWidth?: number; + showTimestamp?: boolean; +} +interface FontHeightInfo { + ascent?: number; + height?: number; + descent?: number; +} +export declare class Drawings { + static font(options: CanvasGauges.GenericOptions, target: string, baseSize: number): string; + static normalizedValue(options: CanvasGauges.GenericOptions): { + normal: number; + indented: number; + }; + static verifyError(err: any): void; +} +export declare class CanvasDigitalGauge extends BaseGauge { + static heightCache: { + [key: string]: FontHeightInfo; + }; + private elementValueClone; + private contextValueClone; + private elementProgressClone; + private contextProgressClone; + _value: number; + constructor(options: CanvasDigitalGaugeOptions); + static configure(options: CanvasDigitalGaugeOptions): CanvasDigitalGaugeOptions; + static normalizeValue(value: number, min: number, max: number): number; + private initValueClone; + destroy(): void; + update(options: GenericOptions): BaseGauge; + set timestamp(timestamp: number); + get timestamp(): number; + draw(): CanvasDigitalGauge; + getValueColor(): string; +} +export {}; diff --git a/src/app/modules/home/components/widget/lib/date-range-navigator/date-range-navigator.component.d.ts b/src/app/modules/home/components/widget/lib/date-range-navigator/date-range-navigator.component.d.ts new file mode 100644 index 00000000..983d00b2 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/date-range-navigator/date-range-navigator.component.d.ts @@ -0,0 +1,65 @@ +import { OnDestroy, OnInit, ViewContainerRef } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { UtilsService } from '@core/services/utils.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { DateIntervalEntry, DateRangeNavigatorModel, DateRangeNavigatorSettings } from '@home/components/widget/lib/date-range-navigator/date-range-navigator.models'; +import { KeyValue } from '@angular/common'; +import { Overlay, OverlayRef } from '@angular/cdk/overlay'; +import { MatSelect } from '@angular/material/select'; +import * as i0 from "@angular/core"; +export declare class DateRangeNavigatorWidgetComponent extends PageComponent implements OnInit, OnDestroy { + private utils; + private overlay; + private viewContainerRef; + protected store: Store; + ctx: WidgetContext; + datePickerSelect: MatSelect; + settings: DateRangeNavigatorSettings; + datesMap: { + [key: string]: DateIntervalEntry; + }; + advancedModel: DateRangeNavigatorModel; + selectedDateInterval: number; + customInterval: DateIntervalEntry; + selectedStepSize: number; + private firstUpdate; + private dashboardTimewindowChangedSubscription; + originalOrder: (a: KeyValue, b: KeyValue) => number; + constructor(utils: UtilsService, overlay: Overlay, viewContainerRef: ViewContainerRef, store: Store); + ngOnInit(): void; + ngOnDestroy(): void; + openNavigatorPanel($event: Event): void; + private widgetContextTimewindowSync; + private updateAdvancedModel; + private updateTimewindow; + private updateDateInterval; + triggerChange(): void; + changeInterval(): void; + goBack(): void; + goForth(): void; + private step; + private readFromStorage; + private updateStorageDate; + private saveIntoStorage; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export interface DateRangeNavigatorPanelData { + model: DateRangeNavigatorModel; + settings: DateRangeNavigatorSettings; + onChange: (model: DateRangeNavigatorModel) => void; +} +export declare class DateRangeNavigatorPanelComponent { + data: DateRangeNavigatorPanelData; + private overlayRef; + settings: DateRangeNavigatorSettings; + model: DateRangeNavigatorModel; + locale: any; + constructor(data: DateRangeNavigatorPanelData, overlayRef: OverlayRef); + choosedDate($event: any): void; + apply(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/date-range-navigator/date-range-navigator.models.d.ts b/src/app/modules/home/components/widget/lib/date-range-navigator/date-range-navigator.models.d.ts new file mode 100644 index 00000000..07b4af07 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/date-range-navigator/date-range-navigator.models.d.ts @@ -0,0 +1,29 @@ +import * as _moment from 'moment'; +export declare type DateRangeInterval = 'hour' | 'day' | 'week' | 'twoWeeks' | 'month' | 'threeMonths' | 'sixMonths'; +export interface DateRangeNavigatorSettings { + hidePicker: boolean; + onePanel: boolean; + autoConfirm: boolean; + showTemplate: boolean; + firstDayOfWeek: number; + hideInterval: boolean; + initialInterval: DateRangeInterval; + hideStepSize: boolean; + stepSize: DateRangeInterval; + hideLabels: boolean; + useSessionStorage: boolean; +} +export interface DateIntervalEntry { + ts: number; + label: string; +} +export interface DateRangeNavigatorModel { + chosenLabel?: string; + startDate?: _moment.Moment; + endDate?: _moment.Moment; +} +export declare function cloneDateRangeNavigatorModel(model: DateRangeNavigatorModel): DateRangeNavigatorModel; +export declare function getFormattedDate(model: DateRangeNavigatorModel): string; +export declare const dateIntervalsMap: { + [key: string]: DateIntervalEntry; +}; diff --git a/src/app/modules/home/components/widget/lib/digital-gauge.d.ts b/src/app/modules/home/components/widget/lib/digital-gauge.d.ts new file mode 100644 index 00000000..8329effa --- /dev/null +++ b/src/app/modules/home/components/widget/lib/digital-gauge.d.ts @@ -0,0 +1,26 @@ +import { WidgetContext } from '@home/models/widget-component.models'; +import { attributesGaugeType, AttributeSourceProperty, ColorLevelSetting, FixedLevelColors } from '@home/components/widget/lib/digital-gauge.models'; +import { Datasource, DatasourceData, JsonSettingsSchema } from '@shared/models/widget.models'; +import { IWidgetSubscription } from '@core/api/widget-api.models'; +import { Observable } from 'rxjs'; +export declare class TbCanvasDigitalGauge { + protected ctx: WidgetContext; + static get settingsSchema(): JsonSettingsSchema; + constructor(ctx: WidgetContext, canvasId: string); + private localSettings; + private levelColorsSourcesSubscription; + private ticksSourcesSubscription; + private gauge; + static generateDatasource(ctx: WidgetContext, datasources: Datasource[], entityAlias: string, attribute: string, settings: any): Datasource[]; + private static toRadians; + init(): void; + settingLevelColorsSubscribe(options: FixedLevelColors[]): ColorLevelSetting[]; + settingTicksSubscribe(options: AttributeSourceProperty[]): number[]; + subscribeAttributes(datasource: Datasource[], typeAttributes: attributesGaugeType): Observable; + updateAttribute(data: Array, typeAttributes: attributesGaugeType): void; + updateSetting(): void; + update(): void; + mobileModeChanged(): void; + resize(): void; + destroy(): void; +} diff --git a/src/app/modules/home/components/widget/lib/digital-gauge.models.d.ts b/src/app/modules/home/components/widget/lib/digital-gauge.models.d.ts new file mode 100644 index 00000000..4017c309 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/digital-gauge.models.d.ts @@ -0,0 +1,61 @@ +import { JsonSettingsSchema } from '@shared/models/widget.models'; +import { GaugeType } from '@home/components/widget/lib/canvas-digital-gauge'; +import { AnimationRule } from '@home/components/widget/lib/analogue-gauge.models'; +import { FontSettings } from '@home/components/widget/lib/settings.models'; +export interface AttributeSourceProperty { + valueSource: string; + entityAlias?: string; + attribute?: string; + value?: number; +} +export interface FixedLevelColors { + from?: AttributeSourceProperty; + to?: AttributeSourceProperty; + color: string; +} +export interface ColorLevelSetting { + value: number; + color: string; +} +export declare type colorLevel = Array; +export declare type attributesGaugeType = 'levelColors' | 'ticks'; +export interface DigitalGaugeSettings { + minValue?: number; + maxValue?: number; + gaugeType?: GaugeType; + donutStartAngle?: number; + neonGlowBrightness?: number; + dashThickness?: number; + roundedLineCap?: boolean; + title?: string; + showTitle?: boolean; + unitTitle?: string; + showUnitTitle?: boolean; + showTimestamp?: boolean; + timestampFormat?: string; + showValue?: boolean; + showMinMax?: boolean; + gaugeWidthScale?: number; + defaultColor?: string; + gaugeColor?: string; + useFixedLevelColor?: boolean; + levelColors?: colorLevel; + fixedLevelColors?: FixedLevelColors[]; + animation?: boolean; + animationDuration?: number; + animationRule?: AnimationRule; + titleFont?: FontSettings; + labelFont?: FontSettings; + valueFont?: FontSettings; + minMaxFont?: FontSettings; + decimals?: number; + units?: string; + hideValue?: boolean; + hideMinMax?: boolean; + showTicks?: boolean; + ticksValue?: AttributeSourceProperty[]; + ticks?: number[]; + colorTicks?: string; + tickWidth?: number; +} +export declare const digitalGaugeSettingsSchema: JsonSettingsSchema; diff --git a/src/app/modules/home/components/widget/lib/display-columns-panel.component.d.ts b/src/app/modules/home/components/widget/lib/display-columns-panel.component.d.ts new file mode 100644 index 00000000..602c6254 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/display-columns-panel.component.d.ts @@ -0,0 +1,16 @@ +import { InjectionToken } from '@angular/core'; +import { DisplayColumn } from '@home/components/widget/lib/table-widget.models'; +import * as i0 from "@angular/core"; +export declare const DISPLAY_COLUMNS_PANEL_DATA: InjectionToken; +export interface DisplayColumnsPanelData { + columns: DisplayColumn[]; + columnsUpdated: (columns: DisplayColumn[]) => void; +} +export declare class DisplayColumnsPanelComponent { + data: DisplayColumnsPanelData; + columns: DisplayColumn[]; + constructor(data: DisplayColumnsPanelData); + update(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/edges-overview-widget.component.d.ts b/src/app/modules/home/components/widget/lib/edges-overview-widget.component.d.ts new file mode 100644 index 00000000..c2946d90 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/edges-overview-widget.component.d.ts @@ -0,0 +1,39 @@ +import { ChangeDetectorRef, OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { UtilsService } from '@core/services/utils.service'; +import { LoadNodesCallback } from '@shared/components/nav-tree.component'; +import { EdgeService } from '@core/http/edge.service'; +import { EntityService } from '@core/http/entity.service'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class EdgesOverviewWidgetComponent extends PageComponent implements OnInit { + protected store: Store; + private edgeService; + private entityService; + private translateService; + private utils; + private cd; + ctx: WidgetContext; + toastTargetId: string; + customerTitle: string; + edgeIsDatasource: boolean; + private widgetConfig; + private subscription; + private datasources; + private settings; + private nodeIdCounter; + constructor(store: Store, edgeService: EdgeService, entityService: EntityService, translateService: TranslateService, utils: UtilsService, cd: ChangeDetectorRef); + ngOnInit(): void; + loadNodes: LoadNodesCallback; + private loadNodesForEdge; + private createEntityNode; + private entitiesToNodes; + private getCustomerTitle; + private initializeConfig; + private updateTitle; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/edges-overview-widget.models.d.ts b/src/app/modules/home/components/widget/lib/edges-overview-widget.models.d.ts new file mode 100644 index 00000000..e774466a --- /dev/null +++ b/src/app/modules/home/components/widget/lib/edges-overview-widget.models.d.ts @@ -0,0 +1,27 @@ +import { NavTreeNode } from '@shared/components/nav-tree.component'; +import { Datasource } from '@shared/models/widget.models'; +import { EntityType } from '@shared/models/entity-type.models'; +import { TranslateService } from '@ngx-translate/core'; +import { BaseData, HasId } from '@shared/models/base-data'; +export interface EntityNodeDatasource extends Datasource { + nodeId: string; +} +export declare function edgeGroupsNodeText(translate: TranslateService, entityType: EntityType): string; +export declare function entityNodeText(entity: any): string; +export declare function materialIconByEntityType(entityType: EntityType): string; +export declare function textForEdgeGroupsType(translate: TranslateService, entityType: EntityType): string; +export declare const edgeGroupsTypes: EntityType[]; +export interface EdgeOverviewNode extends NavTreeNode { + data?: EdgeOverviewNodeData; +} +export declare type EdgeOverviewNodeData = EdgeGroupNodeData | EntityNodeData; +export interface EdgeGroupNodeData extends BaseEdgeOverviewNodeData { + entityType: EntityType; + entity: BaseData; +} +export interface EntityNodeData extends BaseEdgeOverviewNodeData { + entity: BaseData; +} +export interface BaseEdgeOverviewNodeData { + internalId: string; +} diff --git a/src/app/modules/home/components/widget/lib/entities-hierarchy-widget.component.d.ts b/src/app/modules/home/components/widget/lib/entities-hierarchy-widget.component.d.ts new file mode 100644 index 00000000..75f57b7b --- /dev/null +++ b/src/app/modules/home/components/widget/lib/entities-hierarchy-widget.component.d.ts @@ -0,0 +1,60 @@ +import { AfterViewInit, ElementRef, OnInit, ViewContainerRef } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { UtilsService } from '@core/services/utils.service'; +import { Overlay } from '@angular/cdk/overlay'; +import { LoadNodesCallback, NavTreeEditCallbacks, NodeSearchCallback, NodeSelectedCallback, NodesInsertedCallback } from '@shared/components/nav-tree.component'; +import * as i0 from "@angular/core"; +export declare class EntitiesHierarchyWidgetComponent extends PageComponent implements OnInit, AfterViewInit { + protected store: Store; + private elementRef; + private overlay; + private viewContainerRef; + private utils; + ctx: WidgetContext; + searchInputField: ElementRef; + toastTargetId: string; + textSearchMode: boolean; + textSearch: any; + nodeEditCallbacks: NavTreeEditCallbacks; + private settings; + private widgetConfig; + private subscription; + private datasources; + private nodesMap; + private pendingUpdateNodeTasks; + private nodeIdCounter; + private nodeRelationQueryFunction; + private nodeIconFunction; + private nodeTextFunction; + private nodeDisabledFunction; + private nodeOpenedFunction; + private nodeHasChildrenFunction; + private nodesSortFunction; + private searchAction; + constructor(store: Store, elementRef: ElementRef, overlay: Overlay, viewContainerRef: ViewContainerRef, utils: UtilsService); + ngOnInit(): void; + ngAfterViewInit(): void; + onDataUpdated(): void; + private initializeConfig; + private enterFilterMode; + exitFilterMode(): void; + private updateSearchNodes; + private updateNodeData; + loadNodes: LoadNodesCallback; + onNodeSelected: NodeSelectedCallback; + onNodesInserted: NodesInsertedCallback; + searchCallback: NodeSearchCallback; + private updateNodeStyle; + private prepareNodes; + private prepareNodeText; + private prepareNodeIcon; + private datasourceToNode; + private loadChildren; + private prepareNodeRelationQuery; + private prepareNodeRelationsQueryFilter; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/entities-hierarchy-widget.models.d.ts b/src/app/modules/home/components/widget/lib/entities-hierarchy-widget.models.d.ts new file mode 100644 index 00000000..e2447a9f --- /dev/null +++ b/src/app/modules/home/components/widget/lib/entities-hierarchy-widget.models.d.ts @@ -0,0 +1,51 @@ +import { BaseData } from '@shared/models/base-data'; +import { EntityId } from '@shared/models/id/entity-id'; +import { NavTreeNode } from '@shared/components/nav-tree.component'; +import { Datasource } from '@shared/models/widget.models'; +import { EntityRelationsQuery } from '@shared/models/relation.models'; +export interface EntitiesHierarchyWidgetSettings { + nodeRelationQueryFunction: string; + nodeHasChildrenFunction: string; + nodeOpenedFunction: string; + nodeDisabledFunction: string; + nodeIconFunction: string; + nodeTextFunction: string; + nodesSortFunction: string; +} +export interface HierarchyNodeContext { + parentNodeCtx?: HierarchyNodeContext; + entity: BaseData; + childrenNodesLoaded?: boolean; + level?: number; + data: { + [key: string]: any; + }; +} +export interface HierarchyNavTreeNode extends NavTreeNode { + data?: { + datasource: HierarchyNodeDatasource; + nodeCtx: HierarchyNodeContext; + searchText?: string; + }; +} +export interface HierarchyNodeDatasource extends Datasource { + nodeId: string; +} +export interface HierarchyNodeIconInfo { + iconUrl?: string; + materialIcon?: string; +} +export declare type NodeRelationQueryFunction = (nodeCtx: HierarchyNodeContext) => EntityRelationsQuery | 'default'; +export declare type NodeTextFunction = (nodeCtx: HierarchyNodeContext) => string; +export declare type NodeDisabledFunction = (nodeCtx: HierarchyNodeContext) => boolean; +export declare type NodeIconFunction = (nodeCtx: HierarchyNodeContext) => HierarchyNodeIconInfo | 'default'; +export declare type NodeOpenedFunction = (nodeCtx: HierarchyNodeContext) => boolean; +export declare type NodeHasChildrenFunction = (nodeCtx: HierarchyNodeContext) => boolean; +export declare type NodesSortFunction = (nodeCtx1: HierarchyNodeContext, nodeCtx2: HierarchyNodeContext) => number; +export declare function loadNodeCtxFunction any>(functionBody: string, argNames: string, ...args: any[]): F; +export declare function materialIconHtml(materialIcon: string): string; +export declare function iconUrlHtml(iconUrl: string): string; +export declare const defaultNodeRelationQueryFunction: NodeRelationQueryFunction; +export declare const defaultNodeIconFunction: NodeIconFunction; +export declare const defaultNodeOpenedFunction: NodeOpenedFunction; +export declare const defaultNodesSortFunction: NodesSortFunction; diff --git a/src/app/modules/home/components/widget/lib/entities-table-widget.component.d.ts b/src/app/modules/home/components/widget/lib/entities-table-widget.component.d.ts new file mode 100644 index 00000000..6a9d1000 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/entities-table-widget.component.d.ts @@ -0,0 +1,121 @@ +import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnInit, ViewContainerRef } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { DataKey, WidgetActionDescriptor } from '@shared/models/widget.models'; +import { IWidgetSubscription } from '@core/api/widget-api.models'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { CollectionViewer, DataSource } from '@angular/cdk/collections'; +import { Observable } from 'rxjs'; +import { MatPaginator } from '@angular/material/paginator'; +import { MatSort, SortDirection } from '@angular/material/sort'; +import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; +import { EntityColumn, EntityData } from '@home/components/widget/lib/table-widget.models'; +import { Overlay } from '@angular/cdk/overlay'; +import { EntityDataPageLink, KeyFilter } from '@shared/models/query/query.models'; +import { DatePipe } from '@angular/common'; +import * as i0 from "@angular/core"; +export declare class EntitiesTableWidgetComponent extends PageComponent implements OnInit, AfterViewInit { + protected store: Store; + private elementRef; + private ngZone; + private overlay; + private viewContainerRef; + private utils; + private datePipe; + private translate; + private domSanitizer; + private cd; + ctx: WidgetContext; + searchInputField: ElementRef; + paginator: MatPaginator; + sort: MatSort; + displayPagination: boolean; + enableStickyHeader: boolean; + enableStickyAction: boolean; + pageSizeOptions: any; + pageLink: EntityDataPageLink; + sortOrderProperty: string; + textSearchMode: boolean; + hidePageSize: boolean; + columns: Array; + displayedColumns: string[]; + entityDatasource: EntityDatasource; + noDataDisplayMessageText: string; + private setCellButtonAction; + private cellContentCache; + private cellStyleCache; + private rowStyleCache; + private settings; + private widgetConfig; + private subscription; + private widgetResize$; + private entitiesTitlePattern; + private defaultPageSize; + private defaultSortOrder; + private contentsInfo; + private stylesInfo; + private columnWidth; + private columnDefaultVisibility; + private columnSelectionAvailability; + private rowStylesInfo; + private searchAction; + private columnDisplayAction; + constructor(store: Store, elementRef: ElementRef, ngZone: NgZone, overlay: Overlay, viewContainerRef: ViewContainerRef, utils: UtilsService, datePipe: DatePipe, translate: TranslateService, domSanitizer: DomSanitizer, cd: ChangeDetectorRef); + ngOnInit(): void; + ngOnDestroy(): void; + ngAfterViewInit(): void; + onDataUpdated(): void; + pageLinkSortDirection(): SortDirection; + private initializeConfig; + private updateTitle; + private updateDatasources; + private editColumnsToDisplay; + private enterFilterMode; + exitFilterMode(): void; + private updateData; + trackByColumnDef(index: any, column: EntityColumn): string; + trackByEntityId(index: number, entity: EntityData): string; + trackByActionCellDescriptionId(index: number, action: WidgetActionDescriptor): string; + headerStyle(key: EntityColumn): any; + rowStyle(entity: EntityData, row: number): any; + cellStyle(entity: EntityData, key: EntityColumn, row: number): any; + cellContent(entity: EntityData, key: EntityColumn, row: number): SafeHtml; + private defaultContent; + onRowClick($event: Event, entity: EntityData, isDouble?: boolean): void; + onActionButtonClick($event: Event, entity: EntityData, actionDescriptor: WidgetActionDescriptor): void; + private clearCache; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +declare class EntityDatasource implements DataSource { + private translate; + private dataKeys; + private subscription; + private ngZone; + private widgetContext; + private entitiesSubject; + private pageDataSubject; + private currentEntity; + dataLoading: boolean; + countCellButtonAction: number; + private appliedPageLink; + private appliedSortOrderLabel; + private reserveSpaceForHiddenAction; + private cellButtonActions; + private readonly usedShowCellActionFunction; + constructor(translate: TranslateService, dataKeys: Array, subscription: IWidgetSubscription, ngZone: NgZone, widgetContext: WidgetContext); + connect(collectionViewer: CollectionViewer): Observable>; + disconnect(collectionViewer: CollectionViewer): void; + loadEntities(pageLink: EntityDataPageLink, sortOrderLabel: string, keyFilters: KeyFilter[]): void; + private clear; + dataUpdated(): void; + private datasourceToEntityData; + isEmpty(): Observable; + total(): Observable; + toggleCurrentEntity(entity: EntityData): boolean; + isCurrentEntity(entity: EntityData): boolean; +} +export {}; diff --git a/src/app/modules/home/components/widget/lib/flot-widget.d.ts b/src/app/modules/home/components/widget/lib/flot-widget.d.ts new file mode 100644 index 00000000..15ef9dc3 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/flot-widget.d.ts @@ -0,0 +1,95 @@ +import { WidgetContext } from '@home/models/widget-component.models'; +import { JsonSettingsSchema } from '@app/shared/models/widget.models'; +import { ChartType } from './flot-widget.models'; +export declare class TbFlot { + private ctx; + private readonly chartType; + private readonly utils; + private settings; + private comparisonEnabled; + private tooltip; + private readonly yAxisTickFormatter; + private readonly yaxis; + private readonly xaxis; + private yaxes; + private readonly options; + private subscription; + private $element; + private readonly trackUnits; + private readonly trackDecimals; + private readonly tooltipIndividual; + private readonly tooltipCumulative; + private readonly hideZeros; + private readonly defaultBarWidth; + private thresholdsSourcesSubscription; + private predefinedThresholds; + private labelPatternsSourcesSubscription; + private labelPatternsSourcesData; + private plotInited; + private plot; + private createPlotTimeoutHandle; + private updateTimeoutHandle; + private resizeTimeoutHandle; + private mouseEventsEnabled; + private isMouseInteraction; + private flotHoverHandler; + private flotSelectHandler; + private dblclickHandler; + private mousedownHandler; + private mouseupHandler; + private mouseleaveHandler; + private flotClickHandler; + private readonly showTooltip; + private readonly animatedPie; + private pieDataAnimationDuration; + private pieData; + private pieRenderedData; + private pieTargetData; + private pieAnimationStartTime; + private pieAnimationLastTime; + private pieAnimationCaf; + static pieSettingsSchema(): JsonSettingsSchema; + static pieDatakeySettingsSchema(): JsonSettingsSchema; + static settingsSchema(chartType: ChartType): JsonSettingsSchema; + static datakeySettingsSchema(defaultShowLines: boolean, chartType: ChartType): JsonSettingsSchema; + constructor(ctx: WidgetContext, chartType: ChartType); + private init; + update(): void; + resize(): void; + checkMouseEvents(): void; + destroy(): void; + private cleanup; + private createPlot; + private updateData; + private redrawPlot; + private createYAxis; + private subscribeForThresholdsAttributes; + private thresholdsSourcesDataUpdated; + private generateThreshold; + private subscribeForLabelPatternsSources; + private labelPatternsParamsDataUpdated; + private substituteLabelPatterns; + private seriesInfoDiv; + private seriesInfoDivFromInfo; + private createTooltipElement; + private formatPieTooltip; + private formatChartTooltip; + private formatYAxisTicks; + private enableMouseEvents; + private disableMouseEvents; + private onFlotHover; + private onFlotSelect; + private onFlotDblClick; + private onFlotMouseDown; + private onFlotMouseUp; + private onFlotMouseLeave; + private onFlotClick; + private getHoverInfo; + private findHoverIndexFromData; + private findHoverIndexFromDataPoints; + pieDataRendered(): void; + nextPieDataAnimation(start: any): void; + onPieDataAnimation(): void; + private finishPieDataAnimation; + private onPieSliceClick; +} diff --git a/src/app/modules/home/components/widget/lib/flot-widget.models.d.ts b/src/app/modules/home/components/widget/lib/flot-widget.models.d.ts new file mode 100644 index 00000000..7e4c968a --- /dev/null +++ b/src/app/modules/home/components/widget/lib/flot-widget.models.d.ts @@ -0,0 +1,192 @@ +/// +/// +import { DataKey, Datasource, DatasourceData, JsonSettingsSchema } from '@shared/models/widget.models'; +import { DataKeyType } from '@shared/models/telemetry/telemetry.models'; +import { ComparisonDuration } from '@shared/models/time/time.models'; +export declare type ChartType = 'line' | 'pie' | 'bar' | 'state' | 'graph'; +export declare type TbFlotSettings = TbFlotBaseSettings & TbFlotGraphSettings & TbFlotBarSettings & TbFlotPieSettings; +export declare type TooltipValueFormatFunction = (value: any) => string; +export declare type TbFlotTicksFormatterFunction = (t: number, a?: TbFlotPlotAxis) => string; +export interface TbFlotSeries extends DatasourceData, JQueryPlotSeriesOptions { + dataKey: TbFlotDataKey; + xaxisIndex?: number; + yaxisIndex?: number; + yaxis?: number; +} +export interface TbFlotDataKey extends DataKey { + settings?: TbFlotKeySettings; + tooltipValueFormatFunction?: TooltipValueFormatFunction; +} +export interface TbFlotPlotAxis extends JQueryPlotAxis, TbFlotAxisOptions { + options: TbFlotAxisOptions; +} +export interface TbFlotAxisOptions extends JQueryPlotAxisOptions { + tickUnits?: string; + hidden?: boolean; + keysInfo?: Array<{ + hidden: boolean; + }>; + ticksFormatterFunction?: TbFlotTicksFormatterFunction; +} +export interface TbFlotPlotDataSeries extends JQueryPlotDataSeries { + datasource?: Datasource; + dataKey?: TbFlotDataKey; + percent?: number; +} +export interface TbFlotPlotItem extends jquery.flot.item { + series: TbFlotPlotDataSeries; +} +export interface TbFlotHoverInfo { + seriesHover: Array; + time?: any; +} +export interface TbFlotSeriesHoverInfo { + hoverIndex: number; + units: string; + decimals: number; + label: string; + color: string; + index: number; + tooltipValueFormatFunction: TooltipValueFormatFunction; + value: any; + time: any; + distance: number; +} +export interface TbFlotThresholdMarking { + lineWidth?: number; + color?: string; + [key: string]: any; +} +export interface TbFlotThresholdKeySettings { + yaxis: number; + lineWidth: number; + color: string; +} +export interface TbFlotGridSettings { + color: string; + backgroundColor: string; + tickColor: string; + outlineWidth: number; + verticalLines: boolean; + horizontalLines: boolean; + minBorderMargin: number; + margin: number; +} +export interface TbFlotXAxisSettings { + showLabels: boolean; + title: string; + color: boolean; +} +export interface TbFlotSecondXAxisSettings { + axisPosition: TbFlotXAxisPosition; + showLabels: boolean; + title: string; +} +export interface TbFlotYAxisSettings { + min: number; + max: number; + showLabels: boolean; + title: string; + color: string; + ticksFormatter: string; + tickDecimals: number; + tickSize: number; +} +export interface TbFlotBaseSettings { + stack: boolean; + shadowSize: number; + fontColor: string; + fontSize: number; + tooltipIndividual: boolean; + tooltipCumulative: boolean; + tooltipValueFormatter: string; + hideZeros: boolean; + grid: TbFlotGridSettings; + xaxis: TbFlotXAxisSettings; + yaxis: TbFlotYAxisSettings; +} +export interface TbFlotComparisonSettings { + comparisonEnabled: boolean; + timeForComparison: ComparisonDuration; + xaxisSecond: TbFlotSecondXAxisSettings; + comparisonCustomIntervalValue?: number; +} +export interface TbFlotThresholdsSettings { + thresholdsLineWidth: number; +} +export interface TbFlotCustomLegendSettings { + customLegendEnabled: boolean; + dataKeysListForLabels: Array; +} +export interface TbFlotLabelPatternSettings { + name: string; + type: DataKeyType; + settings?: any; +} +export interface TbFlotGraphSettings extends TbFlotBaseSettings, TbFlotThresholdsSettings, TbFlotComparisonSettings, TbFlotCustomLegendSettings { + smoothLines: boolean; +} +export declare type BarAlignment = 'left' | 'right' | 'center'; +export interface TbFlotBarSettings extends TbFlotBaseSettings, TbFlotThresholdsSettings, TbFlotComparisonSettings, TbFlotCustomLegendSettings { + defaultBarWidth: number; + barAlignment: BarAlignment; +} +export interface TbFlotPieSettings { + radius: number; + innerRadius: number; + tilt: number; + animatedPie: boolean; + stroke: { + color: string; + width: number; + }; + showTooltip: boolean; + showLabels: boolean; + fontColor: string; + fontSize: number; +} +export declare type TbFlotYAxisPosition = 'left' | 'right'; +export declare type TbFlotXAxisPosition = 'top' | 'bottom'; +export declare type TbFlotThresholdValueSource = 'predefinedValue' | 'entityAttribute'; +export interface TbFlotKeyThreshold { + thresholdValueSource: TbFlotThresholdValueSource; + thresholdEntityAlias: string; + thresholdAttribute: string; + thresholdValue: number; + lineWidth: number; + color: string; +} +export interface TbFlotKeyComparisonSettings { + showValuesForComparison: boolean; + comparisonValuesLabel: string; + color: string; +} +export interface TbFlotKeySettings { + excludeFromStacking: boolean; + hideDataByDefault: boolean; + disableDataHiding: boolean; + removeFromLegend: boolean; + showLines: boolean; + fillLines: boolean; + showPoints: boolean; + showPointShape: string; + pointShapeFormatter: string; + showPointsLineWidth: number; + showPointsRadius: number; + lineWidth: number; + tooltipValueFormatter: string; + showSeparateAxis: boolean; + axisMin: number; + axisMax: number; + axisTitle: string; + axisTickDecimals: number; + axisTickSize: number; + axisPosition: TbFlotYAxisPosition; + axisTicksFormatter: string; + thresholds: TbFlotKeyThreshold[]; + comparisonSettings: TbFlotKeyComparisonSettings; +} +export declare function flotSettingsSchema(chartType: ChartType): JsonSettingsSchema; +export declare const flotPieSettingsSchema: JsonSettingsSchema; +export declare const flotPieDatakeySettingsSchema: JsonSettingsSchema; +export declare function flotDatakeySettingsSchema(defaultShowLines: boolean, chartType: ChartType): JsonSettingsSchema; diff --git a/src/app/modules/home/components/widget/lib/gateway/gateway-form.component.d.ts b/src/app/modules/home/components/widget/lib/gateway/gateway-form.component.d.ts new file mode 100644 index 00000000..db5f00c0 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/gateway/gateway-form.component.d.ts @@ -0,0 +1,76 @@ +import { ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, NgForm } from '@angular/forms'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { UtilsService } from '@core/services/utils.service'; +import { SecurityType, StorageType } from './gateway-form.models'; +import { MatDialog } from '@angular/material/dialog'; +import { TranslateService } from '@ngx-translate/core'; +import { DeviceService } from '@core/http/device.service'; +import { AttributeService } from '@core/http/attribute.service'; +import { ImportExportService } from '@home/components/import-export/import-export.service'; +import * as i0 from "@angular/core"; +export declare class GatewayFormComponent extends PageComponent implements OnInit, OnDestroy { + protected store: Store; + private elementRef; + private utils; + private ngZone; + private fb; + private window; + private dialog; + private translate; + private deviceService; + private attributeService; + private importExport; + constructor(store: Store, elementRef: ElementRef, utils: UtilsService, ngZone: NgZone, fb: FormBuilder, window: Window, dialog: MatDialog, translate: TranslateService, deviceService: DeviceService, attributeService: AttributeService, importExport: ImportExportService); + get connectors(): FormArray; + formContainerRef: ElementRef; + multipleInputForm: NgForm; + private successfulSaved; + private gatewayNameExists; + private archiveFileName; + private formResize$; + private subscribeStorageType$; + private subscribeGateway$; + alignment: string; + layoutGap: string; + gatewayType: string; + gatewayConfigurationGroup: FormGroup; + securityTypes: Map; + gatewayLogLevels: any[]; + connectorTypes: string[]; + storageTypes: Map; + toastTargetId: string; + ctx: WidgetContext; + isStateForm: boolean; + isReadOnlyForm: boolean; + deviceNameForm: string; + ngOnInit(): void; + ngOnDestroy(): void; + private initWidgetSettings; + private resize; + private updateWidgetDisplaying; + private saveAttribute; + private createConnector; + private getFormField; + private buildForm; + gatewayExist(): void; + exportConfig(): void; + addNewConnector(): void; + removeConnector(index: number): void; + openConfigDialog($event: Event, index: number, config: object, type: string): void; + private createConnectorName; + private validateConnectorName; + changeConnectorType(connector: AbstractControl): void; + changeConnectorName(connector: AbstractControl, index: number): void; + save(): void; + private getAttributes; + private getAttribute; + private setFormGatewaySettings; + private setFormConnectorsDraft; + private processLoggingLevel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/gateway/gateway-form.models.d.ts b/src/app/modules/home/components/widget/lib/gateway/gateway-form.models.d.ts new file mode 100644 index 00000000..0354c66a --- /dev/null +++ b/src/app/modules/home/components/widget/lib/gateway/gateway-form.models.d.ts @@ -0,0 +1,127 @@ +import { AbstractControl, ValidationErrors } from '@angular/forms'; +import { EntityId } from '@shared/models/id/entity-id'; +export declare enum SecurityType { + tls = "tls", + accessToken = "accessToken" +} +export interface WidgetSetting { + widgetTitle: string; + gatewayTitle?: string; + readOnly?: boolean; + archiveFileName: string; + gatewayType: string; + successfulSave: string; + gatewayNameExists: string; +} +export declare const CURRENT_CONFIGURATION_ATTRIBUTE = "current_configuration"; +export declare const CONFIGURATION_DRAFT_ATTRIBUTE = "configuration_drafts"; +export declare const CONFIGURATION_ATTRIBUTE = "configuration"; +export declare const REMOTE_LOGGING_LEVEL_ATTRIBUTE = "RemoteLoggingLevel"; +export declare const SecurityTypeTranslationMap: Map; +export declare enum GatewayLogLevel { + none = "NONE", + critical = "CRITICAL", + error = "ERROR", + warning = "WARNING", + info = "INFO", + debug = "DEBUG" +} +export declare enum StorageType { + memory = "memory", + file = "file" +} +export declare const StorageTypeTranslationMap: Map; +export declare enum ConnectorType { + mqtt = "MQTT", + modbus = "Modbus", + opcua = "OPC-UA", + ble = "BLE", + request = "Request", + can = "CAN", + bacnet = "BACnet", + custom = "Custom" +} +export interface GatewayFormModels { + gateway?: string; + accessToken?: string; + securityType?: SecurityType; + host?: string; + port?: number; + remoteConfiguration?: boolean; + caCertPath?: string; + privateKeyPath?: string; + certPath?: string; + remoteLoggingLevel?: GatewayLogLevel; + remoteLoggingPathToLogs?: string; + storageType?: StorageType; + readRecordsCount?: number; + maxRecordsCount?: number; + maxFilesCount?: number; + dataFolderPath?: number; + connectors?: Array; +} +export interface GatewayFormConnectorModel { + config: object; + name: string; + configType: ConnectorType; + enabled: boolean; +} +export declare const DEFAULT_CONNECTOR: GatewayFormConnectorModel; +declare type Connector = { + [key in ConnectorType]?: Array; +}; +interface GatewaySetting extends Connector { + thingsboard: GatewayMainSetting; +} +interface ConnectorConfig { + name: string; + config: object; +} +interface GatewayMainSetting { + thingsboard: GatewayMainThingsboardSetting; + connectors: Array; + logs: string; + storage: GatewayStorage; +} +interface GatewayMainThingsboardSetting { + host: string; + remoteConfiguration: boolean; + port: number; + security: GatewaySecurity; +} +declare type GatewaySecurity = SecurityToken | SecurityCertificate; +interface SecurityToken { + accessToken: string; +} +interface SecurityCertificate { + caCert: string; + privateKey: string; + cert: string; +} +declare type GatewayStorage = GatewayStorageMemory | GatewayStorageFile; +interface GatewayStorageMemory { + type: string; + max_records_count: number; + read_records_count: number; +} +interface GatewayStorageFile { + type: string; + data_folder_path: number; + max_file_count: number; + max_read_records_count: number; + max_records_per_file: number; +} +interface GatewayMainConnector { + configuration: string; + name: string; + type: ConnectorType; +} +export declare function ValidateJSON(control: AbstractControl): ValidationErrors | null; +export declare function generateYAMLConfigFile(gatewaySetting: GatewayFormModels): string; +export declare function generateConnectorConfigFiles(fileZipAdd: object, connectors: Array): void; +export declare function generateLogConfigFile(fileZipAdd: object, logsLevel: string, logsPath: string): void; +export declare function getEntityId(gatewayId: string): EntityId; +export declare function createFormConfig(keyValue: GatewayMainSetting): GatewayFormModels; +export declare function getDraftConnectorsJSON(currentConnectors: Array): {}; +export declare function gatewayConfigJSON(gatewayConfiguration: GatewayFormModels): GatewaySetting; +export {}; diff --git a/src/app/modules/home/components/widget/lib/json-input-widget.component.d.ts b/src/app/modules/home/components/widget/lib/json-input-widget.component.d.ts new file mode 100644 index 00000000..f3d6351d --- /dev/null +++ b/src/app/modules/home/components/widget/lib/json-input-widget.component.d.ts @@ -0,0 +1,55 @@ +import { OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { AttributeService } from '@core/http/attribute.service'; +import { AttributeScope } from '@shared/models/telemetry/telemetry.models'; +import * as i0 from "@angular/core"; +declare enum JsonInputWidgetMode { + ATTRIBUTE = "ATTRIBUTE", + TIME_SERIES = "TIME_SERIES" +} +interface JsonInputWidgetSettings { + widgetTitle: string; + widgetMode: JsonInputWidgetMode; + attributeScope?: AttributeScope; + showLabel: boolean; + labelValue?: string; + attributeRequired: boolean; + showResultMessage: boolean; +} +export declare class JsonInputWidgetComponent extends PageComponent implements OnInit { + protected store: Store; + private utils; + private fb; + private attributeService; + private translate; + ctx: WidgetContext; + settings: JsonInputWidgetSettings; + private widgetConfig; + private subscription; + private datasource; + labelValue: string; + datasourceDetected: boolean; + errorMessage: string; + isFocused: boolean; + originalValue: any; + attributeUpdateFormGroup: FormGroup; + toastTargetId: string; + constructor(store: Store, utils: UtilsService, fb: FormBuilder, attributeService: AttributeService, translate: TranslateService); + ngOnInit(): void; + private initializeConfig; + private validateDatasources; + private buildForm; + private updateWidgetData; + onDataUpdated(): void; + save(): void; + discard(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export {}; diff --git a/src/app/modules/home/components/widget/lib/maps/common-maps-utils.d.ts b/src/app/modules/home/components/widget/lib/maps/common-maps-utils.d.ts new file mode 100644 index 00000000..f2471a71 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/common-maps-utils.d.ts @@ -0,0 +1,34 @@ +import { FormattedData, MapProviders, ReplaceInfo } from '@home/components/widget/lib/maps/map-models'; +import { Observable } from 'rxjs'; +import { Datasource, DatasourceData } from '@shared/models/widget.models'; +import L from 'leaflet'; +export declare function getProviderSchema(mapProvider: MapProviders, ignoreImageMap?: boolean): import("@shared/models/widget.models").JsonSettingsSchema; +export declare function getRatio(firsMoment: number, secondMoment: number, intermediateMoment: number): number; +export declare function interpolateOnLineSegment(pointA: FormattedData, pointB: FormattedData, latKeyName: string, lngKeyName: string, ratio: number): { + [key: string]: number; +}; +export declare function findAngle(startPoint: FormattedData, endPoint: FormattedData, latKeyName: string, lngKeyName: string): number; +export declare function getDefCenterPosition(position: any): any; +export declare function aspectCache(imageUrl: string): Observable; +export declare type TranslateFunc = (key: string, defaultTranslation?: string) => string; +export declare function processPattern(template: string, data: { + $datasource?: Datasource; + [key: string]: any; +}): Array; +export declare function fillPattern(markerLabelText: string, replaceInfoLabelMarker: Array, data: FormattedData): string; +export declare const parseWithTranslation: { + translateFn: any; + translate(key: string, defaultTranslation?: string): string; + parseTemplate(template: string, data: object, forceTranslate?: boolean): string; + prepareProcessPattern(template: string, forceTranslate?: boolean): string; + setTranslate(translateFn: TranslateFunc): void; +}; +export declare function parseData(input: DatasourceData[], dataIndex?: number): FormattedData[]; +export declare function flatData(input: FormattedData[]): FormattedData; +export declare function parseArray(input: DatasourceData[]): FormattedData[][]; +export declare function parseFunction(source: any, params?: string[]): (...args: any[]) => any; +export declare function safeExecute(func: (...args: any[]) => any, params?: any[]): any; +export declare function functionValueCalculator(useFunction: boolean, func: (...args: any[]) => any, params: any[], defaultValue: any): any; +export declare function calculateNewPointCoordinate(coordinate: number, imageSize: number): number; +export declare function createLoadingDiv(loadingText: string): JQuery; +export declare function checkLngLat(point: L.LatLng, southWest: L.LatLng, northEast: L.LatLng, offset?: number): L.LatLng; diff --git a/src/app/modules/home/components/widget/lib/maps/dialogs/select-entity-dialog.component.d.ts b/src/app/modules/home/components/widget/lib/maps/dialogs/select-entity-dialog.component.d.ts new file mode 100644 index 00000000..ef12ac67 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/dialogs/select-entity-dialog.component.d.ts @@ -0,0 +1,23 @@ +import { DialogComponent } from '@shared/components/dialog.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Router } from '@angular/router'; +import { MatDialogRef } from '@angular/material/dialog'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { FormattedData } from '@home/components/widget/lib/maps/map-models'; +import * as i0 from "@angular/core"; +export interface SelectEntityDialogData { + entities: FormattedData[]; +} +export declare class SelectEntityDialogComponent extends DialogComponent { + protected store: Store; + protected router: Router; + data: SelectEntityDialogData; + dialogRef: MatDialogRef; + fb: FormBuilder; + selectEntityFormGroup: FormGroup; + constructor(store: Store, router: Router, data: SelectEntityDialogData, dialogRef: MatDialogRef, fb: FormBuilder); + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/maps/leaflet-map.d.ts b/src/app/modules/home/components/widget/lib/maps/leaflet-map.d.ts new file mode 100644 index 00000000..999bff80 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/leaflet-map.d.ts @@ -0,0 +1,90 @@ +import L, { FeatureGroup, LatLngBounds, LatLngTuple } from 'leaflet'; +import 'leaflet-providers'; +import { MarkerClusterGroup } from 'leaflet.markercluster/dist/leaflet.markercluster'; +import '@geoman-io/leaflet-geoman-free'; +import { FormattedData, MapSettings, MarkerIconInfo, PolygonSettings, PolylineSettings, ReplaceInfo, UnitedMapSettings } from './map-models'; +import { Marker } from './markers'; +import { Observable } from 'rxjs'; +import { Polyline } from './polyline'; +import { Polygon } from './polygon'; +import { WidgetContext } from '@home/models/widget-component.models'; +export default abstract class LeafletMap { + ctx: WidgetContext; + $container: HTMLElement; + markers: Map; + polylines: Map; + polygons: Map; + map: L.Map; + options: UnitedMapSettings; + bounds: L.LatLngBounds; + datasources: FormattedData[]; + markersCluster: MarkerClusterGroup; + points: FeatureGroup; + markersData: FormattedData[]; + polygonsData: FormattedData[]; + defaultMarkerIconInfo: MarkerIconInfo; + loadingDiv: JQuery; + loading: boolean; + replaceInfoLabelMarker: Array; + markerLabelText: string; + polygonLabelText: string; + replaceInfoLabelPolygon: Array; + replaceInfoTooltipMarker: Array; + markerTooltipText: string; + drawRoutes: boolean; + showPolygon: boolean; + updatePending: boolean; + editPolygons: boolean; + selectedEntity: FormattedData; + addMarkers: L.Marker[]; + addPolygons: L.Polygon[]; + southWest: L.LatLng; + northEast: L.LatLng; + saveLocation: (e: FormattedData, values: { + [key: string]: any; + }) => Observable; + saveMarkerLocation: (e: FormattedData, lat?: number, lng?: number) => Observable; + savePolygonLocation: (e: FormattedData, coordinates?: Array) => Observable; + protected constructor(ctx: WidgetContext, $container: HTMLElement, options: UnitedMapSettings); + initSettings(options: MapSettings): void; + private selectEntityWithoutLocationDialog; + private selectEntityWithoutLocation; + private toggleDrawMode; + addEditControl(): void; + setLoading(loading: boolean): void; + setMap(map: L.Map): void; + createLatLng(lat: number, lng: number): L.LatLng; + createBounds(): L.LatLngBounds; + extendBounds(bounds: L.LatLngBounds, polyline: L.Polyline): void; + invalidateSize(): void; + onResize(): void; + getCenter(): L.LatLng; + fitBounds(bounds: LatLngBounds, padding?: LatLngTuple): void; + convertPosition(expression: object): L.LatLng; + convertPositionPolygon(expression: (LatLngTuple | LatLngTuple[] | LatLngTuple[][])[]): any; + convertToCustomFormat(position: L.LatLng, offset?: number): object; + convertToPolygonFormat(points: Array): Array; + convertPolygonToCustomFormat(expression: any[][]): { + [key: string]: any; + }; + updateData(drawRoutes: boolean, showPolygon: boolean): void; + private updateBoundsInternal; + updateMarkers(markersData: FormattedData[], updateBounds?: boolean, callback?: any): void; + dragMarker: (e: any, data?: FormattedData) => void; + private createMarker; + private updateMarker; + deleteMarker(key: string): Marker; + deletePolygon(key: string): L.Polygon; + updatePoints(pointsData: FormattedData[][], getTooltip: (point: FormattedData, points: FormattedData[]) => string): void; + updatePolylines(polyData: FormattedData[][], dsData: FormattedData[], updateBounds?: boolean): void; + createPolyline(data: FormattedData, tsData: FormattedData[], dsData: FormattedData[], settings: PolylineSettings, updateBounds?: boolean): void; + updatePolyline(data: FormattedData, tsData: FormattedData[], dsData: FormattedData[], settings: PolylineSettings, updateBounds?: boolean): void; + removePolyline(name: string): void; + isValidPolygonPosition(data: FormattedData): boolean; + updatePolygons(polyData: FormattedData[], updateBounds?: boolean): void; + dragPolygonVertex: (e?: any, data?: FormattedData) => void; + createPolygon(polyData: FormattedData, dataSources: FormattedData[], settings: UnitedMapSettings, updateBounds?: boolean): void; + updatePolygon(polyData: FormattedData, dataSources: FormattedData[], settings: PolygonSettings, updateBounds?: boolean): void; + removePolygon(name: string): void; + remove(): void; +} diff --git a/src/app/modules/home/components/widget/lib/maps/map-models.d.ts b/src/app/modules/home/components/widget/lib/maps/map-models.d.ts new file mode 100644 index 00000000..d60775fc --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/map-models.d.ts @@ -0,0 +1,224 @@ +import { Datasource } from '@app/shared/models/widget.models'; +import { EntityType } from '@shared/models/entity-type.models'; +import tinycolor from 'tinycolor2'; +import { BaseIconOptions, Icon } from 'leaflet'; +export declare const DEFAULT_MAP_PAGE_SIZE = 16384; +export declare const DEFAULT_ZOOM_LEVEL = 8; +export declare type GenericFunction = (data: FormattedData, dsData: FormattedData[], dsIndex: number) => string; +export declare type MarkerImageFunction = (data: FormattedData, dsData: FormattedData[], dsIndex: number) => MarkerImageInfo; +export declare type PosFuncton = (origXPos: any, origYPos: any) => { + x: any; + y: any; +}; +export declare type MarkerIconReadyFunction = (icon: MarkerIconInfo) => void; +export declare type MapSettings = { + draggableMarker: boolean; + editablePolygon: boolean; + posFunction: PosFuncton; + defaultZoomLevel?: number; + disableScrollZooming?: boolean; + disableZoomControl?: boolean; + minZoomLevel?: number; + useClusterMarkers: boolean; + latKeyName?: string; + lngKeyName?: string; + xPosKeyName?: string; + yPosKeyName?: string; + imageEntityAlias: string; + imageUrlAttribute: string; + mapProvider: MapProviders; + mapProviderHere: string; + mapUrl?: string; + mapImageUrl?: string; + provider?: MapProviders; + credentials?: any; + gmApiKey?: string; + defaultCenterPosition?: [number, number]; + markerClusteringSetting?: any; + useDefaultCenterPosition?: boolean; + gmDefaultMapType?: string; + useLabelFunction: boolean; + zoomOnClick: boolean; + maxZoom: number; + showCoverageOnHover: boolean; + animate: boolean; + maxClusterRadius: number; + spiderfyOnMaxZoom: boolean; + chunkedLoading: boolean; + removeOutsideVisibleBounds: boolean; + useCustomProvider: boolean; + customProviderTileUrl: string; + mapPageSize: number; +}; +export declare enum MapProviders { + google = "google-map", + openstreet = "openstreet-map", + here = "here", + image = "image-map", + tencent = "tencent-map" +} +export declare type MarkerImageInfo = { + url: string; + size: number; + markerOffset?: [number, number]; + tooltipOffset?: [number, number]; +}; +export declare type MarkerIconInfo = { + icon: Icon; + size: [number, number]; +}; +export declare type MarkerSettings = { + tooltipPattern?: any; + tooltipAction: { + [name: string]: actionsHandler; + }; + icon?: MarkerIconInfo; + showLabel?: boolean; + label: string; + labelColor: string; + labelText: string; + useLabelFunction: boolean; + draggableMarker: boolean; + showTooltip?: boolean; + useTooltipFunction: boolean; + useColorFunction: boolean; + color?: string; + tinyColor?: tinycolor.Instance; + autocloseTooltip: boolean; + showTooltipAction: string; + useClusterMarkers: boolean; + currentImage?: MarkerImageInfo; + useMarkerImageFunction?: boolean; + markerImages?: string[]; + markerImageSize: number; + fitMapBounds: boolean; + markerImage: string; + markerClick: { + [name: string]: actionsHandler; + }; + colorFunction: GenericFunction; + tooltipFunction: GenericFunction; + labelFunction: GenericFunction; + markerImageFunction?: MarkerImageFunction; + markerOffsetX: number; + markerOffsetY: number; + tooltipOffsetX: number; + tooltipOffsetY: number; +}; +export interface FormattedData { + $datasource: Datasource; + entityName: string; + entityId: string; + entityType: EntityType; + dsIndex: number; + deviceType: string; + [key: string]: any; +} +export interface ReplaceInfo { + variable: string; + valDec?: number; + dataKeyName: string; +} +export declare type PolygonSettings = { + showPolygon: boolean; + polygonKeyName: string; + polKeyName: string; + polygonStrokeOpacity: number; + polygonOpacity: number; + polygonStrokeWeight: number; + polygonStrokeColor: string; + polygonColor: string; + showPolygonLabel?: boolean; + polygonLabel: string; + polygonLabelColor: string; + polygonLabelText: string; + usePolygonLabelFunction: boolean; + showPolygonTooltip: boolean; + autocloseTooltip: boolean; + showTooltipAction: string; + tooltipAction: { + [name: string]: actionsHandler; + }; + polygonTooltipPattern: string; + usePolygonTooltipFunction: boolean; + polygonClick: { + [name: string]: actionsHandler; + }; + usePolygonColorFunction: boolean; + usePolygonStrokeColorFunction: boolean; + polygonTooltipFunction: GenericFunction; + polygonColorFunction?: GenericFunction; + polygonStrokeColorFunction?: GenericFunction; + polygonLabelFunction?: GenericFunction; + editablePolygon: boolean; +}; +export declare type PolylineSettings = { + usePolylineDecorator: any; + autocloseTooltip: boolean; + showTooltipAction: string; + useColorFunction: any; + tooltipAction: { + [name: string]: actionsHandler; + }; + color: string; + useStrokeOpacityFunction: any; + strokeOpacity: number; + useStrokeWeightFunction: any; + strokeWeight: number; + decoratorOffset: string | number; + endDecoratorOffset: string | number; + decoratorRepeat: string | number; + decoratorSymbol: any; + decoratorSymbolSize: any; + useDecoratorCustomColor: any; + decoratorCustomColor: any; + colorFunction: GenericFunction; + strokeOpacityFunction: GenericFunction; + strokeWeightFunction: GenericFunction; +}; +export interface EditorSettings { + snappable: boolean; + initDragMode: boolean; + hideAllControlButton: boolean; + hideDrawControlButton: boolean; + hideEditControlButton: boolean; + hideRemoveControlButton: boolean; +} +export interface HistorySelectSettings { + buttonColor: string; +} +export interface MapImage { + imageUrl: string; + aspect: number; + update?: boolean; +} +export interface TripAnimationSettings extends PolygonSettings { + showPoints: boolean; + pointColor: string; + pointSize: number; + pointTooltipOnRightPanel: boolean; + usePointAsAnchor: boolean; + normalizationStep: number; + showPolygon: boolean; + showLabel: boolean; + showTooltip: boolean; + latKeyName: string; + lngKeyName: string; + rotationAngle: number; + label: string; + tooltipPattern: string; + tooltipColor: string; + tooltipOpacity: number; + tooltipFontColor: string; + useTooltipFunction: boolean; + useLabelFunction: boolean; + pointAsAnchorFunction: GenericFunction; + tooltipFunction: GenericFunction; + labelFunction: GenericFunction; + useColorPointFunction: boolean; + colorPointFunction: GenericFunction; +} +export declare type actionsHandler = ($event: Event, datasource: Datasource) => void; +export declare type UnitedMapSettings = MapSettings & PolygonSettings & MarkerSettings & PolylineSettings & TripAnimationSettings & EditorSettings; +export declare const defaultSettings: any; +export declare const hereProviders: string[]; diff --git a/src/app/modules/home/components/widget/lib/maps/map-widget.interface.d.ts b/src/app/modules/home/components/widget/lib/maps/map-widget.interface.d.ts new file mode 100644 index 00000000..c71149c5 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/map-widget.interface.d.ts @@ -0,0 +1,14 @@ +import { JsonSettingsSchema } from '@shared/models/widget.models'; +import { MapProviders } from '@home/components/widget/lib/maps/map-models'; +export interface MapWidgetInterface { + map?: any; + resize(): any; + update(): any; + destroy(): any; +} +export interface MapWidgetStaticInterface { + settingsSchema(mapProvider?: MapProviders, drawRoutes?: boolean): JsonSettingsSchema; + getProvidersSchema(mapProvider?: MapProviders, ignoreImageMap?: boolean): JsonSettingsSchema; + dataKeySettingsSchema(): object; + actionSources(): object; +} diff --git a/src/app/modules/home/components/widget/lib/maps/map-widget2.d.ts b/src/app/modules/home/components/widget/lib/maps/map-widget2.d.ts new file mode 100644 index 00000000..3e438186 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/map-widget2.d.ts @@ -0,0 +1,39 @@ +import { FormattedData, MapProviders, UnitedMapSettings } from './map-models'; +import LeafletMap from './leaflet-map'; +import { MapWidgetInterface, MapWidgetStaticInterface } from './map-widget.interface'; +import { WidgetContext } from '@app/modules/home/models/widget-component.models'; +import { Datasource, DatasourceData, JsonSettingsSchema } from '@shared/models/widget.models'; +import { EntityDataPageLink } from '@shared/models/query/query.models'; +import { Observable } from 'rxjs'; +export declare class MapWidgetController implements MapWidgetInterface { + mapProvider: MapProviders; + private drawRoutes; + ctx: WidgetContext; + constructor(mapProvider: MapProviders, drawRoutes: boolean, ctx: WidgetContext, $element: HTMLElement, isEdit?: boolean); + map: LeafletMap; + provider: MapProviders; + schema: JsonSettingsSchema; + data: DatasourceData[]; + settings: UnitedMapSettings; + pageLink: EntityDataPageLink; + static dataKeySettingsSchema(): object; + static getProvidersSchema(mapProvider: MapProviders, ignoreImageMap?: boolean): JsonSettingsSchema; + static settingsSchema(mapProvider: MapProviders, drawRoutes: boolean): JsonSettingsSchema; + static actionSources(): object; + translate: (key: string, defaultTranslation?: string) => string; + getDescriptors(name: string): { + [name: string]: ($event: Event, datasource: Datasource) => void; + }; + onInit(): void; + private onCustomAction; + setMarkerLocation(e: FormattedData, lat?: number, lng?: number): Observable; + savePolygonLocation(e: FormattedData, coordinates?: Array): Observable; + saveLocation(e: FormattedData, values: { + [key: string]: any; + }): Observable; + initSettings(settings: UnitedMapSettings, isEditMap?: boolean): UnitedMapSettings; + update(): void; + resize(): void; + destroy(): void; +} +export declare let TbMapWidgetV2: MapWidgetStaticInterface; diff --git a/src/app/modules/home/components/widget/lib/maps/maps-utils.d.ts b/src/app/modules/home/components/widget/lib/maps/maps-utils.d.ts new file mode 100644 index 00000000..c9f425c1 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/maps-utils.d.ts @@ -0,0 +1,6 @@ +import L from 'leaflet'; +import { MarkerSettings, PolygonSettings, PolylineSettings } from './map-models'; +import { Datasource } from '@app/shared/models/widget.models'; +export declare function createTooltip(target: L.Layer, settings: MarkerSettings | PolylineSettings | PolygonSettings, datasource: Datasource, content?: string | HTMLElement): L.Popup; +export declare function bindPopupActions(popup: L.Popup, settings: MarkerSettings | PolylineSettings | PolygonSettings, datasource: Datasource): void; +export declare function isCutPolygon(data: any): boolean; diff --git a/src/app/modules/home/components/widget/lib/maps/markers.d.ts b/src/app/modules/home/components/widget/lib/maps/markers.d.ts new file mode 100644 index 00000000..794bbf46 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/markers.d.ts @@ -0,0 +1,31 @@ +import L from 'leaflet'; +import { FormattedData, MarkerIconInfo, MarkerIconReadyFunction, MarkerSettings, UnitedMapSettings } from './map-models'; +import tinycolor from 'tinycolor2'; +import LeafletMap from './leaflet-map'; +export declare class Marker { + private map; + private location; + settings: UnitedMapSettings; + leafletMarker: L.Marker; + labelOffset: L.LatLngTuple; + tooltipOffset: L.LatLngTuple; + markerOffset: L.LatLngTuple; + tooltip: L.Popup; + data: FormattedData; + dataSources: FormattedData[]; + constructor(map: LeafletMap, location: L.LatLng, settings: UnitedMapSettings, data?: FormattedData, dataSources?: any, onDragendListener?: any); + setDataSources(data: FormattedData, dataSources: FormattedData[]): void; + updateMarkerTooltip(data: FormattedData): void; + updateMarkerPosition(position: L.LatLng): void; + updateMarkerLabel(settings: MarkerSettings): void; + updateMarkerColor(color: any): void; + updateMarkerIcon(settings: MarkerSettings): void; + private createMarkerIcon; + createDefaultMarkerIcon(color: tinycolor.Instance, onMarkerIconReady: MarkerIconReadyFunction): void; + createColoredMarkerIcon(color: tinycolor.Instance): MarkerIconInfo; + createColorIconURI(color: tinycolor.Instance): string; + removeMarker(): void; + extendBoundsWithMarker(bounds: any): void; + getMarkerPosition(): L.LatLng; + setMarkerPosition(latLng: any): void; +} diff --git a/src/app/modules/home/components/widget/lib/maps/polygon.d.ts b/src/app/modules/home/components/widget/lib/maps/polygon.d.ts new file mode 100644 index 00000000..e268997d --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/polygon.d.ts @@ -0,0 +1,22 @@ +import L, { LatLngExpression } from 'leaflet'; +import { FormattedData, PolygonSettings, UnitedMapSettings } from './map-models'; +export declare class Polygon { + map: any; + private settings; + private onDragendListener?; + leafletPoly: L.Polygon; + tooltip: L.Popup; + data: FormattedData; + dataSources: FormattedData[]; + constructor(map: any, data: FormattedData, dataSources: FormattedData[], settings: UnitedMapSettings, onDragendListener?: any); + private createEventListeners; + updateTooltip(data: FormattedData): void; + updateLabel(settings: PolygonSettings): void; + updatePolygon(data: FormattedData, dataSources: FormattedData[], settings: PolygonSettings): void; + removePolygon(): void; + updatePolygonColor(settings: PolygonSettings): void; + getPolygonLatLngs(): L.LatLng[] | L.LatLng[][] | L.LatLng[][][]; + setPolygonLatLngs(latLngs: LatLngExpression[]): void; + private getPolygonColor; + private getPolygonStrokeColor; +} diff --git a/src/app/modules/home/components/widget/lib/maps/polyline.d.ts b/src/app/modules/home/components/widget/lib/maps/polyline.d.ts new file mode 100644 index 00000000..0758efdb --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/polyline.d.ts @@ -0,0 +1,16 @@ +import L, { PolylineDecorator, PolylineDecoratorOptions } from 'leaflet'; +import 'leaflet-polylinedecorator'; +import { FormattedData, PolylineSettings } from './map-models'; +export declare class Polyline { + private map; + leafletPoly: L.Polyline; + polylineDecorator: PolylineDecorator; + dataSources: FormattedData[]; + data: FormattedData; + constructor(map: L.Map, locations: L.LatLng[], data: FormattedData, dataSources: FormattedData[], settings: PolylineSettings); + getDecoratorSettings(settings: PolylineSettings): PolylineDecoratorOptions; + updatePolyline(locations: L.LatLng[], data: FormattedData, dataSources: FormattedData[], settings: PolylineSettings): void; + getPolyStyle(settings: PolylineSettings): L.PolylineOptions; + removePolyline(): void; + getPolylineLatLngs(): L.LatLng[] | L.LatLng[][] | L.LatLng[][][]; +} diff --git a/src/app/modules/home/components/widget/lib/maps/providers/google-map.d.ts b/src/app/modules/home/components/widget/lib/maps/providers/google-map.d.ts new file mode 100644 index 00000000..5401eded --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/providers/google-map.d.ts @@ -0,0 +1,9 @@ +import LeafletMap from '../leaflet-map'; +import { UnitedMapSettings } from '../map-models'; +import 'leaflet.gridlayer.googlemutant'; +import { WidgetContext } from '@home/models/widget-component.models'; +export declare class GoogleMap extends LeafletMap { + private resource; + constructor(ctx: WidgetContext, $container: any, options: UnitedMapSettings); + private loadGoogle; +} diff --git a/src/app/modules/home/components/widget/lib/maps/providers/here-map.d.ts b/src/app/modules/home/components/widget/lib/maps/providers/here-map.d.ts new file mode 100644 index 00000000..2133707a --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/providers/here-map.d.ts @@ -0,0 +1,6 @@ +import LeafletMap from '../leaflet-map'; +import { UnitedMapSettings } from '../map-models'; +import { WidgetContext } from '@home/models/widget-component.models'; +export declare class HEREMap extends LeafletMap { + constructor(ctx: WidgetContext, $container: any, options: UnitedMapSettings); +} diff --git a/src/app/modules/home/components/widget/lib/maps/providers/image-map.d.ts b/src/app/modules/home/components/widget/lib/maps/providers/image-map.d.ts new file mode 100644 index 00000000..c6d617a4 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/providers/image-map.d.ts @@ -0,0 +1,31 @@ +import L, { LatLngBounds, LatLngLiteral, LatLngTuple } from 'leaflet'; +import LeafletMap from '../leaflet-map'; +import { PosFuncton, UnitedMapSettings } from '../map-models'; +import { WidgetContext } from '@home/models/widget-component.models'; +export declare class ImageMap extends LeafletMap { + imageOverlay: L.ImageOverlay; + aspect: number; + width: number; + height: number; + imageUrl: string; + posFunction: PosFuncton; + constructor(ctx: WidgetContext, $container: HTMLElement, options: UnitedMapSettings); + private mapImage; + private imageFromUrl; + private imageFromAlias; + updateBounds(updateImage?: boolean, lastCenterPos?: any): void; + onResize(updateImage?: boolean): void; + fitBounds(bounds: LatLngBounds, padding?: LatLngTuple): void; + initMap(updateImage?: boolean): void; + convertPosition(expression: any): L.LatLng; + convertPositionPolygon(expression: (LatLngTuple | LatLngTuple[] | LatLngTuple[][])[]): any; + pointToLatLng(x: any, y: any): L.LatLng; + latLngToPoint(latLng: LatLngLiteral): L.Point; + convertToCustomFormat(position: L.LatLng, offset?: number, width?: number, height?: number): { + [key: string]: any; + }; + convertToPolygonFormat(points: Array, width?: number, height?: number): Array; + convertPolygonToCustomFormat(expression: any[][]): { + [key: string]: any; + }; +} diff --git a/src/app/modules/home/components/widget/lib/maps/providers/index.d.ts b/src/app/modules/home/components/widget/lib/maps/providers/index.d.ts new file mode 100644 index 00000000..c9ad31b7 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/providers/index.d.ts @@ -0,0 +1,5 @@ +import { Type } from '@angular/core'; +import LeafletMap from '@home/components/widget/lib/maps/leaflet-map'; +export declare const providerClass: { + [key: string]: Type; +}; diff --git a/src/app/modules/home/components/widget/lib/maps/providers/openstreet-map.d.ts b/src/app/modules/home/components/widget/lib/maps/providers/openstreet-map.d.ts new file mode 100644 index 00000000..f4e1c0bf --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/providers/openstreet-map.d.ts @@ -0,0 +1,6 @@ +import LeafletMap from '../leaflet-map'; +import { UnitedMapSettings } from '../map-models'; +import { WidgetContext } from '@home/models/widget-component.models'; +export declare class OpenStreetMap extends LeafletMap { + constructor(ctx: WidgetContext, $container: any, options: UnitedMapSettings); +} diff --git a/src/app/modules/home/components/widget/lib/maps/providers/tencent-map.d.ts b/src/app/modules/home/components/widget/lib/maps/providers/tencent-map.d.ts new file mode 100644 index 00000000..20cbd22a --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/providers/tencent-map.d.ts @@ -0,0 +1,6 @@ +import LeafletMap from '../leaflet-map'; +import { UnitedMapSettings } from '../map-models'; +import { WidgetContext } from '@home/models/widget-component.models'; +export declare class TencentMap extends LeafletMap { + constructor(ctx: WidgetContext, $container: any, options: UnitedMapSettings); +} diff --git a/src/app/modules/home/components/widget/lib/maps/schemes.d.ts b/src/app/modules/home/components/widget/lib/maps/schemes.d.ts new file mode 100644 index 00000000..bd42b049 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/maps/schemes.d.ts @@ -0,0 +1,974 @@ +import { JsonSettingsSchema } from '@shared/models/widget.models'; +export declare const googleMapSettingsSchema: { + schema: { + title: string; + type: string; + properties: { + gmApiKey: { + title: string; + type: string; + default: string; + }; + gmDefaultMapType: { + title: string; + type: string; + default: string; + }; + }; + required: any[]; + }; + form: (string | { + key: string; + type: string; + multiple: boolean; + items: { + value: string; + label: string; + }[]; + })[]; +}; +export declare const tencentMapSettingsSchema: { + schema: { + title: string; + type: string; + properties: { + tmApiKey: { + title: string; + type: string; + default: string; + }; + tmDefaultMapType: { + title: string; + type: string; + default: string; + }; + }; + required: any[]; + }; + form: (string | { + key: string; + type: string; + multiple: boolean; + items: { + value: string; + label: string; + }[]; + })[]; +}; +export declare const hereMapSettingsSchema: { + schema: { + title: string; + type: string; + properties: { + mapProviderHere: { + title: string; + type: string; + default: string; + }; + credentials: { + type: string; + title: string; + properties: { + app_id: { + title: string; + type: string; + default: string; + }; + app_code: { + title: string; + type: string; + default: string; + }; + }; + required: string[]; + }; + }; + required: any[]; + }; + form: (string | { + key: string; + type: string; + multiple: boolean; + items: { + value: string; + label: string; + }[]; + })[]; +}; +export declare const openstreetMapSettingsSchema: { + schema: { + title: string; + type: string; + properties: { + mapProvider: { + title: string; + type: string; + default: string; + }; + useCustomProvider: { + title: string; + type: string; + default: boolean; + }; + customProviderTileUrl: { + title: string; + type: string; + default: string; + }; + }; + required: any[]; + }; + form: (string | { + key: string; + type: string; + multiple: boolean; + items: { + value: string; + label: string; + }[]; + condition?: undefined; + } | { + key: string; + condition: string; + type?: undefined; + multiple?: undefined; + items?: undefined; + })[]; +}; +export declare const commonMapSettingsSchema: { + schema: { + title: string; + type: string; + properties: { + defaultZoomLevel: { + title: string; + type: string; + }; + useDefaultCenterPosition: { + title: string; + type: string; + default: boolean; + }; + mapPageSize: { + title: string; + type: string; + default: number; + }; + defaultCenterPosition: { + title: string; + type: string; + default: string; + }; + fitMapBounds: { + title: string; + type: string; + default: boolean; + }; + draggableMarker: { + title: string; + type: string; + default: boolean; + }; + disableScrollZooming: { + title: string; + type: string; + default: boolean; + }; + disableZoomControl: { + title: string; + type: string; + default: boolean; + }; + latKeyName: { + title: string; + type: string; + default: string; + }; + lngKeyName: { + title: string; + type: string; + default: string; + }; + xPosKeyName: { + title: string; + type: string; + default: string; + }; + yPosKeyName: { + title: string; + type: string; + default: string; + }; + showLabel: { + title: string; + type: string; + default: boolean; + }; + label: { + title: string; + type: string; + default: string; + }; + useLabelFunction: { + title: string; + type: string; + default: boolean; + }; + labelFunction: { + title: string; + type: string; + }; + showTooltip: { + title: string; + type: string; + default: boolean; + }; + showTooltipAction: { + title: string; + type: string; + default: string; + }; + autocloseTooltip: { + title: string; + type: string; + default: boolean; + }; + tooltipPattern: { + title: string; + type: string; + default: string; + }; + useTooltipFunction: { + title: string; + type: string; + default: boolean; + }; + tooltipFunction: { + title: string; + type: string; + }; + posFunction: { + title: string; + type: string; + default: string; + }; + markerOffsetX: { + title: string; + type: string; + default: number; + }; + markerOffsetY: { + title: string; + type: string; + default: number; + }; + tooltipOffsetX: { + title: string; + type: string; + default: number; + }; + tooltipOffsetY: { + title: string; + type: string; + default: number; + }; + color: { + title: string; + type: string; + }; + useColorFunction: { + title: string; + type: string; + default: boolean; + }; + colorFunction: { + title: string; + type: string; + }; + markerImage: { + title: string; + type: string; + }; + markerImageSize: { + title: string; + type: string; + default: number; + }; + useMarkerImageFunction: { + title: string; + type: string; + default: boolean; + }; + markerImageFunction: { + title: string; + type: string; + }; + markerImages: { + title: string; + type: string; + items: { + title: string; + type: string; + }; + }; + }; + required: any[]; + }; + form: (string | { + key: string; + condition: string; + type?: undefined; + helpId?: undefined; + multiple?: undefined; + items?: undefined; + } | { + key: string; + type: string; + helpId: string; + condition: string; + multiple?: undefined; + items?: undefined; + } | { + key: string; + type: string; + multiple: boolean; + items: { + value: string; + label: string; + }[]; + condition: string; + helpId?: undefined; + } | { + key: string; + type: string; + condition: string; + helpId?: undefined; + multiple?: undefined; + items?: undefined; + } | { + key: string; + type: string; + condition?: undefined; + helpId?: undefined; + multiple?: undefined; + items?: undefined; + } | { + key: string; + items: { + key: string; + type: string; + }[]; + condition: string; + type?: undefined; + helpId?: undefined; + multiple?: undefined; + })[]; +}; +export declare const mapPolygonSchema: { + schema: { + title: string; + type: string; + properties: { + showPolygon: { + title: string; + type: string; + default: boolean; + }; + polygonKeyName: { + title: string; + type: string; + default: string; + }; + editablePolygon: { + title: string; + type: string; + default: boolean; + }; + showPolygonLabel: { + title: string; + type: string; + default: boolean; + }; + polygonLabel: { + title: string; + type: string; + default: string; + }; + usePolygonLabelFunction: { + title: string; + type: string; + default: boolean; + }; + polygonLabelFunction: { + title: string; + type: string; + }; + polygonColor: { + title: string; + type: string; + }; + polygonOpacity: { + title: string; + type: string; + default: number; + }; + polygonStrokeColor: { + title: string; + type: string; + }; + polygonStrokeOpacity: { + title: string; + type: string; + default: number; + }; + polygonStrokeWeight: { + title: string; + type: string; + default: number; + }; + showPolygonTooltip: { + title: string; + type: string; + default: boolean; + }; + polygonTooltipPattern: { + title: string; + type: string; + default: string; + }; + usePolygonTooltipFunction: { + title: string; + type: string; + default: boolean; + }; + polygonTooltipFunction: { + title: string; + type: string; + }; + usePolygonColorFunction: { + title: string; + type: string; + default: boolean; + }; + polygonColorFunction: { + title: string; + type: string; + }; + usePolygonStrokeColorFunction: { + title: string; + type: string; + default: boolean; + }; + polygonStrokeColorFunction: { + title: string; + type: string; + }; + }; + required: any[]; + }; + form: (string | { + key: string; + condition: string; + type?: undefined; + helpId?: undefined; + } | { + key: string; + type: string; + helpId: string; + condition: string; + } | { + key: string; + type: string; + condition?: undefined; + helpId?: undefined; + } | { + key: string; + type: string; + condition: string; + helpId?: undefined; + })[]; +}; +export declare const routeMapSettingsSchema: { + schema: { + title: string; + type: string; + properties: { + strokeWeight: { + title: string; + type: string; + default: number; + }; + strokeOpacity: { + title: string; + type: string; + default: number; + }; + }; + required: any[]; + }; + form: string[]; +}; +export declare const markerClusteringSettingsSchema: { + schema: { + title: string; + type: string; + properties: { + useClusterMarkers: { + title: string; + type: string; + default: boolean; + }; + }; + required: any[]; + }; + form: { + key: string; + condition: string; + }[]; +}; +export declare const markerClusteringSettingsSchemaLeaflet: { + schema: { + title: string; + type: string; + properties: { + zoomOnClick: { + title: string; + type: string; + default: boolean; + }; + maxZoom: { + title: string; + type: string; + }; + showCoverageOnHover: { + title: string; + type: string; + default: boolean; + }; + animate: { + title: string; + type: string; + default: boolean; + }; + maxClusterRadius: { + title: string; + type: string; + default: number; + }; + spiderfyOnMaxZoom: { + title: string; + type: string; + default: boolean; + }; + chunkedLoading: { + title: string; + type: string; + default: boolean; + }; + removeOutsideVisibleBounds: { + title: string; + type: string; + default: boolean; + }; + }; + required: any[]; + }; + form: string[]; +}; +export declare const imageMapSettingsSchema: { + schema: { + title: string; + type: string; + properties: { + mapImageUrl: { + title: string; + type: string; + default: string; + }; + imageEntityAlias: { + title: string; + type: string; + default: string; + }; + imageUrlAttribute: { + title: string; + type: string; + default: string; + }; + }; + required: any[]; + }; + form: (string | { + key: string; + type: string; + })[]; +}; +export declare const pathSchema: { + schema: { + title: string; + type: string; + properties: { + color: { + title: string; + type: string; + }; + strokeWeight: { + title: string; + type: string; + default: number; + }; + strokeOpacity: { + title: string; + type: string; + default: number; + }; + useColorFunction: { + title: string; + type: string; + default: boolean; + }; + colorFunction: { + title: string; + type: string; + }; + usePolylineDecorator: { + title: string; + type: string; + default: boolean; + }; + decoratorSymbol: { + title: string; + type: string; + default: string; + }; + decoratorSymbolSize: { + title: string; + type: string; + default: number; + }; + useDecoratorCustomColor: { + title: string; + type: string; + default: boolean; + }; + decoratorCustomColor: { + title: string; + type: string; + default: string; + }; + decoratorOffset: { + title: string; + type: string; + default: string; + }; + endDecoratorOffset: { + title: string; + type: string; + default: string; + }; + decoratorRepeat: { + title: string; + type: string; + default: string; + }; + }; + required: any[]; + }; + form: (string | { + key: string; + type: string; + helpId?: undefined; + condition?: undefined; + multiple?: undefined; + items?: undefined; + } | { + key: string; + helpId: string; + type: string; + condition: string; + multiple?: undefined; + items?: undefined; + } | { + key: string; + type: string; + multiple: boolean; + items: { + value: string; + label: string; + }[]; + helpId?: undefined; + condition?: undefined; + })[]; +}; +export declare const pointSchema: { + schema: { + title: string; + type: string; + properties: { + showPoints: { + title: string; + type: string; + default: boolean; + }; + pointColor: { + title: string; + type: string; + }; + useColorPointFunction: { + title: string; + type: string; + default: boolean; + }; + colorPointFunction: { + title: string; + type: string; + }; + pointSize: { + title: string; + type: string; + default: number; + }; + usePointAsAnchor: { + title: string; + type: string; + default: boolean; + }; + pointAsAnchorFunction: { + title: string; + type: string; + }; + pointTooltipOnRightPanel: { + title: string; + type: string; + default: boolean; + }; + }; + required: any[]; + }; + form: (string | { + key: string; + type: string; + helpId?: undefined; + condition?: undefined; + } | { + key: string; + helpId: string; + type: string; + condition: string; + })[]; +}; +export declare const mapProviderSchema: { + schema: { + title: string; + type: string; + properties: { + provider: { + title: string; + type: string; + default: string; + }; + }; + required: any[]; + }; + form: { + key: string; + type: string; + multiple: boolean; + items: { + value: string; + label: string; + }[]; + }[]; +}; +export declare const tripAnimationSchema: { + schema: { + title: string; + type: string; + properties: { + normalizationStep: { + title: string; + type: string; + default: number; + }; + latKeyName: { + title: string; + type: string; + default: string; + }; + lngKeyName: { + title: string; + type: string; + default: string; + }; + showLabel: { + title: string; + type: string; + default: boolean; + }; + label: { + title: string; + type: string; + default: string; + }; + useLabelFunction: { + title: string; + type: string; + default: boolean; + }; + labelFunction: { + title: string; + type: string; + }; + showTooltip: { + title: string; + type: string; + default: boolean; + }; + tooltipColor: { + title: string; + type: string; + default: string; + }; + tooltipFontColor: { + title: string; + type: string; + default: string; + }; + tooltipOpacity: { + title: string; + type: string; + default: number; + }; + tooltipPattern: { + title: string; + type: string; + default: string; + }; + useTooltipFunction: { + title: string; + type: string; + default: boolean; + }; + tooltipFunction: { + title: string; + type: string; + }; + autocloseTooltip: { + title: string; + type: string; + default: boolean; + }; + markerImage: { + title: string; + type: string; + }; + markerImageSize: { + title: string; + type: string; + default: number; + }; + rotationAngle: { + title: string; + type: string; + default: number; + }; + useMarkerImageFunction: { + title: string; + type: string; + default: boolean; + }; + markerImageFunction: { + title: string; + type: string; + }; + markerImages: { + title: string; + type: string; + items: { + title: string; + type: string; + }; + }; + }; + required: any[]; + }; + form: (string | { + key: string; + condition: string; + type?: undefined; + helpId?: undefined; + items?: undefined; + } | { + key: string; + type: string; + helpId: string; + condition: string; + items?: undefined; + } | { + key: string; + type: string; + condition: string; + helpId?: undefined; + items?: undefined; + } | { + key: string; + items: { + key: string; + type: string; + }[]; + condition: string; + type?: undefined; + helpId?: undefined; + })[]; +}; +interface IProvider { + schema: JsonSettingsSchema; + name: string; +} +export declare const providerSets: { + [key: string]: IProvider; +}; +export declare const editorSettingSchema: { + schema: { + title: string; + type: string; + properties: { + snappable: { + title: string; + type: string; + default: boolean; + }; + initDragMode: { + title: string; + type: string; + default: boolean; + }; + hideAllControlButton: { + title: string; + type: string; + default: boolean; + }; + hideDrawControlButton: { + title: string; + type: string; + default: boolean; + }; + hideEditControlButton: { + title: string; + type: string; + default: boolean; + }; + hideRemoveControlButton: { + title: string; + type: string; + default: boolean; + }; + }; + required: any[]; + }; + form: (string | { + key: string; + condition: string; + })[]; +}; +export {}; diff --git a/src/app/modules/home/components/widget/lib/markdown-widget.component.d.ts b/src/app/modules/home/components/widget/lib/markdown-widget.component.d.ts new file mode 100644 index 00000000..e2116895 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/markdown-widget.component.d.ts @@ -0,0 +1,33 @@ +import { ChangeDetectorRef, OnInit, Type } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormattedData } from '@home/components/widget/lib/maps/map-models'; +import { UtilsService } from '@core/services/utils.service'; +import * as i0 from "@angular/core"; +interface MarkdownWidgetSettings { + markdownTextPattern: string; + useMarkdownTextFunction: boolean; + markdownTextFunction: string; + markdownCss: string; +} +declare type MarkdownTextFunction = (data: FormattedData[]) => string; +export declare class MarkdownWidgetComponent extends PageComponent implements OnInit { + protected store: Store; + private utils; + homeComponentsModule: Type; + private cd; + settings: MarkdownWidgetSettings; + markdownTextFunction: MarkdownTextFunction; + markdownClass: string; + ctx: WidgetContext; + markdownText: string; + constructor(store: Store, utils: UtilsService, homeComponentsModule: Type, cd: ChangeDetectorRef); + ngOnInit(): void; + onDataUpdated(): void; + markdownClick($event: MouseEvent): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export {}; diff --git a/src/app/modules/home/components/widget/lib/multiple-input-widget.component.d.ts b/src/app/modules/home/components/widget/lib/multiple-input-widget.component.d.ts new file mode 100644 index 00000000..787ac821 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/multiple-input-widget.component.d.ts @@ -0,0 +1,134 @@ +import { ElementRef, NgZone, OnDestroy, OnInit, ViewContainerRef } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Overlay } from '@angular/cdk/overlay'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { DataKey, Datasource } from '@shared/models/widget.models'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { AttributeService } from '@core/http/attribute.service'; +import { DomSanitizer, SafeUrl } from '@angular/platform-browser'; +import * as i0 from "@angular/core"; +declare type FieldAlignment = 'row' | 'column'; +declare type MultipleInputWidgetDataKeyType = 'server' | 'shared' | 'timeseries'; +declare type MultipleInputWidgetDataKeyValueType = 'string' | 'double' | 'integer' | 'booleanCheckbox' | 'booleanSwitch' | 'dateTime' | 'date' | 'time' | 'select'; +declare type MultipleInputWidgetDataKeyEditableType = 'editable' | 'disabled' | 'readonly'; +declare type ConvertGetValueFunction = (value: any, ctx: WidgetContext) => any; +declare type ConvertSetValueFunction = (value: any, originValue: any, ctx: WidgetContext) => any; +interface MultipleInputWidgetSettings { + widgetTitle: string; + showActionButtons: boolean; + updateAllValues: boolean; + saveButtonLabel: string; + resetButtonLabel: string; + showResultMessage: boolean; + showGroupTitle: boolean; + groupTitle: string; + fieldsAlignment: FieldAlignment; + fieldsInRow: number; + attributesShared?: boolean; +} +interface MultipleInputWidgetSelectOption { + value: string | null; + label: string; +} +interface MultipleInputWidgetDataKeySettings { + dataKeyType: MultipleInputWidgetDataKeyType; + dataKeyValueType: MultipleInputWidgetDataKeyValueType; + slideToggleLabelPosition?: 'after' | 'before'; + selectOptions: MultipleInputWidgetSelectOption[]; + required: boolean; + isEditable: MultipleInputWidgetDataKeyEditableType; + disabledOnDataKey: string; + dataKeyHidden: boolean; + step?: number; + minValue?: number; + maxValue?: number; + requiredErrorMessage?: string; + invalidDateErrorMessage?: string; + minValueErrorMessage?: string; + maxValueErrorMessage?: string; + useCustomIcon: boolean; + icon: string; + customIcon: string; + safeCustomIcon?: SafeUrl; + inputTypeNumber?: boolean; + readOnly?: boolean; + disabledOnCondition?: boolean; + useGetValueFunction?: boolean; + getValueFunctionBody?: string; + getValueFunction?: ConvertGetValueFunction; + useSetValueFunction?: boolean; + setValueFunctionBody?: string; + setValueFunction?: ConvertSetValueFunction; +} +interface MultipleInputWidgetDataKey extends DataKey { + formId?: string; + settings: MultipleInputWidgetDataKeySettings; + isFocused: boolean; + value?: any; +} +interface MultipleInputWidgetSource { + datasource: Datasource; + keys: MultipleInputWidgetDataKey[]; +} +export declare class MultipleInputWidgetComponent extends PageComponent implements OnInit, OnDestroy { + protected store: Store; + private elementRef; + private ngZone; + private overlay; + private viewContainerRef; + private utils; + private fb; + private attributeService; + private translate; + private sanitizer; + formContainerRef: ElementRef; + ctx: WidgetContext; + private formResize$; + settings: MultipleInputWidgetSettings; + private widgetConfig; + private subscription; + private datasources; + private destroy$; + sources: Array; + private isSavingInProgress; + isVerticalAlignment: boolean; + inputWidthSettings: string; + changeAlignment: boolean; + saveButtonLabel: string; + resetButtonLabel: string; + entityDetected: boolean; + datasourceDetected: boolean; + isAllParametersValid: boolean; + multipleInputFormGroup: FormGroup; + toastTargetId: string; + constructor(store: Store, elementRef: ElementRef, ngZone: NgZone, overlay: Overlay, viewContainerRef: ViewContainerRef, utils: UtilsService, fb: FormBuilder, attributeService: AttributeService, translate: TranslateService, sanitizer: DomSanitizer); + ngOnInit(): void; + ngOnDestroy(): void; + private initializeConfig; + private updateDatasources; + private buildForm; + private updateWidgetData; + private getKeyValue; + private updateWidgetDisplaying; + onDataUpdated(): void; + private resize; + getGroupTitle(datasource: Datasource): string; + getErrorMessageText(keySettings: MultipleInputWidgetDataKeySettings, errorType: string): string; + getTranslatedErrorText(errorMessage: string, defaultMessage: string, messageValues?: object): string; + getCustomTranslationText(value: any): string; + visibleKeys(source: MultipleInputWidgetSource): MultipleInputWidgetDataKey[]; + datePickerType(keyType: MultipleInputWidgetDataKeyValueType): string; + focusInputElement($event: Event): void; + inputChanged(source: MultipleInputWidgetSource, key: MultipleInputWidgetDataKey): void; + saveForm(): void; + private save; + private setKeyValue; + discardAll(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export {}; diff --git a/src/app/modules/home/components/widget/lib/navigation-card-widget.component.d.ts b/src/app/modules/home/components/widget/lib/navigation-card-widget.component.d.ts new file mode 100644 index 00000000..333e4464 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/navigation-card-widget.component.d.ts @@ -0,0 +1,28 @@ +import { PageComponent } from '@shared/components/page.component'; +import { NgZone, OnInit } from '@angular/core'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Router } from '@angular/router'; +import { UtilsService } from '@core/services/utils.service'; +import * as i0 from "@angular/core"; +interface NavigationCardWidgetSettings { + name: string; + icon: string; + path: string; +} +export declare class NavigationCardWidgetComponent extends PageComponent implements OnInit { + protected store: Store; + private utils; + private ngZone; + private router; + settings: NavigationCardWidgetSettings; + translatedName: string; + ctx: WidgetContext; + constructor(store: Store, utils: UtilsService, ngZone: NgZone, router: Router); + ngOnInit(): void; + navigate($event: Event, path: string): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export {}; diff --git a/src/app/modules/home/components/widget/lib/navigation-cards-widget.component.d.ts b/src/app/modules/home/components/widget/lib/navigation-cards-widget.component.d.ts new file mode 100644 index 00000000..063abee0 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/navigation-cards-widget.component.d.ts @@ -0,0 +1,35 @@ +import { PageComponent } from '@shared/components/page.component'; +import { NgZone, OnInit } from '@angular/core'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { MenuService } from '@core/services/menu.service'; +import { HomeSection, HomeSectionPlace } from '@core/services/menu.models'; +import { Router } from '@angular/router'; +import * as i0 from "@angular/core"; +interface NavigationCardsWidgetSettings { + filterType: 'all' | 'include' | 'exclude'; + filter: string[]; +} +export declare class NavigationCardsWidgetComponent extends PageComponent implements OnInit { + protected store: Store; + private menuService; + private ngZone; + private router; + homeSections$: import("rxjs").Observable; + showHomeSections$: import("rxjs").Observable; + cols: any; + settings: NavigationCardsWidgetSettings; + ctx: WidgetContext; + constructor(store: Store, menuService: MenuService, ngZone: NgZone, router: Router); + ngOnInit(): void; + resize(): void; + private updateColumnCount; + navigate($event: Event, path: string): void; + sectionPlaces(section: HomeSection): HomeSectionPlace[]; + private filterPlace; + sectionColspan(section: HomeSection): number; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export {}; diff --git a/src/app/modules/home/components/widget/lib/photo-camera-input.component.d.ts b/src/app/modules/home/components/widget/lib/photo-camera-input.component.d.ts new file mode 100644 index 00000000..89ad9cdb --- /dev/null +++ b/src/app/modules/home/components/widget/lib/photo-camera-input.component.d.ts @@ -0,0 +1,70 @@ +import { ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Overlay } from '@angular/cdk/overlay'; +import { UtilsService } from '@core/services/utils.service'; +import { AttributeService } from '@core/http/attribute.service'; +import { DomSanitizer, SafeUrl } from '@angular/platform-browser'; +import * as i0 from "@angular/core"; +export declare class PhotoCameraInputWidgetComponent extends PageComponent implements OnInit, OnDestroy { + private window; + protected store: Store; + private elementRef; + private ngZone; + private overlay; + private utils; + private attributeService; + private sanitizer; + constructor(window: Window, store: Store, elementRef: ElementRef, ngZone: NgZone, overlay: Overlay, utils: UtilsService, attributeService: AttributeService, sanitizer: DomSanitizer); + get videoElement(): HTMLVideoElement; + get canvasElement(): HTMLCanvasElement; + get videoWidth(): number; + get videoHeight(): number; + private static DEFAULT_IMAGE_TYPE; + private static DEFAULT_IMAGE_QUALITY; + ctx: WidgetContext; + videoStreamRef: ElementRef; + canvasRef: ElementRef; + private videoInputsIndex; + private settings; + private datasource; + private width; + private height; + private availableVideoInputs; + private mediaStream; + isEntityDetected: boolean; + dataKeyDetected: boolean; + isProtocolHttps: boolean; + isCameraSupport: boolean; + isDeviceDetect: boolean; + isShowCamera: boolean; + isPreviewPhoto: boolean; + isHavePermissionCamera: boolean; + isLoading: boolean; + singleDevice: boolean; + updatePhoto: boolean; + previewPhoto: SafeUrl; + lastPhoto: SafeUrl; + datasourceDetected: boolean; + private static hasGetUserMedia; + private static getAvailableVideoInputs; + ngOnInit(): void; + ngOnDestroy(): void; + private updateWidgetData; + onDataUpdated(): void; + private detectAvailableDevices; + private getVideoAspectRatio; + private stopMediaTracks; + takePhoto(): void; + closeCamera(): void; + cancelPhoto(): void; + savePhoto(): void; + switchWebCamera(): void; + createPhoto(): void; + private inititedVideoStream; + get textMessage(): "" | "widgets.input-widgets.enable-https-use-widget" | "widgets.input-widgets.no-support-web-camera" | "widgets.input-widgets.no-entity-selected" | "widgets.input-widgets.no-datakey-selected" | "widgets.input-widgets.no-found-your-camera" | "widgets.input-widgets.no-permission-camera"; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/qrcode-widget.component.d.ts b/src/app/modules/home/components/widget/lib/qrcode-widget.component.d.ts new file mode 100644 index 00000000..f53a038a --- /dev/null +++ b/src/app/modules/home/components/widget/lib/qrcode-widget.component.d.ts @@ -0,0 +1,34 @@ +import { AfterViewInit, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormattedData } from '@home/components/widget/lib/maps/map-models'; +import * as i0 from "@angular/core"; +interface QrCodeWidgetSettings { + qrCodeTextPattern: string; + useQrCodeTextFunction: boolean; + qrCodeTextFunction: string; +} +declare type QrCodeTextFunction = (data: FormattedData[]) => string; +export declare class QrCodeWidgetComponent extends PageComponent implements OnInit, AfterViewInit { + protected store: Store; + protected cd: ChangeDetectorRef; + settings: QrCodeWidgetSettings; + qrCodeTextFunction: QrCodeTextFunction; + ctx: WidgetContext; + qrCodeText: string; + invalidQrCodeText: boolean; + private viewInited; + private scheduleUpdateCanvas; + canvasRef: ElementRef; + constructor(store: Store, cd: ChangeDetectorRef); + ngOnInit(): void; + ngAfterViewInit(): void; + onDataUpdated(): void; + private updateQrCodeText; + private updateCanvas; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export {}; diff --git a/src/app/modules/home/components/widget/lib/rpc/knob.component.d.ts b/src/app/modules/home/components/widget/lib/rpc/knob.component.d.ts new file mode 100644 index 00000000..04a1b529 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/rpc/knob.component.d.ts @@ -0,0 +1,83 @@ +import { ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { UtilsService } from '@core/services/utils.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import * as i0 from "@angular/core"; +export declare class KnobComponent extends PageComponent implements OnInit, OnDestroy { + private utils; + protected store: Store; + knobRef: ElementRef; + knobContainerRef: ElementRef; + knobTopPointerContainerRef: ElementRef; + knobTopPointerRef: ElementRef; + knobValueContainerRef: ElementRef; + knobValueRef: ElementRef; + knobErrorContainerRef: ElementRef; + knobErrorRef: ElementRef; + knobTitleContainerRef: ElementRef; + knobTitleRef: ElementRef; + knobMinmaxContainerRef: ElementRef; + textMeasureRef: ElementRef; + canvasBarElementRef: ElementRef; + ctx: WidgetContext; + value: string; + error: string; + title: string; + minValue: number; + maxValue: number; + newValue: number; + private startDeg; + private currentDeg; + private rotation; + private lastDeg; + private moving; + private minDeg; + private maxDeg; + private isSimulated; + private requestTimeout; + private requestPersistent; + private persistentPollingInterval; + private getValueMethod; + private setValueMethod; + private executingUpdateValue; + private scheduledValue; + private rpcValue; + private knob; + private knobContainer; + private knobTopPointerContainer; + private knobTopPointer; + private knobValueContainer; + private knobValue; + private knobTitleContainer; + private knobTitle; + private knobErrorContainer; + private knobError; + private knobMinmaxContainer; + private minmaxLabel; + private textMeasure; + private canvasBarElement; + private canvasBar; + private knobResize$; + constructor(utils: UtilsService, store: Store); + ngOnInit(): void; + ngOnDestroy(): void; + private init; + private degreeToRatio; + private ratioToDegree; + private turn; + private resize; + private checkValueSize; + private setFontSize; + private measureTextWidth; + private setValue; + private updateColor; + private onValue; + private formatValue; + private rpcRequestValue; + private rpcUpdateValue; + private onError; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/rpc/led-indicator.component.d.ts b/src/app/modules/home/components/widget/lib/rpc/led-indicator.component.d.ts new file mode 100644 index 00000000..754f2aaf --- /dev/null +++ b/src/app/modules/home/components/widget/lib/rpc/led-indicator.component.d.ts @@ -0,0 +1,64 @@ +import { ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { UtilsService } from '@core/services/utils.service'; +import * as i0 from "@angular/core"; +export declare class LedIndicatorComponent extends PageComponent implements OnInit, OnDestroy { + private utils; + protected store: Store; + ledRef: ElementRef; + ledContainerRef: ElementRef; + textMeasureRef: ElementRef; + ledTitleContainerRef: ElementRef; + ledTitleRef: ElementRef; + ledErrorContainerRef: ElementRef; + ledErrorRef: ElementRef; + ctx: WidgetContext; + showTitle: boolean; + value: boolean; + error: string; + title: string; + private valueAttribute; + private ledColor; + private ledMiddleColor; + private disabledColor; + private disabledMiddleColor; + private isSimulated; + private requestTimeout; + private requestPersistent; + private persistentPollingInterval; + private retrieveValueMethod; + private parseValueFunction; + private performCheckStatus; + private checkStatusMethod; + private destroyed; + private checkStatusTimeoutHandle; + private subscription; + private led; + private ledContainer; + private textMeasure; + private ledTitleContainer; + private ledTitle; + private ledErrorContainer; + private ledError; + private ledResize$; + private subscriptionOptions; + constructor(utils: UtilsService, store: Store); + ngOnInit(): void; + ngOnDestroy(): void; + private init; + private resize; + private setFontSize; + private measureTextWidth; + private onError; + private setValue; + private updateColor; + private rpcCheckStatus; + private subscribeForValue; + private onDataUpdated; + private onDataUpdateError; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/rpc/persistent-add-dialog.component.d.ts b/src/app/modules/home/components/widget/lib/rpc/persistent-add-dialog.component.d.ts new file mode 100644 index 00000000..62bf125e --- /dev/null +++ b/src/app/modules/home/components/widget/lib/rpc/persistent-add-dialog.component.d.ts @@ -0,0 +1,26 @@ +import { OnInit } from '@angular/core'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Router } from '@angular/router'; +import { MatDialogRef } from '@angular/material/dialog'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { RequestData } from '@shared/models/rpc.models'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class PersistentAddDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + dialogRef: MatDialogRef; + private fb; + private translate; + persistentFormGroup: FormGroup; + rpcMessageTypeText: string; + private requestData; + constructor(store: Store, router: Router, dialogRef: MatDialogRef, fb: FormBuilder, translate: TranslateService); + save(): void; + ngOnInit(): void; + close(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/rpc/persistent-details-dialog.component.d.ts b/src/app/modules/home/components/widget/lib/rpc/persistent-details-dialog.component.d.ts new file mode 100644 index 00000000..2c95b21a --- /dev/null +++ b/src/app/modules/home/components/widget/lib/rpc/persistent-details-dialog.component.d.ts @@ -0,0 +1,42 @@ +import { ElementRef, OnInit } from '@angular/core'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Router } from '@angular/router'; +import { DatePipe } from '@angular/common'; +import { TranslateService } from '@ngx-translate/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { DeviceService } from '@core/http/device.service'; +import { PersistentRpc, RpcStatus } from '@shared/models/rpc.models'; +import { DialogService } from '@core/services/dialog.service'; +import * as i0 from "@angular/core"; +export interface PersistentDetailsDialogData { + persistentRequest: PersistentRpc; + allowDelete: boolean; +} +export declare class PersistentDetailsDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + private datePipe; + private translate; + data: PersistentDetailsDialogData; + dialogRef: MatDialogRef; + private dialogService; + private deviceService; + private fb; + responseDataEditorElmRef: ElementRef; + persistentFormGroup: FormGroup; + rpcStatusColorsMap: Map; + rpcStatus: typeof RpcStatus; + allowDelete: boolean; + private persistentUpdated; + private responseData; + constructor(store: Store, router: Router, datePipe: DatePipe, translate: TranslateService, data: PersistentDetailsDialogData, dialogRef: MatDialogRef, dialogService: DialogService, deviceService: DeviceService, fb: FormBuilder); + loadPersistentFields(request: PersistentRpc): void; + ngOnInit(): void; + close(): void; + deleteRpcRequest(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/rpc/persistent-filter-panel.component.d.ts b/src/app/modules/home/components/widget/lib/rpc/persistent-filter-panel.component.d.ts new file mode 100644 index 00000000..e24efa93 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/rpc/persistent-filter-panel.component.d.ts @@ -0,0 +1,26 @@ +import { InjectionToken } from '@angular/core'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { OverlayRef } from '@angular/cdk/overlay'; +import { RpcStatus } from '@shared/models/rpc.models'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare const PERSISTENT_FILTER_PANEL_DATA: InjectionToken; +export interface PersistentFilterPanelData { + rpcStatus: RpcStatus; +} +export declare class PersistentFilterPanelComponent { + data: PersistentFilterPanelData; + overlayRef: OverlayRef; + private fb; + private translate; + persistentFilterFormGroup: FormGroup; + result: PersistentFilterPanelData; + rpcSearchStatusTranslationMap: Map; + rpcSearchPlaceholder: string; + persistentSearchStatuses: string[]; + constructor(data: PersistentFilterPanelData, overlayRef: OverlayRef, fb: FormBuilder, translate: TranslateService); + update(): void; + cancel(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/rpc/persistent-table.component.d.ts b/src/app/modules/home/components/widget/lib/rpc/persistent-table.component.d.ts new file mode 100644 index 00000000..711fc16c --- /dev/null +++ b/src/app/modules/home/components/widget/lib/rpc/persistent-table.component.d.ts @@ -0,0 +1,104 @@ +import { ChangeDetectorRef, ElementRef, OnInit, ViewContainerRef } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { IWidgetSubscription } from '@core/api/widget-api.models'; +import { Observable, ReplaySubject } from 'rxjs'; +import { TableCellButtonActionDescriptor } from '@home/components/widget/lib/table-widget.models'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { CollectionViewer, DataSource } from '@angular/cdk/collections'; +import { PageData } from '@shared/models/page/page-data'; +import { PersistentRpc, PersistentRpcData, RpcStatus } from '@shared/models/rpc.models'; +import { PageLink } from '@shared/models/page/page-link'; +import { MatPaginator } from '@angular/material/paginator'; +import { MatSort } from '@angular/material/sort'; +import { DialogService } from '@core/services/dialog.service'; +import { DeviceService } from '@core/http/device.service'; +import { MatDialog } from '@angular/material/dialog'; +import { Overlay } from '@angular/cdk/overlay'; +import { HttpErrorResponse } from '@angular/common/http'; +import * as i0 from "@angular/core"; +interface PersistentTableWidgetActionDescriptor extends TableCellButtonActionDescriptor { + details?: boolean; + delete?: boolean; +} +export declare class PersistentTableComponent extends PageComponent implements OnInit { + protected store: Store; + private elementRef; + private overlay; + private viewContainerRef; + private utils; + private translate; + private dialogService; + private deviceService; + private dialog; + private cd; + ctx: WidgetContext; + paginator: MatPaginator; + sort: MatSort; + private settings; + private widgetConfig; + private subscription; + private enableFilterAction; + private allowSendRequest; + private defaultPageSize; + private defaultSortOrder; + private rpcStatusFilter; + private displayDetails; + private allowDelete; + private displayTableColumns; + private widgetResize$; + persistentDatasource: PersistentDatasource; + noDataDisplayMessageText: string; + rpcStatusColor: Map; + rpcStatusTranslation: Map; + displayPagination: boolean; + enableStickyHeader: boolean; + enableStickyAction: boolean; + pageLink: PageLink; + pageSizeOptions: any; + actionCellButtonAction: PersistentTableWidgetActionDescriptor[]; + displayedColumns: string[]; + hidePageSize: boolean; + constructor(store: Store, elementRef: ElementRef, overlay: Overlay, viewContainerRef: ViewContainerRef, utils: UtilsService, translate: TranslateService, dialogService: DialogService, deviceService: DeviceService, dialog: MatDialog, cd: ChangeDetectorRef); + ngOnInit(): void; + ngOnDestroy(): void; + ngAfterViewInit(): void; + private initializeConfig; + private updateData; + onDataUpdated(): void; + reloadPersistentRequests(): void; + deleteRpcRequest($event: Event, persistentRpc: PersistentRpc): void; + openRequestDetails($event: Event, persistentRpc: PersistentRpc): void; + addPersistentRpcRequest($event: Event): void; + private sendRequests; + onActionButtonClick($event: Event, persistentRpc: PersistentRpc, actionDescriptor: PersistentTableWidgetActionDescriptor): void; + private editFilter; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +declare class PersistentDatasource implements DataSource { + private translate; + private subscription; + private ctx; + private persistentSubject; + private pageDataSubject; + private rpcErrorText; + private executingSubjects; + private executingRpcRequest; + dataLoading: boolean; + pageData$: Observable>; + constructor(translate: TranslateService, subscription: IWidgetSubscription, ctx: WidgetContext); + connect(collectionViewer: CollectionViewer): Observable>; + disconnect(collectionViewer: CollectionViewer): void; + reset(): void; + loadPersistent(pageLink: PageLink, rpcStatusFilter: RpcStatus): ReplaySubject>; + fetchEntities(pageLink: PageLink, rpcStatusFilter: RpcStatus): Observable>; + extractRejectionErrorText(rejection: HttpErrorResponse): any; + prepareMessageFromData(data: any): any; + isEmpty(): Observable; + total(): Observable; +} +export {}; diff --git a/src/app/modules/home/components/widget/lib/rpc/round-switch.component.d.ts b/src/app/modules/home/components/widget/lib/rpc/round-switch.component.d.ts new file mode 100644 index 00000000..2ed29ced --- /dev/null +++ b/src/app/modules/home/components/widget/lib/rpc/round-switch.component.d.ts @@ -0,0 +1,65 @@ +import { ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { UtilsService } from '@core/services/utils.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import * as i0 from "@angular/core"; +export declare class RoundSwitchComponent extends PageComponent implements OnInit, OnDestroy { + private utils; + protected store: Store; + switchElementRef: ElementRef; + switchContainerRef: ElementRef; + onoffRef: ElementRef; + textMeasureRef: ElementRef; + switchTitleContainerRef: ElementRef; + switchTitleRef: ElementRef; + switchErrorContainerRef: ElementRef; + switchErrorRef: ElementRef; + ctx: WidgetContext; + showTitle: boolean; + value: boolean; + error: string; + title: string; + checkboxId: string; + private isSimulated; + private requestTimeout; + private requestPersistent; + private persistentPollingInterval; + private retrieveValueMethod; + private valueKey; + private parseValueFunction; + private convertValueFunction; + private getValueMethod; + private setValueMethod; + private valueSubscription; + private executingUpdateValue; + private scheduledValue; + private rpcValue; + private switchElement; + private switchContainer; + private onoff; + private textMeasure; + private switchTitleContainer; + private switchTitle; + private switchErrorContainer; + private switchError; + private switchResize$; + constructor(utils: UtilsService, store: Store); + ngOnInit(): void; + ngOnDestroy(): void; + private init; + private resize; + private setFontSize; + private measureTextWidth; + private onError; + private setValue; + private onValue; + private rpcRequestValue; + private rpcUpdateValue; + private subscribeForValue; + private onDataUpdated; + private onDataUpdateError; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/rpc/rpc-widgets.module.d.ts b/src/app/modules/home/components/widget/lib/rpc/rpc-widgets.module.d.ts new file mode 100644 index 00000000..a084e61f --- /dev/null +++ b/src/app/modules/home/components/widget/lib/rpc/rpc-widgets.module.d.ts @@ -0,0 +1,16 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@home/components/widget/lib/rpc/led-indicator.component"; +import * as i2 from "@home/components/widget/lib/rpc/round-switch.component"; +import * as i3 from "@home/components/widget/lib/rpc/switch.component"; +import * as i4 from "@home/components/widget/lib/rpc/knob.component"; +import * as i5 from "@home/components/widget/lib/rpc/persistent-table.component"; +import * as i6 from "@home/components/widget/lib/rpc/persistent-details-dialog.component"; +import * as i7 from "@home/components/widget/lib/rpc/persistent-add-dialog.component"; +import * as i8 from "@home/components/widget/lib/rpc/persistent-filter-panel.component"; +import * as i9 from "@angular/common"; +import * as i10 from "@app/shared/shared.module"; +export declare class RpcWidgetsModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/rpc/switch.component.d.ts b/src/app/modules/home/components/widget/lib/rpc/switch.component.d.ts new file mode 100644 index 00000000..60112a7e --- /dev/null +++ b/src/app/modules/home/components/widget/lib/rpc/switch.component.d.ts @@ -0,0 +1,72 @@ +import { ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { UtilsService } from '@core/services/utils.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { MatSlideToggle } from '@angular/material/slide-toggle'; +import * as i0 from "@angular/core"; +export declare class SwitchComponent extends PageComponent implements OnInit, OnDestroy { + private utils; + protected store: Store; + switchElementRef: ElementRef; + switchContainerRef: ElementRef; + matSlideToggleRef: MatSlideToggle; + onoffContainerRef: ElementRef; + onLabelRef: ElementRef; + offLabelRef: ElementRef; + switchTitleContainerRef: ElementRef; + switchTitleRef: ElementRef; + textMeasureRef: ElementRef; + switchErrorContainerRef: ElementRef; + switchErrorRef: ElementRef; + ctx: WidgetContext; + showTitle: boolean; + value: boolean; + error: string; + title: string; + showOnOffLabels: boolean; + private isSimulated; + private requestTimeout; + private requestPersistent; + private persistentPollingInterval; + private retrieveValueMethod; + private valueKey; + private parseValueFunction; + private convertValueFunction; + private getValueMethod; + private setValueMethod; + private valueSubscription; + private executingUpdateValue; + private scheduledValue; + private rpcValue; + private switchElement; + private switchContainer; + private matSlideToggle; + private onoffContainer; + private onLabel; + private offLabel; + private switchTitleContainer; + private switchTitle; + private textMeasure; + private switchErrorContainer; + private switchError; + private switchResize$; + constructor(utils: UtilsService, store: Store); + ngOnInit(): void; + ngOnDestroy(): void; + private init; + private resize; + private setFontSize; + private measureTextWidth; + private onError; + private setValue; + onValue(): void; + private rpcRequestValue; + private rpcUpdateValue; + private subscribeForValue; + private onDataUpdated; + private onDataUpdateError; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/lib/settings.models.d.ts b/src/app/modules/home/components/widget/lib/settings.models.d.ts new file mode 100644 index 00000000..13d851a3 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/settings.models.d.ts @@ -0,0 +1,12 @@ +export declare type FontStyle = 'normal' | 'italic' | 'oblique'; +export declare type FontWeight = 'normal' | 'bold' | 'bolder' | 'lighter' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'; +export interface FontSettings { + family?: string; + size?: number; + style?: FontStyle; + weight?: FontWeight; + color?: string; + shadowColor?: string; +} +export declare function getFontFamily(fontSettings: FontSettings): string; +export declare function prepareFontSettings(fontSettings: FontSettings, defaultFontSettings: FontSettings): FontSettings; diff --git a/src/app/modules/home/components/widget/lib/table-widget.models.d.ts b/src/app/modules/home/components/widget/lib/table-widget.models.d.ts new file mode 100644 index 00000000..96495c9c --- /dev/null +++ b/src/app/modules/home/components/widget/lib/table-widget.models.d.ts @@ -0,0 +1,100 @@ +import { EntityId } from '@shared/models/id/entity-id'; +import { DataKey, WidgetActionDescriptor, WidgetConfig } from '@shared/models/widget.models'; +import { AlarmDataInfo } from '@shared/models/alarm.models'; +import { EntityDataSortOrder, EntityKey } from '@shared/models/query/query.models'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { FormattedData } from '@home/components/widget/lib/maps/map-models'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +declare type ColumnVisibilityOptions = 'visible' | 'hidden'; +declare type ColumnSelectionOptions = 'enabled' | 'disabled'; +export interface TableWidgetSettings { + enableSearch: boolean; + enableStickyAction: boolean; + enableStickyHeader: boolean; + displayPagination: boolean; + defaultPageSize: number; + useRowStyleFunction: boolean; + rowStyleFunction?: string; + reserveSpaceForHiddenAction?: boolean; +} +export interface TableWidgetDataKeySettings { + columnWidth?: string; + useCellStyleFunction: boolean; + cellStyleFunction?: string; + useCellContentFunction: boolean; + cellContentFunction?: string; + defaultColumnVisibility?: ColumnVisibilityOptions; + columnSelectionToDisplay?: ColumnSelectionOptions; +} +export declare type ShowCellButtonActionFunction = (ctx: WidgetContext, data: EntityData | AlarmDataInfo | FormattedData) => boolean; +export interface TableCellButtonActionDescriptor extends WidgetActionDescriptor { + useShowActionCellButtonFunction: boolean; + showActionCellButtonFunction: ShowCellButtonActionFunction; +} +export interface EntityData { + id: EntityId; + entityName: string; + entityLabel?: string; + entityType?: string; + actionCellButtons?: TableCellButtonActionDescriptor[]; + hasActions?: boolean; + [key: string]: any; +} +export interface EntityColumn extends DataKey { + def: string; + title: string; + sortable: boolean; + entityKey?: EntityKey; +} +export interface DisplayColumn { + title: string; + def: string; + display: boolean; + selectable: boolean; +} +export declare type CellContentFunction = (...args: any[]) => string; +export interface CellContentInfo { + useCellContentFunction: boolean; + cellContentFunction?: CellContentFunction; + units?: string; + decimals?: number; +} +export declare type CellStyleFunction = (...args: any[]) => any; +export interface CellStyleInfo { + useCellStyleFunction: boolean; + cellStyleFunction?: CellStyleFunction; +} +export declare type RowStyleFunction = (...args: any[]) => any; +export interface RowStyleInfo { + useRowStyleFunction: boolean; + rowStyleFunction?: RowStyleFunction; +} +export declare function entityDataSortOrderFromString(strSortOrder: string, columns: EntityColumn[]): EntityDataSortOrder; +export declare function findColumnByEntityKey(key: EntityKey, columns: EntityColumn[]): EntityColumn; +export declare function findEntityKeyByColumnDef(def: string, columns: EntityColumn[]): EntityKey; +export declare function findColumn(searchProperty: string, searchValue: string, columns: EntityColumn[]): EntityColumn; +export declare function findColumnByName(name: string, columns: EntityColumn[]): EntityColumn; +export declare function findColumnByLabel(label: string, columns: EntityColumn[]): EntityColumn; +export declare function findColumnByDef(def: string, columns: EntityColumn[]): EntityColumn; +export declare function findColumnProperty(searchProperty: string, searchValue: string, columnProperty: string, columns: EntityColumn[]): string; +export declare function toEntityKey(def: string, columns: EntityColumn[]): string; +export declare function toEntityColumnDef(label: string, columns: EntityColumn[]): string; +export declare function fromEntityColumnDef(def: string, columns: EntityColumn[]): string; +export declare function toAlarmColumnDef(name: string, columns: EntityColumn[]): string; +export declare function fromAlarmColumnDef(def: string, columns: EntityColumn[]): string; +export declare function getEntityValue(entity: any, key: DataKey): any; +export declare function getAlarmValue(alarm: AlarmDataInfo, key: EntityColumn): any; +export declare function getRowStyleInfo(settings: TableWidgetSettings, ...args: string[]): RowStyleInfo; +export declare function getCellStyleInfo(keySettings: TableWidgetDataKeySettings, ...args: string[]): CellStyleInfo; +export declare function getCellContentInfo(keySettings: TableWidgetDataKeySettings, ...args: string[]): CellContentInfo; +export declare function getColumnWidth(keySettings: TableWidgetDataKeySettings): string; +export declare function widthStyle(width: string): any; +export declare function getColumnDefaultVisibility(keySettings: TableWidgetDataKeySettings): boolean; +export declare function getColumnSelectionAvailability(keySettings: TableWidgetDataKeySettings): boolean; +export declare function getTableCellButtonActions(widgetContext: WidgetContext): TableCellButtonActionDescriptor[]; +export declare function checkHasActions(cellButtonActions: TableCellButtonActionDescriptor[]): boolean; +export declare function prepareTableCellButtonActions(widgetContext: WidgetContext, cellButtonActions: TableCellButtonActionDescriptor[], data: EntityData | AlarmDataInfo | FormattedData, reserveSpaceForHiddenAction?: boolean): TableCellButtonActionDescriptor[]; +export declare function noDataMessage(noDataDisplayMessage: string, defaultMessage: string, utils: UtilsService, translate: TranslateService): string; +export declare function constructTableCssString(widgetConfig: WidgetConfig): string; +export {}; diff --git a/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.d.ts b/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.d.ts new file mode 100644 index 00000000..9f3cd967 --- /dev/null +++ b/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.d.ts @@ -0,0 +1,149 @@ +import { AfterViewInit, ChangeDetectorRef, ElementRef, OnInit, QueryList, ViewContainerRef } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { WidgetContext } from '@home/models/widget-component.models'; +import { DataKey, Datasource, DatasourceData, WidgetActionDescriptor } from '@shared/models/widget.models'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { PageLink } from '@shared/models/page/page-link'; +import { CollectionViewer, DataSource } from '@angular/cdk/collections'; +import { Observable } from 'rxjs'; +import { MatPaginator } from '@angular/material/paginator'; +import { MatSort } from '@angular/material/sort'; +import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; +import { CellContentInfo, CellStyleInfo, TableCellButtonActionDescriptor, TableWidgetSettings } from '@home/components/widget/lib/table-widget.models'; +import { Overlay } from '@angular/cdk/overlay'; +import { DatePipe } from '@angular/common'; +import * as i0 from "@angular/core"; +export interface TimeseriesTableWidgetSettings extends TableWidgetSettings { + showTimestamp: boolean; + showMilliseconds: boolean; + hideEmptyLines: boolean; +} +interface TimeseriesRow { + actionCellButtons?: TableCellButtonActionDescriptor[]; + hasActions?: boolean; + [col: number]: any; + formattedTs: string; +} +interface TimeseriesHeader { + index: number; + dataKey: DataKey; + sortable: boolean; +} +interface TimeseriesTableSource { + keyStartIndex: number; + keyEndIndex: number; + datasource: Datasource; + rawData: Array; + data: TimeseriesRow[]; + pageLink: PageLink; + displayedColumns: string[]; + timeseriesDatasource: TimeseriesDatasource; + header: TimeseriesHeader[]; + stylesInfo: CellStyleInfo[]; + contentsInfo: CellContentInfo[]; + rowDataTemplate: { + [key: string]: any; + }; +} +export declare class TimeseriesTableWidgetComponent extends PageComponent implements OnInit, AfterViewInit { + protected store: Store; + private elementRef; + private overlay; + private viewContainerRef; + private utils; + private translate; + private domSanitizer; + private datePipe; + private cd; + ctx: WidgetContext; + searchInputField: ElementRef; + paginators: QueryList; + sorts: QueryList; + displayPagination: boolean; + enableStickyHeader: boolean; + enableStickyAction: boolean; + pageSizeOptions: any; + textSearchMode: boolean; + hidePageSize: boolean; + textSearch: string; + sources: TimeseriesTableSource[]; + sourceIndex: number; + noDataDisplayMessageText: string; + private setCellButtonAction; + private cellContentCache; + private cellStyleCache; + private rowStyleCache; + private settings; + private widgetConfig; + private data; + private datasources; + private defaultPageSize; + private defaultSortOrder; + private hideEmptyLines; + showTimestamp: boolean; + private useEntityLabel; + private dateFormatFilter; + private rowStylesInfo; + private subscriptions; + private widgetTimewindowChanged$; + private widgetResize$; + private searchAction; + constructor(store: Store, elementRef: ElementRef, overlay: Overlay, viewContainerRef: ViewContainerRef, utils: UtilsService, translate: TranslateService, domSanitizer: DomSanitizer, datePipe: DatePipe, cd: ChangeDetectorRef); + ngOnInit(): void; + ngOnDestroy(): void; + ngAfterViewInit(): void; + onDataUpdated(): void; + private initialize; + getTabLabel(source: TimeseriesTableSource): string; + private updateDatasources; + private updateActiveEntityInfo; + private initSubscriptionsToSortAndPaginator; + onSourceIndexChanged(): void; + private enterFilterMode; + exitFilterMode(): void; + private updateData; + trackByColumnIndex(index: any, header: TimeseriesHeader): number; + trackByRowTimestamp(index: number): number; + trackByActionCellDescriptionId(index: number, action: WidgetActionDescriptor): string; + trackBySourcesIndex(index: number, source: TimeseriesTableSource): string; + rowStyle(source: TimeseriesTableSource, row: TimeseriesRow, index: number): any; + cellStyle(source: TimeseriesTableSource, index: number, row: TimeseriesRow, value: any, rowIndex: number): any; + cellContent(source: TimeseriesTableSource, index: number, row: TimeseriesRow, value: any, rowIndex: number): SafeHtml; + onRowClick($event: Event, row: TimeseriesRow): void; + onActionButtonClick($event: Event, row: TimeseriesRow, actionDescriptor: WidgetActionDescriptor): void; + isActiveTab(index: number): boolean; + private updateCurrentSourceData; + private loadCurrentSourceRow; + private clearCache; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +declare class TimeseriesDatasource implements DataSource { + private source; + private hideEmptyLines; + private dateFormatFilter; + private datePipe; + private widgetContext; + private rowsSubject; + private pageDataSubject; + private allRowsSubject; + private allRows$; + countCellButtonAction: number; + private reserveSpaceForHiddenAction; + private cellButtonActions; + private readonly usedShowCellActionFunction; + constructor(source: TimeseriesTableSource, hideEmptyLines: boolean, dateFormatFilter: string, datePipe: DatePipe, widgetContext: WidgetContext); + connect(collectionViewer: CollectionViewer): Observable>; + disconnect(collectionViewer: CollectionViewer): void; + loadRows(): void; + dataUpdated(data: DatasourceData[]): void; + private updateSourceData; + private convertData; + isEmpty(): Observable; + total(): Observable; + private fetchRows; +} +export {}; diff --git a/src/app/modules/home/components/widget/trip-animation/trip-animation.component.d.ts b/src/app/modules/home/components/widget/trip-animation/trip-animation.component.d.ts new file mode 100644 index 00000000..99626557 --- /dev/null +++ b/src/app/modules/home/components/widget/trip-animation/trip-animation.component.d.ts @@ -0,0 +1,51 @@ +import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core'; +import { FormattedData, TripAnimationSettings } from '@home/components/widget/lib/maps/map-models'; +import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; +import { WidgetContext } from '@app/modules/home/models/widget-component.models'; +import { JsonSettingsSchema, WidgetConfig } from '@shared/models/widget.models'; +import { MapWidgetInterface } from '@home/components/widget/lib/maps/map-widget.interface'; +import * as i0 from "@angular/core"; +export declare class TripAnimationComponent implements OnInit, AfterViewInit, OnDestroy { + private cd; + private sanitizer; + private mapResize$; + constructor(cd: ChangeDetectorRef, sanitizer: DomSanitizer); + ctx: WidgetContext; + mapContainer: any; + mapWidget: MapWidgetInterface; + historicalData: FormattedData[][]; + normalizationStep: number; + interpolatedTimeData: { + [time: number]: FormattedData; + }[]; + formattedInterpolatedTimeData: FormattedData[][]; + widgetConfig: WidgetConfig; + settings: TripAnimationSettings; + mainTooltips: any[]; + visibleTooltip: boolean; + activeTrip: FormattedData; + label: SafeHtml; + minTime: number; + maxTime: number; + anchors: number[]; + useAnchors: boolean; + currentTime: number; + static getSettingsSchema(): JsonSettingsSchema; + ngOnInit(): void; + ngAfterViewInit(): void; + ngOnDestroy(): void; + timeUpdated(time: number): void; + setActiveTrip(): void; + private calculateLastPoints; + calculateIntervals(): void; + calcTooltip: (point: FormattedData, points: FormattedData[]) => string; + private calcMainTooltip; + calcLabel(points: FormattedData[]): void; + private interpolateArray; + private calculateCurrentTime; + private clearIncorrectFirsLastDatapoint; + private findFirstHistoricalDataIndexCoordinate; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export declare let TbTripAnimationWidget: typeof TripAnimationComponent; diff --git a/src/app/modules/home/components/widget/widget-component.service.d.ts b/src/app/modules/home/components/widget/widget-component.service.d.ts new file mode 100644 index 00000000..75b9d89a --- /dev/null +++ b/src/app/modules/home/components/widget/widget-component.service.d.ts @@ -0,0 +1,45 @@ +import { Type } from '@angular/core'; +import { DynamicComponentFactoryService } from '@core/services/dynamic-component-factory.service'; +import { WidgetService } from '@core/http/widget.service'; +import { Observable } from 'rxjs'; +import { WidgetInfo } from '@home/models/widget-component.models'; +import { UtilsService } from '@core/services/utils.service'; +import { ResourcesService } from '@core/services/resources.service'; +import { Widget } from '@shared/models/widget.models'; +import { TranslateService } from '@ngx-translate/core'; +import { IModulesMap } from '@modules/common/modules-map.models'; +import * as i0 from "@angular/core"; +export declare class WidgetComponentService { + private window; + private modulesMap; + private homeComponentsModule; + private dynamicComponentFactoryService; + private widgetService; + private utils; + private resources; + private translate; + private cssParser; + private widgetsInfoInMemoryCache; + private widgetsInfoFetchQueue; + private init$; + private missingWidgetType; + private errorWidgetType; + private editingWidgetType; + constructor(window: Window, modulesMap: IModulesMap, homeComponentsModule: Type, dynamicComponentFactoryService: DynamicComponentFactoryService, widgetService: WidgetService, utils: UtilsService, resources: ResourcesService, translate: TranslateService); + private init; + getInstantWidgetInfo(widget: Widget): WidgetInfo; + getWidgetInfo(bundleAlias: string, widgetTypeAlias: string, isSystem: boolean): Observable; + private getWidgetInfoInternal; + private loadWidget; + private loadWidgetResources; + private createWidgetControllerDescriptor; + private processWidgetLoadError; + private resolveWidgetsInfoFetchQueue; + private createWidgetInfoCacheKey; + private getWidgetInfoFromCache; + private putWidgetInfoToCache; + private deleteWidgetInfoFromCache; + private deleteWidgetsBundleFromCache; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/components/widget/widget-components.module.d.ts b/src/app/modules/home/components/widget/widget-components.module.d.ts new file mode 100644 index 00000000..9136ce82 --- /dev/null +++ b/src/app/modules/home/components/widget/widget-components.module.d.ts @@ -0,0 +1,28 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@home/components/widget/lib/display-columns-panel.component"; +import * as i2 from "@home/components/widget/lib/alarm-filter-panel.component"; +import * as i3 from "@home/components/widget/lib/entities-table-widget.component"; +import * as i4 from "@home/components/widget/lib/alarms-table-widget.component"; +import * as i5 from "@home/components/widget/lib/timeseries-table-widget.component"; +import * as i6 from "@home/components/widget/lib/entities-hierarchy-widget.component"; +import * as i7 from "@home/components/widget/lib/edges-overview-widget.component"; +import * as i8 from "@home/components/widget/lib/date-range-navigator/date-range-navigator.component"; +import * as i9 from "@home/components/widget/lib/json-input-widget.component"; +import * as i10 from "@home/components/widget/lib/multiple-input-widget.component"; +import * as i11 from "@home/components/widget/trip-animation/trip-animation.component"; +import * as i12 from "@home/components/widget/lib/photo-camera-input.component"; +import * as i13 from "@home/components/widget/lib/gateway/gateway-form.component"; +import * as i14 from "@home/components/widget/lib/navigation-cards-widget.component"; +import * as i15 from "@home/components/widget/lib/navigation-card-widget.component"; +import * as i16 from "@home/components/widget/lib/qrcode-widget.component"; +import * as i17 from "@home/components/widget/lib/markdown-widget.component"; +import * as i18 from "@home/components/widget/lib/maps/dialogs/select-entity-dialog.component"; +import * as i19 from "@angular/common"; +import * as i20 from "@app/shared/shared.module"; +import * as i21 from "@home/components/widget/lib/rpc/rpc-widgets.module"; +import * as i22 from "@home/components/shared-home-components.module"; +export declare class WidgetComponentsModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/components/widget/widget-config.component.d.ts b/src/app/modules/home/components/widget/widget-config.component.d.ts new file mode 100644 index 00000000..935eb094 --- /dev/null +++ b/src/app/modules/home/components/widget/widget-config.component.d.ts @@ -0,0 +1,164 @@ +import { OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { DataKey, DatasourceType, widgetType } from '@shared/models/widget.models'; +import { ControlValueAccessor, FormArray, FormBuilder, FormControl, FormGroup, Validator } from '@angular/forms'; +import { WidgetConfigComponentData } from '@home/models/widget-component.models'; +import { AlarmSearchStatus, AlarmSeverity } from '@shared/models/alarm.models'; +import { IAliasController } from '@core/api/widget-api.models'; +import { EntityAliases } from '@shared/models/alias.models'; +import { UtilsService } from '@core/services/utils.service'; +import { DataKeyType } from '@shared/models/telemetry/telemetry.models'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityType } from '@shared/models/entity-type.models'; +import { WidgetConfigCallbacks } from '@home/components/widget/widget-config.component.models'; +import { MatDialog } from '@angular/material/dialog'; +import { EntityService } from '@core/http/entity.service'; +import { DashboardState } from '@shared/models/dashboard.models'; +import { Filters } from '@shared/models/query/query.models'; +import { MatChipInputEvent } from '@angular/material/chips'; +import { DndDropEvent } from 'ngx-drag-drop'; +import * as i0 from "@angular/core"; +export declare class WidgetConfigComponent extends PageComponent implements OnInit, ControlValueAccessor, Validator { + protected store: Store; + private utils; + private entityService; + private dialog; + private translate; + private fb; + readonly separatorKeysCodes: number[]; + widgetTypes: typeof widgetType; + entityTypes: typeof EntityType; + alarmSearchStatuses: AlarmSearchStatus[]; + alarmSearchStatusTranslationMap: Map; + alarmSeverities: string[]; + alarmSeverityEnum: typeof AlarmSeverity; + alarmSeverityTranslationMap: Map; + forceExpandDatasources: boolean; + aliasController: IAliasController; + entityAliases: EntityAliases; + filters: Filters; + functionsOnly: boolean; + dashboardStates: { + [id: string]: DashboardState; + }; + disabled: boolean; + widgetType: widgetType; + datasourceType: typeof DatasourceType; + datasourceTypes: Array; + datasourceTypesTranslations: Map; + widgetConfigCallbacks: WidgetConfigCallbacks; + widgetEditMode: boolean; + selectedTab: number; + modelValue: WidgetConfigComponentData; + showLegendFieldset: boolean; + private propagateChange; + dataSettings: FormGroup; + targetDeviceSettings: FormGroup; + alarmSourceSettings: FormGroup; + widgetSettings: FormGroup; + layoutSettings: FormGroup; + advancedSettings: FormGroup; + actionsSettings: FormGroup; + private dataSettingsChangesSubscription; + private targetDeviceSettingsSubscription; + private alarmSourceSettingsSubscription; + private widgetSettingsSubscription; + private layoutSettingsSubscription; + private advancedSettingsSubscription; + private actionsSettingsSubscription; + constructor(store: Store, utils: UtilsService, entityService: EntityService, dialog: MatDialog, translate: TranslateService, fb: FormBuilder); + ngOnInit(): void; + ngOnDestroy(): void; + private removeChangeSubscriptions; + private createChangeSubscriptions; + private buildForms; + datasourcesFormArray(): FormArray; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: WidgetConfigComponentData): void; + private buildDatasourceForm; + private updateSchemaForm; + private updateDataSettings; + private updateTargetDeviceSettings; + private updateAlarmSourceSettings; + private updateWidgetSettings; + private updateLayoutSettings; + private updateAdvancedSettings; + private updateActionSettings; + alarmTypeList(): string[]; + removeAlarmType(type: string): void; + addAlarmType(event: MatChipInputEvent): void; + displayAdvanced(): boolean; + dndDatasourceMoved(index: number): void; + onDatasourceDrop(event: DndDropEvent): void; + removeDatasource(index: number): void; + addDatasource(): void; + generateDataKey(chip: any, type: DataKeyType): DataKey; + private genNextLabel; + private genNextColor; + private createEntityAlias; + private createFilter; + private fetchEntityKeys; + private fetchDashboardStates; + private createFilterForDashboardState; + validate(c: FormControl): { + dataSettings: { + valid: boolean; + }; + widgetSettings?: undefined; + advancedSettings?: undefined; + targetDeviceAliasIds?: undefined; + alarmSource?: undefined; + datasources?: undefined; + } | { + widgetSettings: { + valid: boolean; + }; + dataSettings?: undefined; + advancedSettings?: undefined; + targetDeviceAliasIds?: undefined; + alarmSource?: undefined; + datasources?: undefined; + } | { + advancedSettings: { + valid: boolean; + }; + dataSettings?: undefined; + widgetSettings?: undefined; + targetDeviceAliasIds?: undefined; + alarmSource?: undefined; + datasources?: undefined; + } | { + targetDeviceAliasIds: { + valid: boolean; + }; + dataSettings?: undefined; + widgetSettings?: undefined; + advancedSettings?: undefined; + alarmSource?: undefined; + datasources?: undefined; + } | { + alarmSource: { + valid: boolean; + }; + dataSettings?: undefined; + widgetSettings?: undefined; + advancedSettings?: undefined; + targetDeviceAliasIds?: undefined; + datasources?: undefined; + } | { + datasources: { + valid: boolean; + }; + dataSettings?: undefined; + widgetSettings?: undefined; + advancedSettings?: undefined; + targetDeviceAliasIds?: undefined; + alarmSource?: undefined; + }; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/widget-config.component.models.d.ts b/src/app/modules/home/components/widget/widget-config.component.models.d.ts new file mode 100644 index 00000000..3e0b2808 --- /dev/null +++ b/src/app/modules/home/components/widget/widget-config.component.models.d.ts @@ -0,0 +1,5 @@ +import { EntityAliasSelectCallbacks } from '../alias/entity-alias-select.component.models'; +import { DataKeysCallbacks } from './data-keys.component.models'; +import { WidgetActionCallbacks } from './action/manage-widget-actions.component.models'; +import { FilterSelectCallbacks } from '@home/components/filter/filter-select.component.models'; +export declare type WidgetConfigCallbacks = EntityAliasSelectCallbacks & FilterSelectCallbacks & DataKeysCallbacks & WidgetActionCallbacks; diff --git a/src/app/modules/home/components/widget/widget-container.component.d.ts b/src/app/modules/home/components/widget/widget-container.component.d.ts new file mode 100644 index 00000000..80bb38a6 --- /dev/null +++ b/src/app/modules/home/components/widget/widget-container.component.d.ts @@ -0,0 +1,58 @@ +import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { DashboardWidget, DashboardWidgets } from '@home/models/dashboard-component.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { SafeStyle } from '@angular/platform-browser'; +import { GridsterItemComponent } from 'angular-gridster2'; +import * as i0 from "@angular/core"; +export declare enum WidgetComponentActionType { + MOUSE_DOWN = 0, + CLICKED = 1, + CONTEXT_MENU = 2, + EDIT = 3, + EXPORT = 4, + REMOVE = 5 +} +export declare class WidgetComponentAction { + event: MouseEvent; + actionType: WidgetComponentActionType; +} +export declare class WidgetContainerComponent extends PageComponent implements OnInit, OnDestroy { + protected store: Store; + private cd; + private renderer; + private document; + widgetContainerClass: string; + tbWidgetElement: ElementRef; + gridsterItem: GridsterItemComponent; + widget: DashboardWidget; + dashboardStyle: { + [klass: string]: any; + }; + backgroundImage: SafeStyle | string; + isEdit: boolean; + isMobile: boolean; + dashboardWidgets: DashboardWidgets; + isEditActionEnabled: boolean; + isExportActionEnabled: boolean; + isRemoveActionEnabled: boolean; + disableWidgetInteraction: boolean; + widgetFullscreenChanged: EventEmitter; + widgetComponentAction: EventEmitter; + private cssClass; + constructor(store: Store, cd: ChangeDetectorRef, renderer: Renderer2, document: Document); + ngOnInit(): void; + ngOnDestroy(): void; + isHighlighted(widget: DashboardWidget): boolean; + isNotHighlighted(widget: DashboardWidget): boolean; + onFullscreenChanged(expanded: boolean): void; + onMouseDown(event: MouseEvent): void; + onClicked(event: MouseEvent): void; + onContextMenu(event: MouseEvent): void; + onEdit(event: MouseEvent): void; + onExport(event: MouseEvent): void; + onRemove(event: MouseEvent): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/widget/widget.component.d.ts b/src/app/modules/home/components/widget/widget.component.d.ts new file mode 100644 index 00000000..01503fe7 --- /dev/null +++ b/src/app/modules/home/components/widget/widget.component.d.ts @@ -0,0 +1,139 @@ +import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, ElementRef, Injector, NgZone, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core'; +import { DashboardWidget } from '@home/models/dashboard-component.models'; +import { LegendConfig, LegendData, Widget, WidgetTypeParameters } from '@shared/models/widget.models'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { WidgetService } from '@core/http/widget.service'; +import { UtilsService } from '@core/services/utils.service'; +import { IDynamicWidgetComponent, WidgetContext, WidgetInfo, WidgetTypeInstance } from '@home/models/widget-component.models'; +import { SubscriptionMessage, WidgetSubscriptionContext } from '@core/api/widget-api.models'; +import { ActivatedRoute, Router } from '@angular/router'; +import { ResourcesService } from '@core/services/resources.service'; +import { TimeService } from '@core/services/time.service'; +import { DeviceService } from '@app/core/http/device.service'; +import { ExceptionData } from '@shared/models/error.models'; +import { WidgetComponentService } from './widget-component.service'; +import { Timewindow } from '@shared/models/time/time.models'; +import { CancelAnimationFrame, RafService } from '@core/services/raf.service'; +import { DashboardService } from '@core/http/dashboard.service'; +import { EntityService } from '@core/http/entity.service'; +import { EntityDataService } from '@core/api/entity-data.service'; +import { TranslateService } from '@ngx-translate/core'; +import { AlarmDataService } from '@core/api/alarm-data.service'; +import { MatDialog } from '@angular/material/dialog'; +import { ComponentType } from '@angular/cdk/portal'; +import { MobileService } from '@core/services/mobile.service'; +import { DialogService } from '@core/services/dialog.service'; +import { TbPopoverService } from '@shared/components/popover.service'; +import * as i0 from "@angular/core"; +export declare class WidgetComponent extends PageComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy { + protected store: Store; + private route; + private router; + private widgetComponentService; + private componentFactoryResolver; + private elementRef; + private injector; + private dialog; + private renderer; + private popoverService; + private embedDashboardDialogComponent; + private dashboardPageComponent; + private widgetService; + private resources; + private timeService; + private deviceService; + private entityService; + private dashboardService; + private entityDataService; + private alarmDataService; + private translate; + private utils; + private mobileService; + private dialogs; + private raf; + private ngZone; + private cd; + isEdit: boolean; + isMobile: boolean; + dashboardWidget: DashboardWidget; + widgetContentContainer: ViewContainerRef; + widget: Widget; + widgetInfo: WidgetInfo; + errorMessages: string[]; + widgetContext: WidgetContext; + widgetType: any; + typeParameters: WidgetTypeParameters; + widgetTypeInstance: WidgetTypeInstance; + widgetErrorData: ExceptionData; + loadingData: boolean; + displayNoData: boolean; + noDataDisplayMessageText: string; + displayLegend: boolean; + legendConfig: LegendConfig; + legendData: LegendData; + isLegendFirst: boolean; + legendContainerLayoutType: string; + legendStyle: { + [klass: string]: any; + }; + dynamicWidgetComponentRef: ComponentRef; + dynamicWidgetComponent: IDynamicWidgetComponent; + subscriptionContext: WidgetSubscriptionContext; + subscriptionInited: boolean; + destroyed: boolean; + widgetSizeDetected: boolean; + widgetInstanceInited: boolean; + dataUpdatePending: boolean; + pendingMessage: SubscriptionMessage; + cafs: { + [cafId: string]: CancelAnimationFrame; + }; + toastTargetId: string; + private widgetResize$; + private cssParser; + private rxSubscriptions; + constructor(store: Store, route: ActivatedRoute, router: Router, widgetComponentService: WidgetComponentService, componentFactoryResolver: ComponentFactoryResolver, elementRef: ElementRef, injector: Injector, dialog: MatDialog, renderer: Renderer2, popoverService: TbPopoverService, embedDashboardDialogComponent: ComponentType, dashboardPageComponent: ComponentType, widgetService: WidgetService, resources: ResourcesService, timeService: TimeService, deviceService: DeviceService, entityService: EntityService, dashboardService: DashboardService, entityDataService: EntityDataService, alarmDataService: AlarmDataService, translate: TranslateService, utils: UtilsService, mobileService: MobileService, dialogs: DialogService, raf: RafService, ngZone: NgZone, cd: ChangeDetectorRef); + ngOnInit(): void; + ngAfterViewInit(): void; + ngOnChanges(changes: SimpleChanges): void; + ngOnDestroy(): void; + private displayWidgetInstance; + private onDestroy; + onTimewindowChanged(timewindow: Timewindow): void; + onLegendKeyHiddenChange(index: number): void; + private loadFromWidgetInfo; + private detectChanges; + private isReady; + private onInit; + private onResize; + private onEditModeChanged; + private onMobileModeChanged; + private reInit; + private reInitImpl; + private initialize; + private destroyDynamicWidgetComponent; + private handleWidgetException; + private displayMessage; + private clearMessage; + private configureDynamicWidgetComponent; + private createSubscription; + private createSubscriptionFromInfo; + private defaultComponentsOptions; + private defaultSubscriptionOptions; + private createDefaultSubscription; + private getActionDescriptors; + private handleWidgetAction; + private handleMobileAction; + private handleWidgetMobileActionError; + private openDashboardStateInPopover; + private openDashboardStateInSeparateDialog; + private elementClick; + private loadCustomActionResources; + private processResourcesLoadErrors; + private getActiveEntityInfo; + private checkSize; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/components/wizard/device-wizard-dialog.component.d.ts b/src/app/modules/home/components/wizard/device-wizard-dialog.component.d.ts new file mode 100644 index 00000000..432ef881 --- /dev/null +++ b/src/app/modules/home/components/wizard/device-wizard-dialog.component.d.ts @@ -0,0 +1,68 @@ +import { OnDestroy } from '@angular/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import { DeviceProfileInfo, DeviceTransportType } from '@shared/models/device.models'; +import { MatHorizontalStepper } from '@angular/material/stepper'; +import { AddEntityDialogData } from '@home/models/entity/entity-component.models'; +import { BaseData } from '@shared/models/base-data'; +import { EntityType } from '@shared/models/entity-type.models'; +import { DeviceProfileService } from '@core/http/device-profile.service'; +import { EntityId } from '@shared/models/id/entity-id'; +import { DeviceService } from '@core/http/device.service'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { StepperSelectionEvent } from '@angular/cdk/stepper'; +import { BreakpointObserver } from '@angular/cdk/layout'; +import { ServiceType } from '@shared/models/queue.models'; +import * as i0 from "@angular/core"; +export declare class DeviceWizardDialogComponent extends DialogComponent implements OnDestroy, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: AddEntityDialogData>; + private errorStateMatcher; + dialogRef: MatDialogRef; + private deviceProfileService; + private deviceService; + private breakpointObserver; + private fb; + addDeviceWizardStepper: MatHorizontalStepper; + selectedIndex: number; + showNext: boolean; + createProfile: boolean; + entityType: typeof EntityType; + deviceTransportTypes: DeviceTransportType[]; + deviceTransportTypeTranslations: Map; + deviceTransportTypeHints: Map; + deviceWizardFormGroup: FormGroup; + transportConfigFormGroup: FormGroup; + alarmRulesFormGroup: FormGroup; + provisionConfigFormGroup: FormGroup; + credentialsFormGroup: FormGroup; + customerFormGroup: FormGroup; + labelPosition: MatHorizontalStepper['labelPosition']; + serviceType: ServiceType; + private subscriptions; + private currentDeviceProfileTransportType; + constructor(store: Store, router: Router, data: AddEntityDialogData>, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, deviceProfileService: DeviceProfileService, deviceService: DeviceService, breakpointObserver: BreakpointObserver, fb: FormBuilder); + ngOnDestroy(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + previousStep(): void; + nextStep(): void; + getFormLabel(index: number): string; + get maxStepperIndex(): number; + private deviceProfileTransportTypeChanged; + add(): void; + get deviceTransportType(): DeviceTransportType; + deviceProfileChanged(deviceProfile: DeviceProfileInfo): void; + private createDeviceProfile; + private createDevice; + private saveCredentials; + allValid(): boolean; + changeStep($event: StepperSelectionEvent): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/dialogs/add-entities-to-customer-dialog.component.d.ts b/src/app/modules/home/dialogs/add-entities-to-customer-dialog.component.d.ts new file mode 100644 index 00000000..f5d17ef7 --- /dev/null +++ b/src/app/modules/home/dialogs/add-entities-to-customer-dialog.component.d.ts @@ -0,0 +1,45 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { DeviceService } from '@core/http/device.service'; +import { EntityType } from '@shared/models/entity-type.models'; +import { AssetService } from '@core/http/asset.service'; +import { EntityViewService } from '@core/http/entity-view.service'; +import { DashboardService } from '@core/http/dashboard.service'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import { EdgeService } from '@core/http/edge.service'; +import * as i0 from "@angular/core"; +export interface AddEntitiesToCustomerDialogData { + customerId: string; + entityType: EntityType; +} +export declare class AddEntitiesToCustomerDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: AddEntitiesToCustomerDialogData; + private deviceService; + private assetService; + private edgeService; + private entityViewService; + private dashboardService; + private errorStateMatcher; + dialogRef: MatDialogRef; + fb: FormBuilder; + addEntitiesToCustomerFormGroup: FormGroup; + submitted: boolean; + entityType: EntityType; + assignToCustomerTitle: string; + assignToCustomerText: string; + constructor(store: Store, router: Router, data: AddEntitiesToCustomerDialogData, deviceService: DeviceService, assetService: AssetService, edgeService: EdgeService, entityViewService: EntityViewService, dashboardService: DashboardService, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + assign(): void; + private getAssignToCustomerTask; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/dialogs/add-entities-to-edge-dialog.component.d.ts b/src/app/modules/home/dialogs/add-entities-to-edge-dialog.component.d.ts new file mode 100644 index 00000000..bab098e6 --- /dev/null +++ b/src/app/modules/home/dialogs/add-entities-to-edge-dialog.component.d.ts @@ -0,0 +1,48 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { DeviceService } from '@core/http/device.service'; +import { EdgeService } from '@core/http/edge.service'; +import { EntityType } from '@shared/models/entity-type.models'; +import { AssetService } from '@core/http/asset.service'; +import { EntityViewService } from '@core/http/entity-view.service'; +import { DashboardService } from '@core/http/dashboard.service'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import { RuleChainService } from '@core/http/rule-chain.service'; +import * as i0 from "@angular/core"; +export interface AddEntitiesToEdgeDialogData { + edgeId: string; + entityType: EntityType; +} +export declare class AddEntitiesToEdgeDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: AddEntitiesToEdgeDialogData; + private deviceService; + private edgeService; + private assetService; + private entityViewService; + private dashboardService; + private ruleChainService; + private errorStateMatcher; + dialogRef: MatDialogRef; + fb: FormBuilder; + addEntitiesToEdgeFormGroup: FormGroup; + submitted: boolean; + entityType: EntityType; + subType: string; + assignToEdgeTitle: string; + assignToEdgeText: string; + constructor(store: Store, router: Router, data: AddEntitiesToEdgeDialogData, deviceService: DeviceService, edgeService: EdgeService, assetService: AssetService, entityViewService: EntityViewService, dashboardService: DashboardService, ruleChainService: RuleChainService, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + assign(): void; + private getAssignToEdgeTask; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/dialogs/assign-to-customer-dialog.component.d.ts b/src/app/modules/home/dialogs/assign-to-customer-dialog.component.d.ts new file mode 100644 index 00000000..729e92ba --- /dev/null +++ b/src/app/modules/home/dialogs/assign-to-customer-dialog.component.d.ts @@ -0,0 +1,44 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { DeviceService } from '@core/http/device.service'; +import { EntityId } from '@shared/models/id/entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +import { AssetService } from '@core/http/asset.service'; +import { EntityViewService } from '@core/http/entity-view.service'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import { EdgeService } from '@core/http/edge.service'; +import * as i0 from "@angular/core"; +export interface AssignToCustomerDialogData { + entityIds: Array; + entityType: EntityType; +} +export declare class AssignToCustomerDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: AssignToCustomerDialogData; + private deviceService; + private assetService; + private edgeService; + private entityViewService; + private errorStateMatcher; + dialogRef: MatDialogRef; + fb: FormBuilder; + assignToCustomerFormGroup: FormGroup; + submitted: boolean; + entityType: typeof EntityType; + assignToCustomerTitle: string; + assignToCustomerText: string; + constructor(store: Store, router: Router, data: AssignToCustomerDialogData, deviceService: DeviceService, assetService: AssetService, edgeService: EdgeService, entityViewService: EntityViewService, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + assign(): void; + private getAssignToCustomerTask; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/dialogs/home-dialogs.module.d.ts b/src/app/modules/home/dialogs/home-dialogs.module.d.ts new file mode 100644 index 00000000..3b5c4dba --- /dev/null +++ b/src/app/modules/home/dialogs/home-dialogs.module.d.ts @@ -0,0 +1,11 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@modules/home/dialogs/assign-to-customer-dialog.component"; +import * as i2 from "@modules/home/dialogs/add-entities-to-customer-dialog.component"; +import * as i3 from "@home/dialogs/add-entities-to-edge-dialog.component"; +import * as i4 from "@angular/common"; +import * as i5 from "@app/shared/shared.module"; +export declare class HomeDialogsModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/dialogs/home-dialogs.service.d.ts b/src/app/modules/home/dialogs/home-dialogs.service.d.ts new file mode 100644 index 00000000..a6ebbf3d --- /dev/null +++ b/src/app/modules/home/dialogs/home-dialogs.service.d.ts @@ -0,0 +1,12 @@ +import { MatDialog } from '@angular/material/dialog'; +import { EntityType } from '@shared/models/entity-type.models'; +import { Observable } from 'rxjs'; +import * as i0 from "@angular/core"; +export declare class HomeDialogsService { + private dialog; + constructor(dialog: MatDialog); + importEntities(entityType: EntityType): Observable; + private openImportDialogCSV; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/home-routing.module.d.ts b/src/app/modules/home/home-routing.module.d.ts new file mode 100644 index 00000000..bf624229 --- /dev/null +++ b/src/app/modules/home/home-routing.module.d.ts @@ -0,0 +1,8 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@ngrx/store"; +import * as i2 from "@angular/router"; +export declare class HomeRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/home.component.d.ts b/src/app/modules/home/home.component.d.ts new file mode 100644 index 00000000..cf4253aa --- /dev/null +++ b/src/app/modules/home/home.component.d.ts @@ -0,0 +1,46 @@ +import { AfterViewInit, ElementRef, OnInit } from '@angular/core'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { BreakpointObserver } from '@angular/cdk/layout'; +import { User } from '@shared/models/user.model'; +import { PageComponent } from '@shared/components/page.component'; +import { AppState } from '@core/core.state'; +import { MatSidenav } from '@angular/material/sidenav'; +import { AuthState } from '@core/auth/auth.models'; +import { ISearchableComponent } from '@home/models/searchable-component.models'; +import * as i0 from "@angular/core"; +export declare class HomeComponent extends PageComponent implements AfterViewInit, OnInit { + protected store: Store; + private window; + breakpointObserver: BreakpointObserver; + authState: AuthState; + forceFullscreen: boolean; + activeComponent: any; + searchableComponent: ISearchableComponent; + sidenavMode: 'over' | 'push' | 'side'; + sidenavOpened: boolean; + logo: string; + sidenav: MatSidenav; + searchInputField: ElementRef; + fullscreenEnabled: true; + authUser$: Observable; + userDetails$: Observable; + userDetailsString: Observable; + searchEnabled: boolean; + showSearch: boolean; + searchText: string; + constructor(store: Store, window: Window, breakpointObserver: BreakpointObserver); + ngOnInit(): void; + ngAfterViewInit(): void; + sidenavClicked(): void; + toggleFullscreen(): void; + isFullscreen(): boolean; + goBack(): void; + activeComponentChanged(activeComponent: any): void; + displaySearchMode(): boolean; + openSearch(): void; + closeSearch(): void; + private searchTextUpdated; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/home.module.d.ts b/src/app/modules/home/home.module.d.ts new file mode 100644 index 00000000..b18dcf0f --- /dev/null +++ b/src/app/modules/home/home.module.d.ts @@ -0,0 +1,13 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./home.component"; +import * as i2 from "@modules/home/menu/menu-link.component"; +import * as i3 from "@modules/home/menu/menu-toggle.component"; +import * as i4 from "@modules/home/menu/side-menu.component"; +import * as i5 from "@angular/common"; +import * as i6 from "@app/shared/shared.module"; +import * as i7 from "./home-routing.module"; +export declare class HomeModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/menu/menu-link.component.d.ts b/src/app/modules/home/menu/menu-link.component.d.ts new file mode 100644 index 00000000..916b43a9 --- /dev/null +++ b/src/app/modules/home/menu/menu-link.component.d.ts @@ -0,0 +1,10 @@ +import { OnInit } from '@angular/core'; +import { MenuSection } from '@core/services/menu.models'; +import * as i0 from "@angular/core"; +export declare class MenuLinkComponent implements OnInit { + section: MenuSection; + constructor(); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/menu/menu-toggle.component.d.ts b/src/app/modules/home/menu/menu-toggle.component.d.ts new file mode 100644 index 00000000..74d32427 --- /dev/null +++ b/src/app/modules/home/menu/menu-toggle.component.d.ts @@ -0,0 +1,15 @@ +import { OnInit } from '@angular/core'; +import { MenuSection } from '@core/services/menu.models'; +import { Router } from '@angular/router'; +import * as i0 from "@angular/core"; +export declare class MenuToggleComponent implements OnInit { + private router; + section: MenuSection; + constructor(router: Router); + ngOnInit(): void; + sectionActive(): boolean; + sectionHeight(): string; + trackBySectionPages(index: number, section: MenuSection): string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/menu/side-menu.component.d.ts b/src/app/modules/home/menu/side-menu.component.d.ts new file mode 100644 index 00000000..d30c5e75 --- /dev/null +++ b/src/app/modules/home/menu/side-menu.component.d.ts @@ -0,0 +1,13 @@ +import { OnInit } from '@angular/core'; +import { MenuService } from '@core/services/menu.service'; +import { MenuSection } from '@core/services/menu.models'; +import * as i0 from "@angular/core"; +export declare class SideMenuComponent implements OnInit { + private menuService; + menuSections$: import("rxjs").Observable; + constructor(menuService: MenuService); + trackByMenuSection(index: number, section: MenuSection): string; + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/models/contact.models.d.ts b/src/app/modules/home/models/contact.models.d.ts new file mode 100644 index 00000000..64759caf --- /dev/null +++ b/src/app/modules/home/models/contact.models.d.ts @@ -0,0 +1,21 @@ +export declare const COUNTRIES: string[]; +export declare const POSTAL_CODE_PATTERNS: { + 'United States': string; + Australia: string; + Austria: string; + Belgium: string; + Brazil: string; + Canada: string; + Denmark: string; + 'Faroe Islands': string; + Netherlands: string; + Germany: string; + Hungary: string; + Italy: string; + Japan: string; + Luxembourg: string; + Poland: string; + Spain: string; + Sweden: string; + 'United Kingdom': string; +}; diff --git a/src/app/modules/home/models/dashboard-component.models.d.ts b/src/app/modules/home/models/dashboard-component.models.d.ts new file mode 100644 index 00000000..0aede735 --- /dev/null +++ b/src/app/modules/home/models/dashboard-component.models.d.ts @@ -0,0 +1,144 @@ +import { GridsterComponent, GridsterConfig, GridsterItem, GridsterItemComponentInterface } from 'angular-gridster2'; +import { Widget, WidgetPosition } from '@app/shared/models/widget.models'; +import { WidgetLayout, WidgetLayouts } from '@app/shared/models/dashboard.models'; +import { IDashboardWidget, WidgetAction, WidgetContext, WidgetHeaderAction } from './widget-component.models'; +import { Timewindow } from '@shared/models/time/time.models'; +import { Observable } from 'rxjs'; +import { IterableDiffer, KeyValueDiffer } from '@angular/core'; +import { IAliasController, IStateController } from '@app/core/api/widget-api.models'; +import { UtilsService } from '@core/services/utils.service'; +export interface WidgetsData { + widgets: Array; + widgetLayouts?: WidgetLayouts; +} +export interface ContextMenuItem { + enabled: boolean; + shortcut?: string; + icon: string; + value: string; +} +export interface DashboardContextMenuItem extends ContextMenuItem { + action: (contextMenuEvent: MouseEvent) => void; +} +export interface WidgetContextMenuItem extends ContextMenuItem { + action: (contextMenuEvent: MouseEvent, widget: Widget) => void; +} +export interface DashboardCallbacks { + onEditWidget?: ($event: Event, widget: Widget) => void; + onExportWidget?: ($event: Event, widget: Widget) => void; + onRemoveWidget?: ($event: Event, widget: Widget) => void; + onWidgetMouseDown?: ($event: Event, widget: Widget) => void; + onWidgetClicked?: ($event: Event, widget: Widget) => void; + prepareDashboardContextMenu?: ($event: Event) => Array; + prepareWidgetContextMenu?: ($event: Event, widget: Widget) => Array; +} +export interface IDashboardComponent { + utils: UtilsService; + gridsterOpts: GridsterConfig; + gridster: GridsterComponent; + dashboardWidgets: DashboardWidgets; + mobileAutofillHeight: boolean; + isMobileSize: boolean; + isEdit: boolean; + autofillHeight: boolean; + dashboardTimewindow: Timewindow; + dashboardTimewindowChanged: Observable; + aliasController: IAliasController; + stateController: IStateController; + onUpdateTimewindow(startTimeMs: number, endTimeMs: number, interval?: number, persist?: boolean): void; + onResetTimewindow(): void; + resetHighlight(): void; + highlightWidget(widgetId: string, delay?: number): any; + selectWidget(widgetId: string, delay?: number): any; + getSelectedWidget(): Widget; + getEventGridPosition(event: Event): WidgetPosition; + notifyGridsterOptionsChanged(): any; + pauseChangeNotifications(): any; + resumeChangeNotifications(): any; + notifyLayoutUpdated(): any; +} +export declare class DashboardWidgets implements Iterable { + private dashboard; + private widgetsDiffer; + private widgetLayoutsDiffer; + highlightedMode: boolean; + dashboardWidgets: Array; + widgets: Iterable; + widgetLayouts: WidgetLayouts; + parentDashboard?: IDashboardComponent; + [Symbol.iterator](): Iterator; + get activeDashboardWidgets(): Array; + constructor(dashboard: IDashboardComponent, widgetsDiffer: IterableDiffer, widgetLayoutsDiffer: KeyValueDiffer); + doCheck(): void; + widgetLayoutsUpdated(): void; + setWidgets(widgets: Iterable, widgetLayouts: WidgetLayouts): void; + highlightWidget(widgetId: string): DashboardWidget; + selectWidget(widgetId: string): DashboardWidget; + resetHighlight(): DashboardWidget; + isHighlighted(widget: DashboardWidget): boolean; + isNotHighlighted(widget: DashboardWidget): boolean; + getSelectedWidget(): DashboardWidget; + private findWidgetById; + private updateRowsAndSort; + sortWidgets(): void; +} +export declare class DashboardWidget implements GridsterItem, IDashboardWidget { + private dashboard; + widget: Widget; + widgetLayout?: WidgetLayout; + private parentDashboard?; + private highlightedValue; + private selectedValue; + isFullscreen: boolean; + color: string; + backgroundColor: string; + padding: string; + margin: string; + title: string; + customTranslatedTitle: string; + titleTooltip: string; + showTitle: boolean; + titleStyle: { + [klass: string]: any; + }; + titleIcon: string; + showTitleIcon: boolean; + titleIconStyle: { + [klass: string]: any; + }; + dropShadow: boolean; + enableFullscreen: boolean; + hasTimewindow: boolean; + hasAggregation: boolean; + style: { + [klass: string]: any; + }; + showWidgetTitlePanel: boolean; + showWidgetActions: boolean; + customHeaderActions: Array; + widgetActions: Array; + widgetContext: WidgetContext; + widgetId: string; + private gridsterItemComponentSubject; + private gridsterItemComponentValue; + get mobileHide(): boolean; + set gridsterItemComponent(item: GridsterItemComponentInterface); + get highlighted(): boolean; + set highlighted(highlighted: boolean); + get selected(): boolean; + set selected(selected: boolean); + constructor(dashboard: IDashboardComponent, widget: Widget, widgetLayout?: WidgetLayout, parentDashboard?: IDashboardComponent); + gridsterItemComponent$(): Observable; + updateWidgetParams(detectChanges?: boolean): void; + updateCustomHeaderActions(detectChanges?: boolean): void; + private filterCustomHeaderAction; + get x(): number; + set x(x: number); + get y(): number; + set y(y: number); + get cols(): number; + set cols(cols: number); + get rows(): number; + set rows(rows: number); + get widgetOrder(): number; +} diff --git a/src/app/modules/home/models/datasource/attribute-datasource.d.ts b/src/app/modules/home/models/datasource/attribute-datasource.d.ts new file mode 100644 index 00000000..fd3ff52e --- /dev/null +++ b/src/app/modules/home/models/datasource/attribute-datasource.d.ts @@ -0,0 +1,32 @@ +import { CollectionViewer, DataSource, SelectionModel } from '@angular/cdk/collections'; +import { Observable } from 'rxjs'; +import { PageData } from '@shared/models/page/page-data'; +import { PageLink } from '@shared/models/page/page-link'; +import { EntityId } from '@app/shared/models/id/entity-id'; +import { TranslateService } from '@ngx-translate/core'; +import { AttributeData, TelemetryType } from '@shared/models/telemetry/telemetry.models'; +import { AttributeService } from '@core/http/attribute.service'; +import { TelemetryWebsocketService } from '@core/ws/telemetry-websocket.service'; +import { NgZone } from '@angular/core'; +export declare class AttributeDatasource implements DataSource { + private attributeService; + private telemetryWsService; + private zone; + private translate; + private attributesSubject; + private pageDataSubject; + pageData$: Observable>; + selection: SelectionModel; + private allAttributes; + private telemetrySubscriber; + constructor(attributeService: AttributeService, telemetryWsService: TelemetryWebsocketService, zone: NgZone, translate: TranslateService); + connect(collectionViewer: CollectionViewer): Observable>; + disconnect(collectionViewer: CollectionViewer): void; + loadAttributes(entityId: EntityId, attributesScope: TelemetryType, pageLink: PageLink, reload?: boolean): Observable>; + fetchAttributes(entityId: EntityId, attributesScope: TelemetryType, pageLink: PageLink): Observable>; + getAllAttributes(entityId: EntityId, attributesScope: TelemetryType): Observable>; + isAllSelected(): Observable; + isEmpty(): Observable; + total(): Observable; + masterToggle(): void; +} diff --git a/src/app/modules/home/models/datasource/entity-datasource.d.ts b/src/app/modules/home/models/datasource/entity-datasource.d.ts new file mode 100644 index 00000000..0efb3246 --- /dev/null +++ b/src/app/modules/home/models/datasource/entity-datasource.d.ts @@ -0,0 +1,31 @@ +import { PageLink } from '@shared/models/page/page-link'; +import { Observable } from 'rxjs'; +import { PageData } from '@shared/models/page/page-data'; +import { BaseData, HasId } from '@shared/models/base-data'; +import { CollectionViewer, DataSource, SelectionModel } from '@angular/cdk/collections'; +import { EntityBooleanFunction } from '@home/models/entity/entities-table-config.models'; +export declare type EntitiesFetchFunction, P extends PageLink> = (pageLink: P) => Observable>; +export declare class EntitiesDataSource, P extends PageLink = PageLink> implements DataSource { + private fetchFunction; + protected selectionEnabledFunction: EntityBooleanFunction; + protected dataLoadedFunction: (col?: number, row?: number) => void; + private entitiesSubject; + private pageDataSubject; + pageData$: Observable>; + selection: SelectionModel; + currentEntity: T; + dataLoading: boolean; + constructor(fetchFunction: EntitiesFetchFunction, selectionEnabledFunction: EntityBooleanFunction, dataLoadedFunction: (col?: number, row?: number) => void); + connect(collectionViewer: CollectionViewer): Observable>; + disconnect(collectionViewer: CollectionViewer): void; + reset(): void; + loadEntities(pageLink: P): Observable>; + protected onEntities(entities: T[]): void; + isAllSelected(): Observable; + isEmpty(): Observable; + total(): Observable; + toggleCurrentEntity(entity: T): boolean; + isCurrentEntity(entity: T): boolean; + masterToggle(): void; + private selectableEntitiesCount; +} diff --git a/src/app/modules/home/models/datasource/relation-datasource.d.ts b/src/app/modules/home/models/datasource/relation-datasource.d.ts new file mode 100644 index 00000000..9aa586d0 --- /dev/null +++ b/src/app/modules/home/models/datasource/relation-datasource.d.ts @@ -0,0 +1,27 @@ +import { CollectionViewer, DataSource, SelectionModel } from '@angular/cdk/collections'; +import { EntityRelationInfo, EntitySearchDirection } from '@shared/models/relation.models'; +import { Observable } from 'rxjs'; +import { PageData } from '@shared/models/page/page-data'; +import { EntityRelationService } from '@core/http/entity-relation.service'; +import { PageLink } from '@shared/models/page/page-link'; +import { EntityId } from '@app/shared/models/id/entity-id'; +import { TranslateService } from '@ngx-translate/core'; +export declare class RelationsDatasource implements DataSource { + private entityRelationService; + private translate; + private relationsSubject; + private pageDataSubject; + pageData$: Observable>; + selection: SelectionModel; + private allRelations; + constructor(entityRelationService: EntityRelationService, translate: TranslateService); + connect(collectionViewer: CollectionViewer): Observable>; + disconnect(collectionViewer: CollectionViewer): void; + loadRelations(direction: EntitySearchDirection, entityId: EntityId, pageLink: PageLink, reload?: boolean): Observable>; + fetchRelations(direction: EntitySearchDirection, entityId: EntityId, pageLink: PageLink): Observable>; + getAllRelations(direction: EntitySearchDirection, entityId: EntityId): Observable>; + isAllSelected(): Observable; + isEmpty(): Observable; + total(): Observable; + masterToggle(): void; +} diff --git a/src/app/modules/home/models/entity/entities-table-config.models.d.ts b/src/app/modules/home/models/entity/entities-table-config.models.d.ts new file mode 100644 index 00000000..d07ed485 --- /dev/null +++ b/src/app/modules/home/models/entity/entities-table-config.models.d.ts @@ -0,0 +1,154 @@ +import { BaseData, HasId } from '@shared/models/base-data'; +import { EntitiesDataSource, EntitiesFetchFunction } from '@home/models/datasource/entity-datasource'; +import { Observable } from 'rxjs'; +import { DatePipe } from '@angular/common'; +import { SortOrder } from '@shared/models/page/sort-order'; +import { EntityType, EntityTypeResource, EntityTypeTranslation } from '@shared/models/entity-type.models'; +import { EntityComponent } from '@home/components/entity/entity.component'; +import { Type } from '@angular/core'; +import { EntityAction } from './entity-component.models'; +import { HasUUID } from '@shared/models/id/has-uuid'; +import { PageLink } from '@shared/models/page/page-link'; +import { EntityTableHeaderComponent } from '@home/components/entity/entity-table-header.component'; +import { ActivatedRoute } from '@angular/router'; +import { EntityTabsComponent } from '../../components/entity/entity-tabs.component'; +import { IEntitiesTableComponent } from '@home/models/entity/entity-table-component.models'; +import { IEntityDetailsPageComponent } from '@home/models/entity/entity-details-page-component.models'; +export declare type EntityBooleanFunction> = (entity: T) => boolean; +export declare type EntityStringFunction> = (entity: T) => string; +export declare type EntityVoidFunction> = (entity: T) => void; +export declare type EntityIdsVoidFunction> = (ids: HasUUID[]) => void; +export declare type EntityCountStringFunction = (count: number) => string; +export declare type EntityTwoWayOperation> = (entity: T, originalEntity?: T) => Observable; +export declare type EntityByIdOperation> = (id: HasUUID) => Observable; +export declare type EntityIdOneWayOperation = (id: HasUUID) => Observable; +export declare type EntityActionFunction> = (action: EntityAction) => boolean; +export declare type CreateEntityOperation> = () => Observable; +export declare type EntityRowClickFunction> = (event: Event, entity: T) => boolean; +export declare type CellContentFunction> = (entity: T, key: string) => string; +export declare type CellTooltipFunction> = (entity: T, key: string) => string | undefined; +export declare type HeaderCellStyleFunction> = (key: string) => object; +export declare type CellStyleFunction> = (entity: T, key: string) => object; +export declare type CopyCellContent> = (entity: T, key: string, length: number) => object; +export declare enum CellActionDescriptorType { + 'DEFAULT' = 0, + 'COPY_BUTTON' = 1 +} +export interface CellActionDescriptor> { + name: string; + nameFunction?: (entity: T) => string; + icon?: string; + mdiIcon?: string; + style?: any; + isEnabled: (entity: T) => boolean; + onAction: ($event: MouseEvent, entity: T) => any; + type?: CellActionDescriptorType; +} +export interface GroupActionDescriptor> { + name: string; + icon: string; + isEnabled: boolean; + onAction: ($event: MouseEvent, entities: T[]) => void; +} +export interface HeaderActionDescriptor { + name: string; + icon: string; + isMdiIcon?: boolean; + isEnabled: () => boolean; + onAction: ($event: MouseEvent) => void; +} +export declare type EntityTableColumnType = 'content' | 'action'; +export declare class BaseEntityTableColumn> { + type: EntityTableColumnType; + key: string; + title: string; + width: string; + sortable: boolean; + ignoreTranslate: boolean; + mobileHide: boolean; + constructor(type: EntityTableColumnType, key: string, title: string, width?: string, sortable?: boolean, ignoreTranslate?: boolean, mobileHide?: boolean); +} +export declare class EntityTableColumn> extends BaseEntityTableColumn { + key: string; + title: string; + width: string; + cellContentFunction: CellContentFunction; + cellStyleFunction: CellStyleFunction; + sortable: boolean; + headerCellStyleFunction: HeaderCellStyleFunction; + cellTooltipFunction: CellTooltipFunction; + isNumberColumn: boolean; + actionCell: CellActionDescriptor; + constructor(key: string, title: string, width?: string, cellContentFunction?: CellContentFunction, cellStyleFunction?: CellStyleFunction, sortable?: boolean, headerCellStyleFunction?: HeaderCellStyleFunction, cellTooltipFunction?: CellTooltipFunction, isNumberColumn?: boolean, actionCell?: CellActionDescriptor); +} +export declare class EntityActionTableColumn> extends BaseEntityTableColumn { + key: string; + title: string; + actionDescriptor: CellActionDescriptor; + width: string; + constructor(key: string, title: string, actionDescriptor: CellActionDescriptor, width?: string); +} +export declare class DateEntityTableColumn> extends EntityTableColumn { + constructor(key: string, title: string, datePipe: DatePipe, width?: string, dateFormat?: string, cellStyleFunction?: CellStyleFunction); +} +export declare type EntityColumn> = EntityTableColumn | EntityActionTableColumn; +export declare class EntityTableConfig, P extends PageLink = PageLink, L extends BaseData = T> { + constructor(); + private table; + private entityDetailsPage; + componentsData: any; + loadDataOnInit: boolean; + onLoadAction: (route: ActivatedRoute) => void; + useTimePageLink: boolean; + defaultTimewindowInterval: import("@shared/models/time/time.models").Timewindow; + entityType: EntityType; + tableTitle: string; + selectionEnabled: boolean; + searchEnabled: boolean; + addEnabled: boolean; + entitiesDeleteEnabled: boolean; + detailsPanelEnabled: boolean; + hideDetailsTabsOnEdit: boolean; + actionsColumnTitle: any; + entityTranslations: EntityTypeTranslation; + entityResources: EntityTypeResource; + entityComponent: Type>; + entityTabsComponent: Type>; + addDialogStyle: {}; + defaultSortOrder: SortOrder; + displayPagination: boolean; + pageMode: boolean; + defaultPageSize: number; + columns: Array>; + cellActionDescriptors: Array>; + groupActionDescriptors: Array>; + headerActionDescriptors: Array; + addActionDescriptors: Array; + headerComponent: Type>; + addEntity: CreateEntityOperation; + dataSource: (dataLoadedFunction: (col?: number, row?: number) => void) => EntitiesDataSource; + detailsReadonly: EntityBooleanFunction; + entitySelectionEnabled: EntityBooleanFunction; + deleteEnabled: EntityBooleanFunction; + deleteEntityTitle: EntityStringFunction; + deleteEntityContent: EntityStringFunction; + deleteEntitiesTitle: EntityCountStringFunction; + deleteEntitiesContent: EntityCountStringFunction; + loadEntity: EntityByIdOperation; + saveEntity: EntityTwoWayOperation; + deleteEntity: EntityIdOneWayOperation; + entitiesFetchFunction: EntitiesFetchFunction; + onEntityAction: EntityActionFunction; + handleRowClick: EntityRowClickFunction; + entityTitle: EntityStringFunction; + entityAdded: EntityVoidFunction; + entityUpdated: EntityVoidFunction; + entitiesDeleted: EntityIdsVoidFunction; + getTable(): IEntitiesTableComponent; + setTable(table: IEntitiesTableComponent): void; + getEntityDetailsPage(): IEntityDetailsPageComponent; + setEntityDetailsPage(entityDetailsPage: IEntityDetailsPageComponent): void; + updateData(closeDetails?: boolean): void; + getActivatedRoute(): ActivatedRoute; +} +export declare function checkBoxCell(value: boolean): string; diff --git a/src/app/modules/home/models/entity/entity-component.models.d.ts b/src/app/modules/home/models/entity/entity-component.models.d.ts new file mode 100644 index 00000000..a5f457ea --- /dev/null +++ b/src/app/modules/home/models/entity/entity-component.models.d.ts @@ -0,0 +1,10 @@ +import { BaseData, HasId } from '@shared/models/base-data'; +import { EntityTableConfig } from './entities-table-config.models'; +export interface AddEntityDialogData> { + entitiesTableConfig: EntityTableConfig; +} +export interface EntityAction> { + event: Event; + action: string; + entity: T; +} diff --git a/src/app/modules/home/models/entity/entity-details-page-component.models.d.ts b/src/app/modules/home/models/entity/entity-details-page-component.models.d.ts new file mode 100644 index 00000000..da155f1e --- /dev/null +++ b/src/app/modules/home/models/entity/entity-details-page-component.models.d.ts @@ -0,0 +1,3 @@ +export interface IEntityDetailsPageComponent { + reload(): void; +} diff --git a/src/app/modules/home/models/entity/entity-table-component.models.d.ts b/src/app/modules/home/models/entity/entity-table-component.models.d.ts new file mode 100644 index 00000000..a3ab41a2 --- /dev/null +++ b/src/app/modules/home/models/entity/entity-table-component.models.d.ts @@ -0,0 +1,65 @@ +import { BaseData, HasId } from '@shared/models/base-data'; +import { EntityTypeTranslation } from '@shared/models/entity-type.models'; +import { SafeHtml } from '@angular/platform-browser'; +import { PageLink } from '@shared/models/page/page-link'; +import { Timewindow } from '@shared/models/time/time.models'; +import { EntitiesDataSource } from '@home/models/datasource/entity-datasource'; +import { ElementRef, EventEmitter } from '@angular/core'; +import { TbAnchorComponent } from '@shared/components/tb-anchor.component'; +import { MatPaginator } from '@angular/material/paginator'; +import { MatSort } from '@angular/material/sort'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { CellActionDescriptor, EntityActionTableColumn, EntityColumn, EntityTableColumn, EntityTableConfig, GroupActionDescriptor, HeaderActionDescriptor } from '@home/models/entity/entities-table-config.models'; +import { ActivatedRoute } from '@angular/router'; +export interface IEntitiesTableComponent { + entitiesTableConfig: EntityTableConfig>; + translations: EntityTypeTranslation; + headerActionDescriptors: Array; + groupActionDescriptors: Array>>; + cellActionDescriptors: Array>>; + actionColumns: Array>>; + entityColumns: Array>>; + displayedColumns: string[]; + headerCellStyleCache: Array; + cellContentCache: Array; + cellTooltipCache: Array; + cellStyleCache: Array; + selectionEnabled: boolean; + defaultPageSize: number; + displayPagination: boolean; + pageSizeOptions: number[]; + pageLink: PageLink; + pageMode: boolean; + textSearchMode: boolean; + timewindow: Timewindow; + dataSource: EntitiesDataSource>; + isDetailsOpen: boolean; + detailsPanelOpened: EventEmitter; + entityTableHeaderAnchor: TbAnchorComponent; + searchInputField: ElementRef; + paginator: MatPaginator; + sort: MatSort; + route: ActivatedRoute; + addEnabled(): boolean; + clearSelection(): void; + updateData(closeDetails?: boolean): void; + onRowClick($event: Event, entity: any): void; + toggleEntityDetails($event: Event, entity: any): any; + addEntity($event: Event): void; + onEntityUpdated(entity: BaseData): void; + onEntityAction(action: EntityAction>): void; + deleteEntity($event: Event, entity: BaseData): void; + deleteEntities($event: Event, entities: BaseData[]): void; + onTimewindowChange(): void; + enterFilterMode(): void; + exitFilterMode(): void; + resetSortAndFilter(update?: boolean, preserveTimewindow?: boolean): void; + columnsUpdated(resetData?: boolean): void; + headerCellStyle(column: EntityColumn>): any; + clearCellCache(col: number, row: number): void; + cellContent(entity: BaseData, column: EntityColumn>, row: number): any; + cellTooltip(entity: BaseData, column: EntityColumn>, row: number): string; + cellStyle(entity: BaseData, column: EntityColumn>, row: number): any; + trackByColumnKey(index: any, column: EntityTableColumn>): string; + trackByEntityId(index: number, entity: BaseData): string; +} diff --git a/src/app/modules/home/models/searchable-component.models.d.ts b/src/app/modules/home/models/searchable-component.models.d.ts new file mode 100644 index 00000000..f5a9a571 --- /dev/null +++ b/src/app/modules/home/models/searchable-component.models.d.ts @@ -0,0 +1,4 @@ +export interface ISearchableComponent { + onSearchTextUpdated(searchText: string): any; +} +export declare function instanceOfSearchableComponent(object: any): object is ISearchableComponent; diff --git a/src/app/modules/home/models/services.map.d.ts b/src/app/modules/home/models/services.map.d.ts new file mode 100644 index 00000000..251e9da7 --- /dev/null +++ b/src/app/modules/home/models/services.map.d.ts @@ -0,0 +1,2 @@ +import { Type } from '@angular/core'; +export declare const ServicesMap: Map>; diff --git a/src/app/modules/home/models/widget-component.models.d.ts b/src/app/modules/home/models/widget-component.models.d.ts new file mode 100644 index 00000000..6028c8da --- /dev/null +++ b/src/app/modules/home/models/widget-component.models.d.ts @@ -0,0 +1,203 @@ +import { IDashboardComponent } from '@home/models/dashboard-component.models'; +import { DataSet, Datasource, DatasourceData, JsonSettingsSchema, Widget, WidgetActionDescriptor, WidgetActionSource, WidgetConfig, WidgetControllerDescriptor, WidgetType, widgetType, WidgetTypeDescriptor, WidgetTypeDetails, WidgetTypeParameters } from '@shared/models/widget.models'; +import { Timewindow, WidgetTimewindow } from '@shared/models/time/time.models'; +import { IAliasController, IStateController, IWidgetSubscription, IWidgetUtils, RpcApi, StateParams, SubscriptionEntityInfo, TimewindowFunctions, WidgetActionsApi, WidgetSubscriptionApi } from '@core/api/widget-api.models'; +import { ChangeDetectorRef, ComponentFactory, Injector, NgZone, Type } from '@angular/core'; +import { HttpClient, HttpErrorResponse } from '@angular/common/http'; +import { RafService } from '@core/services/raf.service'; +import { WidgetTypeId } from '@shared/models/id/widget-type-id'; +import { TenantId } from '@shared/models/id/tenant-id'; +import { WidgetLayout } from '@shared/models/dashboard.models'; +import { forkJoin, of } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { NotificationHorizontalPosition, NotificationType, NotificationVerticalPosition } from '@core/notification/notification.models'; +import { AuthUser } from '@shared/models/user.model'; +import { DeviceService } from '@core/http/device.service'; +import { AssetService } from '@core/http/asset.service'; +import { EntityViewService } from '@core/http/entity-view.service'; +import { CustomerService } from '@core/http/customer.service'; +import { DashboardService } from '@core/http/dashboard.service'; +import { UserService } from '@core/http/user.service'; +import { AttributeService } from '@core/http/attribute.service'; +import { EntityRelationService } from '@core/http/entity-relation.service'; +import { EntityService } from '@core/http/entity.service'; +import { DialogService } from '@core/services/dialog.service'; +import { CustomDialogService } from '@home/components/widget/dialog/custom-dialog.service'; +import { DatePipe } from '@angular/common'; +import { TranslateService } from '@ngx-translate/core'; +import { PageLink } from '@shared/models/page/page-link'; +import { SortOrder } from '@shared/models/page/sort-order'; +import { DomSanitizer } from '@angular/platform-browser'; +import { Router } from '@angular/router'; +import { catchError, map, mergeMap, switchMap } from 'rxjs/operators'; +import { FormattedData } from '@home/components/widget/lib/maps/map-models'; +import { TbPopoverComponent } from '@shared/components/popover.component'; +import { EntityId } from '@shared/models/id/entity-id'; +export interface IWidgetAction { + name: string; + icon: string; + onAction: ($event: Event) => void; +} +export declare type ShowWidgetHeaderActionFunction = (ctx: WidgetContext, data: FormattedData[]) => boolean; +export interface WidgetHeaderAction extends IWidgetAction { + displayName: string; + descriptor: WidgetActionDescriptor; + useShowWidgetHeaderActionFunction: boolean; + showWidgetHeaderActionFunction: ShowWidgetHeaderActionFunction; +} +export interface WidgetAction extends IWidgetAction { + show: boolean; +} +export interface IDashboardWidget { + updateWidgetParams(): any; +} +export declare class WidgetContext { + dashboard: IDashboardComponent; + private dashboardWidget; + private widget; + parentDashboard?: IDashboardComponent; + constructor(dashboard: IDashboardComponent, dashboardWidget: IDashboardWidget, widget: Widget, parentDashboard?: IDashboardComponent); + get stateController(): IStateController; + get aliasController(): IAliasController; + get dashboardTimewindow(): Timewindow; + get widgetConfig(): WidgetConfig; + get settings(): any; + get units(): string; + get decimals(): number; + set changeDetector(cd: ChangeDetectorRef); + set containerChangeDetector(cd: ChangeDetectorRef); + get currentUser(): AuthUser; + deviceService: DeviceService; + assetService: AssetService; + entityViewService: EntityViewService; + customerService: CustomerService; + dashboardService: DashboardService; + userService: UserService; + attributeService: AttributeService; + entityRelationService: EntityRelationService; + entityService: EntityService; + dialogs: DialogService; + customDialog: CustomDialogService; + date: DatePipe; + translate: TranslateService; + http: HttpClient; + sanitizer: DomSanitizer; + router: Router; + private changeDetectorValue; + private containerChangeDetectorValue; + inited: boolean; + destroyed: boolean; + subscriptions: { + [id: string]: IWidgetSubscription; + }; + defaultSubscription: IWidgetSubscription; + timewindowFunctions: TimewindowFunctions; + controlApi: RpcApi; + utils: IWidgetUtils; + $container: JQuery; + $containerParent: JQuery; + width: number; + height: number; + $scope: IDynamicWidgetComponent; + isEdit: boolean; + isMobile: boolean; + toastTargetId: string; + widgetNamespace?: string; + subscriptionApi?: WidgetSubscriptionApi; + actionsApi?: WidgetActionsApi; + activeEntityInfo?: SubscriptionEntityInfo; + datasources?: Array; + data?: Array; + hiddenData?: Array<{ + data: DataSet; + }>; + timeWindow?: WidgetTimewindow; + hideTitlePanel: boolean; + widgetTitle?: string; + widgetTitleTooltip?: string; + customHeaderActions?: Array; + widgetActions?: Array; + servicesMap?: Map>; + $injector?: Injector; + ngZone?: NgZone; + store?: Store; + private popoverComponents; + rxjs: { + forkJoin: typeof forkJoin; + of: typeof of; + map: typeof map; + mergeMap: typeof mergeMap; + switchMap: typeof switchMap; + catchError: typeof catchError; + }; + registerPopoverComponent(popoverComponent: TbPopoverComponent): void; + updatePopoverPositions(): void; + setPopoversHidden(hidden: boolean): void; + showSuccessToast(message: string, duration?: number, verticalPosition?: NotificationVerticalPosition, horizontalPosition?: NotificationHorizontalPosition, target?: string): void; + showInfoToast(message: string, verticalPosition?: NotificationVerticalPosition, horizontalPosition?: NotificationHorizontalPosition, target?: string): void; + showWarnToast(message: string, verticalPosition?: NotificationVerticalPosition, horizontalPosition?: NotificationHorizontalPosition, target?: string): void; + showErrorToast(message: string, verticalPosition?: NotificationVerticalPosition, horizontalPosition?: NotificationHorizontalPosition, target?: string): void; + showToast(type: NotificationType, message: string, duration: number, verticalPosition?: NotificationVerticalPosition, horizontalPosition?: NotificationHorizontalPosition, target?: string): void; + hideToast(target?: string): void; + detectChanges(updateWidgetParams?: boolean): void; + detectContainerChanges(): void; + updateWidgetParams(): void; + updateAliases(aliasIds?: Array): void; + reset(): void; + pageLink(pageSize: number, page?: number, textSearch?: string, sortOrder?: SortOrder): PageLink; +} +export interface IDynamicWidgetComponent { + readonly ctx: WidgetContext; + readonly errorMessages: string[]; + readonly $injector: Injector; + executingRpcRequest: boolean; + rpcEnabled: boolean; + rpcErrorText: string; + rpcRejection: HttpErrorResponse; + raf: RafService; + [key: string]: any; +} +export interface WidgetInfo extends WidgetTypeDescriptor, WidgetControllerDescriptor { + widgetName: string; + alias: string; + typeSettingsSchema?: string | any; + typeDataKeySettingsSchema?: string | any; + image?: string; + description?: string; + componentFactory?: ComponentFactory; +} +export interface WidgetConfigComponentData { + config: WidgetConfig; + layout: WidgetLayout; + widgetType: widgetType; + typeParameters: WidgetTypeParameters; + actionSources: { + [actionSourceId: string]: WidgetActionSource; + }; + isDataEnabled: boolean; + settingsSchema: JsonSettingsSchema; + dataKeySettingsSchema: JsonSettingsSchema; +} +export declare const MissingWidgetType: WidgetInfo; +export declare const ErrorWidgetType: WidgetInfo; +export interface WidgetTypeInstance { + getSettingsSchema?: () => string; + getDataKeySettingsSchema?: () => string; + typeParameters?: () => WidgetTypeParameters; + useCustomDatasources?: () => boolean; + actionSources?: () => { + [actionSourceId: string]: WidgetActionSource; + }; + onInit?: () => void; + onDataUpdated?: () => void; + onResize?: () => void; + onEditModeChanged?: () => void; + onMobileModeChanged?: () => void; + onDestroy?: () => void; +} +export declare function detailsToWidgetInfo(widgetTypeDetailsEntity: WidgetTypeDetails): WidgetInfo; +export declare function toWidgetInfo(widgetTypeEntity: WidgetType): WidgetInfo; +export declare function toWidgetTypeDetails(widgetInfo: WidgetInfo, id: WidgetTypeId, tenantId: TenantId, bundleAlias: string, createdTime: number): WidgetTypeDetails; +export declare function toWidgetType(widgetInfo: WidgetInfo, id: WidgetTypeId, tenantId: TenantId, bundleAlias: string, createdTime: number): WidgetType; +export declare function updateEntityParams(params: StateParams, targetEntityParamName?: string, targetEntityId?: EntityId, entityName?: string, entityLabel?: string): void; diff --git a/src/app/modules/home/pages/admin/admin-routing.module.d.ts b/src/app/modules/home/pages/admin/admin-routing.module.d.ts new file mode 100644 index 00000000..34b981eb --- /dev/null +++ b/src/app/modules/home/pages/admin/admin-routing.module.d.ts @@ -0,0 +1,17 @@ +import { Resolve } from '@angular/router'; +import { Observable } from 'rxjs'; +import { OAuth2Service } from '@core/http/oauth2.service'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class OAuth2LoginProcessingUrlResolver implements Resolve { + private oauth2Service; + constructor(oauth2Service: OAuth2Service); + resolve(): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare class AdminRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/admin/admin.module.d.ts b/src/app/modules/home/pages/admin/admin.module.d.ts new file mode 100644 index 00000000..bd25022c --- /dev/null +++ b/src/app/modules/home/pages/admin/admin.module.d.ts @@ -0,0 +1,18 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@modules/home/pages/admin/general-settings.component"; +import * as i2 from "@modules/home/pages/admin/mail-server.component"; +import * as i3 from "@home/pages/admin/sms-provider.component"; +import * as i4 from "@home/pages/admin/send-test-sms-dialog.component"; +import * as i5 from "@modules/home/pages/admin/security-settings.component"; +import * as i6 from "@modules/home/pages/admin/oauth2-settings.component"; +import * as i7 from "@home/pages/admin/home-settings.component"; +import * as i8 from "@home/pages/admin/resource/resources-library.component"; +import * as i9 from "@angular/common"; +import * as i10 from "@app/shared/shared.module"; +import * as i11 from "@modules/home/components/home-components.module"; +import * as i12 from "./admin-routing.module"; +export declare class AdminModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/admin/general-settings.component.d.ts b/src/app/modules/home/pages/admin/general-settings.component.d.ts new file mode 100644 index 00000000..5aa896e1 --- /dev/null +++ b/src/app/modules/home/pages/admin/general-settings.component.d.ts @@ -0,0 +1,25 @@ +import { OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import { Router } from '@angular/router'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { AdminSettings, GeneralSettings } from '@shared/models/settings.models'; +import { AdminService } from '@core/http/admin.service'; +import { HasConfirmForm } from '@core/guards/confirm-on-exit.guard'; +import * as i0 from "@angular/core"; +export declare class GeneralSettingsComponent extends PageComponent implements OnInit, HasConfirmForm { + protected store: Store; + private router; + private adminService; + fb: FormBuilder; + generalSettings: FormGroup; + adminSettings: AdminSettings; + constructor(store: Store, router: Router, adminService: AdminService, fb: FormBuilder); + ngOnInit(): void; + buildGeneralServerSettingsForm(): void; + save(): void; + confirmForm(): FormGroup; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/admin/home-settings.component.d.ts b/src/app/modules/home/pages/admin/home-settings.component.d.ts new file mode 100644 index 00000000..bf310668 --- /dev/null +++ b/src/app/modules/home/pages/admin/home-settings.component.d.ts @@ -0,0 +1,23 @@ +import { OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import { Router } from '@angular/router'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { HasConfirmForm } from '@core/guards/confirm-on-exit.guard'; +import { DashboardService } from '@core/http/dashboard.service'; +import * as i0 from "@angular/core"; +export declare class HomeSettingsComponent extends PageComponent implements OnInit, HasConfirmForm { + protected store: Store; + private router; + private dashboardService; + fb: FormBuilder; + homeSettings: FormGroup; + constructor(store: Store, router: Router, dashboardService: DashboardService, fb: FormBuilder); + ngOnInit(): void; + save(): void; + confirmForm(): FormGroup; + private setHomeDashboardInfo; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/admin/mail-server.component.d.ts b/src/app/modules/home/pages/admin/mail-server.component.d.ts new file mode 100644 index 00000000..b9a88417 --- /dev/null +++ b/src/app/modules/home/pages/admin/mail-server.component.d.ts @@ -0,0 +1,36 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import { Router } from '@angular/router'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { AdminSettings, MailServerSettings } from '@shared/models/settings.models'; +import { AdminService } from '@core/http/admin.service'; +import { TranslateService } from '@ngx-translate/core'; +import { HasConfirmForm } from '@core/guards/confirm-on-exit.guard'; +import * as i0 from "@angular/core"; +export declare class MailServerComponent extends PageComponent implements OnInit, OnDestroy, HasConfirmForm { + protected store: Store; + private router; + private adminService; + private translate; + fb: FormBuilder; + mailSettings: FormGroup; + adminSettings: AdminSettings; + smtpProtocols: string[]; + showChangePassword: boolean; + tlsVersions: string[]; + private destroy$; + constructor(store: Store, router: Router, adminService: AdminService, translate: TranslateService, fb: FormBuilder); + ngOnInit(): void; + ngOnDestroy(): void; + buildMailServerSettingsForm(): void; + enableProxyChanged(): void; + enableMailPassword(enable: boolean): void; + sendTestMail(): void; + save(): void; + confirmForm(): FormGroup; + private get mailSettingsFormValue(); + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/admin/oauth2-settings.component.d.ts b/src/app/modules/home/pages/admin/oauth2-settings.component.d.ts new file mode 100644 index 00000000..4361b13d --- /dev/null +++ b/src/app/modules/home/pages/admin/oauth2-settings.component.d.ts @@ -0,0 +1,83 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { AbstractControl, FormArray, FormBuilder, FormGroup } from '@angular/forms'; +import { DomainSchema, MapperConfigType, OAuth2Info, PlatformType } from '@shared/models/oauth2.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import { HasConfirmForm } from '@core/guards/confirm-on-exit.guard'; +import { MatChipInputEvent } from '@angular/material/chips'; +import { DialogService } from '@core/services/dialog.service'; +import { TranslateService } from '@ngx-translate/core'; +import { OAuth2Service } from '@core/http/oauth2.service'; +import { ActivatedRoute } from '@angular/router'; +import * as i0 from "@angular/core"; +export declare class OAuth2SettingsComponent extends PageComponent implements OnInit, HasConfirmForm, OnDestroy { + protected store: Store; + private route; + private oauth2Service; + private fb; + private dialogService; + private translate; + private window; + constructor(store: Store, route: ActivatedRoute, oauth2Service: OAuth2Service, fb: FormBuilder, dialogService: DialogService, translate: TranslateService, window: Window); + get oauth2ParamsInfos(): FormArray; + private URL_REGEXP; + private DOMAIN_AND_PORT_REGEXP; + private subscriptions; + private templates; + private defaultProvider; + readonly separatorKeysCodes: number[]; + oauth2SettingsForm: FormGroup; + oauth2Info: OAuth2Info; + clientAuthenticationMethods: string[]; + mapperConfigType: typeof MapperConfigType; + mapperConfigTypes: string[]; + tenantNameStrategies: string[]; + protocols: DomainSchema[]; + domainSchemaTranslations: Map; + platformTypes: PlatformType[]; + platformTypeTranslations: Map; + templateProvider: string[]; + private loginProcessingUrl; + private static validateScope; + ngOnInit(): void; + ngOnDestroy(): void; + private initTemplates; + private formBasicGroup; + private formCustomGroup; + private buildOAuth2SettingsForm; + private initOAuth2Settings; + private uniqueDomainValidator; + private uniquePkgNameValidator; + domainListTittle(control: AbstractControl): string; + private buildOAuth2ParamsInfoForm; + private buildDomainInfoForm; + private buildMobileInfoForm; + private buildRegistrationForm; + private setProviderDefaultValue; + private changeMapperConfigType; + save(): void; + confirmForm(): FormGroup; + addScope(event: MatChipInputEvent, control: AbstractControl): void; + removeScope(i: number, control: AbstractControl): void; + addOAuth2ParamsInfo(): void; + deleteOAuth2ParamsInfo($event: Event, index: number): void; + clientRegistrations(control: AbstractControl): FormArray; + domainInfos(control: AbstractControl): FormArray; + mobileInfos(control: AbstractControl): FormArray; + addRegistration(control: AbstractControl): void; + deleteRegistration($event: Event, control: AbstractControl, index: number): void; + toggleEditMode(control: AbstractControl, path: string): void; + getProviderName(controller: AbstractControl): string; + isCustomProvider(controller: AbstractControl): boolean; + getHelpLink(controller: AbstractControl): string; + addDomainInfo(control: AbstractControl): void; + removeDomainInfo($event: Event, control: AbstractControl, index: number): void; + addMobileInfo(control: AbstractControl): void; + removeMobileInfo($event: Event, control: AbstractControl, index: number): void; + redirectURI(control: AbstractControl, schema?: DomainSchema): string; + redirectURIMixed(control: AbstractControl): string; + trackByParams(index: number): number; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/admin/resource/resources-library-table-config.resolve.d.ts b/src/app/modules/home/pages/admin/resource/resources-library-table-config.resolve.d.ts new file mode 100644 index 00000000..fe348ed1 --- /dev/null +++ b/src/app/modules/home/pages/admin/resource/resources-library-table-config.resolve.d.ts @@ -0,0 +1,29 @@ +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { Resolve, Router } from '@angular/router'; +import { Resource, ResourceInfo } from '@shared/models/resource.models'; +import { DatePipe } from '@angular/common'; +import { TranslateService } from '@ngx-translate/core'; +import { ResourceService } from '@core/http/resource.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageLink } from '@shared/models/page/page-link'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import * as i0 from "@angular/core"; +export declare class ResourcesLibraryTableConfigResolver implements Resolve> { + private store; + private resourceService; + private translate; + private router; + private datePipe; + private readonly config; + private readonly resourceTypesTranslationMap; + constructor(store: Store, resourceService: ResourceService, translate: TranslateService, router: Router, datePipe: DatePipe); + saveResource(resource: any): import("rxjs").Observable; + resolve(): EntityTableConfig; + private openResource; + downloadResource($event: Event, resource: ResourceInfo): void; + onResourceAction(action: EntityAction): boolean; + private isResourceEditable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/pages/admin/resource/resources-library.component.d.ts b/src/app/modules/home/pages/admin/resource/resources-library.component.d.ts new file mode 100644 index 00000000..bbbbdf20 --- /dev/null +++ b/src/app/modules/home/pages/admin/resource/resources-library.component.d.ts @@ -0,0 +1,33 @@ +import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { EntityComponent } from '@home/components/entity/entity.component'; +import { Resource, ResourceType } from '@shared/models/resource.models'; +import * as i0 from "@angular/core"; +export declare class ResourcesLibraryComponent extends EntityComponent implements OnInit, OnDestroy { + protected store: Store; + protected translate: TranslateService; + protected entityValue: Resource; + protected entitiesTableConfigValue: EntityTableConfig; + fb: FormBuilder; + protected cd: ChangeDetectorRef; + readonly resourceType: typeof ResourceType; + readonly resourceTypes: ResourceType[]; + readonly resourceTypesTranslationMap: Map; + private destroy$; + constructor(store: Store, translate: TranslateService, entityValue: Resource, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef); + ngOnInit(): void; + ngOnDestroy(): void; + hideDelete(): boolean; + buildForm(entity: Resource): FormGroup; + updateForm(entity: Resource): void; + getAllowedExtensions(): string; + getAcceptType(): string; + convertToBase64File(data: string): string; + onResourceIdCopied(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/admin/security-settings.component.d.ts b/src/app/modules/home/pages/admin/security-settings.component.d.ts new file mode 100644 index 00000000..4d52c1d3 --- /dev/null +++ b/src/app/modules/home/pages/admin/security-settings.component.d.ts @@ -0,0 +1,25 @@ +import { OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import { Router } from '@angular/router'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { SecuritySettings } from '@shared/models/settings.models'; +import { AdminService } from '@core/http/admin.service'; +import { HasConfirmForm } from '@core/guards/confirm-on-exit.guard'; +import * as i0 from "@angular/core"; +export declare class SecuritySettingsComponent extends PageComponent implements OnInit, HasConfirmForm { + protected store: Store; + private router; + private adminService; + fb: FormBuilder; + securitySettingsFormGroup: FormGroup; + securitySettings: SecuritySettings; + constructor(store: Store, router: Router, adminService: AdminService, fb: FormBuilder); + ngOnInit(): void; + buildSecuritySettingsForm(): void; + save(): void; + confirmForm(): FormGroup; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/admin/send-test-sms-dialog.component.d.ts b/src/app/modules/home/pages/admin/send-test-sms-dialog.component.d.ts new file mode 100644 index 00000000..05136dc3 --- /dev/null +++ b/src/app/modules/home/pages/admin/send-test-sms-dialog.component.d.ts @@ -0,0 +1,32 @@ +import { OnInit } from '@angular/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import { SmsProviderConfiguration } from '@shared/models/settings.models'; +import { AdminService } from '@core/http/admin.service'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export interface SendTestSmsDialogData { + smsProviderConfiguration: SmsProviderConfiguration; +} +export declare class SendTestSmsDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + data: SendTestSmsDialogData; + private adminService; + private translate; + dialogRef: MatDialogRef; + fb: FormBuilder; + phoneNumberPattern: RegExp; + sendTestSmsFormGroup: FormGroup; + smsProviderConfiguration: SmsProviderConfiguration; + constructor(store: Store, router: Router, data: SendTestSmsDialogData, adminService: AdminService, translate: TranslateService, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + close(): void; + sendTestSms(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/admin/sms-provider.component.d.ts b/src/app/modules/home/pages/admin/sms-provider.component.d.ts new file mode 100644 index 00000000..c6d52cda --- /dev/null +++ b/src/app/modules/home/pages/admin/sms-provider.component.d.ts @@ -0,0 +1,28 @@ +import { OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import { Router } from '@angular/router'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { AdminSettings, SmsProviderConfiguration } from '@shared/models/settings.models'; +import { AdminService } from '@core/http/admin.service'; +import { HasConfirmForm } from '@core/guards/confirm-on-exit.guard'; +import { MatDialog } from '@angular/material/dialog'; +import * as i0 from "@angular/core"; +export declare class SmsProviderComponent extends PageComponent implements OnInit, HasConfirmForm { + protected store: Store; + private router; + private adminService; + private dialog; + fb: FormBuilder; + smsProvider: FormGroup; + adminSettings: AdminSettings; + constructor(store: Store, router: Router, adminService: AdminService, dialog: MatDialog, fb: FormBuilder); + ngOnInit(): void; + buildSmsProviderForm(): void; + sendTestSms(): void; + save(): void; + confirmForm(): FormGroup; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/api-usage/api-usage-routing.module.d.ts b/src/app/modules/home/pages/api-usage/api-usage-routing.module.d.ts new file mode 100644 index 00000000..0b5c2e5b --- /dev/null +++ b/src/app/modules/home/pages/api-usage/api-usage-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class ApiUsageRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/api-usage/api-usage.component.d.ts b/src/app/modules/home/pages/api-usage/api-usage.component.d.ts new file mode 100644 index 00000000..44bbae5e --- /dev/null +++ b/src/app/modules/home/pages/api-usage/api-usage.component.d.ts @@ -0,0 +1,14 @@ +import { OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import { Dashboard } from '@shared/models/dashboard.models'; +import * as i0 from "@angular/core"; +export declare class ApiUsageComponent extends PageComponent implements OnInit { + protected store: Store; + apiUsageDashboard: Dashboard; + constructor(store: Store); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/api-usage/api-usage.module.d.ts b/src/app/modules/home/pages/api-usage/api-usage.module.d.ts new file mode 100644 index 00000000..cce5bee7 --- /dev/null +++ b/src/app/modules/home/pages/api-usage/api-usage.module.d.ts @@ -0,0 +1,11 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@home/pages/api-usage/api-usage.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@app/shared/shared.module"; +import * as i4 from "@modules/home/components/home-components.module"; +import * as i5 from "@home/pages/api-usage/api-usage-routing.module"; +export declare class ApiUsageModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/asset/asset-routing.module.d.ts b/src/app/modules/home/pages/asset/asset-routing.module.d.ts new file mode 100644 index 00000000..d6363183 --- /dev/null +++ b/src/app/modules/home/pages/asset/asset-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class AssetRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/asset/asset-table-header.component.d.ts b/src/app/modules/home/pages/asset/asset-table-header.component.d.ts new file mode 100644 index 00000000..9bf716f3 --- /dev/null +++ b/src/app/modules/home/pages/asset/asset-table-header.component.d.ts @@ -0,0 +1,14 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTableHeaderComponent } from '../../components/entity/entity-table-header.component'; +import { EntityType } from '@shared/models/entity-type.models'; +import { AssetInfo } from '@shared/models/asset.models'; +import * as i0 from "@angular/core"; +export declare class AssetTableHeaderComponent extends EntityTableHeaderComponent { + protected store: Store; + entityType: typeof EntityType; + constructor(store: Store); + assetTypeChanged(assetType: string): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/asset/asset-tabs.component.d.ts b/src/app/modules/home/pages/asset/asset-tabs.component.d.ts new file mode 100644 index 00000000..ab690f97 --- /dev/null +++ b/src/app/modules/home/pages/asset/asset-tabs.component.d.ts @@ -0,0 +1,12 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTabsComponent } from '../../components/entity/entity-tabs.component'; +import { AssetInfo } from '@app/shared/models/asset.models'; +import * as i0 from "@angular/core"; +export declare class AssetTabsComponent extends EntityTabsComponent { + protected store: Store; + constructor(store: Store); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/asset/asset.component.d.ts b/src/app/modules/home/pages/asset/asset.component.d.ts new file mode 100644 index 00000000..07881735 --- /dev/null +++ b/src/app/modules/home/pages/asset/asset.component.d.ts @@ -0,0 +1,29 @@ +import { ChangeDetectorRef } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityComponent } from '../../components/entity/entity.component'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { EntityType } from '@shared/models/entity-type.models'; +import { TranslateService } from '@ngx-translate/core'; +import { AssetInfo } from '@app/shared/models/asset.models'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import * as i0 from "@angular/core"; +export declare class AssetComponent extends EntityComponent { + protected store: Store; + protected translate: TranslateService; + protected entityValue: AssetInfo; + protected entitiesTableConfigValue: EntityTableConfig; + fb: FormBuilder; + protected cd: ChangeDetectorRef; + entityType: typeof EntityType; + assetScope: 'tenant' | 'customer' | 'customer_user' | 'edge'; + constructor(store: Store, translate: TranslateService, entityValue: AssetInfo, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef); + ngOnInit(): void; + hideDelete(): boolean; + isAssignedToCustomer(entity: AssetInfo): boolean; + buildForm(entity: AssetInfo): FormGroup; + updateForm(entity: AssetInfo): void; + onAssetIdCopied($event: any): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/asset/asset.module.d.ts b/src/app/modules/home/pages/asset/asset.module.d.ts new file mode 100644 index 00000000..84ef5008 --- /dev/null +++ b/src/app/modules/home/pages/asset/asset.module.d.ts @@ -0,0 +1,14 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./asset.component"; +import * as i2 from "@home/pages/asset/asset-tabs.component"; +import * as i3 from "./asset-table-header.component"; +import * as i4 from "@angular/common"; +import * as i5 from "@shared/shared.module"; +import * as i6 from "@modules/home/components/home-components.module"; +import * as i7 from "../../dialogs/home-dialogs.module"; +import * as i8 from "./asset-routing.module"; +export declare class AssetModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/asset/assets-table-config.resolver.d.ts b/src/app/modules/home/pages/asset/assets-table-config.resolver.d.ts new file mode 100644 index 00000000..121907b8 --- /dev/null +++ b/src/app/modules/home/pages/asset/assets-table-config.resolver.d.ts @@ -0,0 +1,53 @@ +import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router'; +import { CellActionDescriptor, EntityTableColumn, EntityTableConfig, GroupActionDescriptor, HeaderActionDescriptor } from '@home/models/entity/entities-table-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { CustomerService } from '@core/http/customer.service'; +import { BroadcastService } from '@core/services/broadcast.service'; +import { MatDialog } from '@angular/material/dialog'; +import { DialogService } from '@core/services/dialog.service'; +import { Asset, AssetInfo } from '@app/shared/models/asset.models'; +import { AssetService } from '@app/core/http/asset.service'; +import { AssetId } from '@app/shared/models/id/asset-id'; +import { HomeDialogsService } from '@home/dialogs/home-dialogs.service'; +import { EdgeService } from '@core/http/edge.service'; +import * as i0 from "@angular/core"; +export declare class AssetsTableConfigResolver implements Resolve> { + private store; + private broadcast; + private assetService; + private customerService; + private edgeService; + private dialogService; + private homeDialogs; + private translate; + private datePipe; + private router; + private dialog; + private readonly config; + private customerId; + constructor(store: Store, broadcast: BroadcastService, assetService: AssetService, customerService: CustomerService, edgeService: EdgeService, dialogService: DialogService, homeDialogs: HomeDialogsService, translate: TranslateService, datePipe: DatePipe, router: Router, dialog: MatDialog); + resolve(route: ActivatedRouteSnapshot): Observable>; + configureColumns(assetScope: string): Array>; + configureEntityFunctions(assetScope: string): void; + configureCellActions(assetScope: string): Array>; + configureGroupActions(assetScope: string): Array>; + configureAddActions(assetScope: string): Array; + importAssets($event: Event): void; + private openAsset; + addAssetsToCustomer($event: Event): void; + makePublic($event: Event, asset: Asset): void; + assignToCustomer($event: Event, assetIds: Array): void; + unassignFromCustomer($event: Event, asset: AssetInfo): void; + unassignAssetsFromCustomer($event: Event, assets: Array): void; + onAssetAction(action: EntityAction, config: EntityTableConfig): boolean; + addAssetsToEdge($event: Event): void; + unassignFromEdge($event: Event, asset: AssetInfo): void; + unassignAssetsFromEdge($event: Event, assets: Array): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/pages/audit-log/audit-log-routing.module.d.ts b/src/app/modules/home/pages/audit-log/audit-log-routing.module.d.ts new file mode 100644 index 00000000..ca02d07a --- /dev/null +++ b/src/app/modules/home/pages/audit-log/audit-log-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class AuditLogRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/audit-log/audit-log.module.d.ts b/src/app/modules/home/pages/audit-log/audit-log.module.d.ts new file mode 100644 index 00000000..cd1f7904 --- /dev/null +++ b/src/app/modules/home/pages/audit-log/audit-log.module.d.ts @@ -0,0 +1,9 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/common"; +import * as i2 from "@shared/shared.module"; +import * as i3 from "@modules/home/pages/audit-log/audit-log-routing.module"; +export declare class AuditLogModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/customer/customer-routing.module.d.ts b/src/app/modules/home/pages/customer/customer-routing.module.d.ts new file mode 100644 index 00000000..1a20a7af --- /dev/null +++ b/src/app/modules/home/pages/customer/customer-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class CustomerRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/customer/customer-tabs.component.d.ts b/src/app/modules/home/pages/customer/customer-tabs.component.d.ts new file mode 100644 index 00000000..20e1a3ab --- /dev/null +++ b/src/app/modules/home/pages/customer/customer-tabs.component.d.ts @@ -0,0 +1,12 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTabsComponent } from '../../components/entity/entity-tabs.component'; +import { Customer } from '@shared/models/customer.model'; +import * as i0 from "@angular/core"; +export declare class CustomerTabsComponent extends EntityTabsComponent { + protected store: Store; + constructor(store: Store); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/customer/customer.component.d.ts b/src/app/modules/home/pages/customer/customer.component.d.ts new file mode 100644 index 00000000..01fa66f0 --- /dev/null +++ b/src/app/modules/home/pages/customer/customer.component.d.ts @@ -0,0 +1,28 @@ +import { ChangeDetectorRef } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { Customer } from '@shared/models/customer.model'; +import { TranslateService } from '@ngx-translate/core'; +import { ContactBasedComponent } from '../../components/entity/contact-based.component'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { AuthState } from '@core/auth/auth.models'; +import * as i0 from "@angular/core"; +export declare class CustomerComponent extends ContactBasedComponent { + protected store: Store; + protected translate: TranslateService; + protected entityValue: Customer; + protected entitiesTableConfigValue: EntityTableConfig; + protected fb: FormBuilder; + protected cd: ChangeDetectorRef; + isPublic: boolean; + authState: AuthState; + constructor(store: Store, translate: TranslateService, entityValue: Customer, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef); + hideDelete(): boolean; + buildEntityForm(entity: Customer): FormGroup; + updateEntityForm(entity: Customer): void; + onCustomerIdCopied(event: any): void; + edgesSupportEnabled(): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/customer/customer.module.d.ts b/src/app/modules/home/pages/customer/customer.module.d.ts new file mode 100644 index 00000000..46725086 --- /dev/null +++ b/src/app/modules/home/pages/customer/customer.module.d.ts @@ -0,0 +1,12 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@modules/home/pages/customer/customer.component"; +import * as i2 from "@home/pages/customer/customer-tabs.component"; +import * as i3 from "@angular/common"; +import * as i4 from "@shared/shared.module"; +import * as i5 from "@modules/home/components/home-components.module"; +import * as i6 from "./customer-routing.module"; +export declare class CustomerModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/customer/customers-table-config.resolver.d.ts b/src/app/modules/home/pages/customer/customers-table-config.resolver.d.ts new file mode 100644 index 00000000..50644686 --- /dev/null +++ b/src/app/modules/home/pages/customer/customers-table-config.resolver.d.ts @@ -0,0 +1,29 @@ +import { Resolve, Router } from '@angular/router'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { Customer } from '@app/shared/models/customer.model'; +import { CustomerService } from '@app/core/http/customer.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import * as i0 from "@angular/core"; +export declare class CustomersTableConfigResolver implements Resolve> { + private customerService; + private translate; + private datePipe; + private router; + private store; + private readonly config; + constructor(customerService: CustomerService, translate: TranslateService, datePipe: DatePipe, router: Router, store: Store); + resolve(): EntityTableConfig; + private openCustomer; + manageCustomerUsers($event: Event, customer: Customer): void; + manageCustomerAssets($event: Event, customer: Customer): void; + manageCustomerDevices($event: Event, customer: Customer): void; + manageCustomerDashboards($event: Event, customer: Customer): void; + manageCustomerEdges($event: Event, customer: Customer): void; + onCustomerAction(action: EntityAction, config: EntityTableConfig): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/pages/dashboard/dashboard-form.component.d.ts b/src/app/modules/home/pages/dashboard/dashboard-form.component.d.ts new file mode 100644 index 00000000..0ca8f3bc --- /dev/null +++ b/src/app/modules/home/pages/dashboard/dashboard-form.component.d.ts @@ -0,0 +1,35 @@ +import { ChangeDetectorRef } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityComponent } from '../../components/entity/entity.component'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { TranslateService } from '@ngx-translate/core'; +import { Dashboard } from '@shared/models/dashboard.models'; +import { DashboardService } from '@core/http/dashboard.service'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import * as i0 from "@angular/core"; +export declare class DashboardFormComponent extends EntityComponent { + protected store: Store; + protected translate: TranslateService; + private dashboardService; + protected entityValue: Dashboard; + protected entitiesTableConfigValue: EntityTableConfig; + fb: FormBuilder; + protected cd: ChangeDetectorRef; + dashboardScope: 'tenant' | 'customer' | 'customer_user' | 'edge'; + customerId: string; + publicLink: string; + assignedCustomersText: string; + constructor(store: Store, translate: TranslateService, dashboardService: DashboardService, entityValue: Dashboard, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef); + ngOnInit(): void; + isPublic(entity: Dashboard): boolean; + isCurrentPublicCustomer(entity: Dashboard): boolean; + hideDelete(): boolean; + buildForm(entity: Dashboard): FormGroup; + updateForm(entity: Dashboard): void; + prepareFormValue(formValue: any): any; + onPublicLinkCopied($event: any): void; + private updateFields; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/dashboard/dashboard-routing.module.d.ts b/src/app/modules/home/pages/dashboard/dashboard-routing.module.d.ts new file mode 100644 index 00000000..70bbd96e --- /dev/null +++ b/src/app/modules/home/pages/dashboard/dashboard-routing.module.d.ts @@ -0,0 +1,23 @@ +import { ActivatedRouteSnapshot, Resolve } from '@angular/router'; +import { DashboardPageComponent } from '@home/components/dashboard-page/dashboard-page.component'; +import { BreadCrumbLabelFunction } from '@shared/components/breadcrumb'; +import { Observable } from 'rxjs'; +import { Dashboard } from '@app/shared/models/dashboard.models'; +import { DashboardService } from '@core/http/dashboard.service'; +import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class DashboardResolver implements Resolve { + private dashboardService; + private dashboardUtils; + constructor(dashboardService: DashboardService, dashboardUtils: DashboardUtilsService); + resolve(route: ActivatedRouteSnapshot): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare const dashboardBreadcumbLabelFunction: BreadCrumbLabelFunction; +export declare class DashboardRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/dashboard/dashboard-tabs.component.d.ts b/src/app/modules/home/pages/dashboard/dashboard-tabs.component.d.ts new file mode 100644 index 00000000..2a1c7ff3 --- /dev/null +++ b/src/app/modules/home/pages/dashboard/dashboard-tabs.component.d.ts @@ -0,0 +1,12 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTabsComponent } from '../../components/entity/entity-tabs.component'; +import { Dashboard } from '@shared/models/dashboard.models'; +import * as i0 from "@angular/core"; +export declare class DashboardTabsComponent extends EntityTabsComponent { + protected store: Store; + constructor(store: Store); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/dashboard/dashboard.module.d.ts b/src/app/modules/home/pages/dashboard/dashboard.module.d.ts new file mode 100644 index 00000000..0bd476cd --- /dev/null +++ b/src/app/modules/home/pages/dashboard/dashboard.module.d.ts @@ -0,0 +1,15 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@modules/home/pages/dashboard/dashboard-form.component"; +import * as i2 from "@home/pages/dashboard/dashboard-tabs.component"; +import * as i3 from "@modules/home/pages/dashboard/manage-dashboard-customers-dialog.component"; +import * as i4 from "@modules/home/pages/dashboard/make-dashboard-public-dialog.component"; +import * as i5 from "@angular/common"; +import * as i6 from "@shared/shared.module"; +import * as i7 from "@modules/home/components/home-components.module"; +import * as i8 from "../../dialogs/home-dialogs.module"; +import * as i9 from "./dashboard-routing.module"; +export declare class DashboardModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/dashboard/dashboards-table-config.resolver.d.ts b/src/app/modules/home/pages/dashboard/dashboards-table-config.resolver.d.ts new file mode 100644 index 00000000..23a19ce9 --- /dev/null +++ b/src/app/modules/home/pages/dashboard/dashboards-table-config.resolver.d.ts @@ -0,0 +1,55 @@ +import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router'; +import { CellActionDescriptor, EntityTableColumn, EntityTableConfig, GroupActionDescriptor, HeaderActionDescriptor } from '@home/models/entity/entities-table-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { CustomerService } from '@core/http/customer.service'; +import { MatDialog } from '@angular/material/dialog'; +import { DialogService } from '@core/services/dialog.service'; +import { Dashboard, DashboardInfo } from '@app/shared/models/dashboard.models'; +import { DashboardService } from '@app/core/http/dashboard.service'; +import { ManageDashboardCustomersActionType } from './manage-dashboard-customers-dialog.component'; +import { ImportExportService } from '@home/components/import-export/import-export.service'; +import { EdgeService } from '@core/http/edge.service'; +import * as i0 from "@angular/core"; +export declare class DashboardsTableConfigResolver implements Resolve> { + private store; + private dashboardService; + private customerService; + private edgeService; + private dialogService; + private importExport; + private translate; + private datePipe; + private router; + private dialog; + private readonly config; + constructor(store: Store, dashboardService: DashboardService, customerService: CustomerService, edgeService: EdgeService, dialogService: DialogService, importExport: ImportExportService, translate: TranslateService, datePipe: DatePipe, router: Router, dialog: MatDialog); + resolve(route: ActivatedRouteSnapshot): Observable>; + configureColumns(dashboardScope: string): Array>; + configureEntityFunctions(dashboardScope: string): void; + configureCellActions(dashboardScope: string): Array>; + configureGroupActions(dashboardScope: string): Array>; + configureAddActions(dashboardScope: string): Array; + openDashboard($event: Event, dashboard: DashboardInfo): void; + importDashboard($event: Event): void; + exportDashboard($event: Event, dashboard: DashboardInfo): void; + addDashboardsToCustomer($event: Event): void; + makePublic($event: Event, dashboard: DashboardInfo): void; + makePrivate($event: Event, dashboard: DashboardInfo): void; + manageAssignedCustomers($event: Event, dashboard: DashboardInfo): void; + assignDashboardsToCustomers($event: Event, dashboardIds: Array): void; + unassignDashboardsFromCustomers($event: Event, dashboardIds: Array): void; + showManageAssignedCustomersDialog($event: Event, dashboardIds: Array, actionType: ManageDashboardCustomersActionType, assignedCustomersIds?: Array): void; + unassignFromCustomer($event: Event, dashboard: DashboardInfo, customerId: string): void; + unassignDashboardsFromCustomer($event: Event, dashboardIds: Array, customerId: string): void; + onDashboardAction(action: EntityAction): boolean; + addDashboardsToEdge($event: Event): void; + unassignFromEdge($event: Event, dashboard: DashboardInfo): void; + unassignDashboardsFromEdge($event: Event, dashboards: Array): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/pages/dashboard/make-dashboard-public-dialog.component.d.ts b/src/app/modules/home/pages/dashboard/make-dashboard-public-dialog.component.d.ts new file mode 100644 index 00000000..5c7ca5b3 --- /dev/null +++ b/src/app/modules/home/pages/dashboard/make-dashboard-public-dialog.component.d.ts @@ -0,0 +1,31 @@ +import { OnInit } from '@angular/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder } from '@angular/forms'; +import { DashboardService } from '@core/http/dashboard.service'; +import { DashboardInfo } from '@app/shared/models/dashboard.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import * as i0 from "@angular/core"; +export interface MakeDashboardPublicDialogData { + dashboard: DashboardInfo; +} +export declare class MakeDashboardPublicDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + data: MakeDashboardPublicDialogData; + translate: TranslateService; + private dashboardService; + dialogRef: MatDialogRef; + fb: FormBuilder; + dashboard: DashboardInfo; + publicLink: string; + constructor(store: Store, router: Router, data: MakeDashboardPublicDialogData, translate: TranslateService, dashboardService: DashboardService, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + close(): void; + onPublicLinkCopied($event: any): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/dashboard/manage-dashboard-customers-dialog.component.d.ts b/src/app/modules/home/pages/dashboard/manage-dashboard-customers-dialog.component.d.ts new file mode 100644 index 00000000..75ea4d7c --- /dev/null +++ b/src/app/modules/home/pages/dashboard/manage-dashboard-customers-dialog.component.d.ts @@ -0,0 +1,41 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { EntityType } from '@shared/models/entity-type.models'; +import { DashboardService } from '@core/http/dashboard.service'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import * as i0 from "@angular/core"; +export declare type ManageDashboardCustomersActionType = 'assign' | 'manage' | 'unassign'; +export interface ManageDashboardCustomersDialogData { + actionType: ManageDashboardCustomersActionType; + dashboardIds: Array; + assignedCustomersIds?: Array; +} +export declare class ManageDashboardCustomersDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: ManageDashboardCustomersDialogData; + private dashboardService; + private errorStateMatcher; + dialogRef: MatDialogRef; + fb: FormBuilder; + dashboardCustomersFormGroup: FormGroup; + submitted: boolean; + entityType: typeof EntityType; + titleText: string; + labelText: string; + actionName: string; + assignedCustomersIds: string[]; + constructor(store: Store, router: Router, data: ManageDashboardCustomersDialogData, dashboardService: DashboardService, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + submit(): void; + private getManageDashboardCustomersTask; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device-profile/device-profile-routing.module.d.ts b/src/app/modules/home/pages/device-profile/device-profile-routing.module.d.ts new file mode 100644 index 00000000..c4c542d6 --- /dev/null +++ b/src/app/modules/home/pages/device-profile/device-profile-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class DeviceProfileRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/device-profile/device-profile-tabs.component.d.ts b/src/app/modules/home/pages/device-profile/device-profile-tabs.component.d.ts new file mode 100644 index 00000000..da92bb3b --- /dev/null +++ b/src/app/modules/home/pages/device-profile/device-profile-tabs.component.d.ts @@ -0,0 +1,16 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTabsComponent } from '../../components/entity/entity-tabs.component'; +import { DeviceProfile, DeviceTransportType } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class DeviceProfileTabsComponent extends EntityTabsComponent { + protected store: Store; + deviceTransportTypes: DeviceTransportType[]; + deviceTransportTypeTranslations: Map; + deviceTransportTypeHints: Map; + isTransportTypeChanged: boolean; + constructor(store: Store); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device-profile/device-profile.module.d.ts b/src/app/modules/home/pages/device-profile/device-profile.module.d.ts new file mode 100644 index 00000000..084dae7e --- /dev/null +++ b/src/app/modules/home/pages/device-profile/device-profile.module.d.ts @@ -0,0 +1,11 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./device-profile-tabs.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@shared/shared.module"; +import * as i4 from "@modules/home/components/home-components.module"; +import * as i5 from "./device-profile-routing.module"; +export declare class DeviceProfileModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/device-profile/device-profiles-table-config.resolver.d.ts b/src/app/modules/home/pages/device-profile/device-profiles-table-config.resolver.d.ts new file mode 100644 index 00000000..609457a5 --- /dev/null +++ b/src/app/modules/home/pages/device-profile/device-profiles-table-config.resolver.d.ts @@ -0,0 +1,32 @@ +import { Resolve, Router } from '@angular/router'; +import { EntityTableConfig, HeaderActionDescriptor } from '@home/models/entity/entities-table-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { DialogService } from '@core/services/dialog.service'; +import { DeviceProfile } from '@shared/models/device.models'; +import { DeviceProfileService } from '@core/http/device-profile.service'; +import { MatDialog } from '@angular/material/dialog'; +import { ImportExportService } from '@home/components/import-export/import-export.service'; +import * as i0 from "@angular/core"; +export declare class DeviceProfilesTableConfigResolver implements Resolve> { + private deviceProfileService; + private importExport; + private translate; + private datePipe; + private dialogService; + private router; + private dialog; + private readonly config; + constructor(deviceProfileService: DeviceProfileService, importExport: ImportExportService, translate: TranslateService, datePipe: DatePipe, dialogService: DialogService, router: Router, dialog: MatDialog); + resolve(): EntityTableConfig; + configureAddActions(): Array; + addDeviceProfile(): void; + setDefaultDeviceProfile($event: Event, deviceProfile: DeviceProfile): void; + private openDeviceProfile; + importDeviceProfile($event: Event): void; + exportDeviceProfile($event: Event, deviceProfile: DeviceProfile): void; + onDeviceProfileAction(action: EntityAction): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/pages/device/data/coap-device-transport-configuration.component.d.ts b/src/app/modules/home/pages/device/data/coap-device-transport-configuration.component.d.ts new file mode 100644 index 00000000..dbe13400 --- /dev/null +++ b/src/app/modules/home/pages/device/data/coap-device-transport-configuration.component.d.ts @@ -0,0 +1,27 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { CoapDeviceTransportConfiguration } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class CoapDeviceTransportConfigurationComponent implements ControlValueAccessor, OnInit, OnDestroy { + private store; + private fb; + coapDeviceTransportForm: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private destroy$; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngOnDestroy(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: CoapDeviceTransportConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device/data/default-device-configuration.component.d.ts b/src/app/modules/home/pages/device/data/default-device-configuration.component.d.ts new file mode 100644 index 00000000..846f4996 --- /dev/null +++ b/src/app/modules/home/pages/device/data/default-device-configuration.component.d.ts @@ -0,0 +1,25 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { DefaultDeviceConfiguration } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class DefaultDeviceConfigurationComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + defaultDeviceConfigurationFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DefaultDeviceConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device/data/default-device-transport-configuration.component.d.ts b/src/app/modules/home/pages/device/data/default-device-transport-configuration.component.d.ts new file mode 100644 index 00000000..db9efc0e --- /dev/null +++ b/src/app/modules/home/pages/device/data/default-device-transport-configuration.component.d.ts @@ -0,0 +1,25 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { DefaultDeviceTransportConfiguration } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class DefaultDeviceTransportConfigurationComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + defaultDeviceTransportConfigurationFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DefaultDeviceTransportConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device/data/device-configuration.component.d.ts b/src/app/modules/home/pages/device/data/device-configuration.component.d.ts new file mode 100644 index 00000000..c2994cb7 --- /dev/null +++ b/src/app/modules/home/pages/device/data/device-configuration.component.d.ts @@ -0,0 +1,27 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { DeviceConfiguration, DeviceProfileType } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class DeviceConfigurationComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + deviceProfileType: typeof DeviceProfileType; + deviceConfigurationFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + type: DeviceProfileType; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DeviceConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device/data/device-data.component.d.ts b/src/app/modules/home/pages/device/data/device-data.component.d.ts new file mode 100644 index 00000000..fe910b43 --- /dev/null +++ b/src/app/modules/home/pages/device/data/device-data.component.d.ts @@ -0,0 +1,28 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { DeviceData } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class DeviceDataComponent implements ControlValueAccessor, OnInit, Validator { + private store; + private fb; + deviceDataFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + displayDeviceConfiguration: boolean; + displayTransportConfiguration: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DeviceData | null): void; + validate(): ValidationErrors | null; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device/data/device-transport-configuration.component.d.ts b/src/app/modules/home/pages/device/data/device-transport-configuration.component.d.ts new file mode 100644 index 00000000..b0558dea --- /dev/null +++ b/src/app/modules/home/pages/device/data/device-transport-configuration.component.d.ts @@ -0,0 +1,28 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { DeviceTransportConfiguration, DeviceTransportType } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class DeviceTransportConfigurationComponent implements ControlValueAccessor, OnInit, Validator { + private store; + private fb; + deviceTransportType: typeof DeviceTransportType; + deviceTransportConfigurationFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + transportType: DeviceTransportType; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DeviceTransportConfiguration | null): void; + validate(): ValidationErrors | null; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device/data/lwm2m-device-transport-configuration.component.d.ts b/src/app/modules/home/pages/device/data/lwm2m-device-transport-configuration.component.d.ts new file mode 100644 index 00000000..d08e58e0 --- /dev/null +++ b/src/app/modules/home/pages/device/data/lwm2m-device-transport-configuration.component.d.ts @@ -0,0 +1,27 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { Lwm2mDeviceTransportConfiguration } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class Lwm2mDeviceTransportConfigurationComponent implements ControlValueAccessor, OnInit, OnDestroy { + private store; + private fb; + lwm2mDeviceTransportConfigurationFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private destroy$; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngOnDestroy(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: Lwm2mDeviceTransportConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device/data/mqtt-device-transport-configuration.component.d.ts b/src/app/modules/home/pages/device/data/mqtt-device-transport-configuration.component.d.ts new file mode 100644 index 00000000..a0328029 --- /dev/null +++ b/src/app/modules/home/pages/device/data/mqtt-device-transport-configuration.component.d.ts @@ -0,0 +1,25 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { MqttDeviceTransportConfiguration } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class MqttDeviceTransportConfigurationComponent implements ControlValueAccessor, OnInit { + private store; + private fb; + mqttDeviceTransportConfigurationFormGroup: FormGroup; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: MqttDeviceTransportConfiguration | null): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device/data/snmp-device-transport-configuration.component.d.ts b/src/app/modules/home/pages/device/data/snmp-device-transport-configuration.component.d.ts new file mode 100644 index 00000000..d685aff1 --- /dev/null +++ b/src/app/modules/home/pages/device/data/snmp-device-transport-configuration.component.d.ts @@ -0,0 +1,33 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { SnmpAuthenticationProtocol, SnmpDeviceProtocolVersion, SnmpDeviceTransportConfiguration, SnmpPrivacyProtocol } from '@shared/models/device.models'; +import * as i0 from "@angular/core"; +export declare class SnmpDeviceTransportConfigurationComponent implements ControlValueAccessor, OnInit, Validator { + private store; + private fb; + snmpDeviceTransportConfigurationFormGroup: FormGroup; + snmpDeviceProtocolVersions: SnmpDeviceProtocolVersion[]; + snmpAuthenticationProtocols: SnmpAuthenticationProtocol[]; + snmpAuthenticationProtocolTranslation: Map; + snmpPrivacyProtocols: SnmpPrivacyProtocol[]; + snmpPrivacyProtocolTranslation: Map; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private propagateChange; + constructor(store: Store, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + validate(): ValidationErrors | null; + setDisabledState(isDisabled: boolean): void; + writeValue(value: SnmpDeviceTransportConfiguration | null): void; + isV3protocolVersion(): boolean; + private updateDisabledFormValue; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device/device-credentials-dialog.component.d.ts b/src/app/modules/home/pages/device/device-credentials-dialog.component.d.ts new file mode 100644 index 00000000..86f3c636 --- /dev/null +++ b/src/app/modules/home/pages/device/device-credentials-dialog.component.d.ts @@ -0,0 +1,41 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { DeviceService } from '@core/http/device.service'; +import { DeviceCredentials, DeviceTransportType } from '@shared/models/device.models'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import { DeviceProfileService } from '@core/http/device-profile.service'; +import * as i0 from "@angular/core"; +export interface DeviceCredentialsDialogData { + isReadOnly: boolean; + deviceId: string; + deviceProfileId: string; +} +export declare class DeviceCredentialsDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: DeviceCredentialsDialogData; + private deviceService; + private deviceProfileService; + private errorStateMatcher; + dialogRef: MatDialogRef; + fb: FormBuilder; + deviceCredentialsFormGroup: FormGroup; + deviceTransportType: DeviceTransportType; + isReadOnly: boolean; + loadingCredentials: boolean; + private deviceCredentials; + private submitted; + constructor(store: Store, router: Router, data: DeviceCredentialsDialogData, deviceService: DeviceService, deviceProfileService: DeviceProfileService, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + loadDeviceCredentials(): void; + cancel(): void; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device/device-routing.module.d.ts b/src/app/modules/home/pages/device/device-routing.module.d.ts new file mode 100644 index 00000000..11141c90 --- /dev/null +++ b/src/app/modules/home/pages/device/device-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class DeviceRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/device/device-table-header.component.d.ts b/src/app/modules/home/pages/device/device-table-header.component.d.ts new file mode 100644 index 00000000..e5f3a0f7 --- /dev/null +++ b/src/app/modules/home/pages/device/device-table-header.component.d.ts @@ -0,0 +1,15 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTableHeaderComponent } from '../../components/entity/entity-table-header.component'; +import { DeviceInfo } from '@app/shared/models/device.models'; +import { EntityType } from '@shared/models/entity-type.models'; +import { DeviceProfileId } from '../../../../shared/models/id/device-profile-id'; +import * as i0 from "@angular/core"; +export declare class DeviceTableHeaderComponent extends EntityTableHeaderComponent { + protected store: Store; + entityType: typeof EntityType; + constructor(store: Store); + deviceProfileChanged(deviceProfileId: DeviceProfileId): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device/device-tabs.component.d.ts b/src/app/modules/home/pages/device/device-tabs.component.d.ts new file mode 100644 index 00000000..6e3a5a81 --- /dev/null +++ b/src/app/modules/home/pages/device/device-tabs.component.d.ts @@ -0,0 +1,12 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { DeviceInfo } from '@shared/models/device.models'; +import { EntityTabsComponent } from '../../components/entity/entity-tabs.component'; +import * as i0 from "@angular/core"; +export declare class DeviceTabsComponent extends EntityTabsComponent { + protected store: Store; + constructor(store: Store); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device/device.component.d.ts b/src/app/modules/home/pages/device/device.component.d.ts new file mode 100644 index 00000000..d26cafe9 --- /dev/null +++ b/src/app/modules/home/pages/device/device.component.d.ts @@ -0,0 +1,35 @@ +import { ChangeDetectorRef } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityComponent } from '../../components/entity/entity.component'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { DeviceCredentials, DeviceInfo, DeviceProfileInfo } from '@shared/models/device.models'; +import { EntityType } from '@shared/models/entity-type.models'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { Subject } from 'rxjs'; +import { OtaUpdateType } from '@shared/models/ota-package.models'; +import * as i0 from "@angular/core"; +export declare class DeviceComponent extends EntityComponent { + protected store: Store; + protected translate: TranslateService; + protected entityValue: DeviceInfo; + protected entitiesTableConfigValue: EntityTableConfig; + fb: FormBuilder; + protected cd: ChangeDetectorRef; + entityType: typeof EntityType; + deviceCredentials$: Subject; + deviceScope: 'tenant' | 'customer' | 'customer_user' | 'edge' | 'edge_customer_user'; + otaUpdateType: typeof OtaUpdateType; + constructor(store: Store, translate: TranslateService, entityValue: DeviceInfo, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef); + ngOnInit(): void; + hideDelete(): boolean; + isAssignedToCustomer(entity: DeviceInfo): boolean; + buildForm(entity: DeviceInfo): FormGroup; + updateForm(entity: DeviceInfo): void; + onDeviceIdCopied($event: any): void; + onDeviceProfileUpdated(): void; + onDeviceProfileChanged(deviceProfile: DeviceProfileInfo): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/device/device.module.d.ts b/src/app/modules/home/pages/device/device.module.d.ts new file mode 100644 index 00000000..17824640 --- /dev/null +++ b/src/app/modules/home/pages/device/device.module.d.ts @@ -0,0 +1,26 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./data/default-device-configuration.component"; +import * as i2 from "./data/device-configuration.component"; +import * as i3 from "./data/default-device-transport-configuration.component"; +import * as i4 from "./data/mqtt-device-transport-configuration.component"; +import * as i5 from "./data/coap-device-transport-configuration.component"; +import * as i6 from "./data/lwm2m-device-transport-configuration.component"; +import * as i7 from "./data/snmp-device-transport-configuration.component"; +import * as i8 from "./data/device-transport-configuration.component"; +import * as i9 from "./data/device-data.component"; +import * as i10 from "@modules/home/pages/device/device.component"; +import * as i11 from "@home/pages/device/device-tabs.component"; +import * as i12 from "@modules/home/pages/device/device-table-header.component"; +import * as i13 from "@modules/home/pages/device/device-credentials-dialog.component"; +import * as i14 from "@angular/common"; +import * as i15 from "@shared/shared.module"; +import * as i16 from "@modules/home/components/home-components.module"; +import * as i17 from "../../dialogs/home-dialogs.module"; +import * as i18 from "@home/components/device/device-credentials.module"; +import * as i19 from "@home/components/profile/device/common/device-profile-common.module"; +import * as i20 from "./device-routing.module"; +export declare class DeviceModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/device/devices-table-config.resolver.d.ts b/src/app/modules/home/pages/device/devices-table-config.resolver.d.ts new file mode 100644 index 00000000..14b942dc --- /dev/null +++ b/src/app/modules/home/pages/device/devices-table-config.resolver.d.ts @@ -0,0 +1,55 @@ +import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router'; +import { CellActionDescriptor, EntityTableColumn, EntityTableConfig, GroupActionDescriptor, HeaderActionDescriptor } from '@home/models/entity/entities-table-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { Device, DeviceInfo } from '@app/shared/models/device.models'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { DeviceService } from '@app/core/http/device.service'; +import { CustomerService } from '@core/http/customer.service'; +import { BroadcastService } from '@core/services/broadcast.service'; +import { MatDialog } from '@angular/material/dialog'; +import { DialogService } from '@core/services/dialog.service'; +import { DeviceId } from '@app/shared/models/id/device-id'; +import { HomeDialogsService } from '@home/dialogs/home-dialogs.service'; +import { EdgeService } from '@core/http/edge.service'; +import * as i0 from "@angular/core"; +export declare class DevicesTableConfigResolver implements Resolve> { + private store; + private broadcast; + private deviceService; + private customerService; + private dialogService; + private edgeService; + private homeDialogs; + private translate; + private datePipe; + private router; + private dialog; + private readonly config; + private customerId; + constructor(store: Store, broadcast: BroadcastService, deviceService: DeviceService, customerService: CustomerService, dialogService: DialogService, edgeService: EdgeService, homeDialogs: HomeDialogsService, translate: TranslateService, datePipe: DatePipe, router: Router, dialog: MatDialog); + resolve(route: ActivatedRouteSnapshot): Observable>; + configureColumns(deviceScope: string): Array>; + configureEntityFunctions(deviceScope: string): void; + configureCellActions(deviceScope: string): Array>; + configureGroupActions(deviceScope: string): Array>; + configureAddActions(deviceScope: string): Array; + private openDevice; + importDevices($event: Event): void; + deviceWizard($event: Event): void; + addDevicesToCustomer($event: Event): void; + makePublic($event: Event, device: Device): void; + assignToCustomer($event: Event, deviceIds: Array): void; + unassignFromCustomer($event: Event, device: DeviceInfo): void; + unassignDevicesFromCustomer($event: Event, devices: Array): void; + manageCredentials($event: Event, device: Device): void; + onDeviceAction(action: EntityAction, config: EntityTableConfig): boolean; + addDevicesToEdge($event: Event): void; + unassignFromEdge($event: Event, device: DeviceInfo): void; + unassignDevicesFromEdge($event: Event, devices: Array): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/pages/edge/edge-routing.module.d.ts b/src/app/modules/home/pages/edge/edge-routing.module.d.ts new file mode 100644 index 00000000..291d3f45 --- /dev/null +++ b/src/app/modules/home/pages/edge/edge-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class EdgeRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/edge/edge-table-header.component.d.ts b/src/app/modules/home/pages/edge/edge-table-header.component.d.ts new file mode 100644 index 00000000..b09c2409 --- /dev/null +++ b/src/app/modules/home/pages/edge/edge-table-header.component.d.ts @@ -0,0 +1,14 @@ +import { EntityTableHeaderComponent } from '@home/components/entity/entity-table-header.component'; +import { EntityType } from '@shared/models/entity-type.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EdgeInfo } from '@shared/models/edge.models'; +import * as i0 from "@angular/core"; +export declare class EdgeTableHeaderComponent extends EntityTableHeaderComponent { + protected store: Store; + entityType: typeof EntityType; + constructor(store: Store); + edgeTypeChanged(edgeType: string): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/edge/edge-tabs.component.d.ts b/src/app/modules/home/pages/edge/edge-tabs.component.d.ts new file mode 100644 index 00000000..016408fa --- /dev/null +++ b/src/app/modules/home/pages/edge/edge-tabs.component.d.ts @@ -0,0 +1,12 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EdgeInfo } from '@shared/models/edge.models'; +import { EntityTabsComponent } from '@home/components/entity/entity-tabs.component'; +import * as i0 from "@angular/core"; +export declare class EdgeTabsComponent extends EntityTabsComponent { + protected store: Store; + constructor(store: Store); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/edge/edge.component.d.ts b/src/app/modules/home/pages/edge/edge.component.d.ts new file mode 100644 index 00000000..420f6048 --- /dev/null +++ b/src/app/modules/home/pages/edge/edge.component.d.ts @@ -0,0 +1,32 @@ +import { ChangeDetectorRef } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityComponent } from '@home/components/entity/entity.component'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { EntityType } from '@shared/models/entity-type.models'; +import { EdgeInfo } from '@shared/models/edge.models'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import * as i0 from "@angular/core"; +export declare class EdgeComponent extends EntityComponent { + protected store: Store; + protected translate: TranslateService; + protected entityValue: EdgeInfo; + protected entitiesTableConfigValue: EntityTableConfig; + fb: FormBuilder; + protected cd: ChangeDetectorRef; + entityType: typeof EntityType; + edgeScope: 'tenant' | 'customer' | 'customer_user'; + constructor(store: Store, translate: TranslateService, entityValue: EdgeInfo, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef); + ngOnInit(): void; + hideDelete(): boolean; + isAssignedToCustomer(entity: EdgeInfo): boolean; + buildForm(entity: EdgeInfo): FormGroup; + updateForm(entity: EdgeInfo): void; + updateFormState(): void; + onEdgeIdCopied($event: any): void; + onEdgeInfoCopied(type: string): void; + private generateRoutingKeyAndSecret; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/edge/edge.module.d.ts b/src/app/modules/home/pages/edge/edge.module.d.ts new file mode 100644 index 00000000..12da5a75 --- /dev/null +++ b/src/app/modules/home/pages/edge/edge.module.d.ts @@ -0,0 +1,14 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@modules/home/pages/edge/edge.component"; +import * as i2 from "@home/pages/edge/edge-table-header.component"; +import * as i3 from "@home/pages/edge/edge-tabs.component"; +import * as i4 from "@angular/common"; +import * as i5 from "@shared/shared.module"; +import * as i6 from "@home/dialogs/home-dialogs.module"; +import * as i7 from "@home/components/home-components.module"; +import * as i8 from "@home/pages/edge/edge-routing.module"; +export declare class EdgeModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/edge/edges-table-config.resolver.d.ts b/src/app/modules/home/pages/edge/edges-table-config.resolver.d.ts new file mode 100644 index 00000000..d9512ce6 --- /dev/null +++ b/src/app/modules/home/pages/edge/edges-table-config.resolver.d.ts @@ -0,0 +1,51 @@ +import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router'; +import { CellActionDescriptor, EntityTableColumn, EntityTableConfig, GroupActionDescriptor, HeaderActionDescriptor } from '@home/models/entity/entities-table-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { EntityType } from '@shared/models/entity-type.models'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { CustomerService } from '@core/http/customer.service'; +import { BroadcastService } from '@core/services/broadcast.service'; +import { MatDialog } from '@angular/material/dialog'; +import { DialogService } from '@core/services/dialog.service'; +import { HomeDialogsService } from '@home/dialogs/home-dialogs.service'; +import { Edge, EdgeInfo } from '@shared/models/edge.models'; +import { EdgeService } from '@core/http/edge.service'; +import { EdgeId } from '@shared/models/id/edge-id'; +import * as i0 from "@angular/core"; +export declare class EdgesTableConfigResolver implements Resolve> { + private store; + private broadcast; + private edgeService; + private customerService; + private dialogService; + private homeDialogs; + private translate; + private datePipe; + private router; + private dialog; + private readonly config; + private customerId; + constructor(store: Store, broadcast: BroadcastService, edgeService: EdgeService, customerService: CustomerService, dialogService: DialogService, homeDialogs: HomeDialogsService, translate: TranslateService, datePipe: DatePipe, router: Router, dialog: MatDialog); + resolve(route: ActivatedRouteSnapshot): Observable>; + configureColumns(edgeScope: string): Array>; + configureEntityFunctions(edgeScope: string): void; + configureCellActions(edgeScope: string): Array>; + configureGroupActions(edgeScope: string): Array>; + configureAddActions(edgeScope: string): Array; + importEdges($event: Event): void; + addEdgesToCustomer($event: Event): void; + private openEdge; + makePublic($event: Event, edge: Edge): void; + openEdgeEntitiesByType($event: Event, edge: Edge, entityType: EntityType): void; + assignToCustomer($event: Event, edgesIds: Array): void; + unassignFromCustomer($event: Event, edge: EdgeInfo): void; + unassignEdgesFromCustomer($event: Event, edges: Array): void; + syncEdge($event: any, edge: any): void; + onEdgeAction(action: EntityAction, config: EntityTableConfig): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/pages/entity-view/entity-view-routing.module.d.ts b/src/app/modules/home/pages/entity-view/entity-view-routing.module.d.ts new file mode 100644 index 00000000..0d7cbdb4 --- /dev/null +++ b/src/app/modules/home/pages/entity-view/entity-view-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class EntityViewRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/entity-view/entity-view-table-header.component.d.ts b/src/app/modules/home/pages/entity-view/entity-view-table-header.component.d.ts new file mode 100644 index 00000000..e483a16f --- /dev/null +++ b/src/app/modules/home/pages/entity-view/entity-view-table-header.component.d.ts @@ -0,0 +1,14 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTableHeaderComponent } from '../../components/entity/entity-table-header.component'; +import { EntityType } from '@shared/models/entity-type.models'; +import { EntityViewInfo } from '@app/shared/models/entity-view.models'; +import * as i0 from "@angular/core"; +export declare class EntityViewTableHeaderComponent extends EntityTableHeaderComponent { + protected store: Store; + entityType: typeof EntityType; + constructor(store: Store); + entityViewTypeChanged(entityViewType: string): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/entity-view/entity-view-tabs.component.d.ts b/src/app/modules/home/pages/entity-view/entity-view-tabs.component.d.ts new file mode 100644 index 00000000..f637e9a8 --- /dev/null +++ b/src/app/modules/home/pages/entity-view/entity-view-tabs.component.d.ts @@ -0,0 +1,12 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTabsComponent } from '../../components/entity/entity-tabs.component'; +import { EntityViewInfo } from '@app/shared/models/entity-view.models'; +import * as i0 from "@angular/core"; +export declare class EntityViewTabsComponent extends EntityTabsComponent { + protected store: Store; + constructor(store: Store); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/entity-view/entity-view.component.d.ts b/src/app/modules/home/pages/entity-view/entity-view.component.d.ts new file mode 100644 index 00000000..5849f45e --- /dev/null +++ b/src/app/modules/home/pages/entity-view/entity-view.component.d.ts @@ -0,0 +1,37 @@ +import { ChangeDetectorRef } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityComponent } from '../../components/entity/entity.component'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { EntityType } from '@shared/models/entity-type.models'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityViewInfo } from '@app/shared/models/entity-view.models'; +import { Observable } from 'rxjs'; +import { DataKeyType } from '@shared/models/telemetry/telemetry.models'; +import { EntityId } from '@app/shared/models/id/entity-id'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import * as i0 from "@angular/core"; +export declare class EntityViewComponent extends EntityComponent { + protected store: Store; + protected translate: TranslateService; + protected entityValue: EntityViewInfo; + protected entitiesTableConfigValue: EntityTableConfig; + fb: FormBuilder; + protected cd: ChangeDetectorRef; + entityType: typeof EntityType; + dataKeyType: typeof DataKeyType; + entityViewScope: 'tenant' | 'customer' | 'customer_user' | 'edge'; + allowedEntityTypes: EntityType[]; + maxStartTimeMs: Observable; + minEndTimeMs: Observable; + selectedEntityId: Observable; + constructor(store: Store, translate: TranslateService, entityValue: EntityViewInfo, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef); + ngOnInit(): void; + hideDelete(): boolean; + isAssignedToCustomer(entity: EntityViewInfo): boolean; + buildForm(entity: EntityViewInfo): FormGroup; + updateForm(entity: EntityViewInfo): void; + onEntityViewIdCopied($event: any): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/entity-view/entity-view.module.d.ts b/src/app/modules/home/pages/entity-view/entity-view.module.d.ts new file mode 100644 index 00000000..e69be6bc --- /dev/null +++ b/src/app/modules/home/pages/entity-view/entity-view.module.d.ts @@ -0,0 +1,14 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@modules/home/pages/entity-view/entity-view.component"; +import * as i2 from "@home/pages/entity-view/entity-view-tabs.component"; +import * as i3 from "./entity-view-table-header.component"; +import * as i4 from "@angular/common"; +import * as i5 from "@shared/shared.module"; +import * as i6 from "@modules/home/components/home-components.module"; +import * as i7 from "../../dialogs/home-dialogs.module"; +import * as i8 from "./entity-view-routing.module"; +export declare class EntityViewModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/entity-view/entity-views-table-config.resolver.d.ts b/src/app/modules/home/pages/entity-view/entity-views-table-config.resolver.d.ts new file mode 100644 index 00000000..8967b228 --- /dev/null +++ b/src/app/modules/home/pages/entity-view/entity-views-table-config.resolver.d.ts @@ -0,0 +1,50 @@ +import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router'; +import { CellActionDescriptor, EntityTableColumn, EntityTableConfig, GroupActionDescriptor, HeaderActionDescriptor } from '@home/models/entity/entities-table-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { CustomerService } from '@core/http/customer.service'; +import { BroadcastService } from '@core/services/broadcast.service'; +import { MatDialog } from '@angular/material/dialog'; +import { DialogService } from '@core/services/dialog.service'; +import { EntityView, EntityViewInfo } from '@app/shared/models/entity-view.models'; +import { EntityViewService } from '@core/http/entity-view.service'; +import { EntityViewId } from '@shared/models/id/entity-view-id'; +import { EdgeService } from '@core/http/edge.service'; +import * as i0 from "@angular/core"; +export declare class EntityViewsTableConfigResolver implements Resolve> { + private store; + private broadcast; + private entityViewService; + private customerService; + private edgeService; + private dialogService; + private translate; + private datePipe; + private router; + private dialog; + private readonly config; + private customerId; + constructor(store: Store, broadcast: BroadcastService, entityViewService: EntityViewService, customerService: CustomerService, edgeService: EdgeService, dialogService: DialogService, translate: TranslateService, datePipe: DatePipe, router: Router, dialog: MatDialog); + resolve(route: ActivatedRouteSnapshot): Observable>; + configureColumns(entityViewScope: string): Array>; + configureEntityFunctions(entityViewScope: string): void; + configureCellActions(entityViewScope: string): Array>; + configureGroupActions(entityViewScope: string): Array>; + configureAddActions(entityViewScope: string): Array; + addEntityViewsToCustomer($event: Event): void; + private openEntityView; + makePublic($event: Event, entityView: EntityView): void; + assignToCustomer($event: Event, entityViewIds: Array): void; + unassignFromCustomer($event: Event, entityView: EntityViewInfo): void; + unassignEntityViewsFromCustomer($event: Event, entityViews: Array): void; + onEntityViewAction(action: EntityAction, config: EntityTableConfig): boolean; + addEntityViewsToEdge($event: Event): void; + unassignFromEdge($event: Event, entityView: EntityViewInfo): void; + unassignEntityViewsFromEdge($event: Event, entityViews: Array): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/pages/home-links/home-links-routing.module.d.ts b/src/app/modules/home/pages/home-links/home-links-routing.module.d.ts new file mode 100644 index 00000000..a0ba6e77 --- /dev/null +++ b/src/app/modules/home/pages/home-links/home-links-routing.module.d.ts @@ -0,0 +1,18 @@ +import { Resolve } from '@angular/router'; +import { Observable } from 'rxjs'; +import { HomeDashboard } from '@shared/models/dashboard.models'; +import { DashboardService } from '@core/http/dashboard.service'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class HomeDashboardResolver implements Resolve { + private dashboardService; + constructor(dashboardService: DashboardService); + resolve(): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare class HomeLinksRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/home-links/home-links.component.d.ts b/src/app/modules/home/pages/home-links/home-links.component.d.ts new file mode 100644 index 00000000..38728860 --- /dev/null +++ b/src/app/modules/home/pages/home-links/home-links.component.d.ts @@ -0,0 +1,22 @@ +import { ChangeDetectorRef, OnInit } from '@angular/core'; +import { MenuService } from '@core/services/menu.service'; +import { BreakpointObserver } from '@angular/cdk/layout'; +import { HomeSection } from '@core/services/menu.models'; +import { ActivatedRoute } from '@angular/router'; +import { HomeDashboard } from '@shared/models/dashboard.models'; +import * as i0 from "@angular/core"; +export declare class HomeLinksComponent implements OnInit { + private menuService; + breakpointObserver: BreakpointObserver; + private cd; + private route; + homeSections$: import("rxjs").Observable; + cols: number; + homeDashboard: HomeDashboard; + constructor(menuService: MenuService, breakpointObserver: BreakpointObserver, cd: ChangeDetectorRef, route: ActivatedRoute); + ngOnInit(): void; + private updateColumnCount; + sectionColspan(section: HomeSection): number; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/home-links/home-links.module.d.ts b/src/app/modules/home/pages/home-links/home-links.module.d.ts new file mode 100644 index 00000000..25576cbc --- /dev/null +++ b/src/app/modules/home/pages/home-links/home-links.module.d.ts @@ -0,0 +1,11 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./home-links.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@app/shared/shared.module"; +import * as i4 from "@home/components/home-components.module"; +import * as i5 from "./home-links-routing.module"; +export declare class HomeLinksModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/home-pages.models.d.ts b/src/app/modules/home/pages/home-pages.models.d.ts new file mode 100644 index 00000000..abc44d1a --- /dev/null +++ b/src/app/modules/home/pages/home-pages.models.d.ts @@ -0,0 +1,3 @@ +import { BreadCrumbLabelFunction } from '@shared/components/breadcrumb'; +import { EntityDetailsPageComponent } from '@home/components/entity/entity-details-page.component'; +export declare const entityDetailsPageBreadcrumbLabelFunction: BreadCrumbLabelFunction; diff --git a/src/app/modules/home/pages/home-pages.module.d.ts b/src/app/modules/home/pages/home-pages.module.d.ts new file mode 100644 index 00000000..54bab4bf --- /dev/null +++ b/src/app/modules/home/pages/home-pages.module.d.ts @@ -0,0 +1,24 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./admin/admin.module"; +import * as i2 from "./home-links/home-links.module"; +import * as i3 from "./profile/profile.module"; +import * as i4 from "./tenant-profile/tenant-profile.module"; +import * as i5 from "@modules/home/pages/tenant/tenant.module"; +import * as i6 from "./device-profile/device-profile.module"; +import * as i7 from "@modules/home/pages/device/device.module"; +import * as i8 from "@modules/home/pages/asset/asset.module"; +import * as i9 from "@home/pages/edge/edge.module"; +import * as i10 from "@modules/home/pages/entity-view/entity-view.module"; +import * as i11 from "@modules/home/pages/customer/customer.module"; +import * as i12 from "@modules/home/pages/rulechain/rulechain.module"; +import * as i13 from "@modules/home/pages/widget/widget-library.module"; +import * as i14 from "@modules/home/pages/dashboard/dashboard.module"; +import * as i15 from "@modules/home/pages/audit-log/audit-log.module"; +import * as i16 from "@home/pages/api-usage/api-usage.module"; +import * as i17 from "@home/pages/ota-update/ota-update.module"; +import * as i18 from "@modules/home/pages/user/user.module"; +export declare class HomePagesModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/ota-update/ota-update-routing.module.d.ts b/src/app/modules/home/pages/ota-update/ota-update-routing.module.d.ts new file mode 100644 index 00000000..e9a98de4 --- /dev/null +++ b/src/app/modules/home/pages/ota-update/ota-update-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class OtaUpdateRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/ota-update/ota-update-table-config.resolve.d.ts b/src/app/modules/home/pages/ota-update/ota-update-table-config.resolve.d.ts new file mode 100644 index 00000000..ede78f84 --- /dev/null +++ b/src/app/modules/home/pages/ota-update/ota-update-table-config.resolve.d.ts @@ -0,0 +1,29 @@ +import { Resolve, Router } from '@angular/router'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { OtaPackage, OtaPackageInfo } from '@shared/models/ota-package.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { OtaPackageService } from '@core/http/ota-package.service'; +import { PageLink } from '@shared/models/page/page-link'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { FileSizePipe } from '@shared/pipe/file-size.pipe'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import * as i0 from "@angular/core"; +export declare class OtaUpdateTableConfigResolve implements Resolve> { + private translate; + private datePipe; + private store; + private otaPackageService; + private router; + private fileSize; + private readonly config; + constructor(translate: TranslateService, datePipe: DatePipe, store: Store, otaPackageService: OtaPackageService, router: Router, fileSize: FileSizePipe); + resolve(): EntityTableConfig; + private openOtaPackage; + exportPackage($event: Event, otaPackageInfo: OtaPackageInfo): void; + checksumText(entity: any): string; + onPackageAction(action: EntityAction): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/pages/ota-update/ota-update.component.d.ts b/src/app/modules/home/pages/ota-update/ota-update.component.d.ts new file mode 100644 index 00000000..9ee72791 --- /dev/null +++ b/src/app/modules/home/pages/ota-update/ota-update.component.d.ts @@ -0,0 +1,34 @@ +import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { EntityComponent } from '@home/components/entity/entity.component'; +import { ChecksumAlgorithm, OtaPackage, OtaUpdateType } from '@shared/models/ota-package.models'; +import * as i0 from "@angular/core"; +export declare class OtaUpdateComponent extends EntityComponent implements OnInit, OnDestroy { + protected store: Store; + protected translate: TranslateService; + protected entityValue: OtaPackage; + protected entitiesTableConfigValue: EntityTableConfig; + fb: FormBuilder; + protected cd: ChangeDetectorRef; + private destroy$; + checksumAlgorithms: ChecksumAlgorithm[]; + checksumAlgorithmTranslationMap: Map; + packageTypes: OtaUpdateType[]; + otaUpdateTypeTranslationMap: Map; + constructor(store: Store, translate: TranslateService, entityValue: OtaPackage, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef); + ngOnInit(): void; + ngOnDestroy(): void; + hideDelete(): boolean; + buildForm(entity: OtaPackage): FormGroup; + updateForm(entity: OtaPackage): void; + onPackageIdCopied(): void; + onPackageChecksumCopied(): void; + onPackageDirectUrlCopied(): void; + prepareFormValue(formValue: any): any; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/ota-update/ota-update.module.d.ts b/src/app/modules/home/pages/ota-update/ota-update.module.d.ts new file mode 100644 index 00000000..9c7dad25 --- /dev/null +++ b/src/app/modules/home/pages/ota-update/ota-update.module.d.ts @@ -0,0 +1,11 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@home/pages/ota-update/ota-update.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@shared/shared.module"; +import * as i4 from "@home/components/home-components.module"; +import * as i5 from "@home/pages/ota-update/ota-update-routing.module"; +export declare class OtaUpdateModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/profile/change-password-dialog.component.d.ts b/src/app/modules/home/pages/profile/change-password-dialog.component.d.ts new file mode 100644 index 00000000..f935247c --- /dev/null +++ b/src/app/modules/home/pages/profile/change-password-dialog.component.d.ts @@ -0,0 +1,25 @@ +import { OnInit } from '@angular/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { TranslateService } from '@ngx-translate/core'; +import { AuthService } from '@core/auth/auth.service'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import * as i0 from "@angular/core"; +export declare class ChangePasswordDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + private translate; + private authService; + dialogRef: MatDialogRef; + fb: FormBuilder; + changePassword: FormGroup; + constructor(store: Store, router: Router, translate: TranslateService, authService: AuthService, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + buildChangePasswordForm(): void; + onChangePassword(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/profile/profile-routing.module.d.ts b/src/app/modules/home/pages/profile/profile-routing.module.d.ts new file mode 100644 index 00000000..4aab47f7 --- /dev/null +++ b/src/app/modules/home/pages/profile/profile-routing.module.d.ts @@ -0,0 +1,21 @@ +import { Resolve } from '@angular/router'; +import { User } from '@shared/models/user.model'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { UserService } from '@core/http/user.service'; +import { Observable } from 'rxjs'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class UserProfileResolver implements Resolve { + private store; + private userService; + constructor(store: Store, userService: UserService); + resolve(): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare class ProfileRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/profile/profile.component.d.ts b/src/app/modules/home/pages/profile/profile.component.d.ts new file mode 100644 index 00000000..eb666056 --- /dev/null +++ b/src/app/modules/home/pages/profile/profile.component.d.ts @@ -0,0 +1,48 @@ +import { OnInit } from '@angular/core'; +import { UserService } from '@core/http/user.service'; +import { User } from '@shared/models/user.model'; +import { Authority } from '@shared/models/authority.enum'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { HasConfirmForm } from '@core/guards/confirm-on-exit.guard'; +import { TranslateService } from '@ngx-translate/core'; +import { MatDialog } from '@angular/material/dialog'; +import { DialogService } from '@core/services/dialog.service'; +import { AuthService } from '@core/auth/auth.service'; +import { ActivatedRoute } from '@angular/router'; +import { DatePipe } from '@angular/common'; +import { ClipboardService } from 'ngx-clipboard'; +import * as i0 from "@angular/core"; +export declare class ProfileComponent extends PageComponent implements OnInit, HasConfirmForm { + protected store: Store; + private route; + private userService; + private authService; + private translate; + dialog: MatDialog; + dialogService: DialogService; + fb: FormBuilder; + private datePipe; + private clipboardService; + authorities: typeof Authority; + profile: FormGroup; + user: User; + languageList: any; + private readonly authUser; + get jwtToken(): string; + get jwtTokenExpiration(): string; + get expirationJwtData(): string; + constructor(store: Store, route: ActivatedRoute, userService: UserService, authService: AuthService, translate: TranslateService, dialog: MatDialog, dialogService: DialogService, fb: FormBuilder, datePipe: DatePipe, clipboardService: ClipboardService); + ngOnInit(): void; + buildProfileForm(): void; + save(): void; + changePassword(): void; + userLoaded(user: User): void; + confirmForm(): FormGroup; + isSysAdmin(): boolean; + copyToken(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/profile/profile.module.d.ts b/src/app/modules/home/pages/profile/profile.module.d.ts new file mode 100644 index 00000000..df0cf7f0 --- /dev/null +++ b/src/app/modules/home/pages/profile/profile.module.d.ts @@ -0,0 +1,11 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./profile.component"; +import * as i2 from "@modules/home/pages/profile/change-password-dialog.component"; +import * as i3 from "@angular/common"; +import * as i4 from "@shared/shared.module"; +import * as i5 from "./profile-routing.module"; +export declare class ProfileModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/rulechain/link-labels.component.d.ts b/src/app/modules/home/pages/rulechain/link-labels.component.d.ts new file mode 100644 index 00000000..e4231505 --- /dev/null +++ b/src/app/modules/home/pages/rulechain/link-labels.component.d.ts @@ -0,0 +1,60 @@ +import { ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { LinkLabel } from '@shared/models/rule-node.models'; +import { Observable } from 'rxjs'; +import { TruncatePipe } from '@shared/pipe/truncate.pipe'; +import { MatAutocomplete, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete'; +import { MatChipInputEvent, MatChipList } from '@angular/material/chips'; +import { TranslateService } from '@ngx-translate/core'; +import { RuleChainService } from '@core/http/rule-chain.service'; +import * as i0 from "@angular/core"; +export declare class LinkLabelsComponent implements ControlValueAccessor, OnInit, OnChanges { + private fb; + truncate: TruncatePipe; + translate: TranslateService; + private ruleChainService; + chipList: MatChipList; + matAutocomplete: MatAutocomplete; + labelInput: ElementRef; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private allowCustomValue; + get allowCustom(): boolean; + set allowCustom(value: boolean); + allowedLabels: { + [label: string]: LinkLabel; + }; + sourceRuleChainId: string; + linksFormGroup: FormGroup; + modelValue: Array; + private labelsList; + separatorKeysCodes: number[]; + filteredLabels: Observable>; + labels: Array; + searchText: string; + private propagateChange; + constructor(fb: FormBuilder, truncate: TruncatePipe, translate: TranslateService, ruleChainService: RuleChainService); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngOnChanges(changes: SimpleChanges): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string[]): void; + prepareLabelsList(): Observable>; + displayLabelFn(label?: LinkLabel): string | undefined; + textIsNotEmpty(text: string): boolean; + createLinkLabel($event: Event, value: string): void; + add(event: MatChipInputEvent): void; + private fetchLabels; + private transformLinkLabel; + remove(label: LinkLabel): void; + selected(event: MatAutocompleteSelectedEvent): void; + addLabel(label: LinkLabel): void; + onFocus(): void; + clear(value?: string): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/rulechain/rule-node-config.component.d.ts b/src/app/modules/home/pages/rulechain/rule-node-config.component.d.ts new file mode 100644 index 00000000..202a5650 --- /dev/null +++ b/src/app/modules/home/pages/rulechain/rule-node-config.component.d.ts @@ -0,0 +1,47 @@ +import { AfterViewInit, OnDestroy, OnInit, ViewContainerRef } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { RuleNodeConfiguration, RuleNodeDefinition } from '@shared/models/rule-node.models'; +import { Subscription } from 'rxjs'; +import { RuleChainService } from '@core/http/rule-chain.service'; +import { TranslateService } from '@ngx-translate/core'; +import { JsonObjectEditComponent } from '@shared/components/json-object-edit.component'; +import { RuleChainType } from '@shared/models/rule-chain.models'; +import * as i0 from "@angular/core"; +export declare class RuleNodeConfigComponent implements ControlValueAccessor, OnInit, OnDestroy, AfterViewInit { + private translate; + private ruleChainService; + private fb; + definedConfigContainer: ViewContainerRef; + jsonObjectEditComponent: JsonObjectEditComponent; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + ruleNodeId: string; + ruleChainId: string; + ruleChainType: RuleChainType; + nodeDefinitionValue: RuleNodeDefinition; + set nodeDefinition(nodeDefinition: RuleNodeDefinition); + get nodeDefinition(): RuleNodeDefinition; + definedDirectiveError: string; + ruleNodeConfigFormGroup: FormGroup; + changeSubscription: Subscription; + private definedConfigComponentRef; + private definedConfigComponent; + private configuration; + private propagateChange; + constructor(translate: TranslateService, ruleChainService: RuleChainService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngOnDestroy(): void; + ngAfterViewInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: RuleNodeConfiguration): void; + useDefinedDirective(): boolean; + private updateModel; + private validateDefinedDirective; + validate(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/rulechain/rule-node-details.component.d.ts b/src/app/modules/home/pages/rulechain/rule-node-details.component.d.ts new file mode 100644 index 00000000..ac8a51c0 --- /dev/null +++ b/src/app/modules/home/pages/rulechain/rule-node-details.component.d.ts @@ -0,0 +1,38 @@ +import { OnChanges, OnInit, SimpleChanges } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { FcRuleNode, RuleNodeType } from '@shared/models/rule-node.models'; +import { EntityType } from '@shared/models/entity-type.models'; +import { RuleChainService } from '@core/http/rule-chain.service'; +import { RuleNodeConfigComponent } from './rule-node-config.component'; +import { Router } from '@angular/router'; +import { RuleChainType } from '@app/shared/models/rule-chain.models'; +import * as i0 from "@angular/core"; +export declare class RuleNodeDetailsComponent extends PageComponent implements OnInit, OnChanges { + protected store: Store; + private fb; + private ruleChainService; + private router; + ruleNodeConfigComponent: RuleNodeConfigComponent; + ruleNode: FcRuleNode; + ruleChainId: string; + ruleChainType: RuleChainType; + isEdit: boolean; + isReadOnly: boolean; + isAdd: boolean; + ruleNodeType: typeof RuleNodeType; + entityType: typeof EntityType; + ruleNodeFormGroup: FormGroup; + private ruleNodeFormSubscription; + constructor(store: Store, fb: FormBuilder, ruleChainService: RuleChainService, router: Router); + private buildForm; + private updateRuleNode; + ngOnInit(): void; + ngOnChanges(changes: SimpleChanges): void; + validate(): void; + openRuleChain($event: Event): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/rulechain/rule-node-link.component.d.ts b/src/app/modules/home/pages/rulechain/rule-node-link.component.d.ts new file mode 100644 index 00000000..b7c3c8ff --- /dev/null +++ b/src/app/modules/home/pages/rulechain/rule-node-link.component.d.ts @@ -0,0 +1,34 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { FcRuleEdge, LinkLabel } from '@shared/models/rule-node.models'; +import { TruncatePipe } from '@shared/pipe/truncate.pipe'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class RuleNodeLinkComponent implements ControlValueAccessor, OnInit { + private fb; + truncate: TruncatePipe; + translate: TranslateService; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private allowCustomValue; + get allowCustom(): boolean; + set allowCustom(value: boolean); + allowedLabels: { + [label: string]: LinkLabel; + }; + sourceRuleChainId: string; + ruleNodeLinkFormGroup: FormGroup; + modelValue: FcRuleEdge; + private propagateChange; + constructor(fb: FormBuilder, truncate: TruncatePipe, translate: TranslateService); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: FcRuleEdge): void; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/rulechain/rulechain-page.component.d.ts b/src/app/modules/home/pages/rulechain/rulechain-page.component.d.ts new file mode 100644 index 00000000..e3368fa7 --- /dev/null +++ b/src/app/modules/home/pages/rulechain/rulechain-page.component.d.ts @@ -0,0 +1,258 @@ +/// +import { AfterViewInit, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { HasDirtyFlag } from '@core/guards/confirm-on-exit.guard'; +import { TranslateService } from '@ngx-translate/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialog, MatDialogRef } from '@angular/material/dialog'; +import { MatExpansionPanel } from '@angular/material/expansion'; +import { DialogService } from '@core/services/dialog.service'; +import { AuthService } from '@core/auth/auth.service'; +import { ActivatedRoute, Router } from '@angular/router'; +import { RuleChain, RuleChainMetaData, RuleChainType } from '@shared/models/rule-chain.models'; +import { NgxFlowchartComponent, UserCallbacks } from 'ngx-flowchart'; +import { FcRuleEdge, FcRuleNode, FcRuleNodeType, LinkLabel, RuleNodeComponentDescriptor, RuleNodeType } from '@shared/models/rule-node.models'; +import { FcRuleNodeModel, FcRuleNodeTypeModel } from './rulechain-page.models'; +import { RuleChainService } from '@core/http/rule-chain.service'; +import { Observable } from 'rxjs'; +import { ISearchableComponent } from '../../models/searchable-component.models'; +import { RuleNodeDetailsComponent } from '@home/pages/rulechain/rule-node-details.component'; +import { RuleNodeLinkComponent } from './rule-node-link.component'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { MatMenuTrigger } from '@angular/material/menu'; +import { ItemBufferService } from '@core/services/item-buffer.service'; +import { Hotkey } from 'angular2-hotkeys'; +import { DebugEventType, EventType } from '@shared/models/event.models'; +import * as i0 from "@angular/core"; +export declare class RuleChainPageComponent extends PageComponent implements AfterViewInit, OnInit, OnDestroy, HasDirtyFlag, ISearchableComponent { + protected store: Store; + private route; + private router; + private ruleChainService; + private authService; + private translate; + private itembuffer; + dialog: MatDialog; + dialogService: DialogService; + fb: FormBuilder; + get isDirty(): boolean; + width: string; + height: string; + ruleNodeSearchInputField: ElementRef; + ruleChainCanvas: NgxFlowchartComponent; + expansionPanels: QueryList; + ruleChainMenuTrigger: MatMenuTrigger; + eventTypes: typeof EventType; + debugEventTypes: typeof DebugEventType; + ruleChainMenuPosition: { + x: string; + y: string; + }; + contextMenuEvent: MouseEvent; + ruleNodeTypeDescriptorsMap: Map; + ruleNodeTypesLibraryArray: RuleNodeType[]; + isImport: boolean; + isDirtyValue: boolean; + isInvalid: boolean; + ruleChainType: RuleChainType; + errorTooltips: { + [nodeId: string]: JQueryTooltipster.ITooltipsterInstance; + }; + isFullscreen: boolean; + selectedRuleNodeTabIndex: number; + editingRuleNode: FcRuleNode; + isEditingRuleNode: boolean; + editingRuleNodeIndex: number; + editingRuleNodeAllowCustomLabels: boolean; + editingRuleNodeLinkLabels: { + [label: string]: LinkLabel; + }; + editingRuleNodeSourceRuleChainId: string; + ruleNodeComponent: RuleNodeDetailsComponent; + ruleNodeLinkComponent: RuleNodeLinkComponent; + editingRuleNodeLink: FcRuleEdge; + isEditingRuleNodeLink: boolean; + editingRuleNodeLinkIndex: number; + hotKeys: Hotkey[]; + enableHotKeys: boolean; + isLibraryOpen: boolean; + ruleNodeSearch: string; + ruleNodeTypeSearch: string; + ruleChain: RuleChain; + ruleChainMetaData: RuleChainMetaData; + ruleChainModel: FcRuleNodeModel; + selectedObjects: any[]; + editCallbacks: UserCallbacks; + nextNodeID: number; + nextConnectorID: number; + inputConnectorId: number; + ruleNodeTypesModel: { + [type: string]: { + model: FcRuleNodeTypeModel; + selectedObjects: any[]; + }; + }; + nodeLibCallbacks: UserCallbacks; + ruleNodeComponents: Array; + flowchartConstants: { + htmlPrefix: string; + leftConnectorType: string; + rightConnectorType: string; + curvedStyle: string; + lineStyle: string; + dragAnimationRepaint: string; + dragAnimationShadow: string; + canvasClass: string; + selectedClass: string; + editClass: string; + activeClass: string; + hoverClass: string; + draggingClass: string; + edgeClass: string; + edgeLabelClass: string; + connectorClass: string; + magnetClass: string; + nodeClass: string; + nodeOverlayClass: string; + leftConnectorClass: string; + rightConnectorClass: string; + canvasResizeThreshold: number; + canvasResizeStep: number; + }; + private rxSubscription; + private tooltipTimeout; + constructor(store: Store, route: ActivatedRoute, router: Router, ruleChainService: RuleChainService, authService: AuthService, translate: TranslateService, itembuffer: ItemBufferService, dialog: MatDialog, dialogService: DialogService, fb: FormBuilder); + ngOnInit(): void; + ngAfterViewInit(): void; + ngOnDestroy(): void; + onSearchTextUpdated(searchText: string): void; + private init; + private reset; + private initHotKeys; + updateRuleChainLibrary(): void; + private loadRuleChainLibrary; + private createRuleChainModel; + openRuleChainContextMenu($event: MouseEvent): void; + onRuleChainContextMenuMouseLeave(): void; + private prepareContextMenu; + private prepareRuleChainContextMenu; + private prepareRuleNodeContextMenu; + private prepareEdgeContextMenu; + private canCreateNestedRuleChain; + private createNestedRuleChain; + onModelChanged(): void; + helpLinkIdForRuleNodeType(): string; + openNodeDetails(node: FcRuleNode): void; + openLinkDetails(edge: FcRuleEdge): void; + private copyNode; + private copyRuleNodes; + private pasteRuleNodes; + onDetailsDrawerClosed(): void; + onEditRuleNodeClosed(): void; + onEditRuleNodeLinkClosed(): void; + onRevertRuleNodeEdit(): void; + onRevertRuleNodeLinkEdit(): void; + saveRuleNode(): void; + saveRuleNodeLink(): void; + typeHeaderMouseEnter(event: MouseEvent, ruleNodeType: RuleNodeType): void; + displayLibNodeDescriptionTooltip(event: MouseEvent, node: FcRuleNodeType): void; + displayNodeDescriptionTooltip(event: MouseEvent, node: FcRuleNode): void; + destroyTooltips(): void; + private updateRuleNodesHighlight; + objectsSelected(): boolean; + deleteSelected(): void; + isDebugModeEnabled(): boolean; + resetDebugModeInAllNodes(): void; + validate(): void; + saveRuleChain(): void; + revertRuleChain(): void; + addRuleNode(ruleNode: FcRuleNode): void; + addRuleNodeLink(link: FcRuleEdge, labels: { + [label: string]: LinkLabel; + }, allowCustomLabels: boolean, sourceRuleChainId: string): Observable; + private updateNodeErrorTooltip; + private updateErrorTooltips; + private displayTooltip; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export interface AddRuleNodeLinkDialogData { + link: FcRuleEdge; + labels: { + [label: string]: LinkLabel; + }; + allowCustomLabels: boolean; + sourceRuleChainId: string; +} +export declare class AddRuleNodeLinkDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: AddRuleNodeLinkDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + private fb; + ruleNodeLinkFormGroup: FormGroup; + link: FcRuleEdge; + labels: { + [label: string]: LinkLabel; + }; + allowCustomLabels: boolean; + sourceRuleChainId: string; + submitted: boolean; + constructor(store: Store, router: Router, data: AddRuleNodeLinkDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + add(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export interface AddRuleNodeDialogData { + ruleNode: FcRuleNode; + ruleChainId: string; + ruleChainType: RuleChainType; +} +export declare class AddRuleNodeDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: AddRuleNodeDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + ruleNodeDetailsComponent: RuleNodeDetailsComponent; + ruleNode: FcRuleNode; + ruleChainId: string; + ruleChainType: RuleChainType; + submitted: boolean; + constructor(store: Store, router: Router, data: AddRuleNodeDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + helpLinkIdForRuleNodeType(): string; + cancel(): void; + add(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export interface CreateNestedRuleChainDialogData { + ruleChainType: RuleChainType; +} +export declare class CreateNestedRuleChainDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: CreateNestedRuleChainDialogData; + private errorStateMatcher; + private fb; + private ruleChainService; + dialogRef: MatDialogRef; + createNestedRuleChainFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: CreateNestedRuleChainDialogData, errorStateMatcher: ErrorStateMatcher, fb: FormBuilder, ruleChainService: RuleChainService, dialogRef: MatDialogRef); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + add(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/rulechain/rulechain-page.models.d.ts b/src/app/modules/home/pages/rulechain/rulechain-page.models.d.ts new file mode 100644 index 00000000..9df3ca31 --- /dev/null +++ b/src/app/modules/home/pages/rulechain/rulechain-page.models.d.ts @@ -0,0 +1,25 @@ +import { FcModel } from 'ngx-flowchart'; +import { FcRuleEdge, FcRuleNode, FcRuleNodeType } from '@shared/models/rule-node.models'; +export interface FcRuleNodeTypeModel extends FcModel { + nodes: Array; +} +export interface FcRuleNodeModel extends FcModel { + nodes: Array; + edges: Array; +} +export interface RuleChainMenuItem { + action?: ($event: MouseEvent) => void; + enabled?: boolean; + value?: string; + icon?: string; + shortcut?: string; + divider?: boolean; +} +export interface RuleChainMenuContextInfo { + headerClass: string; + icon: string; + iconUrl?: string; + title: string; + subtitle: string; + menuItems: RuleChainMenuItem[]; +} diff --git a/src/app/modules/home/pages/rulechain/rulechain-routing.module.d.ts b/src/app/modules/home/pages/rulechain/rulechain-routing.module.d.ts new file mode 100644 index 00000000..b1a38661 --- /dev/null +++ b/src/app/modules/home/pages/rulechain/rulechain-routing.module.d.ts @@ -0,0 +1,54 @@ +import { ActivatedRouteSnapshot, CanActivate, Resolve, Router, RouterStateSnapshot, UrlTree } from '@angular/router'; +import { Observable } from 'rxjs'; +import { BreadCrumbLabelFunction } from '@shared/components/breadcrumb'; +import { RuleChainMetaData, RuleChain } from '@shared/models/rule-chain.models'; +import { RuleChainService } from '@core/http/rule-chain.service'; +import { RuleChainPageComponent } from '@home/pages/rulechain/rulechain-page.component'; +import { RuleNodeComponentDescriptor } from '@shared/models/rule-node.models'; +import { ItemBufferService } from '@core/public-api'; +import { IModulesMap } from '@modules/common/modules-map.models'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class RuleChainResolver implements Resolve { + private ruleChainService; + constructor(ruleChainService: RuleChainService); + resolve(route: ActivatedRouteSnapshot): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare class RuleChainMetaDataResolver implements Resolve { + private ruleChainService; + constructor(ruleChainService: RuleChainService); + resolve(route: ActivatedRouteSnapshot): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare class RuleNodeComponentsResolver implements Resolve> { + private ruleChainService; + private modulesMap; + constructor(ruleChainService: RuleChainService, modulesMap: IModulesMap); + resolve(route: ActivatedRouteSnapshot): Observable>; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare class TooltipsterResolver implements Resolve { + constructor(); + resolve(route: ActivatedRouteSnapshot): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare class RuleChainImportGuard implements CanActivate { + private itembuffer; + private router; + constructor(itembuffer: ItemBufferService, router: Router); + canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable | Promise | boolean | UrlTree; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare const ruleChainBreadcumbLabelFunction: BreadCrumbLabelFunction; +export declare const importRuleChainBreadcumbLabelFunction: BreadCrumbLabelFunction; +export declare class RuleChainRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/rulechain/rulechain-tabs.component.d.ts b/src/app/modules/home/pages/rulechain/rulechain-tabs.component.d.ts new file mode 100644 index 00000000..6792dc82 --- /dev/null +++ b/src/app/modules/home/pages/rulechain/rulechain-tabs.component.d.ts @@ -0,0 +1,12 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTabsComponent } from '../../components/entity/entity-tabs.component'; +import { RuleChain } from '@shared/models/rule-chain.models'; +import * as i0 from "@angular/core"; +export declare class RuleChainTabsComponent extends EntityTabsComponent { + protected store: Store; + constructor(store: Store); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/rulechain/rulechain.component.d.ts b/src/app/modules/home/pages/rulechain/rulechain.component.d.ts new file mode 100644 index 00000000..ea3e6182 --- /dev/null +++ b/src/app/modules/home/pages/rulechain/rulechain.component.d.ts @@ -0,0 +1,29 @@ +import { ChangeDetectorRef } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityComponent } from '../../components/entity/entity.component'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { TranslateService } from '@ngx-translate/core'; +import { RuleChain } from '@shared/models/rule-chain.models'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import * as i0 from "@angular/core"; +export declare class RuleChainComponent extends EntityComponent { + protected store: Store; + protected translate: TranslateService; + protected entityValue: RuleChain; + protected entitiesTableConfigValue: EntityTableConfig; + fb: FormBuilder; + protected cd: ChangeDetectorRef; + ruleChainScope: 'tenant' | 'edges' | 'edge'; + constructor(store: Store, translate: TranslateService, entityValue: RuleChain, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef); + ngOnInit(): void; + hideDelete(): boolean; + buildForm(entity: RuleChain): FormGroup; + updateForm(entity: RuleChain): void; + onRuleChainIdCopied($event: any): void; + isEdgeRootRuleChain(): boolean; + isAutoAssignToEdgeRuleChain(): any; + isNotAutoAssignToEdgeRuleChain(): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/rulechain/rulechain.module.d.ts b/src/app/modules/home/pages/rulechain/rulechain.module.d.ts new file mode 100644 index 00000000..0395bad9 --- /dev/null +++ b/src/app/modules/home/pages/rulechain/rulechain.module.d.ts @@ -0,0 +1,18 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@modules/home/pages/rulechain/rulechain.component"; +import * as i2 from "@home/pages/rulechain/rulechain-tabs.component"; +import * as i3 from "./rulechain-page.component"; +import * as i4 from "@home/pages/rulechain/rulenode.component"; +import * as i5 from "./rule-node-details.component"; +import * as i6 from "./rule-node-config.component"; +import * as i7 from "@home/pages/rulechain/link-labels.component"; +import * as i8 from "./rule-node-link.component"; +import * as i9 from "@angular/common"; +import * as i10 from "@shared/shared.module"; +import * as i11 from "@modules/home/components/home-components.module"; +import * as i12 from "@modules/home/pages/rulechain/rulechain-routing.module"; +export declare class RuleChainModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.d.ts b/src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.d.ts new file mode 100644 index 00000000..aa1dce85 --- /dev/null +++ b/src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.d.ts @@ -0,0 +1,57 @@ +import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router'; +import { CellActionDescriptor, EntityColumn, EntityTableConfig, GroupActionDescriptor, HeaderActionDescriptor } from '@home/models/entity/entities-table-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { RuleChain } from '@shared/models/rule-chain.models'; +import { RuleChainService } from '@core/http/rule-chain.service'; +import { DialogService } from '@core/services/dialog.service'; +import { ImportExportService } from '@home/components/import-export/import-export.service'; +import { ItemBufferService } from '@core/services/item-buffer.service'; +import { EdgeService } from '@core/http/edge.service'; +import { Observable } from 'rxjs'; +import { MatDialog } from '@angular/material/dialog'; +import { PageLink } from '@shared/models/page/page-link'; +import { Edge } from '@shared/models/edge.models'; +import { PageData } from '@shared/models/page/page-data'; +import * as i0 from "@angular/core"; +export declare class RuleChainsTableConfigResolver implements Resolve> { + private ruleChainService; + private dialogService; + private dialog; + private importExport; + private itembuffer; + private edgeService; + private translate; + private datePipe; + private router; + private readonly config; + private edge; + constructor(ruleChainService: RuleChainService, dialogService: DialogService, dialog: MatDialog, importExport: ImportExportService, itembuffer: ItemBufferService, edgeService: EdgeService, translate: TranslateService, datePipe: DatePipe, router: Router); + resolve(route: ActivatedRouteSnapshot): EntityTableConfig; + configureEntityTableColumns(ruleChainScope: string): Array>; + configureAddActions(ruleChainScope: string): Array; + configureEntityFunctions(ruleChainScope: string, edgeId: string): (pageLink: any) => Observable>; + configureTableTitle(ruleChainScope: string, edge: Edge): string; + configureGroupActions(ruleChainScope: string): Array>; + configureCellActions(ruleChainScope: string): Array>; + importRuleChain($event: Event): void; + openRuleChain($event: Event, ruleChain: RuleChain): void; + saveRuleChain(ruleChain: RuleChain): Observable; + exportRuleChain($event: Event, ruleChain: RuleChain): void; + setRootRuleChain($event: Event, ruleChain: RuleChain): void; + onRuleChainAction(action: EntityAction): boolean; + setEdgeTemplateRootRuleChain($event: Event, ruleChain: RuleChain): void; + addRuleChainsToEdge($event: Event): void; + unassignFromEdge($event: Event, ruleChain: RuleChain): void; + unassignRuleChainsFromEdge($event: Event, ruleChains: Array): void; + setAutoAssignToEdgeRuleChain($event: Event, ruleChain: RuleChain): void; + unsetAutoAssignToEdgeRuleChain($event: Event, ruleChain: RuleChain): void; + isNonRootRuleChain(ruleChain: RuleChain): boolean; + isAutoAssignToEdgeRuleChain(ruleChain: any): any; + isNotAutoAssignToEdgeRuleChain(ruleChain: any): boolean; + fetchRuleChains(pageLink: PageLink): Observable>; + fetchEdgeRuleChains(pageLink: PageLink): Observable>; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/pages/rulechain/rulenode.component.d.ts b/src/app/modules/home/pages/rulechain/rulenode.component.d.ts new file mode 100644 index 00000000..07bd6018 --- /dev/null +++ b/src/app/modules/home/pages/rulechain/rulenode.component.d.ts @@ -0,0 +1,20 @@ +import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser'; +import { OnInit } from '@angular/core'; +import { FcNodeComponent } from 'ngx-flowchart'; +import { FcRuleNode, RuleNodeType } from '@shared/models/rule-node.models'; +import { Router } from '@angular/router'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class RuleNodeComponent extends FcNodeComponent implements OnInit { + private sanitizer; + private translate; + private router; + iconUrl: SafeResourceUrl; + RuleNodeType: typeof RuleNodeType; + constructor(sanitizer: DomSanitizer, translate: TranslateService, router: Router); + ngOnInit(): void; + openRuleChain($event: Event, node: FcRuleNode): void; + displayOpenRuleChainTooltip($event: MouseEvent, node: FcRuleNode): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/tenant-profile/tenant-profile-routing.module.d.ts b/src/app/modules/home/pages/tenant-profile/tenant-profile-routing.module.d.ts new file mode 100644 index 00000000..b35e74d3 --- /dev/null +++ b/src/app/modules/home/pages/tenant-profile/tenant-profile-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class TenantProfileRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/tenant-profile/tenant-profile-tabs.component.d.ts b/src/app/modules/home/pages/tenant-profile/tenant-profile-tabs.component.d.ts new file mode 100644 index 00000000..bd1ae695 --- /dev/null +++ b/src/app/modules/home/pages/tenant-profile/tenant-profile-tabs.component.d.ts @@ -0,0 +1,12 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTabsComponent } from '../../components/entity/entity-tabs.component'; +import { TenantProfile } from '@shared/models/tenant.model'; +import * as i0 from "@angular/core"; +export declare class TenantProfileTabsComponent extends EntityTabsComponent { + protected store: Store; + constructor(store: Store); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/tenant-profile/tenant-profile.module.d.ts b/src/app/modules/home/pages/tenant-profile/tenant-profile.module.d.ts new file mode 100644 index 00000000..41f2c63e --- /dev/null +++ b/src/app/modules/home/pages/tenant-profile/tenant-profile.module.d.ts @@ -0,0 +1,11 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./tenant-profile-tabs.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@shared/shared.module"; +import * as i4 from "@modules/home/components/home-components.module"; +import * as i5 from "./tenant-profile-routing.module"; +export declare class TenantProfileModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/tenant-profile/tenant-profiles-table-config.resolver.d.ts b/src/app/modules/home/pages/tenant-profile/tenant-profiles-table-config.resolver.d.ts new file mode 100644 index 00000000..02db8fec --- /dev/null +++ b/src/app/modules/home/pages/tenant-profile/tenant-profiles-table-config.resolver.d.ts @@ -0,0 +1,29 @@ +import { Resolve, Router } from '@angular/router'; +import { TenantProfile } from '@shared/models/tenant.model'; +import { EntityTableConfig, HeaderActionDescriptor } from '@home/models/entity/entities-table-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { TenantProfileService } from '@core/http/tenant-profile.service'; +import { DialogService } from '@core/services/dialog.service'; +import { ImportExportService } from '@home/components/import-export/import-export.service'; +import * as i0 from "@angular/core"; +export declare class TenantProfilesTableConfigResolver implements Resolve> { + private tenantProfileService; + private importExport; + private translate; + private datePipe; + private router; + private dialogService; + private readonly config; + constructor(tenantProfileService: TenantProfileService, importExport: ImportExportService, translate: TranslateService, datePipe: DatePipe, router: Router, dialogService: DialogService); + resolve(): EntityTableConfig; + configureAddActions(): Array; + private openTenantProfile; + setDefaultTenantProfile($event: Event, tenantProfile: TenantProfile): void; + importTenantProfile($event: Event): void; + exportTenantProfile($event: Event, tenantProfile: TenantProfile): void; + onTenantProfileAction(action: EntityAction): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/pages/tenant/tenant-routing.module.d.ts b/src/app/modules/home/pages/tenant/tenant-routing.module.d.ts new file mode 100644 index 00000000..e57cc7be --- /dev/null +++ b/src/app/modules/home/pages/tenant/tenant-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class TenantRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/tenant/tenant-tabs.component.d.ts b/src/app/modules/home/pages/tenant/tenant-tabs.component.d.ts new file mode 100644 index 00000000..45fad48b --- /dev/null +++ b/src/app/modules/home/pages/tenant/tenant-tabs.component.d.ts @@ -0,0 +1,12 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTabsComponent } from '../../components/entity/entity-tabs.component'; +import { TenantInfo } from '@shared/models/tenant.model'; +import * as i0 from "@angular/core"; +export declare class TenantTabsComponent extends EntityTabsComponent { + protected store: Store; + constructor(store: Store); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/tenant/tenant.component.d.ts b/src/app/modules/home/pages/tenant/tenant.component.d.ts new file mode 100644 index 00000000..2f2edea4 --- /dev/null +++ b/src/app/modules/home/pages/tenant/tenant.component.d.ts @@ -0,0 +1,26 @@ +import { ChangeDetectorRef } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { Tenant, TenantInfo } from '@app/shared/models/tenant.model'; +import { TranslateService } from '@ngx-translate/core'; +import { ContactBasedComponent } from '../../components/entity/contact-based.component'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import * as i0 from "@angular/core"; +export declare class TenantComponent extends ContactBasedComponent { + protected store: Store; + protected translate: TranslateService; + protected entityValue: TenantInfo; + protected entitiesTableConfigValue: EntityTableConfig; + protected fb: FormBuilder; + protected cd: ChangeDetectorRef; + constructor(store: Store, translate: TranslateService, entityValue: TenantInfo, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef); + hideDelete(): boolean; + buildEntityForm(entity: TenantInfo): FormGroup; + updateEntityForm(entity: Tenant): void; + updateFormState(): void; + onTenantIdCopied(event: any): void; + onTenantProfileUpdated(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/tenant/tenant.module.d.ts b/src/app/modules/home/pages/tenant/tenant.module.d.ts new file mode 100644 index 00000000..b98df3ec --- /dev/null +++ b/src/app/modules/home/pages/tenant/tenant.module.d.ts @@ -0,0 +1,12 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@modules/home/pages/tenant/tenant.component"; +import * as i2 from "@home/pages/tenant/tenant-tabs.component"; +import * as i3 from "@angular/common"; +import * as i4 from "@shared/shared.module"; +import * as i5 from "@modules/home/components/home-components.module"; +import * as i6 from "@modules/home/pages/tenant/tenant-routing.module"; +export declare class TenantModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/tenant/tenants-table-config.resolver.d.ts b/src/app/modules/home/pages/tenant/tenants-table-config.resolver.d.ts new file mode 100644 index 00000000..457023d8 --- /dev/null +++ b/src/app/modules/home/pages/tenant/tenants-table-config.resolver.d.ts @@ -0,0 +1,22 @@ +import { Resolve, Router } from '@angular/router'; +import { TenantInfo } from '@shared/models/tenant.model'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { TenantService } from '@core/http/tenant.service'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import * as i0 from "@angular/core"; +export declare class TenantsTableConfigResolver implements Resolve> { + private tenantService; + private translate; + private datePipe; + private router; + private readonly config; + constructor(tenantService: TenantService, translate: TranslateService, datePipe: DatePipe, router: Router); + resolve(): EntityTableConfig; + private openTenant; + manageTenantAdmins($event: Event, tenant: TenantInfo): void; + onTenantAction(action: EntityAction, config: EntityTableConfig): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/pages/user/activation-link-dialog.component.d.ts b/src/app/modules/home/pages/user/activation-link-dialog.component.d.ts new file mode 100644 index 00000000..2e6682fb --- /dev/null +++ b/src/app/modules/home/pages/user/activation-link-dialog.component.d.ts @@ -0,0 +1,25 @@ +import { OnInit } from '@angular/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import * as i0 from "@angular/core"; +export interface ActivationLinkDialogData { + activationLink: string; +} +export declare class ActivationLinkDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + data: ActivationLinkDialogData; + dialogRef: MatDialogRef; + private translate; + activationLink: string; + constructor(store: Store, router: Router, data: ActivationLinkDialogData, dialogRef: MatDialogRef, translate: TranslateService); + ngOnInit(): void; + close(): void; + onActivationLinkCopied(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/user/add-user-dialog.component.d.ts b/src/app/modules/home/pages/user/add-user-dialog.component.d.ts new file mode 100644 index 00000000..5089df65 --- /dev/null +++ b/src/app/modules/home/pages/user/add-user-dialog.component.d.ts @@ -0,0 +1,40 @@ +import { OnInit } from '@angular/core'; +import { MatDialog, MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormGroup } from '@angular/forms'; +import { UserComponent } from '@modules/home/pages/user/user.component'; +import { Authority } from '@shared/models/authority.enum'; +import { ActivationMethod, User } from '@shared/models/user.model'; +import { UserService } from '@core/http/user.service'; +import { Observable } from 'rxjs'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import * as i0 from "@angular/core"; +export interface AddUserDialogData { + tenantId: string; + customerId: string; + authority: Authority; +} +export declare class AddUserDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + data: AddUserDialogData; + dialogRef: MatDialogRef; + private userService; + private dialog; + detailsForm: FormGroup; + user: User; + activationMethods: string[]; + activationMethodEnum: typeof ActivationMethod; + activationMethodTranslations: Map; + activationMethod: ActivationMethod; + userComponent: UserComponent; + constructor(store: Store, router: Router, data: AddUserDialogData, dialogRef: MatDialogRef, userService: UserService, dialog: MatDialog); + ngOnInit(): void; + cancel(): void; + add(): void; + displayActivationLink(activationLink: string): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/user/user-routing.module.d.ts b/src/app/modules/home/pages/user/user-routing.module.d.ts new file mode 100644 index 00000000..4d79b2df --- /dev/null +++ b/src/app/modules/home/pages/user/user-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class UserRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/user/user-tabs.component.d.ts b/src/app/modules/home/pages/user/user-tabs.component.d.ts new file mode 100644 index 00000000..a218503e --- /dev/null +++ b/src/app/modules/home/pages/user/user-tabs.component.d.ts @@ -0,0 +1,12 @@ +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityTabsComponent } from '../../components/entity/entity-tabs.component'; +import { User } from '@app/shared/models/user.model'; +import * as i0 from "@angular/core"; +export declare class UserTabsComponent extends EntityTabsComponent { + protected store: Store; + constructor(store: Store); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/user/user.component.d.ts b/src/app/modules/home/pages/user/user.component.d.ts new file mode 100644 index 00000000..b7d01ca4 --- /dev/null +++ b/src/app/modules/home/pages/user/user.component.d.ts @@ -0,0 +1,29 @@ +import { ChangeDetectorRef } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityComponent } from '../../components/entity/entity.component'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { User } from '@shared/models/user.model'; +import { Authority } from '@shared/models/authority.enum'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class UserComponent extends EntityComponent { + protected store: Store; + protected entityValue: User; + protected entitiesTableConfigValue: EntityTableConfig; + fb: FormBuilder; + protected cd: ChangeDetectorRef; + protected translate: TranslateService; + authority: typeof Authority; + loginAsUserEnabled$: import("rxjs").Observable; + constructor(store: Store, entityValue: User, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef, translate: TranslateService); + hideDelete(): boolean; + isUserCredentialsEnabled(): boolean; + isUserCredentialPresent(): boolean; + buildForm(entity: User): FormGroup; + updateForm(entity: User): void; + onUserIdCopied($event: any): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/user/user.module.d.ts b/src/app/modules/home/pages/user/user.module.d.ts new file mode 100644 index 00000000..4886579f --- /dev/null +++ b/src/app/modules/home/pages/user/user.module.d.ts @@ -0,0 +1,14 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@modules/home/pages/user/user.component"; +import * as i2 from "@home/pages/user/user-tabs.component"; +import * as i3 from "@modules/home/pages/user/add-user-dialog.component"; +import * as i4 from "@modules/home/pages/user/activation-link-dialog.component"; +import * as i5 from "@angular/common"; +import * as i6 from "@shared/shared.module"; +import * as i7 from "@modules/home/components/home-components.module"; +import * as i8 from "@modules/home/pages/user/user-routing.module"; +export declare class UserModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/user/users-table-config.resolver.d.ts b/src/app/modules/home/pages/user/users-table-config.resolver.d.ts new file mode 100644 index 00000000..96508967 --- /dev/null +++ b/src/app/modules/home/pages/user/users-table-config.resolver.d.ts @@ -0,0 +1,49 @@ +import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { User } from '@shared/models/user.model'; +import { UserService } from '@core/http/user.service'; +import { CustomerService } from '@core/http/customer.service'; +import { Observable } from 'rxjs'; +import { Authority } from '@shared/models/authority.enum'; +import { MatDialog } from '@angular/material/dialog'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { AuthState } from '@core/auth/auth.models'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { AuthService } from '@core/auth/auth.service'; +import { TenantService } from '@app/core/http/tenant.service'; +import * as i0 from "@angular/core"; +export interface UsersTableRouteData { + authority: Authority; +} +export declare class UsersTableConfigResolver implements Resolve> { + private store; + private userService; + private authService; + private tenantService; + private customerService; + private translate; + private datePipe; + private router; + private dialog; + private readonly config; + private tenantId; + private customerId; + private authority; + private authUser; + constructor(store: Store, userService: UserService, authService: AuthService, tenantService: TenantService, customerService: CustomerService, translate: TranslateService, datePipe: DatePipe, router: Router, dialog: MatDialog); + resolve(route: ActivatedRouteSnapshot): Observable>; + updateActionCellDescriptors(auth: AuthState): void; + saveUser(user: User): Observable; + addUser(): Observable; + private openUser; + loginAsUser($event: Event, user: User): void; + displayActivationLink($event: Event, user: User): void; + resendActivation($event: Event, user: User): void; + setUserCredentialsEnabled($event: Event, user: User, userCredentialsEnabled: boolean): void; + onUserAction(action: EntityAction, config: EntityTableConfig): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/home/pages/widget/save-widget-type-as-dialog.component.d.ts b/src/app/modules/home/pages/widget/save-widget-type-as-dialog.component.d.ts new file mode 100644 index 00000000..b9bc5569 --- /dev/null +++ b/src/app/modules/home/pages/widget/save-widget-type-as-dialog.component.d.ts @@ -0,0 +1,27 @@ +import { OnInit } from '@angular/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import * as i0 from "@angular/core"; +export interface SaveWidgetTypeAsDialogResult { + widgetName: string; + bundleId: string; + bundleAlias: string; +} +export declare class SaveWidgetTypeAsDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + dialogRef: MatDialogRef; + fb: FormBuilder; + saveWidgetTypeAsFormGroup: FormGroup; + bundlesScope: string; + constructor(store: Store, router: Router, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + cancel(): void; + saveAs(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/widget/select-widget-type-dialog.component.d.ts b/src/app/modules/home/pages/widget/select-widget-type-dialog.component.d.ts new file mode 100644 index 00000000..ecbb7308 --- /dev/null +++ b/src/app/modules/home/pages/widget/select-widget-type-dialog.component.d.ts @@ -0,0 +1,20 @@ +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Router } from '@angular/router'; +import { widgetType } from '@shared/models/widget.models'; +import * as i0 from "@angular/core"; +export declare class SelectWidgetTypeDialogComponent extends DialogComponent { + protected store: Store; + protected router: Router; + dialogRef: MatDialogRef; + widgetTypes: typeof widgetType; + allWidgetTypes: string[]; + widgetTypesDataMap: Map; + constructor(store: Store, router: Router, dialogRef: MatDialogRef); + cancel(): void; + typeSelected(type: widgetType): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/widget/widget-editor.component.d.ts b/src/app/modules/home/pages/widget/widget-editor.component.d.ts new file mode 100644 index 00000000..d5359ce7 --- /dev/null +++ b/src/app/modules/home/pages/widget/widget-editor.component.d.ts @@ -0,0 +1,115 @@ +/// +import { PageComponent } from '@shared/components/page.component'; +import { ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { WidgetsBundle } from '@shared/models/widgets-bundle.model'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { WidgetService } from '@core/http/widget.service'; +import { WidgetInfo } from '@home/models/widget-component.models'; +import { widgetType, WidgetTypeDetails } from '@shared/models/widget.models'; +import { ActivatedRoute, Router } from '@angular/router'; +import { HasDirtyFlag } from '@core/guards/confirm-on-exit.guard'; +import { AuthUser } from '@shared/models/user.model'; +import { Hotkey } from 'angular2-hotkeys'; +import { TranslateService } from '@ngx-translate/core'; +import { Ace } from 'ace-builds'; +import { CancelAnimationFrame, RafService } from '@core/services/raf.service'; +import { MatDialog } from '@angular/material/dialog'; +import { ResizeObserver } from '@juggle/resize-observer'; +import Timeout = NodeJS.Timeout; +import * as i0 from "@angular/core"; +export declare class WidgetEditorComponent extends PageComponent implements OnInit, OnDestroy, HasDirtyFlag { + protected store: Store; + private window; + private route; + private router; + private widgetService; + private translate; + private raf; + private dialog; + topPanelElmRef: ElementRef; + topLeftPanelElmRef: ElementRef; + topRightPanelElmRef: ElementRef; + bottomPanelElmRef: ElementRef; + javascriptPanelElmRef: ElementRef; + framePanelElmRef: ElementRef; + htmlInputElmRef: ElementRef; + cssInputElmRef: ElementRef; + settingsJsonInputElmRef: ElementRef; + dataKeySettingsJsonInputElmRef: ElementRef; + javascriptInputElmRef: ElementRef; + widgetIFrameElmRef: ElementRef; + iframe: JQuery; + widgetTypes: typeof widgetType; + allWidgetTypes: string[]; + widgetTypesDataMap: Map; + authUser: AuthUser; + isReadOnly: boolean; + widgetsBundle: WidgetsBundle; + widgetTypeDetails: WidgetTypeDetails; + widget: WidgetInfo; + origWidget: WidgetInfo; + isDirty: boolean; + fullscreen: boolean; + htmlFullscreen: boolean; + cssFullscreen: boolean; + jsonSettingsFullscreen: boolean; + jsonDataKeySettingsFullscreen: boolean; + javascriptFullscreen: boolean; + iFrameFullscreen: boolean; + aceEditors: Ace.Editor[]; + editorsResizeCafs: { + [editorId: string]: CancelAnimationFrame; + }; + htmlEditor: Ace.Editor; + cssEditor: Ace.Editor; + jsonSettingsEditor: Ace.Editor; + dataKeyJsonSettingsEditor: Ace.Editor; + jsEditor: Ace.Editor; + aceResize$: ResizeObserver; + onWindowMessageListener: any; + iframeWidgetEditModeInited: boolean; + saveWidgetPending: boolean; + saveWidgetAsPending: boolean; + gotError: boolean; + errorMarkers: number[]; + errorAnnotationId: number; + saveWidgetTimeout: Timeout; + hotKeys: Hotkey[]; + private rxSubscriptions; + constructor(store: Store, window: Window, route: ActivatedRoute, router: Router, widgetService: WidgetService, translate: TranslateService, raf: RafService, dialog: MatDialog); + private init; + ngOnInit(): void; + ngOnDestroy(): void; + private initHotKeys; + private initSplitLayout; + private initAceEditors; + private setAceEditorValues; + private createAceEditor; + private onAceEditorResize; + private onWindowMessage; + private onWidgetEditModeInited; + private onWidgetEditUpdated; + private onWidgetException; + private cleanupJsErrors; + private commitSaveWidget; + private commitSaveWidgetAs; + private setWidgetTypeDetails; + applyWidgetScript(): void; + undoWidget(): void; + saveWidget(): void; + saveWidgetAs(): void; + undoDisabled(): boolean; + saveDisabled(): boolean; + saveAsDisabled(): boolean; + beautifyCss(): void; + beautifyHtml(): void; + beautifyJson(): void; + beautifyDataKeyJson(): void; + beautifyJs(): void; + removeResource(index: number): void; + addResource(): void; + widetTypeChanged(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/widget/widget-editor.models.d.ts b/src/app/modules/home/pages/widget/widget-editor.models.d.ts new file mode 100644 index 00000000..25a11b10 --- /dev/null +++ b/src/app/modules/home/pages/widget/widget-editor.models.d.ts @@ -0,0 +1,2 @@ +import { TbEditorCompleter } from '@shared/models/ace/completion.models'; +export declare const widgetEditorCompleter: TbEditorCompleter; diff --git a/src/app/modules/home/pages/widget/widget-library-routing.module.d.ts b/src/app/modules/home/pages/widget/widget-library-routing.module.d.ts new file mode 100644 index 00000000..52fd10d6 --- /dev/null +++ b/src/app/modules/home/pages/widget/widget-library-routing.module.d.ts @@ -0,0 +1,51 @@ +import { ActivatedRouteSnapshot, Resolve, Routes } from '@angular/router'; +import { BreadCrumbLabelFunction } from '@shared/components/breadcrumb'; +import { Observable } from 'rxjs'; +import { WidgetsBundle } from '@shared/models/widgets-bundle.model'; +import { WidgetService } from '@core/http/widget.service'; +import { WidgetEditorComponent } from '@home/pages/widget/widget-editor.component'; +import { WidgetInfo } from '@home/models/widget-component.models'; +import { WidgetTypeDetails } from '@app/shared/models/widget.models'; +import { WidgetsData } from '@home/models/dashboard-component.models'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export interface WidgetEditorData { + widgetTypeDetails: WidgetTypeDetails; + widget: WidgetInfo; +} +export declare class WidgetsBundleResolver implements Resolve { + private widgetsService; + constructor(widgetsService: WidgetService); + resolve(route: ActivatedRouteSnapshot): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare class WidgetsTypesDataResolver implements Resolve { + private widgetsService; + constructor(widgetsService: WidgetService); + resolve(route: ActivatedRouteSnapshot): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare class WidgetEditorDataResolver implements Resolve { + private widgetsService; + constructor(widgetsService: WidgetService); + resolve(route: ActivatedRouteSnapshot): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare class WidgetEditorAddDataResolver implements Resolve { + private widgetsService; + constructor(widgetsService: WidgetService); + resolve(route: ActivatedRouteSnapshot): Observable; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} +export declare const widgetTypesBreadcumbLabelFunction: BreadCrumbLabelFunction; +export declare const widgetEditorBreadcumbLabelFunction: BreadCrumbLabelFunction; +export declare const routes: Routes; +export declare class WidgetLibraryRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/widget/widget-library.component.d.ts b/src/app/modules/home/pages/widget/widget-library.component.d.ts new file mode 100644 index 00000000..0cc5b0d1 --- /dev/null +++ b/src/app/modules/home/pages/widget/widget-library.component.d.ts @@ -0,0 +1,49 @@ +import { OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import { AuthUser } from '@shared/models/user.model'; +import { WidgetsBundle } from '@shared/models/widgets-bundle.model'; +import { ActivatedRoute, Router } from '@angular/router'; +import { Widget } from '@app/shared/models/widget.models'; +import { WidgetService } from '@core/http/widget.service'; +import { DialogService } from '@core/services/dialog.service'; +import { FooterFabButtons } from '@app/shared/components/footer-fab-buttons.component'; +import { DashboardCallbacks, IDashboardComponent, WidgetsData } from '@home/models/dashboard-component.models'; +import { IAliasController } from '@app/core/api/widget-api.models'; +import { MatDialog } from '@angular/material/dialog'; +import { TranslateService } from '@ngx-translate/core'; +import { ImportExportService } from '@home/components/import-export/import-export.service'; +import { UtilsService } from '@core/services/utils.service'; +import { EntityService } from '@core/http/entity.service'; +import * as i0 from "@angular/core"; +export declare class WidgetLibraryComponent extends PageComponent implements OnInit { + protected store: Store; + private route; + private router; + private widgetService; + private dialogService; + private importExport; + private dialog; + private translate; + private utils; + private entityService; + authUser: AuthUser; + isReadOnly: boolean; + widgetsBundle: WidgetsBundle; + widgetsData: WidgetsData; + footerFabButtons: FooterFabButtons; + dashboardCallbacks: DashboardCallbacks; + aliasController: IAliasController; + dashboard: IDashboardComponent; + constructor(store: Store, route: ActivatedRoute, router: Router, widgetService: WidgetService, dialogService: DialogService, importExport: ImportExportService, dialog: MatDialog, translate: TranslateService, utils: UtilsService, entityService: EntityService); + ngOnInit(): void; + addWidgetType($event: Event): void; + importWidgetType($event: Event): void; + private reload; + openWidgetType($event: Event, widget?: Widget): void; + exportWidgetType($event: Event, widget: Widget): void; + removeWidgetType($event: Event, widget: Widget): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/widget/widget-library.module.d.ts b/src/app/modules/home/pages/widget/widget-library.module.d.ts new file mode 100644 index 00000000..146e0a69 --- /dev/null +++ b/src/app/modules/home/pages/widget/widget-library.module.d.ts @@ -0,0 +1,15 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@modules/home/pages/widget/widgets-bundle.component"; +import * as i2 from "./widget-library.component"; +import * as i3 from "@home/pages/widget/widget-editor.component"; +import * as i4 from "@home/pages/widget/select-widget-type-dialog.component"; +import * as i5 from "./save-widget-type-as-dialog.component"; +import * as i6 from "@angular/common"; +import * as i7 from "@shared/shared.module"; +import * as i8 from "@modules/home/components/home-components.module"; +import * as i9 from "@modules/home/pages/widget/widget-library-routing.module"; +export declare class WidgetLibraryModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/home/pages/widget/widgets-bundle.component.d.ts b/src/app/modules/home/pages/widget/widgets-bundle.component.d.ts new file mode 100644 index 00000000..f7617a28 --- /dev/null +++ b/src/app/modules/home/pages/widget/widgets-bundle.component.d.ts @@ -0,0 +1,21 @@ +import { ChangeDetectorRef } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { EntityComponent } from '../../components/entity/entity.component'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { WidgetsBundle } from '@shared/models/widgets-bundle.model'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import * as i0 from "@angular/core"; +export declare class WidgetsBundleComponent extends EntityComponent { + protected store: Store; + protected entityValue: WidgetsBundle; + protected entitiesTableConfigValue: EntityTableConfig; + fb: FormBuilder; + protected cd: ChangeDetectorRef; + constructor(store: Store, entityValue: WidgetsBundle, entitiesTableConfigValue: EntityTableConfig, fb: FormBuilder, cd: ChangeDetectorRef); + hideDelete(): boolean; + buildForm(entity: WidgetsBundle): FormGroup; + updateForm(entity: WidgetsBundle): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/home/pages/widget/widgets-bundles-table-config.resolver.d.ts b/src/app/modules/home/pages/widget/widgets-bundles-table-config.resolver.d.ts new file mode 100644 index 00000000..49502270 --- /dev/null +++ b/src/app/modules/home/pages/widget/widgets-bundles-table-config.resolver.d.ts @@ -0,0 +1,32 @@ +import { Resolve, Router } from '@angular/router'; +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; +import { TranslateService } from '@ngx-translate/core'; +import { DatePipe } from '@angular/common'; +import { EntityAction } from '@home/models/entity/entity-component.models'; +import { WidgetsBundle } from '@shared/models/widgets-bundle.model'; +import { WidgetService } from '@app/core/http/widget.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Authority } from '@shared/models/authority.enum'; +import { DialogService } from '@core/services/dialog.service'; +import { ImportExportService } from '@home/components/import-export/import-export.service'; +import * as i0 from "@angular/core"; +export declare class WidgetsBundlesTableConfigResolver implements Resolve> { + private store; + private dialogService; + private widgetsService; + private translate; + private importExport; + private datePipe; + private router; + private readonly config; + constructor(store: Store, dialogService: DialogService, widgetsService: WidgetService, translate: TranslateService, importExport: ImportExportService, datePipe: DatePipe, router: Router); + resolve(): EntityTableConfig; + isWidgetsBundleEditable(widgetsBundle: WidgetsBundle, authority: Authority): boolean; + importWidgetsBundle($event: Event): void; + openWidgetsBundle($event: Event, widgetsBundle: WidgetsBundle): void; + exportWidgetsBundle($event: Event, widgetsBundle: WidgetsBundle): void; + onWidgetsBundleAction(action: EntityAction): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/modules/login/login-routing.module.d.ts b/src/app/modules/login/login-routing.module.d.ts new file mode 100644 index 00000000..0ae6a411 --- /dev/null +++ b/src/app/modules/login/login-routing.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "@angular/router"; +export declare class LoginRoutingModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/login/login.module.d.ts b/src/app/modules/login/login.module.d.ts new file mode 100644 index 00000000..f516750e --- /dev/null +++ b/src/app/modules/login/login.module.d.ts @@ -0,0 +1,13 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./pages/login/login.component"; +import * as i2 from "@modules/login/pages/login/reset-password-request.component"; +import * as i3 from "@modules/login/pages/login/reset-password.component"; +import * as i4 from "@modules/login/pages/login/create-password.component"; +import * as i5 from "@angular/common"; +import * as i6 from "@app/shared/shared.module"; +import * as i7 from "./login-routing.module"; +export declare class LoginModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/app/modules/login/pages/login/create-password.component.d.ts b/src/app/modules/login/pages/login/create-password.component.d.ts new file mode 100644 index 00000000..107fad20 --- /dev/null +++ b/src/app/modules/login/pages/login/create-password.component.d.ts @@ -0,0 +1,26 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { AuthService } from '@core/auth/auth.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import { FormBuilder } from '@angular/forms'; +import { TranslateService } from '@ngx-translate/core'; +import { ActivatedRoute } from '@angular/router'; +import { Subscription } from 'rxjs'; +import * as i0 from "@angular/core"; +export declare class CreatePasswordComponent extends PageComponent implements OnInit, OnDestroy { + protected store: Store; + private route; + private authService; + private translate; + fb: FormBuilder; + activateToken: string; + sub: Subscription; + createPassword: import("@angular/forms").FormGroup; + constructor(store: Store, route: ActivatedRoute, authService: AuthService, translate: TranslateService, fb: FormBuilder); + ngOnInit(): void; + ngOnDestroy(): void; + onCreatePassword(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/login/pages/login/login.component.d.ts b/src/app/modules/login/pages/login/login.component.d.ts new file mode 100644 index 00000000..90ac8dea --- /dev/null +++ b/src/app/modules/login/pages/login/login.component.d.ts @@ -0,0 +1,22 @@ +import { OnInit } from '@angular/core'; +import { AuthService } from '@core/auth/auth.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import { FormBuilder } from '@angular/forms'; +import { Router } from '@angular/router'; +import { OAuth2ClientInfo } from '@shared/models/oauth2.models'; +import * as i0 from "@angular/core"; +export declare class LoginComponent extends PageComponent implements OnInit { + protected store: Store; + private authService; + fb: FormBuilder; + private router; + loginFormGroup: import("@angular/forms").FormGroup; + oauth2Clients: Array; + constructor(store: Store, authService: AuthService, fb: FormBuilder, router: Router); + ngOnInit(): void; + login(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/login/pages/login/reset-password-request.component.d.ts b/src/app/modules/login/pages/login/reset-password-request.component.d.ts new file mode 100644 index 00000000..e17dd070 --- /dev/null +++ b/src/app/modules/login/pages/login/reset-password-request.component.d.ts @@ -0,0 +1,22 @@ +import { OnInit } from '@angular/core'; +import { AuthService } from '@core/auth/auth.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import { FormBuilder } from '@angular/forms'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class ResetPasswordRequestComponent extends PageComponent implements OnInit { + protected store: Store; + private authService; + private translate; + fb: FormBuilder; + clicked: boolean; + requestPasswordRequest: import("@angular/forms").FormGroup; + constructor(store: Store, authService: AuthService, translate: TranslateService, fb: FormBuilder); + ngOnInit(): void; + disableInputs(): void; + sendResetPasswordLink(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/modules/login/pages/login/reset-password.component.d.ts b/src/app/modules/login/pages/login/reset-password.component.d.ts new file mode 100644 index 00000000..56034d35 --- /dev/null +++ b/src/app/modules/login/pages/login/reset-password.component.d.ts @@ -0,0 +1,27 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { AuthService } from '@core/auth/auth.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { PageComponent } from '@shared/components/page.component'; +import { FormBuilder } from '@angular/forms'; +import { TranslateService } from '@ngx-translate/core'; +import { ActivatedRoute } from '@angular/router'; +import { Subscription } from 'rxjs'; +import * as i0 from "@angular/core"; +export declare class ResetPasswordComponent extends PageComponent implements OnInit, OnDestroy { + protected store: Store; + private route; + private authService; + private translate; + fb: FormBuilder; + isExpiredPassword: boolean; + resetToken: string; + sub: Subscription; + resetPassword: import("@angular/forms").FormGroup; + constructor(store: Store, route: ActivatedRoute, authService: AuthService, translate: TranslateService, fb: FormBuilder); + ngOnInit(): void; + ngOnDestroy(): void; + onResetPassword(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/animations/speed-dial-fab.animations.d.ts b/src/app/shared/animations/speed-dial-fab.animations.d.ts new file mode 100644 index 00000000..3bd80fb8 --- /dev/null +++ b/src/app/shared/animations/speed-dial-fab.animations.d.ts @@ -0,0 +1 @@ +export declare const speedDialFabAnimations: import("@angular/animations").AnimationTriggerMetadata[]; diff --git a/src/app/shared/components/breadcrumb.component.d.ts b/src/app/shared/components/breadcrumb.component.d.ts new file mode 100644 index 00000000..17c58705 --- /dev/null +++ b/src/app/shared/components/breadcrumb.component.d.ts @@ -0,0 +1,27 @@ +import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core'; +import { Subject } from 'rxjs'; +import { BreadCrumb } from './breadcrumb'; +import { ActivatedRoute, ActivatedRouteSnapshot, Router } from '@angular/router'; +import { TranslateService } from '@ngx-translate/core'; +import { BroadcastService } from '@core/services/broadcast.service'; +import * as i0 from "@angular/core"; +export declare class BreadcrumbComponent implements OnInit, OnDestroy { + private router; + private activatedRoute; + private broadcast; + private cd; + private translate; + activeComponentValue: any; + set activeComponent(activeComponent: any); + breadcrumbs$: Subject>; + routerEventsSubscription: import("rxjs").Subscription; + lastBreadcrumb$: import("rxjs").Observable; + constructor(router: Router, activatedRoute: ActivatedRoute, broadcast: BroadcastService, cd: ChangeDetectorRef, translate: TranslateService); + ngOnInit(): void; + ngOnDestroy(): void; + private lastChild; + buildBreadCrumbs(route: ActivatedRouteSnapshot, breadcrumbs?: Array, lastChild?: ActivatedRouteSnapshot): Array; + trackByBreadcrumbs(index: number, breadcrumb: BreadCrumb): string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/breadcrumb.d.ts b/src/app/shared/components/breadcrumb.d.ts new file mode 100644 index 00000000..f469018f --- /dev/null +++ b/src/app/shared/components/breadcrumb.d.ts @@ -0,0 +1,19 @@ +import { ActivatedRouteSnapshot, Params } from '@angular/router'; +import { TranslateService } from '@ngx-translate/core'; +import { HasUUID } from '@shared/models/id/has-uuid'; +export interface BreadCrumb extends HasUUID { + label: string; + labelFunction?: () => string; + ignoreTranslate: boolean; + icon: string; + isMdiIcon: boolean; + link: any[]; + queryParams: Params; +} +export declare type BreadCrumbLabelFunction = (route: ActivatedRouteSnapshot, translate: TranslateService, component: C, data?: any) => string; +export interface BreadCrumbConfig { + labelFunction: BreadCrumbLabelFunction; + label: string; + icon: string; + skip: boolean; +} diff --git a/src/app/shared/components/button/copy-button.component.d.ts b/src/app/shared/components/button/copy-button.component.d.ts new file mode 100644 index 00000000..94aa60aa --- /dev/null +++ b/src/app/shared/components/button/copy-button.component.d.ts @@ -0,0 +1,29 @@ +import { ChangeDetectorRef, EventEmitter } from '@angular/core'; +import { ClipboardService } from 'ngx-clipboard'; +import { TooltipPosition } from '@angular/material/tooltip'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class CopyButtonComponent { + private clipboardService; + private translate; + private cd; + private timer; + copied: boolean; + copyText: string; + disabled: boolean; + mdiIcon: string; + icon: string; + tooltipText: string; + tooltipPosition: TooltipPosition; + style: { + [key: string]: any; + }; + color: string; + successCopied: EventEmitter; + constructor(clipboardService: ClipboardService, translate: TranslateService, cd: ChangeDetectorRef); + copy($event: Event): void; + get matTooltipText(): string; + get matTooltipPosition(): TooltipPosition; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/button/toggle-password.component.d.ts b/src/app/shared/components/button/toggle-password.component.d.ts new file mode 100644 index 00000000..d19cb24c --- /dev/null +++ b/src/app/shared/components/button/toggle-password.component.d.ts @@ -0,0 +1,13 @@ +import { AfterViewInit, ElementRef } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class TogglePasswordComponent implements AfterViewInit { + private hostElement; + showPassword: boolean; + hideToggle: boolean; + private input; + constructor(hostElement: ElementRef); + togglePassword($event: Event): void; + ngAfterViewInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/cheatsheet.component.d.ts b/src/app/shared/components/cheatsheet.component.d.ts new file mode 100644 index 00000000..745383ce --- /dev/null +++ b/src/app/shared/components/cheatsheet.component.d.ts @@ -0,0 +1,19 @@ +import { ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { Hotkey, HotkeysService } from 'angular2-hotkeys'; +import * as i0 from "@angular/core"; +export declare class TbCheatSheetComponent implements OnInit, OnDestroy { + private elementRef; + private hotkeysService; + helpVisible: boolean; + title: string; + hotkeys: Hotkey[]; + hotkeysList: Hotkey[]; + private mousetrap; + constructor(elementRef: ElementRef, hotkeysService: HotkeysService); + ngOnInit(): void; + setHotKeys(hotkeys: Hotkey[]): void; + toggleCheatSheet(): void; + ngOnDestroy(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/circular-progress.directive.d.ts b/src/app/shared/components/circular-progress.directive.d.ts new file mode 100644 index 00000000..3ca9f7ad --- /dev/null +++ b/src/app/shared/components/circular-progress.directive.d.ts @@ -0,0 +1,17 @@ +import { ComponentFactoryResolver, ComponentRef, ElementRef, ViewContainerRef } from '@angular/core'; +import { MatSpinner } from '@angular/material/progress-spinner'; +import * as i0 from "@angular/core"; +export declare class CircularProgressDirective { + private elementRef; + private componentFactoryResolver; + private viewContainerRef; + showProgressValue: boolean; + children: JQuery; + cssWidth: any; + set showProgress(showProgress: boolean); + spinnerRef: ComponentRef; + constructor(elementRef: ElementRef, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef); + createCircularProgress(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} diff --git a/src/app/shared/components/color-input.component.d.ts b/src/app/shared/components/color-input.component.d.ts new file mode 100644 index 00000000..d6afe408 --- /dev/null +++ b/src/app/shared/components/color-input.component.d.ts @@ -0,0 +1,42 @@ +import { OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { TranslateService } from '@ngx-translate/core'; +import { DialogService } from '@core/services/dialog.service'; +import * as i0 from "@angular/core"; +export declare class ColorInputComponent extends PageComponent implements OnInit, ControlValueAccessor { + protected store: Store; + private dialogs; + private translate; + private fb; + icon: string; + label: string; + requiredText: string; + private colorClearButtonValue; + get colorClearButton(): boolean; + set colorClearButton(value: boolean); + private openOnInputValue; + get openOnInput(): boolean; + set openOnInput(value: boolean); + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + private modelValue; + private propagateChange; + colorFormGroup: FormGroup; + constructor(store: Store, dialogs: DialogService, translate: TranslateService, fb: FormBuilder); + ngOnInit(): void; + updateValidators(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string): void; + private updateModel; + showColorPicker(): void; + clear(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/contact.component.d.ts b/src/app/shared/components/contact.component.d.ts new file mode 100644 index 00000000..312d78aa --- /dev/null +++ b/src/app/shared/components/contact.component.d.ts @@ -0,0 +1,9 @@ +import { FormGroup } from '@angular/forms'; +import * as i0 from "@angular/core"; +export declare class ContactComponent { + parentForm: FormGroup; + isEdit: boolean; + countries: string[]; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/css.component.d.ts b/src/app/shared/components/css.component.d.ts new file mode 100644 index 00000000..9346ce7b --- /dev/null +++ b/src/app/shared/components/css.component.d.ts @@ -0,0 +1,47 @@ +import { ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormControl, Validator } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { RafService } from '@core/services/raf.service'; +import * as i0 from "@angular/core"; +export declare class CssComponent implements OnInit, OnDestroy, ControlValueAccessor, Validator { + elementRef: ElementRef; + private utils; + private translate; + protected store: Store; + private raf; + cssEditorElmRef: ElementRef; + private cssEditor; + private editorsResizeCaf; + private editorResize$; + private ignoreChange; + label: string; + disabled: boolean; + fillHeight: boolean; + private requiredValue; + get required(): boolean; + set required(value: boolean); + fullscreen: boolean; + modelValue: string; + hasErrors: boolean; + private propagateChange; + constructor(elementRef: ElementRef, utils: UtilsService, translate: TranslateService, store: Store, raf: RafService); + ngOnInit(): void; + ngOnDestroy(): void; + private onAceEditorResize; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(c: FormControl): { + css: { + valid: boolean; + }; + }; + beautifyCss(): void; + writeValue(value: string): void; + updateView(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/dashboard-autocomplete.component.d.ts b/src/app/shared/components/dashboard-autocomplete.component.d.ts new file mode 100644 index 00000000..dddb7c4d --- /dev/null +++ b/src/app/shared/components/dashboard-autocomplete.component.d.ts @@ -0,0 +1,52 @@ +import { AfterViewInit, ElementRef, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { PageLink } from '@shared/models/page/page-link'; +import { PageData } from '@shared/models/page/page-data'; +import { DashboardInfo } from '@app/shared/models/dashboard.models'; +import { DashboardService } from '@core/http/dashboard.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { FloatLabelType } from '@angular/material/form-field/form-field'; +import * as i0 from "@angular/core"; +export declare class DashboardAutocompleteComponent implements ControlValueAccessor, OnInit, AfterViewInit { + private store; + translate: TranslateService; + private dashboardService; + private fb; + private dirty; + selectDashboardFormGroup: FormGroup; + modelValue: DashboardInfo | string | null; + useIdValue: boolean; + selectFirstDashboard: boolean; + placeholder: string; + dashboardsScope: 'customer' | 'tenant'; + tenantId: string; + customerId: string; + floatLabel: FloatLabelType; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + dashboardInput: ElementRef; + filteredDashboards: Observable>; + searchText: string; + private propagateChange; + constructor(store: Store, translate: TranslateService, dashboardService: DashboardService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + selectFirstDashboardIfNeeded(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: DashboardInfo | string | null): void; + updateView(value: DashboardInfo | string | null): void; + displayDashboardFn(dashboard?: DashboardInfo): string | undefined; + fetchDashboards(searchText?: string): Observable>; + getDashboards(pageLink: PageLink): Observable>; + onFocus(): void; + clear(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/dashboard-select-panel.component.d.ts b/src/app/shared/components/dashboard-select-panel.component.d.ts new file mode 100644 index 00000000..31a0ecdd --- /dev/null +++ b/src/app/shared/components/dashboard-select-panel.component.d.ts @@ -0,0 +1,19 @@ +import { InjectionToken } from '@angular/core'; +import { Observable } from 'rxjs'; +import { DashboardInfo } from '../models/dashboard.models'; +import * as i0 from "@angular/core"; +export declare const DASHBOARD_SELECT_PANEL_DATA: InjectionToken; +export interface DashboardSelectPanelData { + dashboards$: Observable>; + dashboardId: string; + onDashboardSelected: (dashboardId: string) => void; +} +export declare class DashboardSelectPanelComponent { + private data; + dashboards$: Observable>; + dashboardId: string; + constructor(data: DashboardSelectPanelData); + dashboardSelected(dashboardId: string): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/dashboard-select.component.d.ts b/src/app/shared/components/dashboard-select.component.d.ts new file mode 100644 index 00000000..48d000ab --- /dev/null +++ b/src/app/shared/components/dashboard-select.component.d.ts @@ -0,0 +1,44 @@ +import { OnInit, ViewContainerRef } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { DashboardInfo } from '@app/shared/models/dashboard.models'; +import { DashboardService } from '@core/http/dashboard.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TooltipPosition } from '@angular/material/tooltip'; +import { CdkOverlayOrigin, Overlay } from '@angular/cdk/overlay'; +import { BreakpointObserver } from '@angular/cdk/layout'; +import * as i0 from "@angular/core"; +export declare class DashboardSelectComponent implements ControlValueAccessor, OnInit { + private store; + private dashboardService; + private overlay; + private breakpointObserver; + private viewContainerRef; + private document; + private window; + dashboardsScope: 'customer' | 'tenant'; + customerId: string; + tooltipPosition: TooltipPosition; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + dashboards$: Observable>; + dashboardId: string | null; + dashboardSelectPanelOrigin: CdkOverlayOrigin; + private propagateChange; + constructor(store: Store, dashboardService: DashboardService, overlay: Overlay, breakpointObserver: BreakpointObserver, viewContainerRef: ViewContainerRef, document: Document, window: Window); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string | null): void; + dashboardIdChanged(): void; + openDashboardSelectPanel(): void; + private _createDashboardSelectPanelInjector; + private updateView; + private getDashboards; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/dialog.component.d.ts b/src/app/shared/components/dialog.component.d.ts new file mode 100644 index 00000000..2983de8b --- /dev/null +++ b/src/app/shared/components/dialog.component.d.ts @@ -0,0 +1,18 @@ +import { OnDestroy } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Router } from '@angular/router'; +import { Subscription } from 'rxjs'; +import * as i0 from "@angular/core"; +export declare abstract class DialogComponent extends PageComponent implements OnDestroy { + protected store: Store; + protected router: Router; + protected dialogRef: MatDialogRef; + routerSubscription: Subscription; + protected constructor(store: Store, router: Router, dialogRef: MatDialogRef); + ngOnDestroy(): void; + static ɵfac: i0.ɵɵFactoryDeclaration, never>; + static ɵdir: i0.ɵɵDirectiveDeclaration, never, never, {}, {}, never>; +} diff --git a/src/app/shared/components/dialog/alert-dialog.component.d.ts b/src/app/shared/components/dialog/alert-dialog.component.d.ts new file mode 100644 index 00000000..fb352e46 --- /dev/null +++ b/src/app/shared/components/dialog/alert-dialog.component.d.ts @@ -0,0 +1,14 @@ +import { MatDialogRef } from '@angular/material/dialog'; +import * as i0 from "@angular/core"; +export interface AlertDialogData { + title: string; + message: string; + ok: string; +} +export declare class AlertDialogComponent { + dialogRef: MatDialogRef; + data: AlertDialogData; + constructor(dialogRef: MatDialogRef, data: AlertDialogData); + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/dialog/color-picker-dialog.component.d.ts b/src/app/shared/components/dialog/color-picker-dialog.component.d.ts new file mode 100644 index 00000000..d650deb4 --- /dev/null +++ b/src/app/shared/components/dialog/color-picker-dialog.component.d.ts @@ -0,0 +1,30 @@ +import { OnInit } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@shared/components/dialog.component'; +import * as i0 from "@angular/core"; +export interface ColorPickerDialogData { + color: string; +} +export declare class ColorPickerDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: ColorPickerDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + fb: FormBuilder; + colorPickerFormGroup: FormGroup; + submitted: boolean; + constructor(store: Store, router: Router, data: ColorPickerDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder); + ngOnInit(): void; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + onColorChange(color: string): void; + cancel(): void; + select(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/dialog/confirm-dialog.component.d.ts b/src/app/shared/components/dialog/confirm-dialog.component.d.ts new file mode 100644 index 00000000..33c4c87c --- /dev/null +++ b/src/app/shared/components/dialog/confirm-dialog.component.d.ts @@ -0,0 +1,15 @@ +import { MatDialogRef } from '@angular/material/dialog'; +import * as i0 from "@angular/core"; +export interface ConfirmDialogData { + title: string; + message: string; + cancel: string; + ok: string; +} +export declare class ConfirmDialogComponent { + dialogRef: MatDialogRef; + data: ConfirmDialogData; + constructor(dialogRef: MatDialogRef, data: ConfirmDialogData); + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/dialog/json-object-edit-dialog.component.d.ts b/src/app/shared/components/dialog/json-object-edit-dialog.component.d.ts new file mode 100644 index 00000000..b2ea72f4 --- /dev/null +++ b/src/app/shared/components/dialog/json-object-edit-dialog.component.d.ts @@ -0,0 +1,30 @@ +import { OnInit } from '@angular/core'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Router } from '@angular/router'; +import { MatDialogRef } from '@angular/material/dialog'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export interface JsonObjectEditDialogData { + jsonValue: object; + title?: string; +} +export declare class JsonObjectEditDialogComponent extends DialogComponent implements OnInit { + protected store: Store; + protected router: Router; + data: JsonObjectEditDialogData; + dialogRef: MatDialogRef; + fb: FormBuilder; + private translate; + jsonFormGroup: FormGroup; + title: string; + submitted: boolean; + constructor(store: Store, router: Router, data: JsonObjectEditDialogData, dialogRef: MatDialogRef, fb: FormBuilder, translate: TranslateService); + ngOnInit(): void; + cancel(): void; + add(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/dialog/material-icons-dialog.component.d.ts b/src/app/shared/components/dialog/material-icons-dialog.component.d.ts new file mode 100644 index 00000000..7e8ad522 --- /dev/null +++ b/src/app/shared/components/dialog/material-icons-dialog.component.d.ts @@ -0,0 +1,32 @@ +import { AfterViewInit, OnInit, QueryList } from '@angular/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { UtilsService } from '@core/services/utils.service'; +import { FormControl } from '@angular/forms'; +import { Observable } from 'rxjs'; +import * as i0 from "@angular/core"; +export interface MaterialIconsDialogData { + icon: string; +} +export declare class MaterialIconsDialogComponent extends DialogComponent implements OnInit, AfterViewInit { + protected store: Store; + protected router: Router; + data: MaterialIconsDialogData; + private utils; + dialogRef: MatDialogRef; + iconButtons: QueryList; + selectedIcon: string; + icons$: Observable>; + loadingIcons$: Observable; + showAllControl: FormControl; + constructor(store: Store, router: Router, data: MaterialIconsDialogData, utils: UtilsService, dialogRef: MatDialogRef); + ngOnInit(): void; + ngAfterViewInit(): void; + selectIcon(icon: string): void; + cancel(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/dialog/node-script-test-dialog.component.d.ts b/src/app/shared/components/dialog/node-script-test-dialog.component.d.ts new file mode 100644 index 00000000..1f7d492f --- /dev/null +++ b/src/app/shared/components/dialog/node-script-test-dialog.component.d.ts @@ -0,0 +1,59 @@ +import { AfterViewInit, ElementRef, OnInit, QueryList } from '@angular/core'; +import { ErrorStateMatcher } from '@angular/material/core'; +import { MatDialogRef } from '@angular/material/dialog'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; +import { Router } from '@angular/router'; +import { DialogComponent } from '@shared/components/dialog.component'; +import { ContentType } from '@shared/models/constants'; +import { JsonContentComponent } from '@shared/components/json-content.component'; +import { RuleChainService } from '@core/http/rule-chain.service'; +import * as i0 from "@angular/core"; +export interface NodeScriptTestDialogData { + script: string; + scriptType: string; + functionTitle: string; + functionName: string; + argNames: string[]; + msg?: any; + metadata?: { + [key: string]: string; + }; + msgType?: string; + helpId?: string; +} +export declare class NodeScriptTestDialogComponent extends DialogComponent implements OnInit, AfterViewInit, ErrorStateMatcher { + protected store: Store; + protected router: Router; + data: NodeScriptTestDialogData; + private errorStateMatcher; + dialogRef: MatDialogRef; + fb: FormBuilder; + private ruleChainService; + width: string; + height: string; + topPanelElmRef: QueryList>; + topLeftPanelElmRef: QueryList>; + topRightPanelElmRef: QueryList>; + bottomPanelElmRef: QueryList>; + bottomLeftPanelElmRef: QueryList>; + bottomRightPanelElmRef: QueryList>; + payloadContent: JsonContentComponent; + nodeScriptTestFormGroup: FormGroup; + functionTitle: string; + submitted: boolean; + contentTypes: typeof ContentType; + constructor(store: Store, router: Router, data: NodeScriptTestDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef, fb: FormBuilder, ruleChainService: RuleChainService); + ngOnInit(): void; + ngAfterViewInit(): void; + private initSplitLayout; + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + cancel(): void; + test(): void; + private testNodeScript; + private checkInputParamErrors; + save(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/dialog/todo-dialog.component.d.ts b/src/app/shared/components/dialog/todo-dialog.component.d.ts new file mode 100644 index 00000000..bc5676ad --- /dev/null +++ b/src/app/shared/components/dialog/todo-dialog.component.d.ts @@ -0,0 +1,8 @@ +import { MatDialogRef } from '@angular/material/dialog'; +import * as i0 from "@angular/core"; +export declare class TodoDialogComponent { + dialogRef: MatDialogRef; + constructor(dialogRef: MatDialogRef); + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/directives/component-outlet.directive.d.ts b/src/app/shared/components/directives/component-outlet.directive.d.ts new file mode 100644 index 00000000..59516d59 --- /dev/null +++ b/src/app/shared/components/directives/component-outlet.directive.d.ts @@ -0,0 +1,25 @@ +import { ComponentFactory, ComponentRef, EventEmitter, Injector, OnChanges, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class TbComponentOutletDirective<_T = unknown> implements OnChanges { + private viewContainer; + private renderer; + private componentRef; + private context; + tbComponentOutletContext: any | null; + tbComponentStyle: { + [klass: string]: any; + } | null; + tbComponentInjector: Injector | null; + tbComponentOutlet: ComponentFactory; + componentChange: EventEmitter>; + static ngTemplateContextGuard(_dir: TbComponentOutletDirective, _ctx: any): _ctx is TbComponentOutletContext; + private recreateComponent; + private updateContext; + constructor(viewContainer: ViewContainerRef, renderer: Renderer2); + ngOnChanges(changes: SimpleChanges): void; + static ɵfac: i0.ɵɵFactoryDeclaration, never>; + static ɵdir: i0.ɵɵDirectiveDeclaration, "[tbComponentOutlet]", ["tbComponentOutlet"], { "tbComponentOutletContext": "tbComponentOutletContext"; "tbComponentStyle": "tbComponentStyle"; "tbComponentInjector": "tbComponentInjector"; "tbComponentOutlet": "tbComponentOutlet"; }, { "componentChange": "componentChange"; }, never>; +} +export declare class TbComponentOutletContext { + $implicit: any; +} diff --git a/src/app/shared/components/directives/sring-template-outlet.directive.d.ts b/src/app/shared/components/directives/sring-template-outlet.directive.d.ts new file mode 100644 index 00000000..fee7f03b --- /dev/null +++ b/src/app/shared/components/directives/sring-template-outlet.directive.d.ts @@ -0,0 +1,20 @@ +import { OnChanges, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class TbStringTemplateOutletDirective<_T = unknown> implements OnChanges { + private viewContainer; + private templateRef; + private embeddedViewRef; + private context; + tbStringTemplateOutletContext: any | null; + tbStringTemplateOutlet: any | TemplateRef; + static ngTemplateContextGuard(_dir: TbStringTemplateOutletDirective, _ctx: any): _ctx is TbStringTemplateOutletContext; + private recreateView; + private updateContext; + constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef); + ngOnChanges(changes: SimpleChanges): void; + static ɵfac: i0.ɵɵFactoryDeclaration, never>; + static ɵdir: i0.ɵɵDirectiveDeclaration, "[tbStringTemplateOutlet]", ["tbStringTemplateOutlet"], { "tbStringTemplateOutletContext": "tbStringTemplateOutletContext"; "tbStringTemplateOutlet": "tbStringTemplateOutlet"; }, {}, never>; +} +export declare class TbStringTemplateOutletContext { + $implicit: any; +} diff --git a/src/app/shared/components/directives/tb-json-to-string.directive.d.ts b/src/app/shared/components/directives/tb-json-to-string.directive.d.ts new file mode 100644 index 00000000..29bb764e --- /dev/null +++ b/src/app/shared/components/directives/tb-json-to-string.directive.d.ts @@ -0,0 +1,21 @@ +import { ElementRef, Renderer2 } from '@angular/core'; +import { ControlValueAccessor, FormControl, FormGroupDirective, NgForm, ValidationErrors, Validator } from '@angular/forms'; +import { ErrorStateMatcher } from '@angular/material/core'; +import * as i0 from "@angular/core"; +export declare class TbJsonToStringDirective implements ControlValueAccessor, Validator, ErrorStateMatcher { + private render; + private element; + private errorStateMatcher; + private propagateChange; + private parseError; + private data; + input(newValue: any): void; + constructor(render: Renderer2, element: ElementRef, errorStateMatcher: ErrorStateMatcher); + isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; + validate(c: FormControl): ValidationErrors; + writeValue(obj: any): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} diff --git a/src/app/shared/components/entity/entity-autocomplete.component.d.ts b/src/app/shared/components/entity/entity-autocomplete.component.d.ts new file mode 100644 index 00000000..aa72ff22 --- /dev/null +++ b/src/app/shared/components/entity/entity-autocomplete.component.d.ts @@ -0,0 +1,58 @@ +import { AfterViewInit, ElementRef, EventEmitter, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { AliasEntityType, EntityType } from '@shared/models/entity-type.models'; +import { BaseData } from '@shared/models/base-data'; +import { EntityId } from '@shared/models/id/entity-id'; +import { EntityService } from '@core/http/entity.service'; +import * as i0 from "@angular/core"; +export declare class EntityAutocompleteComponent implements ControlValueAccessor, OnInit, AfterViewInit { + private store; + translate: TranslateService; + private entityService; + private fb; + selectEntityFormGroup: FormGroup; + modelValue: string | null; + entityTypeValue: EntityType | AliasEntityType; + entitySubtypeValue: string; + set entityType(entityType: EntityType); + set entitySubtype(entitySubtype: string); + excludeEntityIds: Array; + labelText: string; + requiredText: string; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + entityChanged: EventEmitter>; + entityInput: ElementRef; + entityText: string; + noEntitiesMatchingText: string; + entityRequiredText: string; + filteredEntities: Observable>>; + searchText: string; + private dirty; + private refresh$; + private propagateChange; + constructor(store: Store, translate: TranslateService, entityService: EntityService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + load(): void; + getCurrentEntity(): BaseData | null; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string | EntityId | null): Promise; + onFocus(): void; + reset(): void; + updateView(value: string | null, entity: BaseData | null): void; + displayEntityFn(entity?: BaseData): string | undefined; + fetchEntities(searchText?: string): Observable>>; + clear(): void; + checkEntityType(entityType: EntityType | AliasEntityType): EntityType; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/entity/entity-gateway-select.component.d.ts b/src/app/shared/components/entity/entity-gateway-select.component.d.ts new file mode 100644 index 00000000..191af005 --- /dev/null +++ b/src/app/shared/components/entity/entity-gateway-select.component.d.ts @@ -0,0 +1,53 @@ +import { ElementRef, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Observable } from 'rxjs'; +import { EntityService } from '@core/http/entity.service'; +import { Device } from '@shared/models/device.models'; +import { DialogService } from '@core/services/dialog.service'; +import { TranslateService } from '@ngx-translate/core'; +import { DeviceService } from '@core/http/device.service'; +import * as i0 from "@angular/core"; +export declare class EntityGatewaySelectComponent implements ControlValueAccessor, OnInit { + private store; + private entityService; + private dialogService; + private deviceService; + private translate; + private fb; + get required(): boolean; + set required(value: boolean); + set newGatewayType(value: string); + deviceName: string; + isStateForm: boolean; + private gatewayNameExist; + constructor(store: Store, entityService: EntityService, dialogService: DialogService, deviceService: DeviceService, translate: TranslateService, fb: FormBuilder); + private gatewayType; + private dirty; + private requiredValue; + private gatewayList; + searchText: string; + filteredGateways: Observable>; + selectDeviceGatewayFormGroup: FormGroup; + modelValue: string | null; + deviceGatewayInput: ElementRef; + private propagateChange; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + fetchGateway(searchText?: string): Observable>; + onFocus(): void; + displayGatewayFn(gateway?: Device): string | undefined; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string | null): void; + clear(value?: string, hideList?: boolean): void; + textIsNotEmpty(text: string): boolean; + gatewayNameEnter($event: KeyboardEvent): void; + createGateway($event: Event, gatewayName: string): void; + private createDeviceGateway; + private loadGatewayList; + private updateView; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/entity/entity-keys-list.component.d.ts b/src/app/shared/components/entity/entity-keys-list.component.d.ts new file mode 100644 index 00000000..823f6017 --- /dev/null +++ b/src/app/shared/components/entity/entity-keys-list.component.d.ts @@ -0,0 +1,53 @@ +import { AfterViewInit, ElementRef, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityId } from '@shared/models/id/entity-id'; +import { EntityService } from '@core/http/entity.service'; +import { MatAutocomplete, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete'; +import { MatChipInputEvent, MatChipList } from '@angular/material/chips'; +import { DataKeyType } from '@shared/models/telemetry/telemetry.models'; +import * as i0 from "@angular/core"; +export declare class EntityKeysListComponent implements ControlValueAccessor, OnInit, AfterViewInit { + private store; + translate: TranslateService; + private entityService; + private fb; + keysListFormGroup: FormGroup; + modelValue: Array | null; + entityIdValue: EntityId; + set entityId(entityId: EntityId); + keysText: string; + dataKeyType: DataKeyType; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + keyInput: ElementRef; + matAutocomplete: MatAutocomplete; + chipList: MatChipList; + filteredKeys: Observable>; + separatorKeysCodes: number[]; + searchText: string; + private dirty; + private propagateChange; + constructor(store: Store, translate: TranslateService, entityService: EntityService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: Array | null): void; + onFocus(): void; + addKey(key: string): void; + add(event: MatChipInputEvent): void; + remove(key: string): void; + selected(event: MatAutocompleteSelectedEvent): void; + displayKeyFn(key?: string): string | undefined; + fetchKeys(searchText?: string): Observable>; + clear(value?: string, emitEvent?: boolean): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/entity/entity-list-select.component.d.ts b/src/app/shared/components/entity/entity-list-select.component.d.ts new file mode 100644 index 00000000..3b5596b7 --- /dev/null +++ b/src/app/shared/components/entity/entity-list-select.component.d.ts @@ -0,0 +1,43 @@ +import { AfterViewInit, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { AliasEntityType, EntityType } from '@shared/models/entity-type.models'; +import { EntityService } from '@core/http/entity.service'; +import { EntityId } from '@shared/models/id/entity-id'; +import * as i0 from "@angular/core"; +interface EntityListSelectModel { + entityType: EntityType | AliasEntityType; + ids: Array; +} +export declare class EntityListSelectComponent implements ControlValueAccessor, OnInit, AfterViewInit { + private store; + private entityService; + translate: TranslateService; + private fb; + entityListSelectFormGroup: FormGroup; + modelValue: EntityListSelectModel; + allowedEntityTypes: Array; + useAliasEntityTypes: boolean; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + displayEntityTypeSelect: boolean; + private readonly defaultEntityType; + private propagateChange; + constructor(store: Store, entityService: EntityService, translate: TranslateService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: Array | null): void; + updateView(entityType: EntityType | AliasEntityType | null, entityIds: Array | null): void; + compareIds(ids1: Array | null, ids2: Array | null): boolean; + toEntityIds(modelValue: EntityListSelectModel): Array; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export {}; diff --git a/src/app/shared/components/entity/entity-list.component.d.ts b/src/app/shared/components/entity/entity-list.component.d.ts new file mode 100644 index 00000000..eace6c1a --- /dev/null +++ b/src/app/shared/components/entity/entity-list.component.d.ts @@ -0,0 +1,53 @@ +import { AfterViewInit, ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityType } from '@shared/models/entity-type.models'; +import { BaseData } from '@shared/models/base-data'; +import { EntityId } from '@shared/models/id/entity-id'; +import { EntityService } from '@core/http/entity.service'; +import { MatAutocomplete } from '@angular/material/autocomplete'; +import { MatChipList } from '@angular/material/chips'; +import * as i0 from "@angular/core"; +export declare class EntityListComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnChanges { + private store; + translate: TranslateService; + private entityService; + private fb; + entityListFormGroup: FormGroup; + modelValue: Array | null; + entityType: EntityType; + subType: string; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + entityInput: ElementRef; + matAutocomplete: MatAutocomplete; + chipList: MatChipList; + entities: Array>; + filteredEntities: Observable>>; + searchText: string; + private dirty; + private propagateChange; + constructor(store: Store, translate: TranslateService, entityService: EntityService, fb: FormBuilder); + updateValidators(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngOnChanges(changes: SimpleChanges): void; + ngAfterViewInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: Array | null): void; + reset(): void; + add(entity: BaseData): void; + remove(entity: BaseData): void; + displayEntityFn(entity?: BaseData): string | undefined; + fetchEntities(searchText?: string): Observable>>; + onFocus(): void; + clear(value?: string): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/entity/entity-select.component.d.ts b/src/app/shared/components/entity/entity-select.component.d.ts new file mode 100644 index 00000000..47f5f7f1 --- /dev/null +++ b/src/app/shared/components/entity/entity-select.component.d.ts @@ -0,0 +1,37 @@ +import { AfterViewInit, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { AliasEntityType, EntityType } from '@shared/models/entity-type.models'; +import { EntityService } from '@core/http/entity.service'; +import { EntityId } from '@shared/models/id/entity-id'; +import * as i0 from "@angular/core"; +export declare class EntitySelectComponent implements ControlValueAccessor, OnInit, AfterViewInit { + private store; + private entityService; + translate: TranslateService; + private fb; + entitySelectFormGroup: FormGroup; + modelValue: EntityId; + allowedEntityTypes: Array; + useAliasEntityTypes: boolean; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + displayEntityTypeSelect: boolean; + AliasEntityType: typeof AliasEntityType; + private readonly defaultEntityType; + private propagateChange; + constructor(store: Store, entityService: EntityService, translate: TranslateService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: EntityId | null): void; + updateView(entityType: EntityType | AliasEntityType | null, entityId: string | null): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/entity/entity-subtype-autocomplete.component.d.ts b/src/app/shared/components/entity/entity-subtype-autocomplete.component.d.ts new file mode 100644 index 00000000..d2e96cdc --- /dev/null +++ b/src/app/shared/components/entity/entity-subtype-autocomplete.component.d.ts @@ -0,0 +1,57 @@ +import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { DeviceService } from '@core/http/device.service'; +import { EntityType } from '@app/shared/models/entity-type.models'; +import { BroadcastService } from '@app/core/services/broadcast.service'; +import { AssetService } from '@core/http/asset.service'; +import { EntityViewService } from '@core/http/entity-view.service'; +import { EdgeService } from '@core/http/edge.service'; +import * as i0 from "@angular/core"; +export declare class EntitySubTypeAutocompleteComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy { + private store; + private broadcast; + translate: TranslateService; + private deviceService; + private assetService; + private edgeService; + private entityViewService; + private fb; + subTypeFormGroup: FormGroup; + modelValue: string | null; + entityType: EntityType; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + subTypeInput: ElementRef; + selectEntitySubtypeText: string; + entitySubtypeText: string; + entitySubtypeRequiredText: string; + entitySubtypeMaxLength: string; + filteredSubTypes: Observable>; + subTypes: Observable>; + private broadcastSubscription; + searchText: string; + private dirty; + private propagateChange; + constructor(store: Store, broadcast: BroadcastService, translate: TranslateService, deviceService: DeviceService, assetService: AssetService, edgeService: EdgeService, entityViewService: EntityViewService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + ngOnDestroy(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string | null): void; + onFocus(): void; + updateView(value: string | null): void; + displaySubTypeFn(subType?: string): string | undefined; + fetchSubTypes(searchText?: string, strictMatch?: boolean): Observable>; + getSubTypes(): Observable>; + clear(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/entity/entity-subtype-list.component.d.ts b/src/app/shared/components/entity/entity-subtype-list.component.d.ts new file mode 100644 index 00000000..5feaade3 --- /dev/null +++ b/src/app/shared/components/entity/entity-subtype-list.component.d.ts @@ -0,0 +1,67 @@ +import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityType } from '@shared/models/entity-type.models'; +import { MatAutocomplete, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete'; +import { MatChipInputEvent, MatChipList } from '@angular/material/chips'; +import { AssetService } from '@core/http/asset.service'; +import { DeviceService } from '@core/http/device.service'; +import { EdgeService } from '@core/http/edge.service'; +import { EntityViewService } from '@core/http/entity-view.service'; +import { BroadcastService } from '@core/services/broadcast.service'; +import * as i0 from "@angular/core"; +export declare class EntitySubTypeListComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy { + private store; + private broadcast; + translate: TranslateService; + private assetService; + private deviceService; + private edgeService; + private entityViewService; + private fb; + entitySubtypeListFormGroup: FormGroup; + modelValue: Array | null; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + entityType: EntityType; + entitySubtypeInput: ElementRef; + entitySubtypeAutocomplete: MatAutocomplete; + chipList: MatChipList; + entitySubtypeList: Array; + filteredEntitySubtypeList: Observable>; + entitySubtypes: Observable>; + private broadcastSubscription; + placeholder: string; + secondaryPlaceholder: string; + noSubtypesMathingText: string; + subtypeListEmptyText: string; + separatorKeysCodes: number[]; + searchText: string; + private dirty; + private propagateChange; + constructor(store: Store, broadcast: BroadcastService, translate: TranslateService, assetService: AssetService, deviceService: DeviceService, edgeService: EdgeService, entityViewService: EntityViewService, fb: FormBuilder); + updateValidators(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + ngOnDestroy(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: Array | null): void; + private add; + chipAdd(event: MatChipInputEvent): void; + remove(entitySubtype: string): void; + selected(event: MatAutocompleteSelectedEvent): void; + displayEntitySubtypeFn(entitySubtype?: string): string | undefined; + fetchEntitySubtypes(searchText?: string): Observable>; + getEntitySubtypes(): Observable>; + onFocus(): void; + clear(value?: string): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/entity/entity-subtype-select.component.d.ts b/src/app/shared/components/entity/entity-subtype-select.component.d.ts new file mode 100644 index 00000000..892cc1f8 --- /dev/null +++ b/src/app/shared/components/entity/entity-subtype-select.component.d.ts @@ -0,0 +1,52 @@ +import { AfterViewInit, OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { DeviceService } from '@core/http/device.service'; +import { EntitySubtype, EntityType } from '@app/shared/models/entity-type.models'; +import { BroadcastService } from '@app/core/services/broadcast.service'; +import { AssetService } from '@core/http/asset.service'; +import { EdgeService } from '@core/http/edge.service'; +import { EntityViewService } from '@core/http/entity-view.service'; +import * as i0 from "@angular/core"; +export declare class EntitySubTypeSelectComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy { + private store; + private broadcast; + translate: TranslateService; + private deviceService; + private assetService; + private edgeService; + private entityViewService; + private fb; + subTypeFormGroup: FormGroup; + modelValue: string | null; + entityType: EntityType; + showLabel: boolean; + required: boolean; + disabled: boolean; + typeTranslatePrefix: string; + entitySubtypeTitle: string; + entitySubtypeRequiredText: string; + subTypesOptions: Observable>; + private subTypesOptionsSubject; + subTypes: Observable>; + subTypesLoaded: boolean; + private broadcastSubscription; + private propagateChange; + constructor(store: Store, broadcast: BroadcastService, translate: TranslateService, deviceService: DeviceService, assetService: AssetService, edgeService: EdgeService, entityViewService: EntityViewService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + ngOnDestroy(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string | null): void; + updateView(value: string | null): void; + displaySubTypeFn(subType?: EntitySubtype | string): string | undefined; + findSubTypes(searchText?: string): Observable>; + getSubTypes(): Observable>; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/entity/entity-type-list.component.d.ts b/src/app/shared/components/entity/entity-type-list.component.d.ts new file mode 100644 index 00000000..e4ac0690 --- /dev/null +++ b/src/app/shared/components/entity/entity-type-list.component.d.ts @@ -0,0 +1,57 @@ +import { AfterViewInit, ElementRef, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { AliasEntityType, EntityType } from '@shared/models/entity-type.models'; +import { EntityService } from '@core/http/entity.service'; +import { MatAutocomplete } from '@angular/material/autocomplete'; +import { MatChipList } from '@angular/material/chips'; +import * as i0 from "@angular/core"; +interface EntityTypeInfo { + name: string; + value: EntityType; +} +export declare class EntityTypeListComponent implements ControlValueAccessor, OnInit, AfterViewInit { + private store; + translate: TranslateService; + private entityService; + private fb; + entityTypeListFormGroup: FormGroup; + modelValue: Array | null; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + allowedEntityTypes: Array; + ignoreAuthorityFilter: boolean; + entityTypeInput: ElementRef; + entityTypeAutocomplete: MatAutocomplete; + chipList: MatChipList; + allEntityTypeList: Array; + entityTypeList: Array; + filteredEntityTypeList: Observable>; + placeholder: string; + secondaryPlaceholder: string; + searchText: string; + private dirty; + private propagateChange; + constructor(store: Store, translate: TranslateService, entityService: EntityService, fb: FormBuilder); + updateValidators(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: Array | null): void; + add(entityType: EntityTypeInfo): void; + remove(entityType: EntityTypeInfo): void; + displayEntityTypeFn(entityType?: EntityTypeInfo): string | undefined; + fetchEntityTypes(searchText?: string): Observable>; + onFocus(): void; + clear(value?: string): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export {}; diff --git a/src/app/shared/components/entity/entity-type-select.component.d.ts b/src/app/shared/components/entity/entity-type-select.component.d.ts new file mode 100644 index 00000000..0df82a25 --- /dev/null +++ b/src/app/shared/components/entity/entity-type-select.component.d.ts @@ -0,0 +1,38 @@ +import { AfterViewInit, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { AliasEntityType, EntityType } from '@app/shared/models/entity-type.models'; +import { EntityService } from '@core/http/entity.service'; +import * as i0 from "@angular/core"; +export declare class EntityTypeSelectComponent implements ControlValueAccessor, OnInit, AfterViewInit { + private store; + private entityService; + translate: TranslateService; + private fb; + entityTypeFormGroup: FormGroup; + modelValue: EntityType | AliasEntityType | null; + allowedEntityTypes: Array; + useAliasEntityTypes: boolean; + private showLabelValue; + get showLabel(): boolean; + set showLabel(value: boolean); + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + entityTypes: Array; + private propagateChange; + constructor(store: Store, entityService: EntityService, translate: TranslateService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: EntityType | AliasEntityType | null): void; + updateView(value: EntityType | AliasEntityType | null): void; + displayEntityTypeFn(entityType?: EntityType | AliasEntityType | null): string | undefined; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/fab-toolbar.component.d.ts b/src/app/shared/components/fab-toolbar.component.d.ts new file mode 100644 index 00000000..c00b3693 --- /dev/null +++ b/src/app/shared/components/fab-toolbar.component.d.ts @@ -0,0 +1,39 @@ +import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; +import { CanColorCtor } from '@angular/material/core'; +import * as i0 from "@angular/core"; +export declare type FabToolbarDirection = 'left' | 'right'; +declare class MatFabToolbarBase { + _elementRef: ElementRef; + constructor(_elementRef: ElementRef); +} +declare const MatFabToolbarMixinBase: CanColorCtor & typeof MatFabToolbarBase; +export declare class FabTriggerDirective { + private el; + constructor(el: ElementRef); + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} +export declare class FabActionsDirective implements OnInit { + private el; + constructor(el: ElementRef); + ngOnInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} +export declare class FabToolbarComponent extends MatFabToolbarMixinBase implements OnInit, OnDestroy, AfterViewInit, OnChanges { + private el; + private window; + private fabToolbarResize$; + isOpen: boolean; + direction: FabToolbarDirection; + constructor(el: ElementRef, window: Window); + ngOnInit(): void; + ngOnDestroy(): void; + ngAfterViewInit(): void; + ngOnChanges(changes: SimpleChanges): void; + private onFabToolbarResize; + private triggerOpenClose; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export {}; diff --git a/src/app/shared/components/file-input.component.d.ts b/src/app/shared/components/file-input.component.d.ts new file mode 100644 index 00000000..49b88f66 --- /dev/null +++ b/src/app/shared/components/file-input.component.d.ts @@ -0,0 +1,58 @@ +import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { ControlValueAccessor } from '@angular/forms'; +import { Subscription } from 'rxjs'; +import { FlowDirective } from '@flowjs/ngx-flow'; +import { TranslateService } from '@ngx-translate/core'; +import { UtilsService } from '@core/services/utils.service'; +import * as i0 from "@angular/core"; +export declare class FileInputComponent extends PageComponent implements AfterViewInit, OnDestroy, ControlValueAccessor, OnChanges { + protected store: Store; + private utils; + translate: TranslateService; + label: string; + accept: string; + noFileText: string; + inputId: string; + allowedExtensions: string; + dropLabel: string; + contentConvertFunction: (content: string) => any; + private requiredValue; + get required(): boolean; + set required(value: boolean); + private requiredAsErrorValue; + get requiredAsError(): boolean; + set requiredAsError(value: boolean); + disabled: boolean; + existingFileName: string; + readAsBinary: boolean; + workFromFileObj: boolean; + private multipleFileValue; + set multipleFile(value: boolean); + get multipleFile(): boolean; + fileNameChanged: EventEmitter; + fileName: string | string[]; + fileContent: any; + files: File[]; + flow: FlowDirective; + flowInput: ElementRef; + autoUploadSubscription: Subscription; + private propagateChange; + constructor(store: Store, utils: UtilsService, translate: TranslateService); + ngAfterViewInit(): void; + private readerAsFile; + private filterFile; + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: any): void; + ngOnChanges(changes: SimpleChanges): void; + private updateModel; + clearFile(): void; + private updateMultipleFileMode; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/footer-fab-buttons.component.d.ts b/src/app/shared/components/footer-fab-buttons.component.d.ts new file mode 100644 index 00000000..3326f967 --- /dev/null +++ b/src/app/shared/components/footer-fab-buttons.component.d.ts @@ -0,0 +1,32 @@ +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import * as i0 from "@angular/core"; +export interface FooterFabButton { + name: string; + icon: string; + onAction: ($event: Event) => void; +} +export interface FooterFabButtons { + fabTogglerName: string; + fabTogglerIcon: string; + buttons: Array; +} +export declare class FooterFabButtonsComponent extends PageComponent { + protected store: Store; + footerFabButtons: FooterFabButtons; + private relativeValue; + get relative(): boolean; + set relative(value: boolean); + buttons: Array; + fabTogglerState: string; + closeTimeout: any; + onFocusOut($event: any): void; + onFocusIn($event: any): void; + constructor(store: Store); + showItems(): void; + hideItems(): void; + onToggleFab(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/footer.component.d.ts b/src/app/shared/components/footer.component.d.ts new file mode 100644 index 00000000..7ba86a96 --- /dev/null +++ b/src/app/shared/components/footer.component.d.ts @@ -0,0 +1,6 @@ +import * as i0 from "@angular/core"; +export declare class FooterComponent { + year: number; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/fullscreen.directive.d.ts b/src/app/shared/components/fullscreen.directive.d.ts new file mode 100644 index 00000000..c238c7a1 --- /dev/null +++ b/src/app/shared/components/fullscreen.directive.d.ts @@ -0,0 +1,29 @@ +import { ElementRef, EventEmitter, OnChanges, OnDestroy, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core'; +import { Overlay } from '@angular/cdk/overlay'; +import { DomSanitizer, SafeStyle } from '@angular/platform-browser'; +import * as i0 from "@angular/core"; +export declare class FullscreenDirective implements OnChanges, OnDestroy { + elementRef: ElementRef; + private renderer; + private sanitizer; + private viewContainerRef; + private overlay; + fullscreenValue: boolean; + private overlayRef; + private parentElement; + fullscreen: boolean; + fullscreenElement: HTMLElement; + fullscreenBackgroundStyle: { + [klass: string]: any; + }; + fullscreenBackgroundImage: SafeStyle | string; + fullscreenChanged: EventEmitter; + constructor(elementRef: ElementRef, renderer: Renderer2, sanitizer: DomSanitizer, viewContainerRef: ViewContainerRef, overlay: Overlay); + ngOnChanges(changes: SimpleChanges): void; + ngOnDestroy(): void; + enterFullscreen(): void; + private setStyle; + exitFullscreen(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} diff --git a/src/app/shared/components/help-markdown.component.d.ts b/src/app/shared/components/help-markdown.component.d.ts new file mode 100644 index 00000000..52482581 --- /dev/null +++ b/src/app/shared/components/help-markdown.component.d.ts @@ -0,0 +1,27 @@ +import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; +import { BehaviorSubject } from 'rxjs'; +import { HelpService } from '@core/services/help.service'; +import * as i0 from "@angular/core"; +export declare class HelpMarkdownComponent implements OnDestroy, OnInit, OnChanges { + private help; + helpId: string; + helpContent: string; + visible: boolean; + style: { + [klass: string]: any; + }; + markdownReady: EventEmitter; + markdownText: BehaviorSubject; + markdownText$: import("rxjs").Observable; + private loadHelpPending; + constructor(help: HelpService); + ngOnInit(): void; + ngOnDestroy(): void; + ngOnChanges(changes: SimpleChanges): void; + private loadHelpWhenVisible; + private loadHelp; + onMarkdownReady(): void; + markdownClick($event: MouseEvent): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/help-popup.component.d.ts b/src/app/shared/components/help-popup.component.d.ts new file mode 100644 index 00000000..7ac64ba7 --- /dev/null +++ b/src/app/shared/components/help-popup.component.d.ts @@ -0,0 +1,32 @@ +import { ElementRef, OnChanges, OnDestroy, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core'; +import { TbPopoverService } from '@shared/components/popover.service'; +import { PopoverPlacement } from '@shared/components/popover.models'; +import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; +import * as i0 from "@angular/core"; +export declare class HelpPopupComponent implements OnChanges, OnDestroy { + private viewContainerRef; + private element; + private sanitizer; + private renderer; + private popoverService; + toggleHelpButton: ElementRef; + toggleHelpTextButton: ElementRef; + helpId: string; + helpContent: string; + triggerText: string; + triggerStyle: string; + helpPopupPlacement: PopoverPlacement; + helpPopupStyle: { + [klass: string]: any; + }; + popoverVisible: boolean; + popoverReady: boolean; + triggerSafeHtml: SafeHtml; + textMode: boolean; + constructor(viewContainerRef: ViewContainerRef, element: ElementRef, sanitizer: DomSanitizer, renderer: Renderer2, popoverService: TbPopoverService); + ngOnChanges(changes: SimpleChanges): void; + toggleHelp(): void; + ngOnDestroy(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/help.component.d.ts b/src/app/shared/components/help.component.d.ts new file mode 100644 index 00000000..02e80c6d --- /dev/null +++ b/src/app/shared/components/help.component.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +export declare class HelpComponent { + helpLinkId: string; + gotoHelpPage(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/hotkeys.directive.d.ts b/src/app/shared/components/hotkeys.directive.d.ts new file mode 100644 index 00000000..7cf3ef3e --- /dev/null +++ b/src/app/shared/components/hotkeys.directive.d.ts @@ -0,0 +1,18 @@ +import { ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { Hotkey } from 'angular2-hotkeys'; +import { TbCheatSheetComponent } from '@shared/components/cheatsheet.component'; +import * as i0 from "@angular/core"; +export declare class TbHotkeysDirective implements OnInit, OnDestroy { + private elementRef; + hotkeys: Hotkey[]; + cheatSheet: TbCheatSheetComponent; + private mousetrap; + private hotkeysList; + private preventIn; + constructor(elementRef: ElementRef); + ngOnInit(): void; + private bindEvent; + ngOnDestroy(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} diff --git a/src/app/shared/components/image-input.component.d.ts b/src/app/shared/components/image-input.component.d.ts new file mode 100644 index 00000000..145d4dbb --- /dev/null +++ b/src/app/shared/components/image-input.component.d.ts @@ -0,0 +1,46 @@ +import { AfterViewInit, OnDestroy } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { ControlValueAccessor } from '@angular/forms'; +import { Subscription } from 'rxjs'; +import { FlowDirective } from '@flowjs/ngx-flow'; +import { DomSanitizer, SafeUrl } from '@angular/platform-browser'; +import { UtilsService } from '@core/services/utils.service'; +import { DialogService } from '@core/services/dialog.service'; +import { TranslateService } from '@ngx-translate/core'; +import { FileSizePipe } from '@shared/pipe/file-size.pipe'; +import * as i0 from "@angular/core"; +export declare class ImageInputComponent extends PageComponent implements AfterViewInit, OnDestroy, ControlValueAccessor { + protected store: Store; + private utils; + private sanitizer; + private dialog; + private translate; + private fileSize; + label: string; + maxSizeByte: number; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + showClearButton: boolean; + showPreview: boolean; + inputId: string; + imageUrl: string; + safeImageUrl: SafeUrl; + flow: FlowDirective; + autoUploadSubscription: Subscription; + private propagateChange; + constructor(store: Store, utils: UtilsService, sanitizer: DomSanitizer, dialog: DialogService, translate: TranslateService, fileSize: FileSizePipe); + ngAfterViewInit(): void; + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string): void; + private updateModel; + clearImage(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/js-func.component.d.ts b/src/app/shared/components/js-func.component.d.ts new file mode 100644 index 00000000..5db64e86 --- /dev/null +++ b/src/app/shared/components/js-func.component.d.ts @@ -0,0 +1,68 @@ +import { ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormControl, Validator } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { UtilsService } from '@core/services/utils.service'; +import { TranslateService } from '@ngx-translate/core'; +import { RafService } from '@core/services/raf.service'; +import { TbEditorCompleter } from '@shared/models/ace/completion.models'; +import * as i0 from "@angular/core"; +export declare class JsFuncComponent implements OnInit, OnDestroy, ControlValueAccessor, Validator { + elementRef: ElementRef; + private utils; + private translate; + protected store: Store; + private raf; + javascriptEditorElmRef: ElementRef; + private jsEditor; + private editorsResizeCaf; + private editorResize$; + private ignoreChange; + toastTargetId: string; + functionName: string; + functionArgs: Array; + validationArgs: Array; + resultType: string; + disabled: boolean; + fillHeight: boolean; + editorCompleter: TbEditorCompleter; + globalVariables: Array; + disableUndefinedCheck: boolean; + helpId: string; + private noValidateValue; + get noValidate(): boolean; + set noValidate(value: boolean); + private requiredValue; + get required(): boolean; + set required(value: boolean); + functionArgsString: string; + fullscreen: boolean; + modelValue: string; + functionValid: boolean; + validationError: string; + errorShowed: boolean; + errorMarkers: number[]; + errorAnnotationId: number; + private propagateChange; + private hasErrors; + constructor(elementRef: ElementRef, utils: UtilsService, translate: TranslateService, store: Store, raf: RafService); + ngOnInit(): void; + ngOnDestroy(): void; + private onAceEditorResize; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(c: FormControl): { + jsFunc: { + valid: boolean; + }; + }; + beautifyJs(): void; + validateOnSubmit(): void; + private validateJsFunc; + private cleanupJsErrors; + writeValue(value: string): void; + updateView(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/json-content.component.d.ts b/src/app/shared/components/json-content.component.d.ts new file mode 100644 index 00000000..ca1bb471 --- /dev/null +++ b/src/app/shared/components/json-content.component.d.ts @@ -0,0 +1,62 @@ +import { ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; +import { ControlValueAccessor, FormControl, Validator } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { ContentType } from '@shared/models/constants'; +import { RafService } from '@core/services/raf.service'; +import * as i0 from "@angular/core"; +export declare class JsonContentComponent implements OnInit, ControlValueAccessor, Validator, OnChanges, OnDestroy { + elementRef: ElementRef; + protected store: Store; + private raf; + jsonEditorElmRef: ElementRef; + private jsonEditor; + private editorsResizeCaf; + private editorResize$; + private ignoreChange; + toastTargetId: string; + label: string; + contentType: ContentType; + disabled: boolean; + fillHeight: boolean; + editorStyle: { + [klass: string]: any; + }; + private readonlyValue; + get readonly(): boolean; + set readonly(value: boolean); + private validateContentValue; + get validateContent(): boolean; + set validateContent(value: boolean); + private validateOnChangeValue; + get validateOnChange(): boolean; + set validateOnChange(value: boolean); + fullscreen: boolean; + contentBody: string; + contentValid: boolean; + errorShowed: boolean; + private propagateChange; + constructor(elementRef: ElementRef, store: Store, raf: RafService); + ngOnInit(): void; + ngOnDestroy(): void; + private onAceEditorResize; + ngOnChanges(changes: SimpleChanges): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(c: FormControl): { + contentBody: { + valid: boolean; + }; + }; + validateOnSubmit(): void; + private doValidate; + cleanupJsonErrors(): void; + writeValue(value: string): void; + updateView(): void; + beautifyJSON(): void; + minifyJSON(): void; + onFullscreen(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/json-form/json-form-component.models.d.ts b/src/app/shared/components/json-form/json-form-component.models.d.ts new file mode 100644 index 00000000..8e86c874 --- /dev/null +++ b/src/app/shared/components/json-form/json-form-component.models.d.ts @@ -0,0 +1,4 @@ +import { JsonSettingsSchema } from '@shared/models/widget.models'; +export interface JsonFormComponentData extends JsonSettingsSchema { + model?: any; +} diff --git a/src/app/shared/components/json-form/json-form.component.d.ts b/src/app/shared/components/json-form/json-form.component.d.ts new file mode 100644 index 00000000..2a8ebd4f --- /dev/null +++ b/src/app/shared/components/json-form/json-form.component.d.ts @@ -0,0 +1,63 @@ +import { ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core'; +import { ControlValueAccessor, FormControl, Validator } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { JsonFormProps } from './react/json-form.models'; +import { DialogService } from '@app/core/services/dialog.service'; +import { JsonFormComponentData } from './json-form-component.models'; +import { GroupInfo } from '@shared/models/widget.models'; +import { TbPopoverService } from '@shared/components/popover.service'; +import * as i0 from "@angular/core"; +export declare class JsonFormComponent implements OnInit, ControlValueAccessor, Validator, OnChanges, OnDestroy { + elementRef: ElementRef; + private translate; + private dialogs; + private popoverService; + private renderer; + private viewContainerRef; + protected store: Store; + private cd; + reactRootElmRef: ElementRef; + reactFullscreenElmRef: ElementRef; + private readonlyValue; + get readonly(): boolean; + set required(value: boolean); + formProps: JsonFormProps; + data: JsonFormComponentData; + model: any; + schema: any; + form: any; + groupInfoes: GroupInfo[]; + isModelValid: boolean; + isFullscreen: boolean; + fullscreenFinishFn: (el: Element) => void; + private propagateChange; + private propagateChangePending; + private writingValue; + private updateViewPending; + constructor(elementRef: ElementRef, translate: TranslateService, dialogs: DialogService, popoverService: TbPopoverService, renderer: Renderer2, viewContainerRef: ViewContainerRef, store: Store, cd: ChangeDetectorRef); + ngOnInit(): void; + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(c: FormControl): { + modelValid: boolean; + }; + writeValue(data: JsonFormComponentData): void; + updateView(): void; + ngOnChanges(changes: SimpleChanges): void; + private onModelChange; + private onColorClick; + private onIconClick; + private onToggleFullscreen; + onFullscreenChanged(fullscreen: boolean): void; + private onHelpClick; + private updateAndRender; + private renderReactSchemaForm; + private destroyReactSchemaForm; + private validateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/json-form/react/json-form-ace-editor.d.ts b/src/app/shared/components/json-form/react/json-form-ace-editor.d.ts new file mode 100644 index 00000000..dcb8db75 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-ace-editor.d.ts @@ -0,0 +1,33 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare const _default: { + new

(props: any): { + componentDidMount(): void; + onChangeValidate(e: any, forceUpdate?: boolean): void; + defaultValue(): any; + render(): JSX.Element; + context: any; + setState(state: JsonFormFieldState | ((prevState: Readonly, props: Readonly

) => JsonFormFieldState | Pick) | Pick, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly

& Readonly<{ + children?: React.ReactNode; + }>; + state: Readonly; + refs: { + [key: string]: React.ReactInstance; + }; + shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + }; + contextType?: React.Context; +}; +export default _default; diff --git a/src/app/shared/components/json-form/react/json-form-array.d.ts b/src/app/shared/components/json-form/react/json-form-array.d.ts new file mode 100644 index 00000000..dcb8db75 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-array.d.ts @@ -0,0 +1,33 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare const _default: { + new

(props: any): { + componentDidMount(): void; + onChangeValidate(e: any, forceUpdate?: boolean): void; + defaultValue(): any; + render(): JSX.Element; + context: any; + setState(state: JsonFormFieldState | ((prevState: Readonly, props: Readonly

) => JsonFormFieldState | Pick) | Pick, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly

& Readonly<{ + children?: React.ReactNode; + }>; + state: Readonly; + refs: { + [key: string]: React.ReactInstance; + }; + shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + }; + contextType?: React.Context; +}; +export default _default; diff --git a/src/app/shared/components/json-form/react/json-form-base-component.d.ts b/src/app/shared/components/json-form/react/json-form-base-component.d.ts new file mode 100644 index 00000000..e1367d7d --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-base-component.d.ts @@ -0,0 +1,33 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare const _default: (ThingsboardBaseComponent: any) => { + new

(props: any): { + componentDidMount(): void; + onChangeValidate(e: any, forceUpdate?: boolean): void; + defaultValue(): any; + render(): JSX.Element; + context: any; + setState(state: JsonFormFieldState | ((prevState: Readonly, props: Readonly

) => JsonFormFieldState | Pick) | Pick, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly

& Readonly<{ + children?: React.ReactNode; + }>; + state: Readonly; + refs: { + [key: string]: React.ReactInstance; + }; + shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + }; + contextType?: React.Context; +}; +export default _default; diff --git a/src/app/shared/components/json-form/react/json-form-checkbox.d.ts b/src/app/shared/components/json-form/react/json-form-checkbox.d.ts new file mode 100644 index 00000000..15bc2731 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-checkbox.d.ts @@ -0,0 +1,33 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from './json-form.models.js'; +declare const _default: { + new

(props: any): { + componentDidMount(): void; + onChangeValidate(e: any, forceUpdate?: boolean): void; + defaultValue(): any; + render(): JSX.Element; + context: any; + setState(state: JsonFormFieldState | ((prevState: Readonly, props: Readonly

) => JsonFormFieldState | Pick) | Pick, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly

& Readonly<{ + children?: React.ReactNode; + }>; + state: Readonly; + refs: { + [key: string]: React.ReactInstance; + }; + shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + }; + contextType?: React.Context; +}; +export default _default; diff --git a/src/app/shared/components/json-form/react/json-form-color.d.ts b/src/app/shared/components/json-form/react/json-form-color.d.ts new file mode 100644 index 00000000..dcb8db75 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-color.d.ts @@ -0,0 +1,33 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare const _default: { + new

(props: any): { + componentDidMount(): void; + onChangeValidate(e: any, forceUpdate?: boolean): void; + defaultValue(): any; + render(): JSX.Element; + context: any; + setState(state: JsonFormFieldState | ((prevState: Readonly, props: Readonly

) => JsonFormFieldState | Pick) | Pick, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly

& Readonly<{ + children?: React.ReactNode; + }>; + state: Readonly; + refs: { + [key: string]: React.ReactInstance; + }; + shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + }; + contextType?: React.Context; +}; +export default _default; diff --git a/src/app/shared/components/json-form/react/json-form-css.d.ts b/src/app/shared/components/json-form/react/json-form-css.d.ts new file mode 100644 index 00000000..dd751b4d --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-css.d.ts @@ -0,0 +1,9 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +import { Observable } from 'rxjs/internal/Observable'; +declare class ThingsboardCss extends React.Component { + constructor(props: any); + onTidyCss(css: string): Observable; + render(): JSX.Element; +} +export default ThingsboardCss; diff --git a/src/app/shared/components/json-form/react/json-form-date.d.ts b/src/app/shared/components/json-form/react/json-form-date.d.ts new file mode 100644 index 00000000..dcb8db75 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-date.d.ts @@ -0,0 +1,33 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare const _default: { + new

(props: any): { + componentDidMount(): void; + onChangeValidate(e: any, forceUpdate?: boolean): void; + defaultValue(): any; + render(): JSX.Element; + context: any; + setState(state: JsonFormFieldState | ((prevState: Readonly, props: Readonly

) => JsonFormFieldState | Pick) | Pick, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly

& Readonly<{ + children?: React.ReactNode; + }>; + state: Readonly; + refs: { + [key: string]: React.ReactInstance; + }; + shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + }; + contextType?: React.Context; +}; +export default _default; diff --git a/src/app/shared/components/json-form/react/json-form-fieldset.d.ts b/src/app/shared/components/json-form/react/json-form-fieldset.d.ts new file mode 100644 index 00000000..96017f36 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-fieldset.d.ts @@ -0,0 +1,6 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare class ThingsboardFieldSet extends React.Component { + render(): JSX.Element; +} +export default ThingsboardFieldSet; diff --git a/src/app/shared/components/json-form/react/json-form-help.d.ts b/src/app/shared/components/json-form/react/json-form-help.d.ts new file mode 100644 index 00000000..20598f0d --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-help.d.ts @@ -0,0 +1,6 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare class ThingsboardHelp extends React.Component { + render(): JSX.Element; +} +export default ThingsboardHelp; diff --git a/src/app/shared/components/json-form/react/json-form-html.d.ts b/src/app/shared/components/json-form/react/json-form-html.d.ts new file mode 100644 index 00000000..48b40a07 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-html.d.ts @@ -0,0 +1,9 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +import { Observable } from 'rxjs/internal/Observable'; +declare class ThingsboardHtml extends React.Component { + constructor(props: any); + onTidyHtml(html: string): Observable; + render(): JSX.Element; +} +export default ThingsboardHtml; diff --git a/src/app/shared/components/json-form/react/json-form-icon.d.ts b/src/app/shared/components/json-form/react/json-form-icon.d.ts new file mode 100644 index 00000000..dcb8db75 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-icon.d.ts @@ -0,0 +1,33 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare const _default: { + new

(props: any): { + componentDidMount(): void; + onChangeValidate(e: any, forceUpdate?: boolean): void; + defaultValue(): any; + render(): JSX.Element; + context: any; + setState(state: JsonFormFieldState | ((prevState: Readonly, props: Readonly

) => JsonFormFieldState | Pick) | Pick, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly

& Readonly<{ + children?: React.ReactNode; + }>; + state: Readonly; + refs: { + [key: string]: React.ReactInstance; + }; + shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + }; + contextType?: React.Context; +}; +export default _default; diff --git a/src/app/shared/components/json-form/react/json-form-image.d.ts b/src/app/shared/components/json-form/react/json-form-image.d.ts new file mode 100644 index 00000000..558da700 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-image.d.ts @@ -0,0 +1,33 @@ +import React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare const _default: { + new

(props: any): { + componentDidMount(): void; + onChangeValidate(e: any, forceUpdate?: boolean): void; + defaultValue(): any; + render(): JSX.Element; + context: any; + setState(state: JsonFormFieldState | ((prevState: Readonly, props: Readonly

) => JsonFormFieldState | Pick) | Pick, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly

& Readonly<{ + children?: React.ReactNode; + }>; + state: Readonly; + refs: { + [key: string]: React.ReactInstance; + }; + shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + }; + contextType?: React.Context; +}; +export default _default; diff --git a/src/app/shared/components/json-form/react/json-form-javascript.d.ts b/src/app/shared/components/json-form/react/json-form-javascript.d.ts new file mode 100644 index 00000000..2a0c41c1 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-javascript.d.ts @@ -0,0 +1,9 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +import { Observable } from 'rxjs/internal/Observable'; +declare class ThingsboardJavaScript extends React.Component { + constructor(props: any); + onTidyJavascript(javascript: string): Observable; + render(): JSX.Element; +} +export default ThingsboardJavaScript; diff --git a/src/app/shared/components/json-form/react/json-form-json.d.ts b/src/app/shared/components/json-form/react/json-form-json.d.ts new file mode 100644 index 00000000..e23e58cb --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-json.d.ts @@ -0,0 +1,9 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +import { Observable } from 'rxjs/internal/Observable'; +declare class ThingsboardJson extends React.Component { + constructor(props: any); + onTidyJson(json: string): Observable; + render(): JSX.Element; +} +export default ThingsboardJson; diff --git a/src/app/shared/components/json-form/react/json-form-markdown.d.ts b/src/app/shared/components/json-form/react/json-form-markdown.d.ts new file mode 100644 index 00000000..72b4552e --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-markdown.d.ts @@ -0,0 +1,7 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare class ThingsboardMarkdown extends React.Component { + constructor(props: any); + render(): JSX.Element; +} +export default ThingsboardMarkdown; diff --git a/src/app/shared/components/json-form/react/json-form-number.d.ts b/src/app/shared/components/json-form/react/json-form-number.d.ts new file mode 100644 index 00000000..dcb8db75 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-number.d.ts @@ -0,0 +1,33 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare const _default: { + new

(props: any): { + componentDidMount(): void; + onChangeValidate(e: any, forceUpdate?: boolean): void; + defaultValue(): any; + render(): JSX.Element; + context: any; + setState(state: JsonFormFieldState | ((prevState: Readonly, props: Readonly

) => JsonFormFieldState | Pick) | Pick, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly

& Readonly<{ + children?: React.ReactNode; + }>; + state: Readonly; + refs: { + [key: string]: React.ReactInstance; + }; + shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + }; + contextType?: React.Context; +}; +export default _default; diff --git a/src/app/shared/components/json-form/react/json-form-radios.d.ts b/src/app/shared/components/json-form/react/json-form-radios.d.ts new file mode 100644 index 00000000..dcb8db75 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-radios.d.ts @@ -0,0 +1,33 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare const _default: { + new

(props: any): { + componentDidMount(): void; + onChangeValidate(e: any, forceUpdate?: boolean): void; + defaultValue(): any; + render(): JSX.Element; + context: any; + setState(state: JsonFormFieldState | ((prevState: Readonly, props: Readonly

) => JsonFormFieldState | Pick) | Pick, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly

& Readonly<{ + children?: React.ReactNode; + }>; + state: Readonly; + refs: { + [key: string]: React.ReactInstance; + }; + shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + }; + contextType?: React.Context; +}; +export default _default; diff --git a/src/app/shared/components/json-form/react/json-form-rc-select.d.ts b/src/app/shared/components/json-form/react/json-form-rc-select.d.ts new file mode 100644 index 00000000..dcb8db75 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-rc-select.d.ts @@ -0,0 +1,33 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare const _default: { + new

(props: any): { + componentDidMount(): void; + onChangeValidate(e: any, forceUpdate?: boolean): void; + defaultValue(): any; + render(): JSX.Element; + context: any; + setState(state: JsonFormFieldState | ((prevState: Readonly, props: Readonly

) => JsonFormFieldState | Pick) | Pick, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly

& Readonly<{ + children?: React.ReactNode; + }>; + state: Readonly; + refs: { + [key: string]: React.ReactInstance; + }; + shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + }; + contextType?: React.Context; +}; +export default _default; diff --git a/src/app/shared/components/json-form/react/json-form-react.d.ts b/src/app/shared/components/json-form/react/json-form-react.d.ts new file mode 100644 index 00000000..7a2d50b0 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-react.d.ts @@ -0,0 +1,8 @@ +import * as React from 'react'; +import { JsonFormProps } from './json-form.models'; +declare class ReactSchemaForm extends React.Component { + static defaultProps: JsonFormProps; + constructor(props: any); + render(): JSX.Element; +} +export default ReactSchemaForm; diff --git a/src/app/shared/components/json-form/react/json-form-schema-form.d.ts b/src/app/shared/components/json-form/react/json-form-schema-form.d.ts new file mode 100644 index 00000000..e880e011 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-schema-form.d.ts @@ -0,0 +1,20 @@ +/// +import * as React from 'react'; +import { JsonFormData, JsonFormProps, onChangeFn, OnColorClickFn, onHelpClickFn, OnIconClickFn, onToggleFullscreenFn } from './json-form.models'; +import { MouseEvent } from 'react'; +declare class ThingsboardSchemaForm extends React.Component { + private hasConditions; + private readonly mapper; + constructor(props: any); + onChange(key: (string | number)[], val: any, forceUpdate?: boolean): void; + onColorClick(key: (string | number)[], val: tinycolor.ColorFormats.RGBA, colorSelectedFn: (color: tinycolor.ColorFormats.RGBA) => void): void; + onIconClick(key: (string | number)[], val: string, iconSelectedFn: (icon: string) => void): void; + onToggleFullscreen(fullscreenFinishFn?: (el: Element) => void): void; + onHelpClick(event: MouseEvent, helpId: string, helpVisibleFn: (visible: boolean) => void, helpReadyFn: (ready: boolean) => void): void; + builder(form: JsonFormData, model: any, index: number, onChange: onChangeFn, onColorClick: OnColorClickFn, onIconClick: OnIconClickFn, onToggleFullscreen: onToggleFullscreenFn, onHelpClick: onHelpClickFn, mapper: { + [type: string]: any; + }): JSX.Element; + createSchema(theForm: any[]): JSX.Element; + render(): JSX.Element; +} +export default ThingsboardSchemaForm; diff --git a/src/app/shared/components/json-form/react/json-form-select.d.ts b/src/app/shared/components/json-form/react/json-form-select.d.ts new file mode 100644 index 00000000..dcb8db75 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-select.d.ts @@ -0,0 +1,33 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare const _default: { + new

(props: any): { + componentDidMount(): void; + onChangeValidate(e: any, forceUpdate?: boolean): void; + defaultValue(): any; + render(): JSX.Element; + context: any; + setState(state: JsonFormFieldState | ((prevState: Readonly, props: Readonly

) => JsonFormFieldState | Pick) | Pick, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly

& Readonly<{ + children?: React.ReactNode; + }>; + state: Readonly; + refs: { + [key: string]: React.ReactInstance; + }; + shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + }; + contextType?: React.Context; +}; +export default _default; diff --git a/src/app/shared/components/json-form/react/json-form-text.d.ts b/src/app/shared/components/json-form/react/json-form-text.d.ts new file mode 100644 index 00000000..dcb8db75 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-text.d.ts @@ -0,0 +1,33 @@ +import * as React from 'react'; +import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; +declare const _default: { + new

(props: any): { + componentDidMount(): void; + onChangeValidate(e: any, forceUpdate?: boolean): void; + defaultValue(): any; + render(): JSX.Element; + context: any; + setState(state: JsonFormFieldState | ((prevState: Readonly, props: Readonly

) => JsonFormFieldState | Pick) | Pick, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly

& Readonly<{ + children?: React.ReactNode; + }>; + state: Readonly; + refs: { + [key: string]: React.ReactInstance; + }; + shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + }; + contextType?: React.Context; +}; +export default _default; diff --git a/src/app/shared/components/json-form/react/json-form-utils.d.ts b/src/app/shared/components/json-form/react/json-form-utils.d.ts new file mode 100644 index 00000000..8e9e60d8 --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form-utils.d.ts @@ -0,0 +1,20 @@ +import { FormOption, JsonFormData, JsonSchemaData, SchemaValidationResult } from './json-form.models'; +declare function validateBySchema(schema: any, value: any): SchemaValidationResult; +declare function validate(form: any, value: any): SchemaValidationResult; +declare function merge(schema: any, form: any[], ignore: { + [key: string]: boolean; +}, options: FormOption, isReadonly?: boolean): any[]; +declare function selectOrSet(projection: string | (string | number)[], obj: any, valueToSet?: any): any; +declare function updateValue(projection: string | (string | number)[], obj: any, valueToSet: any): boolean; +declare function traverseSchema(schema: JsonSchemaData, fn: (prop: any, path: string[]) => any, path?: string[], ignoreArrays?: boolean): void; +declare function traverseForm(form: JsonFormData, fn: (form: JsonFormData) => any): void; +declare const utils: { + validateBySchema: typeof validateBySchema; + validate: typeof validate; + merge: typeof merge; + updateValue: typeof updateValue; + selectOrSet: typeof selectOrSet; + traverseSchema: typeof traverseSchema; + traverseForm: typeof traverseForm; +}; +export default utils; diff --git a/src/app/shared/components/json-form/react/json-form.models.d.ts b/src/app/shared/components/json-form/react/json-form.models.d.ts new file mode 100644 index 00000000..073f1b7b --- /dev/null +++ b/src/app/shared/components/json-form/react/json-form.models.d.ts @@ -0,0 +1,114 @@ +/// +import { GroupInfo } from '@shared/models/widget.models'; +import { MouseEvent } from 'react'; +export interface SchemaValidationResult { + valid: boolean; + error?: { + message?: string; + }; +} +export interface FormOption { + formDefaults?: { + startEmpty?: boolean; + readonly?: boolean; + }; + supressPropertyTitles?: boolean; +} +export interface DefaultsFormOptions { + global?: FormOption; + required?: boolean; + path?: string[]; + lookup?: { + [key: string]: any; + }; + ignore?: { + [key: string]: boolean; + }; +} +export declare type onChangeFn = (key: (string | number)[], val: any, forceUpdate?: boolean) => void; +export declare type OnColorClickFn = (key: (string | number)[], val: tinycolor.ColorFormats.RGBA, colorSelectedFn: (color: tinycolor.ColorFormats.RGBA) => void) => void; +export declare type OnIconClickFn = (key: (string | number)[], val: string, iconSelectedFn: (icon: string) => void) => void; +export declare type onToggleFullscreenFn = (fullscreenFinishFn?: (el: Element) => void) => void; +export declare type onHelpClickFn = (event: MouseEvent, helpId: string, helpVisibleFn: (visible: boolean) => void, helpReadyFn: (ready: boolean) => void) => void; +export interface JsonFormProps { + model?: any; + schema?: any; + form?: any; + groupInfoes?: GroupInfo[]; + isFullscreen: boolean; + ignore?: { + [key: string]: boolean; + }; + option: FormOption; + onModelChange?: onChangeFn; + onColorClick?: OnColorClickFn; + onIconClick?: OnIconClickFn; + onToggleFullscreen?: onToggleFullscreenFn; + onHelpClick?: onHelpClickFn; + mapper?: { + [type: string]: any; + }; +} +export interface KeyLabelItem { + key: string; + label: string; + value?: string; +} +export interface JsonSchemaData { + type: string; + default: any; + items?: JsonSchemaData; + properties?: any; +} +export interface JsonFormData { + type: string; + key: (string | number)[]; + title: string; + readonly: boolean; + required: boolean; + default?: any; + condition?: string; + style?: any; + rows?: number; + rowsMax?: number; + placeholder?: string; + schema: JsonSchemaData; + titleMap: { + value: any; + name: string; + }[]; + items?: Array | Array; + tabs?: Array; + tags?: any; + helpId?: string; + startEmpty?: boolean; + [key: string]: any; +} +export declare type ComponentBuilderFn = (form: JsonFormData, model: any, index: number, onChange: onChangeFn, onColorClick: OnColorClickFn, onIconClick: OnIconClickFn, onToggleFullscreen: onToggleFullscreenFn, onHelpClick: onHelpClickFn, mapper: { + [type: string]: any; +}) => JSX.Element; +export interface JsonFormFieldProps { + value: any; + model: any; + form: JsonFormData; + builder: ComponentBuilderFn; + mapper?: { + [type: string]: any; + }; + onChange?: onChangeFn; + onColorClick?: OnColorClickFn; + onIconClick?: OnIconClickFn; + onChangeValidate?: (e: any, forceUpdate?: boolean) => void; + onToggleFullscreen?: onToggleFullscreenFn; + onHelpClick?: onHelpClickFn; + valid?: boolean; + error?: string; + options?: { + setSchemaDefaults?: boolean; + }; +} +export interface JsonFormFieldState { + value?: any; + valid?: boolean; + error?: string; +} diff --git a/src/app/shared/components/json-form/react/styles/thingsboardTheme.d.ts b/src/app/shared/components/json-form/react/styles/thingsboardTheme.d.ts new file mode 100644 index 00000000..688632e6 --- /dev/null +++ b/src/app/shared/components/json-form/react/styles/thingsboardTheme.d.ts @@ -0,0 +1,3 @@ +import { ThemeOptions } from '@material-ui/core/styles'; +declare const _default: ThemeOptions; +export default _default; diff --git a/src/app/shared/components/json-object-edit.component.d.ts b/src/app/shared/components/json-object-edit.component.d.ts new file mode 100644 index 00000000..a054cc36 --- /dev/null +++ b/src/app/shared/components/json-object-edit.component.d.ts @@ -0,0 +1,58 @@ +import { ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormControl, Validator } from '@angular/forms'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { RafService } from '@core/services/raf.service'; +import * as i0 from "@angular/core"; +export declare class JsonObjectEditComponent implements OnInit, ControlValueAccessor, Validator, OnDestroy { + elementRef: ElementRef; + protected store: Store; + private raf; + jsonEditorElmRef: ElementRef; + private jsonEditor; + private editorsResizeCaf; + private editorResize$; + toastTargetId: string; + label: string; + disabled: boolean; + fillHeight: boolean; + editorStyle: { + [klass: string]: any; + }; + sort: (key: string, value: any) => any; + private requiredValue; + get required(): boolean; + set required(value: boolean); + private readonlyValue; + get readonly(): boolean; + set readonly(value: boolean); + fullscreen: boolean; + modelValue: any; + contentValue: string; + objectValid: boolean; + validationError: string; + errorShowed: boolean; + ignoreChange: boolean; + private propagateChange; + constructor(elementRef: ElementRef, store: Store, raf: RafService); + ngOnInit(): void; + ngOnDestroy(): void; + private onAceEditorResize; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + validate(c: FormControl): { + jsonParseError: { + valid: boolean; + }; + }; + validateOnSubmit(): void; + cleanupJsonErrors(): void; + beautifyJSON(): void; + minifyJSON(): void; + writeValue(value: any): void; + updateView(): void; + onFullscreen(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/json-object-view.component.d.ts b/src/app/shared/components/json-object-view.component.d.ts new file mode 100644 index 00000000..3df1ff91 --- /dev/null +++ b/src/app/shared/components/json-object-view.component.d.ts @@ -0,0 +1,38 @@ +import { ElementRef, OnInit, Renderer2 } from '@angular/core'; +import { Ace } from 'ace-builds'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { RafService } from '@core/services/raf.service'; +import * as i0 from "@angular/core"; +export declare class JsonObjectViewComponent implements OnInit { + elementRef: ElementRef; + protected store: Store; + private raf; + private renderer; + jsonViewerElmRef: ElementRef; + private jsonViewer; + private viewerElement; + private propagateChange; + private modelValue; + private contentValue; + label: string; + fillHeight: boolean; + editorStyle: { + [klass: string]: any; + }; + sort: (key: string, value: any) => any; + private widthValue; + get autoWidth(): boolean; + set autoWidth(value: boolean); + private heigthValue; + get autoHeight(): boolean; + set autoHeight(value: boolean); + constructor(elementRef: ElementRef, store: Store, raf: RafService, renderer: Renderer2); + ngOnInit(): void; + updateEditorSize(editorElement: any, content: string, editor: Ace.Editor): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + writeValue(value: any): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/kv-map.component.d.ts b/src/app/shared/components/kv-map.component.d.ts new file mode 100644 index 00000000..e92d743c --- /dev/null +++ b/src/app/shared/components/kv-map.component.d.ts @@ -0,0 +1,37 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, FormArray, FormBuilder, FormControl, FormGroup, Validator } from '@angular/forms'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import * as i0 from "@angular/core"; +export declare class KeyValMapComponent extends PageComponent implements ControlValueAccessor, OnInit, Validator { + protected store: Store; + private fb; + disabled: boolean; + titleText: string; + keyPlaceholderText: string; + valuePlaceholderText: string; + noDataText: string; + kvListFormGroup: FormGroup; + private propagateChange; + private valueChangeSubscription; + constructor(store: Store, fb: FormBuilder); + ngOnInit(): void; + keyValsFormArray(): FormArray; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState?(isDisabled: boolean): void; + writeValue(keyValMap: { + [key: string]: string; + }): void; + removeKeyVal(index: number): void; + addKeyVal(): void; + validate(c: FormControl): { + keyVals: { + valid: boolean; + }; + }; + private updateModel; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/led-light.component.d.ts b/src/app/shared/components/led-light.component.d.ts new file mode 100644 index 00000000..5b0d8a0c --- /dev/null +++ b/src/app/shared/components/led-light.component.d.ts @@ -0,0 +1,26 @@ +import { AfterViewInit, ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class LedLightComponent implements OnInit, AfterViewInit, OnChanges { + private elementRef; + size: number; + colorOn: string; + colorOff: string; + offOpacity: number; + private enabledValue; + get enabled(): boolean; + set enabled(value: boolean); + private canvasSize; + private radius; + private glowSize; + private glowColor; + private paper; + private circleElement; + constructor(elementRef: ElementRef); + ngOnInit(): void; + ngAfterViewInit(): void; + ngOnChanges(changes: SimpleChanges): void; + private update; + private draw; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/logo.component.d.ts b/src/app/shared/components/logo.component.d.ts new file mode 100644 index 00000000..a0a17861 --- /dev/null +++ b/src/app/shared/components/logo.component.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +export declare class LogoComponent { + logo: string; + gotoThingsboard(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/markdown.component.d.ts b/src/app/shared/components/markdown.component.d.ts new file mode 100644 index 00000000..933f7eb8 --- /dev/null +++ b/src/app/shared/components/markdown.component.d.ts @@ -0,0 +1,43 @@ +import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, SimpleChanges, Type, ViewContainerRef } from '@angular/core'; +import { HelpService } from '@core/services/help.service'; +import { MarkdownService } from 'ngx-markdown'; +import { DynamicComponentFactoryService } from '@core/services/dynamic-component-factory.service'; +import * as i0 from "@angular/core"; +export declare class TbMarkdownComponent implements OnChanges { + private help; + private cd; + markdownService: MarkdownService; + private sharedModule; + private dynamicComponentFactoryService; + markdownContainer: ViewContainerRef; + fallbackElement: ElementRef; + data: string | undefined; + context: any; + additionalCompileModules: Type[]; + markdownClass: string | undefined; + style: { + [klass: string]: any; + }; + get lineNumbers(): boolean; + set lineNumbers(value: boolean); + get fallbackToPlainMarkdown(): boolean; + set fallbackToPlainMarkdown(value: boolean); + ready: EventEmitter; + private lineNumbersValue; + private fallbackToPlainMarkdownValue; + isMarkdownReady: boolean; + error: any; + private tbMarkdownInstanceComponentRef; + private tbMarkdownInstanceComponentFactory; + constructor(help: HelpService, cd: ChangeDetectorRef, markdownService: MarkdownService, sharedModule: Type, dynamicComponentFactoryService: DynamicComponentFactoryService); + ngOnChanges(changes: SimpleChanges): void; + private render; + private handleError; + private handlePlugins; + private setPluginClass; + private handleImages; + private sanitizeCurlyBraces; + private destroyMarkdownInstanceResources; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/marked-options.service.d.ts b/src/app/shared/components/marked-options.service.d.ts new file mode 100644 index 00000000..517d41b2 --- /dev/null +++ b/src/app/shared/components/marked-options.service.d.ts @@ -0,0 +1,29 @@ +/// +import { MarkedOptions, MarkedRenderer } from 'ngx-markdown'; +import { TranslateService } from '@ngx-translate/core'; +import { Clipboard } from '@angular/cdk/clipboard'; +import * as i0 from "@angular/core"; +export declare class MarkedOptionsService extends MarkedOptions { + private translate; + private clipboardService; + private readonly window; + private readonly document; + renderer: MarkedRenderer; + headerIds: boolean; + gfm: boolean; + breaks: boolean; + pedantic: boolean; + smartLists: boolean; + smartypants: boolean; + mangle: boolean; + private renderer2; + private id; + constructor(translate: TranslateService, clipboardService: Clipboard, window: Window, document: Document); + private wrapDiv; + private wrapCopyCode; + private onSelectionChange; + private getSelectedText; + private markdownCopyCode; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/shared/components/mat-chip-draggable.directive.d.ts b/src/app/shared/components/mat-chip-draggable.directive.d.ts new file mode 100644 index 00000000..40907c4d --- /dev/null +++ b/src/app/shared/components/mat-chip-draggable.directive.d.ts @@ -0,0 +1,19 @@ +import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core'; +import { MatChipList } from '@angular/material/chips'; +import * as i0 from "@angular/core"; +export interface MatChipDropEvent { + from: number; + to: number; +} +export declare class MatChipDraggableDirective implements AfterViewInit { + private chipsList; + private elementRef; + chipDrop: EventEmitter; + private draggableChips; + constructor(chipsList: MatChipList, elementRef: ElementRef); + onDocumentMouseUp(): void; + ngAfterViewInit(): void; + private configureDraggableChipList; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} diff --git a/src/app/shared/components/material-icon-select.component.d.ts b/src/app/shared/components/material-icon-select.component.d.ts new file mode 100644 index 00000000..83820532 --- /dev/null +++ b/src/app/shared/components/material-icon-select.component.d.ts @@ -0,0 +1,26 @@ +import { OnInit } from '@angular/core'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { DialogService } from '@core/services/dialog.service'; +import * as i0 from "@angular/core"; +export declare class MaterialIconSelectComponent extends PageComponent implements OnInit, ControlValueAccessor { + protected store: Store; + private dialogs; + private fb; + disabled: boolean; + private modelValue; + private propagateChange; + materialIconFormGroup: FormGroup; + constructor(store: Store, dialogs: DialogService, fb: FormBuilder); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string): void; + private updateModel; + openIconDialog(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/message-type-autocomplete.component.d.ts b/src/app/shared/components/message-type-autocomplete.component.d.ts new file mode 100644 index 00000000..c031a1d8 --- /dev/null +++ b/src/app/shared/components/message-type-autocomplete.component.d.ts @@ -0,0 +1,39 @@ +import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { MessageType } from '@shared/models/rule-node.models'; +import * as i0 from "@angular/core"; +export declare class MessageTypeAutocompleteComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy { + private store; + translate: TranslateService; + private fb; + messageTypeFormGroup: FormGroup; + modelValue: string | null; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + messageTypeInput: ElementRef; + filteredMessageTypes: Observable>; + searchText: string; + private dirty; + private propagateChange; + constructor(store: Store, translate: TranslateService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + ngOnDestroy(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string | null): void; + onFocus(): void; + updateView(value: MessageType | string | null): void; + displayMessageTypeFn(messageType?: MessageType | string): string | undefined; + fetchMessageTypes(searchText?: string): Observable>; + clear(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/nav-tree.component.d.ts b/src/app/shared/components/nav-tree.component.d.ts new file mode 100644 index 00000000..0e0d8b39 --- /dev/null +++ b/src/app/shared/components/nav-tree.component.d.ts @@ -0,0 +1,56 @@ +import { ElementRef, NgZone, OnInit } from '@angular/core'; +import * as i0 from "@angular/core"; +export interface NavTreeNodeState { + disabled?: boolean; + opened?: boolean; + loaded?: boolean; +} +export interface NavTreeNode { + id: string; + icon?: boolean; + text?: string; + state?: NavTreeNodeState; + children?: NavTreeNode[] | boolean; + data?: any; +} +export interface NavTreeEditCallbacks { + selectNode?: (id: string) => void; + deselectAll?: () => void; + getNode?: (id: string) => NavTreeNode; + getParentNodeId?: (id: string) => string; + openNode?: (id: string, cb?: () => void) => void; + nodeIsOpen?: (id: string) => boolean; + nodeIsLoaded?: (id: string) => boolean; + refreshNode?: (id: string) => void; + updateNode?: (id: string, newName: string, updatedData?: any) => void; + createNode?: (parentId: string, node: NavTreeNode, pos: number | string) => void; + deleteNode?: (id: string) => void; + disableNode?: (id: string) => void; + enableNode?: (id: string) => void; + setNodeHasChildren?: (id: string, hasChildren: boolean) => void; + search?: (searchText: string) => void; + clearSearch?: () => void; +} +export declare type NodesCallback = (nodes: NavTreeNode[]) => void; +export declare type LoadNodesCallback = (node: NavTreeNode, cb: NodesCallback) => void; +export declare type NodeSearchCallback = (searchText: string, node: NavTreeNode) => boolean; +export declare type NodeSelectedCallback = (node: NavTreeNode, event: Event) => void; +export declare type NodesInsertedCallback = (nodes: string[], parent: string) => void; +export declare class NavTreeComponent implements OnInit { + private elementRef; + private ngZone; + private enableSearchValue; + get enableSearch(): boolean; + set enableSearch(value: boolean); + loadNodes: LoadNodesCallback; + searchCallback: NodeSearchCallback; + onNodeSelected: NodeSelectedCallback; + onNodesInserted: NodesInsertedCallback; + editCallbacks: NavTreeEditCallbacks; + private treeElement; + constructor(elementRef: ElementRef, ngZone: NgZone); + ngOnInit(): void; + private initTree; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/ota-package/ota-package-autocomplete.component.d.ts b/src/app/shared/components/ota-package/ota-package-autocomplete.component.d.ts new file mode 100644 index 00000000..f95ae783 --- /dev/null +++ b/src/app/shared/components/ota-package/ota-package-autocomplete.component.d.ts @@ -0,0 +1,67 @@ +import { ElementRef, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityId } from '@shared/models/id/entity-id'; +import { EntityService } from '@core/http/entity.service'; +import { TruncatePipe } from '@shared/pipe/truncate.pipe'; +import { OtaPackageInfo, OtaUpdateType } from '@shared/models/ota-package.models'; +import { OtaPackageService } from '@core/http/ota-package.service'; +import * as i0 from "@angular/core"; +export declare class OtaPackageAutocompleteComponent implements ControlValueAccessor, OnInit { + private store; + translate: TranslateService; + truncate: TruncatePipe; + private entityService; + private otaPackageService; + private fb; + otaPackageFormGroup: FormGroup; + modelValue: string | EntityId | null; + private otaUpdateType; + get type(): OtaUpdateType; + set type(value: OtaUpdateType); + private deviceProfile; + get deviceProfileId(): string; + set deviceProfileId(value: string); + labelText: string; + requiredText: string; + useFullEntityId: boolean; + showDetailsPageLink: boolean; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + packageInput: ElementRef; + filteredPackages: Observable>; + searchText: string; + packageURL: string; + private dirty; + private cleanFilteredPackages; + private propagateChange; + constructor(store: Store, translate: TranslateService, truncate: TruncatePipe, entityService: EntityService, otaPackageService: OtaPackageService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + ngOnDestroy(): void; + getCurrentEntity(): OtaPackageInfo | null; + setDisabledState(isDisabled: boolean): void; + textIsNotEmpty(text: string): boolean; + writeValue(value: string | EntityId | null): void; + onFocus(): void; + reset(): void; + updateView(value: string | null): void; + displayPackageFn(packageInfo?: OtaPackageInfo): string | undefined; + fetchPackages(searchText?: string): Observable>; + clear(): void; + get placeholderText(): string; + get requiredErrorText(): string; + get notFoundPackage(): string; + get notMatchingPackage(): string; + get hintText(): string; + packageTitleText(firpackageInfomware: OtaPackageInfo): string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/page.component.d.ts b/src/app/shared/components/page.component.d.ts new file mode 100644 index 00000000..64159a7b --- /dev/null +++ b/src/app/shared/components/page.component.d.ts @@ -0,0 +1,17 @@ +import { OnDestroy } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { Observable, Subscription } from 'rxjs'; +import { AbstractControl } from '@angular/forms'; +import * as i0 from "@angular/core"; +export declare abstract class PageComponent implements OnDestroy { + protected store: Store; + isLoading$: Observable; + loadingSubscription: Subscription; + disabledOnLoadFormControls: Array; + protected constructor(store: Store); + protected registerDisableOnLoadFormControl(control: AbstractControl): void; + ngOnDestroy(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} diff --git a/src/app/shared/components/popover.component.d.ts b/src/app/shared/components/popover.component.d.ts new file mode 100644 index 00000000..54135caf --- /dev/null +++ b/src/app/shared/components/popover.component.d.ts @@ -0,0 +1,120 @@ +import { AfterViewInit, ChangeDetectorRef, ComponentFactory, ComponentFactoryResolver, ComponentRef, ElementRef, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core'; +import { Direction, Directionality } from '@angular/cdk/bidi'; +import { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectionPositionPair } from '@angular/cdk/overlay'; +import { Subject } from 'rxjs'; +import { PopoverPlacement } from '@shared/components/popover.models'; +import * as i0 from "@angular/core"; +export declare type TbPopoverTrigger = 'click' | 'focus' | 'hover' | null; +export declare class TbPopoverDirective implements OnChanges, OnDestroy, AfterViewInit { + private elementRef; + private hostView; + private resolver; + private renderer; + content?: string | TemplateRef; + trigger?: TbPopoverTrigger; + placement?: string | string[]; + origin?: ElementRef; + visible?: boolean; + mouseEnterDelay?: number; + mouseLeaveDelay?: number; + overlayClassName?: string; + overlayStyle?: { + [klass: string]: any; + }; + tbPopoverBackdrop: boolean; + readonly visibleChange: EventEmitter; + componentFactory: ComponentFactory; + component?: TbPopoverComponent; + private readonly destroy$; + private readonly triggerDisposables; + private delayTimer?; + private internalVisible; + constructor(elementRef: ElementRef, hostView: ViewContainerRef, resolver: ComponentFactoryResolver, renderer: Renderer2); + ngOnChanges(changes: SimpleChanges): void; + ngAfterViewInit(): void; + ngOnDestroy(): void; + show(): void; + hide(): void; + updatePosition(): void; + private createComponent; + private registerTriggers; + private updatePropertiesByChanges; + private updatePropertiesByKeys; + private initProperties; + private updateComponentValue; + private delayEnterLeave; + private removeTriggerListeners; + private clearTogglingTimer; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} +export declare class TbPopoverComponent implements OnDestroy, OnInit { + cdr: ChangeDetectorRef; + private renderer; + private directionality; + overlay: CdkConnectedOverlay; + popoverRoot: ElementRef; + tbContent: string | TemplateRef | null; + tbComponentFactory: ComponentFactory | null; + tbComponentRef: ComponentRef | null; + tbComponentContext: any; + tbComponentInjector: Injector | null; + tbComponentStyle: { + [klass: string]: any; + }; + tbOverlayClassName: string; + tbOverlayStyle: { + [klass: string]: any; + }; + tbPopoverInnerStyle: { + [klass: string]: any; + }; + tbBackdrop: boolean; + tbMouseEnterDelay?: number; + tbMouseLeaveDelay?: number; + tbHideOnClickOutside: boolean; + tbAnimationState: string; + tbVisibleChange: Subject; + tbAnimationDone: Subject; + tbComponentChange: Subject>; + tbDestroy: Subject; + set tbVisible(value: boolean); + get tbVisible(): boolean; + visible: boolean; + set tbHidden(value: boolean); + get tbHidden(): boolean; + hidden: boolean; + lastIsIntersecting: boolean; + set tbTrigger(value: TbPopoverTrigger); + get tbTrigger(): TbPopoverTrigger; + protected trigger: TbPopoverTrigger; + set tbPlacement(value: PopoverPlacement | PopoverPlacement[]); + get hasBackdrop(): boolean; + preferredPlacement: PopoverPlacement; + origin: CdkOverlayOrigin; + dir: Direction; + classMap: { + [klass: string]: any; + }; + positions: ConnectionPositionPair[]; + private parentScrollSubscription; + private intersectionObserver; + constructor(cdr: ChangeDetectorRef, renderer: Renderer2, directionality: Directionality); + ngOnInit(): void; + ngOnDestroy(): void; + closeButtonClick($event: Event): void; + show(): void; + hide(): void; + updateByDirective(): void; + updatePosition(): void; + onPositionChange(position: ConnectedOverlayPositionChange): void; + updateStyles(): void; + setOverlayOrigin(origin: CdkOverlayOrigin): void; + onClickOutside(event: MouseEvent): void; + onComponentChange(component: ComponentRef): void; + animationDone(): void; + private updateVisibilityByContent; + private isEmpty; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/popover.models.d.ts b/src/app/shared/components/popover.models.d.ts new file mode 100644 index 00000000..941c7041 --- /dev/null +++ b/src/app/shared/components/popover.models.d.ts @@ -0,0 +1,20 @@ +import { AnimationTriggerMetadata } from '@angular/animations'; +import { ConnectedOverlayPositionChange, ConnectionPositionPair } from '@angular/cdk/overlay'; +import { TbPopoverComponent } from '@shared/components/popover.component'; +export declare const popoverMotion: AnimationTriggerMetadata; +export declare const PopoverPlacements: readonly ["top", "topLeft", "topRight", "right", "rightTop", "rightBottom", "bottom", "bottomLeft", "bottomRight", "left", "leftTop", "leftBottom"]; +declare type PopoverPlacementTuple = typeof PopoverPlacements; +export declare type PopoverPlacement = PopoverPlacementTuple[number]; +export declare const POSITION_MAP: { + [key: string]: ConnectionPositionPair; +}; +export declare const DEFAULT_POPOVER_POSITIONS: ConnectionPositionPair[]; +export declare function getPlacementName(position: ConnectedOverlayPositionChange): PopoverPlacement | undefined; +export interface PropertyMapping { + [key: string]: [string, () => unknown]; +} +export interface PopoverWithTrigger { + trigger: Element; + popoverComponent: TbPopoverComponent; +} +export {}; diff --git a/src/app/shared/components/popover.service.d.ts b/src/app/shared/components/popover.service.d.ts new file mode 100644 index 00000000..dacdd7c1 --- /dev/null +++ b/src/app/shared/components/popover.service.d.ts @@ -0,0 +1,21 @@ +import { ComponentFactory, ComponentFactoryResolver, Injector, Renderer2, Type, ViewContainerRef } from '@angular/core'; +import { PopoverPlacement } from '@shared/components/popover.models'; +import { TbPopoverComponent } from '@shared/components/popover.component'; +import { ComponentType } from '@angular/cdk/portal'; +import * as i0 from "@angular/core"; +export declare class TbPopoverService { + private resolver; + private helpMarkdownComponent; + private popoverWithTriggers; + componentFactory: ComponentFactory; + constructor(resolver: ComponentFactoryResolver, helpMarkdownComponent: ComponentType); + hasPopover(trigger: Element): boolean; + hidePopover(trigger: Element): boolean; + displayPopover(trigger: Element, renderer: Renderer2, hostView: ViewContainerRef, componentType: Type, preferredPlacement?: PopoverPlacement, hideOnClickOutside?: boolean, injector?: Injector, context?: any, overlayStyle?: any, popoverStyle?: any, style?: any): TbPopoverComponent; + toggleHelpPopover(trigger: Element, renderer: Renderer2, hostView: ViewContainerRef, helpId?: string, helpContent?: string, visibleFn?: (visible: boolean) => void, readyFn?: (ready: boolean) => void, preferredPlacement?: PopoverPlacement, overlayStyle?: any, helpStyle?: any): void; + private findPopoverByTrigger; + private removePopoverByComponent; + private elementsAreEqualOrDescendant; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; +} diff --git a/src/app/shared/components/protobuf-content.component.d.ts b/src/app/shared/components/protobuf-content.component.d.ts new file mode 100644 index 00000000..da1a8543 --- /dev/null +++ b/src/app/shared/components/protobuf-content.component.d.ts @@ -0,0 +1,44 @@ +import { ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import { RafService } from '@core/services/raf.service'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import * as i0 from "@angular/core"; +export declare class ProtobufContentComponent implements OnInit, ControlValueAccessor, OnDestroy { + elementRef: ElementRef; + protected store: Store; + private raf; + protobufEditorElmRef: ElementRef; + private protobufEditor; + private editorsResizeCaf; + private editorResize$; + private ignoreChange; + toastTargetId: string; + label: string; + disabled: boolean; + fillHeight: boolean; + editorStyle: { + [klass: string]: any; + }; + tbPlaceholder: string; + private readonlyValue; + get readonly(): boolean; + set readonly(value: boolean); + fullscreen: boolean; + contentBody: string; + errorShowed: boolean; + private propagateChange; + constructor(elementRef: ElementRef, store: Store, raf: RafService); + ngOnInit(): void; + ngOnDestroy(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string): void; + updateView(): void; + beautifyProtobuf(): void; + onFullscreen(): void; + private onAceEditorResize; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/public-api.d.ts b/src/app/shared/components/public-api.d.ts new file mode 100644 index 00000000..c8f6b375 --- /dev/null +++ b/src/app/shared/components/public-api.d.ts @@ -0,0 +1,5 @@ +export * from './dialog/color-picker-dialog.component'; +export * from './dialog/material-icons-dialog.component'; +export * from './page.component'; +export * from './dialog.component'; +export * from './js-func.component'; diff --git a/src/app/shared/components/queue/queue-type-list.component.d.ts b/src/app/shared/components/queue/queue-type-list.component.d.ts new file mode 100644 index 00000000..984199e8 --- /dev/null +++ b/src/app/shared/components/queue/queue-type-list.component.d.ts @@ -0,0 +1,48 @@ +import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { QueueService } from '@core/http/queue.service'; +import { ServiceType } from '@shared/models/queue.models'; +import * as i0 from "@angular/core"; +interface Queue { + queueName: string; +} +export declare class QueueTypeListComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy { + private store; + translate: TranslateService; + private queueService; + private fb; + queueFormGroup: FormGroup; + modelValue: Queue | null; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + queueType: ServiceType; + queueInput: ElementRef; + filteredQueues: Observable>; + queues: Observable>; + searchText: string; + private dirty; + private propagateChange; + constructor(store: Store, translate: TranslateService, queueService: QueueService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + ngOnDestroy(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string | null): void; + onFocus(): void; + updateView(value: Queue | null): void; + displayQueueFn(queue?: Queue): string | undefined; + fetchQueues(searchText?: string): Observable>; + getQueues(): Observable>; + clear(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export {}; diff --git a/src/app/shared/components/relation/relation-type-autocomplete.component.d.ts b/src/app/shared/components/relation/relation-type-autocomplete.component.d.ts new file mode 100644 index 00000000..255ed035 --- /dev/null +++ b/src/app/shared/components/relation/relation-type-autocomplete.component.d.ts @@ -0,0 +1,40 @@ +import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { BroadcastService } from '@app/core/services/broadcast.service'; +import * as i0 from "@angular/core"; +export declare class RelationTypeAutocompleteComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy { + private store; + private broadcast; + translate: TranslateService; + private fb; + relationTypeFormGroup: FormGroup; + modelValue: string | null; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + relationTypeInput: ElementRef; + filteredRelationTypes: Observable>; + searchText: string; + private dirty; + private propagateChange; + constructor(store: Store, broadcast: BroadcastService, translate: TranslateService, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + ngOnDestroy(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string | null): void; + onFocus(): void; + updateView(value: string | null): void; + displayRelationTypeFn(relationType?: string): string | undefined; + fetchRelationTypes(searchText?: string, strictMatch?: boolean): Observable>; + clear(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/socialshare-panel.component.d.ts b/src/app/shared/components/socialshare-panel.component.d.ts new file mode 100644 index 00000000..b936c773 --- /dev/null +++ b/src/app/shared/components/socialshare-panel.component.d.ts @@ -0,0 +1,13 @@ +import { OnInit } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class SocialSharePanelComponent implements OnInit { + shareTitle: string; + shareText: string; + shareLink: string; + shareHashTags: string; + constructor(); + ngOnInit(): void; + isShareLinkLocal(): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/tb-anchor.component.d.ts b/src/app/shared/components/tb-anchor.component.d.ts new file mode 100644 index 00000000..e9154d8b --- /dev/null +++ b/src/app/shared/components/tb-anchor.component.d.ts @@ -0,0 +1,8 @@ +import { ViewContainerRef } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class TbAnchorComponent { + viewContainerRef: ViewContainerRef; + constructor(viewContainerRef: ViewContainerRef); + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/tb-checkbox.component.d.ts b/src/app/shared/components/tb-checkbox.component.d.ts new file mode 100644 index 00000000..a80a5f87 --- /dev/null +++ b/src/app/shared/components/tb-checkbox.component.d.ts @@ -0,0 +1,19 @@ +import { EventEmitter } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import * as i0 from "@angular/core"; +export declare class TbCheckboxComponent implements ControlValueAccessor { + innerValue: boolean; + disabled: boolean; + trueValue: any; + falseValue: any; + valueChange: EventEmitter; + private propagateChange; + onHostChange(ev: any): void; + modelChange($event: any): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(obj: any): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/tb-error.component.d.ts b/src/app/shared/components/tb-error.component.d.ts new file mode 100644 index 00000000..9fd470a0 --- /dev/null +++ b/src/app/shared/components/tb-error.component.d.ts @@ -0,0 +1,9 @@ +import * as i0 from "@angular/core"; +export declare class TbErrorComponent { + errorValue: any; + state: any; + message: any; + set error(value: any); + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/time/datetime-period.component.d.ts b/src/app/shared/components/time/datetime-period.component.d.ts new file mode 100644 index 00000000..7b45f45a --- /dev/null +++ b/src/app/shared/components/time/datetime-period.component.d.ts @@ -0,0 +1,28 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import { FixedWindow } from '@shared/models/time/time.models'; +import * as i0 from "@angular/core"; +export declare class DatetimePeriodComponent implements OnInit, ControlValueAccessor { + disabled: boolean; + modelValue: FixedWindow; + startDate: Date; + endDate: Date; + endTime: any; + maxStartDate: Date; + minEndDate: Date; + maxEndDate: Date; + changePending: boolean; + private propagateChange; + constructor(); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(datePeriod: FixedWindow): void; + updateView(): void; + updateMinMaxDates(): void; + onStartDateChange(): void; + onEndDateChange(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/time/datetime.component.d.ts b/src/app/shared/components/time/datetime.component.d.ts new file mode 100644 index 00000000..fc4d35e9 --- /dev/null +++ b/src/app/shared/components/time/datetime.component.d.ts @@ -0,0 +1,29 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import * as i0 from "@angular/core"; +export declare class DatetimeComponent implements OnInit, ControlValueAccessor { + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + dateText: string; + timeText: string; + showLabel: boolean; + minDateValue: Date | null; + set minDate(minDate: number | null); + maxDateValue: Date | null; + set maxDate(maxDate: number | null); + modelValue: number; + date: Date; + private propagateChange; + constructor(); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + ngOnInit(): void; + writeValue(datetime: number | null): void; + updateView(value: number | null): void; + onDateChange(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/time/history-selector/history-selector.component.d.ts b/src/app/shared/components/time/history-selector/history-selector.component.d.ts new file mode 100644 index 00000000..e1ff07b6 --- /dev/null +++ b/src/app/shared/components/time/history-selector/history-selector.component.d.ts @@ -0,0 +1,34 @@ +import { ChangeDetectorRef, EventEmitter, OnChanges } from '@angular/core'; +import { HistorySelectSettings } from '@app/modules/home/components/widget/lib/maps/map-models'; +import * as i0 from "@angular/core"; +export declare class HistorySelectorComponent implements OnChanges { + private cd; + settings: HistorySelectSettings; + minTime: number; + maxTime: number; + step: number; + anchors: any[]; + useAnchors: boolean; + timeUpdated: EventEmitter; + minTimeIndex: number; + maxTimeIndex: number; + speed: number; + index: number; + playing: boolean; + interval: any; + speeds: number[]; + currentTime: any; + constructor(cd: ChangeDetectorRef); + ngOnChanges(): void; + play(): void; + reInit(): void; + pause(): void; + moveNext(): void; + movePrev(): void; + findIndex(value: number, array: number[]): number; + moveStart(): void; + moveEnd(): void; + changeIndex(index: number): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/time/quick-time-interval.component.d.ts b/src/app/shared/components/time/quick-time-interval.component.d.ts new file mode 100644 index 00000000..f9246204 --- /dev/null +++ b/src/app/shared/components/time/quick-time-interval.component.d.ts @@ -0,0 +1,23 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import { QuickTimeInterval } from '@shared/models/time/time.models'; +import * as i0 from "@angular/core"; +export declare class QuickTimeIntervalComponent implements OnInit, ControlValueAccessor { + private allIntervals; + modelValue: QuickTimeInterval; + timeIntervalTranslationMap: Map; + rendered: boolean; + disabled: boolean; + onlyCurrentInterval: boolean; + private propagateChange; + constructor(); + get intervals(): QuickTimeInterval[]; + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(interval: QuickTimeInterval): void; + onIntervalChange(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/time/timeinterval.component.d.ts b/src/app/shared/components/time/timeinterval.component.d.ts new file mode 100644 index 00000000..5d36afa9 --- /dev/null +++ b/src/app/shared/components/time/timeinterval.component.d.ts @@ -0,0 +1,50 @@ +import { EventEmitter, OnInit } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import { TimeInterval, TimeService } from '@core/services/time.service'; +import * as i0 from "@angular/core"; +export declare class TimeintervalComponent implements OnInit, ControlValueAccessor { + private timeService; + minValue: number; + maxValue: number; + set min(min: number); + set max(max: number); + predefinedName: string; + isEditValue: boolean; + set isEdit(val: boolean); + get isEdit(): boolean; + hideFlagValue: boolean; + get hideFlag(): boolean; + set hideFlag(val: boolean); + hideFlagChange: EventEmitter; + disabled: boolean; + days: number; + hours: number; + mins: number; + secs: number; + intervalMs: number; + modelValue: number; + advanced: boolean; + rendered: boolean; + intervals: Array; + private propagateChange; + constructor(timeService: TimeService); + ngOnInit(): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(intervalMs: number): void; + setIntervalMs(intervalMs: number): void; + boundInterval(): void; + updateView(): void; + calculateIntervalMs(): number; + onIntervalMsChange(): void; + onAdvancedChange(): void; + onHideFlagChange(): void; + onTimeInputChange(type: string): void; + onSecsChange(): void; + onMinsChange(): void; + onHoursChange(): void; + onDaysChange(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/time/timewindow-panel.component.d.ts b/src/app/shared/components/time/timewindow-panel.component.d.ts new file mode 100644 index 00000000..5caac182 --- /dev/null +++ b/src/app/shared/components/time/timewindow-panel.component.d.ts @@ -0,0 +1,56 @@ +import { InjectionToken, OnInit, ViewContainerRef } from '@angular/core'; +import { AggregationType, HistoryWindowType, RealtimeWindowType, Timewindow, TimewindowType } from '@shared/models/time/time.models'; +import { OverlayRef } from '@angular/cdk/overlay'; +import { PageComponent } from '@shared/components/page.component'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { TimeService } from '@core/services/time.service'; +import * as i0 from "@angular/core"; +export declare const TIMEWINDOW_PANEL_DATA: InjectionToken; +export interface TimewindowPanelData { + historyOnly: boolean; + timewindow: Timewindow; + aggregation: boolean; + timezone: boolean; + isEdit: boolean; +} +export declare class TimewindowPanelComponent extends PageComponent implements OnInit { + data: TimewindowPanelData; + overlayRef: OverlayRef; + protected store: Store; + fb: FormBuilder; + private timeService; + viewContainerRef: ViewContainerRef; + historyOnly: boolean; + aggregation: boolean; + timezone: boolean; + isEdit: boolean; + timewindow: Timewindow; + result: Timewindow; + timewindowForm: FormGroup; + historyTypes: typeof HistoryWindowType; + realtimeTypes: typeof RealtimeWindowType; + timewindowTypes: typeof TimewindowType; + aggregationTypes: typeof AggregationType; + aggregations: string[]; + aggregationTypesTranslations: Map; + constructor(data: TimewindowPanelData, overlayRef: OverlayRef, store: Store, fb: FormBuilder, timeService: TimeService, viewContainerRef: ViewContainerRef); + ngOnInit(): void; + update(): void; + cancel(): void; + minDatapointsLimit(): number; + maxDatapointsLimit(): number; + minRealtimeAggInterval(): number; + maxRealtimeAggInterval(): number; + currentRealtimeTimewindow(): number; + minHistoryAggInterval(): number; + maxHistoryAggInterval(): number; + currentHistoryTimewindow(): any; + onHideIntervalChanged(): void; + onHideAggregationChanged(): void; + onHideAggIntervalChanged(): void; + onHideTimezoneChanged(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/time/timewindow.component.d.ts b/src/app/shared/components/time/timewindow.component.d.ts new file mode 100644 index 00000000..e2721a66 --- /dev/null +++ b/src/app/shared/components/time/timewindow.component.d.ts @@ -0,0 +1,63 @@ +import { ChangeDetectorRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import { TranslateService } from '@ngx-translate/core'; +import { MillisecondsToTimeStringPipe } from '@shared/pipe/milliseconds-to-time-string.pipe'; +import { Timewindow } from '@shared/models/time/time.models'; +import { DatePipe } from '@angular/common'; +import { CdkOverlayOrigin, Overlay } from '@angular/cdk/overlay'; +import { BreakpointObserver } from '@angular/cdk/layout'; +import { TimeService } from '@core/services/time.service'; +import { TooltipPosition } from '@angular/material/tooltip'; +import * as i0 from "@angular/core"; +export declare class TimewindowComponent implements OnInit, OnDestroy, ControlValueAccessor { + private translate; + private timeService; + private millisecondsToTimeStringPipe; + private datePipe; + private overlay; + private cd; + viewContainerRef: ViewContainerRef; + breakpointObserver: BreakpointObserver; + private document; + private window; + historyOnlyValue: boolean; + set historyOnly(val: boolean); + get historyOnly(): boolean; + aggregationValue: boolean; + set aggregation(val: boolean); + get aggregation(): boolean; + timezoneValue: boolean; + set timezone(val: boolean); + get timezone(): boolean; + isToolbarValue: boolean; + set isToolbar(val: boolean); + get isToolbar(): boolean; + asButtonValue: boolean; + set asButton(val: boolean); + get asButton(): boolean; + isEditValue: boolean; + set isEdit(val: boolean); + get isEdit(): boolean; + direction: 'left' | 'right'; + tooltipPosition: TooltipPosition; + disabled: boolean; + timewindowPanelOrigin: CdkOverlayOrigin; + innerValue: Timewindow; + timewindowDisabled: boolean; + private propagateChange; + constructor(translate: TranslateService, timeService: TimeService, millisecondsToTimeStringPipe: MillisecondsToTimeStringPipe, datePipe: DatePipe, overlay: Overlay, cd: ChangeDetectorRef, viewContainerRef: ViewContainerRef, breakpointObserver: BreakpointObserver, document: Document, window: Window); + ngOnInit(): void; + ngOnDestroy(): void; + openEditMode(): void; + private _createTimewindowPanelInjector; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(obj: Timewindow): void; + notifyChanged(): void; + updateDisplayValue(): void; + hideLabel(): boolean; + private isTimewindowDisabled; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/time/timezone-select.component.d.ts b/src/app/shared/components/time/timezone-select.component.d.ts new file mode 100644 index 00000000..25966d8e --- /dev/null +++ b/src/app/shared/components/time/timezone-select.component.d.ts @@ -0,0 +1,54 @@ +import { AfterViewInit, NgZone, OnInit } from '@angular/core'; +import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { MatAutocompleteTrigger } from '@angular/material/autocomplete'; +import { TimezoneInfo } from '@shared/models/time/time.models'; +import * as i0 from "@angular/core"; +export declare class TimezoneSelectComponent implements ControlValueAccessor, OnInit, AfterViewInit { + private store; + translate: TranslateService; + private ngZone; + private fb; + selectTimezoneFormGroup: FormGroup; + modelValue: string | null; + defaultTimezoneId: string; + set defaultTimezone(timezone: string); + private requiredValue; + get required(): boolean; + set required(value: boolean); + private userTimezoneByDefaultValue; + get userTimezoneByDefault(): boolean; + set userTimezoneByDefault(value: boolean); + private localBrowserTimezonePlaceholderOnEmptyValue; + get localBrowserTimezonePlaceholderOnEmpty(): boolean; + set localBrowserTimezonePlaceholderOnEmpty(value: boolean); + disabled: boolean; + timezoneInputTrigger: MatAutocompleteTrigger; + filteredTimezones: Observable>; + searchText: string; + ignoreClosePanel: boolean; + private dirty; + private localBrowserTimezoneInfoPlaceholder; + private timezones; + private propagateChange; + constructor(store: Store, translate: TranslateService, ngZone: NgZone, fb: FormBuilder); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngAfterViewInit(): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: string | null): void; + onFocus(): void; + onPanelClosed(): void; + updateView(value: string | null): void; + displayTimezoneFn(timezone?: TimezoneInfo): string | undefined; + fetchTimezones(searchText?: string): Observable>; + clear(): void; + private loadTimezones; + private getLocalBrowserTimezoneInfoPlaceholder; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/toast.directive.d.ts b/src/app/shared/components/toast.directive.d.ts new file mode 100644 index 00000000..9ac3d3ba --- /dev/null +++ b/src/app/shared/components/toast.directive.d.ts @@ -0,0 +1,69 @@ +import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, ElementRef, NgZone, OnDestroy, ViewContainerRef } from '@angular/core'; +import { MatSnackBar, MatSnackBarRef } from '@angular/material/snack-bar'; +import { NotificationMessage } from '@app/core/notification/notification.models'; +import { NotificationService } from '@app/core/services/notification.service'; +import { BreakpointObserver } from '@angular/cdk/layout'; +import { MatButton } from '@angular/material/button'; +import { AnimationTriggerMetadata, AnimationEvent } from '@angular/animations'; +import * as i0 from "@angular/core"; +export declare class ToastDirective implements AfterViewInit, OnDestroy { + private elementRef; + private viewContainerRef; + private notificationService; + private componentFactoryResolver; + private snackBar; + private ngZone; + private breakpointObserver; + private cd; + toastTarget: string; + private notificationSubscription; + private hideNotificationSubscription; + private snackBarRef; + private toastComponentRef; + private currentMessage; + private dismissTimeout; + constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef, notificationService: NotificationService, componentFactoryResolver: ComponentFactoryResolver, snackBar: MatSnackBar, ngZone: NgZone, breakpointObserver: BreakpointObserver, cd: ChangeDetectorRef); + ngAfterViewInit(): void; + private showToastPanel; + private showSnackBar; + private shouldDisplayMessage; + ngOnDestroy(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} +interface ToastPanelData { + notification: NotificationMessage; + parent?: ElementRef; + panelClass: string[]; + destroyToastComponent: () => void; +} +export declare const toastAnimations: { + readonly showHideToast: AnimationTriggerMetadata; +}; +export declare type ToastAnimationState = 'default' | 'opened' | 'closing'; +export declare class TbSnackBarComponent implements AfterViewInit, OnDestroy { + private data; + private elementRef; + private snackBarRef; + actionButton: MatButton; + get panelClass(): string[]; + private parentEl; + private snackBarContainerEl; + private parentScrollSubscription; + notification: NotificationMessage; + animationState: ToastAnimationState; + animationParams: { + open: number; + close: number; + }; + constructor(data: ToastPanelData, elementRef: ElementRef, snackBarRef: MatSnackBarRef); + ngAfterViewInit(): void; + private updatePosition; + private updateContainerRect; + ngOnDestroy(): void; + action(event: MouseEvent): void; + onHideFinished(event: AnimationEvent): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export {}; diff --git a/src/app/shared/components/tokens.d.ts b/src/app/shared/components/tokens.d.ts new file mode 100644 index 00000000..e79fa2aa --- /dev/null +++ b/src/app/shared/components/tokens.d.ts @@ -0,0 +1,4 @@ +import { InjectionToken, Type } from '@angular/core'; +import { ComponentType } from '@angular/cdk/portal'; +export declare const HELP_MARKDOWN_COMPONENT_TOKEN: InjectionToken>; +export declare const SHARED_MODULE_TOKEN: InjectionToken>; diff --git a/src/app/shared/components/user-menu.component.d.ts b/src/app/shared/components/user-menu.component.d.ts new file mode 100644 index 00000000..b6b9c9e6 --- /dev/null +++ b/src/app/shared/components/user-menu.component.d.ts @@ -0,0 +1,27 @@ +import { OnDestroy, OnInit } from '@angular/core'; +import { User } from '@shared/models/user.model'; +import { Authority } from '@shared/models/authority.enum'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { AuthService } from '@core/auth/auth.service'; +import { Router } from '@angular/router'; +import * as i0 from "@angular/core"; +export declare class UserMenuComponent implements OnInit, OnDestroy { + private store; + private router; + private authService; + displayUserInfo: boolean; + authorities: typeof Authority; + authority$: import("rxjs").Observable; + authorityName$: import("rxjs").Observable; + userDisplayName$: import("rxjs").Observable; + constructor(store: Store, router: Router, authService: AuthService); + ngOnInit(): void; + ngOnDestroy(): void; + getAuthorityName(user: User): string; + getUserDisplayName(user: User): string; + openProfile(): void; + logout(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/value-input.component.d.ts b/src/app/shared/components/value-input.component.d.ts new file mode 100644 index 00000000..e949922d --- /dev/null +++ b/src/app/shared/components/value-input.component.d.ts @@ -0,0 +1,29 @@ +import { OnInit } from '@angular/core'; +import { ControlValueAccessor, NgForm } from '@angular/forms'; +import { ValueType } from '@shared/models/constants'; +import { MatDialog } from '@angular/material/dialog'; +import * as i0 from "@angular/core"; +export declare class ValueInputComponent implements OnInit, ControlValueAccessor { + dialog: MatDialog; + disabled: boolean; + requiredText: string; + inputForm: NgForm; + modelValue: any; + valueType: ValueType; + valueTypeEnum: typeof ValueType; + valueTypeKeys: string[]; + valueTypes: Map; + private propagateChange; + constructor(dialog: MatDialog); + ngOnInit(): void; + openEditJSONDialog($event: Event): void; + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: any): void; + updateView(): void; + onValueTypeChanged(): void; + onValueChanged(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/widgets-bundle-search.component.d.ts b/src/app/shared/components/widgets-bundle-search.component.d.ts new file mode 100644 index 00000000..78cb2aaf --- /dev/null +++ b/src/app/shared/components/widgets-bundle-search.component.d.ts @@ -0,0 +1,20 @@ +import { ElementRef } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import * as i0 from "@angular/core"; +export declare class WidgetsBundleSearchComponent implements ControlValueAccessor { + searchText: string; + focus: boolean; + placeholder: string; + searchInput: ElementRef; + private propagateChange; + constructor(); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + writeValue(value: string | null): void; + updateSearchText(): void; + private updateView; + clear($event: Event): void; + toggleFocus(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/components/widgets-bundle-select.component.d.ts b/src/app/shared/components/widgets-bundle-select.component.d.ts new file mode 100644 index 00000000..d3e4e272 --- /dev/null +++ b/src/app/shared/components/widgets-bundle-select.component.d.ts @@ -0,0 +1,37 @@ +import { OnChanges, OnInit, SimpleChanges } from '@angular/core'; +import { ControlValueAccessor } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { WidgetsBundle } from '@shared/models/widgets-bundle.model'; +import { WidgetService } from '@core/http/widget.service'; +import * as i0 from "@angular/core"; +export declare class WidgetsBundleSelectComponent implements ControlValueAccessor, OnInit, OnChanges { + private store; + private widgetService; + bundlesScope: 'system' | 'tenant'; + selectFirstBundle: boolean; + selectBundleAlias: string; + private requiredValue; + get required(): boolean; + set required(value: boolean); + disabled: boolean; + widgetsBundles$: Observable>; + widgetsBundles: Array; + widgetsBundle: WidgetsBundle | null; + private propagateChange; + constructor(store: Store, widgetService: WidgetService); + registerOnChange(fn: any): void; + registerOnTouched(fn: any): void; + ngOnInit(): void; + ngOnChanges(changes: SimpleChanges): void; + setDisabledState(isDisabled: boolean): void; + writeValue(value: WidgetsBundle | null): void; + widgetsBundleChanged(): void; + isSystem(item: WidgetsBundle): boolean; + private selectWidgetsBundleByAlias; + private updateView; + private getWidgetsBundles; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/src/app/shared/decorators/enumerable.d.ts b/src/app/shared/decorators/enumerable.d.ts new file mode 100644 index 00000000..61a7c0a0 --- /dev/null +++ b/src/app/shared/decorators/enumerable.d.ts @@ -0,0 +1 @@ +export declare function enumerable(value: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void; diff --git a/src/app/shared/decorators/tb-inject.d.ts b/src/app/shared/decorators/tb-inject.d.ts new file mode 100644 index 00000000..f14dea62 --- /dev/null +++ b/src/app/shared/decorators/tb-inject.d.ts @@ -0,0 +1,2 @@ +import { Type } from '@angular/core'; +export declare function TbInject(token: any): (target: Type, key: any, paramIndex: number) => void; diff --git a/src/app/shared/models/ace/ace.models.d.ts b/src/app/shared/models/ace/ace.models.d.ts new file mode 100644 index 00000000..10454563 --- /dev/null +++ b/src/app/shared/models/ace/ace.models.d.ts @@ -0,0 +1,34 @@ +import { Ace } from 'ace-builds'; +import { Observable } from 'rxjs/internal/Observable'; +export declare function getAce(): Observable; +export declare class Range implements Ace.Range { + start: Ace.Point; + end: Ace.Point; + constructor(startRow: number, startColumn: number, endRow: number, endColumn: number); + static fromPoints(start: Ace.Point, end: Ace.Point): Ace.Range; + clipRows(firstRow: number, lastRow: number): Ace.Range; + clone(): Ace.Range; + collapseRows(): Ace.Range; + compare(row: number, column: number): number; + compareEnd(row: number, column: number): number; + compareInside(row: number, column: number): number; + comparePoint(p: Ace.Point): number; + compareRange(range: Ace.Range): number; + compareStart(row: number, column: number): number; + contains(row: number, column: number): boolean; + containsRange(range: Ace.Range): boolean; + extend(row: number, column: number): Ace.Range; + inside(row: number, column: number): boolean; + insideEnd(row: number, column: number): boolean; + insideStart(row: number, column: number): boolean; + intersects(range: Ace.Range): boolean; + isEmpty(): boolean; + isEnd(row: number, column: number): boolean; + isEqual(range: Ace.Range): boolean; + isMultiLine(): boolean; + isStart(row: number, column: number): boolean; + moveBy(row: number, column: number): void; + setEnd(row: number, column: number): void; + setStart(row: number, column: number): void; + toScreenRange(session: Ace.EditSession): Ace.Range; +} diff --git a/src/app/shared/models/ace/completion.models.d.ts b/src/app/shared/models/ace/completion.models.d.ts new file mode 100644 index 00000000..4e8f1d66 --- /dev/null +++ b/src/app/shared/models/ace/completion.models.d.ts @@ -0,0 +1,46 @@ +import { Ace } from 'ace-builds'; +export declare type tbMetaType = 'object' | 'function' | 'service' | 'property' | 'argument'; +export declare type TbEditorCompletions = { + [name: string]: TbEditorCompletion; +}; +export interface FunctionArgType { + type?: string; + description?: string; +} +export interface FunctionArg extends FunctionArgType { + name: string; + type?: string; + description?: string; + optional?: boolean; +} +export interface TbEditorCompletion { + meta: tbMetaType; + description?: string; + type?: string; + args?: FunctionArg[]; + return?: FunctionArgType; + children?: TbEditorCompletions; +} +interface TbEditorAceCompletion extends Ace.Completion { + isTbEditorAceCompletion: true; + snippet: string; + description?: string; + type?: string; + args?: FunctionArg[]; + return?: FunctionArgType; +} +export declare class TbEditorCompleter implements Ace.Completer { + private editorCompletions; + identifierRegexps: RegExp[]; + constructor(editorCompletions: TbEditorCompletions); + getCompletions(editor: Ace.Editor, session: Ace.EditSession, position: Ace.Point, prefix: string, callback: Ace.CompleterCallback): void; + private resolvePath; + private prepareCompletions; + private toAceCompletionsList; + private toAceCompletion; + getDocTooltip(completion: TbEditorAceCompletion): { + docHTML: string; + }; + private createDocHTML; +} +export {}; diff --git a/src/app/shared/models/ace/service-completion.models.d.ts b/src/app/shared/models/ace/service-completion.models.d.ts new file mode 100644 index 00000000..4d103ed6 --- /dev/null +++ b/src/app/shared/models/ace/service-completion.models.d.ts @@ -0,0 +1,53 @@ +import { FunctionArg, FunctionArgType, TbEditorCompletions } from '@shared/models/ace/completion.models'; +export declare const entityIdHref = "EntityId"; +export declare const baseDataHref = "Base data"; +export declare const alarmDataHref = "Alarm data"; +export declare const alarmDataQueryHref = "Alarm data query"; +export declare const attributeScopeHref = "Attribute scope"; +export declare const entityTypeHref = "EntityType"; +export declare const pageDataHref = "PageData"; +export declare const deviceInfoHref = "DeviceInfo"; +export declare const assetInfoHref = "AssetInfo"; +export declare const entityViewInfoHref = "EntityViewInfo"; +export declare const entityRelationsQueryHref = "EntityRelationsQuery"; +export declare const entityRelationInfoHref = "EntityRelationInfo"; +export declare const dashboardInfoHref = "DashboardInfo"; +export declare const deviceHref = "Device"; +export declare const assetHref = "Asset"; +export declare const entityViewHref = "entityView"; +export declare const entityRelationHref = "Entity relation"; +export declare const dashboardHref = "Dashboard"; +export declare const customerHref = "Customer"; +export declare const attributeDataHref = "Attribute Data"; +export declare const timeseriesDataHref = "Timeseries Data"; +export declare const aggregationTypeHref = "Aggregation Type"; +export declare const dataSortOrderHref = "Data Sort Order"; +export declare const userHref = "User"; +export declare const entityDataHref = "Entity data"; +export declare const entityDataQueryHref = "Entity Data Query"; +export declare const deviceCredentialsHref = "DeviceCredentials"; +export declare const entityFilterHref = "Entity filter"; +export declare const entityInfoHref = "Entity info"; +export declare const aliasEntityTypeHref = "Alias Entity Type"; +export declare const aliasFilterTypeHref = "Alias filter type"; +export declare const entityAliasHref = "Entity alias"; +export declare const dataKeyTypeHref = "Data key type"; +export declare const subscriptionInfoHref = "Subscription info"; +export declare const dataSourceHref = "Datasource"; +export declare const stateParamsHref = "State params"; +export declare const aliasInfoHref = "Alias info"; +export declare const entityAliasFilterHref = "Entity alias filter"; +export declare const entityAliasFilterResultHref = "Entity alias filter result"; +export declare const importEntityDataHref = "Import entity data"; +export declare const importEntitiesResultInfoHref = "Import entities result info"; +export declare const customDialogComponentHref = "CustomDialogComponent"; +export declare const pageLinkArg: FunctionArg; +export declare const requestConfigArg: FunctionArg; +export declare function observableReturnType(objectType: string): FunctionArgType; +export declare function observableReturnTypeVariable(variableType: string): FunctionArgType; +export declare function observableVoid(): FunctionArgType; +export declare function observableArrayReturnType(objectType: string): FunctionArgType; +export declare function observableBaseDataReturnType(): FunctionArgType; +export declare function observableArrayBaseDataReturnType(): FunctionArgType; +export declare function observablePageDataReturnType(objectType: string): FunctionArgType; +export declare const serviceCompletions: TbEditorCompletions; diff --git a/src/app/shared/models/ace/widget-completion.models.d.ts b/src/app/shared/models/ace/widget-completion.models.d.ts new file mode 100644 index 00000000..1d878f42 --- /dev/null +++ b/src/app/shared/models/ace/widget-completion.models.d.ts @@ -0,0 +1,3 @@ +import { TbEditorCompletion, TbEditorCompletions } from '@shared/models/ace/completion.models'; +export declare const timewindowCompletion: TbEditorCompletion; +export declare const widgetContextCompletions: TbEditorCompletions; diff --git a/src/app/shared/models/alarm.models.d.ts b/src/app/shared/models/alarm.models.d.ts new file mode 100644 index 00000000..caa78bc6 --- /dev/null +++ b/src/app/shared/models/alarm.models.d.ts @@ -0,0 +1,72 @@ +import { BaseData } from '@shared/models/base-data'; +import { TenantId } from '@shared/models/id/tenant-id'; +import { AlarmId } from '@shared/models/id/alarm-id'; +import { EntityId } from '@shared/models/id/entity-id'; +import { TimePageLink } from '@shared/models/page/page-link'; +import { CustomerId } from '@shared/models/id/customer-id'; +import { TableCellButtonActionDescriptor } from '@home/components/widget/lib/table-widget.models'; +export declare enum AlarmSeverity { + CRITICAL = "CRITICAL", + MAJOR = "MAJOR", + MINOR = "MINOR", + WARNING = "WARNING", + INDETERMINATE = "INDETERMINATE" +} +export declare enum AlarmStatus { + ACTIVE_UNACK = "ACTIVE_UNACK", + ACTIVE_ACK = "ACTIVE_ACK", + CLEARED_UNACK = "CLEARED_UNACK", + CLEARED_ACK = "CLEARED_ACK" +} +export declare enum AlarmSearchStatus { + ANY = "ANY", + ACTIVE = "ACTIVE", + CLEARED = "CLEARED", + ACK = "ACK", + UNACK = "UNACK" +} +export declare const alarmSeverityTranslations: Map; +export declare const alarmStatusTranslations: Map; +export declare const alarmSearchStatusTranslations: Map; +export declare const alarmSeverityColors: Map; +export interface Alarm extends BaseData { + tenantId: TenantId; + customerId: CustomerId; + type: string; + originator: EntityId; + severity: AlarmSeverity; + status: AlarmStatus; + startTs: number; + endTs: number; + ackTs: number; + clearTs: number; + propagate: boolean; + details?: any; +} +export interface AlarmInfo extends Alarm { + originatorName: string; +} +export interface AlarmDataInfo extends AlarmInfo { + actionCellButtons?: TableCellButtonActionDescriptor[]; + hasActions?: boolean; + [key: string]: any; +} +export declare const simulatedAlarm: AlarmInfo; +export interface AlarmField { + keyName: string; + value: string; + name: string; + time?: boolean; +} +export declare const alarmFields: { + [fieldName: string]: AlarmField; +}; +export declare class AlarmQuery { + affectedEntityId: EntityId; + pageLink: TimePageLink; + searchStatus: AlarmSearchStatus; + status: AlarmStatus; + fetchOriginator: boolean; + constructor(entityId: EntityId, pageLink: TimePageLink, searchStatus: AlarmSearchStatus, status: AlarmStatus, fetchOriginator: boolean); + toQuery(): string; +} diff --git a/src/app/shared/models/alias.models.d.ts b/src/app/shared/models/alias.models.d.ts new file mode 100644 index 00000000..ee3f0a4c --- /dev/null +++ b/src/app/shared/models/alias.models.d.ts @@ -0,0 +1,120 @@ +import { EntityType } from '@shared/models/entity-type.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import { EntitySearchDirection, RelationEntityTypeFilter } from '@shared/models/relation.models'; +import { EntityFilter } from '@shared/models/query/query.models'; +export declare enum AliasFilterType { + singleEntity = "singleEntity", + entityList = "entityList", + entityName = "entityName", + entityType = "entityType", + stateEntity = "stateEntity", + assetType = "assetType", + deviceType = "deviceType", + edgeType = "edgeType", + entityViewType = "entityViewType", + apiUsageState = "apiUsageState", + relationsQuery = "relationsQuery", + assetSearchQuery = "assetSearchQuery", + deviceSearchQuery = "deviceSearchQuery", + edgeSearchQuery = "edgeSearchQuery", + entityViewSearchQuery = "entityViewSearchQuery" +} +export declare const edgeAliasFilterTypes: string[]; +export declare const aliasFilterTypeTranslationMap: Map; +export interface SingleEntityFilter { + singleEntity?: EntityId; +} +export interface EntityListFilter { + entityType?: EntityType; + entityList?: string[]; +} +export interface EntityNameFilter { + entityType?: EntityType; + entityNameFilter?: string; +} +export interface EntityTypeFilter { + entityType?: EntityType; +} +export interface StateEntityFilter { + stateEntityParamName?: string; + defaultStateEntity?: EntityId; +} +export interface AssetTypeFilter { + assetType?: string; + assetNameFilter?: string; +} +export interface DeviceTypeFilter { + deviceType?: string; + deviceNameFilter?: string; +} +export interface EdgeTypeFilter { + edgeType?: string; + edgeNameFilter?: string; +} +export interface EntityViewFilter { + entityViewType?: string; + entityViewNameFilter?: string; +} +export interface RelationsQueryFilter { + rootStateEntity?: boolean; + stateEntityParamName?: string; + defaultStateEntity?: EntityId; + rootEntity?: EntityId; + direction?: EntitySearchDirection; + filters?: Array; + maxLevel?: number; + fetchLastLevelOnly?: boolean; +} +export interface EntitySearchQueryFilter { + rootStateEntity?: boolean; + stateEntityParamName?: string; + defaultStateEntity?: EntityId; + rootEntity?: EntityId; + relationType?: string; + direction?: EntitySearchDirection; + maxLevel?: number; + fetchLastLevelOnly?: boolean; +} +export interface ApiUsageStateFilter { +} +export interface AssetSearchQueryFilter extends EntitySearchQueryFilter { + assetTypes?: string[]; +} +export interface DeviceSearchQueryFilter extends EntitySearchQueryFilter { + deviceTypes?: string[]; +} +export interface EdgeSearchQueryFilter extends EntitySearchQueryFilter { + edgeTypes?: string[]; +} +export interface EntityViewSearchQueryFilter extends EntitySearchQueryFilter { + entityViewTypes?: string[]; +} +export declare type EntityFilters = SingleEntityFilter & EntityListFilter & EntityNameFilter & EntityTypeFilter & StateEntityFilter & AssetTypeFilter & DeviceTypeFilter & EdgeTypeFilter & EntityViewFilter & RelationsQueryFilter & AssetSearchQueryFilter & DeviceSearchQueryFilter & EntityViewSearchQueryFilter & EntitySearchQueryFilter & EdgeSearchQueryFilter; +export interface EntityAliasFilter extends EntityFilters { + type?: AliasFilterType; + resolveMultiple?: boolean; +} +export interface EntityAliasInfo { + alias: string; + filter: EntityAliasFilter; + [key: string]: any; +} +export interface AliasesInfo { + datasourceAliases: { + [datasourceIndex: number]: EntityAliasInfo; + }; + targetDeviceAliases: { + [targetDeviceAliasIndex: number]: EntityAliasInfo; + }; +} +export interface EntityAlias extends EntityAliasInfo { + id: string; +} +export interface EntityAliases { + [id: string]: EntityAlias; +} +export interface EntityAliasFilterResult { + stateEntity: boolean; + entityFilter: EntityFilter; + entityParamName?: string; +} diff --git a/src/app/shared/models/asset.models.d.ts b/src/app/shared/models/asset.models.d.ts new file mode 100644 index 00000000..eea39e56 --- /dev/null +++ b/src/app/shared/models/asset.models.d.ts @@ -0,0 +1,20 @@ +import { BaseData } from '@shared/models/base-data'; +import { AssetId } from './id/asset-id'; +import { TenantId } from '@shared/models/id/tenant-id'; +import { CustomerId } from '@shared/models/id/customer-id'; +import { EntitySearchQuery } from '@shared/models/relation.models'; +export interface Asset extends BaseData { + tenantId?: TenantId; + customerId?: CustomerId; + name: string; + type: string; + label: string; + additionalInfo?: any; +} +export interface AssetInfo extends Asset { + customerTitle: string; + customerIsPublic: boolean; +} +export interface AssetSearchQuery extends EntitySearchQuery { + assetTypes: Array; +} diff --git a/src/app/shared/models/audit-log.models.d.ts b/src/app/shared/models/audit-log.models.d.ts new file mode 100644 index 00000000..e29226e1 --- /dev/null +++ b/src/app/shared/models/audit-log.models.d.ts @@ -0,0 +1,61 @@ +import { BaseData } from './base-data'; +import { AuditLogId } from './id/audit-log-id'; +import { CustomerId } from './id/customer-id'; +import { EntityId } from './id/entity-id'; +import { UserId } from './id/user-id'; +import { TenantId } from './id/tenant-id'; +export declare enum AuditLogMode { + TENANT = 0, + ENTITY = 1, + USER = 2, + CUSTOMER = 3 +} +export declare enum ActionType { + ADDED = "ADDED", + DELETED = "DELETED", + UPDATED = "UPDATED", + ATTRIBUTES_UPDATED = "ATTRIBUTES_UPDATED", + ATTRIBUTES_DELETED = "ATTRIBUTES_DELETED", + RPC_CALL = "RPC_CALL", + CREDENTIALS_UPDATED = "CREDENTIALS_UPDATED", + ASSIGNED_TO_CUSTOMER = "ASSIGNED_TO_CUSTOMER", + UNASSIGNED_FROM_CUSTOMER = "UNASSIGNED_FROM_CUSTOMER", + ACTIVATED = "ACTIVATED", + SUSPENDED = "SUSPENDED", + CREDENTIALS_READ = "CREDENTIALS_READ", + ATTRIBUTES_READ = "ATTRIBUTES_READ", + RELATION_ADD_OR_UPDATE = "RELATION_ADD_OR_UPDATE", + RELATION_DELETED = "RELATION_DELETED", + RELATIONS_DELETED = "RELATIONS_DELETED", + ALARM_ACK = "ALARM_ACK", + ALARM_CLEAR = "ALARM_CLEAR", + LOGIN = "LOGIN", + LOGOUT = "LOGOUT", + LOCKOUT = "LOCKOUT", + ASSIGNED_FROM_TENANT = "ASSIGNED_FROM_TENANT", + ASSIGNED_TO_TENANT = "ASSIGNED_TO_TENANT", + PROVISION_SUCCESS = "PROVISION_SUCCESS", + PROVISION_FAILURE = "PROVISION_FAILURE", + TIMESERIES_UPDATED = "TIMESERIES_UPDATED", + TIMESERIES_DELETED = "TIMESERIES_DELETED", + ASSIGNED_TO_EDGE = "ASSIGNED_TO_EDGE", + UNASSIGNED_FROM_EDGE = "UNASSIGNED_FROM_EDGE" +} +export declare enum ActionStatus { + SUCCESS = "SUCCESS", + FAILURE = "FAILURE" +} +export declare const actionTypeTranslations: Map; +export declare const actionStatusTranslations: Map; +export interface AuditLog extends BaseData { + tenantId: TenantId; + customerId: CustomerId; + entityId: EntityId; + entityName: string; + userId: UserId; + userName: string; + actionType: ActionType; + actionData: any; + actionStatus: ActionStatus; + actionFailureDetails: string; +} diff --git a/src/app/shared/models/authority.enum.d.ts b/src/app/shared/models/authority.enum.d.ts new file mode 100644 index 00000000..9751420a --- /dev/null +++ b/src/app/shared/models/authority.enum.d.ts @@ -0,0 +1,7 @@ +export declare enum Authority { + SYS_ADMIN = "SYS_ADMIN", + TENANT_ADMIN = "TENANT_ADMIN", + CUSTOMER_USER = "CUSTOMER_USER", + REFRESH_TOKEN = "REFRESH_TOKEN", + ANONYMOUS = "ANONYMOUS" +} diff --git a/src/app/shared/models/base-data.d.ts b/src/app/shared/models/base-data.d.ts new file mode 100644 index 00000000..88a6967e --- /dev/null +++ b/src/app/shared/models/base-data.d.ts @@ -0,0 +1,10 @@ +import { EntityId } from '@shared/models/id/entity-id'; +import { HasUUID } from '@shared/models/id/has-uuid'; +export declare type HasId = EntityId | HasUUID; +export interface BaseData { + createdTime?: number; + id?: T; + name?: string; + label?: string; +} +export declare function hasIdEquals(id1: HasId, id2: HasId): boolean; diff --git a/src/app/shared/models/beautify.models.d.ts b/src/app/shared/models/beautify.models.d.ts new file mode 100644 index 00000000..96009bf8 --- /dev/null +++ b/src/app/shared/models/beautify.models.d.ts @@ -0,0 +1,4 @@ +import { Observable } from 'rxjs/internal/Observable'; +export declare function beautifyJs(source: string, options?: any): Observable; +export declare function beautifyCss(source: string, options?: any): Observable; +export declare function beautifyHtml(source: string, options?: any): Observable; diff --git a/src/app/shared/models/component-descriptor.models.d.ts b/src/app/shared/models/component-descriptor.models.d.ts new file mode 100644 index 00000000..449302f9 --- /dev/null +++ b/src/app/shared/models/component-descriptor.models.d.ts @@ -0,0 +1,21 @@ +import { RuleNodeType } from '@shared/models/rule-node.models'; +export declare enum ComponentType { + ENRICHMENT = "ENRICHMENT", + FILTER = "FILTER", + TRANSFORMATION = "TRANSFORMATION", + ACTION = "ACTION", + EXTERNAL = "EXTERNAL", + FLOW = "FLOW" +} +export declare enum ComponentScope { + SYSTEM = "SYSTEM", + TENANT = "TENANT" +} +export interface ComponentDescriptor { + type: ComponentType | RuleNodeType; + scope?: ComponentScope; + name: string; + clazz: string; + configurationDescriptor?: any; + actions?: string; +} diff --git a/src/app/shared/models/constants.d.ts b/src/app/shared/models/constants.d.ts new file mode 100644 index 00000000..beeb1cc6 --- /dev/null +++ b/src/app/shared/models/constants.d.ts @@ -0,0 +1,152 @@ +import { InjectionToken } from '@angular/core'; +import { IModulesMap } from '@modules/common/modules-map.models'; +export declare const Constants: { + serverErrorCode: { + general: number; + authentication: number; + jwtTokenExpired: number; + tenantTrialExpired: number; + credentialsExpired: number; + permissionDenied: number; + invalidArguments: number; + badRequestParams: number; + itemNotFound: number; + tooManyRequests: number; + tooManyUpdates: number; + }; + entryPoints: { + login: string; + tokenRefresh: string; + nonTokenBased: string; + }; +}; +export declare const MediaBreakpoints: { + xs: string; + sm: string; + md: string; + lg: string; + xl: string; + 'lt-sm': string; + 'lt-md': string; + 'lt-lg': string; + 'lt-xl': string; + 'gt-xs': string; + 'gt-sm': string; + 'gt-md': string; + 'gt-lg': string; + 'gt-xl': string; +}; +export declare const helpBaseUrl = "https://thingsboard.io"; +export declare const HelpLinks: { + linksMap: { + outgoingMailSettings: string; + smsProviderSettings: string; + securitySettings: string; + oauth2Settings: string; + ruleEngine: string; + ruleNodeCheckRelation: string; + ruleNodeCheckExistenceFields: string; + ruleNodeGpsGeofencingFilter: string; + ruleNodeJsFilter: string; + ruleNodeJsSwitch: string; + ruleNodeMessageTypeFilter: string; + ruleNodeMessageTypeSwitch: string; + ruleNodeOriginatorTypeFilter: string; + ruleNodeOriginatorTypeSwitch: string; + ruleNodeOriginatorAttributes: string; + ruleNodeOriginatorFields: string; + ruleNodeOriginatorTelemetry: string; + ruleNodeCustomerAttributes: string; + ruleNodeCustomerDetails: string; + ruleNodeDeviceAttributes: string; + ruleNodeRelatedAttributes: string; + ruleNodeTenantAttributes: string; + ruleNodeTenantDetails: string; + ruleNodeChangeOriginator: string; + ruleNodeTransformMsg: string; + ruleNodeMsgToEmail: string; + ruleNodeAssignToCustomer: string; + ruleNodeUnassignFromCustomer: string; + ruleNodeClearAlarm: string; + ruleNodeCreateAlarm: string; + ruleNodeCreateRelation: string; + ruleNodeDeleteRelation: string; + ruleNodeMsgDelay: string; + ruleNodeMsgGenerator: string; + ruleNodeGpsGeofencingEvents: string; + ruleNodeLog: string; + ruleNodeRpcCallReply: string; + ruleNodeRpcCallRequest: string; + ruleNodeSaveAttributes: string; + ruleNodeSaveTimeseries: string; + ruleNodeSaveToCustomTable: string; + ruleNodeRuleChain: string; + ruleNodeOutputNode: string; + ruleNodeAwsSns: string; + ruleNodeAwsSqs: string; + ruleNodeKafka: string; + ruleNodeMqtt: string; + ruleNodeAzureIotHub: string; + ruleNodeRabbitMq: string; + ruleNodeRestApiCall: string; + ruleNodeSendEmail: string; + ruleNodeSendSms: string; + tenants: string; + tenantProfiles: string; + customers: string; + users: string; + devices: string; + deviceProfiles: string; + edges: string; + assets: string; + entityViews: string; + entitiesImport: string; + rulechains: string; + resources: string; + dashboards: string; + otaUpdates: string; + widgetsBundles: string; + widgetsConfig: string; + widgetsConfigTimeseries: string; + widgetsConfigLatest: string; + widgetsConfigRpc: string; + widgetsConfigAlarm: string; + widgetsConfigStatic: string; + ruleNodePushToCloud: string; + ruleNodePushToEdge: string; + }; +}; +export interface ValueTypeData { + name: string; + icon: string; +} +export declare enum ValueType { + STRING = "STRING", + INTEGER = "INTEGER", + DOUBLE = "DOUBLE", + BOOLEAN = "BOOLEAN", + JSON = "JSON" +} +export declare enum DataType { + STRING = "STRING", + LONG = "LONG", + BOOLEAN = "BOOLEAN", + DOUBLE = "DOUBLE", + JSON = "JSON" +} +export declare const DataTypeTranslationMap: Map; +export declare const valueTypesMap: Map; +export interface ContentTypeData { + name: string; + code: string; +} +export declare enum ContentType { + JSON = "JSON", + TEXT = "TEXT", + BINARY = "BINARY" +} +export declare const contentTypesMap: Map; +export declare const hidePageSizePixelValue = 550; +export declare const customTranslationsPrefix = "custom."; +export declare const i18nPrefix = "i18n"; +export declare const MODULES_MAP: InjectionToken; diff --git a/src/app/shared/models/contact-based.model.d.ts b/src/app/shared/models/contact-based.model.d.ts new file mode 100644 index 00000000..d27cd529 --- /dev/null +++ b/src/app/shared/models/contact-based.model.d.ts @@ -0,0 +1,11 @@ +import { BaseData, HasId } from './base-data'; +export interface ContactBased extends BaseData { + country: string; + state: string; + city: string; + address: string; + address2: string; + zip: string; + phone: string; + email: string; +} diff --git a/src/app/shared/models/customer.model.d.ts b/src/app/shared/models/customer.model.d.ts new file mode 100644 index 00000000..22bb208a --- /dev/null +++ b/src/app/shared/models/customer.model.d.ts @@ -0,0 +1,13 @@ +import { CustomerId } from '@shared/models/id/customer-id'; +import { ContactBased } from '@shared/models/contact-based.model'; +import { TenantId } from './id/tenant-id'; +export interface Customer extends ContactBased { + tenantId: TenantId; + title: string; + additionalInfo?: any; +} +export interface ShortCustomerInfo { + customerId: CustomerId; + title: string; + public: boolean; +} diff --git a/src/app/shared/models/dashboard.models.d.ts b/src/app/shared/models/dashboard.models.d.ts new file mode 100644 index 00000000..8cee3614 --- /dev/null +++ b/src/app/shared/models/dashboard.models.d.ts @@ -0,0 +1,103 @@ +import { BaseData } from '@shared/models/base-data'; +import { DashboardId } from '@shared/models/id/dashboard-id'; +import { TenantId } from '@shared/models/id/tenant-id'; +import { ShortCustomerInfo } from '@shared/models/customer.model'; +import { Widget } from './widget.models'; +import { Timewindow } from '@shared/models/time/time.models'; +import { EntityAliases } from './alias.models'; +import { Filters } from '@shared/models/query/query.models'; +export interface DashboardInfo extends BaseData { + tenantId?: TenantId; + title?: string; + image?: string; + assignedCustomers?: Array; + mobileHide?: boolean; + mobileOrder?: number; +} +export interface WidgetLayout { + sizeX?: number; + sizeY?: number; + mobileHide?: boolean; + mobileHeight?: number; + mobileOrder?: number; + col?: number; + row?: number; +} +export interface WidgetLayouts { + [id: string]: WidgetLayout; +} +export interface GridSettings { + backgroundColor?: string; + columns?: number; + margin?: number; + backgroundSizeMode?: string; + backgroundImageUrl?: string; + autoFillHeight?: boolean; + mobileAutoFillHeight?: boolean; + mobileRowHeight?: number; + [key: string]: any; +} +export interface DashboardLayout { + widgets: WidgetLayouts; + gridSettings: GridSettings; +} +export interface DashboardLayoutInfo { + widgetIds?: string[]; + widgetLayouts?: WidgetLayouts; + gridSettings?: GridSettings; +} +export declare type DashboardLayoutId = 'main' | 'right'; +export declare type DashboardStateLayouts = { + [key in DashboardLayoutId]?: DashboardLayout; +}; +export declare type DashboardLayoutsInfo = { + [key in DashboardLayoutId]?: DashboardLayoutInfo; +}; +export interface DashboardState { + name: string; + root: boolean; + layouts: DashboardStateLayouts; +} +export declare type StateControllerId = 'entity' | 'default' | string; +export interface DashboardSettings { + stateControllerId?: StateControllerId; + showTitle?: boolean; + showDashboardsSelect?: boolean; + showEntitiesSelect?: boolean; + showFilters?: boolean; + showDashboardLogo?: boolean; + dashboardLogoUrl?: string; + showDashboardTimewindow?: boolean; + showDashboardExport?: boolean; + showUpdateDashboardImage?: boolean; + toolbarAlwaysOpen?: boolean; + hideToolbar?: boolean; + titleColor?: string; + dashboardCss?: string; +} +export interface DashboardConfiguration { + timewindow?: Timewindow; + settings?: DashboardSettings; + widgets?: { + [id: string]: Widget; + } | Widget[]; + states?: { + [id: string]: DashboardState; + }; + entityAliases?: EntityAliases; + filters?: Filters; + [key: string]: any; +} +export interface Dashboard extends DashboardInfo { + configuration?: DashboardConfiguration; +} +export interface HomeDashboard extends Dashboard { + hideDashboardToolbar: boolean; +} +export interface HomeDashboardInfo { + dashboardId: DashboardId; + hideDashboardToolbar: boolean; +} +export declare function isPublicDashboard(dashboard: DashboardInfo): boolean; +export declare function getDashboardAssignedCustomersText(dashboard: DashboardInfo): string; +export declare function isCurrentPublicDashboardCustomer(dashboard: DashboardInfo, customerId: string): boolean; diff --git a/src/app/shared/models/device.models.d.ts b/src/app/shared/models/device.models.d.ts new file mode 100644 index 00000000..1c2c892b --- /dev/null +++ b/src/app/shared/models/device.models.d.ts @@ -0,0 +1,339 @@ +import { BaseData } from '@shared/models/base-data'; +import { DeviceId } from './id/device-id'; +import { TenantId } from '@shared/models/id/tenant-id'; +import { CustomerId } from '@shared/models/id/customer-id'; +import { DeviceCredentialsId } from '@shared/models/id/device-credentials-id'; +import { EntitySearchQuery } from '@shared/models/relation.models'; +import { DeviceProfileId } from '@shared/models/id/device-profile-id'; +import { RuleChainId } from '@shared/models/id/rule-chain-id'; +import { EntityInfoData } from '@shared/models/entity.models'; +import { FilterPredicateValue, KeyFilter } from '@shared/models/query/query.models'; +import { TimeUnit } from '@shared/models/time/time.models'; +import { AbstractControl, ValidationErrors } from '@angular/forms'; +import { OtaPackageId } from '@shared/models/id/ota-package-id'; +import { DashboardId } from '@shared/models/id/dashboard-id'; +import { DataType } from '@shared/models/constants'; +import { PowerMode } from '@home/components/profile/device/lwm2m/lwm2m-profile-config.models'; +export declare enum DeviceProfileType { + DEFAULT = "DEFAULT", + SNMP = "SNMP" +} +export declare enum DeviceTransportType { + DEFAULT = "DEFAULT", + MQTT = "MQTT", + COAP = "COAP", + LWM2M = "LWM2M", + SNMP = "SNMP" +} +export declare enum TransportPayloadType { + JSON = "JSON", + PROTOBUF = "PROTOBUF" +} +export declare enum CoapTransportDeviceType { + DEFAULT = "DEFAULT", + EFENTO = "EFENTO" +} +export declare enum DeviceProvisionType { + DISABLED = "DISABLED", + ALLOW_CREATE_NEW_DEVICES = "ALLOW_CREATE_NEW_DEVICES", + CHECK_PRE_PROVISIONED_DEVICES = "CHECK_PRE_PROVISIONED_DEVICES" +} +export interface DeviceConfigurationFormInfo { + hasProfileConfiguration: boolean; + hasDeviceConfiguration: boolean; +} +export declare const deviceProfileTypeTranslationMap: Map; +export declare const deviceProfileTypeConfigurationInfoMap: Map; +export declare const deviceTransportTypeTranslationMap: Map; +export declare const deviceProvisionTypeTranslationMap: Map; +export declare const deviceTransportTypeHintMap: Map; +export declare const transportPayloadTypeTranslationMap: Map; +export declare const defaultTelemetrySchema: string; +export declare const defaultAttributesSchema: string; +export declare const defaultRpcRequestSchema: string; +export declare const defaultRpcResponseSchema: string; +export declare const coapDeviceTypeTranslationMap: Map; +export declare const deviceTransportTypeConfigurationInfoMap: Map; +export interface DefaultDeviceProfileConfiguration { + [key: string]: any; +} +export declare type DeviceProfileConfigurations = DefaultDeviceProfileConfiguration; +export interface DeviceProfileConfiguration extends DeviceProfileConfigurations { + type: DeviceProfileType; +} +export interface DefaultDeviceProfileTransportConfiguration { + [key: string]: any; +} +export interface MqttDeviceProfileTransportConfiguration { + deviceTelemetryTopic?: string; + deviceAttributesTopic?: string; + transportPayloadTypeConfiguration?: { + transportPayloadType?: TransportPayloadType; + enableCompatibilityWithJsonPayloadFormat?: boolean; + useJsonPayloadFormatForDefaultDownlinkTopics?: boolean; + }; + [key: string]: any; +} +export interface CoapClientSetting { + powerMode?: PowerMode | null; + edrxCycle?: number; + pagingTransmissionWindow?: number; + psmActivityTimer?: number; +} +export interface CoapDeviceProfileTransportConfiguration { + coapDeviceTypeConfiguration?: { + coapDeviceType?: CoapTransportDeviceType; + transportPayloadTypeConfiguration?: { + transportPayloadType?: TransportPayloadType; + [key: string]: any; + }; + }; + clientSettings?: CoapClientSetting; +} +export interface Lwm2mDeviceProfileTransportConfiguration { + [key: string]: any; +} +export interface SnmpDeviceProfileTransportConfiguration { + timeoutMs?: number; + retries?: number; + communicationConfigs?: SnmpCommunicationConfig[]; +} +export declare enum SnmpSpecType { + TELEMETRY_QUERYING = "TELEMETRY_QUERYING", + CLIENT_ATTRIBUTES_QUERYING = "CLIENT_ATTRIBUTES_QUERYING", + SHARED_ATTRIBUTES_SETTING = "SHARED_ATTRIBUTES_SETTING", + TO_DEVICE_RPC_REQUEST = "TO_DEVICE_RPC_REQUEST" +} +export declare const SnmpSpecTypeTranslationMap: Map; +export interface SnmpCommunicationConfig { + spec: SnmpSpecType; + mappings: SnmpMapping[]; + queryingFrequencyMs?: number; +} +export interface SnmpMapping { + oid: string; + key: string; + dataType: DataType; +} +export declare type DeviceProfileTransportConfigurations = DefaultDeviceProfileTransportConfiguration & MqttDeviceProfileTransportConfiguration & CoapDeviceProfileTransportConfiguration & Lwm2mDeviceProfileTransportConfiguration & SnmpDeviceProfileTransportConfiguration; +export interface DeviceProfileTransportConfiguration extends DeviceProfileTransportConfigurations { + type: DeviceTransportType; +} +export interface DeviceProvisionConfiguration { + type: DeviceProvisionType; + provisionDeviceSecret?: string; + provisionDeviceKey?: string; +} +export declare function createDeviceProfileConfiguration(type: DeviceProfileType): DeviceProfileConfiguration; +export declare function createDeviceConfiguration(type: DeviceProfileType): DeviceConfiguration; +export declare function createDeviceProfileTransportConfiguration(type: DeviceTransportType): DeviceProfileTransportConfiguration; +export declare function createDeviceTransportConfiguration(type: DeviceTransportType): DeviceTransportConfiguration; +export declare enum AlarmConditionType { + SIMPLE = "SIMPLE", + DURATION = "DURATION", + REPEATING = "REPEATING" +} +export declare const AlarmConditionTypeTranslationMap: Map; +export interface AlarmConditionSpec { + type?: AlarmConditionType; + unit?: TimeUnit; + predicate: FilterPredicateValue; +} +export interface AlarmCondition { + condition: Array; + spec?: AlarmConditionSpec; +} +export declare enum AlarmScheduleType { + ANY_TIME = "ANY_TIME", + SPECIFIC_TIME = "SPECIFIC_TIME", + CUSTOM = "CUSTOM" +} +export declare const AlarmScheduleTypeTranslationMap: Map; +export interface AlarmSchedule { + type: AlarmScheduleType; + timezone?: string; + daysOfWeek?: number[]; + startsOn?: number; + endsOn?: number; + items?: CustomTimeSchedulerItem[]; +} +export interface CustomTimeSchedulerItem { + enabled: boolean; + dayOfWeek: number; + startsOn: number; + endsOn: number; +} +export interface AlarmRule { + condition: AlarmCondition; + alarmDetails?: string; + dashboardId?: DashboardId; + schedule?: AlarmSchedule; +} +export declare function alarmRuleValidator(control: AbstractControl): ValidationErrors | null; +export interface DeviceProfileAlarm { + id: string; + alarmType: string; + createRules: { + [severity: string]: AlarmRule; + }; + clearRule?: AlarmRule; + propagate?: boolean; + propagateToOwner?: boolean; + propagateToTenant?: boolean; + propagateRelationTypes?: Array; +} +export declare function deviceProfileAlarmValidator(control: AbstractControl): ValidationErrors | null; +export interface DeviceProfileData { + configuration: DeviceProfileConfiguration; + transportConfiguration: DeviceProfileTransportConfiguration; + alarms?: Array; + provisionConfiguration?: DeviceProvisionConfiguration; +} +export interface DeviceProfile extends BaseData { + tenantId?: TenantId; + name: string; + description?: string; + default?: boolean; + type: DeviceProfileType; + image?: string; + transportType: DeviceTransportType; + provisionType: DeviceProvisionType; + provisionDeviceKey?: string; + defaultRuleChainId?: RuleChainId; + defaultDashboardId?: DashboardId; + defaultQueueName?: string; + firmwareId?: OtaPackageId; + softwareId?: OtaPackageId; + profileData: DeviceProfileData; +} +export interface DeviceProfileInfo extends EntityInfoData { + type: DeviceProfileType; + transportType: DeviceTransportType; + image?: string; + defaultDashboardId?: DashboardId; +} +export interface DefaultDeviceConfiguration { + [key: string]: any; +} +export declare type DeviceConfigurations = DefaultDeviceConfiguration; +export interface DeviceConfiguration extends DeviceConfigurations { + type: DeviceProfileType; +} +export interface DefaultDeviceTransportConfiguration { + [key: string]: any; +} +export interface MqttDeviceTransportConfiguration { + [key: string]: any; +} +export interface CoapDeviceTransportConfiguration { + powerMode?: PowerMode | null; + edrxCycle?: number; + pagingTransmissionWindow?: number; + psmActivityTimer?: number; +} +export interface Lwm2mDeviceTransportConfiguration { + powerMode?: PowerMode | null; + edrxCycle?: number; + pagingTransmissionWindow?: number; + psmActivityTimer?: number; +} +export declare enum SnmpDeviceProtocolVersion { + V1 = "V1", + V2C = "V2C", + V3 = "V3" +} +export declare enum SnmpAuthenticationProtocol { + SHA_1 = "SHA_1", + SHA_224 = "SHA_224", + SHA_256 = "SHA_256", + SHA_384 = "SHA_384", + SHA_512 = "SHA_512", + MD5 = "MD%" +} +export declare const SnmpAuthenticationProtocolTranslationMap: Map; +export declare enum SnmpPrivacyProtocol { + DES = "DES", + AES_128 = "AES_128", + AES_192 = "AES_192", + AES_256 = "AES_256" +} +export declare const SnmpPrivacyProtocolTranslationMap: Map; +export interface SnmpDeviceTransportConfiguration { + host?: string; + port?: number; + protocolVersion?: SnmpDeviceProtocolVersion; + community?: string; + username?: string; + securityName?: string; + contextName?: string; + authenticationProtocol?: SnmpAuthenticationProtocol; + authenticationPassphrase?: string; + privacyProtocol?: SnmpPrivacyProtocol; + privacyPassphrase?: string; + engineId?: string; +} +export declare type DeviceTransportConfigurations = DefaultDeviceTransportConfiguration & MqttDeviceTransportConfiguration & CoapDeviceTransportConfiguration & Lwm2mDeviceTransportConfiguration & SnmpDeviceTransportConfiguration; +export interface DeviceTransportConfiguration extends DeviceTransportConfigurations { + type: DeviceTransportType; +} +export interface DeviceData { + configuration: DeviceConfiguration; + transportConfiguration: DeviceTransportConfiguration; +} +export interface Device extends BaseData { + tenantId?: TenantId; + customerId?: CustomerId; + name: string; + type: string; + label: string; + firmwareId?: OtaPackageId; + softwareId?: OtaPackageId; + deviceProfileId?: DeviceProfileId; + deviceData?: DeviceData; + additionalInfo?: any; +} +export interface DeviceInfo extends Device { + customerTitle: string; + customerIsPublic: boolean; + deviceProfileName: string; +} +export declare enum DeviceCredentialsType { + ACCESS_TOKEN = "ACCESS_TOKEN", + X509_CERTIFICATE = "X509_CERTIFICATE", + MQTT_BASIC = "MQTT_BASIC", + LWM2M_CREDENTIALS = "LWM2M_CREDENTIALS" +} +export declare const credentialTypeNames: Map; +export declare const credentialTypesByTransportType: Map; +export interface DeviceCredentials extends BaseData { + deviceId: DeviceId; + credentialsType: DeviceCredentialsType; + credentialsId: string; + credentialsValue: string; +} +export interface DeviceCredentialMQTTBasic { + clientId: string; + userName: string; + password: string; +} +export declare function getDeviceCredentialMQTTDefault(): DeviceCredentialMQTTBasic; +export interface DeviceSearchQuery extends EntitySearchQuery { + deviceTypes: Array; +} +export interface ClaimRequest { + secretKey: string; +} +export declare enum ClaimResponse { + SUCCESS = "SUCCESS", + FAILURE = "FAILURE", + CLAIMED = "CLAIMED" +} +export interface ClaimResult { + device: Device; + response: ClaimResponse; +} +export declare const dayOfWeekTranslations: string[]; +export declare function getDayString(day: number): string; +export declare function timeOfDayToUTCTimestamp(date: Date | number): number; +export declare function utcTimestampToTimeOfDay(time?: number): Date; +export declare function getAlarmScheduleRangeText(startsOn: Date | number, endsOn: Date | number): string; diff --git a/src/app/shared/models/edge.models.d.ts b/src/app/shared/models/edge.models.d.ts new file mode 100644 index 00000000..bbc69b8d --- /dev/null +++ b/src/app/shared/models/edge.models.d.ts @@ -0,0 +1,89 @@ +import { BaseData } from '@shared/models/base-data'; +import { TenantId } from '@shared/models/id/tenant-id'; +import { CustomerId } from '@shared/models/id/customer-id'; +import { EdgeId } from '@shared/models/id/edge-id'; +import { EntitySearchQuery } from '@shared/models/relation.models'; +import { RuleChainId } from '@shared/models/id/rule-chain-id'; +import { BaseEventBody } from '@shared/models/event.models'; +import { EventId } from '@shared/models/id/event-id'; +export interface Edge extends BaseData { + tenantId?: TenantId; + customerId?: CustomerId; + name: string; + type: string; + secret: string; + routingKey: string; + cloudEndpoint: string; + edgeLicenseKey: string; + label?: string; + additionalInfo?: any; + rootRuleChainId?: RuleChainId; +} +export interface EdgeInfo extends Edge { + customerTitle: string; + customerIsPublic: boolean; +} +export interface EdgeSearchQuery extends EntitySearchQuery { + edgeTypes: Array; +} +export declare enum EdgeEventType { + DASHBOARD = "DASHBOARD", + ASSET = "ASSET", + DEVICE = "DEVICE", + DEVICE_PROFILE = "DEVICE_PROFILE", + ENTITY_VIEW = "ENTITY_VIEW", + ALARM = "ALARM", + RULE_CHAIN = "RULE_CHAIN", + RULE_CHAIN_METADATA = "RULE_CHAIN_METADATA", + EDGE = "EDGE", + USER = "USER", + CUSTOMER = "CUSTOMER", + RELATION = "RELATION", + TENANT = "TENANT", + WIDGETS_BUNDLE = "WIDGETS_BUNDLE", + WIDGET_TYPE = "WIDGET_TYPE", + ADMIN_SETTINGS = "ADMIN_SETTINGS" +} +export declare enum EdgeEventActionType { + ADDED = "ADDED", + DELETED = "DELETED", + UPDATED = "UPDATED", + POST_ATTRIBUTES = "POST_ATTRIBUTES", + ATTRIBUTES_UPDATED = "ATTRIBUTES_UPDATED", + ATTRIBUTES_DELETED = "ATTRIBUTES_DELETED", + TIMESERIES_UPDATED = "TIMESERIES_UPDATED", + CREDENTIALS_UPDATED = "CREDENTIALS_UPDATED", + ASSIGNED_TO_CUSTOMER = "ASSIGNED_TO_CUSTOMER", + UNASSIGNED_FROM_CUSTOMER = "UNASSIGNED_FROM_CUSTOMER", + RELATION_ADD_OR_UPDATE = "RELATION_ADD_OR_UPDATE", + RELATION_DELETED = "RELATION_DELETED", + RPC_CALL = "RPC_CALL", + ALARM_ACK = "ALARM_ACK", + ALARM_CLEAR = "ALARM_CLEAR", + ASSIGNED_TO_EDGE = "ASSIGNED_TO_EDGE", + UNASSIGNED_FROM_EDGE = "UNASSIGNED_FROM_EDGE", + CREDENTIALS_REQUEST = "CREDENTIALS_REQUEST", + ENTITY_MERGE_REQUEST = "ENTITY_MERGE_REQUEST" +} +export declare enum EdgeEventStatus { + DEPLOYED = "DEPLOYED", + PENDING = "PENDING" +} +export declare const edgeEventTypeTranslations: Map; +export declare const edgeEventActionTypeTranslations: Map; +export declare const bodyContentEdgeEventActionTypes: EdgeEventActionType[]; +export declare const edgeEventStatusColor: Map; +export interface EdgeEventBody extends BaseEventBody { + type: string; + action: string; + entityId: string; +} +export interface EdgeEvent extends BaseData { + tenantId: TenantId; + entityId: string; + edgeId: EdgeId; + action: EdgeEventActionType; + type: EdgeEventType; + uid: string; + body: string; +} diff --git a/src/app/shared/models/entity-type.models.d.ts b/src/app/shared/models/entity-type.models.d.ts new file mode 100644 index 00000000..dea8bd4c --- /dev/null +++ b/src/app/shared/models/entity-type.models.d.ts @@ -0,0 +1,52 @@ +import { TenantId } from './id/tenant-id'; +import { BaseData, HasId } from '@shared/models/base-data'; +export declare enum EntityType { + TENANT = "TENANT", + TENANT_PROFILE = "TENANT_PROFILE", + CUSTOMER = "CUSTOMER", + USER = "USER", + DASHBOARD = "DASHBOARD", + ASSET = "ASSET", + DEVICE = "DEVICE", + DEVICE_PROFILE = "DEVICE_PROFILE", + ALARM = "ALARM", + RULE_CHAIN = "RULE_CHAIN", + RULE_NODE = "RULE_NODE", + EDGE = "EDGE", + ENTITY_VIEW = "ENTITY_VIEW", + WIDGETS_BUNDLE = "WIDGETS_BUNDLE", + WIDGET_TYPE = "WIDGET_TYPE", + API_USAGE_STATE = "API_USAGE_STATE", + TB_RESOURCE = "TB_RESOURCE", + OTA_PACKAGE = "OTA_PACKAGE", + RPC = "RPC" +} +export declare enum AliasEntityType { + CURRENT_CUSTOMER = "CURRENT_CUSTOMER", + CURRENT_TENANT = "CURRENT_TENANT", + CURRENT_USER = "CURRENT_USER", + CURRENT_USER_OWNER = "CURRENT_USER_OWNER" +} +export interface EntityTypeTranslation { + type?: string; + typePlural?: string; + list?: string; + nameStartsWith?: string; + details?: string; + add?: string; + noEntities?: string; + selectedEntities?: string; + search?: string; +} +export interface EntityTypeResource { + helpLinkId: string; + helpLinkIdForEntity?(entity: T): string; +} +export declare const entityTypeTranslations: Map; +export declare const entityTypeResources: Map>>; +export declare const baseDetailsPageByEntityType: Map; +export interface EntitySubtype { + tenantId: TenantId; + entityType: EntityType; + type: string; +} diff --git a/src/app/shared/models/entity-view.models.d.ts b/src/app/shared/models/entity-view.models.d.ts new file mode 100644 index 00000000..fe915506 --- /dev/null +++ b/src/app/shared/models/entity-view.models.d.ts @@ -0,0 +1,33 @@ +import { BaseData } from '@shared/models/base-data'; +import { TenantId } from '@shared/models/id/tenant-id'; +import { CustomerId } from '@shared/models/id/customer-id'; +import { EntityViewId } from '@shared/models/id/entity-view-id'; +import { EntityId } from '@shared/models/id/entity-id'; +import { EntitySearchQuery } from '@shared/models/relation.models'; +export interface AttributesEntityView { + cs: Array; + ss: Array; + sh: Array; +} +export interface TelemetryEntityView { + timeseries: Array; + attributes: AttributesEntityView; +} +export interface EntityView extends BaseData { + tenantId: TenantId; + customerId: CustomerId; + entityId: EntityId; + name: string; + type: string; + keys: TelemetryEntityView; + startTimeMs: number; + endTimeMs: number; + additionalInfo?: any; +} +export interface EntityViewInfo extends EntityView { + customerTitle: string; + customerIsPublic: boolean; +} +export interface EntityViewSearchQuery extends EntitySearchQuery { + entityViewTypes: Array; +} diff --git a/src/app/shared/models/entity.models.d.ts b/src/app/shared/models/entity.models.d.ts new file mode 100644 index 00000000..b6ba89c5 --- /dev/null +++ b/src/app/shared/models/entity.models.d.ts @@ -0,0 +1,67 @@ +import { EntityType } from '@shared/models/entity-type.models'; +import { AttributeData } from './telemetry/telemetry.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import { DeviceCredentialMQTTBasic } from '@shared/models/device.models'; +import { Lwm2mSecurityConfigModels } from '@shared/models/lwm2m-security-config.models'; +export interface EntityInfo { + name?: string; + label?: string; + entityType?: EntityType; + id?: string; + entityDescription?: string; +} +export interface EntityInfoData { + id: EntityId; + name: string; +} +export interface ImportEntityData { + lineNumber: number; + name: string; + type: string; + label: string; + gateway: boolean; + description: string; + credential: { + accessToken?: string; + x509?: string; + mqtt?: DeviceCredentialMQTTBasic; + lwm2m?: Lwm2mSecurityConfigModels; + }; + attributes: { + server: AttributeData[]; + shared: AttributeData[]; + }; + timeseries: AttributeData[]; +} +export interface EdgeImportEntityData extends ImportEntityData { + secret: string; + routingKey: string; + cloudEndpoint: string; + edgeLicenseKey: string; +} +export interface ImportEntitiesResultInfo { + create?: { + entity: number; + }; + update?: { + entity: number; + }; + error?: { + entity: number; + errors?: string; + }; +} +export interface EntityField { + keyName: string; + value: string; + name: string; + time?: boolean; +} +export interface EntitiesKeysByQuery { + attribute: Array; + timeseries: Array; + entityTypes: EntityType[]; +} +export declare const entityFields: { + [fieldName: string]: EntityField; +}; diff --git a/src/app/shared/models/error.models.d.ts b/src/app/shared/models/error.models.d.ts new file mode 100644 index 00000000..e7c19735 --- /dev/null +++ b/src/app/shared/models/error.models.d.ts @@ -0,0 +1,6 @@ +export interface ExceptionData { + message?: string; + name?: string; + lineNumber?: number; + columnNumber?: number; +} diff --git a/src/app/shared/models/event.models.d.ts b/src/app/shared/models/event.models.d.ts new file mode 100644 index 00000000..63dd6f3e --- /dev/null +++ b/src/app/shared/models/event.models.d.ts @@ -0,0 +1,81 @@ +import { BaseData } from '@shared/models/base-data'; +import { TenantId } from '@shared/models/id/tenant-id'; +import { EntityId } from '@shared/models/id/entity-id'; +import { EventId } from './id/event-id'; +import { ContentType } from '@shared/models/constants'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare enum EventType { + ERROR = "ERROR", + LC_EVENT = "LC_EVENT", + STATS = "STATS" +} +export declare enum DebugEventType { + DEBUG_RULE_NODE = "DEBUG_RULE_NODE", + DEBUG_RULE_CHAIN = "DEBUG_RULE_CHAIN" +} +export declare const eventTypeTranslations: Map; +export interface BaseEventBody { + server: string; +} +export interface ErrorEventBody extends BaseEventBody { + method: string; + error: string; +} +export interface LcEventEventBody extends BaseEventBody { + event: string; + success: boolean; + error: string; +} +export interface StatsEventBody extends BaseEventBody { + messagesProcessed: number; + errorsOccurred: number; +} +export interface DebugRuleNodeEventBody extends BaseEventBody { + type: string; + entityId: string; + entityName: string; + msgId: string; + msgType: string; + relationType: string; + dataType: ContentType; + data: string; + metadata: string; + error: string; +} +export declare type EventBody = ErrorEventBody & LcEventEventBody & StatsEventBody & DebugRuleNodeEventBody; +export interface Event extends BaseData { + tenantId: TenantId; + entityId: EntityId; + type: string; + uid: string; + body: EventBody; +} +export interface BaseFilterEventBody { + server?: string; +} +export interface ErrorFilterEventBody extends BaseFilterEventBody { + method?: string; + errorStr?: string; +} +export interface LcFilterEventEventBody extends BaseFilterEventBody { + event?: string; + status?: string; + errorStr?: string; +} +export interface StatsFilterEventBody extends BaseFilterEventBody { + messagesProcessed?: number; + errorsOccurred?: number; +} +export interface DebugFilterRuleNodeEventBody extends BaseFilterEventBody { + msgDirectionType?: string; + entityId?: string; + entityName?: EntityType; + msgId?: string; + msgType?: string; + relationType?: string; + dataSearch?: string; + metadataSearch?: string; + isError?: boolean; + errorStr?: string; +} +export declare type FilterEventBody = ErrorFilterEventBody & LcFilterEventEventBody & StatsFilterEventBody & DebugFilterRuleNodeEventBody; diff --git a/src/app/shared/models/id/alarm-id.d.ts b/src/app/shared/models/id/alarm-id.d.ts new file mode 100644 index 00000000..eaedad15 --- /dev/null +++ b/src/app/shared/models/id/alarm-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class AlarmId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/asset-id.d.ts b/src/app/shared/models/id/asset-id.d.ts new file mode 100644 index 00000000..11019066 --- /dev/null +++ b/src/app/shared/models/id/asset-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class AssetId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/audit-log-id.d.ts b/src/app/shared/models/id/audit-log-id.d.ts new file mode 100644 index 00000000..9cd1797e --- /dev/null +++ b/src/app/shared/models/id/audit-log-id.d.ts @@ -0,0 +1,5 @@ +import { HasUUID } from '@shared/models/id/has-uuid'; +export declare class AuditLogId implements HasUUID { + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/customer-id.d.ts b/src/app/shared/models/id/customer-id.d.ts new file mode 100644 index 00000000..c0609a31 --- /dev/null +++ b/src/app/shared/models/id/customer-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class CustomerId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/dashboard-id.d.ts b/src/app/shared/models/id/dashboard-id.d.ts new file mode 100644 index 00000000..87008ece --- /dev/null +++ b/src/app/shared/models/id/dashboard-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class DashboardId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/device-credentials-id.d.ts b/src/app/shared/models/id/device-credentials-id.d.ts new file mode 100644 index 00000000..c7d4a414 --- /dev/null +++ b/src/app/shared/models/id/device-credentials-id.d.ts @@ -0,0 +1,5 @@ +import { HasUUID } from '@shared/models/id/has-uuid'; +export declare class DeviceCredentialsId implements HasUUID { + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/device-id.d.ts b/src/app/shared/models/id/device-id.d.ts new file mode 100644 index 00000000..6c42e335 --- /dev/null +++ b/src/app/shared/models/id/device-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class DeviceId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/device-profile-id.d.ts b/src/app/shared/models/id/device-profile-id.d.ts new file mode 100644 index 00000000..ff2b9c7e --- /dev/null +++ b/src/app/shared/models/id/device-profile-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class DeviceProfileId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/edge-id.d.ts b/src/app/shared/models/id/edge-id.d.ts new file mode 100644 index 00000000..28321365 --- /dev/null +++ b/src/app/shared/models/id/edge-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class EdgeId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/entity-id.d.ts b/src/app/shared/models/id/entity-id.d.ts new file mode 100644 index 00000000..2196abb5 --- /dev/null +++ b/src/app/shared/models/id/entity-id.d.ts @@ -0,0 +1,6 @@ +import { AliasEntityType, EntityType } from '@shared/models/entity-type.models'; +import { HasUUID } from '@shared/models/id/has-uuid'; +export interface EntityId extends HasUUID { + entityType: EntityType | AliasEntityType; +} +export declare function entityIdEquals(entityId1: EntityId, entityId2: EntityId): boolean; diff --git a/src/app/shared/models/id/entity-view-id.d.ts b/src/app/shared/models/id/entity-view-id.d.ts new file mode 100644 index 00000000..8c5d8cb7 --- /dev/null +++ b/src/app/shared/models/id/entity-view-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class EntityViewId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/event-id.d.ts b/src/app/shared/models/id/event-id.d.ts new file mode 100644 index 00000000..3e1e8138 --- /dev/null +++ b/src/app/shared/models/id/event-id.d.ts @@ -0,0 +1,5 @@ +import { HasUUID } from '@shared/models/id/has-uuid'; +export declare class EventId implements HasUUID { + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/has-uuid.d.ts b/src/app/shared/models/id/has-uuid.d.ts new file mode 100644 index 00000000..db45be60 --- /dev/null +++ b/src/app/shared/models/id/has-uuid.d.ts @@ -0,0 +1,4 @@ +export declare const NULL_UUID = "13814000-1dd2-11b2-8080-808080808080"; +export interface HasUUID { + id: string; +} diff --git a/src/app/shared/models/id/ota-package-id.d.ts b/src/app/shared/models/id/ota-package-id.d.ts new file mode 100644 index 00000000..cfb3644d --- /dev/null +++ b/src/app/shared/models/id/ota-package-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from '@shared/models/id/entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class OtaPackageId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/public-api.d.ts b/src/app/shared/models/id/public-api.d.ts new file mode 100644 index 00000000..fab55937 --- /dev/null +++ b/src/app/shared/models/id/public-api.d.ts @@ -0,0 +1,22 @@ +export * from './alarm-id'; +export * from './asset-id'; +export * from './audit-log-id'; +export * from './customer-id'; +export * from './dashboard-id'; +export * from './device-credentials-id'; +export * from './device-id'; +export * from './device-profile-id'; +export * from './entity-id'; +export * from './entity-view-id'; +export * from './event-id'; +export * from './has-uuid'; +export * from './ota-package-id'; +export * from './rpc-id'; +export * from './rule-chain-id'; +export * from './rule-node-id'; +export * from './tenant-id'; +export * from './tenant-profile-id'; +export * from './user-id'; +export * from './widget-type-id'; +export * from './widgets-bundle-id'; +export * from './edge-id'; diff --git a/src/app/shared/models/id/rpc-id.d.ts b/src/app/shared/models/id/rpc-id.d.ts new file mode 100644 index 00000000..860be7a0 --- /dev/null +++ b/src/app/shared/models/id/rpc-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from '@shared/models/id/entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class RpcId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/rule-chain-id.d.ts b/src/app/shared/models/id/rule-chain-id.d.ts new file mode 100644 index 00000000..dae23661 --- /dev/null +++ b/src/app/shared/models/id/rule-chain-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class RuleChainId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/rule-node-id.d.ts b/src/app/shared/models/id/rule-node-id.d.ts new file mode 100644 index 00000000..62944f23 --- /dev/null +++ b/src/app/shared/models/id/rule-node-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class RuleNodeId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/tb-resource-id.d.ts b/src/app/shared/models/id/tb-resource-id.d.ts new file mode 100644 index 00000000..2d40f909 --- /dev/null +++ b/src/app/shared/models/id/tb-resource-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from '@shared/models/id/entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class TbResourceId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/tenant-id.d.ts b/src/app/shared/models/id/tenant-id.d.ts new file mode 100644 index 00000000..0decd5d6 --- /dev/null +++ b/src/app/shared/models/id/tenant-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class TenantId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/tenant-profile-id.d.ts b/src/app/shared/models/id/tenant-profile-id.d.ts new file mode 100644 index 00000000..753d55e1 --- /dev/null +++ b/src/app/shared/models/id/tenant-profile-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class TenantProfileId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/user-id.d.ts b/src/app/shared/models/id/user-id.d.ts new file mode 100644 index 00000000..879b99c8 --- /dev/null +++ b/src/app/shared/models/id/user-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class UserId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/widget-type-id.d.ts b/src/app/shared/models/id/widget-type-id.d.ts new file mode 100644 index 00000000..0919bb4c --- /dev/null +++ b/src/app/shared/models/id/widget-type-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class WidgetTypeId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/id/widgets-bundle-id.d.ts b/src/app/shared/models/id/widgets-bundle-id.d.ts new file mode 100644 index 00000000..bb62f96a --- /dev/null +++ b/src/app/shared/models/id/widgets-bundle-id.d.ts @@ -0,0 +1,7 @@ +import { EntityId } from './entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare class WidgetsBundleId implements EntityId { + entityType: EntityType; + id: string; + constructor(id: string); +} diff --git a/src/app/shared/models/login.models.d.ts b/src/app/shared/models/login.models.d.ts new file mode 100644 index 00000000..a3faa1d2 --- /dev/null +++ b/src/app/shared/models/login.models.d.ts @@ -0,0 +1,11 @@ +export interface LoginRequest { + username: string; + password: string; +} +export interface PublicLoginRequest { + publicId: string; +} +export interface LoginResponse { + token: string; + refreshToken: string; +} diff --git a/src/app/shared/models/lwm2m-security-config.models.d.ts b/src/app/shared/models/lwm2m-security-config.models.d.ts new file mode 100644 index 00000000..4d6462fd --- /dev/null +++ b/src/app/shared/models/lwm2m-security-config.models.d.ts @@ -0,0 +1,29 @@ +export declare enum Lwm2mSecurityType { + PSK = "PSK", + RPK = "RPK", + X509 = "X509", + NO_SEC = "NO_SEC" +} +export declare const Lwm2mSecurityTypeTranslationMap: Map; +export declare const Lwm2mPublicKeyOrIdTooltipTranslationsMap: Map; +export declare const Lwm2mClientSecretKeyTooltipTranslationsMap: Map; +export declare const Lwm2mClientKeyTooltipTranslationsMap: Map; +export interface ClientSecurityConfig { + securityConfigClientMode: Lwm2mSecurityType; + endpoint: string; + identity?: string; + key?: string; + cert?: string; +} +export interface ServerSecurityConfig { + securityMode: Lwm2mSecurityType; + clientPublicKeyOrId?: string; + clientSecretKey?: string; +} +export interface Lwm2mSecurityConfigModels { + client: ClientSecurityConfig; + bootstrap: Array; +} +export declare function getLwm2mSecurityConfigModelsDefault(): Lwm2mSecurityConfigModels; +export declare function getDefaultClientSecurityConfig(securityConfigMode: Lwm2mSecurityType, endPoint?: string): ClientSecurityConfig; +export declare function getDefaultServerSecurityConfig(): ServerSecurityConfig; diff --git a/src/app/shared/models/material.models.d.ts b/src/app/shared/models/material.models.d.ts new file mode 100644 index 00000000..e83f0a30 --- /dev/null +++ b/src/app/shared/models/material.models.d.ts @@ -0,0 +1,12 @@ +export interface MaterialColorItem { + value: string; + group: string; + label: string; + isDark: boolean; +} +export declare const materialColorPalette: { + [palette: string]: { + [spectrum: string]: string; + }; +}; +export declare const materialColors: MaterialColorItem[]; diff --git a/src/app/shared/models/oauth2.models.d.ts b/src/app/shared/models/oauth2.models.d.ts new file mode 100644 index 00000000..84a8bbf2 --- /dev/null +++ b/src/app/shared/models/oauth2.models.d.ts @@ -0,0 +1,96 @@ +import { HasUUID } from '@shared/models/id/has-uuid'; +export interface OAuth2Info { + enabled: boolean; + oauth2ParamsInfos: OAuth2ParamsInfo[]; +} +export interface OAuth2ParamsInfo { + clientRegistrations: OAuth2RegistrationInfo[]; + domainInfos: OAuth2DomainInfo[]; + mobileInfos: OAuth2MobileInfo[]; +} +export interface OAuth2DomainInfo { + name: string; + scheme: DomainSchema; +} +export interface OAuth2MobileInfo { + pkgName: string; + appSecret: string; +} +export declare enum DomainSchema { + HTTP = "HTTP", + HTTPS = "HTTPS", + MIXED = "MIXED" +} +export declare const domainSchemaTranslations: Map; +export declare enum MapperConfigType { + BASIC = "BASIC", + CUSTOM = "CUSTOM", + GITHUB = "GITHUB", + APPLE = "APPLE" +} +export declare enum TenantNameStrategy { + DOMAIN = "DOMAIN", + EMAIL = "EMAIL", + CUSTOM = "CUSTOM" +} +export declare enum PlatformType { + WEB = "WEB", + ANDROID = "ANDROID", + IOS = "IOS" +} +export declare const platformTypeTranslations: Map; +export interface OAuth2ClientRegistrationTemplate extends OAuth2RegistrationInfo { + comment: string; + createdTime: number; + helpLink: string; + name: string; + providerId: string; + id: HasUUID; +} +export interface OAuth2RegistrationInfo { + loginButtonLabel: string; + loginButtonIcon: string; + clientId: string; + clientSecret: string; + accessTokenUri: string; + authorizationUri: string; + scope: string[]; + platforms: PlatformType[]; + jwkSetUri?: string; + userInfoUri: string; + clientAuthenticationMethod: ClientAuthenticationMethod; + userNameAttributeName: string; + mapperConfig: MapperConfig; + additionalInfo: string; +} +export declare enum ClientAuthenticationMethod { + BASIC = "BASIC", + POST = "POST" +} +export interface MapperConfig { + allowUserCreation: boolean; + activateUser: boolean; + type: MapperConfigType; + basic?: MapperConfigBasic; + custom?: MapperConfigCustom; +} +export interface MapperConfigBasic { + emailAttributeKey: string; + firstNameAttributeKey?: string; + lastNameAttributeKey?: string; + tenantNameStrategy: TenantNameStrategy; + tenantNamePattern?: string; + customerNamePattern?: string; + defaultDashboardName?: string; + alwaysFullScreen?: boolean; +} +export interface MapperConfigCustom { + url: string; + username?: string; + password?: string; +} +export interface OAuth2ClientInfo { + name: string; + icon?: string; + url: string; +} diff --git a/src/app/shared/models/ota-package.models.d.ts b/src/app/shared/models/ota-package.models.d.ts new file mode 100644 index 00000000..3d6d8f33 --- /dev/null +++ b/src/app/shared/models/ota-package.models.d.ts @@ -0,0 +1,52 @@ +import { BaseData } from '@shared/models/base-data'; +import { TenantId } from '@shared/models/id/tenant-id'; +import { OtaPackageId } from '@shared/models/id/ota-package-id'; +import { DeviceProfileId } from '@shared/models/id/device-profile-id'; +export declare enum ChecksumAlgorithm { + MD5 = "MD5", + SHA256 = "SHA256", + SHA384 = "SHA384", + SHA512 = "SHA512", + CRC32 = "CRC32", + MURMUR3_32 = "MURMUR3_32", + MURMUR3_128 = "MURMUR3_128" +} +export declare const ChecksumAlgorithmTranslationMap: Map; +export declare enum OtaUpdateType { + FIRMWARE = "FIRMWARE", + SOFTWARE = "SOFTWARE" +} +export declare const OtaUpdateTypeTranslationMap: Map; +export interface OtaUpdateTranslation { + label: string; + required: string; + noFound: string; + noMatching: string; + hint: string; +} +export declare const OtaUpdateTranslation: Map; +export interface OtaPagesIds { + firmwareId?: OtaPackageId; + softwareId?: OtaPackageId; +} +export interface OtaPackageInfo extends BaseData { + tenantId?: TenantId; + type: OtaUpdateType; + deviceProfileId?: DeviceProfileId; + title?: string; + version?: string; + tag?: string; + hasData?: boolean; + url?: string; + fileName: string; + checksum?: string; + checksumAlgorithm?: ChecksumAlgorithm; + contentType: string; + dataSize?: number; + additionalInfo?: any; + isURL?: boolean; +} +export interface OtaPackage extends OtaPackageInfo { + file?: File; + data: string; +} diff --git a/src/app/shared/models/page/page-data.d.ts b/src/app/shared/models/page/page-data.d.ts new file mode 100644 index 00000000..02325408 --- /dev/null +++ b/src/app/shared/models/page/page-data.d.ts @@ -0,0 +1,7 @@ +export interface PageData { + data: Array; + totalPages: number; + totalElements: number; + hasNext: boolean; +} +export declare function emptyPageData(): PageData; diff --git a/src/app/shared/models/page/page-link.d.ts b/src/app/shared/models/page/page-link.d.ts new file mode 100644 index 00000000..982f3447 --- /dev/null +++ b/src/app/shared/models/page/page-link.d.ts @@ -0,0 +1,31 @@ +import { SortOrder } from '@shared/models/page/sort-order'; +import { PageData } from '@shared/models/page/page-data'; +import { SortDirection } from '@angular/material/sort'; +export declare const MAX_SAFE_PAGE_SIZE = 2147483647; +export declare type PageLinkSearchFunction = (entity: T, textSearch: string, searchProperty?: string) => boolean; +export interface PageQueryParam extends Partial { + textSearch?: string; + pageSize?: number; + page?: number; +} +export declare function defaultPageLinkSearchFunction(searchProperty?: string): PageLinkSearchFunction; +export declare function sortItems(item1: any, item2: any, property: string, asc: boolean): number; +export declare class PageLink { + textSearch: string; + pageSize: number; + page: number; + sortOrder: SortOrder; + constructor(pageSize: number, page?: number, textSearch?: string, sortOrder?: SortOrder); + nextPageLink(): PageLink; + toQuery(): string; + sort(item1: any, item2: any): number; + filterData(data: Array, searchFunction?: PageLinkSearchFunction): PageData; + sortDirection(): SortDirection; +} +export declare class TimePageLink extends PageLink { + startTime: number; + endTime: number; + constructor(pageSize: number, page?: number, textSearch?: string, sortOrder?: SortOrder, startTime?: number, endTime?: number); + nextPageLink(): TimePageLink; + toQuery(): string; +} diff --git a/src/app/shared/models/page/public-api.d.ts b/src/app/shared/models/page/public-api.d.ts new file mode 100644 index 00000000..dc06555c --- /dev/null +++ b/src/app/shared/models/page/public-api.d.ts @@ -0,0 +1,3 @@ +export * from './page-data'; +export * from './page-link'; +export * from './sort-order'; diff --git a/src/app/shared/models/page/sort-order.d.ts b/src/app/shared/models/page/sort-order.d.ts new file mode 100644 index 00000000..899069e4 --- /dev/null +++ b/src/app/shared/models/page/sort-order.d.ts @@ -0,0 +1,9 @@ +export interface SortOrder { + property: string; + direction: Direction; +} +export declare enum Direction { + ASC = "ASC", + DESC = "DESC" +} +export declare function sortOrderFromString(strSortOrder: string): SortOrder; diff --git a/src/app/shared/models/public-api.d.ts b/src/app/shared/models/public-api.d.ts new file mode 100644 index 00000000..9a825980 --- /dev/null +++ b/src/app/shared/models/public-api.d.ts @@ -0,0 +1,37 @@ +export * from './id/public-api'; +export * from './page/public-api'; +export * from './telemetry/telemetry.models'; +export * from './time/time.models'; +export * from './alarm.models'; +export * from './alias.models'; +export * from './asset.models'; +export * from './audit-log.models'; +export * from './authority.enum'; +export * from './base-data'; +export * from './component-descriptor.models'; +export * from './constants'; +export * from './contact-based.model'; +export * from './customer.model'; +export * from './dashboard.models'; +export * from './device.models'; +export * from './edge.models'; +export * from './entity.models'; +export * from './entity-type.models'; +export * from './entity-view.models'; +export * from './error.models'; +export * from './event.models'; +export * from './login.models'; +export * from './material.models'; +export * from './oauth2.models'; +export * from './queue.models'; +export * from './relation.models'; +export * from './resource.models'; +export * from './rpc.models'; +export * from './rule-chain.models'; +export * from './rule-node.models'; +export * from './settings.models'; +export * from './tenant.model'; +export * from './user.model'; +export * from './widget.models'; +export * from './widgets-bundle.model'; +export * from './window-message.model'; diff --git a/src/app/shared/models/query/query.models.d.ts b/src/app/shared/models/query/query.models.d.ts new file mode 100644 index 00000000..e84a4ad8 --- /dev/null +++ b/src/app/shared/models/query/query.models.d.ts @@ -0,0 +1,253 @@ +import { AliasFilterType, EntityFilters } from '@shared/models/alias.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import { SortDirection } from '@angular/material/sort'; +import { DataKeyType } from '@shared/models/telemetry/telemetry.models'; +import { EntityInfo } from '@shared/models/entity.models'; +import { DataKey, Datasource } from '@shared/models/widget.models'; +import { PageData } from '@shared/models/page/page-data'; +import { TranslateService } from '@ngx-translate/core'; +import { AlarmInfo, AlarmSearchStatus, AlarmSeverity } from '../alarm.models'; +import { DatePipe } from '@angular/common'; +export declare enum EntityKeyType { + ATTRIBUTE = "ATTRIBUTE", + CLIENT_ATTRIBUTE = "CLIENT_ATTRIBUTE", + SHARED_ATTRIBUTE = "SHARED_ATTRIBUTE", + SERVER_ATTRIBUTE = "SERVER_ATTRIBUTE", + TIME_SERIES = "TIME_SERIES", + ENTITY_FIELD = "ENTITY_FIELD", + ALARM_FIELD = "ALARM_FIELD", + CONSTANT = "CONSTANT", + COUNT = "COUNT" +} +export declare const entityKeyTypeTranslationMap: Map; +export declare function entityKeyTypeToDataKeyType(entityKeyType: EntityKeyType): DataKeyType; +export declare function dataKeyTypeToEntityKeyType(dataKeyType: DataKeyType): EntityKeyType; +export interface EntityKey { + type: EntityKeyType; + key: string; +} +export declare function dataKeyToEntityKey(dataKey: DataKey): EntityKey; +export declare enum EntityKeyValueType { + STRING = "STRING", + NUMERIC = "NUMERIC", + BOOLEAN = "BOOLEAN", + DATE_TIME = "DATE_TIME" +} +export interface EntityKeyValueTypeData { + name: string; + icon: string; +} +export declare const entityKeyValueTypesMap: Map; +export declare function entityKeyValueTypeToFilterPredicateType(valueType: EntityKeyValueType): FilterPredicateType; +export declare function createDefaultFilterPredicateInfo(valueType: EntityKeyValueType, complex: boolean): KeyFilterPredicateInfo; +export declare function createDefaultFilterPredicateUserInfo(): KeyFilterPredicateUserInfo; +export declare function createDefaultFilterPredicate(valueType: EntityKeyValueType, complex: boolean): KeyFilterPredicate; +export declare function getDynamicSourcesForAllowUser(allow: boolean): DynamicValueSourceType[]; +export declare enum FilterPredicateType { + STRING = "STRING", + NUMERIC = "NUMERIC", + BOOLEAN = "BOOLEAN", + COMPLEX = "COMPLEX" +} +export declare enum StringOperation { + EQUAL = "EQUAL", + NOT_EQUAL = "NOT_EQUAL", + STARTS_WITH = "STARTS_WITH", + ENDS_WITH = "ENDS_WITH", + CONTAINS = "CONTAINS", + NOT_CONTAINS = "NOT_CONTAINS", + IN = "IN", + NOT_IN = "NOT_IN" +} +export declare const stringOperationTranslationMap: Map; +export declare enum NumericOperation { + EQUAL = "EQUAL", + NOT_EQUAL = "NOT_EQUAL", + GREATER = "GREATER", + LESS = "LESS", + GREATER_OR_EQUAL = "GREATER_OR_EQUAL", + LESS_OR_EQUAL = "LESS_OR_EQUAL" +} +export declare const numericOperationTranslationMap: Map; +export declare enum BooleanOperation { + EQUAL = "EQUAL", + NOT_EQUAL = "NOT_EQUAL" +} +export declare const booleanOperationTranslationMap: Map; +export declare enum ComplexOperation { + AND = "AND", + OR = "OR" +} +export declare const complexOperationTranslationMap: Map; +export declare enum DynamicValueSourceType { + CURRENT_TENANT = "CURRENT_TENANT", + CURRENT_CUSTOMER = "CURRENT_CUSTOMER", + CURRENT_USER = "CURRENT_USER", + CURRENT_DEVICE = "CURRENT_DEVICE" +} +export declare const dynamicValueSourceTypeTranslationMap: Map; +export declare const inheritModeForDynamicValueSourceType: DynamicValueSourceType[]; +export interface DynamicValue { + sourceType: DynamicValueSourceType; + sourceAttribute: string; + inherit?: boolean; +} +export interface FilterPredicateValue { + defaultValue: T; + userValue?: T; + dynamicValue?: DynamicValue; +} +export interface StringFilterPredicate { + type: FilterPredicateType.STRING; + operation: StringOperation; + value: FilterPredicateValue; + ignoreCase: boolean; +} +export interface NumericFilterPredicate { + type: FilterPredicateType.NUMERIC; + operation: NumericOperation; + value: FilterPredicateValue; +} +export interface BooleanFilterPredicate { + type: FilterPredicateType.BOOLEAN; + operation: BooleanOperation; + value: FilterPredicateValue; +} +export interface BaseComplexFilterPredicate { + type: FilterPredicateType.COMPLEX; + operation: ComplexOperation; + predicates: Array; +} +export declare type ComplexFilterPredicate = BaseComplexFilterPredicate; +export declare type ComplexFilterPredicateInfo = BaseComplexFilterPredicate; +export declare type KeyFilterPredicate = StringFilterPredicate | NumericFilterPredicate | BooleanFilterPredicate | ComplexFilterPredicate | ComplexFilterPredicateInfo; +export interface KeyFilterPredicateUserInfo { + editable: boolean; + label: string; + autogeneratedLabel: boolean; + order?: number; +} +export interface KeyFilterPredicateInfo { + keyFilterPredicate: KeyFilterPredicate; + userInfo: KeyFilterPredicateUserInfo; +} +export interface KeyFilter { + key: EntityKey; + valueType: EntityKeyValueType; + value?: string | number | boolean; + predicate: KeyFilterPredicate; +} +export interface KeyFilterInfo { + key: EntityKey; + valueType: EntityKeyValueType; + value?: string | number | boolean; + predicates: Array; +} +export interface FilterInfo { + filter: string; + editable: boolean; + keyFilters: Array; +} +export interface FiltersInfo { + datasourceFilters: { + [datasourceIndex: number]: FilterInfo; + }; +} +export declare function keyFiltersToText(translate: TranslateService, datePipe: DatePipe, keyFilters: Array): string; +export declare function keyFilterToText(translate: TranslateService, datePipe: DatePipe, keyFilter: KeyFilter, parentComplexOperation?: ComplexOperation): string; +export declare function keyFilterPredicateToText(translate: TranslateService, datePipe: DatePipe, keyFilter: KeyFilter, keyFilterPredicate: KeyFilterPredicate, parentComplexOperation?: ComplexOperation): string; +export declare function keyFilterInfosToKeyFilters(keyFilterInfos: Array): Array; +export declare function keyFiltersToKeyFilterInfos(keyFilters: Array): Array; +export declare function filterInfoToKeyFilters(filter: FilterInfo): Array; +export declare function keyFilterPredicateInfoToKeyFilterPredicate(keyFilterPredicateInfo: KeyFilterPredicateInfo): KeyFilterPredicate; +export declare function keyFilterPredicateToKeyFilterPredicateInfo(keyFilterPredicate: KeyFilterPredicate): KeyFilterPredicateInfo; +export declare function isFilterEditable(filter: FilterInfo): boolean; +export declare function isKeyFilterInfoEditable(keyFilterInfo: KeyFilterInfo): boolean; +export declare function isPredicateInfoEditable(predicateInfo: KeyFilterPredicateInfo): boolean; +export interface UserFilterInputInfo { + label: string; + valueType: EntityKeyValueType; + info: KeyFilterPredicateInfo; +} +export declare function filterToUserFilterInfoList(filter: Filter, translate: TranslateService): Array; +export declare function keyFilterInfoToUserFilterInfoList(keyFilterInfo: KeyFilterInfo, translate: TranslateService): Array; +export declare function predicateInfoToUserFilterInfoList(key: EntityKey, valueType: EntityKeyValueType, predicateInfo: KeyFilterPredicateInfo, translate: TranslateService): Array; +export declare function generateUserFilterValueLabel(key: string, valueType: EntityKeyValueType, operation: StringOperation | BooleanOperation | NumericOperation, translate: TranslateService): string; +export interface Filter extends FilterInfo { + id: string; +} +export interface Filters { + [id: string]: Filter; +} +export interface EntityFilter extends EntityFilters { + type?: AliasFilterType; +} +export declare enum Direction { + ASC = "ASC", + DESC = "DESC" +} +export interface EntityDataSortOrder { + key: EntityKey; + direction: Direction; +} +export interface EntityDataPageLink { + pageSize: number; + page: number; + textSearch?: string; + sortOrder?: EntityDataSortOrder; + dynamic?: boolean; +} +export interface AlarmDataPageLink extends EntityDataPageLink { + startTs?: number; + endTs?: number; + timeWindow?: number; + typeList?: Array; + statusList?: Array; + severityList?: Array; + searchPropagatedAlarms?: boolean; +} +export declare function entityDataPageLinkSortDirection(pageLink: EntityDataPageLink): SortDirection; +export declare function createDefaultEntityDataPageLink(pageSize: number): EntityDataPageLink; +export declare const singleEntityDataPageLink: EntityDataPageLink; +export declare const defaultEntityDataPageLink: EntityDataPageLink; +export interface EntityCountQuery { + entityFilter: EntityFilter; + keyFilters?: Array; +} +export interface AbstractDataQuery extends EntityCountQuery { + pageLink: T; + entityFields?: Array; + latestValues?: Array; +} +export interface EntityDataQuery extends AbstractDataQuery { +} +export interface AlarmDataQuery extends AbstractDataQuery { + alarmFields?: Array; +} +export interface TsValue { + ts: number; + value: string; +} +export interface EntityData { + entityId: EntityId; + latest: { + [entityKeyType: string]: { + [key: string]: TsValue; + }; + }; + timeseries: { + [key: string]: Array; + }; +} +export interface AlarmData extends AlarmInfo { + entityId: string; + latest: { + [entityKeyType: string]: { + [key: string]: TsValue; + }; + }; +} +export declare function entityPageDataChanged(prevPageData: PageData, nextPageData: PageData): boolean; +export declare const entityInfoFields: EntityKey[]; +export declare function entityDataToEntityInfo(entityData: EntityData): EntityInfo; +export declare function updateDatasourceFromEntityInfo(datasource: Datasource, entity: EntityInfo, createFilter?: boolean): void; diff --git a/src/app/shared/models/queue.models.d.ts b/src/app/shared/models/queue.models.d.ts new file mode 100644 index 00000000..9da1f8ee --- /dev/null +++ b/src/app/shared/models/queue.models.d.ts @@ -0,0 +1,6 @@ +export declare enum ServiceType { + TB_CORE = "TB_CORE", + TB_RULE_ENGINE = "TB_RULE_ENGINE", + TB_TRANSPORT = "TB_TRANSPORT", + JS_EXECUTOR = "JS_EXECUTOR" +} diff --git a/src/app/shared/models/relation.models.d.ts b/src/app/shared/models/relation.models.d.ts new file mode 100644 index 00000000..56067f1b --- /dev/null +++ b/src/app/shared/models/relation.models.d.ts @@ -0,0 +1,52 @@ +import { EntityId } from '@shared/models/id/entity-id'; +import { EntityType } from '@shared/models/entity-type.models'; +export declare const CONTAINS_TYPE = "Contains"; +export declare const MANAGES_TYPE = "Manages"; +export declare const RelationTypes: string[]; +export declare enum RelationTypeGroup { + COMMON = "COMMON", + ALARM = "ALARM", + DASHBOARD = "DASHBOARD", + RULE_CHAIN = "RULE_CHAIN", + RULE_NODE = "RULE_NODE" +} +export declare enum EntitySearchDirection { + FROM = "FROM", + TO = "TO" +} +export declare const entitySearchDirectionTranslations: Map; +export declare const directionTypeTranslations: Map; +export interface RelationEntityTypeFilter { + relationType: string; + entityTypes: Array; +} +export interface RelationsSearchParameters { + rootId: string; + rootType: EntityType; + direction: EntitySearchDirection; + relationTypeGroup?: RelationTypeGroup; + maxLevel?: number; + fetchLastLevelOnly?: boolean; +} +export interface EntityRelationsQuery { + parameters: RelationsSearchParameters; + filters: Array; +} +export interface EntitySearchQuery { + parameters: RelationsSearchParameters; + relationType: string; +} +export interface EntityRelation { + from: EntityId; + to: EntityId; + type: string; + typeGroup: RelationTypeGroup; + additionalInfo?: any; +} +export interface EntityRelationInfo extends EntityRelation { + fromName: string; + toEntityTypeName?: string; + toName: string; + fromEntityTypeName?: string; + entityURL?: string; +} diff --git a/src/app/shared/models/resource.models.d.ts b/src/app/shared/models/resource.models.d.ts new file mode 100644 index 00000000..9124d452 --- /dev/null +++ b/src/app/shared/models/resource.models.d.ts @@ -0,0 +1,25 @@ +import { BaseData } from '@shared/models/base-data'; +import { TenantId } from '@shared/models/id/tenant-id'; +import { TbResourceId } from '@shared/models/id/tb-resource-id'; +export declare enum ResourceType { + LWM2M_MODEL = "LWM2M_MODEL", + PKCS_12 = "PKCS_12", + JKS = "JKS" +} +export declare const ResourceTypeMIMETypes: Map; +export declare const ResourceTypeExtension: Map; +export declare const ResourceTypeTranslationMap: Map; +export interface ResourceInfo extends BaseData { + tenantId?: TenantId; + resourceKey?: string; + title?: string; + resourceType: ResourceType; +} +export interface Resource extends ResourceInfo { + data: string; + fileName: string; +} +export interface Resources extends ResourceInfo { + data: Array; + fileName: Array; +} diff --git a/src/app/shared/models/rpc.models.d.ts b/src/app/shared/models/rpc.models.d.ts new file mode 100644 index 00000000..7f44c7ac --- /dev/null +++ b/src/app/shared/models/rpc.models.d.ts @@ -0,0 +1,46 @@ +import { TenantId } from '@shared/models/id/tenant-id'; +import { RpcId } from '@shared/models/id/rpc-id'; +import { DeviceId } from '@shared/models/id/device-id'; +import { TableCellButtonActionDescriptor } from '@home/components/widget/lib/table-widget.models'; +export declare enum RpcStatus { + QUEUED = "QUEUED", + DELIVERED = "DELIVERED", + SUCCESSFUL = "SUCCESSFUL", + TIMEOUT = "TIMEOUT", + FAILED = "FAILED", + SENT = "SENT", + EXPIRED = "EXPIRED" +} +export declare const rpcStatusColors: Map; +export declare const rpcStatusTranslation: Map; +export interface PersistentRpc { + id: RpcId; + createdTime: number; + expirationTime: number; + status: RpcStatus; + response: any; + request: { + id: string; + oneway: boolean; + body: { + method: string; + params: string; + }; + retries: null | number; + }; + deviceId: DeviceId; + tenantId: TenantId; + additionalInfo?: string; +} +export interface PersistentRpcData extends PersistentRpc { + actionCellButtons?: TableCellButtonActionDescriptor[]; + hasActions?: boolean; +} +export interface RequestData { + method?: string; + oneWayElseTwoWay?: boolean; + persistentPollingInterval?: number; + retries?: number; + params?: object; + additionalInfo?: object; +} diff --git a/src/app/shared/models/rule-chain.models.d.ts b/src/app/shared/models/rule-chain.models.d.ts new file mode 100644 index 00000000..c03a3419 --- /dev/null +++ b/src/app/shared/models/rule-chain.models.d.ts @@ -0,0 +1,39 @@ +import { BaseData } from '@shared/models/base-data'; +import { TenantId } from '@shared/models/id/tenant-id'; +import { RuleChainId } from '@shared/models/id/rule-chain-id'; +import { RuleNodeId } from '@shared/models/id/rule-node-id'; +import { RuleNode, RuleNodeComponentDescriptor } from '@shared/models/rule-node.models'; +import { ComponentType } from '@shared/models/component-descriptor.models'; +export interface RuleChain extends BaseData { + tenantId: TenantId; + name: string; + firstRuleNodeId: RuleNodeId; + root: boolean; + debugMode: boolean; + type: string; + configuration?: any; + additionalInfo?: any; + isDefault?: boolean; +} +export interface RuleChainMetaData { + ruleChainId: RuleChainId; + firstNodeIndex?: number; + nodes: Array; + connections: Array; +} +export interface RuleChainImport { + ruleChain: RuleChain; + metadata: RuleChainMetaData; +} +export interface NodeConnectionInfo { + fromIndex: number; + toIndex: number; + type: string; +} +export declare const ruleNodeTypeComponentTypes: ComponentType[]; +export declare const unknownNodeComponent: RuleNodeComponentDescriptor; +export declare const inputNodeComponent: RuleNodeComponentDescriptor; +export declare enum RuleChainType { + CORE = "CORE", + EDGE = "EDGE" +} diff --git a/src/app/shared/models/rule-node.models.d.ts b/src/app/shared/models/rule-node.models.d.ts new file mode 100644 index 00000000..b5384d2d --- /dev/null +++ b/src/app/shared/models/rule-node.models.d.ts @@ -0,0 +1,170 @@ +import { BaseData } from '@shared/models/base-data'; +import { RuleChainId } from '@shared/models/id/rule-chain-id'; +import { RuleNodeId } from '@shared/models/id/rule-node-id'; +import { ComponentDescriptor } from '@shared/models/component-descriptor.models'; +import { FcEdge, FcNode } from 'ngx-flowchart'; +import { Observable } from 'rxjs'; +import { PageComponent } from '@shared/components/page.component'; +import { AfterViewInit, EventEmitter, OnInit } from '@angular/core'; +import { Store } from '@ngrx/store'; +import { AppState } from '@core/core.state'; +import { FormGroup } from '@angular/forms'; +import { RuleChainType } from '@shared/models/rule-chain.models'; +import * as i0 from "@angular/core"; +export interface RuleNodeConfiguration { + [key: string]: any; +} +export interface RuleNode extends BaseData { + ruleChainId?: RuleChainId; + type: string; + name: string; + debugMode: boolean; + configuration: RuleNodeConfiguration; + additionalInfo?: any; +} +export interface LinkLabel { + name: string; + value: string; +} +export interface RuleNodeDefinition { + description: string; + details: string; + inEnabled: boolean; + outEnabled: boolean; + relationTypes: string[]; + customRelations: boolean; + ruleChainNode?: boolean; + defaultConfiguration: RuleNodeConfiguration; + icon?: string; + iconUrl?: string; + docUrl?: string; + uiResources?: string[]; + uiResourceLoadError?: string; + configDirective?: string; +} +export interface RuleNodeConfigurationDescriptor { + nodeDefinition: RuleNodeDefinition; +} +export interface IRuleNodeConfigurationComponent { + ruleNodeId: string; + ruleChainId: string; + ruleChainType: RuleChainType; + configuration: RuleNodeConfiguration; + configurationChanged: Observable; + validate(): any; + [key: string]: any; +} +export declare abstract class RuleNodeConfigurationComponent extends PageComponent implements IRuleNodeConfigurationComponent, OnInit, AfterViewInit { + protected store: Store; + ruleNodeId: string; + ruleChainId: string; + ruleChainType: RuleChainType; + configurationValue: RuleNodeConfiguration; + private configurationSet; + set configuration(value: RuleNodeConfiguration); + get configuration(): RuleNodeConfiguration; + configurationChangedEmiter: EventEmitter; + configurationChanged: Observable; + protected constructor(store: Store); + ngOnInit(): void; + ngAfterViewInit(): void; + validate(): void; + protected setupConfiguration(configuration: RuleNodeConfiguration): void; + protected updateConfiguration(configuration: RuleNodeConfiguration): void; + protected updateValidators(emitEvent: boolean, trigger?: string): void; + protected validatorTriggers(): string[]; + protected onConfigurationChanged(updated: RuleNodeConfiguration): void; + protected prepareInputConfig(configuration: RuleNodeConfiguration): RuleNodeConfiguration; + protected prepareOutputConfig(configuration: RuleNodeConfiguration): RuleNodeConfiguration; + protected validateConfig(): boolean; + protected onValidate(): void; + protected abstract configForm(): FormGroup; + protected abstract onConfigurationSet(configuration: RuleNodeConfiguration): any; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; +} +export declare enum RuleNodeType { + FILTER = "FILTER", + ENRICHMENT = "ENRICHMENT", + TRANSFORMATION = "TRANSFORMATION", + ACTION = "ACTION", + EXTERNAL = "EXTERNAL", + FLOW = "FLOW", + UNKNOWN = "UNKNOWN", + INPUT = "INPUT" +} +export declare const ruleNodeTypesLibrary: RuleNodeType[]; +export interface RuleNodeTypeDescriptor { + value: RuleNodeType; + name: string; + details: string; + nodeClass: string; + icon: string; + special?: boolean; +} +export declare const ruleNodeTypeDescriptors: Map; +export interface RuleNodeComponentDescriptor extends ComponentDescriptor { + type: RuleNodeType; + configurationDescriptor?: RuleNodeConfigurationDescriptor; +} +export interface FcRuleNodeType extends FcNode { + component?: RuleNodeComponentDescriptor; + nodeClass?: string; + icon?: string; + iconUrl?: string; +} +export interface FcRuleNode extends FcRuleNodeType { + ruleNodeId?: RuleNodeId; + additionalInfo?: any; + configuration?: RuleNodeConfiguration; + debugMode?: boolean; + error?: string; + highlighted?: boolean; + componentClazz?: string; + ruleChainType?: RuleChainType; +} +export interface FcRuleEdge extends FcEdge { + labels?: string[]; +} +export interface TestScriptInputParams { + script: string; + scriptType: string; + argNames: string[]; + msg: string; + metadata: { + [key: string]: string; + }; + msgType: string; +} +export interface TestScriptResult { + output: string; + error: string; +} +export declare enum MessageType { + POST_ATTRIBUTES_REQUEST = "POST_ATTRIBUTES_REQUEST", + POST_TELEMETRY_REQUEST = "POST_TELEMETRY_REQUEST", + TO_SERVER_RPC_REQUEST = "TO_SERVER_RPC_REQUEST", + RPC_CALL_FROM_SERVER_TO_DEVICE = "RPC_CALL_FROM_SERVER_TO_DEVICE", + ACTIVITY_EVENT = "ACTIVITY_EVENT", + INACTIVITY_EVENT = "INACTIVITY_EVENT", + CONNECT_EVENT = "CONNECT_EVENT", + DISCONNECT_EVENT = "DISCONNECT_EVENT", + ENTITY_CREATED = "ENTITY_CREATED", + ENTITY_UPDATED = "ENTITY_UPDATED", + ENTITY_DELETED = "ENTITY_DELETED", + ENTITY_ASSIGNED = "ENTITY_ASSIGNED", + ENTITY_UNASSIGNED = "ENTITY_UNASSIGNED", + ATTRIBUTES_UPDATED = "ATTRIBUTES_UPDATED", + ATTRIBUTES_DELETED = "ATTRIBUTES_DELETED", + TIMESERIES_UPDATED = "TIMESERIES_UPDATED", + TIMESERIES_DELETED = "TIMESERIES_DELETED", + RPC_QUEUED = "RPC_QUEUED", + RPC_DELIVERED = "RPC_DELIVERED", + RPC_SUCCESSFUL = "RPC_SUCCESSFUL", + RPC_TIMEOUT = "RPC_TIMEOUT", + RPC_FAILED = "RPC_FAILED" +} +export declare const messageTypeNames: Map; +export declare const ruleChainNodeClazz = "org.thingsboard.rule.engine.flow.TbRuleChainInputNode"; +export declare const outputNodeClazz = "org.thingsboard.rule.engine.flow.TbRuleChainOutputNode"; +export declare function getRuleNodeHelpLink(component: RuleNodeComponentDescriptor): string; diff --git a/src/app/shared/models/settings.models.d.ts b/src/app/shared/models/settings.models.d.ts new file mode 100644 index 00000000..ce8720b3 --- /dev/null +++ b/src/app/shared/models/settings.models.d.ts @@ -0,0 +1,71 @@ +import { ValidatorFn } from '@angular/forms'; +export declare const smtpPortPattern: RegExp; +export interface AdminSettings { + key: string; + jsonValue: T; +} +export declare type SmtpProtocol = 'smtp' | 'smtps'; +export interface MailServerSettings { + showChangePassword: boolean; + mailFrom: string; + smtpProtocol: SmtpProtocol; + smtpHost: string; + smtpPort: number; + timeout: number; + enableTls: boolean; + username: string; + changePassword?: boolean; + password?: string; + enableProxy: boolean; + proxyHost: string; + proxyPort: number; + proxyUser: string; + proxyPassword: string; +} +export interface GeneralSettings { + baseUrl: string; +} +export interface UserPasswordPolicy { + minimumLength: number; + minimumUppercaseLetters: number; + minimumLowercaseLetters: number; + minimumDigits: number; + minimumSpecialCharacters: number; + passwordExpirationPeriodDays: number; + allowWhitespaces: boolean; +} +export interface SecuritySettings { + passwordPolicy: UserPasswordPolicy; +} +export interface UpdateMessage { + message: string; + updateAvailable: boolean; +} +export declare const phoneNumberPattern: RegExp; +export declare const phoneNumberPatternTwilio: RegExp; +export declare enum SmsProviderType { + AWS_SNS = "AWS_SNS", + TWILIO = "TWILIO" +} +export declare const smsProviderTypeTranslationMap: Map; +export interface AwsSnsSmsProviderConfiguration { + accessKeyId?: string; + secretAccessKey?: string; + region?: string; +} +export interface TwilioSmsProviderConfiguration { + accountSid?: string; + accountToken?: string; + numberFrom?: string; +} +export declare type SmsProviderConfigurations = AwsSnsSmsProviderConfiguration & TwilioSmsProviderConfiguration; +export interface SmsProviderConfiguration extends SmsProviderConfigurations { + type: SmsProviderType; +} +export declare function smsProviderConfigurationValidator(required: boolean): ValidatorFn; +export interface TestSmsRequest { + providerConfiguration: SmsProviderConfiguration; + numberTo: string; + message: string; +} +export declare function createSmsProviderConfiguration(type: SmsProviderType): SmsProviderConfiguration; diff --git a/src/app/shared/models/telemetry/telemetry.models.d.ts b/src/app/shared/models/telemetry/telemetry.models.d.ts new file mode 100644 index 00000000..9326c602 --- /dev/null +++ b/src/app/shared/models/telemetry/telemetry.models.d.ts @@ -0,0 +1,256 @@ +import { EntityType } from '@shared/models/entity-type.models'; +import { AggregationType } from '../time/time.models'; +import { Observable } from 'rxjs'; +import { EntityId } from '@shared/models/id/entity-id'; +import { NgZone } from '@angular/core'; +import { AlarmData, AlarmDataQuery, EntityCountQuery, EntityData, EntityDataQuery, EntityKey, TsValue } from '@shared/models/query/query.models'; +import { PageData } from '@shared/models/page/page-data'; +export declare enum DataKeyType { + timeseries = "timeseries", + attribute = "attribute", + function = "function", + alarm = "alarm", + entityField = "entityField", + count = "count" +} +export declare enum LatestTelemetry { + LATEST_TELEMETRY = "LATEST_TELEMETRY" +} +export declare enum AttributeScope { + CLIENT_SCOPE = "CLIENT_SCOPE", + SERVER_SCOPE = "SERVER_SCOPE", + SHARED_SCOPE = "SHARED_SCOPE" +} +export declare enum TelemetryFeature { + ATTRIBUTES = "ATTRIBUTES", + TIMESERIES = "TIMESERIES" +} +export declare type TelemetryType = LatestTelemetry | AttributeScope; +export declare function toTelemetryType(val: string): TelemetryType; +export declare const telemetryTypeTranslations: Map; +export declare const isClientSideTelemetryType: Map; +export interface AttributeData { + lastUpdateTs?: number; + key: string; + value: any; +} +export interface TimeseriesData { + [key: string]: Array; +} +export declare enum DataSortOrder { + ASC = "ASC", + DESC = "DESC" +} +export interface WebsocketCmd { + cmdId: number; +} +export interface TelemetryPluginCmd extends WebsocketCmd { + keys: string; +} +export declare abstract class SubscriptionCmd implements TelemetryPluginCmd { + cmdId: number; + keys: string; + entityType: EntityType; + entityId: string; + scope?: AttributeScope; + unsubscribe: boolean; + abstract getType(): TelemetryFeature; +} +export declare class AttributesSubscriptionCmd extends SubscriptionCmd { + getType(): TelemetryFeature; +} +export declare class TimeseriesSubscriptionCmd extends SubscriptionCmd { + startTs: number; + timeWindow: number; + interval: number; + limit: number; + agg: AggregationType; + getType(): TelemetryFeature; +} +export declare class GetHistoryCmd implements TelemetryPluginCmd { + cmdId: number; + keys: string; + entityType: EntityType; + entityId: string; + startTs: number; + endTs: number; + interval: number; + limit: number; + agg: AggregationType; +} +export interface EntityHistoryCmd { + keys: Array; + startTs: number; + endTs: number; + interval: number; + limit: number; + agg: AggregationType; + fetchLatestPreviousPoint?: boolean; +} +export interface LatestValueCmd { + keys: Array; +} +export interface TimeSeriesCmd { + keys: Array; + startTs: number; + timeWindow: number; + interval: number; + limit: number; + agg: AggregationType; + fetchLatestPreviousPoint?: boolean; +} +export declare class EntityDataCmd implements WebsocketCmd { + cmdId: number; + query?: EntityDataQuery; + historyCmd?: EntityHistoryCmd; + latestCmd?: LatestValueCmd; + tsCmd?: TimeSeriesCmd; + isEmpty(): boolean; +} +export declare class EntityCountCmd implements WebsocketCmd { + cmdId: number; + query?: EntityCountQuery; +} +export declare class AlarmDataCmd implements WebsocketCmd { + cmdId: number; + query?: AlarmDataQuery; + isEmpty(): boolean; +} +export declare class EntityDataUnsubscribeCmd implements WebsocketCmd { + cmdId: number; +} +export declare class EntityCountUnsubscribeCmd implements WebsocketCmd { + cmdId: number; +} +export declare class AlarmDataUnsubscribeCmd implements WebsocketCmd { + cmdId: number; +} +export declare class TelemetryPluginCmdsWrapper { + attrSubCmds: Array; + tsSubCmds: Array; + historyCmds: Array; + entityDataCmds: Array; + entityDataUnsubscribeCmds: Array; + alarmDataCmds: Array; + alarmDataUnsubscribeCmds: Array; + entityCountCmds: Array; + entityCountUnsubscribeCmds: Array; + constructor(); + hasCommands(): boolean; + clear(): void; + preparePublishCommands(maxCommands: number): TelemetryPluginCmdsWrapper; + private popCmds; +} +export interface SubscriptionData { + [key: string]: [number, any][]; +} +export interface SubscriptionDataHolder { + data: SubscriptionData; +} +export interface SubscriptionUpdateMsg extends SubscriptionDataHolder { + subscriptionId: number; + errorCode: number; + errorMsg: string; +} +export declare enum CmdUpdateType { + ENTITY_DATA = "ENTITY_DATA", + ALARM_DATA = "ALARM_DATA", + COUNT_DATA = "COUNT_DATA" +} +export interface CmdUpdateMsg { + cmdId: number; + errorCode: number; + errorMsg: string; + cmdUpdateType: CmdUpdateType; +} +export interface DataUpdateMsg extends CmdUpdateMsg { + data?: PageData; + update?: Array; +} +export interface EntityDataUpdateMsg extends DataUpdateMsg { + cmdUpdateType: CmdUpdateType.ENTITY_DATA; +} +export interface AlarmDataUpdateMsg extends DataUpdateMsg { + cmdUpdateType: CmdUpdateType.ALARM_DATA; + allowedEntities: number; + totalEntities: number; +} +export interface EntityCountUpdateMsg extends CmdUpdateMsg { + cmdUpdateType: CmdUpdateType.COUNT_DATA; + count: number; +} +export declare type WebsocketDataMsg = AlarmDataUpdateMsg | EntityDataUpdateMsg | EntityCountUpdateMsg | SubscriptionUpdateMsg; +export declare function isEntityDataUpdateMsg(message: WebsocketDataMsg): message is EntityDataUpdateMsg; +export declare function isAlarmDataUpdateMsg(message: WebsocketDataMsg): message is AlarmDataUpdateMsg; +export declare function isEntityCountUpdateMsg(message: WebsocketDataMsg): message is EntityCountUpdateMsg; +export declare class SubscriptionUpdate implements SubscriptionUpdateMsg { + subscriptionId: number; + errorCode: number; + errorMsg: string; + data: SubscriptionData; + constructor(msg: SubscriptionUpdateMsg); + prepareData(keys: string[]): void; + updateAttributeData(origData: Array): Array; +} +export declare class CmdUpdate implements CmdUpdateMsg { + cmdId: number; + errorCode: number; + errorMsg: string; + cmdUpdateType: CmdUpdateType; + constructor(msg: CmdUpdateMsg); +} +export declare class DataUpdate extends CmdUpdate implements DataUpdateMsg { + data?: PageData; + update?: Array; + constructor(msg: DataUpdateMsg); +} +export declare class EntityDataUpdate extends DataUpdate { + constructor(msg: EntityDataUpdateMsg); + prepareData(tsOffset: number): void; + private processEntityData; +} +export declare class AlarmDataUpdate extends DataUpdate { + allowedEntities: number; + totalEntities: number; + constructor(msg: AlarmDataUpdateMsg); + prepareData(tsOffset: number): void; + private processAlarmData; +} +export declare class EntityCountUpdate extends CmdUpdate { + count: number; + constructor(msg: EntityCountUpdateMsg); +} +export interface TelemetryService { + subscribe(subscriber: TelemetrySubscriber): any; + update(subscriber: TelemetrySubscriber): any; + unsubscribe(subscriber: TelemetrySubscriber): any; +} +export declare class TelemetrySubscriber { + private telemetryService; + private zone?; + private dataSubject; + private entityDataSubject; + private alarmDataSubject; + private entityCountSubject; + private reconnectSubject; + private tsOffset; + subscriptionCommands: Array; + data$: Observable; + entityData$: Observable; + alarmData$: Observable; + entityCount$: Observable; + reconnect$: Observable; + static createEntityAttributesSubscription(telemetryService: TelemetryService, entityId: EntityId, attributeScope: TelemetryType, zone: NgZone, keys?: string[]): TelemetrySubscriber; + constructor(telemetryService: TelemetryService, zone?: NgZone); + subscribe(): void; + update(): void; + unsubscribe(): void; + complete(): void; + setTsOffset(tsOffset: number): boolean; + onData(message: SubscriptionUpdate): void; + onEntityData(message: EntityDataUpdate): void; + onAlarmData(message: AlarmDataUpdate): void; + onEntityCount(message: EntityCountUpdate): void; + onReconnected(): void; + attributeData$(): Observable>; +} diff --git a/src/app/shared/models/tenant.model.d.ts b/src/app/shared/models/tenant.model.d.ts new file mode 100644 index 00000000..cf055132 --- /dev/null +++ b/src/app/shared/models/tenant.model.d.ts @@ -0,0 +1,60 @@ +import { ContactBased } from '@shared/models/contact-based.model'; +import { TenantId } from './id/tenant-id'; +import { TenantProfileId } from '@shared/models/id/tenant-profile-id'; +import { BaseData } from '@shared/models/base-data'; +export declare enum TenantProfileType { + DEFAULT = "DEFAULT" +} +export interface DefaultTenantProfileConfiguration { + maxDevices: number; + maxAssets: number; + maxCustomers: number; + maxUsers: number; + maxDashboards: number; + maxRuleChains: number; + maxResourcesInBytes: number; + maxOtaPackagesInBytes: number; + transportTenantMsgRateLimit?: string; + transportTenantTelemetryMsgRateLimit?: string; + transportTenantTelemetryDataPointsRateLimit?: string; + transportDeviceMsgRateLimit?: string; + transportDeviceTelemetryMsgRateLimit?: string; + transportDeviceTelemetryDataPointsRateLimit?: string; + maxTransportMessages: number; + maxTransportDataPoints: number; + maxREExecutions: number; + maxJSExecutions: number; + maxDPStorageDays: number; + maxRuleNodeExecutionsPerMessage: number; + maxEmails: number; + maxSms: number; + maxCreatedAlarms: number; + defaultStorageTtlDays: number; + alarmsTtlDays: number; + rpcTtlDays: number; +} +export declare type TenantProfileConfigurations = DefaultTenantProfileConfiguration; +export interface TenantProfileConfiguration extends TenantProfileConfigurations { + type: TenantProfileType; +} +export declare function createTenantProfileConfiguration(type: TenantProfileType): TenantProfileConfiguration; +export interface TenantProfileData { + configuration: TenantProfileConfiguration; +} +export interface TenantProfile extends BaseData { + name: string; + description?: string; + default?: boolean; + isolatedTbCore?: boolean; + isolatedTbRuleEngine?: boolean; + profileData?: TenantProfileData; +} +export interface Tenant extends ContactBased { + title: string; + region: string; + tenantProfileId: TenantProfileId; + additionalInfo?: any; +} +export interface TenantInfo extends Tenant { + tenantProfileName: string; +} diff --git a/src/app/shared/models/time/time.models.d.ts b/src/app/shared/models/time/time.models.d.ts new file mode 100644 index 00000000..76e3afd4 --- /dev/null +++ b/src/app/shared/models/time/time.models.d.ts @@ -0,0 +1,158 @@ +import { TimeService } from '@core/services/time.service'; +import * as moment_ from 'moment'; +export declare const SECOND = 1000; +export declare const MINUTE: number; +export declare const HOUR: number; +export declare const DAY: number; +export declare const WEEK: number; +export declare const YEAR: number; +export declare type ComparisonDuration = moment_.unitOfTime.DurationConstructor | 'previousInterval' | 'customInterval'; +export declare enum TimewindowType { + REALTIME = 0, + HISTORY = 1 +} +export declare enum RealtimeWindowType { + LAST_INTERVAL = 0, + INTERVAL = 1 +} +export declare enum HistoryWindowType { + LAST_INTERVAL = 0, + FIXED = 1, + INTERVAL = 2 +} +export interface IntervalWindow { + interval?: number; + timewindowMs?: number; + quickInterval?: QuickTimeInterval; +} +export interface RealtimeWindow extends IntervalWindow { + realtimeType?: RealtimeWindowType; +} +export interface FixedWindow { + startTimeMs: number; + endTimeMs: number; +} +export interface HistoryWindow extends IntervalWindow { + historyType?: HistoryWindowType; + fixedTimewindow?: FixedWindow; +} +export declare enum AggregationType { + MIN = "MIN", + MAX = "MAX", + AVG = "AVG", + SUM = "SUM", + COUNT = "COUNT", + NONE = "NONE" +} +export declare const aggregationTranslations: Map; +export interface Aggregation { + interval?: number; + type: AggregationType; + limit: number; +} +export interface Timewindow { + displayValue?: string; + displayTimezoneAbbr?: string; + hideInterval?: boolean; + hideAggregation?: boolean; + hideAggInterval?: boolean; + hideTimezone?: boolean; + selectedTab?: TimewindowType; + realtime?: RealtimeWindow; + history?: HistoryWindow; + aggregation?: Aggregation; + timezone?: string; +} +export interface SubscriptionAggregation extends Aggregation { + interval?: number; + timeWindow?: number; + stateData?: boolean; +} +export interface SubscriptionTimewindow { + startTs?: number; + quickInterval?: QuickTimeInterval; + timezone?: string; + tsOffset?: number; + realtimeWindowMs?: number; + fixedWindow?: FixedWindow; + aggregation?: SubscriptionAggregation; + timeForComparison?: ComparisonDuration; +} +export interface WidgetTimewindow { + minTime?: number; + maxTime?: number; + interval?: number; + timezone?: string; + stDiff?: number; +} +export declare enum QuickTimeInterval { + YESTERDAY = "YESTERDAY", + DAY_BEFORE_YESTERDAY = "DAY_BEFORE_YESTERDAY", + THIS_DAY_LAST_WEEK = "THIS_DAY_LAST_WEEK", + PREVIOUS_WEEK = "PREVIOUS_WEEK", + PREVIOUS_WEEK_ISO = "PREVIOUS_WEEK_ISO", + PREVIOUS_MONTH = "PREVIOUS_MONTH", + PREVIOUS_YEAR = "PREVIOUS_YEAR", + CURRENT_HOUR = "CURRENT_HOUR", + CURRENT_DAY = "CURRENT_DAY", + CURRENT_DAY_SO_FAR = "CURRENT_DAY_SO_FAR", + CURRENT_WEEK = "CURRENT_WEEK", + CURRENT_WEEK_ISO = "CURRENT_WEEK_ISO", + CURRENT_WEEK_SO_FAR = "CURRENT_WEEK_SO_FAR", + CURRENT_WEEK_ISO_SO_FAR = "CURRENT_WEEK_ISO_SO_FAR", + CURRENT_MONTH = "CURRENT_MONTH", + CURRENT_MONTH_SO_FAR = "CURRENT_MONTH_SO_FAR", + CURRENT_YEAR = "CURRENT_YEAR", + CURRENT_YEAR_SO_FAR = "CURRENT_YEAR_SO_FAR" +} +export declare const QuickTimeIntervalTranslationMap: Map; +export declare function historyInterval(timewindowMs: number): Timewindow; +export declare function defaultTimewindow(timeService: TimeService): Timewindow; +export declare function initModelFromDefaultTimewindow(value: Timewindow, timeService: TimeService): Timewindow; +export declare function toHistoryTimewindow(timewindow: Timewindow, startTimeMs: number, endTimeMs: number, interval: number, timeService: TimeService): Timewindow; +export declare function timewindowTypeChanged(newTimewindow: Timewindow, oldTimewindow: Timewindow): boolean; +export declare function calculateTsOffset(timezone?: string): number; +export declare function isHistoryTypeTimewindow(timewindow: Timewindow): boolean; +export declare function createSubscriptionTimewindow(timewindow: Timewindow, stDiff: number, stateData: boolean, timeService: TimeService): SubscriptionTimewindow; +export declare function calculateIntervalStartEndTime(interval: QuickTimeInterval, tz?: string): [number, number]; +export declare function calculateIntervalStartTime(interval: QuickTimeInterval, currentDate: moment_.Moment): moment_.Moment; +export declare function calculateIntervalEndTime(interval: QuickTimeInterval, startDate: moment_.Moment, tz?: string): number; +export declare function quickTimeIntervalPeriod(interval: QuickTimeInterval): number; +export declare function calculateIntervalComparisonStartTime(interval: QuickTimeInterval, startDate: moment_.Moment): moment_.Moment; +export declare function calculateIntervalComparisonEndTime(interval: QuickTimeInterval, comparisonStartDate: moment_.Moment, endDate: moment_.Moment): number; +export declare function createTimewindowForComparison(subscriptionTimewindow: SubscriptionTimewindow, timeUnit: ComparisonDuration, customIntervalValue: number): SubscriptionTimewindow; +export declare function cloneSelectedTimewindow(timewindow: Timewindow): Timewindow; +export interface TimeInterval { + name: string; + translateParams: { + [key: string]: any; + }; + value: number; +} +export declare const defaultTimeIntervals: TimeInterval[]; +export declare enum TimeUnit { + SECONDS = "SECONDS", + MINUTES = "MINUTES", + HOURS = "HOURS", + DAYS = "DAYS" +} +export declare enum TimeUnitMilli { + MILLISECONDS = "MILLISECONDS" +} +export declare type FullTimeUnit = TimeUnit | TimeUnitMilli; +export declare const timeUnitTranslationMap: Map; +export interface TimezoneInfo { + id: string; + name: string; + offset: string; + nOffset: number; + abbr: string; +} +export declare function getTimezones(): TimezoneInfo[]; +export declare function getTimezoneInfo(timezoneId: string, defaultTimezoneId?: string, userTimezoneByDefault?: boolean): TimezoneInfo; +export declare function getDefaultTimezoneInfo(): TimezoneInfo; +export declare function getDefaultTimezone(): string; +export declare function getCurrentTime(tz?: string): moment_.Moment; +export declare function getTime(ts: number, tz?: string): moment_.Moment; +export declare function getTimezone(tz: string): moment_.Moment; +export declare function getCurrentTimeForComparison(timeForComparison: moment_.unitOfTime.DurationConstructor, tz?: string): moment_.Moment; diff --git a/src/app/shared/models/user.model.d.ts b/src/app/shared/models/user.model.d.ts new file mode 100644 index 00000000..063c1688 --- /dev/null +++ b/src/app/shared/models/user.model.d.ts @@ -0,0 +1,31 @@ +import { BaseData } from './base-data'; +import { UserId } from './id/user-id'; +import { CustomerId } from './id/customer-id'; +import { Authority } from './authority.enum'; +import { TenantId } from './id/tenant-id'; +export interface User extends BaseData { + tenantId: TenantId; + customerId: CustomerId; + email: string; + authority: Authority; + firstName: string; + lastName: string; + additionalInfo: any; +} +export declare enum ActivationMethod { + DISPLAY_ACTIVATION_LINK = "DISPLAY_ACTIVATION_LINK", + SEND_ACTIVATION_MAIL = "SEND_ACTIVATION_MAIL" +} +export declare const activationMethodTranslations: Map; +export interface AuthUser { + sub: string; + scopes: string[]; + userId: string; + firstName: string; + lastName: string; + enabled: boolean; + tenantId: string; + customerId: string; + isPublic: boolean; + authority: Authority; +} diff --git a/src/app/shared/models/widget.models.d.ts b/src/app/shared/models/widget.models.d.ts new file mode 100644 index 00000000..3a8c6bf8 --- /dev/null +++ b/src/app/shared/models/widget.models.d.ts @@ -0,0 +1,383 @@ +import { BaseData } from '@shared/models/base-data'; +import { TenantId } from '@shared/models/id/tenant-id'; +import { WidgetTypeId } from '@shared/models/id/widget-type-id'; +import { Timewindow } from '@shared/models/time/time.models'; +import { EntityType } from '@shared/models/entity-type.models'; +import { AlarmSearchStatus, AlarmSeverity } from '@shared/models/alarm.models'; +import { DataKeyType } from './telemetry/telemetry.models'; +import { EntityId } from '@shared/models/id/entity-id'; +import * as moment_ from 'moment'; +import { EntityDataPageLink, EntityFilter, KeyFilter } from '@shared/models/query/query.models'; +import { PopoverPlacement } from '@shared/components/popover.models'; +export declare enum widgetType { + timeseries = "timeseries", + latest = "latest", + rpc = "rpc", + alarm = "alarm", + static = "static" +} +export interface WidgetTypeTemplate { + bundleAlias: string; + alias: string; +} +export interface WidgetTypeData { + name: string; + icon: string; + isMdiIcon?: boolean; + configHelpLinkId: string; + template: WidgetTypeTemplate; +} +export declare const widgetTypesData: Map; +export interface WidgetResource { + url: string; + isModule?: boolean; +} +export interface WidgetActionSource { + name: string; + value: string; + multiple: boolean; + hasShowCondition?: boolean; +} +export declare const widgetActionSources: { + [acionSourceId: string]: WidgetActionSource; +}; +export interface WidgetTypeDescriptor { + type: widgetType; + resources: Array; + templateHtml: string; + templateCss: string; + controllerScript: string; + settingsSchema?: string | any; + dataKeySettingsSchema?: string | any; + defaultConfig: string; + sizeX: number; + sizeY: number; +} +export interface WidgetTypeParameters { + useCustomDatasources?: boolean; + maxDatasources?: number; + maxDataKeys?: number; + datasourcesOptional?: boolean; + dataKeysOptional?: boolean; + stateData?: boolean; + hasDataPageLink?: boolean; + singleEntity?: boolean; + warnOnPageDataOverflow?: boolean; + ignoreDataUpdateOnIntervalTick?: boolean; +} +export interface WidgetControllerDescriptor { + widgetTypeFunction?: any; + settingsSchema?: string | any; + dataKeySettingsSchema?: string | any; + typeParameters?: WidgetTypeParameters; + actionSources?: { + [actionSourceId: string]: WidgetActionSource; + }; +} +export interface BaseWidgetType extends BaseData { + tenantId: TenantId; + bundleAlias: string; + alias: string; + name: string; +} +export interface WidgetType extends BaseWidgetType { + descriptor: WidgetTypeDescriptor; +} +export interface WidgetTypeInfo extends BaseWidgetType { + image: string; + description: string; + widgetType: widgetType; +} +export interface WidgetTypeDetails extends WidgetType { + image: string; + description: string; +} +export declare enum LegendDirection { + column = "column", + row = "row" +} +export declare const legendDirectionTranslationMap: Map; +export declare enum LegendPosition { + top = "top", + bottom = "bottom", + left = "left", + right = "right" +} +export declare const legendPositionTranslationMap: Map; +export interface LegendConfig { + position: LegendPosition; + direction?: LegendDirection; + sortDataKeys: boolean; + showMin: boolean; + showMax: boolean; + showAvg: boolean; + showTotal: boolean; +} +export declare function defaultLegendConfig(wType: widgetType): LegendConfig; +export interface KeyInfo { + name: string; + label?: string; + color?: string; + funcBody?: string; + postFuncBody?: string; + units?: string; + decimals?: number; +} +export interface DataKey extends KeyInfo { + type: DataKeyType; + pattern?: string; + settings?: any; + usePostProcessing?: boolean; + hidden?: boolean; + inLegend?: boolean; + isAdditional?: boolean; + origDataKeyIndex?: number; + _hash?: number; +} +export declare enum DatasourceType { + function = "function", + entity = "entity", + entityCount = "entityCount" +} +export declare const datasourceTypeTranslationMap: Map; +export interface Datasource { + type?: DatasourceType | any; + name?: string; + aliasName?: string; + dataKeys?: Array; + entityType?: EntityType; + entityId?: string; + entityName?: string; + entityAliasId?: string; + filterId?: string; + unresolvedStateEntity?: boolean; + dataReceived?: boolean; + entity?: BaseData; + entityLabel?: string; + entityDescription?: string; + generated?: boolean; + isAdditional?: boolean; + origDatasourceIndex?: number; + pageLink?: EntityDataPageLink; + keyFilters?: Array; + entityFilter?: EntityFilter; + dataKeyStartIndex?: number; + [key: string]: any; +} +export declare type DataSet = [number, any][]; +export interface DataSetHolder { + data: DataSet; +} +export interface DatasourceData extends DataSetHolder { + datasource: Datasource; + dataKey: DataKey; +} +export interface LegendKey { + dataKey: DataKey; + dataIndex: number; +} +export interface LegendKeyData { + min: string; + max: string; + avg: string; + total: string; + hidden: boolean; +} +export interface LegendData { + keys: Array; + data: Array; +} +export declare enum WidgetActionType { + openDashboardState = "openDashboardState", + updateDashboardState = "updateDashboardState", + openDashboard = "openDashboard", + custom = "custom", + customPretty = "customPretty", + mobileAction = "mobileAction" +} +export declare enum WidgetMobileActionType { + takePictureFromGallery = "takePictureFromGallery", + takePhoto = "takePhoto", + mapDirection = "mapDirection", + mapLocation = "mapLocation", + scanQrCode = "scanQrCode", + makePhoneCall = "makePhoneCall", + getLocation = "getLocation", + takeScreenshot = "takeScreenshot" +} +export declare const widgetActionTypeTranslationMap: Map; +export declare const widgetMobileActionTypeTranslationMap: Map; +export interface MobileLaunchResult { + launched: boolean; +} +export interface MobileImageResult { + imageUrl: string; +} +export interface MobileQrCodeResult { + code: string; + format: string; +} +export interface MobileLocationResult { + latitude: number; + longitude: number; +} +export declare type MobileActionResult = MobileLaunchResult & MobileImageResult & MobileQrCodeResult & MobileLocationResult; +export interface WidgetMobileActionResult { + result?: T; + hasResult: boolean; + error?: string; + hasError: boolean; +} +export interface ProcessImageDescriptor { + processImageFunction: string; +} +export interface ProcessLaunchResultDescriptor { + processLaunchResultFunction?: string; +} +export interface LaunchMapDescriptor extends ProcessLaunchResultDescriptor { + getLocationFunction: string; +} +export interface ScanQrCodeDescriptor { + processQrCodeFunction: string; +} +export interface MakePhoneCallDescriptor extends ProcessLaunchResultDescriptor { + getPhoneNumberFunction: string; +} +export interface GetLocationDescriptor { + processLocationFunction: string; +} +export declare type WidgetMobileActionDescriptors = ProcessImageDescriptor & LaunchMapDescriptor & ScanQrCodeDescriptor & MakePhoneCallDescriptor & GetLocationDescriptor; +export interface WidgetMobileActionDescriptor extends WidgetMobileActionDescriptors { + type: WidgetMobileActionType; + handleErrorFunction?: string; + handleEmptyResultFunction?: string; +} +export interface CustomActionDescriptor { + customFunction?: string; + customResources?: Array; + customHtml?: string; + customCss?: string; +} +export interface WidgetActionDescriptor extends CustomActionDescriptor { + id: string; + name: string; + icon: string; + displayName?: string; + type: WidgetActionType; + targetDashboardId?: string; + targetDashboardStateId?: string; + openRightLayout?: boolean; + openNewBrowserTab?: boolean; + openInPopover?: boolean; + popoverHideDashboardToolbar?: boolean; + popoverPreferredPlacement?: PopoverPlacement; + popoverHideOnClickOutside?: boolean; + popoverWidth?: string; + popoverHeight?: string; + popoverStyle?: { + [klass: string]: any; + }; + openInSeparateDialog?: boolean; + dialogTitle?: string; + dialogHideDashboardToolbar?: boolean; + dialogWidth?: number; + dialogHeight?: number; + setEntityId?: boolean; + stateEntityParamName?: string; + mobileAction?: WidgetMobileActionDescriptor; + useShowWidgetActionFunction?: boolean; + showWidgetActionFunction?: string; +} +export interface WidgetComparisonSettings { + comparisonEnabled?: boolean; + timeForComparison?: moment_.unitOfTime.DurationConstructor; + comparisonCustomIntervalValue?: number; +} +export interface WidgetConfig { + title?: string; + titleIcon?: string; + showTitle?: boolean; + showTitleIcon?: boolean; + iconColor?: string; + iconSize?: string; + titleTooltip?: string; + dropShadow?: boolean; + enableFullscreen?: boolean; + useDashboardTimewindow?: boolean; + displayTimewindow?: boolean; + showLegend?: boolean; + legendConfig?: LegendConfig; + timewindow?: Timewindow; + mobileHide?: boolean; + mobileHeight?: number; + mobileOrder?: number; + color?: string; + backgroundColor?: string; + padding?: string; + margin?: string; + widgetStyle?: { + [klass: string]: any; + }; + widgetCss?: string; + titleStyle?: { + [klass: string]: any; + }; + units?: string; + decimals?: number; + noDataDisplayMessage?: string; + actions?: { + [actionSourceId: string]: Array; + }; + settings?: any; + alarmSource?: Datasource; + alarmStatusList?: AlarmSearchStatus[]; + alarmSeverityList?: AlarmSeverity[]; + alarmTypeList?: string[]; + searchPropagatedAlarms?: boolean; + datasources?: Array; + targetDeviceAliasIds?: Array; + [key: string]: any; +} +export interface Widget extends WidgetInfo { + typeId?: WidgetTypeId; + sizeX: number; + sizeY: number; + row: number; + col: number; + config: WidgetConfig; +} +export interface WidgetInfo { + id?: string; + isSystemType: boolean; + bundleAlias: string; + typeAlias: string; + type: widgetType; + title: string; + image?: string; + description?: string; +} +export interface GroupInfo { + formIndex: number; + GroupTitle: string; +} +export interface JsonSchema { + type: string; + title?: string; + properties: { + [key: string]: any; + }; + required?: string[]; +} +export interface JsonSettingsSchema { + schema?: JsonSchema; + form?: any[]; + groupInfoes?: GroupInfo[]; +} +export interface WidgetPosition { + row: number; + column: number; +} +export interface WidgetSize { + sizeX: number; + sizeY: number; +} diff --git a/src/app/shared/models/widgets-bundle.model.d.ts b/src/app/shared/models/widgets-bundle.model.d.ts new file mode 100644 index 00000000..34e26eec --- /dev/null +++ b/src/app/shared/models/widgets-bundle.model.d.ts @@ -0,0 +1,10 @@ +import { BaseData } from '@shared/models/base-data'; +import { TenantId } from '@shared/models/id/tenant-id'; +import { WidgetsBundleId } from '@shared/models/id/widgets-bundle-id'; +export interface WidgetsBundle extends BaseData { + tenantId: TenantId; + alias: string; + title: string; + image: string; + description: string; +} diff --git a/src/app/shared/models/window-message.model.d.ts b/src/app/shared/models/window-message.model.d.ts new file mode 100644 index 00000000..ff0bd80f --- /dev/null +++ b/src/app/shared/models/window-message.model.d.ts @@ -0,0 +1,15 @@ +export declare type WindowMessageType = 'widgetException' | 'widgetEditModeInited' | 'widgetEditUpdated' | 'openDashboardMessage' | 'reloadUserMessage' | 'toggleDashboardLayout'; +export interface WindowMessage { + type: WindowMessageType; + data?: any; +} +export interface OpenDashboardMessage { + dashboardId: string; + state?: string; + hideToolbar?: boolean; + embedded?: boolean; +} +export interface ReloadUserMessage { + accessToken: string; + refreshToken: string; +} diff --git a/src/app/shared/pipe/enum-to-array.pipe.d.ts b/src/app/shared/pipe/enum-to-array.pipe.d.ts new file mode 100644 index 00000000..520b86f6 --- /dev/null +++ b/src/app/shared/pipe/enum-to-array.pipe.d.ts @@ -0,0 +1,7 @@ +import { PipeTransform } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class EnumToArrayPipe implements PipeTransform { + transform(data: object): string[]; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵpipe: i0.ɵɵPipeDeclaration; +} diff --git a/src/app/shared/pipe/file-size.pipe.d.ts b/src/app/shared/pipe/file-size.pipe.d.ts new file mode 100644 index 00000000..dd10eb9e --- /dev/null +++ b/src/app/shared/pipe/file-size.pipe.d.ts @@ -0,0 +1,13 @@ +import { PipeTransform } from '@angular/core'; +import * as i0 from "@angular/core"; +declare type unit = 'bytes' | 'KB' | 'MB' | 'GB' | 'TB' | 'PB'; +declare type unitPrecisionMap = { + [u in unit]: number; +}; +export declare class FileSizePipe implements PipeTransform { + private readonly units; + transform(bytes?: number, precision?: number | unitPrecisionMap): string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵpipe: i0.ɵɵPipeDeclaration; +} +export {}; diff --git a/src/app/shared/pipe/highlight.pipe.d.ts b/src/app/shared/pipe/highlight.pipe.d.ts new file mode 100644 index 00000000..601a9f99 --- /dev/null +++ b/src/app/shared/pipe/highlight.pipe.d.ts @@ -0,0 +1,7 @@ +import { PipeTransform } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class HighlightPipe implements PipeTransform { + transform(text: string, search: any): string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵpipe: i0.ɵɵPipeDeclaration; +} diff --git a/src/app/shared/pipe/keyboard-shortcut.pipe.d.ts b/src/app/shared/pipe/keyboard-shortcut.pipe.d.ts new file mode 100644 index 00000000..60d43229 --- /dev/null +++ b/src/app/shared/pipe/keyboard-shortcut.pipe.d.ts @@ -0,0 +1,9 @@ +import { PipeTransform } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class KeyboardShortcutPipe implements PipeTransform { + private window; + constructor(window: Window); + transform(value: string): string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵpipe: i0.ɵɵPipeDeclaration; +} diff --git a/src/app/shared/pipe/milliseconds-to-time-string.pipe.d.ts b/src/app/shared/pipe/milliseconds-to-time-string.pipe.d.ts new file mode 100644 index 00000000..f4a38116 --- /dev/null +++ b/src/app/shared/pipe/milliseconds-to-time-string.pipe.d.ts @@ -0,0 +1,10 @@ +import { PipeTransform } from '@angular/core'; +import { TranslateService } from '@ngx-translate/core'; +import * as i0 from "@angular/core"; +export declare class MillisecondsToTimeStringPipe implements PipeTransform { + private translate; + constructor(translate: TranslateService); + transform(millseconds: number, args?: any): string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵpipe: i0.ɵɵPipeDeclaration; +} diff --git a/src/app/shared/pipe/nospace.pipe.d.ts b/src/app/shared/pipe/nospace.pipe.d.ts new file mode 100644 index 00000000..b1a3e3c2 --- /dev/null +++ b/src/app/shared/pipe/nospace.pipe.d.ts @@ -0,0 +1,7 @@ +import { PipeTransform } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class NospacePipe implements PipeTransform { + transform(value: string, args?: any): string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵpipe: i0.ɵɵPipeDeclaration; +} diff --git a/src/app/shared/pipe/public-api.d.ts b/src/app/shared/pipe/public-api.d.ts new file mode 100644 index 00000000..ff56b0cd --- /dev/null +++ b/src/app/shared/pipe/public-api.d.ts @@ -0,0 +1,8 @@ +export * from './enum-to-array.pipe'; +export * from './highlight.pipe'; +export * from './keyboard-shortcut.pipe'; +export * from './milliseconds-to-time-string.pipe'; +export * from './nospace.pipe'; +export * from './truncate.pipe'; +export * from './file-size.pipe'; +export * from './selectable-columns.pipe'; diff --git a/src/app/shared/pipe/safe.pipe.d.ts b/src/app/shared/pipe/safe.pipe.d.ts new file mode 100644 index 00000000..10fe2702 --- /dev/null +++ b/src/app/shared/pipe/safe.pipe.d.ts @@ -0,0 +1,10 @@ +import { PipeTransform } from '@angular/core'; +import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser'; +import * as i0 from "@angular/core"; +export declare class SafePipe implements PipeTransform { + protected sanitizer: DomSanitizer; + constructor(sanitizer: DomSanitizer); + transform(value: any, type: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵpipe: i0.ɵɵPipeDeclaration; +} diff --git a/src/app/shared/pipe/selectable-columns.pipe.d.ts b/src/app/shared/pipe/selectable-columns.pipe.d.ts new file mode 100644 index 00000000..bdf0bd4f --- /dev/null +++ b/src/app/shared/pipe/selectable-columns.pipe.d.ts @@ -0,0 +1,8 @@ +import { PipeTransform } from '@angular/core'; +import { DisplayColumn } from '@home/components/widget/lib/table-widget.models'; +import * as i0 from "@angular/core"; +export declare class SelectableColumnsPipe implements PipeTransform { + transform(allColumns: DisplayColumn[]): DisplayColumn[]; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵpipe: i0.ɵɵPipeDeclaration; +} diff --git a/src/app/shared/pipe/tbJson.pipe.d.ts b/src/app/shared/pipe/tbJson.pipe.d.ts new file mode 100644 index 00000000..4d728017 --- /dev/null +++ b/src/app/shared/pipe/tbJson.pipe.d.ts @@ -0,0 +1,7 @@ +import { PipeTransform } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class TbJsonPipe implements PipeTransform { + transform(value: any): string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵpipe: i0.ɵɵPipeDeclaration; +} diff --git a/src/app/shared/pipe/truncate.pipe.d.ts b/src/app/shared/pipe/truncate.pipe.d.ts new file mode 100644 index 00000000..0d9f31b3 --- /dev/null +++ b/src/app/shared/pipe/truncate.pipe.d.ts @@ -0,0 +1,7 @@ +import { PipeTransform } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class TruncatePipe implements PipeTransform { + transform(text: string, wordwise: boolean, max: any, tail: string): string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵpipe: i0.ɵɵPipeDeclaration; +} diff --git a/src/app/shared/public-api.d.ts b/src/app/shared/public-api.d.ts new file mode 100644 index 00000000..6d7b308e --- /dev/null +++ b/src/app/shared/public-api.d.ts @@ -0,0 +1,4 @@ +export * from './components/public-api'; +export * from './models/public-api'; +export * from './pipe/public-api'; +export * from './shared.module'; diff --git a/src/app/shared/shared.module.d.ts b/src/app/shared/shared.module.d.ts new file mode 100644 index 00000000..1d87ef39 --- /dev/null +++ b/src/app/shared/shared.module.d.ts @@ -0,0 +1,142 @@ +import { MarkedOptionsService } from '@shared/components/marked-options.service'; +import * as i0 from "@angular/core"; +import * as i1 from "@shared/components/footer.component"; +import * as i2 from "@shared/components/logo.component"; +import * as i3 from "@shared/components/footer-fab-buttons.component"; +import * as i4 from "@shared/components/toast.directive"; +import * as i5 from "@shared/components/fullscreen.directive"; +import * as i6 from "@shared/components/circular-progress.directive"; +import * as i7 from "@shared/components/mat-chip-draggable.directive"; +import * as i8 from "@shared/components/hotkeys.directive"; +import * as i9 from "@shared/components/tb-anchor.component"; +import * as i10 from "@shared/components/popover.component"; +import * as i11 from "@shared/components/directives/sring-template-outlet.directive"; +import * as i12 from "@shared/components/directives/component-outlet.directive"; +import * as i13 from "@shared/components/markdown.component"; +import * as i14 from "@shared/components/help.component"; +import * as i15 from "@shared/components/help-markdown.component"; +import * as i16 from "@shared/components/help-popup.component"; +import * as i17 from "@shared/components/tb-checkbox.component"; +import * as i18 from "@shared/components/tb-error.component"; +import * as i19 from "@shared/components/cheatsheet.component"; +import * as i20 from "@shared/components/breadcrumb.component"; +import * as i21 from "@shared/components/user-menu.component"; +import * as i22 from "@shared/components/time/timewindow.component"; +import * as i23 from "@shared/components/time/timewindow-panel.component"; +import * as i24 from "@shared/components/time/timeinterval.component"; +import * as i25 from "@shared/components/time/quick-time-interval.component"; +import * as i26 from "@shared/components/dashboard-select.component"; +import * as i27 from "@shared/components/dashboard-select-panel.component"; +import * as i28 from "@shared/components/time/datetime-period.component"; +import * as i29 from "@shared/components/time/datetime.component"; +import * as i30 from "@shared/components/time/timezone-select.component"; +import * as i31 from "@shared/components/value-input.component"; +import * as i32 from "@shared/components/dashboard-autocomplete.component"; +import * as i33 from "@shared/components/entity/entity-subtype-autocomplete.component"; +import * as i34 from "@shared/components/entity/entity-subtype-select.component"; +import * as i35 from "@shared/components/entity/entity-subtype-list.component"; +import * as i36 from "@shared/components/entity/entity-autocomplete.component"; +import * as i37 from "@shared/components/entity/entity-list.component"; +import * as i38 from "@shared/components/entity/entity-type-select.component"; +import * as i39 from "@shared/components/entity/entity-select.component"; +import * as i40 from "@shared/components/entity/entity-keys-list.component"; +import * as i41 from "@shared/components/entity/entity-list-select.component"; +import * as i42 from "@shared/components/entity/entity-type-list.component"; +import * as i43 from "@shared/components/queue/queue-type-list.component"; +import * as i44 from "@shared/components/relation/relation-type-autocomplete.component"; +import * as i45 from "@shared/components/socialshare-panel.component"; +import * as i46 from "@shared/components/json-object-edit.component"; +import * as i47 from "@shared/components/json-object-view.component"; +import * as i48 from "@shared/components/json-content.component"; +import * as i49 from "@shared/components/js-func.component"; +import * as i50 from "@shared/components/css.component"; +import * as i51 from "@shared/components/fab-toolbar.component"; +import * as i52 from "@shared/components/widgets-bundle-select.component"; +import * as i53 from "@shared/components/dialog/confirm-dialog.component"; +import * as i54 from "@shared/components/dialog/alert-dialog.component"; +import * as i55 from "@shared/components/dialog/todo-dialog.component"; +import * as i56 from "@shared/components/dialog/color-picker-dialog.component"; +import * as i57 from "@shared/components/dialog/material-icons-dialog.component"; +import * as i58 from "@shared/components/color-input.component"; +import * as i59 from "@shared/components/material-icon-select.component"; +import * as i60 from "@shared/components/dialog/node-script-test-dialog.component"; +import * as i61 from "@shared/components/json-form/json-form.component"; +import * as i62 from "@shared/components/image-input.component"; +import * as i63 from "@shared/components/file-input.component"; +import * as i64 from "@shared/components/message-type-autocomplete.component"; +import * as i65 from "@shared/components/kv-map.component"; +import * as i66 from "@shared/components/nav-tree.component"; +import * as i67 from "@shared/components/led-light.component"; +import * as i68 from "@shared/pipe/nospace.pipe"; +import * as i69 from "@shared/pipe/milliseconds-to-time-string.pipe"; +import * as i70 from "@shared/pipe/enum-to-array.pipe"; +import * as i71 from "@shared/pipe/highlight.pipe"; +import * as i72 from "@shared/pipe/truncate.pipe"; +import * as i73 from "@shared/pipe/tbJson.pipe"; +import * as i74 from "@shared/pipe/file-size.pipe"; +import * as i75 from "@shared/pipe/safe.pipe"; +import * as i76 from "@shared/pipe/selectable-columns.pipe"; +import * as i77 from "@shared/pipe/keyboard-shortcut.pipe"; +import * as i78 from "@shared/components/directives/tb-json-to-string.directive"; +import * as i79 from "@shared/components/dialog/json-object-edit-dialog.component"; +import * as i80 from "@shared/components/time/history-selector/history-selector.component"; +import * as i81 from "@shared/components/entity/entity-gateway-select.component"; +import * as i82 from "@shared/components/contact.component"; +import * as i83 from "@shared/components/ota-package/ota-package-autocomplete.component"; +import * as i84 from "@shared/components/widgets-bundle-search.component"; +import * as i85 from "@shared/components/button/copy-button.component"; +import * as i86 from "@shared/components/button/toggle-password.component"; +import * as i87 from "@shared/components/protobuf-content.component"; +import * as i88 from "@angular/common"; +import * as i89 from "@angular/router"; +import * as i90 from "@ngx-translate/core"; +import * as i91 from "@angular/material/button"; +import * as i92 from "@angular/material/checkbox"; +import * as i93 from "@angular/material/icon"; +import * as i94 from "@angular/material/card"; +import * as i95 from "@angular/material/progress-bar"; +import * as i96 from "@angular/material/input"; +import * as i97 from "@angular/material/snack-bar"; +import * as i98 from "@angular/material/sidenav"; +import * as i99 from "@angular/material/toolbar"; +import * as i100 from "@angular/material/menu"; +import * as i101 from "@angular/material/grid-list"; +import * as i102 from "@angular/material/dialog"; +import * as i103 from "@angular/material/select"; +import * as i104 from "@angular/material/tooltip"; +import * as i105 from "@angular/material/table"; +import * as i106 from "@angular/material/paginator"; +import * as i107 from "@angular/material/sort"; +import * as i108 from "@angular/material/progress-spinner"; +import * as i109 from "@angular/material/divider"; +import * as i110 from "@angular/material/tabs"; +import * as i111 from "@angular/material/radio"; +import * as i112 from "@angular/material/slide-toggle"; +import * as i113 from "@angular/material/datepicker"; +import * as i114 from "@mat-datetimepicker/core"; +import * as i115 from "ngx-daterangepicker-material"; +import * as i116 from "@angular/material/slider"; +import * as i117 from "@angular/material/expansion"; +import * as i118 from "@angular/material/stepper"; +import * as i119 from "@angular/material/autocomplete"; +import * as i120 from "@angular/material/chips"; +import * as i121 from "@angular/material/list"; +import * as i122 from "angular-gridster2"; +import * as i123 from "ngx-clipboard"; +import * as i124 from "@angular/flex-layout"; +import * as i125 from "@angular/forms"; +import * as i126 from "@angular/cdk/overlay"; +import * as i127 from "ngx-sharebuttons"; +import * as i128 from "angular2-hotkeys"; +import * as i129 from "ngx-color-picker"; +import * as i130 from "ngx-hm-carousel"; +import * as i131 from "ngx-drag-drop"; +import * as i132 from "@flowjs/ngx-flow"; +import * as i133 from "ngx-flowchart"; +import * as i134 from "ngx-markdown"; +export declare function MarkedOptionsFactory(markedOptionsService: MarkedOptionsService): MarkedOptionsService; +export declare class SharedModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/src/environments/environment.d.ts b/src/environments/environment.d.ts new file mode 100644 index 00000000..6c91034d --- /dev/null +++ b/src/environments/environment.d.ts @@ -0,0 +1,7 @@ +export declare const environment: { + appTitle: string; + production: boolean; + tbVersion: any; + supportedLangs: any; + defaultLang: string; +}; diff --git a/src/main.d.ts b/src/main.d.ts new file mode 100644 index 00000000..cb0ff5c3 --- /dev/null +++ b/src/main.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/src/polyfills.d.ts b/src/polyfills.d.ts new file mode 100644 index 00000000..7e25e07f --- /dev/null +++ b/src/polyfills.d.ts @@ -0,0 +1,53 @@ +/** + * This file includes polyfills needed by Angular and is loaded before the app. + * You can add your own extra polyfills to this file. + * + * This file is divided into 2 sections: + * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. + * 2. Application imports. Files imported after ZoneJS that should be loaded before your main + * file. + * + * The current setup is for so-called "evergreen" browsers; the last versions of browsers that + * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), + * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. + * + * Learn more in https://angular.io/guide/browser-support + */ +/*************************************************************************************************** + * BROWSER POLYFILLS + */ +/** IE10 and IE11 requires the following for NgClass support on SVG elements */ +/** + * Web Animations `@angular/platform-browser/animations` + * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. + * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). + */ +/** + * By default, zone.js will patch all possible macroTask and DomEvents + * user can disable parts of macroTask/DomEvents patch by setting following flags + * because those flags need to be set before `zone.js` being loaded, and webpack + * will put import in the top of bundle, so user need to create a separate file + * in this directory (for example: zone-flags.ts), and put the following flags + * into that file, and then add the following code before importing zone.js. + * import './zone-flags.ts'; + * + * The flags allowed in zone-flags.ts are listed here. + * + * The following flags will work for all browsers. + * + * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame + * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick + * (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames + * + * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js + * with the following flag, it will bypass `zone.js` patch for IE/Edge + * + * (window as any).__Zone_enable_cross_context_check = true; + * + */ +/*************************************************************************************************** + * Zone JS is required by default for Angular itself. + */ +import './zone-flags'; +import 'zone.js'; +import 'core-js/es/array'; diff --git a/src/zone-flags.d.ts b/src/zone-flags.d.ts new file mode 100644 index 00000000..e69de29b