@c8y/ngx-components 1022.13.0 → 1022.21.3
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.helper.d.ts.map +1 -1
- package/auth-configuration/sso-configuration/templates/template.component.d.ts +1 -1
- package/core/asset-property/asset-property.model.d.ts +0 -6
- package/core/asset-property/asset-property.model.d.ts.map +1 -1
- package/core/authentication/authentication.module.d.ts.map +1 -1
- package/core/authentication/new-password.component.d.ts +3 -2
- package/core/authentication/new-password.component.d.ts.map +1 -1
- package/core/dashboard/widget-auto-refresh-context/auto-refresh-control.component.d.ts.map +1 -1
- package/core/drop-area/drop-area.component.d.ts +2 -0
- package/core/drop-area/drop-area.component.d.ts.map +1 -1
- package/core/dynamic-forms/file/file.type.component.d.ts.map +1 -1
- package/core/modal/modal.module.d.ts.map +1 -1
- package/core/modal/modal.service.d.ts +1 -0
- package/core/modal/modal.service.d.ts.map +1 -1
- package/core/plugins/plugins.module.d.ts.map +1 -1
- package/core/plugins/plugins.service.d.ts +1 -2
- package/core/plugins/plugins.service.d.ts.map +1 -1
- package/core/select/select.component.d.ts.map +1 -1
- package/core/user/user-edit-modal.component.d.ts +1 -0
- package/core/user/user-edit-modal.component.d.ts.map +1 -1
- package/core/user/user-edit.component.d.ts +4 -1
- package/core/user/user-edit.component.d.ts.map +1 -1
- package/datapoint-explorer/datapoint-explorer.module.d.ts +2 -0
- package/datapoint-explorer/datapoint-explorer.module.d.ts.map +1 -1
- package/datapoint-explorer/devicemanagement/c8y-ngx-components-datapoint-explorer-devicemanagement.d.ts.map +1 -0
- package/datapoint-explorer/devicemanagement/index.d.ts +2 -0
- package/datapoint-explorer/devicemanagement/index.d.ts.map +1 -0
- package/datapoint-explorer/view/datapoint-explorer.component.d.ts +6 -3
- package/datapoint-explorer/view/datapoint-explorer.component.d.ts.map +1 -1
- package/datapoint-explorer/view/datapoint-explorer.model.d.ts +8 -0
- package/datapoint-explorer/view/datapoint-explorer.model.d.ts.map +1 -0
- package/datapoint-explorer/view/index.d.ts +1 -0
- package/datapoint-explorer/view/index.d.ts.map +1 -1
- package/device-list/devices.breadcrumb-factory.d.ts +1 -0
- package/device-list/devices.breadcrumb-factory.d.ts.map +1 -1
- package/device-profile/add-device-profile.component.d.ts +1 -1
- package/device-profile/add-device-profile.component.d.ts.map +1 -1
- package/device-profile/device-profile-list.component.d.ts +1 -1
- package/device-profile/device-profile-list.component.d.ts.map +1 -1
- package/device-profile/device-profile.component.d.ts +1 -1
- package/device-profile/device-profile.component.d.ts.map +1 -1
- package/device-profile/device-profile.module.d.ts +17 -17
- package/device-profile/device-profile.module.d.ts.map +1 -1
- package/device-profile/device-tab-profile/device-profile-item-list.component.d.ts +1 -1
- package/device-profile/device-tab-profile/device-profile-item-list.component.d.ts.map +1 -1
- package/device-profile/device-tab-profile/device-tab-profile-detail.component.d.ts +1 -1
- package/device-profile/device-tab-profile/device-tab-profile-detail.component.d.ts.map +1 -1
- package/device-profile/device-tab-profile/device-tab-profile.component.d.ts +1 -1
- package/device-profile/device-tab-profile/device-tab-profile.component.d.ts.map +1 -1
- package/device-profile/select-configuration-modal.component.d.ts +1 -1
- package/device-profile/select-configuration-modal.component.d.ts.map +1 -1
- package/device-provisioned-certificates/device-tab-provisioned-certificates.component.d.ts +4 -2
- package/device-provisioned-certificates/device-tab-provisioned-certificates.component.d.ts.map +1 -1
- package/device-shell/command-templates/command-templates.component.d.ts +1 -1
- package/device-shell/command-templates/command-templates.component.d.ts.map +1 -1
- package/device-shell/command-templates/command-templates.directive.d.ts +1 -1
- package/device-shell/command-templates/command-templates.directive.d.ts.map +1 -1
- package/device-shell/command-templates/command-templates.module.d.ts +1 -1
- package/device-shell/shell/shell.component.d.ts +1 -1
- package/device-shell/shell/shell.component.d.ts.map +1 -1
- package/device-shell/shell/shell.module.d.ts +7 -7
- package/diagnostics/diagnostics.component.d.ts +1 -1
- package/diagnostics/diagnostics.component.d.ts.map +1 -1
- package/diagnostics/diagnostics.module.d.ts +8 -8
- package/diagnostics/diagnostics.module.d.ts.map +1 -1
- package/echart/services/chart-realtime.service.d.ts +2 -0
- package/echart/services/chart-realtime.service.d.ts.map +1 -1
- package/echart/services/echarts-options.service.d.ts +4 -4
- package/echart/services/echarts-options.service.d.ts.map +1 -1
- package/events/c8y-ngx-components-events.d.ts.map +1 -0
- package/events/events-timeline/c8y-ngx-components-events-events-timeline.d.ts.map +1 -0
- package/events/events-timeline/events-timeline.component.d.ts +19 -0
- package/events/events-timeline/events-timeline.component.d.ts.map +1 -0
- package/events/events-timeline/index.d.ts +2 -0
- package/events/events-timeline/index.d.ts.map +1 -0
- package/events/events.model.d.ts +6 -0
- package/events/events.model.d.ts.map +1 -0
- package/events/events.service.d.ts +10 -0
- package/events/events.service.d.ts.map +1 -0
- package/events/index.d.ts +3 -0
- package/events/index.d.ts.map +1 -0
- package/fesm2022/c8y-ngx-components-alarms.mjs +2 -1
- package/fesm2022/c8y-ngx-components-alarms.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-auth-configuration.mjs +2 -2
- package/fesm2022/c8y-ngx-components-auth-configuration.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-explorer-devicemanagement.mjs +38 -0
- package/fesm2022/c8y-ngx-components-datapoint-explorer-devicemanagement.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +143 -142
- package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-explorer.mjs +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-explorer.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-list.mjs +10 -3
- package/fesm2022/c8y-ngx-components-device-list.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-profile.mjs +126 -49
- package/fesm2022/c8y-ngx-components-device-profile.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-provisioned-certificates.mjs +44 -12
- package/fesm2022/c8y-ngx-components-device-provisioned-certificates.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-shell.mjs +31 -22
- package/fesm2022/c8y-ngx-components-device-shell.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-diagnostics.mjs +36 -19
- package/fesm2022/c8y-ngx-components-diagnostics.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-echart.mjs +53 -17
- package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-events-events-timeline.mjs +45 -0
- package/fesm2022/c8y-ngx-components-events-events-timeline.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-events.mjs +44 -0
- package/fesm2022/c8y-ngx-components-events.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-operations-bulk-operation-from-single.mjs +8 -14
- package/fesm2022/c8y-ngx-components-operations-bulk-operation-from-single.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-bulk-operation-list-item.mjs +49 -49
- package/fesm2022/c8y-ngx-components-operations-bulk-operation-list-item.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-bulk-operation-scheduler.mjs +27 -14
- package/fesm2022/c8y-ngx-components-operations-bulk-operation-scheduler.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-bulk-operation-stepper.mjs +27 -33
- package/fesm2022/c8y-ngx-components-operations-bulk-operation-stepper.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-bulk-operations-list.mjs +51 -39
- package/fesm2022/c8y-ngx-components-operations-bulk-operations-list.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-bulk-operations-stepper-container.mjs +10 -8
- package/fesm2022/c8y-ngx-components-operations-bulk-operations-stepper-container.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-create-bulk-operation-details.mjs +16 -11
- package/fesm2022/c8y-ngx-components-operations-create-bulk-operation-details.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-device-selector.mjs +8 -11
- package/fesm2022/c8y-ngx-components-operations-device-selector.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-operation-details.mjs +25 -21
- package/fesm2022/c8y-ngx-components-operations-operation-details.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-operation-summary.mjs +7 -9
- package/fesm2022/c8y-ngx-components-operations-operation-summary.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-operations-list-item-details.mjs +31 -31
- package/fesm2022/c8y-ngx-components-operations-operations-list-item-details.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-operations-list.mjs +3 -3
- package/fesm2022/c8y-ngx-components-operations-operations-list.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-operations-timeline.mjs +33 -13
- package/fesm2022/c8y-ngx-components-operations-operations-timeline.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-status-filter.mjs +19 -13
- package/fesm2022/c8y-ngx-components-operations-status-filter.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-configuration.mjs +40 -36
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-configuration.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-device-profile.mjs +60 -41
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-device-profile.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-firmware.mjs +122 -109
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-firmware.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs +66 -41
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-frames.mjs +11 -16
- package/fesm2022/c8y-ngx-components-operations-stepper-frames.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-protocol-opcua.mjs +212 -83
- package/fesm2022/c8y-ngx-components-protocol-opcua.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-configuration.mjs +113 -54
- package/fesm2022/c8y-ngx-components-repository-configuration.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-firmware.mjs +130 -62
- package/fesm2022/c8y-ngx-components-repository-firmware.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-shared.mjs +37 -28
- package/fesm2022/c8y-ngx-components-repository-shared.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-software.mjs +156 -83
- package/fesm2022/c8y-ngx-components-repository-software.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-services.mjs +32 -19
- package/fesm2022/c8y-ngx-components-services.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-time-context.mjs +12 -5
- package/fesm2022/c8y-ngx-components-time-context.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-trusted-certificates.mjs +68 -31
- package/fesm2022/c8y-ngx-components-trusted-certificates.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-upgrade-upgraded-services.mjs +16 -3
- package/fesm2022/c8y-ngx-components-upgrade-upgraded-services.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-upgrade.mjs +1 -14
- package/fesm2022/c8y-ngx-components-upgrade.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-user-roles.mjs +8 -3
- package/fesm2022/c8y-ngx-components-user-roles.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +4 -4
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +1219 -1190
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/de.po +53 -35
- package/locales/es.po +26 -5
- package/locales/fr.po +51 -30
- package/locales/ja_JP.po +90 -67
- package/locales/ko.po +26 -5
- package/locales/locales.pot +22 -13
- package/locales/nl.po +26 -5
- package/locales/pl.po +26 -5
- package/locales/pt_BR.po +26 -5
- package/locales/zh_CN.po +27 -6
- package/locales/zh_TW.po +26 -5
- package/operations/bulk-operation-from-single/bulk-operation-from-single.component.d.ts +1 -1
- package/operations/bulk-operation-from-single/bulk-operation-from-single.component.d.ts.map +1 -1
- package/operations/bulk-operation-from-single/bulk-operation-from-single.module.d.ts +3 -5
- package/operations/bulk-operation-from-single/bulk-operation-from-single.module.d.ts.map +1 -1
- package/operations/bulk-operation-list-item/bulk-operation-list-item.component.d.ts +1 -1
- package/operations/bulk-operation-list-item/bulk-operation-list-item.component.d.ts.map +1 -1
- package/operations/bulk-operation-list-item/bulk-operation-list-item.module.d.ts +1 -7
- package/operations/bulk-operation-list-item/bulk-operation-list-item.module.d.ts.map +1 -1
- package/operations/bulk-operation-list-item/bulk-operation-wrapper.component.d.ts +1 -1
- package/operations/bulk-operation-list-item/bulk-operation-wrapper.component.d.ts.map +1 -1
- package/operations/bulk-operation-list-item/modal-body-host.directive.d.ts +1 -1
- package/operations/bulk-operation-list-item/modal-body-host.directive.d.ts.map +1 -1
- package/operations/bulk-operation-list-item/modals/bulk-operations-reschedule-modal.component.d.ts +1 -1
- package/operations/bulk-operation-list-item/modals/bulk-operations-reschedule-modal.component.d.ts.map +1 -1
- package/operations/bulk-operation-scheduler/bulk-operation-scheduler.module.d.ts +6 -6
- package/operations/bulk-operation-scheduler/operation-scheduler.component.d.ts +1 -1
- package/operations/bulk-operation-scheduler/operation-scheduler.component.d.ts.map +1 -1
- package/operations/bulk-operation-stepper/base-stepper.component.d.ts +1 -1
- package/operations/bulk-operation-stepper/bulk-operation-stepper.component.d.ts +1 -1
- package/operations/bulk-operation-stepper/bulk-operation-stepper.component.d.ts.map +1 -1
- package/operations/bulk-operation-stepper/bulk-operation-stepper.module.d.ts +1 -5
- package/operations/bulk-operation-stepper/bulk-operation-stepper.module.d.ts.map +1 -1
- package/operations/bulk-operation-stepper/custom-step.directive.d.ts +1 -1
- package/operations/bulk-operation-stepper/custom-step.directive.d.ts.map +1 -1
- package/operations/bulk-operations-list/bulk-operations-list.component.d.ts +1 -1
- package/operations/bulk-operations-list/bulk-operations-list.component.d.ts.map +1 -1
- package/operations/bulk-operations-list/bulk-operations-list.module.d.ts +4 -10
- package/operations/bulk-operations-list/bulk-operations-list.module.d.ts.map +1 -1
- package/operations/bulk-operations-list/modals/bulk-operations-modal.component.d.ts +1 -1
- package/operations/bulk-operations-list/modals/bulk-operations-modal.component.d.ts.map +1 -1
- package/operations/bulk-operations-stepper-container/bulk-operations-stepper-container.component.d.ts +1 -1
- package/operations/bulk-operations-stepper-container/bulk-operations-stepper-container.component.d.ts.map +1 -1
- package/operations/bulk-operations-stepper-container/bulk-operations-stepper-container.module.d.ts +3 -4
- package/operations/bulk-operations-stepper-container/bulk-operations-stepper-container.module.d.ts.map +1 -1
- package/operations/create-bulk-operation-details/create-bulk-operation-details.component.d.ts +1 -1
- package/operations/create-bulk-operation-details/create-bulk-operation-details.component.d.ts.map +1 -1
- package/operations/create-bulk-operation-details/create-bulk-operation-details.module.d.ts +1 -4
- package/operations/create-bulk-operation-details/create-bulk-operation-details.module.d.ts.map +1 -1
- package/operations/device-selector/device-selector.component.d.ts +1 -1
- package/operations/device-selector/device-selector.component.d.ts.map +1 -1
- package/operations/device-selector/device-selector.module.d.ts +1 -3
- package/operations/device-selector/device-selector.module.d.ts.map +1 -1
- package/operations/operation-details/operation-details-modal.component.d.ts +1 -1
- package/operations/operation-details/operation-details-modal.component.d.ts.map +1 -1
- package/operations/operation-details/operation-details.component.d.ts +1 -1
- package/operations/operation-details/operation-details.component.d.ts.map +1 -1
- package/operations/operation-details/operation-details.module.d.ts +1 -7
- package/operations/operation-details/operation-details.module.d.ts.map +1 -1
- package/operations/operation-details/operation-details.service.d.ts.map +1 -1
- package/operations/operation-summary/operation-summary.component.d.ts +1 -1
- package/operations/operation-summary/operation-summary.component.d.ts.map +1 -1
- package/operations/operation-summary/operation-summary.module.d.ts +1 -2
- package/operations/operation-summary/operation-summary.module.d.ts.map +1 -1
- package/operations/operations-list/operations-list-item.component.d.ts.map +1 -1
- package/operations/operations-list/operations-list.component.d.ts.map +1 -1
- package/operations/operations-list/operations-list.service.d.ts +1 -1
- package/operations/operations-list/operations-list.service.d.ts.map +1 -1
- package/operations/operations-list-item-details/operation-details-tabs.component.d.ts +1 -1
- package/operations/operations-list-item-details/operation-details-tabs.component.d.ts.map +1 -1
- package/operations/operations-list-item-details/operation-details.component.d.ts +1 -1
- package/operations/operations-list-item-details/operation-details.component.d.ts.map +1 -1
- package/operations/operations-list-item-details/operations-list-item-details.module.d.ts +1 -6
- package/operations/operations-list-item-details/operations-list-item-details.module.d.ts.map +1 -1
- package/operations/operations-timeline/operations-timeline.component.d.ts +5 -5
- package/operations/operations-timeline/operations-timeline.component.d.ts.map +1 -1
- package/operations/operations-timeline/operations-timeline.module.d.ts +4 -6
- package/operations/operations-timeline/operations-timeline.module.d.ts.map +1 -1
- package/operations/status-filter/status-filter.component.d.ts +1 -1
- package/operations/status-filter/status-filter.component.d.ts.map +1 -1
- package/operations/status-filter/status-filter.module.d.ts +1 -4
- package/operations/status-filter/status-filter.module.d.ts.map +1 -1
- package/operations/stepper-bulk-type-configuration/stepper-bulk-type-configuration.component.d.ts +1 -1
- package/operations/stepper-bulk-type-configuration/stepper-bulk-type-configuration.component.d.ts.map +1 -1
- package/operations/stepper-bulk-type-configuration/stepper-bulk-type-configuration.module.d.ts +1 -6
- package/operations/stepper-bulk-type-configuration/stepper-bulk-type-configuration.module.d.ts.map +1 -1
- package/operations/stepper-bulk-type-device-profile/confirm-device-profile-selection-step.component.d.ts +1 -1
- package/operations/stepper-bulk-type-device-profile/confirm-device-profile-selection-step.component.d.ts.map +1 -1
- package/operations/stepper-bulk-type-device-profile/select-device-profile-step.component.d.ts +1 -1
- package/operations/stepper-bulk-type-device-profile/select-device-profile-step.component.d.ts.map +1 -1
- package/operations/stepper-bulk-type-device-profile/stepper-bulk-type-device-profile.component.d.ts +1 -1
- package/operations/stepper-bulk-type-device-profile/stepper-bulk-type-device-profile.component.d.ts.map +1 -1
- package/operations/stepper-bulk-type-device-profile/stepper-bulk-type-device-profile.module.d.ts +1 -6
- package/operations/stepper-bulk-type-device-profile/stepper-bulk-type-device-profile.module.d.ts.map +1 -1
- package/operations/stepper-bulk-type-firmware/select-firmware.component.d.ts +1 -1
- package/operations/stepper-bulk-type-firmware/select-firmware.component.d.ts.map +1 -1
- package/operations/stepper-bulk-type-firmware/stepper-bulk-type-firmware.component.d.ts +1 -1
- package/operations/stepper-bulk-type-firmware/stepper-bulk-type-firmware.component.d.ts.map +1 -1
- package/operations/stepper-bulk-type-firmware/stepper-bulk-type-firmware.module.d.ts +1 -6
- package/operations/stepper-bulk-type-firmware/stepper-bulk-type-firmware.module.d.ts.map +1 -1
- package/operations/stepper-bulk-type-firmware/version-or-patch.component.d.ts +1 -1
- package/operations/stepper-bulk-type-firmware/version-or-patch.component.d.ts.map +1 -1
- package/operations/stepper-bulk-type-software/confirm-software-selection-step.component.d.ts +1 -1
- package/operations/stepper-bulk-type-software/confirm-software-selection-step.component.d.ts.map +1 -1
- package/operations/stepper-bulk-type-software/select-software-step.component.d.ts +1 -1
- package/operations/stepper-bulk-type-software/select-software-step.component.d.ts.map +1 -1
- package/operations/stepper-bulk-type-software/stepper-bulk-type-software.component.d.ts +1 -1
- package/operations/stepper-bulk-type-software/stepper-bulk-type-software.component.d.ts.map +1 -1
- package/operations/stepper-bulk-type-software/stepper-bulk-type-software.module.d.ts +1 -6
- package/operations/stepper-bulk-type-software/stepper-bulk-type-software.module.d.ts.map +1 -1
- package/operations/stepper-frames/preview-block.directive.d.ts +1 -1
- package/operations/stepper-frames/preview-block.directive.d.ts.map +1 -1
- package/operations/stepper-frames/preview-selection-frame.component.d.ts +1 -1
- package/operations/stepper-frames/preview-selection-frame.component.d.ts.map +1 -1
- package/operations/stepper-frames/select-step-frame.component.d.ts +1 -1
- package/operations/stepper-frames/select-step-frame.component.d.ts.map +1 -1
- package/operations/stepper-frames/stepper-frames.modules.d.ts +1 -2
- package/operations/stepper-frames/stepper-frames.modules.d.ts.map +1 -1
- package/package.json +1 -1
- package/protocol-opcua/opcua-address-space-detail.component.d.ts +1 -1
- package/protocol-opcua/opcua-address-space-detail.component.d.ts.map +1 -1
- package/protocol-opcua/opcua-address-space-tree.component.d.ts +1 -1
- package/protocol-opcua/opcua-address-space-tree.component.d.ts.map +1 -1
- package/protocol-opcua/opcua-address-space.component.d.ts +1 -1
- package/protocol-opcua/opcua-address-space.component.d.ts.map +1 -1
- package/protocol-opcua/opcua-auto-apply-settings.component.d.ts +1 -1
- package/protocol-opcua/opcua-auto-apply-settings.component.d.ts.map +1 -1
- package/protocol-opcua/opcua-device-protocol-browse-path-validation.directive.d.ts +1 -1
- package/protocol-opcua/opcua-device-protocol-browse-path-validation.directive.d.ts.map +1 -1
- package/protocol-opcua/opcua-device-protocol-data-reporting.component.d.ts +1 -1
- package/protocol-opcua/opcua-device-protocol-data-reporting.component.d.ts.map +1 -1
- package/protocol-opcua/opcua-device-protocol-description.component.d.ts +1 -1
- package/protocol-opcua/opcua-device-protocol-description.component.d.ts.map +1 -1
- package/protocol-opcua/opcua-device-protocol-detail.component.d.ts +1 -1
- package/protocol-opcua/opcua-device-protocol-detail.component.d.ts.map +1 -1
- package/protocol-opcua/opcua-device-protocol-mapping.component.d.ts +1 -1
- package/protocol-opcua/opcua-device-protocol-mapping.component.d.ts.map +1 -1
- package/protocol-opcua/opcua-device-protocol-object-mapping-status-icon.component.d.ts +1 -1
- package/protocol-opcua/opcua-device-protocol-object-mapping-status-icon.component.d.ts.map +1 -1
- package/protocol-opcua/opcua-protocol.module.d.ts +26 -26
- package/protocol-opcua/opcua-protocol.module.d.ts.map +1 -1
- package/protocol-opcua/opcua-server-config.component.d.ts +1 -1
- package/protocol-opcua/opcua-server-config.component.d.ts.map +1 -1
- package/protocol-opcua/opcua-server-list.component.d.ts +1 -1
- package/protocol-opcua/opcua-server-list.component.d.ts.map +1 -1
- package/protocol-opcua/opcua-servers.component.d.ts +1 -1
- package/protocol-opcua/opcua-servers.component.d.ts.map +1 -1
- package/repository/configuration/device-tab/configuration-filter.pipe.d.ts +1 -1
- package/repository/configuration/device-tab/configuration-filter.pipe.d.ts.map +1 -1
- package/repository/configuration/device-tab/configuration-preview.component.d.ts +1 -1
- package/repository/configuration/device-tab/configuration-preview.component.d.ts.map +1 -1
- package/repository/configuration/device-tab/configuration-repository-device-tab.module.d.ts +11 -13
- package/repository/configuration/device-tab/configuration-repository-device-tab.module.d.ts.map +1 -1
- package/repository/configuration/device-tab/device-configuration-list.component.d.ts +1 -1
- package/repository/configuration/device-tab/device-configuration-list.component.d.ts.map +1 -1
- package/repository/configuration/device-tab/device-configuration.component.d.ts +1 -1
- package/repository/configuration/device-tab/device-configuration.component.d.ts.map +1 -1
- package/repository/configuration/device-tab/save-to-repository.component.d.ts +1 -1
- package/repository/configuration/device-tab/save-to-repository.component.d.ts.map +1 -1
- package/repository/configuration/device-tab/source-code-preview.component.d.ts +1 -1
- package/repository/configuration/device-tab/source-code-preview.component.d.ts.map +1 -1
- package/repository/configuration/device-tab/text-based-configuration.component.d.ts +1 -1
- package/repository/configuration/device-tab/text-based-configuration.component.d.ts.map +1 -1
- package/repository/configuration/list/configuration-detail.component.d.ts +1 -1
- package/repository/configuration/list/configuration-detail.component.d.ts.map +1 -1
- package/repository/configuration/list/configuration-list.component.d.ts +1 -1
- package/repository/configuration/list/configuration-list.component.d.ts.map +1 -1
- package/repository/configuration/list/configuration-repository-list.module.d.ts +4 -7
- package/repository/configuration/list/configuration-repository-list.module.d.ts.map +1 -1
- package/repository/firmware/device-tab/firmware-device-tab.component.d.ts +1 -1
- package/repository/firmware/device-tab/firmware-device-tab.component.d.ts.map +1 -1
- package/repository/firmware/device-tab/firmware-repository-device-tab.module.d.ts +4 -6
- package/repository/firmware/device-tab/firmware-repository-device-tab.module.d.ts.map +1 -1
- package/repository/firmware/list/add-firmware-modal.component.d.ts +1 -1
- package/repository/firmware/list/add-firmware-modal.component.d.ts.map +1 -1
- package/repository/firmware/list/add-firmware-patch-modal.component.d.ts +1 -1
- package/repository/firmware/list/add-firmware-patch-modal.component.d.ts.map +1 -1
- package/repository/firmware/list/firmware-details.component.d.ts +1 -1
- package/repository/firmware/list/firmware-details.component.d.ts.map +1 -1
- package/repository/firmware/list/firmware-list.component.d.ts +1 -1
- package/repository/firmware/list/firmware-list.component.d.ts.map +1 -1
- package/repository/firmware/list/firmware-repository-list.module.d.ts +6 -11
- package/repository/firmware/list/firmware-repository-list.module.d.ts.map +1 -1
- package/repository/shared/file-download/file-download.component.d.ts +1 -1
- package/repository/shared/file-download/file-download.component.d.ts.map +1 -1
- package/repository/shared/select-modal/repository-select-modal.component.d.ts +1 -1
- package/repository/shared/select-modal/repository-select-modal.component.d.ts.map +1 -1
- package/repository/shared/shared-repository.module.d.ts +1 -4
- package/repository/shared/shared-repository.module.d.ts.map +1 -1
- package/repository/shared/software-type/software-type.component.d.ts +1 -1
- package/repository/shared/software-type/software-type.component.d.ts.map +1 -1
- package/repository/software/device-tab/device-software-changes.component.d.ts +1 -1
- package/repository/software/device-tab/device-software-changes.component.d.ts.map +1 -1
- package/repository/software/device-tab/device-software-list.component.d.ts +1 -1
- package/repository/software/device-tab/device-software-list.component.d.ts.map +1 -1
- package/repository/software/device-tab/installed-software.component.d.ts +1 -1
- package/repository/software/device-tab/installed-software.component.d.ts.map +1 -1
- package/repository/software/device-tab/software-device-tab.component.d.ts +1 -1
- package/repository/software/device-tab/software-device-tab.component.d.ts.map +1 -1
- package/repository/software/device-tab/software-repository-device-tab.module.d.ts +7 -11
- package/repository/software/device-tab/software-repository-device-tab.module.d.ts.map +1 -1
- package/repository/software/list/add-software-modal.component.d.ts +1 -1
- package/repository/software/list/add-software-modal.component.d.ts.map +1 -1
- package/repository/software/list/software-details.component.d.ts +1 -1
- package/repository/software/list/software-details.component.d.ts.map +1 -1
- package/repository/software/list/software-list.component.d.ts +1 -1
- package/repository/software/list/software-list.component.d.ts.map +1 -1
- package/repository/software/list/software-repository-list.module.d.ts +5 -11
- package/repository/software/list/software-repository-list.module.d.ts.map +1 -1
- package/services/services-device-tab/columns/last-updated-date.cell-renderer.component.d.ts +1 -1
- package/services/services-device-tab/columns/last-updated-date.cell-renderer.component.d.ts.map +1 -1
- package/services/services-device-tab/columns/name.cell-renderer.component.d.ts +1 -1
- package/services/services-device-tab/columns/name.cell-renderer.component.d.ts.map +1 -1
- package/services/services-device-tab/columns/status.cell-renderer.component.d.ts +1 -1
- package/services/services-device-tab/columns/status.cell-renderer.component.d.ts.map +1 -1
- package/services/services-device-tab/services-device-tab.component.d.ts +1 -1
- package/services/services-device-tab/services-device-tab.component.d.ts.map +1 -1
- package/services/services-device-tab/services-device-tab.module.d.ts +1 -4
- package/services/services-device-tab/services-device-tab.module.d.ts.map +1 -1
- package/time-context/index.d.ts +1 -0
- package/time-context/index.d.ts.map +1 -1
- package/time-context/time-context.component.d.ts +6 -3
- package/time-context/time-context.component.d.ts.map +1 -1
- package/time-context/time-context.model.d.ts +10 -0
- package/time-context/time-context.model.d.ts.map +1 -0
- package/time-context/time-context.service.d.ts +2 -6
- package/time-context/time-context.service.d.ts.map +1 -1
- package/trusted-certificates/crl/crl-settings.component.d.ts +5 -1
- package/trusted-certificates/crl/crl-settings.component.d.ts.map +1 -1
- package/trusted-certificates/factories/tabs.factory.d.ts +3 -2
- package/trusted-certificates/factories/tabs.factory.d.ts.map +1 -1
- package/trusted-certificates/factories/trusted-certificates-navigation.factory.d.ts +2 -0
- package/trusted-certificates/factories/trusted-certificates-navigation.factory.d.ts.map +1 -1
- package/trusted-certificates/list/trusted-certificate-list.component.d.ts +5 -1
- package/trusted-certificates/list/trusted-certificate-list.component.d.ts.map +1 -1
- package/trusted-certificates/trusted-certificates.guard.d.ts +11 -0
- package/trusted-certificates/trusted-certificates.guard.d.ts.map +1 -0
- package/upgrade/index.d.ts +0 -1
- package/upgrade/index.d.ts.map +1 -1
- package/upgrade/upgrade.module.d.ts.map +1 -1
- package/upgrade/upgraded-services/index.d.ts +1 -0
- package/upgrade/upgraded-services/index.d.ts.map +1 -1
- package/upgrade/upgraded-services/smart-rules.service.d.ts.map +1 -0
- package/upgrade/upgraded-services/upgraded-services.module.d.ts.map +1 -1
- package/user-roles/inventory-role-selector/inventory-role-selector.component.d.ts +2 -1
- package/user-roles/inventory-role-selector/inventory-role-selector.component.d.ts.map +1 -1
- package/user-roles/roles-asset-tree/roles-asset-tree.component.d.ts +2 -1
- package/user-roles/roles-asset-tree/roles-asset-tree.component.d.ts.map +1 -1
- package/device-parameters/c8y-ngx-components-device-parameters.d.ts.map +0 -1
- package/device-parameters/device-parameters-list.component.d.ts +0 -22
- package/device-parameters/device-parameters-list.component.d.ts.map +0 -1
- package/device-parameters/device-parameters-tab.guard.d.ts +0 -11
- package/device-parameters/device-parameters-tab.guard.d.ts.map +0 -1
- package/device-parameters/index.d.ts +0 -2
- package/device-parameters/index.d.ts.map +0 -1
- package/fesm2022/c8y-ngx-components-device-parameters.mjs +0 -118
- package/fesm2022/c8y-ngx-components-device-parameters.mjs.map +0 -1
- package/upgrade/smart-rules.service.d.ts.map +0 -1
- /package/upgrade/{smart-rules.service.d.ts → upgraded-services/smart-rules.service.d.ts} +0 -0
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Input, Component, Injectable, forwardRef, NgModule } from '@angular/core';
|
|
3
|
-
import { CollapseModule } from 'ngx-bootstrap/collapse';
|
|
4
|
-
import { PopoverModule } from 'ngx-bootstrap/popover';
|
|
5
|
-
import * as i4 from 'ngx-bootstrap/tooltip';
|
|
6
|
-
import { TooltipModule } from 'ngx-bootstrap/tooltip';
|
|
7
|
-
import * as i2$1 from '@c8y/ngx-components';
|
|
8
|
-
import { operationStatusIcons, operationStatusClasses, PRODUCT_EXPERIENCE_EVENT_SOURCE, CoreModule } from '@c8y/ngx-components';
|
|
9
3
|
import { BulkOperationListItemService } from '@c8y/ngx-components/operations/bulk-operation-list-item';
|
|
10
|
-
import
|
|
11
|
-
import { OperationsListItemComponent } from '@c8y/ngx-components/operations/operations-list';
|
|
12
|
-
import * as i1 from 'ngx-bootstrap/modal';
|
|
4
|
+
import { C8yTranslatePipe, operationStatusIcons, operationStatusClasses, IconDirective, ProductExperienceDirective, DatePipe, PRODUCT_EXPERIENCE_EVENT_SOURCE } from '@c8y/ngx-components';
|
|
13
5
|
import { ACTIONS_OPERATIONS, COMPONENTS } from '@c8y/ngx-components/operations/product-experience';
|
|
6
|
+
import * as i1 from 'ngx-bootstrap/modal';
|
|
14
7
|
import * as i1$1 from '@c8y/client';
|
|
15
|
-
import * as
|
|
8
|
+
import * as i2 from '@c8y/ngx-components/operations/operations-list';
|
|
9
|
+
import { OperationsListItemComponent } from '@c8y/ngx-components/operations/operations-list';
|
|
10
|
+
import { NgIf, NgClass } from '@angular/common';
|
|
11
|
+
import { TooltipDirective } from 'ngx-bootstrap/tooltip';
|
|
16
12
|
|
|
17
13
|
class OperationDetailsModalComponent {
|
|
18
14
|
constructor(modalRef, operationsListService) {
|
|
@@ -27,11 +23,11 @@ class OperationDetailsModalComponent {
|
|
|
27
23
|
await this.operationsListService.isSmartRulesMicroserviceAvailable();
|
|
28
24
|
}
|
|
29
25
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsModalComponent, deps: [{ token: i1.BsModalRef }, { token: i2.OperationsListService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: OperationDetailsModalComponent, isStandalone:
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: OperationDetailsModalComponent, isStandalone: true, selector: "c8y-operation-details-modal", inputs: { operation: "operation", collapsed: "collapsed", readOnly: "readOnly" }, ngImport: i0, template: "<div class=\"viewport-modal\">\n <div class=\"modal-header separator\">\n <h3 id=\"modal-title\">{{ 'Single operation details' | translate }}</h3>\n </div>\n\n <div\n class=\"modal-inner-scroll\"\n id=\"modal-body\"\n >\n <c8y-operations-list-item\n [operation]=\"operation\"\n [collapsed]=\"collapsed\"\n [noExpandToggle]=\"true\"\n [readOnly]=\"readOnly\"\n [isSmartRulesMicroserviceAvailable]=\"isSmartRulesMicroserviceAvailable\"\n ></c8y-operations-list-item>\n </div>\n\n <div class=\"modal-footer\">\n <button\n class=\"btn btn-default\"\n title=\"{{ 'Close' | translate }}\"\n type=\"button\"\n (click)=\"modalRef.hide()\"\n >\n {{ 'Close' | translate }}\n </button>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: OperationsListItemComponent, selector: "c8y-operations-list-item", inputs: ["operation", "collapsed", "readOnly", "noExpandToggle", "isSmartRulesMicroserviceAvailable"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }] }); }
|
|
31
27
|
}
|
|
32
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsModalComponent, decorators: [{
|
|
33
29
|
type: Component,
|
|
34
|
-
args: [{ selector: 'c8y-operation-details-modal',
|
|
30
|
+
args: [{ selector: 'c8y-operation-details-modal', imports: [OperationsListItemComponent, C8yTranslatePipe], template: "<div class=\"viewport-modal\">\n <div class=\"modal-header separator\">\n <h3 id=\"modal-title\">{{ 'Single operation details' | translate }}</h3>\n </div>\n\n <div\n class=\"modal-inner-scroll\"\n id=\"modal-body\"\n >\n <c8y-operations-list-item\n [operation]=\"operation\"\n [collapsed]=\"collapsed\"\n [noExpandToggle]=\"true\"\n [readOnly]=\"readOnly\"\n [isSmartRulesMicroserviceAvailable]=\"isSmartRulesMicroserviceAvailable\"\n ></c8y-operations-list-item>\n </div>\n\n <div class=\"modal-footer\">\n <button\n class=\"btn btn-default\"\n title=\"{{ 'Close' | translate }}\"\n type=\"button\"\n (click)=\"modalRef.hide()\"\n >\n {{ 'Close' | translate }}\n </button>\n </div>\n</div>\n" }]
|
|
35
31
|
}], ctorParameters: () => [{ type: i1.BsModalRef }, { type: i2.OperationsListService }], propDecorators: { operation: [{
|
|
36
32
|
type: Input
|
|
37
33
|
}], collapsed: [{
|
|
@@ -65,10 +61,11 @@ class OperationDetailsService {
|
|
|
65
61
|
});
|
|
66
62
|
}
|
|
67
63
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsService, deps: [{ token: i1$1.OperationService }, { token: i1.BsModalService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
68
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsService }); }
|
|
64
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsService, providedIn: 'root' }); }
|
|
69
65
|
}
|
|
70
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsService, decorators: [{
|
|
71
|
-
type: Injectable
|
|
67
|
+
type: Injectable,
|
|
68
|
+
args: [{ providedIn: 'root' }]
|
|
72
69
|
}], ctorParameters: () => [{ type: i1$1.OperationService }, { type: i1.BsModalService }] });
|
|
73
70
|
|
|
74
71
|
/**
|
|
@@ -97,12 +94,12 @@ class OperationDetailsComponent {
|
|
|
97
94
|
this.operationDetailsService.openDetails(this.operation);
|
|
98
95
|
}
|
|
99
96
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsComponent, deps: [{ token: OperationDetailsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
100
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: OperationDetailsComponent, isStandalone:
|
|
97
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: OperationDetailsComponent, isStandalone: true, selector: "c8y-operation-details", inputs: { operation: "operation" }, providers: [
|
|
101
98
|
{
|
|
102
99
|
provide: PRODUCT_EXPERIENCE_EVENT_SOURCE,
|
|
103
100
|
useExisting: forwardRef(() => OperationDetailsComponent)
|
|
104
101
|
}
|
|
105
|
-
], ngImport: i0, template: "<div class=\"c8y-list--group\" *ngIf=\"operation\">\n <a class=\"c8y-list__item\">\n <div class=\"c8y-list__item__block\">\n <div class=\"c8y-list__item__icon\">\n <button\n class=\"btn-clean\"\n type=\"button\"\n [attr.aria-label]=\"operation.status?.toString() | translate\"\n [tooltip]=\"operation.status?.toString() | translate\"\n [delay]=\"500\"\n placement=\"right\"\n container=\"body\"\n >\n <i\n [c8yIcon]=\"statusIcons[operation.status]\"\n [ngClass]=\"statusClasses[operation.status]\"\n ></i>\n </button>\n </div>\n <div class=\"c8y-list__item__body p-r-16\">\n <div class=\"content-flex-40\">\n <div class=\"col-8\">\n <button\n class=\"btn-clean text-truncate\"\n type=\"button\"\n title=\"{{ operation.description | translate }}\"\n (click)=\"openDetails()\"\n c8yProductExperience\n inherit\n [actionData]=\"{ action: ACTIONS.OPEN_OPERATION_DETAILS }\"\n >\n {{ operation.description | translate }}\n </button>\n </div>\n <div class=\"col-4 text-muted\">\n <small class=\"icon-flex\">\n <i c8yIcon=\"calendar\" class=\"m-r-4\"></i>\n <span>{{ operation.creationTime | c8yDate }}</span>\n </small>\n </div>\n </div>\n </div>\n </div>\n </a>\n</div>\n", dependencies: [{ kind: "directive", type:
|
|
102
|
+
], ngImport: i0, template: "<div class=\"c8y-list--group\" *ngIf=\"operation\">\n <a class=\"c8y-list__item\">\n <div class=\"c8y-list__item__block\">\n <div class=\"c8y-list__item__icon\">\n <button\n class=\"btn-clean\"\n type=\"button\"\n [attr.aria-label]=\"operation.status?.toString() | translate\"\n [tooltip]=\"operation.status?.toString() | translate\"\n [delay]=\"500\"\n placement=\"right\"\n container=\"body\"\n >\n <i\n [c8yIcon]=\"statusIcons[operation.status]\"\n [ngClass]=\"statusClasses[operation.status]\"\n ></i>\n </button>\n </div>\n <div class=\"c8y-list__item__body p-r-16\">\n <div class=\"content-flex-40\">\n <div class=\"col-8\">\n <button\n class=\"btn-clean text-truncate\"\n type=\"button\"\n title=\"{{ operation.description | translate }}\"\n (click)=\"openDetails()\"\n c8yProductExperience\n inherit\n [actionData]=\"{ action: ACTIONS.OPEN_OPERATION_DETAILS }\"\n >\n {{ operation.description | translate }}\n </button>\n </div>\n <div class=\"col-4 text-muted\">\n <small class=\"icon-flex\">\n <i c8yIcon=\"calendar\" class=\"m-r-4\"></i>\n <span>{{ operation.creationTime | c8yDate }}</span>\n </small>\n </div>\n </div>\n </div>\n </div>\n </a>\n</div>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TooltipDirective, selector: "[tooltip], [tooltipHtml]", inputs: ["adaptivePosition", "tooltip", "placement", "triggers", "container", "containerClass", "boundariesElement", "isOpen", "isDisabled", "delay", "tooltipHtml", "tooltipPlacement", "tooltipIsOpen", "tooltipEnable", "tooltipAppendToBody", "tooltipAnimation", "tooltipClass", "tooltipContext", "tooltipPopupDelay", "tooltipFadeDuration", "tooltipTrigger"], outputs: ["tooltipChange", "onShown", "onHidden", "tooltipStateChanged"], exportAs: ["bs-tooltip"] }, { kind: "directive", type: IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: ProductExperienceDirective, selector: "[c8yProductExperience]", inputs: ["actionName", "actionData", "inherit", "suppressDataOverriding"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: DatePipe, name: "c8yDate" }] }); }
|
|
106
103
|
}
|
|
107
104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsComponent, decorators: [{
|
|
108
105
|
type: Component,
|
|
@@ -111,7 +108,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
111
108
|
provide: PRODUCT_EXPERIENCE_EVENT_SOURCE,
|
|
112
109
|
useExisting: forwardRef(() => OperationDetailsComponent)
|
|
113
110
|
}
|
|
114
|
-
],
|
|
111
|
+
], imports: [
|
|
112
|
+
NgIf,
|
|
113
|
+
TooltipDirective,
|
|
114
|
+
IconDirective,
|
|
115
|
+
NgClass,
|
|
116
|
+
ProductExperienceDirective,
|
|
117
|
+
C8yTranslatePipe,
|
|
118
|
+
DatePipe
|
|
119
|
+
], template: "<div class=\"c8y-list--group\" *ngIf=\"operation\">\n <a class=\"c8y-list__item\">\n <div class=\"c8y-list__item__block\">\n <div class=\"c8y-list__item__icon\">\n <button\n class=\"btn-clean\"\n type=\"button\"\n [attr.aria-label]=\"operation.status?.toString() | translate\"\n [tooltip]=\"operation.status?.toString() | translate\"\n [delay]=\"500\"\n placement=\"right\"\n container=\"body\"\n >\n <i\n [c8yIcon]=\"statusIcons[operation.status]\"\n [ngClass]=\"statusClasses[operation.status]\"\n ></i>\n </button>\n </div>\n <div class=\"c8y-list__item__body p-r-16\">\n <div class=\"content-flex-40\">\n <div class=\"col-8\">\n <button\n class=\"btn-clean text-truncate\"\n type=\"button\"\n title=\"{{ operation.description | translate }}\"\n (click)=\"openDetails()\"\n c8yProductExperience\n inherit\n [actionData]=\"{ action: ACTIONS.OPEN_OPERATION_DETAILS }\"\n >\n {{ operation.description | translate }}\n </button>\n </div>\n <div class=\"col-4 text-muted\">\n <small class=\"icon-flex\">\n <i c8yIcon=\"calendar\" class=\"m-r-4\"></i>\n <span>{{ operation.creationTime | c8yDate }}</span>\n </small>\n </div>\n </div>\n </div>\n </div>\n </a>\n</div>\n" }]
|
|
115
120
|
}], ctorParameters: () => [{ type: OperationDetailsService }], propDecorators: { operation: [{
|
|
116
121
|
type: Input
|
|
117
122
|
}] } });
|
|
@@ -121,15 +126,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
121
126
|
*/
|
|
122
127
|
class OperationDetailsModule {
|
|
123
128
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
124
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsModule,
|
|
125
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsModule, providers: [OperationDetailsService, BulkOperationListItemService]
|
|
129
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsModule, imports: [OperationDetailsComponent], exports: [OperationDetailsComponent] }); }
|
|
130
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsModule, providers: [OperationDetailsService, BulkOperationListItemService] }); }
|
|
126
131
|
}
|
|
127
132
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsModule, decorators: [{
|
|
128
133
|
type: NgModule,
|
|
129
134
|
args: [{
|
|
130
|
-
imports: [
|
|
135
|
+
imports: [OperationDetailsComponent],
|
|
131
136
|
providers: [OperationDetailsService, BulkOperationListItemService],
|
|
132
|
-
declarations: [OperationDetailsComponent, OperationDetailsModalComponent],
|
|
133
137
|
exports: [OperationDetailsComponent]
|
|
134
138
|
}]
|
|
135
139
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-operations-operation-details.mjs","sources":["../../operations/operation-details/operation-details-modal.component.ts","../../operations/operation-details/operation-details-modal.component.html","../../operations/operation-details/operation-details.service.ts","../../operations/operation-details/operation-details.component.ts","../../operations/operation-details/operation-details.component.html","../../operations/operation-details/operation-details.module.ts","../../operations/operation-details/c8y-ngx-components-operations-operation-details.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { BsModalRef } from 'ngx-bootstrap/modal';\nimport { IOperation } from '@c8y/client';\nimport { OperationsListService } from '@c8y/ngx-components/operations/operations-list';\n@Component({\n selector: 'c8y-operation-details-modal',\n templateUrl: './operation-details-modal.component.html',\n standalone: false\n})\nexport class OperationDetailsModalComponent {\n @Input() operation: Partial<IOperation>;\n @Input() collapsed = false;\n @Input() readOnly = false;\n isSmartRulesMicroserviceAvailable = false;\n\n constructor(\n public modalRef: BsModalRef,\n private operationsListService: OperationsListService\n ) {}\n\n async ngOnInit() {\n this.isSmartRulesMicroserviceAvailable =\n await this.operationsListService.isSmartRulesMicroserviceAvailable();\n }\n}\n","<div class=\"viewport-modal\">\n <div class=\"modal-header separator\">\n <h3 id=\"modal-title\">{{ 'Single operation details' | translate }}</h3>\n </div>\n\n <div\n class=\"modal-inner-scroll\"\n id=\"modal-body\"\n >\n <c8y-operations-list-item\n [operation]=\"operation\"\n [collapsed]=\"collapsed\"\n [noExpandToggle]=\"true\"\n [readOnly]=\"readOnly\"\n [isSmartRulesMicroserviceAvailable]=\"isSmartRulesMicroserviceAvailable\"\n ></c8y-operations-list-item>\n </div>\n\n <div class=\"modal-footer\">\n <button\n class=\"btn btn-default\"\n title=\"{{ 'Close' | translate }}\"\n type=\"button\"\n (click)=\"modalRef.hide()\"\n >\n {{ 'Close' | translate }}\n </button>\n </div>\n</div>\n","import { Injectable } from '@angular/core';\nimport { BsModalService } from 'ngx-bootstrap/modal';\nimport { IOperation, OperationService } from '@c8y/client';\nimport { OperationDetailsModalComponent } from './operation-details-modal.component';\n\n@Injectable()\nexport class OperationDetailsService {\n constructor(private operationService: OperationService, private modalService: BsModalService) {}\n\n /**\n * Opens a modal window with the details of given single operation.\n * @param operationOrOperationId Operation's object or id.\n * @param options Additional options:\n * - `collapsed`: boolean - whether the details pane should be initially collapsed\n * - `readOnly`: boolean - whether the details should be displayed in read-only mode\n */\n async openDetails(\n operationOrOperationId: IOperation | string | number,\n options?: { collapsed?: boolean; readOnly?: boolean }\n ) {\n const operation: IOperation = (operationOrOperationId as IOperation).id\n ? (operationOrOperationId as IOperation)\n : (await this.operationService.detail(operationOrOperationId)).data;\n const initialState = { operation, ...options };\n\n this.modalService.show(OperationDetailsModalComponent, {\n initialState,\n class: 'modal-lg',\n ariaDescribedby: 'modal-body',\n ariaLabelledBy: 'modal-title'\n });\n }\n}\n","import { Component, forwardRef, Input } from '@angular/core';\nimport { IOperation } from '@c8y/client';\nimport {\n operationStatusClasses,\n operationStatusIcons,\n ProductExperienceEvent,\n ProductExperienceEventSource,\n PRODUCT_EXPERIENCE_EVENT_SOURCE\n} from '@c8y/ngx-components';\nimport { ACTIONS_OPERATIONS, COMPONENTS } from '@c8y/ngx-components/operations/product-experience';\nimport { OperationDetailsService } from './operation-details.service';\n\n/**\n * Operation details component displays a single operation's status, description and creationTime.\n *\n * ```html\n * <c8y-operation-details [operation]=\"operation\"></c8y-operation-details>\n * ```\n */\n@Component({\n selector: 'c8y-operation-details',\n templateUrl: './operation-details.component.html',\n providers: [\n {\n provide: PRODUCT_EXPERIENCE_EVENT_SOURCE,\n useExisting: forwardRef(() => OperationDetailsComponent)\n }\n ],\n standalone: false\n})\nexport class OperationDetailsComponent implements ProductExperienceEventSource {\n ACTIONS = ACTIONS_OPERATIONS;\n @Input() operation: IOperation;\n\n statusIcons: object;\n statusClasses: object;\n\n productExperienceEvent: ProductExperienceEvent = {\n eventName: undefined, // supress emitting events if a parent component does not declare event name\n data: {\n component: COMPONENTS.OPERATION_DETAILS\n }\n };\n\n constructor(private operationDetailsService: OperationDetailsService) {}\n\n ngOnInit() {\n this.statusIcons = operationStatusIcons;\n this.statusClasses = operationStatusClasses;\n }\n\n openDetails() {\n this.operationDetailsService.openDetails(this.operation);\n }\n}\n","<div class=\"c8y-list--group\" *ngIf=\"operation\">\n <a class=\"c8y-list__item\">\n <div class=\"c8y-list__item__block\">\n <div class=\"c8y-list__item__icon\">\n <button\n class=\"btn-clean\"\n type=\"button\"\n [attr.aria-label]=\"operation.status?.toString() | translate\"\n [tooltip]=\"operation.status?.toString() | translate\"\n [delay]=\"500\"\n placement=\"right\"\n container=\"body\"\n >\n <i\n [c8yIcon]=\"statusIcons[operation.status]\"\n [ngClass]=\"statusClasses[operation.status]\"\n ></i>\n </button>\n </div>\n <div class=\"c8y-list__item__body p-r-16\">\n <div class=\"content-flex-40\">\n <div class=\"col-8\">\n <button\n class=\"btn-clean text-truncate\"\n type=\"button\"\n title=\"{{ operation.description | translate }}\"\n (click)=\"openDetails()\"\n c8yProductExperience\n inherit\n [actionData]=\"{ action: ACTIONS.OPEN_OPERATION_DETAILS }\"\n >\n {{ operation.description | translate }}\n </button>\n </div>\n <div class=\"col-4 text-muted\">\n <small class=\"icon-flex\">\n <i c8yIcon=\"calendar\" class=\"m-r-4\"></i>\n <span>{{ operation.creationTime | c8yDate }}</span>\n </small>\n </div>\n </div>\n </div>\n </div>\n </a>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CollapseModule } from 'ngx-bootstrap/collapse';\nimport { PopoverModule } from 'ngx-bootstrap/popover';\nimport { TooltipModule } from 'ngx-bootstrap/tooltip';\n\nimport { CoreModule } from '@c8y/ngx-components';\nimport { BulkOperationListItemService } from '@c8y/ngx-components/operations/bulk-operation-list-item';\n\nimport { OperationsListItemComponent } from '@c8y/ngx-components/operations/operations-list';\nimport { OperationDetailsModalComponent } from './operation-details-modal.component';\nimport { OperationDetailsComponent } from './operation-details.component';\nimport { OperationDetailsService } from './operation-details.service';\n\n/**\n * This module allows to display details of a single operation in a modal.\n */\n@NgModule({\n imports: [CoreModule, PopoverModule, TooltipModule, CollapseModule, OperationsListItemComponent],\n providers: [OperationDetailsService, BulkOperationListItemService],\n declarations: [OperationDetailsComponent, OperationDetailsModalComponent],\n exports: [OperationDetailsComponent]\n})\nexport class OperationDetailsMod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;oBACzE,OAAO,EAAE,CAAC,yBAAyB;AACpC,iBAAA;;;ACrBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-operations-operation-details.mjs","sources":["../../operations/operation-details/operation-details-modal.component.ts","../../operations/operation-details/operation-details-modal.component.html","../../operations/operation-details/operation-details.service.ts","../../operations/operation-details/operation-details.component.ts","../../operations/operation-details/operation-details.component.html","../../operations/operation-details/operation-details.module.ts","../../operations/operation-details/c8y-ngx-components-operations-operation-details.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { BsModalRef } from 'ngx-bootstrap/modal';\nimport { IOperation } from '@c8y/client';\nimport {\n OperationsListService,\n OperationsListItemComponent\n} from '@c8y/ngx-components/operations/operations-list';\nimport { C8yTranslatePipe } from '@c8y/ngx-components';\n@Component({\n selector: 'c8y-operation-details-modal',\n templateUrl: './operation-details-modal.component.html',\n imports: [OperationsListItemComponent, C8yTranslatePipe]\n})\nexport class OperationDetailsModalComponent {\n @Input() operation: Partial<IOperation>;\n @Input() collapsed = false;\n @Input() readOnly = false;\n isSmartRulesMicroserviceAvailable = false;\n\n constructor(\n public modalRef: BsModalRef,\n private operationsListService: OperationsListService\n ) {}\n\n async ngOnInit() {\n this.isSmartRulesMicroserviceAvailable =\n await this.operationsListService.isSmartRulesMicroserviceAvailable();\n }\n}\n","<div class=\"viewport-modal\">\n <div class=\"modal-header separator\">\n <h3 id=\"modal-title\">{{ 'Single operation details' | translate }}</h3>\n </div>\n\n <div\n class=\"modal-inner-scroll\"\n id=\"modal-body\"\n >\n <c8y-operations-list-item\n [operation]=\"operation\"\n [collapsed]=\"collapsed\"\n [noExpandToggle]=\"true\"\n [readOnly]=\"readOnly\"\n [isSmartRulesMicroserviceAvailable]=\"isSmartRulesMicroserviceAvailable\"\n ></c8y-operations-list-item>\n </div>\n\n <div class=\"modal-footer\">\n <button\n class=\"btn btn-default\"\n title=\"{{ 'Close' | translate }}\"\n type=\"button\"\n (click)=\"modalRef.hide()\"\n >\n {{ 'Close' | translate }}\n </button>\n </div>\n</div>\n","import { Injectable } from '@angular/core';\nimport { BsModalService } from 'ngx-bootstrap/modal';\nimport { IOperation, OperationService } from '@c8y/client';\nimport { OperationDetailsModalComponent } from './operation-details-modal.component';\n\n@Injectable({ providedIn: 'root' })\nexport class OperationDetailsService {\n constructor(\n private operationService: OperationService,\n private modalService: BsModalService\n ) {}\n\n /**\n * Opens a modal window with the details of given single operation.\n * @param operationOrOperationId Operation's object or id.\n * @param options Additional options:\n * - `collapsed`: boolean - whether the details pane should be initially collapsed\n * - `readOnly`: boolean - whether the details should be displayed in read-only mode\n */\n async openDetails(\n operationOrOperationId: IOperation | string | number,\n options?: { collapsed?: boolean; readOnly?: boolean }\n ) {\n const operation: IOperation = (operationOrOperationId as IOperation).id\n ? (operationOrOperationId as IOperation)\n : (await this.operationService.detail(operationOrOperationId)).data;\n const initialState = { operation, ...options };\n\n this.modalService.show(OperationDetailsModalComponent, {\n initialState,\n class: 'modal-lg',\n ariaDescribedby: 'modal-body',\n ariaLabelledBy: 'modal-title'\n });\n }\n}\n","import { Component, forwardRef, Input } from '@angular/core';\nimport { IOperation } from '@c8y/client';\nimport {\n operationStatusClasses,\n operationStatusIcons,\n ProductExperienceEvent,\n ProductExperienceEventSource,\n PRODUCT_EXPERIENCE_EVENT_SOURCE,\n IconDirective,\n ProductExperienceDirective,\n C8yTranslatePipe,\n DatePipe\n} from '@c8y/ngx-components';\nimport { ACTIONS_OPERATIONS, COMPONENTS } from '@c8y/ngx-components/operations/product-experience';\nimport { OperationDetailsService } from './operation-details.service';\nimport { NgIf, NgClass } from '@angular/common';\nimport { TooltipDirective } from 'ngx-bootstrap/tooltip';\n\n/**\n * Operation details component displays a single operation's status, description and creationTime.\n *\n * ```html\n * <c8y-operation-details [operation]=\"operation\"></c8y-operation-details>\n * ```\n */\n@Component({\n selector: 'c8y-operation-details',\n templateUrl: './operation-details.component.html',\n providers: [\n {\n provide: PRODUCT_EXPERIENCE_EVENT_SOURCE,\n useExisting: forwardRef(() => OperationDetailsComponent)\n }\n ],\n imports: [\n NgIf,\n TooltipDirective,\n IconDirective,\n NgClass,\n ProductExperienceDirective,\n C8yTranslatePipe,\n DatePipe\n ]\n})\nexport class OperationDetailsComponent implements ProductExperienceEventSource {\n ACTIONS = ACTIONS_OPERATIONS;\n @Input() operation: IOperation;\n\n statusIcons: object;\n statusClasses: object;\n\n productExperienceEvent: ProductExperienceEvent = {\n eventName: undefined, // supress emitting events if a parent component does not declare event name\n data: {\n component: COMPONENTS.OPERATION_DETAILS\n }\n };\n\n constructor(private operationDetailsService: OperationDetailsService) {}\n\n ngOnInit() {\n this.statusIcons = operationStatusIcons;\n this.statusClasses = operationStatusClasses;\n }\n\n openDetails() {\n this.operationDetailsService.openDetails(this.operation);\n }\n}\n","<div class=\"c8y-list--group\" *ngIf=\"operation\">\n <a class=\"c8y-list__item\">\n <div class=\"c8y-list__item__block\">\n <div class=\"c8y-list__item__icon\">\n <button\n class=\"btn-clean\"\n type=\"button\"\n [attr.aria-label]=\"operation.status?.toString() | translate\"\n [tooltip]=\"operation.status?.toString() | translate\"\n [delay]=\"500\"\n placement=\"right\"\n container=\"body\"\n >\n <i\n [c8yIcon]=\"statusIcons[operation.status]\"\n [ngClass]=\"statusClasses[operation.status]\"\n ></i>\n </button>\n </div>\n <div class=\"c8y-list__item__body p-r-16\">\n <div class=\"content-flex-40\">\n <div class=\"col-8\">\n <button\n class=\"btn-clean text-truncate\"\n type=\"button\"\n title=\"{{ operation.description | translate }}\"\n (click)=\"openDetails()\"\n c8yProductExperience\n inherit\n [actionData]=\"{ action: ACTIONS.OPEN_OPERATION_DETAILS }\"\n >\n {{ operation.description | translate }}\n </button>\n </div>\n <div class=\"col-4 text-muted\">\n <small class=\"icon-flex\">\n <i c8yIcon=\"calendar\" class=\"m-r-4\"></i>\n <span>{{ operation.creationTime | c8yDate }}</span>\n </small>\n </div>\n </div>\n </div>\n </div>\n </a>\n</div>\n","import { NgModule } from '@angular/core';\nimport { BulkOperationListItemService } from '@c8y/ngx-components/operations/bulk-operation-list-item';\nimport { OperationDetailsComponent } from './operation-details.component';\nimport { OperationDetailsService } from './operation-details.service';\n\n/**\n * This module allows to display details of a single operation in a modal.\n */\n@NgModule({\n imports: [OperationDetailsComponent],\n providers: [OperationDetailsService, BulkOperationListItemService],\n exports: [OperationDetailsComponent]\n})\nexport class OperationDetailsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i1.OperationDetailsService"],"mappings":";;;;;;;;;;;;MAaa,8BAA8B,CAAA;IAMzC,WACS,CAAA,QAAoB,EACnB,qBAA4C,EAAA;QAD7C,IAAQ,CAAA,QAAA,GAAR,QAAQ;QACP,IAAqB,CAAA,qBAAA,GAArB,qBAAqB;QANtB,IAAS,CAAA,SAAA,GAAG,KAAK;QACjB,IAAQ,CAAA,QAAA,GAAG,KAAK;QACzB,IAAiC,CAAA,iCAAA,GAAG,KAAK;;AAOzC,IAAA,MAAM,QAAQ,GAAA;AACZ,QAAA,IAAI,CAAC,iCAAiC;AACpC,YAAA,MAAM,IAAI,CAAC,qBAAqB,CAAC,iCAAiC,EAAE;;+GAb7D,8BAA8B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,qBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA9B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,8BAA8B,ECb3C,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,SAAA,EAAA,WAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,Q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AAuB,EAAE,4BAA4B,CAAC;oBAClE,OAAO,EAAE,CAAC,yBAAyB;AACpC,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Input, Component, NgModule } from '@angular/core';
|
|
3
|
-
import * as i2 from '@c8y/ngx-components';
|
|
4
|
-
import { CoreModule } from '@c8y/ngx-components';
|
|
5
3
|
import * as i1 from '@c8y/client';
|
|
6
|
-
import
|
|
4
|
+
import { NgIf, NgPlural, NgPluralCase } from '@angular/common';
|
|
5
|
+
import { C8yTranslateDirective, C8yTranslatePipe } from '@c8y/ngx-components';
|
|
7
6
|
|
|
8
7
|
class OperationSummaryComponent {
|
|
9
8
|
set deviceQueryString(query) {
|
|
@@ -24,11 +23,11 @@ class OperationSummaryComponent {
|
|
|
24
23
|
this.displayDeviceCount = false;
|
|
25
24
|
}
|
|
26
25
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationSummaryComponent, deps: [{ token: i1.InventoryService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: OperationSummaryComponent, isStandalone:
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: OperationSummaryComponent, isStandalone: true, selector: "c8y-operation-summary", inputs: { name: "name", description: "description", deviceQueryString: "deviceQueryString" }, ngImport: i0, template: "<div class=\"d-flex\">\n <div class=\"p-l-0 col-xs-12 col-sm-6\">\n <h4>{{ name | translate }}</h4>\n <p class=\"text-muted m-b-8\">\n {{ description | translate }}\n </p>\n </div>\n <div class=\"p-r-0 text-right col-xs-12 col-sm-6\">\n <span\n [ngPlural]=\"deviceCount\"\n *ngIf=\"displayDeviceCount && deviceCount !== undefined && deviceCount !== null\"\n >\n <ng-template ngPluralCase=\"=0\">\n <span\n class=\"label label-default\"\n translate\n >\n No devices selected\n </span>\n </ng-template>\n <ng-template ngPluralCase=\"=1\">\n <span class=\"badge badge-info m-r-4\">1</span>\n <span translate>device selected</span>\n </ng-template>\n <ng-template ngPluralCase=\"other\">\n <span class=\"badge badge-info m-r-4\">{{ deviceCount }}</span>\n <span translate>devices selected</span>\n </ng-template>\n </span>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgPlural, selector: "[ngPlural]", inputs: ["ngPlural"] }, { kind: "directive", type: NgPluralCase, selector: "[ngPluralCase]" }, { kind: "directive", type: C8yTranslateDirective, selector: "[translate],[ngx-translate]" }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }] }); }
|
|
28
27
|
}
|
|
29
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationSummaryComponent, decorators: [{
|
|
30
29
|
type: Component,
|
|
31
|
-
args: [{ selector: 'c8y-operation-summary',
|
|
30
|
+
args: [{ selector: 'c8y-operation-summary', imports: [NgIf, NgPlural, NgPluralCase, C8yTranslateDirective, C8yTranslatePipe], template: "<div class=\"d-flex\">\n <div class=\"p-l-0 col-xs-12 col-sm-6\">\n <h4>{{ name | translate }}</h4>\n <p class=\"text-muted m-b-8\">\n {{ description | translate }}\n </p>\n </div>\n <div class=\"p-r-0 text-right col-xs-12 col-sm-6\">\n <span\n [ngPlural]=\"deviceCount\"\n *ngIf=\"displayDeviceCount && deviceCount !== undefined && deviceCount !== null\"\n >\n <ng-template ngPluralCase=\"=0\">\n <span\n class=\"label label-default\"\n translate\n >\n No devices selected\n </span>\n </ng-template>\n <ng-template ngPluralCase=\"=1\">\n <span class=\"badge badge-info m-r-4\">1</span>\n <span translate>device selected</span>\n </ng-template>\n <ng-template ngPluralCase=\"other\">\n <span class=\"badge badge-info m-r-4\">{{ deviceCount }}</span>\n <span translate>devices selected</span>\n </ng-template>\n </span>\n </div>\n</div>\n" }]
|
|
32
31
|
}], ctorParameters: () => [{ type: i1.InventoryService }], propDecorators: { name: [{
|
|
33
32
|
type: Input
|
|
34
33
|
}], description: [{
|
|
@@ -42,14 +41,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
42
41
|
*/
|
|
43
42
|
class OperationSummaryModule {
|
|
44
43
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationSummaryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
45
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: OperationSummaryModule,
|
|
46
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationSummaryModule
|
|
44
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: OperationSummaryModule, imports: [OperationSummaryComponent], exports: [OperationSummaryComponent] }); }
|
|
45
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationSummaryModule }); }
|
|
47
46
|
}
|
|
48
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationSummaryModule, decorators: [{
|
|
49
48
|
type: NgModule,
|
|
50
49
|
args: [{
|
|
51
|
-
imports: [
|
|
52
|
-
declarations: [OperationSummaryComponent],
|
|
50
|
+
imports: [OperationSummaryComponent],
|
|
53
51
|
exports: [OperationSummaryComponent]
|
|
54
52
|
}]
|
|
55
53
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-operations-operation-summary.mjs","sources":["../../operations/operation-summary/operation-summary.component.ts","../../operations/operation-summary/operation-summary.component.html","../../operations/operation-summary/operation-summary.module.ts","../../operations/operation-summary/c8y-ngx-components-operations-operation-summary.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { IManagedObject, InventoryService, IResultList } from '@c8y/client';\n\n@Component({\n selector: 'c8y-operation-summary',\n templateUrl: 'operation-summary.component.html',\n
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-operations-operation-summary.mjs","sources":["../../operations/operation-summary/operation-summary.component.ts","../../operations/operation-summary/operation-summary.component.html","../../operations/operation-summary/operation-summary.module.ts","../../operations/operation-summary/c8y-ngx-components-operations-operation-summary.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { IManagedObject, InventoryService, IResultList } from '@c8y/client';\nimport { NgIf, NgPlural, NgPluralCase } from '@angular/common';\nimport { C8yTranslateDirective, C8yTranslatePipe } from '@c8y/ngx-components';\n\n@Component({\n selector: 'c8y-operation-summary',\n templateUrl: 'operation-summary.component.html',\n imports: [NgIf, NgPlural, NgPluralCase, C8yTranslateDirective, C8yTranslatePipe]\n})\nexport class OperationSummaryComponent {\n @Input()\n name: string;\n\n @Input()\n description: string;\n\n @Input()\n set deviceQueryString(query: string) {\n this.displayDeviceCount = true;\n const filters = {\n q: query || '',\n pageSize: 1,\n currentPage: 1,\n withTotalPages: true\n };\n this.inventoryService\n .list(filters)\n .then((result: IResultList<IManagedObject>) => (this.deviceCount = result.paging.totalPages));\n }\n\n deviceCount = 0;\n displayDeviceCount = false;\n\n constructor(private inventoryService: InventoryService) {}\n}\n","<div class=\"d-flex\">\n <div class=\"p-l-0 col-xs-12 col-sm-6\">\n <h4>{{ name | translate }}</h4>\n <p class=\"text-muted m-b-8\">\n {{ description | translate }}\n </p>\n </div>\n <div class=\"p-r-0 text-right col-xs-12 col-sm-6\">\n <span\n [ngPlural]=\"deviceCount\"\n *ngIf=\"displayDeviceCount && deviceCount !== undefined && deviceCount !== null\"\n >\n <ng-template ngPluralCase=\"=0\">\n <span\n class=\"label label-default\"\n translate\n >\n No devices selected\n </span>\n </ng-template>\n <ng-template ngPluralCase=\"=1\">\n <span class=\"badge badge-info m-r-4\">1</span>\n <span translate>device selected</span>\n </ng-template>\n <ng-template ngPluralCase=\"other\">\n <span class=\"badge badge-info m-r-4\">{{ deviceCount }}</span>\n <span translate>devices selected</span>\n </ng-template>\n </span>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { OperationSummaryComponent } from './operation-summary.component';\n\n/**\n * This module provides a component for displaying the summary of given bulk operation.\n */\n@NgModule({\n imports: [OperationSummaryComponent],\n exports: [OperationSummaryComponent]\n})\nexport class OperationSummaryModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAUa,yBAAyB,CAAA;IAOpC,IACI,iBAAiB,CAAC,KAAa,EAAA;AACjC,QAAA,IAAI,CAAC,kBAAkB,GAAG,IAAI;AAC9B,QAAA,MAAM,OAAO,GAAG;YACd,CAAC,EAAE,KAAK,IAAI,EAAE;AACd,YAAA,QAAQ,EAAE,CAAC;AACX,YAAA,WAAW,EAAE,CAAC;AACd,YAAA,cAAc,EAAE;SACjB;AACD,QAAA,IAAI,CAAC;aACF,IAAI,CAAC,OAAO;AACZ,aAAA,IAAI,CAAC,CAAC,MAAmC,MAAM,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;;AAMjG,IAAA,WAAA,CAAoB,gBAAkC,EAAA;QAAlC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB;QAHpC,IAAW,CAAA,WAAA,GAAG,CAAC;QACf,IAAkB,CAAA,kBAAA,GAAG,KAAK;;+GAtBf,yBAAyB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAzB,yBAAyB,EAAA,YAAA,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,yBAAyB,CAAA,EAAA,OAAA,EAAA,CACzB,yBAAyB,CAAA,EAAA,CAAA,CAAA;gHAExB,sBAAsB,EAAA,CAAA,CAAA;;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,yBAAyB,CAAC;oBACpC,OAAO,EAAE,CAAC,yBAAyB;AACpC,iBAAA;;;ACTD;;AAEG;;;;"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, Output, Input, Component, ViewChild, NgModule } from '@angular/core';
|
|
3
|
-
import { TooltipModule } from 'ngx-bootstrap/tooltip';
|
|
4
|
-
import * as i3 from 'ngx-bootstrap/popover';
|
|
5
|
-
import { PopoverModule } from 'ngx-bootstrap/popover';
|
|
6
|
-
import * as i1 from '@c8y/ngx-components';
|
|
7
|
-
import { gettext, CoreModule } from '@c8y/ngx-components';
|
|
8
|
-
import * as i3$1 from '@c8y/ngx-components/operations/bulk-single-operations-list';
|
|
9
|
-
import { BulkSingleOperationsListModule } from '@c8y/ngx-components/operations/bulk-single-operations-list';
|
|
10
|
-
import { StatusFilterModule } from '@c8y/ngx-components/operations/status-filter';
|
|
11
3
|
import { AuditRecordType } from '@c8y/client';
|
|
12
|
-
import
|
|
4
|
+
import { C8yTranslateDirective, IconDirective, C8yTranslatePipe, DatePipe, gettext, AuditLogComponent } from '@c8y/ngx-components';
|
|
5
|
+
import { NgIf, NgPlural, NgPluralCase, JsonPipe, NgFor, NgClass, NgTemplateOutlet } from '@angular/common';
|
|
6
|
+
import { PopoverDirective } from 'ngx-bootstrap/popover';
|
|
7
|
+
import { SingleOperationsListComponent } from '@c8y/ngx-components/operations/bulk-single-operations-list';
|
|
13
8
|
|
|
14
9
|
class OperationListItemDetailsComponent {
|
|
15
10
|
constructor() {
|
|
@@ -22,11 +17,21 @@ class OperationListItemDetailsComponent {
|
|
|
22
17
|
this.bulkOperationModalDetailsService.openDetails(bulkOperationId);
|
|
23
18
|
}
|
|
24
19
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationListItemDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: OperationListItemDetailsComponent, isStandalone:
|
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: OperationListItemDetailsComponent, isStandalone: true, selector: "c8y-operation-li-details", inputs: { operation: "operation", bulkOperationModalDetailsService: "bulkOperationModalDetailsService" }, outputs: { showFailedOperation: "showFailedOperation" }, ngImport: i0, template: "<div class=\"row d-flex-md fit-h\">\n <div class=\"col-md-4 m-b-auto\">\n <div\n class=\"legend form-block\"\n translate\n >\n Details\n </div>\n <ul class=\"list-unstyled small\">\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.startDate\"\n >\n <label\n class=\"small m-0\"\n translate\n >\n Start date\n </label>\n <span class=\"m-l-auto\">{{ operation.startDate | c8yDate }}</span>\n </li>\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.bulkOperationId\"\n >\n <label\n class=\"small m-b-auto\"\n translate\n >\n Bulk operation\n </label>\n <div class=\"m-l-auto text-right text-truncate\">\n <a\n class=\"interact\"\n (click)=\"openBulkOperationDetails(operation.bulkOperationId)\"\n >\n {{ 'See details' | translate }}\n </a>\n </div>\n </li>\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.creationRamp\"\n >\n <label class=\"small m-0\">\n {{ 'Delay' | translate }}\n <button\n class=\"btn-help btn-help--sm\"\n [attr.aria-label]=\"'Help' | translate\"\n popover=\"{{ 'Delay before sending the operation to the next device.' | translate }}\"\n placement=\"right\"\n triggers=\"focus\"\n container=\"body\"\n type=\"button\"\n ></button>\n </label>\n <span\n class=\"m-l-auto\"\n [ngPlural]=\"operation.creationRamp\"\n >\n <ng-template ngPluralCase=\"=1\">\n {{ operation.creationRamp }}\n <span translate>second</span>\n </ng-template>\n <ng-template ngPluralCase=\"other\">\n {{ operation.creationRamp }}\n <span translate>seconds</span>\n </ng-template>\n </span>\n </li>\n <li class=\"p-t-4 p-b-4 d-flex separator-bottom\">\n <label\n class=\"small m-0\"\n translate\n >\n Status\n </label>\n <span class=\"m-l-auto text-uppercase\">\n @if (operation.operationPrototype) {\n {{ operation.generalStatus.toString() | translate }}\n } @else if (operation.status) {\n {{ operation.status?.toString() | translate }}\n }\n </span>\n </li>\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.failureReason\"\n >\n <label\n class=\"small m-0\"\n translate\n >\n Failure reason\n </label>\n <span\n class=\"inner-scroll p-l-16 m-b-0 m-l-auto text-truncate-wrap\"\n title=\"{{ operation.failureReason | translate }}\"\n >\n {{ operation.failureReason | translate }}\n </span>\n </li>\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.result || operation.progress\"\n >\n <label\n class=\"small m-b-auto\"\n translate\n >\n Result\n </label>\n <div\n class=\"d-flex flex-grow m-l-auto j-c-end\"\n *ngIf=\"operation.progress; else singleOpResult\"\n >\n <div\n class=\"icon-flex m-l-auto m-r-8\"\n *ngIf=\"operation.progress.successful > 0\"\n >\n <i\n class=\"text-success m-r-4\"\n c8yIcon=\"check-circle\"\n ></i>\n <span\n ngNonBindable\n translate\n [translateParams]=\"{\n bulkOperationsCountSuccessful: operation.progress.successful\n }\"\n >\n {{ bulkOperationsCountSuccessful }} successful\n </span>\n </div>\n <div\n class=\"icon-flex m-l-auto m-r-8\"\n *ngIf=\"operation.progress.failed > 0\"\n >\n <i\n class=\"text-danger m-r-4\"\n c8yIcon=\"warning\"\n ></i>\n <span\n ngNonBindable\n translate\n [translateParams]=\"{ bulkOperationsCountFailed: operation.progress.failed }\"\n >\n {{ bulkOperationsCountFailed }} failed\n </span>\n </div>\n <div\n class=\"icon-flex m-l-auto m-r-8\"\n *ngIf=\"operation.progress.executing > 0\"\n >\n <i\n class=\"m-r-4 text-info\"\n c8yIcon=\"refresh\"\n ></i>\n <span\n ngNonBindable\n translate\n [translateParams]=\"{ bulkOperationsCountExecuting: operation.progress.executing }\"\n >\n {{ bulkOperationsCountExecuting }} executing\n </span>\n </div>\n <div\n class=\"icon-flex m-l-auto m-r-8\"\n *ngIf=\"operation.progress.pending > 0\"\n >\n <i\n class=\"m-r-4 text-info\"\n c8yIcon=\"clock-o\"\n ></i>\n <span\n ngNonBindable\n translate\n [translateParams]=\"{ bulkOperationsCountPending: operation.progress.pending }\"\n >\n {{ bulkOperationsCountPending }} pending\n </span>\n </div>\n </div>\n <ng-template #singleOpResult>\n <span\n class=\"inner-scroll p-l-16 m-b-0 m-l-auto text-truncate-wrap\"\n title=\"{{ operation.result }}\"\n >\n {{ operation.result }}\n </span>\n </ng-template>\n </li>\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.failedParentId\"\n >\n <label\n class=\"small m-0\"\n translate\n >\n Retried from\n </label>\n <span class=\"m-l-auto\">\n <button\n class=\"btn btn-default btn-xs\"\n title=\"{{ 'Scroll to parent operation.' | translate }}\"\n type=\"button\"\n (click)=\"scrollToRetriedFromOperation(operation.failedParentId)\"\n >\n {{ operation.failedParentId }}\n </button>\n </span>\n </li>\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.note || operation.description\"\n >\n <label\n class=\"small m-b-auto\"\n translate\n >\n Description\n </label>\n <span\n class=\"inner-scroll p-l-16 m-b-0 m-l-auto text-truncate-wrap\"\n title=\"{{ operation.note ? operation.note : (operation.description | translate) }}\"\n >\n {{ operation.note ? operation.note : (operation.description | translate) }}\n </span>\n </li>\n </ul>\n </div>\n <div class=\"col-md-8 fit-h d-flex d-col\">\n <div\n class=\"legend form-block\"\n translate\n >\n Operation\n </div>\n <pre class=\"inner-scroll p-8 m-b-0 text-pre-normal\">\n <code>{{ operation.operationPrototype || operation | json }}</code>\n </pre>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: C8yTranslateDirective, selector: "[translate],[ngx-translate]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: PopoverDirective, selector: "[popover]", inputs: ["adaptivePosition", "boundariesElement", "popover", "popoverContext", "popoverTitle", "placement", "outsideClick", "triggers", "container", "containerClass", "isOpen", "delay"], outputs: ["onShown", "onHidden"], exportAs: ["bs-popover"] }, { kind: "directive", type: NgPlural, selector: "[ngPlural]", inputs: ["ngPlural"] }, { kind: "directive", type: NgPluralCase, selector: "[ngPluralCase]" }, { kind: "directive", type: IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: JsonPipe, name: "json" }, { kind: "pipe", type: DatePipe, name: "c8yDate" }] }); }
|
|
26
21
|
}
|
|
27
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationListItemDetailsComponent, decorators: [{
|
|
28
23
|
type: Component,
|
|
29
|
-
args: [{ selector: 'c8y-operation-li-details',
|
|
24
|
+
args: [{ selector: 'c8y-operation-li-details', imports: [
|
|
25
|
+
C8yTranslateDirective,
|
|
26
|
+
NgIf,
|
|
27
|
+
PopoverDirective,
|
|
28
|
+
NgPlural,
|
|
29
|
+
NgPluralCase,
|
|
30
|
+
IconDirective,
|
|
31
|
+
C8yTranslatePipe,
|
|
32
|
+
JsonPipe,
|
|
33
|
+
DatePipe
|
|
34
|
+
], template: "<div class=\"row d-flex-md fit-h\">\n <div class=\"col-md-4 m-b-auto\">\n <div\n class=\"legend form-block\"\n translate\n >\n Details\n </div>\n <ul class=\"list-unstyled small\">\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.startDate\"\n >\n <label\n class=\"small m-0\"\n translate\n >\n Start date\n </label>\n <span class=\"m-l-auto\">{{ operation.startDate | c8yDate }}</span>\n </li>\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.bulkOperationId\"\n >\n <label\n class=\"small m-b-auto\"\n translate\n >\n Bulk operation\n </label>\n <div class=\"m-l-auto text-right text-truncate\">\n <a\n class=\"interact\"\n (click)=\"openBulkOperationDetails(operation.bulkOperationId)\"\n >\n {{ 'See details' | translate }}\n </a>\n </div>\n </li>\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.creationRamp\"\n >\n <label class=\"small m-0\">\n {{ 'Delay' | translate }}\n <button\n class=\"btn-help btn-help--sm\"\n [attr.aria-label]=\"'Help' | translate\"\n popover=\"{{ 'Delay before sending the operation to the next device.' | translate }}\"\n placement=\"right\"\n triggers=\"focus\"\n container=\"body\"\n type=\"button\"\n ></button>\n </label>\n <span\n class=\"m-l-auto\"\n [ngPlural]=\"operation.creationRamp\"\n >\n <ng-template ngPluralCase=\"=1\">\n {{ operation.creationRamp }}\n <span translate>second</span>\n </ng-template>\n <ng-template ngPluralCase=\"other\">\n {{ operation.creationRamp }}\n <span translate>seconds</span>\n </ng-template>\n </span>\n </li>\n <li class=\"p-t-4 p-b-4 d-flex separator-bottom\">\n <label\n class=\"small m-0\"\n translate\n >\n Status\n </label>\n <span class=\"m-l-auto text-uppercase\">\n @if (operation.operationPrototype) {\n {{ operation.generalStatus.toString() | translate }}\n } @else if (operation.status) {\n {{ operation.status?.toString() | translate }}\n }\n </span>\n </li>\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.failureReason\"\n >\n <label\n class=\"small m-0\"\n translate\n >\n Failure reason\n </label>\n <span\n class=\"inner-scroll p-l-16 m-b-0 m-l-auto text-truncate-wrap\"\n title=\"{{ operation.failureReason | translate }}\"\n >\n {{ operation.failureReason | translate }}\n </span>\n </li>\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.result || operation.progress\"\n >\n <label\n class=\"small m-b-auto\"\n translate\n >\n Result\n </label>\n <div\n class=\"d-flex flex-grow m-l-auto j-c-end\"\n *ngIf=\"operation.progress; else singleOpResult\"\n >\n <div\n class=\"icon-flex m-l-auto m-r-8\"\n *ngIf=\"operation.progress.successful > 0\"\n >\n <i\n class=\"text-success m-r-4\"\n c8yIcon=\"check-circle\"\n ></i>\n <span\n ngNonBindable\n translate\n [translateParams]=\"{\n bulkOperationsCountSuccessful: operation.progress.successful\n }\"\n >\n {{ bulkOperationsCountSuccessful }} successful\n </span>\n </div>\n <div\n class=\"icon-flex m-l-auto m-r-8\"\n *ngIf=\"operation.progress.failed > 0\"\n >\n <i\n class=\"text-danger m-r-4\"\n c8yIcon=\"warning\"\n ></i>\n <span\n ngNonBindable\n translate\n [translateParams]=\"{ bulkOperationsCountFailed: operation.progress.failed }\"\n >\n {{ bulkOperationsCountFailed }} failed\n </span>\n </div>\n <div\n class=\"icon-flex m-l-auto m-r-8\"\n *ngIf=\"operation.progress.executing > 0\"\n >\n <i\n class=\"m-r-4 text-info\"\n c8yIcon=\"refresh\"\n ></i>\n <span\n ngNonBindable\n translate\n [translateParams]=\"{ bulkOperationsCountExecuting: operation.progress.executing }\"\n >\n {{ bulkOperationsCountExecuting }} executing\n </span>\n </div>\n <div\n class=\"icon-flex m-l-auto m-r-8\"\n *ngIf=\"operation.progress.pending > 0\"\n >\n <i\n class=\"m-r-4 text-info\"\n c8yIcon=\"clock-o\"\n ></i>\n <span\n ngNonBindable\n translate\n [translateParams]=\"{ bulkOperationsCountPending: operation.progress.pending }\"\n >\n {{ bulkOperationsCountPending }} pending\n </span>\n </div>\n </div>\n <ng-template #singleOpResult>\n <span\n class=\"inner-scroll p-l-16 m-b-0 m-l-auto text-truncate-wrap\"\n title=\"{{ operation.result }}\"\n >\n {{ operation.result }}\n </span>\n </ng-template>\n </li>\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.failedParentId\"\n >\n <label\n class=\"small m-0\"\n translate\n >\n Retried from\n </label>\n <span class=\"m-l-auto\">\n <button\n class=\"btn btn-default btn-xs\"\n title=\"{{ 'Scroll to parent operation.' | translate }}\"\n type=\"button\"\n (click)=\"scrollToRetriedFromOperation(operation.failedParentId)\"\n >\n {{ operation.failedParentId }}\n </button>\n </span>\n </li>\n <li\n class=\"p-t-4 p-b-4 d-flex separator-bottom\"\n *ngIf=\"operation.note || operation.description\"\n >\n <label\n class=\"small m-b-auto\"\n translate\n >\n Description\n </label>\n <span\n class=\"inner-scroll p-l-16 m-b-0 m-l-auto text-truncate-wrap\"\n title=\"{{ operation.note ? operation.note : (operation.description | translate) }}\"\n >\n {{ operation.note ? operation.note : (operation.description | translate) }}\n </span>\n </li>\n </ul>\n </div>\n <div class=\"col-md-8 fit-h d-flex d-col\">\n <div\n class=\"legend form-block\"\n translate\n >\n Operation\n </div>\n <pre class=\"inner-scroll p-8 m-b-0 text-pre-normal\">\n <code>{{ operation.operationPrototype || operation | json }}</code>\n </pre>\n </div>\n</div>\n" }]
|
|
30
35
|
}], propDecorators: { operation: [{
|
|
31
36
|
type: Input
|
|
32
37
|
}], bulkOperationModalDetailsService: [{
|
|
@@ -61,11 +66,21 @@ class OperationDetailsTabsComponent {
|
|
|
61
66
|
];
|
|
62
67
|
}
|
|
63
68
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
64
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: OperationDetailsTabsComponent, isStandalone:
|
|
69
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: OperationDetailsTabsComponent, isStandalone: true, selector: "c8y-operation-details-tabs", inputs: { operation: "operation", readOnly: "readOnly", bulkOperationModalDetailsService: "bulkOperationModalDetailsService" }, outputs: { onRetryFailedOperations: "onRetryFailedOperations", showFailedOperation: "showFailedOperation" }, viewQueries: [{ propertyName: "detailsTemplate", first: true, predicate: ["details"], descendants: true, static: true }, { propertyName: "auditTemplate", first: true, predicate: ["audit"], descendants: true, static: true }], ngImport: i0, template: "<div\n class=\"tabContainer\"\n #container\n>\n <ul class=\"nav nav-tabs nav-tabsc8y\">\n <li\n [ngClass]=\"{ active: tab.template === template }\"\n *ngFor=\"let tab of tabs\"\n >\n <button\n class=\"btn\"\n [title]=\"tab.label | translate\"\n (click)=\"template = tab.template\"\n >\n <i [c8yIcon]=\"tab.icon\"></i>\n <span class=\"txt\">{{ tab.label | translate }}</span>\n </button>\n </li>\n </ul>\n</div>\n\n<ng-container *ngTemplateOutlet=\"template\"></ng-container>\n\n<ng-template #details>\n <c8y-operation-li-details\n [operation]=\"operation\"\n (showFailedOperation)=\"showFailedOperation.emit($event)\"\n [bulkOperationModalDetailsService]=\"bulkOperationModalDetailsService\"\n ></c8y-operation-li-details>\n</ng-template>\n\n<ng-template #audit>\n <c8y-audit-log\n [source]=\"operation.id\"\n [type]=\"\n !!operation.operationPrototype ? AuditRecordType.BULK_OPERATION : AuditRecordType.OPERATION\n \"\n ></c8y-audit-log>\n</ng-template>\n\n<c8y-single-operations-list\n class=\"d-flex d-col\"\n *ngIf=\"operation.operationPrototype\"\n [bulkOperation]=\"operation\"\n [readOnly]=\"readOnly\"\n (onRetryFailedOperations)=\"onRetryFailedOperations.emit($event)\"\n></c8y-single-operations-list>\n", dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: OperationListItemDetailsComponent, selector: "c8y-operation-li-details", inputs: ["operation", "bulkOperationModalDetailsService"], outputs: ["showFailedOperation"] }, { kind: "component", type: AuditLogComponent, selector: "c8y-audit-log", inputs: ["source", "type"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SingleOperationsListComponent, selector: "c8y-single-operations-list", inputs: ["bulkOperation", "readOnly"], outputs: ["onRetryFailedOperations"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }] }); }
|
|
65
70
|
}
|
|
66
71
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationDetailsTabsComponent, decorators: [{
|
|
67
72
|
type: Component,
|
|
68
|
-
args: [{ selector: 'c8y-operation-details-tabs',
|
|
73
|
+
args: [{ selector: 'c8y-operation-details-tabs', imports: [
|
|
74
|
+
NgFor,
|
|
75
|
+
NgClass,
|
|
76
|
+
IconDirective,
|
|
77
|
+
NgTemplateOutlet,
|
|
78
|
+
OperationListItemDetailsComponent,
|
|
79
|
+
AuditLogComponent,
|
|
80
|
+
NgIf,
|
|
81
|
+
SingleOperationsListComponent,
|
|
82
|
+
C8yTranslatePipe
|
|
83
|
+
], template: "<div\n class=\"tabContainer\"\n #container\n>\n <ul class=\"nav nav-tabs nav-tabsc8y\">\n <li\n [ngClass]=\"{ active: tab.template === template }\"\n *ngFor=\"let tab of tabs\"\n >\n <button\n class=\"btn\"\n [title]=\"tab.label | translate\"\n (click)=\"template = tab.template\"\n >\n <i [c8yIcon]=\"tab.icon\"></i>\n <span class=\"txt\">{{ tab.label | translate }}</span>\n </button>\n </li>\n </ul>\n</div>\n\n<ng-container *ngTemplateOutlet=\"template\"></ng-container>\n\n<ng-template #details>\n <c8y-operation-li-details\n [operation]=\"operation\"\n (showFailedOperation)=\"showFailedOperation.emit($event)\"\n [bulkOperationModalDetailsService]=\"bulkOperationModalDetailsService\"\n ></c8y-operation-li-details>\n</ng-template>\n\n<ng-template #audit>\n <c8y-audit-log\n [source]=\"operation.id\"\n [type]=\"\n !!operation.operationPrototype ? AuditRecordType.BULK_OPERATION : AuditRecordType.OPERATION\n \"\n ></c8y-audit-log>\n</ng-template>\n\n<c8y-single-operations-list\n class=\"d-flex d-col\"\n *ngIf=\"operation.operationPrototype\"\n [bulkOperation]=\"operation\"\n [readOnly]=\"readOnly\"\n (onRetryFailedOperations)=\"onRetryFailedOperations.emit($event)\"\n></c8y-single-operations-list>\n" }]
|
|
69
84
|
}], propDecorators: { operation: [{
|
|
70
85
|
type: Input
|
|
71
86
|
}], readOnly: [{
|
|
@@ -89,28 +104,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
89
104
|
*/
|
|
90
105
|
class OperationsListItemDetailsModule {
|
|
91
106
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationsListItemDetailsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
92
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: OperationsListItemDetailsModule,
|
|
93
|
-
|
|
94
|
-
PopoverModule,
|
|
95
|
-
StatusFilterModule,
|
|
96
|
-
BulkSingleOperationsListModule], exports: [OperationListItemDetailsComponent, OperationDetailsTabsComponent] }); }
|
|
97
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationsListItemDetailsModule, imports: [CoreModule,
|
|
98
|
-
TooltipModule,
|
|
99
|
-
PopoverModule,
|
|
100
|
-
StatusFilterModule,
|
|
101
|
-
BulkSingleOperationsListModule] }); }
|
|
107
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: OperationsListItemDetailsModule, imports: [OperationListItemDetailsComponent, OperationDetailsTabsComponent], exports: [OperationListItemDetailsComponent, OperationDetailsTabsComponent] }); }
|
|
108
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationsListItemDetailsModule, imports: [OperationDetailsTabsComponent] }); }
|
|
102
109
|
}
|
|
103
110
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OperationsListItemDetailsModule, decorators: [{
|
|
104
111
|
type: NgModule,
|
|
105
112
|
args: [{
|
|
106
|
-
imports: [
|
|
107
|
-
CoreModule,
|
|
108
|
-
TooltipModule,
|
|
109
|
-
PopoverModule,
|
|
110
|
-
StatusFilterModule,
|
|
111
|
-
BulkSingleOperationsListModule
|
|
112
|
-
],
|
|
113
|
-
declarations: [OperationListItemDetailsComponent, OperationDetailsTabsComponent],
|
|
113
|
+
imports: [OperationListItemDetailsComponent, OperationDetailsTabsComponent],
|
|
114
114
|
exports: [OperationListItemDetailsComponent, OperationDetailsTabsComponent]
|
|
115
115
|
}]
|
|
116
116
|
}] });
|