@c8y/ngx-components 1021.13.3 → 1021.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alarms/alarms-list.component.d.ts +2 -17
- package/alarms/alarms-list.component.d.ts.map +1 -1
- package/alarms/alarms-view.service.d.ts +1 -0
- package/alarms/alarms-view.service.d.ts.map +1 -1
- package/alarms/alarms.model.d.ts +30 -0
- package/alarms/alarms.model.d.ts.map +1 -1
- package/context-dashboard/context-dashboard.model.d.ts +1 -0
- package/context-dashboard/context-dashboard.model.d.ts.map +1 -1
- package/context-dashboard/context-dashboard.service.d.ts +7 -5
- package/context-dashboard/context-dashboard.service.d.ts.map +1 -1
- package/context-dashboard/dashboard-detail.component.d.ts +4 -7
- package/context-dashboard/dashboard-detail.component.d.ts.map +1 -1
- package/context-dashboard/dashboard-detail.service.d.ts +4 -4
- package/context-dashboard/dashboard-detail.service.d.ts.map +1 -1
- package/context-dashboard/dashboard-settings/dashboard-general-settings.component.d.ts +2 -2
- package/context-dashboard/dashboard-settings/dashboard-general-settings.component.d.ts.map +1 -1
- package/context-dashboard/dashboard-settings/typed-dashboard-settings.component.d.ts +19 -6
- package/context-dashboard/dashboard-settings/typed-dashboard-settings.component.d.ts.map +1 -1
- package/core/action-bar/action-bar-item.component.d.ts +1 -1
- package/core/action-bar/action-bar-item.component.d.ts.map +1 -1
- package/core/action-bar/action-bar.module.d.ts +6 -6
- package/core/action-bar/action-bar.module.d.ts.map +1 -1
- package/core/bootstrap/bootstrap.component.d.ts +3 -1
- package/core/bootstrap/bootstrap.component.d.ts.map +1 -1
- package/core/common/aggregation/aggregation.model.d.ts +39 -0
- package/core/common/aggregation/aggregation.model.d.ts.map +1 -0
- package/core/common/aggregation/aggregation.service.d.ts +17 -0
- package/core/common/aggregation/aggregation.service.d.ts.map +1 -0
- package/core/common/index.d.ts +4 -0
- package/core/common/index.d.ts.map +1 -1
- package/core/common/inter-app.service.d.ts +48 -0
- package/core/common/inter-app.service.d.ts.map +1 -0
- package/core/common/interval-based-reload.abstract.d.ts +120 -0
- package/core/common/interval-based-reload.abstract.d.ts.map +1 -0
- package/core/dashboard/dashboard.module.d.ts +24 -18
- package/core/dashboard/dashboard.module.d.ts.map +1 -1
- package/core/dashboard/index.d.ts +3 -0
- package/core/dashboard/index.d.ts.map +1 -1
- package/core/dashboard/widget-auto-refresh-context/auto-refresh-control.component.d.ts +31 -0
- package/core/dashboard/widget-auto-refresh-context/auto-refresh-control.component.d.ts.map +1 -0
- package/core/dashboard/widget-auto-refresh-context/auto-refresh-select-control.component.d.ts +17 -0
- package/core/dashboard/widget-auto-refresh-context/auto-refresh-select-control.component.d.ts.map +1 -0
- package/core/dashboard/widget-auto-refresh-context/global-refresh-loading.operator.d.ts +4 -0
- package/core/dashboard/widget-auto-refresh-context/global-refresh-loading.operator.d.ts.map +1 -0
- package/core/dashboard/widget-auto-refresh-context/index.d.ts +8 -0
- package/core/dashboard/widget-auto-refresh-context/index.d.ts.map +1 -0
- package/core/dashboard/widget-auto-refresh-context/widget-auto-refresh-context-icon-bar.component.d.ts +7 -0
- package/core/dashboard/widget-auto-refresh-context/widget-auto-refresh-context-icon-bar.component.d.ts.map +1 -0
- package/core/dashboard/widget-auto-refresh-context/widget-auto-refresh-context.component.d.ts +29 -0
- package/core/dashboard/widget-auto-refresh-context/widget-auto-refresh-context.component.d.ts.map +1 -0
- package/core/dashboard/widget-auto-refresh-context/widget-auto-refresh-context.model.d.ts +15 -0
- package/core/dashboard/widget-auto-refresh-context/widget-auto-refresh-context.model.d.ts.map +1 -0
- package/core/dashboard/widget-auto-refresh-context/widget-global-auto-refresh.service.d.ts +169 -0
- package/core/dashboard/widget-auto-refresh-context/widget-global-auto-refresh.service.d.ts.map +1 -0
- package/core/dashboard/widgets-dashboard.component.d.ts +6 -3
- package/core/dashboard/widgets-dashboard.component.d.ts.map +1 -1
- package/core/dashboard/wiget-time-context/aggregation-picker/aggregation-picker.component.d.ts +2 -2
- package/core/dashboard/wiget-time-context/aggregation-picker/aggregation-picker.component.d.ts.map +1 -1
- package/core/dashboard/wiget-time-context/widget-time-context-icon-bar/widget-time-context-icon-bar.component.d.ts +1 -1
- package/core/dashboard/wiget-time-context/widget-time-context-icon-bar/widget-time-context-icon-bar.component.d.ts.map +1 -1
- package/core/dashboard/wiget-time-context/widget-time-context-query.service.d.ts.map +1 -1
- package/core/dashboard/wiget-time-context/widget-time-context.component.d.ts +11 -8
- package/core/dashboard/wiget-time-context/widget-time-context.component.d.ts.map +1 -1
- package/core/dashboard/wiget-time-context/widget-time-context.model.d.ts +6 -12
- package/core/dashboard/wiget-time-context/widget-time-context.model.d.ts.map +1 -1
- package/core/header/header.module.d.ts +18 -18
- package/core/header/header.module.d.ts.map +1 -1
- package/core/header/title/title.component.d.ts +1 -1
- package/core/header/title/title.component.d.ts.map +1 -1
- package/core/i18n/cached-locale-dictionary.service.d.ts +5 -1
- package/core/i18n/cached-locale-dictionary.service.d.ts.map +1 -1
- package/core/i18n/i18n.module.d.ts +0 -4
- package/core/i18n/i18n.module.d.ts.map +1 -1
- package/core/i18n/index.d.ts +2 -1
- package/core/i18n/index.d.ts.map +1 -1
- package/core/i18n/translation-loader.service.d.ts +50 -0
- package/core/i18n/translation-loader.service.d.ts.map +1 -0
- package/core/i18n/translation-utils.d.ts +14 -0
- package/core/i18n/translation-utils.d.ts.map +1 -0
- package/core/plugins/plugins-resolve.service.d.ts +7 -10
- package/core/plugins/plugins-resolve.service.d.ts.map +1 -1
- package/datapoint-selector/datapoint-attributes-form/datapoint-attributes-form-validation.service.d.ts +2 -1
- package/datapoint-selector/datapoint-attributes-form/datapoint-attributes-form-validation.service.d.ts.map +1 -1
- package/datapoint-selector/datapoint-attributes-form/datapoint-attributes-form.component.d.ts +11 -2
- package/datapoint-selector/datapoint-attributes-form/datapoint-attributes-form.component.d.ts.map +1 -1
- package/datapoint-selector/datapoint-selection.model.d.ts +6 -0
- package/datapoint-selector/datapoint-selection.model.d.ts.map +1 -1
- package/datapoints-export-selector/c8y-ngx-components-datapoints-export-selector.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-fetching.service.d.ts +117 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-fetching.service.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-processing.service.d.ts +90 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-processing.service.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.component.d.ts +160 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.component.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.service.d.ts +89 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.service.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-preview/datapoints-export-selector-preview.component.d.ts +11 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-preview/datapoints-export-selector-preview.component.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-exports-selector-data-scope/datapoints-exports-selector-data-scope.component.d.ts +27 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-exports-selector-data-scope/datapoints-exports-selector-data-scope.component.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-exports-selector-file-types/datapoints-exports-selector-file-types.component.d.ts +12 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-exports-selector-file-types/datapoints-exports-selector-file-types.component.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-exports-selector-time-range/datapoints-exports-selector-time-range.component.d.ts +22 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-exports-selector-time-range/datapoints-exports-selector-time-range.component.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/generators/csv-generator.d.ts +3 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/generators/csv-generator.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/generators/excel-generator.d.ts +9 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/generators/excel-generator.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/utils.service.d.ts +56 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/utils.service.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-modal.component.d.ts +21 -0
- package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-modal.component.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector.component.d.ts +14 -0
- package/datapoints-export-selector/datapoints-export-selector.component.d.ts.map +1 -0
- package/datapoints-export-selector/datapoints-export-selector.model.d.ts +232 -0
- package/datapoints-export-selector/datapoints-export-selector.model.d.ts.map +1 -0
- package/datapoints-export-selector/index.d.ts +15 -0
- package/datapoints-export-selector/index.d.ts.map +1 -0
- package/device-list/device-list.module.d.ts +4 -2
- package/device-list/device-list.module.d.ts.map +1 -1
- package/esm2022/alarms/alarms-list.component.mjs +5 -16
- package/esm2022/alarms/alarms-view.service.mjs +2 -1
- package/esm2022/alarms/alarms.model.mjs +1 -1
- package/esm2022/context-dashboard/context-dashboard.component.mjs +4 -4
- package/esm2022/context-dashboard/context-dashboard.model.mjs +1 -1
- package/esm2022/context-dashboard/context-dashboard.service.mjs +47 -21
- package/esm2022/context-dashboard/dashboard-detail.component.mjs +8 -16
- package/esm2022/context-dashboard/dashboard-detail.service.mjs +13 -6
- package/esm2022/context-dashboard/dashboard-settings/dashboard-general-settings.component.mjs +3 -3
- package/esm2022/context-dashboard/dashboard-settings/typed-dashboard-settings.component.mjs +32 -11
- package/esm2022/core/action-bar/action-bar-item.component.mjs +3 -3
- package/esm2022/core/action-bar/action-bar.module.mjs +16 -5
- package/esm2022/core/bootstrap/bootstrap.component.mjs +21 -16
- package/esm2022/core/common/aggregation/aggregation.model.mjs +46 -0
- package/esm2022/core/common/aggregation/aggregation.service.mjs +34 -0
- package/esm2022/core/common/humanize-app-name.model.mjs +2 -2
- package/esm2022/core/common/humanize-app-name.pipe.mjs +2 -2
- package/esm2022/core/common/index.mjs +5 -1
- package/esm2022/core/common/inter-app.service.mjs +76 -0
- package/esm2022/core/common/interval-based-reload.abstract.mjs +110 -0
- package/esm2022/core/countdown-interval/countdown-interval.component.mjs +3 -3
- package/esm2022/core/dashboard/dashboard-child.component.mjs +6 -5
- package/esm2022/core/dashboard/dashboard.module.mjs +18 -1
- package/esm2022/core/dashboard/index.mjs +4 -1
- package/esm2022/core/dashboard/widget-auto-refresh-context/auto-refresh-control.component.mjs +101 -0
- package/esm2022/core/dashboard/widget-auto-refresh-context/auto-refresh-select-control.component.mjs +50 -0
- package/esm2022/core/dashboard/widget-auto-refresh-context/global-refresh-loading.operator.mjs +7 -0
- package/esm2022/core/dashboard/widget-auto-refresh-context/index.mjs +8 -0
- package/esm2022/core/dashboard/widget-auto-refresh-context/widget-auto-refresh-context-icon-bar.component.mjs +18 -0
- package/esm2022/core/dashboard/widget-auto-refresh-context/widget-auto-refresh-context.component.mjs +127 -0
- package/esm2022/core/dashboard/widget-auto-refresh-context/widget-auto-refresh-context.model.mjs +5 -0
- package/esm2022/core/dashboard/widget-auto-refresh-context/widget-global-auto-refresh.service.mjs +233 -0
- package/esm2022/core/dashboard/widgets-dashboard.component.mjs +35 -30
- package/esm2022/core/dashboard/wiget-time-context/aggregation-picker/aggregation-picker.component.mjs +4 -4
- package/esm2022/core/dashboard/wiget-time-context/realtime-control/realtime-control.component.mjs +2 -2
- package/esm2022/core/dashboard/wiget-time-context/widget-time-context-icon-bar/widget-time-context-icon-bar.component.mjs +5 -5
- package/esm2022/core/dashboard/wiget-time-context/widget-time-context-query.service.mjs +7 -4
- package/esm2022/core/dashboard/wiget-time-context/widget-time-context.component.mjs +37 -37
- package/esm2022/core/dashboard/wiget-time-context/widget-time-context.model.mjs +1 -28
- package/esm2022/core/date-time-picker/date-time-picker.component.mjs +3 -3
- package/esm2022/core/header/header.module.mjs +7 -5
- package/esm2022/core/header/title/title.component.mjs +3 -3
- package/esm2022/core/i18n/cached-locale-dictionary.service.mjs +1 -1
- package/esm2022/core/i18n/i18n.module.mjs +7 -14
- package/esm2022/core/i18n/index.mjs +3 -2
- package/esm2022/core/i18n/translate.parser.mjs +2 -2
- package/esm2022/core/i18n/translation-loader.service.mjs +132 -0
- package/esm2022/core/i18n/translation-utils.mjs +24 -0
- package/esm2022/core/plugins/plugins-resolve.service.mjs +12 -37
- package/esm2022/datapoint-selector/datapoint-attributes-form/datapoint-attributes-form-validation.service.mjs +13 -6
- package/esm2022/datapoint-selector/datapoint-attributes-form/datapoint-attributes-form.component.mjs +22 -5
- package/esm2022/datapoint-selector/datapoint-selection-list/datapoint-selection-list.component.mjs +3 -3
- package/esm2022/datapoint-selector/datapoint-selection.model.mjs +1 -1
- package/esm2022/datapoint-selector/datapoint-selector-list-item/datapoint-selector-list-item.component.mjs +3 -3
- package/esm2022/datapoints-export-selector/c8y-ngx-components-datapoints-export-selector.mjs +5 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-fetching.service.mjs +407 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-processing.service.mjs +207 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.component.mjs +467 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.service.mjs +187 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-preview/datapoints-export-selector-preview.component.mjs +27 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-exports-selector-data-scope/datapoints-exports-selector-data-scope.component.mjs +41 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-exports-selector-file-types/datapoints-exports-selector-file-types.component.mjs +23 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-exports-selector-time-range/datapoints-exports-selector-time-range.component.mjs +42 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/generators/csv-generator.mjs +120 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/generators/excel-generator.mjs +282 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/utils.service.mjs +76 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-modal.component.mjs +46 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector.component.mjs +42 -0
- package/esm2022/datapoints-export-selector/datapoints-export-selector.model.mjs +43 -0
- package/esm2022/datapoints-export-selector/index.mjs +15 -0
- package/esm2022/device-list/add-smart-group.component.mjs +4 -3
- package/esm2022/device-list/device-list.module.mjs +22 -4
- package/esm2022/map/cluster-map.component.mjs +41 -13
- package/esm2022/map/map-status.component.mjs +6 -5
- package/esm2022/map/map.component.mjs +9 -5
- package/esm2022/map/map.model.mjs +1 -1
- package/esm2022/translation-editor/c8y-ngx-components-translation-editor.mjs +5 -0
- package/esm2022/translation-editor/data/c8y-ngx-components-translation-editor-data.mjs +5 -0
- package/esm2022/translation-editor/data/index.mjs +2 -0
- package/esm2022/translation-editor/data/translation-store.service.mjs +175 -0
- package/esm2022/translation-editor/index.mjs +10 -0
- package/esm2022/translation-editor/lazy/add-translation-modal/add-translation-modal.component.mjs +70 -0
- package/esm2022/translation-editor/lazy/c8y-ngx-components-translation-editor-lazy.mjs +5 -0
- package/esm2022/translation-editor/lazy/index.mjs +2 -0
- package/esm2022/translation-editor/lazy/manage-translation-cell-renderer/manage-translation-cell-renderer.component.mjs +53 -0
- package/esm2022/translation-editor/lazy/translation-editor/translation-editor.component.mjs +124 -0
- package/esm2022/translation-editor/translation-editor-naviagtor-factory.service.mjs +31 -0
- package/esm2022/widgets/cockpit/index.mjs +4 -2
- package/esm2022/widgets/cockpit-exports/index.mjs +8 -1
- package/esm2022/widgets/definitions/alarms/alarm-list/index.mjs +6 -2
- package/esm2022/widgets/definitions/alarms/all-critical-alarms/index.mjs +6 -2
- package/esm2022/widgets/definitions/alarms/recent-alarms/index.mjs +6 -2
- package/esm2022/widgets/definitions/datapoints-table/c8y-ngx-components-widgets-definitions-datapoints-table.mjs +5 -0
- package/esm2022/widgets/definitions/datapoints-table/index.mjs +34 -0
- package/esm2022/widgets/definitions/index.mjs +2 -1
- package/esm2022/widgets/definitions/map/index.mjs +4 -2
- package/esm2022/widgets/implementations/alarms/alarm-list-widget-config/alarm-list-widget-config.component.mjs +29 -15
- package/esm2022/widgets/implementations/alarms/alarm-list-widget-view/alarm-list-widget.component.mjs +57 -25
- package/esm2022/widgets/implementations/alarms/alarm-list-widget.model.mjs +2 -1
- package/esm2022/widgets/implementations/alarms/alarm-widget-alarms-reload.component.mjs +19 -21
- package/esm2022/widgets/implementations/datapoints-table/c8y-ngx-components-widgets-implementations-datapoints-table.mjs +5 -0
- package/esm2022/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.component.mjs +383 -0
- package/esm2022/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.service.mjs +124 -0
- package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/adjust-aggregated-time-range.pipe.mjs +191 -0
- package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/apply-range-class.pipe.mjs +36 -0
- package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/column-title.pipe.mjs +45 -0
- package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-reload/datapoints-reload.component.mjs +116 -0
- package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table/datapoints-table.component.mjs +116 -0
- package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table/dynamic-column.directive.mjs +43 -0
- package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.component.mjs +282 -0
- package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.service.mjs +430 -0
- package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/virtual-scroll-listener.directive.mjs +75 -0
- package/esm2022/widgets/implementations/datapoints-table/datapoints-table-widget.model.mjs +76 -0
- package/esm2022/widgets/implementations/datapoints-table/datapoints-table.service.mjs +52 -0
- package/esm2022/widgets/implementations/datapoints-table/date-range-picker.component.mjs +68 -0
- package/esm2022/widgets/implementations/datapoints-table/index.mjs +10 -0
- package/esm2022/widgets/implementations/map/map-widget-config.component.mjs +19 -11
- package/esm2022/widgets/implementations/map/map-widget.component.mjs +20 -2
- package/esm2022/widgets/implementations/map/map-widget.model.mjs +1 -1
- package/fesm2022/c8y-ngx-components-alarms.mjs +5 -15
- package/fesm2022/c8y-ngx-components-alarms.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs +135 -91
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-selector.mjs +37 -13
- package/fesm2022/c8y-ngx-components-datapoint-selector.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs +1928 -0
- package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-device-list.mjs +24 -5
- package/fesm2022/c8y-ngx-components-device-list.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-map.mjs +52 -19
- package/fesm2022/c8y-ngx-components-map.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-translation-editor-data.mjs +181 -0
- package/fesm2022/c8y-ngx-components-translation-editor-data.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-translation-editor-lazy.mjs +236 -0
- package/fesm2022/c8y-ngx-components-translation-editor-lazy.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-translation-editor.mjs +46 -0
- package/fesm2022/c8y-ngx-components-translation-editor.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-widgets-cockpit-exports.mjs +7 -0
- package/fesm2022/c8y-ngx-components-widgets-cockpit-exports.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-cockpit.mjs +3 -1
- package/fesm2022/c8y-ngx-components-widgets-cockpit.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-alarm-list.mjs +5 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-alarm-list.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-all-critical-alarms.mjs +5 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-all-critical-alarms.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-recent-alarms.mjs +5 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-recent-alarms.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-table.mjs +41 -0
- package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-table.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-widgets-definitions-map.mjs +3 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-map.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions.mjs +1 -0
- package/fesm2022/c8y-ngx-components-widgets-definitions.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-alarms.mjs +101 -58
- package/fesm2022/c8y-ngx-components-widgets-implementations-alarms.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs +1967 -0
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-widgets-implementations-map.mjs +37 -11
- package/fesm2022/c8y-ngx-components-widgets-implementations-map.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +5080 -4272
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/de.po +289 -18
- package/locales/en.po +12 -0
- package/locales/en_US.po +3 -0
- package/locales/es.po +253 -18
- package/locales/fr.po +253 -18
- package/locales/ja_JP.po +282 -18
- package/locales/locales.pot +257 -18
- package/locales/nl.po +253 -18
- package/locales/pl.po +253 -18
- package/locales/pt_BR.po +253 -18
- package/map/cluster-map.component.d.ts +8 -3
- package/map/cluster-map.component.d.ts.map +1 -1
- package/map/map-status.component.d.ts +0 -3
- package/map/map-status.component.d.ts.map +1 -1
- package/map/map.component.d.ts +4 -2
- package/map/map.component.d.ts.map +1 -1
- package/map/map.model.d.ts +2 -1
- package/map/map.model.d.ts.map +1 -1
- package/package.json +1 -1
- package/translation-editor/c8y-ngx-components-translation-editor.d.ts.map +1 -0
- package/translation-editor/data/c8y-ngx-components-translation-editor-data.d.ts.map +1 -0
- package/translation-editor/data/index.d.ts +2 -0
- package/translation-editor/data/index.d.ts.map +1 -0
- package/translation-editor/data/translation-store.service.d.ts +61 -0
- package/translation-editor/data/translation-store.service.d.ts.map +1 -0
- package/translation-editor/index.d.ts +2 -0
- package/translation-editor/index.d.ts.map +1 -0
- package/translation-editor/lazy/add-translation-modal/add-translation-modal.component.d.ts +30 -0
- package/translation-editor/lazy/add-translation-modal/add-translation-modal.component.d.ts.map +1 -0
- package/translation-editor/lazy/c8y-ngx-components-translation-editor-lazy.d.ts.map +1 -0
- package/translation-editor/lazy/index.d.ts +2 -0
- package/translation-editor/lazy/index.d.ts.map +1 -0
- package/translation-editor/lazy/manage-translation-cell-renderer/manage-translation-cell-renderer.component.d.ts +22 -0
- package/translation-editor/lazy/manage-translation-cell-renderer/manage-translation-cell-renderer.component.d.ts.map +1 -0
- package/translation-editor/lazy/translation-editor/translation-editor.component.d.ts +34 -0
- package/translation-editor/lazy/translation-editor/translation-editor.component.d.ts.map +1 -0
- package/translation-editor/translation-editor-naviagtor-factory.service.d.ts +11 -0
- package/translation-editor/translation-editor-naviagtor-factory.service.d.ts.map +1 -0
- package/widgets/cockpit/index.d.ts +13 -0
- package/widgets/cockpit/index.d.ts.map +1 -1
- package/widgets/cockpit-exports/index.d.ts +6 -0
- package/widgets/cockpit-exports/index.d.ts.map +1 -1
- package/widgets/definitions/alarms/alarm-list/index.d.ts +2 -0
- package/widgets/definitions/alarms/alarm-list/index.d.ts.map +1 -1
- package/widgets/definitions/alarms/all-critical-alarms/index.d.ts +2 -0
- package/widgets/definitions/alarms/all-critical-alarms/index.d.ts.map +1 -1
- package/widgets/definitions/alarms/recent-alarms/index.d.ts +2 -0
- package/widgets/definitions/alarms/recent-alarms/index.d.ts.map +1 -1
- package/widgets/definitions/datapoints-table/c8y-ngx-components-widgets-definitions-datapoints-table.d.ts.map +1 -0
- package/widgets/definitions/datapoints-table/index.d.ts +14 -0
- package/widgets/definitions/datapoints-table/index.d.ts.map +1 -0
- package/widgets/definitions/index.d.ts +1 -0
- package/widgets/definitions/index.d.ts.map +1 -1
- package/widgets/definitions/map/index.d.ts +2 -1
- package/widgets/definitions/map/index.d.ts.map +1 -1
- package/widgets/implementations/alarms/alarm-list-widget-config/alarm-list-widget-config.component.d.ts +5 -9
- package/widgets/implementations/alarms/alarm-list-widget-config/alarm-list-widget-config.component.d.ts.map +1 -1
- package/widgets/implementations/alarms/alarm-list-widget-view/alarm-list-widget.component.d.ts +17 -10
- package/widgets/implementations/alarms/alarm-list-widget-view/alarm-list-widget.component.d.ts.map +1 -1
- package/widgets/implementations/alarms/alarm-list-widget.model.d.ts +5 -1
- package/widgets/implementations/alarms/alarm-list-widget.model.d.ts.map +1 -1
- package/widgets/implementations/alarms/alarm-widget-alarms-reload.component.d.ts +5 -11
- package/widgets/implementations/alarms/alarm-widget-alarms-reload.component.d.ts.map +1 -1
- package/widgets/implementations/datapoints-table/c8y-ngx-components-widgets-implementations-datapoints-table.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.component.d.ts +129 -0
- package/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.component.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.service.d.ts +56 -0
- package/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.service.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/adjust-aggregated-time-range.pipe.d.ts +88 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/adjust-aggregated-time-range.pipe.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/apply-range-class.pipe.d.ts +19 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/apply-range-class.pipe.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/column-title.pipe.d.ts +26 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/column-title.pipe.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-reload/datapoints-reload.component.d.ts +63 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-reload/datapoints-reload.component.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table/datapoints-table.component.d.ts +38 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table/datapoints-table.component.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table/dynamic-column.directive.d.ts +13 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table/dynamic-column.directive.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.component.d.ts +123 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.component.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.service.d.ts +196 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.service.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/virtual-scroll-listener.directive.d.ts +41 -0
- package/widgets/implementations/datapoints-table/datapoints-table-view/virtual-scroll-listener.directive.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/datapoints-table-widget.model.d.ts +175 -0
- package/widgets/implementations/datapoints-table/datapoints-table-widget.model.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/datapoints-table.service.d.ts +12 -0
- package/widgets/implementations/datapoints-table/datapoints-table.service.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/date-range-picker.component.d.ts +34 -0
- package/widgets/implementations/datapoints-table/date-range-picker.component.d.ts.map +1 -0
- package/widgets/implementations/datapoints-table/index.d.ts +10 -0
- package/widgets/implementations/datapoints-table/index.d.ts.map +1 -0
- package/widgets/implementations/map/map-widget-config.component.d.ts +4 -4
- package/widgets/implementations/map/map-widget-config.component.d.ts.map +1 -1
- package/widgets/implementations/map/map-widget.component.d.ts +8 -3
- package/widgets/implementations/map/map-widget.component.d.ts.map +1 -1
- package/widgets/implementations/map/map-widget.model.d.ts +4 -3
- package/widgets/implementations/map/map-widget.model.d.ts.map +1 -1
- package/core/i18n/translate.loader.d.ts +0 -31
- package/core/i18n/translate.loader.d.ts.map +0 -1
- package/esm2022/core/i18n/translate.loader.mjs +0 -71
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { IApplication } from '@c8y/client';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare const SupportedApps: {
|
|
5
|
+
readonly devicemanagement: "devicemanagement-application-key";
|
|
6
|
+
readonly cockpit: "cockpit-application-key";
|
|
7
|
+
readonly administration: "administration-application-key";
|
|
8
|
+
};
|
|
9
|
+
export type SupportedAppKey = (typeof SupportedApps)[keyof typeof SupportedApps];
|
|
10
|
+
/**
|
|
11
|
+
* Service that provides methods to interact with other applications.
|
|
12
|
+
* It allows retrieving a specific app by key, checking its availability, verifying if it is not the current application,
|
|
13
|
+
* determining if a link to another app should be shown, and navigating to it.
|
|
14
|
+
*/
|
|
15
|
+
export declare class InterAppService<T extends string = SupportedAppKey> {
|
|
16
|
+
private stateService;
|
|
17
|
+
private alertService;
|
|
18
|
+
private translateService;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieve application by its key as observable.
|
|
21
|
+
* @param key {SupportedAppKey} - Application key.
|
|
22
|
+
* @returns Observable of Application
|
|
23
|
+
*/
|
|
24
|
+
getApp$(key: T): Observable<IApplication | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Checks if current application is the same as the one that key is provided
|
|
27
|
+
* @param key {SupportedAppKey} - Application key.
|
|
28
|
+
* @returns Observable of boolean; true if current app matches provided key.
|
|
29
|
+
*/
|
|
30
|
+
isCurrentApp$(key: T): Observable<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* Checks if other (other than current) application link should be displayed. It consists of two conditions:
|
|
33
|
+
* - app that link leads to exists and is available for current user
|
|
34
|
+
* - app link leads to app that is not current app
|
|
35
|
+
* @param appKey {SupportedAppKey} - Application key that link leads to.
|
|
36
|
+
* @returns Observable of boolean; only true when app that link leads to is available and app link leads to app that is not current app
|
|
37
|
+
*/
|
|
38
|
+
shouldShowAppLink$(appKey: T): Observable<boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* Navigates to app by provided app key
|
|
41
|
+
* @param appKey {SupportedAppKey} - Application key that links leads to.
|
|
42
|
+
* @param path {string} - Additional path in target application.
|
|
43
|
+
*/
|
|
44
|
+
navigateToApp(appKey: T, path?: string): Promise<void>;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InterAppService<any>, never>;
|
|
46
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InterAppService<any>>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=inter-app.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inter-app.service.d.ts","sourceRoot":"","sources":["../../../core/common/inter-app.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAsC,UAAU,EAAE,MAAM,MAAM,CAAC;;AAMtE,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAEjF;;;;GAIG;AACH,qBACa,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,eAAe;IAC7D,OAAO,CAAC,YAAY,CAA2B;IAC/C,OAAO,CAAC,YAAY,CAAwB;IAC5C,OAAO,CAAC,gBAAgB,CAA4B;IAEpD;;;;OAIG;IACH,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,UAAU,CAAC,YAAY,GAAG,SAAS,CAAC;IAIrD;;;;OAIG;IACH,aAAa,CAAC,GAAG,EAAE,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC;IAI1C;;;;;;OAMG;IACH,kBAAkB,CAAC,MAAM,EAAE,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC;IAYlD;;;;OAIG;IACG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM;yCA/CjC,eAAe;6CAAf,eAAe;CAgE3B"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { EventEmitter, Injector, Signal } from '@angular/core';
|
|
2
|
+
import { CountdownIntervalComponent } from '../countdown-interval';
|
|
3
|
+
/**
|
|
4
|
+
* Abstract class representing an interval reload functionality.
|
|
5
|
+
* This class provides methods and properties for managing an interval-based reload mechanism.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class IntervalBasedReload {
|
|
8
|
+
abstract countdownIntervalComponent: CountdownIntervalComponent;
|
|
9
|
+
/**
|
|
10
|
+
* Indicates whether auto-refresh is enabled for the datapoints reload component that is set in widget config.
|
|
11
|
+
*/
|
|
12
|
+
isAutoRefreshEnabled: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Current isLoading state. Based on it next countdown cycle is being started.
|
|
15
|
+
*/
|
|
16
|
+
abstract isLoading: Signal<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Indicates whether the alarm list is being scrolled or not.
|
|
19
|
+
*/
|
|
20
|
+
abstract isScrolling: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Current refresh interval set in a widget config.
|
|
23
|
+
*/
|
|
24
|
+
abstract refreshInterval: number;
|
|
25
|
+
/**
|
|
26
|
+
* Indicates that a countdown cycle has ended.
|
|
27
|
+
*/
|
|
28
|
+
abstract onCountdownEnded: EventEmitter<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Indicates the current state of an interval refresh toggle button.
|
|
31
|
+
*/
|
|
32
|
+
abstract isIntervalRefreshToggleOn: boolean;
|
|
33
|
+
abstract toggleCountdownButtonTooltipText: string;
|
|
34
|
+
/**
|
|
35
|
+
* Indicates whether the countdown has been manually disabled by the user.
|
|
36
|
+
*/
|
|
37
|
+
protected abstract manuallyDisabledCountdown: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Controls the visibility of the countdown timer component in the current component's UI.
|
|
40
|
+
*/
|
|
41
|
+
protected abstract hideCountdown: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Stops the countdown and triggers a refresh action.
|
|
44
|
+
* This function is responsible for halting the countdown interval component's operation.
|
|
45
|
+
* After stopping the countdown, it emits an `onCountdownEnded` event.
|
|
46
|
+
* This event is used to inform external components that the countdown has ended,
|
|
47
|
+
* typically prompting them to reload or refresh their data.
|
|
48
|
+
*/
|
|
49
|
+
autoRefreshList(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Manages the countdown timer's visibility and state in response to user scrolling.
|
|
52
|
+
*
|
|
53
|
+
* This method toggles the countdown timer based on the user's scrolling behavior. It uses
|
|
54
|
+
* the `disableCountdown` and `enableCountdown` methods for handling the countdown state.
|
|
55
|
+
*
|
|
56
|
+
* - If the user is scrolling down while the countdown is visible (`isScrolling` is true and
|
|
57
|
+
* `hideCountdown` is false), `disableCountdown` is called to stop and hide the countdown,
|
|
58
|
+
* and `isIntervalRefreshToggleOn` is set to false.
|
|
59
|
+
*
|
|
60
|
+
* - If the user has stopped scrolling, the countdown subscription is closed, and the countdown
|
|
61
|
+
* is hidden (`!isScrolling`, `countdownSubscription?.closed`, `hideCountdown`), `enableCountdown`
|
|
62
|
+
* is called to show and restart the countdown, and `isIntervalRefreshToggleOn` is set to true.
|
|
63
|
+
*/
|
|
64
|
+
handleScrolling(): void;
|
|
65
|
+
abstract reload(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Wrapper method where it's name better describes a context where it was called.
|
|
68
|
+
*/
|
|
69
|
+
abstract countdownEnded(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Handles the toggle state of the countdown on button click.
|
|
72
|
+
*
|
|
73
|
+
* This method is triggered by a mouse event, typically a click on the countdown toggle button.
|
|
74
|
+
* It toggles `isIntervalRefreshToggleOn` to reflect the current state of the countdown timer.
|
|
75
|
+
*
|
|
76
|
+
* - If `isIntervalRefreshToggleOn` is set to false, indicating that the countdown should be stopped,
|
|
77
|
+
* `disableCountdown` is called, and `manuallyDisabledCountdown` is set to true.
|
|
78
|
+
*
|
|
79
|
+
* - If `isIntervalRefreshToggleOn` is true and the countdown subscription is closed, indicating that
|
|
80
|
+
* the countdown can be started, `enableCountdown` is called, and `manuallyDisabledCountdown`
|
|
81
|
+
* is set to false.
|
|
82
|
+
*
|
|
83
|
+
* @param $event - The MouseEvent that triggered this method.
|
|
84
|
+
*/
|
|
85
|
+
onToggleCountdownButtonState($event: MouseEvent): void;
|
|
86
|
+
/**
|
|
87
|
+
* This function listens for changes in the `isLoading` observable, filtering out any truthy values.
|
|
88
|
+
* Once a falsy value is detected (indicating that loading has finished), it attempts to start the countdown.
|
|
89
|
+
*
|
|
90
|
+
* IMPORTANT: If the widget's configuration (refreshInterval, check template) is not set prior to executing countdownIntervalComponent?.start,
|
|
91
|
+
* the countdown interval will not start!
|
|
92
|
+
*
|
|
93
|
+
* @param injector - The injector used to provide necessary dependencies
|
|
94
|
+
* within the `runInInjectionContext`.
|
|
95
|
+
*/
|
|
96
|
+
startCountdown(injector: Injector): void;
|
|
97
|
+
/**
|
|
98
|
+
* Enables and starts the countdown timer.
|
|
99
|
+
*
|
|
100
|
+
* This method makes the countdown visible (`hideCountdown` is set to false) and then
|
|
101
|
+
* starts the countdown process. It ensures the countdown timer is updated immediately
|
|
102
|
+
* by triggering change detection with `cdRef.detectChanges()` before starting the countdown.
|
|
103
|
+
* This method encapsulates the logic required to initiate the countdown timer.
|
|
104
|
+
*/
|
|
105
|
+
abstract enableCountdown(): void;
|
|
106
|
+
/**
|
|
107
|
+
* Disables and hides the countdown timer.
|
|
108
|
+
*
|
|
109
|
+
* This method stops the ongoing countdown process by
|
|
110
|
+
* stopping the `countdownIntervalComponent` if it exists. It then hides the countdown timer
|
|
111
|
+
* by setting `hideCountdown` to true. This method encapsulates the logic required to halt and
|
|
112
|
+
* conceal the countdown timer.
|
|
113
|
+
*/
|
|
114
|
+
disableCountdown(): void;
|
|
115
|
+
/**
|
|
116
|
+
* Updates the countdown button tooltip text based on the state of the interval refresh toggle state.
|
|
117
|
+
*/
|
|
118
|
+
protected abstract updateCountdownButtonTooltipText(): void;
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=interval-based-reload.abstract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interval-based-reload.abstract.d.ts","sourceRoot":"","sources":["../../../core/common/interval-based-reload.abstract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAiC,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE;;;GAGG;AACH,8BAAsB,mBAAmB;IACvC,QAAQ,CAAC,0BAA0B,EAAE,0BAA0B,CAAC;IAChE;;OAEG;IACH,oBAAoB,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,yBAAyB,EAAE,OAAO,CAAC;IAE5C,QAAQ,CAAC,gCAAgC,EAAE,MAAM,CAAC;IAClD;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,yBAAyB,EAAE,OAAO,CAAC;IACtD;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAE1C;;;;;;OAMG;IACH,eAAe,IAAI,IAAI;IAOvB;;;;;;;;;;;;;OAaG;IACH,eAAe,IAAI,IAAI;IAmBvB,QAAQ,CAAC,MAAM,IAAI,IAAI;IACvB;;OAEG;IACH,QAAQ,CAAC,cAAc,IAAI,IAAI;IAC/B;;;;;;;;;;;;;;OAcG;IACH,4BAA4B,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;IAiBtD;;;;;;;;;OASG;IACH,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAUxC;;;;;;;OAOG;IACH,QAAQ,CAAC,eAAe,IAAI,IAAI;IAEhC;;;;;;;OAOG;IACH,gBAAgB,IAAI,IAAI;IAKxB;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,gCAAgC,IAAI,IAAI;CAC5D"}
|
|
@@ -7,26 +7,32 @@ import * as i5 from "./widgets-dashboard.component";
|
|
|
7
7
|
import * as i6 from "./wiget-time-context/widget-time-context.component";
|
|
8
8
|
import * as i7 from "./wiget-time-context/realtime-control/realtime-control.component";
|
|
9
9
|
import * as i8 from "./wiget-time-context/aggregation-picker/aggregation-picker.component";
|
|
10
|
-
import * as i9 from "./
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "../
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "
|
|
21
|
-
import * as i20 from "
|
|
22
|
-
import * as i21 from "../
|
|
23
|
-
import * as i22 from "../
|
|
24
|
-
import * as i23 from "../
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "
|
|
10
|
+
import * as i9 from "./widget-auto-refresh-context/widget-auto-refresh-context.component";
|
|
11
|
+
import * as i10 from "./widget-auto-refresh-context/widget-auto-refresh-context-icon-bar.component";
|
|
12
|
+
import * as i11 from "./widget-auto-refresh-context/auto-refresh-control.component";
|
|
13
|
+
import * as i12 from "./widget-auto-refresh-context/auto-refresh-select-control.component";
|
|
14
|
+
import * as i13 from "./wiget-time-context/widget-time-context-icon-bar/widget-time-context-icon-bar.component";
|
|
15
|
+
import * as i14 from "../common/common.module";
|
|
16
|
+
import * as i15 from "../action-bar/action-bar.module";
|
|
17
|
+
import * as i16 from "../dynamic-component/dynamic-component.module";
|
|
18
|
+
import * as i17 from "@angular/cdk/drag-drop";
|
|
19
|
+
import * as i18 from "ngx-bootstrap/dropdown";
|
|
20
|
+
import * as i19 from "ngx-bootstrap/tooltip";
|
|
21
|
+
import * as i20 from "../header/header.module";
|
|
22
|
+
import * as i21 from "../docs/docs.module";
|
|
23
|
+
import * as i22 from "../breadcrumb/breadcrumb.module";
|
|
24
|
+
import * as i23 from "../forms/forms.module";
|
|
25
|
+
import * as i24 from "ngx-bootstrap/datepicker";
|
|
26
|
+
import * as i25 from "../dynamic-forms/dynamic-forms.module";
|
|
27
|
+
import * as i26 from "../help/help.module";
|
|
28
|
+
import * as i27 from "../date-time-picker/date-time-picker.module";
|
|
29
|
+
import * as i28 from "../countdown-interval/countdown-interval.module";
|
|
30
|
+
import * as i29 from "@ngx-translate/core";
|
|
31
|
+
import * as i30 from "@c8y/ngx-components/interval-picker";
|
|
32
|
+
import * as i31 from "ngx-bootstrap/popover";
|
|
27
33
|
export declare class DashboardModule {
|
|
28
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardModule, [typeof i1.DashboardChildComponent, typeof i2.DashboardComponent, typeof i3.DashboardChildTitleComponent, typeof i4.DashboardChildActionComponent, typeof i5.WidgetsDashboardComponent, typeof i6.WidgetTimeContextComponent, typeof i7.RealtimeControlComponent, typeof i8.AggregationPickerComponent, typeof i9.WidgetTimeContextIconBar], [typeof
|
|
35
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardModule, [typeof i1.DashboardChildComponent, typeof i2.DashboardComponent, typeof i3.DashboardChildTitleComponent, typeof i4.DashboardChildActionComponent, typeof i5.WidgetsDashboardComponent, typeof i6.WidgetTimeContextComponent, typeof i7.RealtimeControlComponent, typeof i8.AggregationPickerComponent, typeof i9.WidgetAutoRefreshContextComponent, typeof i10.WidgetAutoRefreshContextIconBarComponent, typeof i11.AutoRefreshControlComponent, typeof i12.AutoRefreshSelectControlComponent, typeof i13.WidgetTimeContextIconBar], [typeof i14.CommonModule, typeof i15.ActionBarModule, typeof i16.DynamicComponentModule, typeof i17.DragDropModule, typeof i18.BsDropdownModule, typeof i19.TooltipModule, typeof i20.HeaderModule, typeof i21.DocsModule, typeof i22.BreadcrumbModule, typeof i23.FormsModule, typeof i24.BsDatepickerModule, typeof i25.DynamicFormsModule, typeof i26.HelpModule, typeof i27.DateTimePickerModule, typeof i28.CountdownIntervalModule, typeof i29.TranslateModule, typeof i30.IntervalPickerComponent, typeof i31.PopoverModule], [typeof i2.DashboardComponent, typeof i1.DashboardChildComponent, typeof i3.DashboardChildTitleComponent, typeof i4.DashboardChildActionComponent, typeof i5.WidgetsDashboardComponent, typeof i6.WidgetTimeContextComponent]>;
|
|
30
36
|
static ɵinj: i0.ɵɵInjectorDeclaration<DashboardModule>;
|
|
31
37
|
}
|
|
32
38
|
//# sourceMappingURL=dashboard.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.module.d.ts","sourceRoot":"","sources":["../../../core/dashboard/dashboard.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dashboard.module.d.ts","sourceRoot":"","sources":["../../../core/dashboard/dashboard.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,qBA6Ca,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAAG"}
|
|
@@ -9,4 +9,7 @@ export * from './dashboard-child-change';
|
|
|
9
9
|
export * from './dashboard-child-title.component';
|
|
10
10
|
export * from './wiget-time-context/widget-time-context.component';
|
|
11
11
|
export * from './wiget-time-context/widget-time-context.model';
|
|
12
|
+
export * from './widget-auto-refresh-context/widget-auto-refresh-context.model';
|
|
13
|
+
export * from './widget-auto-refresh-context/widget-global-auto-refresh.service';
|
|
14
|
+
export * from './widget-auto-refresh-context/global-refresh-loading.operator';
|
|
12
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/dashboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,oDAAoD,CAAC;AACnE,cAAc,gDAAgD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/dashboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,oDAAoD,CAAC;AACnE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iEAAiE,CAAC;AAChF,cAAc,kEAAkE,CAAC;AACjF,cAAc,+DAA+D,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { CountdownIntervalComponent } from '../../countdown-interval';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AutoRefreshControlComponent implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor {
|
|
7
|
+
readonly DISABLE_AUTO_REFRESH: "Disable auto refresh";
|
|
8
|
+
readonly ENABLE_AUTO_REFRESH: "Enable auto refresh";
|
|
9
|
+
readonly DEFAULT_INTERVAL_VALUE = 30000;
|
|
10
|
+
countdownIntervalComponent: CountdownIntervalComponent;
|
|
11
|
+
loading: EventEmitter<boolean>;
|
|
12
|
+
showIntervalRefresh$: BehaviorSubject<boolean>;
|
|
13
|
+
autoRefreshSeconds$: BehaviorSubject<number>;
|
|
14
|
+
private readonly widgetGlobalAutoRefresh;
|
|
15
|
+
private destroy$;
|
|
16
|
+
onChange: (value: boolean) => void;
|
|
17
|
+
onTouched: () => void;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
ngAfterViewInit(): void;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
toggleIntervalRefresh(): void;
|
|
22
|
+
registerOnChange(fn: any): void;
|
|
23
|
+
writeValue(showIntervalRefresh: boolean): void;
|
|
24
|
+
registerOnTouched(fn: any): void;
|
|
25
|
+
private subscribeOnCountdownChangeState;
|
|
26
|
+
private setUpOnCountdownEndedListener;
|
|
27
|
+
private handleCountdownEnded;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutoRefreshControlComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutoRefreshControlComponent, "c8y-auto-refresh-control", never, {}, { "loading": "loading"; }, never, never, false, never>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=auto-refresh-control.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-refresh-control.component.d.ts","sourceRoot":"","sources":["../../../../core/dashboard/widget-auto-refresh-context/auto-refresh-control.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,YAAY,EAGZ,SAAS,EACT,MAAM,EAGP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAW,MAAM,MAAM,CAAC;AAEhD,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;;AAKtE,qBAWa,2BACX,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,oBAAoB;IAEjE,QAAQ,CAAC,oBAAoB,yBAAmC;IAChE,QAAQ,CAAC,mBAAmB,wBAAkC;IAC9D,QAAQ,CAAC,sBAAsB,SAA0B;IAGzD,0BAA0B,EAAE,0BAA0B,CAAC;IAGvD,OAAO,wBAA+B;IAEtC,oBAAoB,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAC/C,mBAAmB,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC7C,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAA0C;IAElF,OAAO,CAAC,QAAQ,CAAgC;IAChD,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAGnC,SAAS,aAAY;IAErB,QAAQ,IAAI,IAAI;IAIhB,eAAe;IAOf,WAAW;IAKX,qBAAqB;IAQrB,gBAAgB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAI/B,UAAU,CAAC,mBAAmB,EAAE,OAAO,GAAG,IAAI;IAO9C,iBAAiB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAIhC,OAAO,CAAC,+BAA+B;IAsBvC,OAAO,CAAC,6BAA6B;IAUrC,OAAO,CAAC,oBAAoB;yCA9FjB,2BAA2B;2CAA3B,2BAA2B;CAiGvC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AutoRefreshSelectControlComponent implements ControlValueAccessor {
|
|
4
|
+
readonly DEFAULT_INTERVAL_VALUES: number[];
|
|
5
|
+
readonly START_INTERVAL_VALUE = 30000;
|
|
6
|
+
readonly SECONDS_UNTIL_REFRESH: "{{ seconds }} s`until refresh`";
|
|
7
|
+
autoRefreshSeconds: number;
|
|
8
|
+
onChange: (value: number) => void;
|
|
9
|
+
onTouched: () => void;
|
|
10
|
+
registerOnChange(fn: any): void;
|
|
11
|
+
registerOnTouched(fn: any): void;
|
|
12
|
+
writeValue(autoRefreshSeconds: number): void;
|
|
13
|
+
onIntervalChange(autoRefreshSeconds: number): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutoRefreshSelectControlComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutoRefreshSelectControlComponent, "c8y-auto-refresh-select-control", never, {}, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=auto-refresh-select-control.component.d.ts.map
|
package/core/dashboard/widget-auto-refresh-context/auto-refresh-select-control.component.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-refresh-select-control.component.d.ts","sourceRoot":"","sources":["../../../../core/dashboard/widget-auto-refresh-context/auto-refresh-select-control.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;;AAMzE,qBAWa,iCAAkC,YAAW,oBAAoB;IAC5E,QAAQ,CAAC,uBAAuB,WAA2B;IAC3D,QAAQ,CAAC,oBAAoB,SAA0B;IAEvD,QAAQ,CAAC,qBAAqB,mCAA6C;IAE3E,kBAAkB,EAAE,MAAM,CAAC;IAE3B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAGlC,SAAS,aAAY;IAErB,gBAAgB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAI/B,iBAAiB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAIhC,UAAU,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI;IAI5C,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI;yCAzBvC,iCAAiC;2CAAjC,iCAAiC;CA6B7C"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MonoTypeOperatorFunction } from 'rxjs';
|
|
2
|
+
import { WidgetGlobalAutoRefreshService } from './widget-global-auto-refresh.service';
|
|
3
|
+
export declare function globalAutoRefreshLoading(globalRefreshService: WidgetGlobalAutoRefreshService): MonoTypeOperatorFunction<boolean>;
|
|
4
|
+
//# sourceMappingURL=global-refresh-loading.operator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-refresh-loading.operator.d.ts","sourceRoot":"","sources":["../../../../core/dashboard/widget-auto-refresh-context/global-refresh-loading.operator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAc,MAAM,MAAM,CAAC;AAE5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,wBAAgB,wBAAwB,CACtC,oBAAoB,EAAE,8BAA8B,GACnD,wBAAwB,CAAC,OAAO,CAAC,CAUnC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './widget-auto-refresh-context.component';
|
|
2
|
+
export * from './auto-refresh-control.component';
|
|
3
|
+
export * from './auto-refresh-select-control.component';
|
|
4
|
+
export * from './widget-auto-refresh-context.model';
|
|
5
|
+
export * from './widget-global-auto-refresh.service';
|
|
6
|
+
export * from './widget-auto-refresh-context-icon-bar.component';
|
|
7
|
+
export * from './global-refresh-loading.operator';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/dashboard/widget-auto-refresh-context/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,kDAAkD,CAAC;AACjE,cAAc,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WidgetAutoRefreshContextIconBarComponent {
|
|
3
|
+
globalAutoRefreshTooltip: "This widget is in sync with the dashboard auto refresh context.";
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetAutoRefreshContextIconBarComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetAutoRefreshContextIconBarComponent, "c8y-widget-auto-refresh-context-icon-bar", never, {}, {}, never, never, false, never>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=widget-auto-refresh-context-icon-bar.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-auto-refresh-context-icon-bar.component.d.ts","sourceRoot":"","sources":["../../../../core/dashboard/widget-auto-refresh-context/widget-auto-refresh-context-icon-bar.component.ts"],"names":[],"mappings":";AAGA,qBAIa,wCAAwC;IACnD,wBAAwB,oEAEtB;yCAHS,wCAAwC;2CAAxC,wCAAwC;CAIpD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WidgetAutoRefreshContextComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
5
|
+
form: ReturnType<WidgetAutoRefreshContextComponent['createForm']>;
|
|
6
|
+
editMode$: BehaviorSubject<boolean>;
|
|
7
|
+
globalRefreshWidgetLoading: boolean;
|
|
8
|
+
readonly ACTION_BAR_GROUP_ID = "globalrefreshcontext";
|
|
9
|
+
readonly ACTION_BAR_PRIORITY = 5;
|
|
10
|
+
private destroy$;
|
|
11
|
+
private readonly fb;
|
|
12
|
+
private readonly widgetGlobalAutoRefresh;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
ngAfterViewInit(): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
onRefresh(): void;
|
|
17
|
+
private createForm;
|
|
18
|
+
private subscribeOnAutoRefreshSecondsChange;
|
|
19
|
+
private subscribeOnAutoRefreshChange;
|
|
20
|
+
private initializeWidgetSubscriptions;
|
|
21
|
+
private setAutoRefreshQueryParam;
|
|
22
|
+
private subscribeOnQueryParamChange;
|
|
23
|
+
private subscribeOnRouterEvents;
|
|
24
|
+
private onContextDestroy;
|
|
25
|
+
private listenOnDashboardSaveOperation;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetAutoRefreshContextComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetAutoRefreshContextComponent, "c8y-widget-auto-refresh-context", never, { "editMode$": { "alias": "editMode$"; "required": false; }; }, {}, never, never, false, never>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=widget-auto-refresh-context.component.d.ts.map
|
package/core/dashboard/widget-auto-refresh-context/widget-auto-refresh-context.component.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-auto-refresh-context.component.d.ts","sourceRoot":"","sources":["../../../../core/dashboard/widget-auto-refresh-context/widget-auto-refresh-context.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAG3F,OAAO,EAAE,eAAe,EAAW,MAAM,MAAM,CAAC;;AAOhD,qBAIa,iCAAkC,YAAW,MAAM,EAAE,SAAS,EAAE,aAAa;IACxF,IAAI,EAAE,UAAU,CAAC,iCAAiC,CAAC,YAAY,CAAC,CAAC,CAAC;IAGlE,SAAS,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAEpC,0BAA0B,UAAQ;IAClC,QAAQ,CAAC,mBAAmB,0BAA0B;IACtD,QAAQ,CAAC,mBAAmB,KAAK;IAEjC,OAAO,CAAC,QAAQ,CAAgC;IAEhD,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAuB;IAC1C,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAA0C;IAElF,QAAQ;IAUR,eAAe;IAiBf,WAAW;IAIX,SAAS;IAIT,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,mCAAmC;IAY3C,OAAO,CAAC,4BAA4B;IAapC,OAAO,CAAC,6BAA6B;IAMrC,OAAO,CAAC,wBAAwB;IAahC,OAAO,CAAC,2BAA2B;IAsBnC,OAAO,CAAC,uBAAuB;IAO/B,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,8BAA8B;yCA/I3B,iCAAiC;2CAAjC,iCAAiC;CAuJ7C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const DEFAULT_INTERVAL_VALUE = 30000;
|
|
2
|
+
export declare const DEFAULT_INTERVAL_VALUES: number[];
|
|
3
|
+
export declare const DEFAULT_INTERVAL_STATE = true;
|
|
4
|
+
export declare const GLOBAL_CONTEXT_AUTO_REFRESH = "globalContextAutoRefresh";
|
|
5
|
+
export type GlobalAutoRefreshQueryParam = {
|
|
6
|
+
[GLOBAL_CONTEXT_AUTO_REFRESH]: boolean;
|
|
7
|
+
};
|
|
8
|
+
export interface GlobalAutoRefreshWidgetConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Indicates if instance of widget is bound to global auto refresh context. It can be only used with widgets which
|
|
11
|
+
* dynamic component definition contains displaySettings allowing to use it with global auto refresh context.
|
|
12
|
+
*/
|
|
13
|
+
widgetInstanceGlobalAutoRefreshContext?: boolean;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=widget-auto-refresh-context.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-auto-refresh-context.model.d.ts","sourceRoot":"","sources":["../../../../core/dashboard/widget-auto-refresh-context/widget-auto-refresh-context.model.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAC7C,eAAO,MAAM,uBAAuB,UAA0C,CAAC;AAC/E,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,eAAO,MAAM,2BAA2B,6BAA6B,CAAC;AACtE,MAAM,MAAM,2BAA2B,GAAG;IACxC,CAAC,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,sCAAsC,CAAC,EAAE,OAAO,CAAC;CAClD"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { BehaviorSubject, MonoTypeOperatorFunction, Observable, Subject } from 'rxjs';
|
|
2
|
+
import { GlobalAutoRefreshQueryParam } from './widget-auto-refresh-context.model';
|
|
3
|
+
import { Event } from '@angular/router';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class WidgetGlobalAutoRefreshService {
|
|
6
|
+
/**
|
|
7
|
+
* A BehaviorSubject that tracks the number of loading operations in progress.
|
|
8
|
+
* Initialized with a count of 0.
|
|
9
|
+
*/
|
|
10
|
+
private loadingCount$;
|
|
11
|
+
/**
|
|
12
|
+
* An Observable that emits a boolean indicating whether any widgets with global refresh option are currently loading.
|
|
13
|
+
* The value is true if the loading count is non-zero, and false if the loading count is zero.
|
|
14
|
+
* Uses distinctUntilChanged() to emit only when the boolean value changes.
|
|
15
|
+
*/
|
|
16
|
+
private isLoadingWidgets$;
|
|
17
|
+
/**
|
|
18
|
+
* Object containing behavior subjects for managing auto-refresh settings.
|
|
19
|
+
*/
|
|
20
|
+
autoRefreshSettings: {
|
|
21
|
+
/**
|
|
22
|
+
* BehaviorSubject that emits the current state of auto-refresh button.
|
|
23
|
+
* Defaults to DEFAULT_INTERVAL_STATE.
|
|
24
|
+
*/
|
|
25
|
+
isEnabled$: BehaviorSubject<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* BehaviorSubject that emits the current auto-refresh interval value.
|
|
28
|
+
* Defaults to DEFAULT_INTERVAL_VALUE.
|
|
29
|
+
*/
|
|
30
|
+
refreshInterval$: BehaviorSubject<number>;
|
|
31
|
+
/**
|
|
32
|
+
* BehaviorSubject that emits whether auto-refresh has been manually disabled by the user.
|
|
33
|
+
* Defaults to false.
|
|
34
|
+
*/
|
|
35
|
+
userDisabledManually$: BehaviorSubject<boolean>;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Object containing subjects for managing countdown actions.
|
|
39
|
+
*/
|
|
40
|
+
countdownActions: {
|
|
41
|
+
/**
|
|
42
|
+
* Subject used to stop the countdown.
|
|
43
|
+
*/
|
|
44
|
+
stop$: Subject<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Subject used to reset the countdown.
|
|
47
|
+
*/
|
|
48
|
+
reset$: Subject<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Subject that emits when the countdown has ended.
|
|
51
|
+
*/
|
|
52
|
+
countdownEnded$: Subject<void>;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Subject that emits when a dashboard save operation is triggered.
|
|
56
|
+
*/
|
|
57
|
+
onDashboardSave$: Subject<void>;
|
|
58
|
+
/**
|
|
59
|
+
* A signal representing the number of widgets with the global auto-refresh option enabled.
|
|
60
|
+
*/
|
|
61
|
+
globalRefreshWidgetsCount: import("@angular/core").WritableSignal<number>;
|
|
62
|
+
/**
|
|
63
|
+
* Tracks the navigation state.
|
|
64
|
+
*
|
|
65
|
+
* The signal returns a boolean indicating whether a navigation operation is currently in progress.
|
|
66
|
+
* It initializes with a default value of `false` and can be toggled to `true` during navigation events from `handleNavigationInProgress$`.
|
|
67
|
+
*/
|
|
68
|
+
private navigationInProgress;
|
|
69
|
+
private readonly router;
|
|
70
|
+
private readonly activatedRoute;
|
|
71
|
+
/**
|
|
72
|
+
* Increments the loading count by 1.
|
|
73
|
+
*/
|
|
74
|
+
incrementLoading(): void;
|
|
75
|
+
/**
|
|
76
|
+
* Decrements the loading count by 1.
|
|
77
|
+
*/
|
|
78
|
+
decrementLoading(): void;
|
|
79
|
+
/**
|
|
80
|
+
* Retrieves an observable that emits the value of a Global Auto Refresh query parameter
|
|
81
|
+
* whenever it changes. The query parameter being tracked is determined by
|
|
82
|
+
* `GlobalAutoRefreshName.GLOBAL_CONTEXT_AUTO_REFRESH`.
|
|
83
|
+
*
|
|
84
|
+
* @returns An observable that emits the parsed value of the `GLOBAL_CONTEXT_AUTO_REFRESH` query parameter.
|
|
85
|
+
*/
|
|
86
|
+
getQueryParamChangeValue$(): Observable<boolean | null>;
|
|
87
|
+
/**
|
|
88
|
+
* Monitors router navigation events and updates the navigation progress state.
|
|
89
|
+
*
|
|
90
|
+
* @returns An Observable that emits router events of types NavigationStart, NavigationEnd,
|
|
91
|
+
* NavigationCancel, and NavigationError.
|
|
92
|
+
*/
|
|
93
|
+
handleNavigationInProgress$(): Observable<Event>;
|
|
94
|
+
/**
|
|
95
|
+
* Sets the global auto-refresh query parameter in the current route.
|
|
96
|
+
*
|
|
97
|
+
* @param queryParams - An object representing the query parameters to set for the global auto-refresh option.
|
|
98
|
+
* The existing query parameters will be merged with these.
|
|
99
|
+
*/
|
|
100
|
+
setAutoRefreshQueryParam(queryParams: GlobalAutoRefreshQueryParam): Promise<void>;
|
|
101
|
+
/**
|
|
102
|
+
* Handles changes to the edit mode and updates the isEnabled$ variable.
|
|
103
|
+
*
|
|
104
|
+
* - If auto-refresh was manually disabled by the user (`userDisabledManually$` is `true`), auto-refresh will remain disabled regardless of the edit mode state.
|
|
105
|
+
* - If auto-refresh was not manually disabled, it will be disabled when entering edit mode and enabled when exiting edit mode.
|
|
106
|
+
*
|
|
107
|
+
* @param editMode - A boolean indicating the current state of edit mode (`true` if edit mode is active, `false` otherwise).
|
|
108
|
+
*/
|
|
109
|
+
onEditModeChange(editMode: boolean): void;
|
|
110
|
+
/**
|
|
111
|
+
* Returns an Observable that triggers the countdown reset action when loading completes.
|
|
112
|
+
*
|
|
113
|
+
* This method creates an Observable that:
|
|
114
|
+
* - Skips a specified number of initial emissions from `isLoadingWidgets$` based on the `skipInitialBehaviorSubjectEmission$` method.
|
|
115
|
+
* - Filters out emissions where the loading state is true.
|
|
116
|
+
* - On emission where the loading state is false, it triggers a countdown reset action.
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
resetCountdownOnLoadingComplete$(): MonoTypeOperatorFunction<any>;
|
|
120
|
+
/**
|
|
121
|
+
* Resets the service's settings and parameters to their default values.
|
|
122
|
+
*/
|
|
123
|
+
resetServiceToDefaults(): void;
|
|
124
|
+
/**
|
|
125
|
+
* Resets the countdown timer by emitting a reset action after a short delay.
|
|
126
|
+
*/
|
|
127
|
+
resetCountdown(): void;
|
|
128
|
+
/**
|
|
129
|
+
* Initializes the auto-refresh countdown logic based on the widget loading state and edit mode.
|
|
130
|
+
*
|
|
131
|
+
* This method returns an observable that monitors the widget loading state and triggers specific actions
|
|
132
|
+
* related to the countdown process. It performs the following steps:
|
|
133
|
+
*
|
|
134
|
+
* 1. Skips the initial loading state emitted by `isLoadingWidgets$`.
|
|
135
|
+
* 2. Stops the countdown if the widgets are currently loading.
|
|
136
|
+
* 3. Filters out cases where widgets are loading or the application is in edit mode.
|
|
137
|
+
* 4. Resets the countdown when widgets are not loading and the application is not in edit mode.
|
|
138
|
+
*
|
|
139
|
+
* @param editMode$ - A `BehaviorSubject` representing whether the application is currently in edit mode.
|
|
140
|
+
*
|
|
141
|
+
* @returns An `Observable<boolean>` that emits the loading state of the widgets after the initialization steps.
|
|
142
|
+
*/
|
|
143
|
+
initializeAutoRefreshCountdownLoading$(editMode$: BehaviorSubject<boolean>): Observable<boolean>;
|
|
144
|
+
/**
|
|
145
|
+
* Parses a string representation of global auto-refresh parameter into a boolean or null.
|
|
146
|
+
*
|
|
147
|
+
* Converts the provided `globalAutoRefresh` string into a boolean value or null based on its content:
|
|
148
|
+
* - Returns `true` if `globalAutoRefresh` is 'true'.
|
|
149
|
+
* - Returns `false` if `globalAutoRefresh` is 'false'.
|
|
150
|
+
* - Returns `null` if `globalAutoRefresh` is neither 'true' nor 'false'.
|
|
151
|
+
*
|
|
152
|
+
* @param globalAutoRefresh - The string representation of the global auto-refresh parameter.
|
|
153
|
+
*
|
|
154
|
+
* @returns A boolean value corresponding to the parsed global auto-refresh state, or null if the input is not 'true' or 'false'.
|
|
155
|
+
*/
|
|
156
|
+
private parseGlobalAutoRefreshParam;
|
|
157
|
+
/**
|
|
158
|
+
* Resets the loading count to zero.
|
|
159
|
+
*/
|
|
160
|
+
private resetLoadingToZero;
|
|
161
|
+
/**
|
|
162
|
+
* Clears the global auto-refresh query parameter by navigating to the current route with the parameter set to null.
|
|
163
|
+
*
|
|
164
|
+
*/
|
|
165
|
+
private clearQueryParam;
|
|
166
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetGlobalAutoRefreshService, never>;
|
|
167
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WidgetGlobalAutoRefreshService>;
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=widget-global-auto-refresh.service.d.ts.map
|
package/core/dashboard/widget-auto-refresh-context/widget-global-auto-refresh.service.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-global-auto-refresh.service.d.ts","sourceRoot":"","sources":["../../../../core/dashboard/widget-auto-refresh-context/widget-global-auto-refresh.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtF,OAAO,EAIL,2BAA2B,EAC5B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAEL,KAAK,EAMN,MAAM,iBAAiB,CAAC;;AAEzB,qBACa,8BAA8B;IACzC;;;OAGG;IACH,OAAO,CAAC,aAAa,CAAkC;IAEvD;;;;OAIG;IACH,OAAO,CAAC,iBAAiB,CAGvB;IAEF;;OAEG;IACH,mBAAmB;QACjB;;;WAGG;;QAEH;;;WAGG;;QAEH;;;WAGG;;MAEH;IAEF;;OAEG;IACH,gBAAgB;QACd;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;MAEH;IAEF;;OAEG;IACH,gBAAgB,gBAAuB;IAEvC;;OAEG;IACH,yBAAyB,iDAAa;IAEtC;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB,CAAiB;IAE7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IACzC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA0B;IAEzD;;OAEG;IACH,gBAAgB,IAAI,IAAI;IAIxB;;OAEG;IACH,gBAAgB,IAAI,IAAI;IAIxB;;;;;;OAMG;IACH,yBAAyB,IAAI,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC;IAOvD;;;;;OAKG;IACH,2BAA2B,IAAI,UAAU,CAAC,KAAK,CAAC;IAahD;;;;;OAKG;IACG,wBAAwB,CAAC,WAAW,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC;IAcvF;;;;;;;OAOG;IACH,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAQzC;;;;;;;;OAQG;IACH,gCAAgC,IAAI,wBAAwB,CAAC,GAAG,CAAC;IAUjE;;OAEG;IACH,sBAAsB,IAAI,IAAI;IAa9B;;OAEG;IACH,cAAc,IAAI,IAAI;IAItB;;;;;;;;;;;;;;OAcG;IACH,sCAAsC,CAAC,SAAS,EAAE,eAAe,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC;IAShG;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,2BAA2B;IAInC;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAI1B;;;OAGG;IACH,OAAO,CAAC,eAAe;yCA7PZ,8BAA8B;6CAA9B,8BAA8B;CAwQ1C"}
|
|
@@ -4,17 +4,19 @@ import { BreadcrumbItem } from '../breadcrumb/breadcrumb.model';
|
|
|
4
4
|
import { DashboardComponent } from './dashboard.component';
|
|
5
5
|
import { DashboardChange, DashboardSettings, Widget, WidgetChange, DashboardCopyPermission } from './dashboard.model';
|
|
6
6
|
import { DynamicComponentService } from '../dynamic-component/dynamic-component.service';
|
|
7
|
-
import { Observable } from 'rxjs';
|
|
7
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
8
8
|
import { DashboardChildComponent } from './dashboard-child.component';
|
|
9
9
|
import { TranslateService } from '@ngx-translate/core';
|
|
10
10
|
import { RevertChangeType } from './widget-change-event.model';
|
|
11
11
|
import { ModalService } from '../modal';
|
|
12
|
+
import { WidgetGlobalAutoRefreshService } from './widget-auto-refresh-context';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export declare class WidgetsDashboardComponent {
|
|
14
15
|
private dynamic;
|
|
15
16
|
private translateService;
|
|
16
17
|
private route;
|
|
17
18
|
private modal;
|
|
19
|
+
private widgetGlobalAutoRefresh;
|
|
18
20
|
set widgets(value: Widget[]);
|
|
19
21
|
get widgets(): Widget[];
|
|
20
22
|
context: any;
|
|
@@ -48,16 +50,17 @@ export declare class WidgetsDashboardComponent {
|
|
|
48
50
|
resolvedWidgets$: Observable<Widget[]>;
|
|
49
51
|
isLoadingWidgets$: Observable<boolean>;
|
|
50
52
|
copyDisabledPopoverMsg: string;
|
|
51
|
-
editMode: boolean;
|
|
52
53
|
widgetInFullscreenMode: boolean;
|
|
53
54
|
inFullScreen$: Observable<boolean>;
|
|
55
|
+
editMode$: BehaviorSubject<boolean>;
|
|
54
56
|
readonly copyDashboardLabel: "Copy dashboard";
|
|
55
57
|
readonly undoMessage: "Undo: \"{{ changeToUndo }}\"";
|
|
56
58
|
readonly redoMessage: "Redo: \"{{ changeToRedo }}\"";
|
|
59
|
+
readonly ACTION_BAR_EDIT_WIDGETS_PRIORITY = 10;
|
|
57
60
|
private _widgets;
|
|
58
61
|
private isLoading$;
|
|
59
62
|
private isExecutingResolvers$;
|
|
60
|
-
constructor(dynamic: DynamicComponentService, translateService: TranslateService, route: ActivatedRoute, modal: ModalService);
|
|
63
|
+
constructor(dynamic: DynamicComponentService, translateService: TranslateService, route: ActivatedRoute, modal: ModalService, widgetGlobalAutoRefresh: WidgetGlobalAutoRefreshService);
|
|
61
64
|
ngOnChanges({ isCopyDisabled }: SimpleChanges): void;
|
|
62
65
|
canDeactivate(omitConfirm?: boolean): Promise<boolean>;
|
|
63
66
|
toggleFullscreen(hasWidget?: boolean): void;
|