@c8y/ngx-components 1021.49.12 → 1021.51.1

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.
Files changed (183) hide show
  1. package/core/aggregation/aggregation.model.d.ts.map +1 -0
  2. package/core/aggregation/aggregation.service.d.ts +44 -0
  3. package/core/aggregation/aggregation.service.d.ts.map +1 -0
  4. package/core/aggregation/index.d.ts +3 -0
  5. package/core/aggregation/index.d.ts.map +1 -0
  6. package/core/common/index.d.ts +0 -2
  7. package/core/common/index.d.ts.map +1 -1
  8. package/core/dashboard/wiget-time-context/aggregation-picker/aggregation-picker.component.d.ts +2 -2
  9. package/core/dashboard/wiget-time-context/aggregation-picker/aggregation-picker.component.d.ts.map +1 -1
  10. package/core/dashboard/wiget-time-context/widget-time-context-icon-bar/widget-time-context-icon-bar.component.d.ts +1 -1
  11. package/core/dashboard/wiget-time-context/widget-time-context-icon-bar/widget-time-context-icon-bar.component.d.ts.map +1 -1
  12. package/core/dashboard/wiget-time-context/widget-time-context.component.d.ts +1 -1
  13. package/core/dashboard/wiget-time-context/widget-time-context.component.d.ts.map +1 -1
  14. package/core/i18n/pattern-messages.data.d.ts +18 -0
  15. package/core/i18n/pattern-messages.data.d.ts.map +1 -1
  16. package/core/index.d.ts +1 -0
  17. package/core/index.d.ts.map +1 -1
  18. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-fetching.service.d.ts +54 -42
  19. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-fetching.service.d.ts.map +1 -1
  20. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.component.d.ts +28 -8
  21. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.component.d.ts.map +1 -1
  22. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.service.d.ts +3 -52
  23. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.service.d.ts.map +1 -1
  24. package/datapoints-export-selector/datapoints-export-selector.model.d.ts +5 -14
  25. package/datapoints-export-selector/datapoints-export-selector.model.d.ts.map +1 -1
  26. package/device-grid/device-grid.component.d.ts.map +1 -1
  27. package/device-grid/device-grid.service.d.ts +2 -0
  28. package/device-grid/device-grid.service.d.ts.map +1 -1
  29. package/esm2022/alarms/alarms-type-filter.component.mjs +3 -3
  30. package/esm2022/core/aggregation/aggregation.model.mjs +46 -0
  31. package/esm2022/core/aggregation/aggregation.service.mjs +76 -0
  32. package/esm2022/core/aggregation/index.mjs +3 -0
  33. package/esm2022/core/common/index.mjs +1 -3
  34. package/esm2022/core/dashboard/wiget-time-context/aggregation-picker/aggregation-picker.component.mjs +2 -2
  35. package/esm2022/core/dashboard/wiget-time-context/widget-time-context-icon-bar/widget-time-context-icon-bar.component.mjs +2 -2
  36. package/esm2022/core/dashboard/wiget-time-context/widget-time-context.component.mjs +4 -4
  37. package/esm2022/core/i18n/pattern-messages.data.mjs +19 -1
  38. package/esm2022/core/index.mjs +2 -1
  39. package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-fetching.service.mjs +166 -164
  40. package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.component.mjs +82 -48
  41. package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.service.mjs +5 -95
  42. package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-exports-selector-data-scope/datapoints-exports-selector-data-scope.component.mjs +3 -3
  43. package/esm2022/datapoints-export-selector/datapoints-export-selector.component.mjs +3 -3
  44. package/esm2022/datapoints-export-selector/datapoints-export-selector.model.mjs +1 -9
  45. package/esm2022/device-grid/device-grid.component.mjs +3 -3
  46. package/esm2022/device-grid/device-grid.service.mjs +16 -1
  47. package/esm2022/device-list/add-smart-group.component.mjs +3 -3
  48. package/esm2022/interval-picker/interval-picker.model.mjs +5 -1
  49. package/esm2022/operations/bulk-operation-list-item/bulk-operation-list-item.service.mjs +5 -4
  50. package/esm2022/operations/operation-details/operation-details.module.mjs +7 -7
  51. package/esm2022/operations/operations-list/device-control.feature.mjs +20 -0
  52. package/esm2022/operations/operations-list/index.mjs +4 -3
  53. package/esm2022/operations/operations-list/operations-list-item.component.mjs +11 -9
  54. package/esm2022/operations/operations-list/operations-list.component.mjs +15 -10
  55. package/esm2022/operations/operations-list/operations-list.module.mjs +16 -41
  56. package/esm2022/operations/operations-list/operations-list.service.mjs +4 -3
  57. package/esm2022/operations/operations.module.mjs +21 -14
  58. package/esm2022/operations/shared/operations.service.mjs +4 -3
  59. package/esm2022/services/index.mjs +14 -3
  60. package/esm2022/services/service-command-tab/c8y-ngx-components-services-service-command-tab.mjs +5 -0
  61. package/esm2022/services/service-command-tab/index.mjs +3 -0
  62. package/esm2022/services/service-command-tab/service-command-tab.component.mjs +33 -0
  63. package/esm2022/services/service-command-tab/service-command.feature.mjs +14 -0
  64. package/esm2022/services/services-device-tab/index.mjs +9 -3
  65. package/esm2022/services/services-device-tab/services-device-tab.component.mjs +3 -4
  66. package/esm2022/services/services-device-tab/services-device-tab.guard.mjs +2 -2
  67. package/esm2022/services/services-device-tab/services.breadcrumb-factory.mjs +13 -1
  68. package/esm2022/services/services.module.mjs +4 -2
  69. package/esm2022/services/shared/c8y-ngx-components-services-shared.mjs +5 -0
  70. package/esm2022/services/shared/index.mjs +3 -0
  71. package/esm2022/services/shared/service-command.service.mjs +118 -0
  72. package/esm2022/services/shared/services.model.mjs +23 -0
  73. package/esm2022/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.component.mjs +25 -41
  74. package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-reload/datapoints-reload.component.mjs +3 -3
  75. package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.component.mjs +55 -49
  76. package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.service.mjs +25 -73
  77. package/esm2022/widgets/implementations/datapoints-table/datapoints-table-widget.model.mjs +20 -20
  78. package/esm2022/widgets/implementations/datapoints-table/datapoints-table.service.mjs +19 -19
  79. package/fesm2022/c8y-ngx-components-alarms.mjs +2 -2
  80. package/fesm2022/c8y-ngx-components-alarms.mjs.map +1 -1
  81. package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs +248 -308
  82. package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs.map +1 -1
  83. package/fesm2022/c8y-ngx-components-device-grid.mjs +17 -2
  84. package/fesm2022/c8y-ngx-components-device-grid.mjs.map +1 -1
  85. package/fesm2022/c8y-ngx-components-device-list.mjs +2 -2
  86. package/fesm2022/c8y-ngx-components-device-list.mjs.map +1 -1
  87. package/fesm2022/c8y-ngx-components-interval-picker.mjs +5 -1
  88. package/fesm2022/c8y-ngx-components-interval-picker.mjs.map +1 -1
  89. package/fesm2022/c8y-ngx-components-operations-bulk-operation-list-item.mjs +3 -2
  90. package/fesm2022/c8y-ngx-components-operations-bulk-operation-list-item.mjs.map +1 -1
  91. package/fesm2022/c8y-ngx-components-operations-operation-details.mjs +5 -5
  92. package/fesm2022/c8y-ngx-components-operations-operation-details.mjs.map +1 -1
  93. package/fesm2022/c8y-ngx-components-operations-operations-list.mjs +57 -52
  94. package/fesm2022/c8y-ngx-components-operations-operations-list.mjs.map +1 -1
  95. package/fesm2022/c8y-ngx-components-operations-shared.mjs +3 -2
  96. package/fesm2022/c8y-ngx-components-operations-shared.mjs.map +1 -1
  97. package/fesm2022/c8y-ngx-components-operations.mjs +42 -35
  98. package/fesm2022/c8y-ngx-components-operations.mjs.map +1 -1
  99. package/fesm2022/c8y-ngx-components-services-service-command-tab.mjs +49 -0
  100. package/fesm2022/c8y-ngx-components-services-service-command-tab.mjs.map +1 -0
  101. package/fesm2022/c8y-ngx-components-services-shared.mjs +145 -0
  102. package/fesm2022/c8y-ngx-components-services-shared.mjs.map +1 -0
  103. package/fesm2022/c8y-ngx-components-services.mjs +20 -113
  104. package/fesm2022/c8y-ngx-components-services.mjs.map +1 -1
  105. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs +1075 -1253
  106. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs.map +1 -1
  107. package/fesm2022/c8y-ngx-components.mjs +136 -76
  108. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  109. package/interval-picker/interval-picker.model.d.ts +6 -0
  110. package/interval-picker/interval-picker.model.d.ts.map +1 -1
  111. package/locales/de.po +52 -41
  112. package/locales/es.po +52 -41
  113. package/locales/fr.po +51 -40
  114. package/locales/ja_JP.po +53 -43
  115. package/locales/ko.po +51 -34
  116. package/locales/locales.pot +42 -31
  117. package/locales/nl.po +52 -41
  118. package/locales/pl.po +52 -40
  119. package/locales/pt_BR.po +51 -40
  120. package/locales/zh_CN.po +50 -33
  121. package/locales/zh_TW.po +50 -33
  122. package/operations/bulk-operation-list-item/bulk-operation-list-item.service.d.ts +2 -2
  123. package/operations/bulk-operation-list-item/bulk-operation-list-item.service.d.ts.map +1 -1
  124. package/operations/operation-details/operation-details.module.d.ts +1 -1
  125. package/operations/operations-list/device-control.feature.d.ts +4 -0
  126. package/operations/operations-list/device-control.feature.d.ts.map +1 -0
  127. package/operations/operations-list/index.d.ts +3 -2
  128. package/operations/operations-list/index.d.ts.map +1 -1
  129. package/operations/operations-list/operations-list-item.component.d.ts +1 -1
  130. package/operations/operations-list/operations-list-item.component.d.ts.map +1 -1
  131. package/operations/operations-list/operations-list.component.d.ts +3 -1
  132. package/operations/operations-list/operations-list.component.d.ts.map +1 -1
  133. package/operations/operations-list/operations-list.module.d.ts +3 -9
  134. package/operations/operations-list/operations-list.module.d.ts.map +1 -1
  135. package/operations/operations.module.d.ts +1 -2
  136. package/operations/operations.module.d.ts.map +1 -1
  137. package/package.json +1 -1
  138. package/services/index.d.ts +13 -2
  139. package/services/index.d.ts.map +1 -1
  140. package/services/service-command-tab/c8y-ngx-components-services-service-command-tab.d.ts.map +1 -0
  141. package/services/service-command-tab/index.d.ts +3 -0
  142. package/services/service-command-tab/index.d.ts.map +1 -0
  143. package/services/service-command-tab/service-command-tab.component.d.ts +12 -0
  144. package/services/service-command-tab/service-command-tab.component.d.ts.map +1 -0
  145. package/services/service-command-tab/service-command.feature.d.ts +3 -0
  146. package/services/service-command-tab/service-command.feature.d.ts.map +1 -0
  147. package/services/services-device-tab/index.d.ts +8 -2
  148. package/services/services-device-tab/index.d.ts.map +1 -1
  149. package/services/services-device-tab/services-device-tab.component.d.ts +2 -2
  150. package/services/services-device-tab/services-device-tab.component.d.ts.map +1 -1
  151. package/services/services-device-tab/services.breadcrumb-factory.d.ts.map +1 -1
  152. package/services/services.module.d.ts.map +1 -1
  153. package/services/shared/c8y-ngx-components-services-shared.d.ts.map +1 -0
  154. package/services/shared/index.d.ts +3 -0
  155. package/services/shared/index.d.ts.map +1 -0
  156. package/services/{services-device-tab → shared}/service-command.service.d.ts +10 -7
  157. package/services/shared/service-command.service.d.ts.map +1 -0
  158. package/services/shared/services.model.d.ts +31 -0
  159. package/services/shared/services.model.d.ts.map +1 -0
  160. package/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.component.d.ts +3 -5
  161. package/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.component.d.ts.map +1 -1
  162. package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.component.d.ts +7 -2
  163. package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.component.d.ts.map +1 -1
  164. package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.service.d.ts +7 -27
  165. package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.service.d.ts.map +1 -1
  166. package/widgets/implementations/datapoints-table/datapoints-table-widget.model.d.ts +4 -3
  167. package/widgets/implementations/datapoints-table/datapoints-table-widget.model.d.ts.map +1 -1
  168. package/widgets/implementations/datapoints-table/datapoints-table.service.d.ts +5 -5
  169. package/widgets/implementations/datapoints-table/datapoints-table.service.d.ts.map +1 -1
  170. package/core/common/aggregation/aggregation.model.d.ts.map +0 -1
  171. package/core/common/aggregation/aggregation.service.d.ts +0 -17
  172. package/core/common/aggregation/aggregation.service.d.ts.map +0 -1
  173. package/esm2022/core/common/aggregation/aggregation.model.mjs +0 -46
  174. package/esm2022/core/common/aggregation/aggregation.service.mjs +0 -34
  175. package/esm2022/services/services-device-tab/service-command.service.mjs +0 -113
  176. package/esm2022/services/services-device-tab/service-device-tab.model.mjs +0 -2
  177. package/esm2022/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.service.mjs +0 -124
  178. package/services/services-device-tab/service-command.service.d.ts.map +0 -1
  179. package/services/services-device-tab/service-device-tab.model.d.ts +0 -11
  180. package/services/services-device-tab/service-device-tab.model.d.ts.map +0 -1
  181. package/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.service.d.ts +0 -56
  182. package/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.service.d.ts.map +0 -1
  183. /package/core/{common/aggregation → aggregation}/aggregation.model.d.ts +0 -0
@@ -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})\nexport class OperationDetailsModalComponent {\n @Input() operation: Partial<IOperation>;\n @Input() collapsed = false;\n @Input() readOnly = false;\n isSmartRulesMicroserviceAvailable = false;\n\n constructor(public modalRef: BsModalRef, private operationsListService: OperationsListService) {}\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})\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';\nimport { OperationsListModule } from '@c8y/ngx-components/operations/operations-list';\n\nimport { OperationDetailsService } from './operation-details.service';\nimport { OperationDetailsComponent } from './operation-details.component';\nimport { OperationDetailsModalComponent } from './operation-details-modal.component';\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, OperationsListModule],\n providers: [OperationDetailsService, BulkOperationListItemService],\n declarations: [OperationDetailsComponent, OperationDetailsModalComponent],\n exports: [OperationDetailsComponent]\n})\nexport class OperationDetailsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3","i1","i2","i1.OperationDetailsService"],"mappings":";;;;;;;;;;;;;;;;MAQa,8BAA8B,CAAA;IAMzC,WAAmB,CAAA,QAAoB,EAAU,qBAA4C,EAAA;QAA1E,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAY;QAAU,IAAqB,CAAA,qBAAA,GAArB,qBAAqB,CAAuB;QAJpF,IAAS,CAAA,SAAA,GA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"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})\nexport class OperationDetailsModalComponent {\n @Input() operation: Partial<IOperation>;\n @Input() collapsed = false;\n @Input() readOnly = false;\n isSmartRulesMicroserviceAvailable = false;\n\n constructor(public modalRef: BsModalRef, private operationsListService: OperationsListService) {}\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})\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 OperationDetailsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3","i1","i2","i1.OperationDetailsService"],"mappings":";;;;;;;;;;;;;;;;MAQa,8BAA8B,CAAA;IAMzC,WAAmB,CAAA,QAAoB,EAAU,qBAA4C,EAAA;QAA1E,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAY;QAAU,IAAqB,CAAA,qBAAA,GAArB,qBAAqB,CAAuB;QAJpF,IAAS,CAAA,SAAA,GAAG,KAAK,CAAC;QAClB,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;QAC1B,IAAiC,CAAA,iCAAA,GAAG,KAAK,CAAC;KAEuD;AAEjG,IAAA,MAAM,QAAQ,GAAA;AACZ,QAAA,IAAI,CAAC,iCAAiC;AACpC,YAAA,MAAM,IAAI,CAAC,qBAAqB,CAAC,iCAAiC,EAAE,CAAC;KACxE;8GAXU,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,EAAA;AAA9B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,8BAA8B,qJCR3C,wwBA6BA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,2BAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,WAAA,EAAA,UAAA,EAAA,gBAAA,EAAA,mCAAA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E,2BAA2B,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAKpF,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,2BAA2B,CAAC;AAChG,oBAAA,SAAS,EAAE,CAAC,uBAAuB,EAAE,4BAA4B,CAAC;AAClE,oBAAA,YAAY,EAAE,CAAC,yBAAyB,EAAE,8BAA8B,CAAC;oBACzE,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACrC,iBAAA,CAAA;;;ACrBD;;AAEG;;;;"}
@@ -1,25 +1,24 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Optional, forwardRef, Component, Input, ViewChild, NgModule } from '@angular/core';
3
- import * as i4 from '@angular/router';
4
- import { RouterModule } from '@angular/router';
5
- import * as i8 from 'ngx-bootstrap/tooltip';
6
- import { TooltipModule } from 'ngx-bootstrap/tooltip';
2
+ import { Injectable, Optional, forwardRef, Component, Input, ViewChild, input, makeEnvironmentProviders, NgModule } from '@angular/core';
7
3
  import * as i1$2 from '@c8y/ngx-components';
8
- import { gettext, PRODUCT_EXPERIENCE_EVENT_SOURCE, OperationRealtimeService, CoreModule, hookRoute, ViewContext } from '@c8y/ngx-components';
4
+ import { gettext, PRODUCT_EXPERIENCE_EVENT_SOURCE, CoreModule, OperationRealtimeService, hookRoute, ViewContext } from '@c8y/ngx-components';
5
+ import * as i4 from '@angular/router';
6
+ import { RouterLink } from '@angular/router';
7
+ import { SINGLE_OPERATION_EVENT_DEVICE_TAB, SINGLE_OPERATION_EVENT_OVERVIEW } from '@c8y/ngx-components/operations/product-experience';
8
+ import * as i2$1 from '@c8y/ngx-components/operations/shared';
9
+ import { OPERATION_STATUS_OPTIONS_MAP } from '@c8y/ngx-components/operations/shared';
9
10
  import * as i5 from '@c8y/ngx-components/operations/status-filter';
10
11
  import { StatusFilterModule } from '@c8y/ngx-components/operations/status-filter';
11
- import * as i7 from '@c8y/ngx-components/operations/operations-list-item-details';
12
- import { OperationsListItemDetailsModule } from '@c8y/ngx-components/operations/operations-list-item-details';
13
- import * as i1$1 from '@c8y/ngx-components/operations/bulk-operation-list-item';
14
- import { BulkOperationListItemService } from '@c8y/ngx-components/operations/bulk-operation-list-item';
15
- import * as i2$1 from '@c8y/ngx-components/operations/shared';
16
- import { OPERATION_STATUS_OPTIONS_MAP, OperationsSharedModule } from '@c8y/ngx-components/operations/shared';
17
- import { SINGLE_OPERATION_EVENT_DEVICE_TAB, SINGLE_OPERATION_EVENT_OVERVIEW } from '@c8y/ngx-components/operations/product-experience';
18
12
  import { flatten } from 'lodash-es';
19
13
  import { BehaviorSubject, combineLatest, pipe } from 'rxjs';
20
14
  import { tap, switchMap, shareReplay, map } from 'rxjs/operators';
21
15
  import * as i1 from '@c8y/client';
22
16
  import { OperationStatus } from '@c8y/client';
17
+ import * as i1$1 from '@c8y/ngx-components/operations/bulk-operation-list-item';
18
+ import * as i8 from '@c8y/ngx-components/operations/operations-list-item-details';
19
+ import { OperationsListItemDetailsModule } from '@c8y/ngx-components/operations/operations-list-item-details';
20
+ import * as i7 from 'ngx-bootstrap/tooltip';
21
+ import { TooltipModule } from 'ngx-bootstrap/tooltip';
23
22
  import * as i2 from '@c8y/ngx-components/upgrade';
24
23
  import * as i4$1 from '@angular/common';
25
24
 
@@ -54,10 +53,11 @@ class OperationsListService {
54
53
  }
55
54
  }
56
55
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsListService, deps: [{ token: i1.OperationService }, { token: i1.SmartRulesService }, { token: i2.Ng1SmartRulesService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
57
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsListService }); }
56
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsListService, providedIn: 'root' }); }
58
57
  }
59
58
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsListService, decorators: [{
60
- type: Injectable
59
+ type: Injectable,
60
+ args: [{ providedIn: 'root' }]
61
61
  }], ctorParameters: () => [{ type: i1.OperationService }, { type: i1.SmartRulesService }, { type: i2.Ng1SmartRulesService, decorators: [{
62
62
  type: Optional
63
63
  }] }] });
@@ -104,16 +104,16 @@ class OperationsListItemComponent {
104
104
  gettext('No command text or description available');
105
105
  }
106
106
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsListItemComponent, deps: [{ token: i1$1.BulkOperationListItemService }, { token: i2$1.OperationsService }, { token: OperationsListService }, { token: i4.ActivatedRoute }, { token: i4.Router }], target: i0.ɵɵFactoryTarget.Component }); }
107
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: OperationsListItemComponent, selector: "c8y-operations-list-item", inputs: { operation: "operation", collapsed: "collapsed", readOnly: "readOnly", noExpandToggle: "noExpandToggle", isSmartRulesMicroserviceAvailable: "isSmartRulesMicroserviceAvailable" }, providers: [
107
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: OperationsListItemComponent, isStandalone: true, selector: "c8y-operations-list-item", inputs: { operation: "operation", collapsed: "collapsed", readOnly: "readOnly", noExpandToggle: "noExpandToggle", isSmartRulesMicroserviceAvailable: "isSmartRulesMicroserviceAvailable" }, providers: [
108
108
  {
109
109
  provide: PRODUCT_EXPERIENCE_EVENT_SOURCE,
110
110
  useExisting: forwardRef(() => OperationsListItemComponent)
111
111
  }
112
- ], viewQueries: [{ propertyName: "listItem", first: true, predicate: ["listItem"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<c8y-li\n class=\"c8y-list__item--double-actions\"\n [ngClass]=\"{ 'c8y-list__item--no-expand': noExpandToggle }\"\n [collapsed]=\"collapsed\"\n #listItem\n id=\"{{ operation.id }}\"\n>\n <c8y-li-icon>\n <button\n class=\"btn-clean\"\n type=\"button\"\n [attr.aria-label]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].label | translate\"\n [tooltip]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].label | translate\"\n placement=\"right\"\n container=\"body\"\n [delay]=\"500\"\n >\n <i\n [c8yIcon]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].icon\"\n [ngClass]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].styleClass\"\n ></i>\n </button>\n </c8y-li-icon>\n <div [ngClass]=\"{ 'content-flex-58': !readOnly, 'content-flex-50': readOnly }\">\n <div class=\"col-5\">\n <span title=\"{{ operationTitle | translate }}\" class=\"text-truncate\">\n {{ operationTitle | translate }}\n </span>\n </div>\n <div class=\"col-3\" *ngIf=\"!deviceId\">\n <a\n title=\"{{ operation.deviceName }}\"\n [routerLink]=\"['/device', operation.deviceId, 'device-info']\"\n routerLinkActive=\"active\"\n class=\"text-truncate\"\n >\n {{ operation.deviceName }}\n </a>\n </div>\n <div class=\"col-3\">\n <small class=\"icon-flex text-muted\">\n <i c8yIcon=\"calendar\" class=\"m-r-4\"></i>\n {{ operation.creationTime | c8yDate }}\n </small>\n </div>\n </div>\n <ng-container *ngIf=\"!readOnly\">\n <c8y-li-action\n label=\"{{ 'Schedule as bulk operation' | translate }}\"\n (click)=\"createCustomizedBulkOperation($event)\"\n icon=\"c8y-icon c8y-icon-energy\"\n c8yProductExperience\n inherit\n ></c8y-li-action>\n <ng-container *c8yIfAllowed=\"inventoryPermissions; allowAny: true\">\n <ng-container *c8yIfAllowed=\"smartRuleAdminPermissions; allowAny: true\">\n <c8y-li-action\n *ngIf=\"isSmartRulesMicroserviceAvailable\"\n label=\"{{ 'Create smart rule' | translate }}\"\n (click)=\"operationsListService.createSmartRule(operation)\"\n icon=\"sliders\"\n c8yProductExperience\n inherit\n ></c8y-li-action>\n </ng-container>\n </ng-container>\n <c8y-li-action\n *ngIf=\"operation.status === OPERATION_STATUS.PENDING\"\n label=\"{{ 'Cancel operation' | translate }}\"\n (click)=\"$event.stopPropagation(); sharedService.cancel(operation)\"\n icon=\"times-circle\"\n c8yProductExperience\n inherit\n ></c8y-li-action>\n </ng-container>\n <c8y-li-collapse class=\"m-b-16\">\n <c8y-operation-details-tabs\n *ngIf=\"!listItem.collapsed\"\n [operation]=\"operation\"\n [bulkOperationModalDetailsService]=\"bulkOperationListItemService\"\n ></c8y-operation-details-tabs>\n </c8y-li-collapse>\n</c8y-li>\n", dependencies: [{ kind: "directive", type: i1$2.IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: i4$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.IfAllowedDirective, selector: "[c8yIfAllowed]", inputs: ["c8yIfAllowed", "c8yIfAllowedAllowAny"] }, { kind: "component", type: i1$2.ListItemComponent, selector: "c8y-list-item, c8y-li", inputs: ["active", "highlighted", "emptyActions", "dense", "collapsed", "selectable"], outputs: ["collapsedChange"] }, { kind: "component", type: i1$2.ListItemIconComponent, selector: "c8y-list-item-icon, c8y-li-icon", inputs: ["icon", "status"] }, { kind: "component", type: i1$2.ListItemActionComponent, selector: "c8y-list-item-action, c8y-li-action", inputs: ["label", "icon", "disabled"], outputs: ["click"] }, { kind: "component", type: i1$2.ListItemCollapseComponent, selector: "c8y-list-item-collapse, c8y-li-collapse", inputs: ["collapseWay"] }, { kind: "directive", type: i1$2.ProductExperienceDirective, selector: "[c8yProductExperience]", inputs: ["actionName", "actionData", "inherit", "suppressDataOverriding"] }, { kind: "component", type: i7.OperationDetailsTabsComponent, selector: "c8y-operation-details-tabs", inputs: ["operation", "readOnly", "bulkOperationModalDetailsService"], outputs: ["onRetryFailedOperations", "showFailedOperation"] }, { kind: "directive", type: i8.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: i4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i4.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "pipe", type: i1$2.C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: i1$2.DatePipe, name: "c8yDate" }] }); }
112
+ ], viewQueries: [{ propertyName: "listItem", first: true, predicate: ["listItem"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<c8y-li\n class=\"c8y-list__item--double-actions\"\n [ngClass]=\"{ 'c8y-list__item--no-expand': noExpandToggle }\"\n [collapsed]=\"collapsed\"\n #listItem\n id=\"{{ operation.id }}\"\n>\n <c8y-li-icon>\n <button\n class=\"btn-clean\"\n type=\"button\"\n [attr.aria-label]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].label | translate\"\n [tooltip]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].label | translate\"\n placement=\"right\"\n container=\"body\"\n [delay]=\"500\"\n >\n <i\n [c8yIcon]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].icon\"\n [ngClass]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].styleClass\"\n ></i>\n </button>\n </c8y-li-icon>\n <div [ngClass]=\"{ 'content-flex-58': !readOnly, 'content-flex-50': readOnly }\">\n <div class=\"col-5\">\n <span title=\"{{ operationTitle | translate }}\" class=\"text-truncate\">\n {{ operationTitle | translate }}\n </span>\n </div>\n <div class=\"col-3\" *ngIf=\"!deviceId\">\n <a\n title=\"{{ operation.deviceName }}\"\n [routerLink]=\"['/device', operation.deviceId, 'device-info']\"\n routerLinkActive=\"active\"\n class=\"text-truncate\"\n >\n {{ operation.deviceName }}\n </a>\n </div>\n <div class=\"col-3\">\n <small class=\"icon-flex text-muted\">\n <i c8yIcon=\"calendar\" class=\"m-r-4\"></i>\n {{ operation.creationTime | c8yDate }}\n </small>\n </div>\n </div>\n <ng-container *ngIf=\"!readOnly\">\n <c8y-li-action\n label=\"{{ 'Schedule as bulk operation' | translate }}\"\n (click)=\"createCustomizedBulkOperation($event)\"\n icon=\"c8y-icon c8y-icon-energy\"\n c8yProductExperience\n inherit\n ></c8y-li-action>\n <ng-container *c8yIfAllowed=\"inventoryPermissions; allowAny: true\">\n <ng-container *c8yIfAllowed=\"smartRuleAdminPermissions; allowAny: true\">\n <c8y-li-action\n *ngIf=\"isSmartRulesMicroserviceAvailable\"\n label=\"{{ 'Create smart rule' | translate }}\"\n (click)=\"operationsListService.createSmartRule(operation)\"\n icon=\"sliders\"\n c8yProductExperience\n inherit\n ></c8y-li-action>\n </ng-container>\n </ng-container>\n <c8y-li-action\n *ngIf=\"operation.status === OPERATION_STATUS.PENDING\"\n label=\"{{ 'Cancel operation' | translate }}\"\n (click)=\"$event.stopPropagation(); sharedService.cancel(operation)\"\n icon=\"times-circle\"\n c8yProductExperience\n inherit\n ></c8y-li-action>\n </ng-container>\n <c8y-li-collapse class=\"m-b-16\">\n <c8y-operation-details-tabs\n *ngIf=\"!listItem.collapsed\"\n [operation]=\"operation\"\n [bulkOperationModalDetailsService]=\"bulkOperationListItemService\"\n ></c8y-operation-details-tabs>\n </c8y-li-collapse>\n</c8y-li>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1$2.IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "pipe", type: i1$2.C8yTranslatePipe, name: "translate" }, { kind: "directive", type: i4$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.IfAllowedDirective, selector: "[c8yIfAllowed]", inputs: ["c8yIfAllowed", "c8yIfAllowedAllowAny"] }, { kind: "pipe", type: i1$2.DatePipe, name: "c8yDate" }, { kind: "component", type: i1$2.ListItemComponent, selector: "c8y-list-item, c8y-li", inputs: ["active", "highlighted", "emptyActions", "dense", "collapsed", "selectable"], outputs: ["collapsedChange"] }, { kind: "component", type: i1$2.ListItemIconComponent, selector: "c8y-list-item-icon, c8y-li-icon", inputs: ["icon", "status"] }, { kind: "component", type: i1$2.ListItemActionComponent, selector: "c8y-list-item-action, c8y-li-action", inputs: ["label", "icon", "disabled"], outputs: ["click"] }, { kind: "component", type: i1$2.ListItemCollapseComponent, selector: "c8y-list-item-collapse, c8y-li-collapse", inputs: ["collapseWay"] }, { kind: "directive", type: i1$2.ProductExperienceDirective, selector: "[c8yProductExperience]", inputs: ["actionName", "actionData", "inherit", "suppressDataOverriding"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i7.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: "ngmodule", type: OperationsListItemDetailsModule }, { kind: "component", type: i8.OperationDetailsTabsComponent, selector: "c8y-operation-details-tabs", inputs: ["operation", "readOnly", "bulkOperationModalDetailsService"], outputs: ["onRetryFailedOperations", "showFailedOperation"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
113
113
  }
114
114
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsListItemComponent, decorators: [{
115
115
  type: Component,
116
- args: [{ selector: 'c8y-operations-list-item', providers: [
116
+ args: [{ selector: 'c8y-operations-list-item', standalone: true, imports: [CoreModule, TooltipModule, OperationsListItemDetailsModule, RouterLink], providers: [
117
117
  {
118
118
  provide: PRODUCT_EXPERIENCE_EVENT_SOURCE,
119
119
  useExisting: forwardRef(() => OperationsListItemComponent)
@@ -139,6 +139,8 @@ class OperationsListComponent {
139
139
  this.realtime = realtime;
140
140
  this.operationsListService = operationsListService;
141
141
  this.route = route;
142
+ this.fragmentType = input();
143
+ this.readOnlyItems = input(false);
142
144
  this.deviceId = this.route.snapshot.parent.data.contextData?.id;
143
145
  this.OPERATION_STATUS_OPTIONS_MAP = OPERATION_STATUS_OPTIONS_MAP;
144
146
  this.refreshLoading = false;
@@ -180,54 +182,68 @@ class OperationsListComponent {
180
182
  return this.getOperations(status);
181
183
  }
182
184
  getOperations(filter) {
183
- const queryFilter = this.deviceId ? { ...filter, deviceId: this.deviceId } : filter;
185
+ let queryFilter = this.deviceId ? { ...filter, deviceId: this.deviceId } : filter;
186
+ if (this.fragmentType()) {
187
+ queryFilter = { ...queryFilter, fragmentType: this.fragmentType() };
188
+ }
184
189
  return this.operationsListService.getOperations(queryFilter);
185
190
  }
186
191
  compareOperations(operationA, operationB) {
187
192
  return (new Date(operationA.creationTime).getTime() - new Date(operationB.creationTime).getTime());
188
193
  }
189
194
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsListComponent, deps: [{ token: i1$2.OperationRealtimeService }, { token: OperationsListService }, { token: i4.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
190
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: OperationsListComponent, selector: "c8y-operations-list", providers: [
195
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.9", type: OperationsListComponent, isStandalone: true, selector: "c8y-operations-list", inputs: { fragmentType: { classPropertyName: "fragmentType", publicName: "fragmentType", isSignal: true, isRequired: false, transformFunction: null }, readOnlyItems: { classPropertyName: "readOnlyItems", publicName: "readOnlyItems", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
191
196
  OperationRealtimeService,
192
197
  {
193
198
  provide: PRODUCT_EXPERIENCE_EVENT_SOURCE,
194
199
  useExisting: forwardRef(() => OperationsListComponent)
195
200
  }
196
- ], viewQueries: [{ propertyName: "statusFilter", first: true, predicate: ["statusFilter"], descendants: true, static: true }], ngImport: i0, template: "<c8y-title>{{ title | translate }}</c8y-title>\n\n<c8y-breadcrumb *ngIf=\"showOverviewBreadcrumbs\">\n <c8y-breadcrumb-item\n [icon]=\"'c8y-overviews'\"\n [label]=\"'Overviews' | translate\"\n ></c8y-breadcrumb-item>\n <c8y-breadcrumb-item\n [icon]=\"'c8y-device-control'\"\n [label]=\"'Device Control' | translate\"\n [path]=\"'devicecontrol/single'\"\n ></c8y-breadcrumb-item>\n <c8y-breadcrumb-item\n [icon]=\"'c8y-device-control'\"\n [label]=\"'Single operations' | translate\"\n ></c8y-breadcrumb-item>\n</c8y-breadcrumb>\n\n<c8y-action-bar-item\n [placement]=\"'left'\"\n itemClass=\"navbar-form\"\n>\n <c8y-status-filter\n #statusFilter\n [options]=\"OPERATION_STATUS_OPTIONS_MAP\"\n (onFilterChanged)=\"statusFilter$.next($event)\"\n c8yProductExperience\n inherit\n ></c8y-status-filter>\n</c8y-action-bar-item>\n\n<c8y-action-bar-item [placement]=\"'right'\">\n <c8y-realtime-btn [service]=\"realtime\"></c8y-realtime-btn>\n</c8y-action-bar-item>\n\n<c8y-action-bar-item [placement]=\"'right'\">\n <button\n class=\"btn btn-link d-flex a-i-center\"\n title=\"{{ 'Reload' | translate }}\"\n (click)=\"reload$.next()\"\n >\n <i\n class=\"m-r-4\"\n c8yIcon=\"refresh\"\n [ngClass]=\"{ 'icon-spin': refreshLoading }\"\n ></i>\n <span class=\"text-truncate\">\n {{ 'Reload' | translate }}\n </span>\n </button>\n</c8y-action-bar-item>\n\n<c8y-help\n src=\"/docs/device-management-application/monitoring-and-controlling-devices/#to-view-single-operations\"\n></c8y-help>\n\n<!-- Empty state -->\n<c8y-ui-empty-state\n [icon]=\"'c8y-energy'\"\n [title]=\"'No items to display.' | translate\"\n [subtitle]=\"'Operations will be displayed here.' | translate\"\n *ngIf=\"(operations$ | async)?.data.length === 0 && !(statusFilter$ | async)\"\n></c8y-ui-empty-state>\n<!-- No results empty state -->\n<c8y-ui-empty-state\n [icon]=\"'search'\"\n [title]=\"'No results to display.' | translate\"\n [subtitle]=\"'Adjust or reset the filter.' | translate\"\n *ngIf=\"(operations$ | async)?.data.length === 0 && (statusFilter$ | async)\"\n>\n <button\n class=\"btn btn-primary\"\n title=\"{{ 'Reset filter' | translate }}\"\n type=\"button\"\n (click)=\"statusFilter.reset()\"\n translate\n >\n Reset filter\n </button>\n</c8y-ui-empty-state>\n\n<!-- Detailed list of operations + load more button -->\n<c8y-list-group class=\"m-b-24\">\n <div\n class=\"page-sticky-header c8y-list__item c8y-list__item--double-actions hidden-xs\"\n *ngIf=\"(operations$ | async)?.data.length\"\n >\n <div class=\"c8y-list__item__block\">\n <div class=\"c8y-list__item__icon\">\n <i class=\"p-l-24\"></i>\n </div>\n <div class=\"c8y-list__item__body text-truncate-wrap\">\n <div class=\"content-flex-57\">\n <div class=\"col-5\">\n {{ 'Operation' | translate }}\n </div>\n <div\n class=\"flex-grow\"\n *ngIf=\"!deviceId\"\n >\n {{ 'Device' | translate }}\n </div>\n <div class=\"col-4\">\n {{ 'Date created' | translate }}\n </div>\n </div>\n </div>\n <div class=\"c8y-list__item__actions\"></div>\n </div>\n </div>\n <div\n class=\"d-contents\"\n *c8yFor=\"\n let op of operations$ | async;\n let i = index;\n realtime: realtime;\n realtimeOptions: { entityOrId: deviceId, removeOnUpdate: true, insertOnUpdate: true };\n comparator: compareOperations.bind(this);\n loadMore: 'auto';\n pipe: operationsFilterPipe\n \"\n >\n <c8y-operations-list-item\n class=\"d-contents\"\n [operation]=\"op\"\n [isSmartRulesMicroserviceAvailable]=\"isSmartRulesMicroserviceAvailable\"\n (reload)=\"reload$.next()\"\n c8yProductExperience\n inherit\n ></c8y-operations-list-item>\n </div>\n</c8y-list-group>\n", dependencies: [{ kind: "component", type: i1$2.ActionBarItemComponent, selector: "c8y-action-bar-item", inputs: ["placement", "priority", "itemClass", "injector", "groupId", "inGroupPriority"] }, { kind: "component", type: i1$2.BreadcrumbComponent, selector: "c8y-breadcrumb" }, { kind: "component", type: i1$2.BreadcrumbItemComponent, selector: "c8y-breadcrumb-item", inputs: ["icon", "translate", "label", "path", "injector"] }, { kind: "component", type: i1$2.EmptyStateComponent, selector: "c8y-ui-empty-state", inputs: ["icon", "title", "subtitle", "horizontal"] }, { kind: "directive", type: i1$2.IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: i1$2.C8yTranslateDirective, selector: "[translate],[ngx-translate]" }, { kind: "directive", type: i4$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.ForOfDirective, selector: "[c8yFor]", inputs: ["c8yForOf", "c8yForLoadMore", "c8yForPipe", "c8yForNotFound", "c8yForMaxIterations", "c8yForLoadingTemplate", "c8yForLoadNextLabel", "c8yForLoadingLabel", "c8yForRealtime", "c8yForRealtimeOptions", "c8yForComparator", "c8yForEnableVirtualScroll", "c8yForVirtualScrollElementSize", "c8yForVirtualScrollStrategy", "c8yForVirtualScrollContainerHeight"], outputs: ["c8yForCount", "c8yForChange", "c8yForLoadMoreComponent"] }, { kind: "component", type: i1$2.TitleComponent, selector: "c8y-title", inputs: ["pageTitleUpdate"] }, { kind: "component", type: i1$2.ListGroupComponent, selector: "c8y-list-group" }, { kind: "directive", type: i1$2.ProductExperienceDirective, selector: "[c8yProductExperience]", inputs: ["actionName", "actionData", "inherit", "suppressDataOverriding"] }, { kind: "component", type: i1$2.HelpComponent, selector: "c8y-help", inputs: ["src", "isCollapsed", "priority", "icon"] }, { kind: "component", type: i1$2.RealtimeButtonComponent, selector: "c8y-realtime-btn", inputs: ["service", "label", "title", "disabled"], outputs: ["onToggle"] }, { kind: "component", type: i5.StatusFilterComponent, selector: "c8y-status-filter", inputs: ["options", "multiple", "small"], outputs: ["onFilterChanged"] }, { kind: "component", type: OperationsListItemComponent, selector: "c8y-operations-list-item", inputs: ["operation", "collapsed", "readOnly", "noExpandToggle", "isSmartRulesMicroserviceAvailable"] }, { kind: "pipe", type: i1$2.C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }] }); }
201
+ ], viewQueries: [{ propertyName: "statusFilter", first: true, predicate: ["statusFilter"], descendants: true, static: true }], ngImport: i0, template: "<c8y-title>{{ title | translate }}</c8y-title>\n\n<c8y-breadcrumb *ngIf=\"showOverviewBreadcrumbs\">\n <c8y-breadcrumb-item\n [icon]=\"'c8y-overviews'\"\n [label]=\"'Overviews' | translate\"\n ></c8y-breadcrumb-item>\n <c8y-breadcrumb-item\n [icon]=\"'c8y-device-control'\"\n [label]=\"'Device Control' | translate\"\n [path]=\"'devicecontrol/single'\"\n ></c8y-breadcrumb-item>\n <c8y-breadcrumb-item\n [icon]=\"'c8y-device-control'\"\n [label]=\"'Single operations' | translate\"\n ></c8y-breadcrumb-item>\n</c8y-breadcrumb>\n\n<c8y-action-bar-item\n [placement]=\"'left'\"\n itemClass=\"navbar-form\"\n>\n <c8y-status-filter\n #statusFilter\n [options]=\"OPERATION_STATUS_OPTIONS_MAP\"\n (onFilterChanged)=\"statusFilter$.next($event)\"\n c8yProductExperience\n inherit\n ></c8y-status-filter>\n</c8y-action-bar-item>\n\n<c8y-action-bar-item [placement]=\"'right'\">\n <c8y-realtime-btn [service]=\"realtime\"></c8y-realtime-btn>\n</c8y-action-bar-item>\n\n<c8y-action-bar-item [placement]=\"'right'\">\n <button\n class=\"btn btn-link d-flex a-i-center\"\n title=\"{{ 'Reload' | translate }}\"\n (click)=\"reload$.next()\"\n >\n <i\n class=\"m-r-4\"\n c8yIcon=\"refresh\"\n [ngClass]=\"{ 'icon-spin': refreshLoading }\"\n ></i>\n <span class=\"text-truncate\">\n {{ 'Reload' | translate }}\n </span>\n </button>\n</c8y-action-bar-item>\n\n<ng-content select=\"c8y-help\">\n <c8y-help\n src=\"/docs/device-management-application/monitoring-and-controlling-devices/#to-view-single-operations\"\n ></c8y-help>\n</ng-content>\n\n<!-- Empty state -->\n<c8y-ui-empty-state\n [icon]=\"'c8y-energy'\"\n [title]=\"'No items to display.' | translate\"\n [subtitle]=\"'Operations will be displayed here.' | translate\"\n *ngIf=\"(operations$ | async)?.data.length === 0 && !(statusFilter$ | async)\"\n></c8y-ui-empty-state>\n<!-- No results empty state -->\n<c8y-ui-empty-state\n [icon]=\"'search'\"\n [title]=\"'No results to display.' | translate\"\n [subtitle]=\"'Adjust or reset the filter.' | translate\"\n *ngIf=\"(operations$ | async)?.data.length === 0 && (statusFilter$ | async)\"\n>\n <button\n class=\"btn btn-primary\"\n title=\"{{ 'Reset filter' | translate }}\"\n type=\"button\"\n (click)=\"statusFilter.reset()\"\n translate\n >\n Reset filter\n </button>\n</c8y-ui-empty-state>\n\n<!-- Detailed list of operations + load more button -->\n<c8y-list-group class=\"m-b-24\">\n <div\n class=\"page-sticky-header c8y-list__item c8y-list__item--double-actions hidden-xs\"\n *ngIf=\"(operations$ | async)?.data.length\"\n >\n <div class=\"c8y-list__item__block\">\n <div class=\"c8y-list__item__icon\">\n <i class=\"p-l-24\"></i>\n </div>\n <div class=\"c8y-list__item__body text-truncate-wrap\">\n <div class=\"content-flex-57\">\n <div class=\"col-5\">\n {{ 'Operation' | translate }}\n </div>\n <div\n class=\"flex-grow\"\n *ngIf=\"!deviceId\"\n >\n {{ 'Device' | translate }}\n </div>\n <div class=\"col-4\">\n {{ 'Date created' | translate }}\n </div>\n </div>\n </div>\n <div class=\"c8y-list__item__actions\"></div>\n </div>\n </div>\n <div\n class=\"d-contents\"\n *c8yFor=\"\n let op of operations$ | async;\n let i = index;\n realtime: realtime;\n realtimeOptions: { entityOrId: deviceId, removeOnUpdate: true, insertOnUpdate: true };\n comparator: compareOperations.bind(this);\n loadMore: 'auto';\n pipe: operationsFilterPipe\n \"\n >\n <c8y-operations-list-item\n class=\"d-contents\"\n [operation]=\"op\"\n [readOnly]=\"readOnlyItems()\"\n [isSmartRulesMicroserviceAvailable]=\"isSmartRulesMicroserviceAvailable\"\n (reload)=\"reload$.next()\"\n c8yProductExperience\n inherit\n ></c8y-operations-list-item>\n </div>\n</c8y-list-group>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "component", type: i1$2.ActionBarItemComponent, selector: "c8y-action-bar-item", inputs: ["placement", "priority", "itemClass", "injector", "groupId", "inGroupPriority"] }, { kind: "component", type: i1$2.BreadcrumbComponent, selector: "c8y-breadcrumb" }, { kind: "component", type: i1$2.BreadcrumbItemComponent, selector: "c8y-breadcrumb-item", inputs: ["icon", "translate", "label", "path", "injector"] }, { kind: "component", type: i1$2.EmptyStateComponent, selector: "c8y-ui-empty-state", inputs: ["icon", "title", "subtitle", "horizontal"] }, { kind: "directive", type: i1$2.IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "pipe", type: i1$2.C8yTranslatePipe, name: "translate" }, { kind: "directive", type: i1$2.C8yTranslateDirective, selector: "[translate],[ngx-translate]" }, { kind: "directive", type: i4$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "directive", type: i1$2.ForOfDirective, selector: "[c8yFor]", inputs: ["c8yForOf", "c8yForLoadMore", "c8yForPipe", "c8yForNotFound", "c8yForMaxIterations", "c8yForLoadingTemplate", "c8yForLoadNextLabel", "c8yForLoadingLabel", "c8yForRealtime", "c8yForRealtimeOptions", "c8yForComparator", "c8yForEnableVirtualScroll", "c8yForVirtualScrollElementSize", "c8yForVirtualScrollStrategy", "c8yForVirtualScrollContainerHeight"], outputs: ["c8yForCount", "c8yForChange", "c8yForLoadMoreComponent"] }, { kind: "component", type: i1$2.TitleComponent, selector: "c8y-title", inputs: ["pageTitleUpdate"] }, { kind: "component", type: i1$2.ListGroupComponent, selector: "c8y-list-group" }, { kind: "directive", type: i1$2.ProductExperienceDirective, selector: "[c8yProductExperience]", inputs: ["actionName", "actionData", "inherit", "suppressDataOverriding"] }, { kind: "component", type: i1$2.HelpComponent, selector: "c8y-help", inputs: ["src", "isCollapsed", "priority", "icon"] }, { kind: "component", type: i1$2.RealtimeButtonComponent, selector: "c8y-realtime-btn", inputs: ["service", "label", "title", "disabled"], outputs: ["onToggle"] }, { kind: "ngmodule", type: StatusFilterModule }, { kind: "component", type: i5.StatusFilterComponent, selector: "c8y-status-filter", inputs: ["options", "multiple", "small"], outputs: ["onFilterChanged"] }, { kind: "component", type: OperationsListItemComponent, selector: "c8y-operations-list-item", inputs: ["operation", "collapsed", "readOnly", "noExpandToggle", "isSmartRulesMicroserviceAvailable"] }] }); }
197
202
  }
198
203
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsListComponent, decorators: [{
199
204
  type: Component,
200
- args: [{ selector: 'c8y-operations-list', providers: [
205
+ args: [{ selector: 'c8y-operations-list', standalone: true, imports: [CoreModule, StatusFilterModule, OperationsListItemComponent], providers: [
201
206
  OperationRealtimeService,
202
207
  {
203
208
  provide: PRODUCT_EXPERIENCE_EVENT_SOURCE,
204
209
  useExisting: forwardRef(() => OperationsListComponent)
205
210
  }
206
- ], template: "<c8y-title>{{ title | translate }}</c8y-title>\n\n<c8y-breadcrumb *ngIf=\"showOverviewBreadcrumbs\">\n <c8y-breadcrumb-item\n [icon]=\"'c8y-overviews'\"\n [label]=\"'Overviews' | translate\"\n ></c8y-breadcrumb-item>\n <c8y-breadcrumb-item\n [icon]=\"'c8y-device-control'\"\n [label]=\"'Device Control' | translate\"\n [path]=\"'devicecontrol/single'\"\n ></c8y-breadcrumb-item>\n <c8y-breadcrumb-item\n [icon]=\"'c8y-device-control'\"\n [label]=\"'Single operations' | translate\"\n ></c8y-breadcrumb-item>\n</c8y-breadcrumb>\n\n<c8y-action-bar-item\n [placement]=\"'left'\"\n itemClass=\"navbar-form\"\n>\n <c8y-status-filter\n #statusFilter\n [options]=\"OPERATION_STATUS_OPTIONS_MAP\"\n (onFilterChanged)=\"statusFilter$.next($event)\"\n c8yProductExperience\n inherit\n ></c8y-status-filter>\n</c8y-action-bar-item>\n\n<c8y-action-bar-item [placement]=\"'right'\">\n <c8y-realtime-btn [service]=\"realtime\"></c8y-realtime-btn>\n</c8y-action-bar-item>\n\n<c8y-action-bar-item [placement]=\"'right'\">\n <button\n class=\"btn btn-link d-flex a-i-center\"\n title=\"{{ 'Reload' | translate }}\"\n (click)=\"reload$.next()\"\n >\n <i\n class=\"m-r-4\"\n c8yIcon=\"refresh\"\n [ngClass]=\"{ 'icon-spin': refreshLoading }\"\n ></i>\n <span class=\"text-truncate\">\n {{ 'Reload' | translate }}\n </span>\n </button>\n</c8y-action-bar-item>\n\n<c8y-help\n src=\"/docs/device-management-application/monitoring-and-controlling-devices/#to-view-single-operations\"\n></c8y-help>\n\n<!-- Empty state -->\n<c8y-ui-empty-state\n [icon]=\"'c8y-energy'\"\n [title]=\"'No items to display.' | translate\"\n [subtitle]=\"'Operations will be displayed here.' | translate\"\n *ngIf=\"(operations$ | async)?.data.length === 0 && !(statusFilter$ | async)\"\n></c8y-ui-empty-state>\n<!-- No results empty state -->\n<c8y-ui-empty-state\n [icon]=\"'search'\"\n [title]=\"'No results to display.' | translate\"\n [subtitle]=\"'Adjust or reset the filter.' | translate\"\n *ngIf=\"(operations$ | async)?.data.length === 0 && (statusFilter$ | async)\"\n>\n <button\n class=\"btn btn-primary\"\n title=\"{{ 'Reset filter' | translate }}\"\n type=\"button\"\n (click)=\"statusFilter.reset()\"\n translate\n >\n Reset filter\n </button>\n</c8y-ui-empty-state>\n\n<!-- Detailed list of operations + load more button -->\n<c8y-list-group class=\"m-b-24\">\n <div\n class=\"page-sticky-header c8y-list__item c8y-list__item--double-actions hidden-xs\"\n *ngIf=\"(operations$ | async)?.data.length\"\n >\n <div class=\"c8y-list__item__block\">\n <div class=\"c8y-list__item__icon\">\n <i class=\"p-l-24\"></i>\n </div>\n <div class=\"c8y-list__item__body text-truncate-wrap\">\n <div class=\"content-flex-57\">\n <div class=\"col-5\">\n {{ 'Operation' | translate }}\n </div>\n <div\n class=\"flex-grow\"\n *ngIf=\"!deviceId\"\n >\n {{ 'Device' | translate }}\n </div>\n <div class=\"col-4\">\n {{ 'Date created' | translate }}\n </div>\n </div>\n </div>\n <div class=\"c8y-list__item__actions\"></div>\n </div>\n </div>\n <div\n class=\"d-contents\"\n *c8yFor=\"\n let op of operations$ | async;\n let i = index;\n realtime: realtime;\n realtimeOptions: { entityOrId: deviceId, removeOnUpdate: true, insertOnUpdate: true };\n comparator: compareOperations.bind(this);\n loadMore: 'auto';\n pipe: operationsFilterPipe\n \"\n >\n <c8y-operations-list-item\n class=\"d-contents\"\n [operation]=\"op\"\n [isSmartRulesMicroserviceAvailable]=\"isSmartRulesMicroserviceAvailable\"\n (reload)=\"reload$.next()\"\n c8yProductExperience\n inherit\n ></c8y-operations-list-item>\n </div>\n</c8y-list-group>\n" }]
211
+ ], template: "<c8y-title>{{ title | translate }}</c8y-title>\n\n<c8y-breadcrumb *ngIf=\"showOverviewBreadcrumbs\">\n <c8y-breadcrumb-item\n [icon]=\"'c8y-overviews'\"\n [label]=\"'Overviews' | translate\"\n ></c8y-breadcrumb-item>\n <c8y-breadcrumb-item\n [icon]=\"'c8y-device-control'\"\n [label]=\"'Device Control' | translate\"\n [path]=\"'devicecontrol/single'\"\n ></c8y-breadcrumb-item>\n <c8y-breadcrumb-item\n [icon]=\"'c8y-device-control'\"\n [label]=\"'Single operations' | translate\"\n ></c8y-breadcrumb-item>\n</c8y-breadcrumb>\n\n<c8y-action-bar-item\n [placement]=\"'left'\"\n itemClass=\"navbar-form\"\n>\n <c8y-status-filter\n #statusFilter\n [options]=\"OPERATION_STATUS_OPTIONS_MAP\"\n (onFilterChanged)=\"statusFilter$.next($event)\"\n c8yProductExperience\n inherit\n ></c8y-status-filter>\n</c8y-action-bar-item>\n\n<c8y-action-bar-item [placement]=\"'right'\">\n <c8y-realtime-btn [service]=\"realtime\"></c8y-realtime-btn>\n</c8y-action-bar-item>\n\n<c8y-action-bar-item [placement]=\"'right'\">\n <button\n class=\"btn btn-link d-flex a-i-center\"\n title=\"{{ 'Reload' | translate }}\"\n (click)=\"reload$.next()\"\n >\n <i\n class=\"m-r-4\"\n c8yIcon=\"refresh\"\n [ngClass]=\"{ 'icon-spin': refreshLoading }\"\n ></i>\n <span class=\"text-truncate\">\n {{ 'Reload' | translate }}\n </span>\n </button>\n</c8y-action-bar-item>\n\n<ng-content select=\"c8y-help\">\n <c8y-help\n src=\"/docs/device-management-application/monitoring-and-controlling-devices/#to-view-single-operations\"\n ></c8y-help>\n</ng-content>\n\n<!-- Empty state -->\n<c8y-ui-empty-state\n [icon]=\"'c8y-energy'\"\n [title]=\"'No items to display.' | translate\"\n [subtitle]=\"'Operations will be displayed here.' | translate\"\n *ngIf=\"(operations$ | async)?.data.length === 0 && !(statusFilter$ | async)\"\n></c8y-ui-empty-state>\n<!-- No results empty state -->\n<c8y-ui-empty-state\n [icon]=\"'search'\"\n [title]=\"'No results to display.' | translate\"\n [subtitle]=\"'Adjust or reset the filter.' | translate\"\n *ngIf=\"(operations$ | async)?.data.length === 0 && (statusFilter$ | async)\"\n>\n <button\n class=\"btn btn-primary\"\n title=\"{{ 'Reset filter' | translate }}\"\n type=\"button\"\n (click)=\"statusFilter.reset()\"\n translate\n >\n Reset filter\n </button>\n</c8y-ui-empty-state>\n\n<!-- Detailed list of operations + load more button -->\n<c8y-list-group class=\"m-b-24\">\n <div\n class=\"page-sticky-header c8y-list__item c8y-list__item--double-actions hidden-xs\"\n *ngIf=\"(operations$ | async)?.data.length\"\n >\n <div class=\"c8y-list__item__block\">\n <div class=\"c8y-list__item__icon\">\n <i class=\"p-l-24\"></i>\n </div>\n <div class=\"c8y-list__item__body text-truncate-wrap\">\n <div class=\"content-flex-57\">\n <div class=\"col-5\">\n {{ 'Operation' | translate }}\n </div>\n <div\n class=\"flex-grow\"\n *ngIf=\"!deviceId\"\n >\n {{ 'Device' | translate }}\n </div>\n <div class=\"col-4\">\n {{ 'Date created' | translate }}\n </div>\n </div>\n </div>\n <div class=\"c8y-list__item__actions\"></div>\n </div>\n </div>\n <div\n class=\"d-contents\"\n *c8yFor=\"\n let op of operations$ | async;\n let i = index;\n realtime: realtime;\n realtimeOptions: { entityOrId: deviceId, removeOnUpdate: true, insertOnUpdate: true };\n comparator: compareOperations.bind(this);\n loadMore: 'auto';\n pipe: operationsFilterPipe\n \"\n >\n <c8y-operations-list-item\n class=\"d-contents\"\n [operation]=\"op\"\n [readOnly]=\"readOnlyItems()\"\n [isSmartRulesMicroserviceAvailable]=\"isSmartRulesMicroserviceAvailable\"\n (reload)=\"reload$.next()\"\n c8yProductExperience\n inherit\n ></c8y-operations-list-item>\n </div>\n</c8y-list-group>\n" }]
207
212
  }], ctorParameters: () => [{ type: i1$2.OperationRealtimeService }, { type: OperationsListService }, { type: i4.ActivatedRoute }], propDecorators: { statusFilter: [{
208
213
  type: ViewChild,
209
214
  args: ['statusFilter', { static: true }]
210
215
  }] } });
211
216
 
212
- const singleOperationListRoutes = [
213
- {
217
+ const deviceControlOverviewFeatureProvider = makeEnvironmentProviders([
218
+ hookRoute({
214
219
  path: 'devicecontrol/single',
215
220
  component: OperationsListComponent
216
- }
217
- ];
221
+ })
222
+ ]);
223
+ const deviceControlTabFeatureProvider = makeEnvironmentProviders([
224
+ hookRoute({
225
+ context: ViewContext.Device,
226
+ path: 'control',
227
+ component: OperationsListComponent,
228
+ label: gettext('Control'),
229
+ icon: 'c8y-icon c8y-icon-device-control',
230
+ priority: 100
231
+ })
232
+ ]);
233
+
218
234
  /**
235
+ * @deprecated Use `OperationsListComponent` and `OperationsListItemComponent` as standalone components.
236
+ *
219
237
  * This module allows for displaying the list item details of single and bulk operations.
220
238
  */
221
239
  class OperationsListModule {
222
240
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
223
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: OperationsListModule, declarations: [OperationsListComponent, OperationsListItemComponent], imports: [CoreModule,
224
- StatusFilterModule,
225
- OperationsListItemDetailsModule,
226
- OperationsSharedModule,
227
- TooltipModule, i4.RouterModule], exports: [OperationsListComponent, OperationsListItemComponent] }); }
241
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: OperationsListModule, imports: [OperationsListComponent, OperationsListItemComponent], exports: [OperationsListComponent, OperationsListItemComponent] }); }
228
242
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsListModule, providers: [
229
- OperationsListService,
230
- BulkOperationListItemService,
243
+ hookRoute({
244
+ path: 'devicecontrol/single',
245
+ component: OperationsListComponent
246
+ }),
231
247
  hookRoute({
232
248
  context: ViewContext.Device,
233
249
  path: 'control',
@@ -236,29 +252,18 @@ class OperationsListModule {
236
252
  icon: 'c8y-icon c8y-icon-device-control',
237
253
  priority: 600
238
254
  })
239
- ], imports: [CoreModule,
240
- StatusFilterModule,
241
- OperationsListItemDetailsModule,
242
- OperationsSharedModule,
243
- TooltipModule,
244
- RouterModule.forChild(singleOperationListRoutes)] }); }
255
+ ], imports: [OperationsListComponent, OperationsListItemComponent] }); }
245
256
  }
246
257
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsListModule, decorators: [{
247
258
  type: NgModule,
248
259
  args: [{
249
- imports: [
250
- CoreModule,
251
- StatusFilterModule,
252
- OperationsListItemDetailsModule,
253
- OperationsSharedModule,
254
- TooltipModule,
255
- RouterModule.forChild(singleOperationListRoutes)
256
- ],
257
- declarations: [OperationsListComponent, OperationsListItemComponent],
260
+ imports: [OperationsListComponent, OperationsListItemComponent],
258
261
  exports: [OperationsListComponent, OperationsListItemComponent],
259
262
  providers: [
260
- OperationsListService,
261
- BulkOperationListItemService,
263
+ hookRoute({
264
+ path: 'devicecontrol/single',
265
+ component: OperationsListComponent
266
+ }),
262
267
  hookRoute({
263
268
  context: ViewContext.Device,
264
269
  path: 'control',
@@ -275,5 +280,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImpor
275
280
  * Generated bundle index. Do not edit.
276
281
  */
277
282
 
278
- export { OperationsListComponent, OperationsListItemComponent, OperationsListModule, OperationsListService, singleOperationListRoutes };
283
+ export { OperationsListComponent, OperationsListItemComponent, OperationsListModule, OperationsListService, deviceControlOverviewFeatureProvider, deviceControlTabFeatureProvider };
279
284
  //# sourceMappingURL=c8y-ngx-components-operations-operations-list.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"c8y-ngx-components-operations-operations-list.mjs","sources":["../../operations/operations-list/operations-list.service.ts","../../operations/operations-list/operations-list-item.component.ts","../../operations/operations-list/operations-list-item.component.html","../../operations/operations-list/operations-list.component.ts","../../operations/operations-list/operations-list.component.html","../../operations/operations-list/operations-list.module.ts","../../operations/operations-list/c8y-ngx-components-operations-operations-list.ts"],"sourcesContent":["import { Injectable, Optional } from '@angular/core';\nimport { IOperation, OperationService, SmartRulesService } from '@c8y/client';\nimport { Ng1SmartRulesService } from '@c8y/ngx-components/upgrade';\n\n@Injectable()\nexport class OperationsListService {\n constructor(\n private operationService: OperationService,\n private smartRulesService: SmartRulesService,\n @Optional() private ng1SmartRulesService: Ng1SmartRulesService\n ) {}\n\n getOperations(customFilter = {}) {\n const filter = {\n withTotalPages: true,\n withDeleted: true,\n pageSize: 50,\n dateFrom: new Date(0).toISOString(),\n revert: true,\n ...customFilter\n };\n\n return this.operationService.list(filter);\n }\n\n isSmartRulesMicroserviceAvailable() {\n return this.smartRulesService.isMicroserviceAvailable();\n }\n\n getSmartRulesCreatePermissions() {\n if (this.ng1SmartRulesService && this.ng1SmartRulesService.permissionsCfgs) {\n return this.ng1SmartRulesService.permissionsCfgs.create;\n }\n }\n\n async createSmartRule(operation: Partial<IOperation>) {\n if (this.ng1SmartRulesService) {\n return await this.ng1SmartRulesService.addNewForOutputOperationWithUI(operation);\n }\n }\n}\n","import { Component, forwardRef, Input, OnInit, SimpleChanges, ViewChild } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { IOperation, OperationStatus } from '@c8y/client';\nimport {\n gettext,\n ListItemComponent,\n ProductExperienceEvent,\n ProductExperienceEventSource,\n PRODUCT_EXPERIENCE_EVENT_SOURCE\n} from '@c8y/ngx-components';\nimport { BulkOperationListItemService } from '@c8y/ngx-components/operations/bulk-operation-list-item';\nimport {\n OperationsService,\n OperationStatusOptionsMapShared,\n OPERATION_STATUS_OPTIONS_MAP\n} from '@c8y/ngx-components/operations/shared';\nimport { OperationsListService } from './operations-list.service';\n\n@Component({\n selector: 'c8y-operations-list-item',\n templateUrl: './operations-list-item.component.html',\n providers: [\n {\n provide: PRODUCT_EXPERIENCE_EVENT_SOURCE,\n useExisting: forwardRef(() => OperationsListItemComponent)\n }\n ]\n})\nexport class OperationsListItemComponent implements OnInit, ProductExperienceEventSource {\n @Input()\n operation: Partial<IOperation>;\n @Input()\n collapsed = true;\n @Input()\n readOnly = false;\n @Input()\n noExpandToggle = false;\n @Input()\n isSmartRulesMicroserviceAvailable: boolean;\n @ViewChild('listItem', { static: true }) listItem: ListItemComponent;\n refreshLoading = false;\n OPERATION_STATUS = OperationStatus;\n OPERATION_STATUS_OPTIONS_MAP: OperationStatusOptionsMapShared = OPERATION_STATUS_OPTIONS_MAP;\n deviceId: string | number =\n this.route.snapshot.parent?.data.contextData?.id ||\n this.route.snapshot.firstChild?.data.contextData?.id;\n inventoryPermissions: string[];\n smartRuleAdminPermissions: string[];\n operationTitle: string;\n productExperienceEvent: ProductExperienceEvent;\n\n constructor(\n public bulkOperationListItemService: BulkOperationListItemService,\n public sharedService: OperationsService,\n public operationsListService: OperationsListService,\n private route: ActivatedRoute,\n private router: Router\n ) {}\n\n ngOnInit() {\n this.updateOperationTitle();\n\n const smartRulesCreatePermissions = this.operationsListService.getSmartRulesCreatePermissions();\n if (smartRulesCreatePermissions) {\n this.inventoryPermissions = smartRulesCreatePermissions[0].anyRole;\n this.smartRuleAdminPermissions = smartRulesCreatePermissions[1].anyRole;\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.operation && changes.operation.currentValue) {\n this.updateOperationTitle();\n }\n }\n\n createCustomizedBulkOperation($event?: Event) {\n if ($event) {\n $event.stopPropagation();\n }\n\n this.router.navigateByUrl(`/devicecontrol/single/create-bulk/${this.operation.id}`);\n }\n\n private updateOperationTitle(): void {\n this.operationTitle =\n this.operation?.c8y_Command?.text ||\n this.operation?.description ||\n gettext('No command text or description available');\n }\n}\n","<c8y-li\n class=\"c8y-list__item--double-actions\"\n [ngClass]=\"{ 'c8y-list__item--no-expand': noExpandToggle }\"\n [collapsed]=\"collapsed\"\n #listItem\n id=\"{{ operation.id }}\"\n>\n <c8y-li-icon>\n <button\n class=\"btn-clean\"\n type=\"button\"\n [attr.aria-label]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].label | translate\"\n [tooltip]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].label | translate\"\n placement=\"right\"\n container=\"body\"\n [delay]=\"500\"\n >\n <i\n [c8yIcon]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].icon\"\n [ngClass]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].styleClass\"\n ></i>\n </button>\n </c8y-li-icon>\n <div [ngClass]=\"{ 'content-flex-58': !readOnly, 'content-flex-50': readOnly }\">\n <div class=\"col-5\">\n <span title=\"{{ operationTitle | translate }}\" class=\"text-truncate\">\n {{ operationTitle | translate }}\n </span>\n </div>\n <div class=\"col-3\" *ngIf=\"!deviceId\">\n <a\n title=\"{{ operation.deviceName }}\"\n [routerLink]=\"['/device', operation.deviceId, 'device-info']\"\n routerLinkActive=\"active\"\n class=\"text-truncate\"\n >\n {{ operation.deviceName }}\n </a>\n </div>\n <div class=\"col-3\">\n <small class=\"icon-flex text-muted\">\n <i c8yIcon=\"calendar\" class=\"m-r-4\"></i>\n {{ operation.creationTime | c8yDate }}\n </small>\n </div>\n </div>\n <ng-container *ngIf=\"!readOnly\">\n <c8y-li-action\n label=\"{{ 'Schedule as bulk operation' | translate }}\"\n (click)=\"createCustomizedBulkOperation($event)\"\n icon=\"c8y-icon c8y-icon-energy\"\n c8yProductExperience\n inherit\n ></c8y-li-action>\n <ng-container *c8yIfAllowed=\"inventoryPermissions; allowAny: true\">\n <ng-container *c8yIfAllowed=\"smartRuleAdminPermissions; allowAny: true\">\n <c8y-li-action\n *ngIf=\"isSmartRulesMicroserviceAvailable\"\n label=\"{{ 'Create smart rule' | translate }}\"\n (click)=\"operationsListService.createSmartRule(operation)\"\n icon=\"sliders\"\n c8yProductExperience\n inherit\n ></c8y-li-action>\n </ng-container>\n </ng-container>\n <c8y-li-action\n *ngIf=\"operation.status === OPERATION_STATUS.PENDING\"\n label=\"{{ 'Cancel operation' | translate }}\"\n (click)=\"$event.stopPropagation(); sharedService.cancel(operation)\"\n icon=\"times-circle\"\n c8yProductExperience\n inherit\n ></c8y-li-action>\n </ng-container>\n <c8y-li-collapse class=\"m-b-16\">\n <c8y-operation-details-tabs\n *ngIf=\"!listItem.collapsed\"\n [operation]=\"operation\"\n [bulkOperationModalDetailsService]=\"bulkOperationListItemService\"\n ></c8y-operation-details-tabs>\n </c8y-li-collapse>\n</c8y-li>\n","import { Component, forwardRef, ViewChild } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { IOperation, IResultList } from '@c8y/client';\nimport {\n gettext,\n OperationRealtimeService,\n ProductExperienceEvent,\n ProductExperienceEventSource,\n PRODUCT_EXPERIENCE_EVENT_SOURCE\n} from '@c8y/ngx-components';\nimport {\n SINGLE_OPERATION_EVENT_DEVICE_TAB,\n SINGLE_OPERATION_EVENT_OVERVIEW\n} from '@c8y/ngx-components/operations/product-experience';\nimport {\n OperationStatusOption,\n OperationStatusOptionsMapShared,\n OPERATION_STATUS_OPTIONS_MAP\n} from '@c8y/ngx-components/operations/shared';\nimport { StatusFilterComponent } from '@c8y/ngx-components/operations/status-filter';\nimport { flatten } from 'lodash-es';\nimport { BehaviorSubject, combineLatest, Observable, pipe } from 'rxjs';\nimport { map, shareReplay, switchMap, tap } from 'rxjs/operators';\nimport { OperationsListService } from './operations-list.service';\n\n@Component({\n selector: 'c8y-operations-list',\n templateUrl: 'operations-list.component.html',\n providers: [\n OperationRealtimeService,\n {\n provide: PRODUCT_EXPERIENCE_EVENT_SOURCE,\n useExisting: forwardRef(() => OperationsListComponent)\n }\n ]\n})\nexport class OperationsListComponent implements ProductExperienceEventSource {\n deviceId: string | number = this.route.snapshot.parent.data.contextData?.id;\n OPERATION_STATUS_OPTIONS_MAP: OperationStatusOptionsMapShared = OPERATION_STATUS_OPTIONS_MAP;\n\n title: string;\n refreshLoading = false;\n isSmartRulesMicroserviceAvailable = false;\n showOverviewBreadcrumbs = false;\n statusFilter$: BehaviorSubject<OperationStatusOption[]> = new BehaviorSubject(null);\n reload$: BehaviorSubject<void> = new BehaviorSubject(null);\n @ViewChild('statusFilter', { static: true }) statusFilter: StatusFilterComponent;\n\n operations$: Observable<IResultList<IOperation>> = combineLatest(\n this.statusFilter$,\n this.reload$\n ).pipe(\n tap(() => {\n this.refreshLoading = true;\n }),\n switchMap(([statusFilters]) => this.filter(statusFilters)),\n tap(() => {\n this.refreshLoading = false;\n }),\n shareReplay(1)\n );\n\n operationsFilterPipe = pipe(\n map((operations: IOperation[]) => {\n const statusFilters = this.statusFilter$.getValue();\n if (!statusFilters || !statusFilters.length) {\n return operations;\n }\n const allowedStatuses = flatten(statusFilters.map(sf => sf.status));\n return operations.filter(op => allowedStatuses.includes(op.status));\n })\n );\n\n productExperienceEvent: ProductExperienceEvent = {\n eventName: !!this.deviceId ? SINGLE_OPERATION_EVENT_DEVICE_TAB : SINGLE_OPERATION_EVENT_OVERVIEW\n };\n\n constructor(\n public realtime: OperationRealtimeService,\n private operationsListService: OperationsListService,\n private route: ActivatedRoute\n ) {\n this.title = this.route.snapshot.parent.data.contextData\n ? this.route.snapshot.parent.data.contextData.name\n : gettext('Single operations');\n this.showOverviewBreadcrumbs = !this.deviceId;\n }\n\n async ngOnInit() {\n this.isSmartRulesMicroserviceAvailable =\n await this.operationsListService.isSmartRulesMicroserviceAvailable();\n }\n\n filter(statusFilters: OperationStatusOption[]) {\n const status =\n statusFilters && statusFilters.length > 0\n ? {\n status: flatten(statusFilters.map(statusFilter => statusFilter.status))\n }\n : {};\n\n return this.getOperations(status);\n }\n\n getOperations(filter?) {\n const queryFilter = this.deviceId ? { ...filter, deviceId: this.deviceId } : filter;\n return this.operationsListService.getOperations(queryFilter);\n }\n\n compareOperations(operationA: IOperation, operationB: IOperation): number {\n return (\n new Date(operationA.creationTime).getTime() - new Date(operationB.creationTime).getTime()\n );\n }\n}\n","<c8y-title>{{ title | translate }}</c8y-title>\n\n<c8y-breadcrumb *ngIf=\"showOverviewBreadcrumbs\">\n <c8y-breadcrumb-item\n [icon]=\"'c8y-overviews'\"\n [label]=\"'Overviews' | translate\"\n ></c8y-breadcrumb-item>\n <c8y-breadcrumb-item\n [icon]=\"'c8y-device-control'\"\n [label]=\"'Device Control' | translate\"\n [path]=\"'devicecontrol/single'\"\n ></c8y-breadcrumb-item>\n <c8y-breadcrumb-item\n [icon]=\"'c8y-device-control'\"\n [label]=\"'Single operations' | translate\"\n ></c8y-breadcrumb-item>\n</c8y-breadcrumb>\n\n<c8y-action-bar-item\n [placement]=\"'left'\"\n itemClass=\"navbar-form\"\n>\n <c8y-status-filter\n #statusFilter\n [options]=\"OPERATION_STATUS_OPTIONS_MAP\"\n (onFilterChanged)=\"statusFilter$.next($event)\"\n c8yProductExperience\n inherit\n ></c8y-status-filter>\n</c8y-action-bar-item>\n\n<c8y-action-bar-item [placement]=\"'right'\">\n <c8y-realtime-btn [service]=\"realtime\"></c8y-realtime-btn>\n</c8y-action-bar-item>\n\n<c8y-action-bar-item [placement]=\"'right'\">\n <button\n class=\"btn btn-link d-flex a-i-center\"\n title=\"{{ 'Reload' | translate }}\"\n (click)=\"reload$.next()\"\n >\n <i\n class=\"m-r-4\"\n c8yIcon=\"refresh\"\n [ngClass]=\"{ 'icon-spin': refreshLoading }\"\n ></i>\n <span class=\"text-truncate\">\n {{ 'Reload' | translate }}\n </span>\n </button>\n</c8y-action-bar-item>\n\n<c8y-help\n src=\"/docs/device-management-application/monitoring-and-controlling-devices/#to-view-single-operations\"\n></c8y-help>\n\n<!-- Empty state -->\n<c8y-ui-empty-state\n [icon]=\"'c8y-energy'\"\n [title]=\"'No items to display.' | translate\"\n [subtitle]=\"'Operations will be displayed here.' | translate\"\n *ngIf=\"(operations$ | async)?.data.length === 0 && !(statusFilter$ | async)\"\n></c8y-ui-empty-state>\n<!-- No results empty state -->\n<c8y-ui-empty-state\n [icon]=\"'search'\"\n [title]=\"'No results to display.' | translate\"\n [subtitle]=\"'Adjust or reset the filter.' | translate\"\n *ngIf=\"(operations$ | async)?.data.length === 0 && (statusFilter$ | async)\"\n>\n <button\n class=\"btn btn-primary\"\n title=\"{{ 'Reset filter' | translate }}\"\n type=\"button\"\n (click)=\"statusFilter.reset()\"\n translate\n >\n Reset filter\n </button>\n</c8y-ui-empty-state>\n\n<!-- Detailed list of operations + load more button -->\n<c8y-list-group class=\"m-b-24\">\n <div\n class=\"page-sticky-header c8y-list__item c8y-list__item--double-actions hidden-xs\"\n *ngIf=\"(operations$ | async)?.data.length\"\n >\n <div class=\"c8y-list__item__block\">\n <div class=\"c8y-list__item__icon\">\n <i class=\"p-l-24\"></i>\n </div>\n <div class=\"c8y-list__item__body text-truncate-wrap\">\n <div class=\"content-flex-57\">\n <div class=\"col-5\">\n {{ 'Operation' | translate }}\n </div>\n <div\n class=\"flex-grow\"\n *ngIf=\"!deviceId\"\n >\n {{ 'Device' | translate }}\n </div>\n <div class=\"col-4\">\n {{ 'Date created' | translate }}\n </div>\n </div>\n </div>\n <div class=\"c8y-list__item__actions\"></div>\n </div>\n </div>\n <div\n class=\"d-contents\"\n *c8yFor=\"\n let op of operations$ | async;\n let i = index;\n realtime: realtime;\n realtimeOptions: { entityOrId: deviceId, removeOnUpdate: true, insertOnUpdate: true };\n comparator: compareOperations.bind(this);\n loadMore: 'auto';\n pipe: operationsFilterPipe\n \"\n >\n <c8y-operations-list-item\n class=\"d-contents\"\n [operation]=\"op\"\n [isSmartRulesMicroserviceAvailable]=\"isSmartRulesMicroserviceAvailable\"\n (reload)=\"reload$.next()\"\n c8yProductExperience\n inherit\n ></c8y-operations-list-item>\n </div>\n</c8y-list-group>\n","import { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { TooltipModule } from 'ngx-bootstrap/tooltip';\nimport { CoreModule, gettext, hookRoute, Route, ViewContext } from '@c8y/ngx-components';\nimport { StatusFilterModule } from '@c8y/ngx-components/operations/status-filter';\nimport { OperationsListItemDetailsModule } from '@c8y/ngx-components/operations/operations-list-item-details';\nimport { BulkOperationListItemService } from '@c8y/ngx-components/operations/bulk-operation-list-item';\nimport { OperationsSharedModule } from '@c8y/ngx-components/operations/shared';\n\nimport { OperationsListComponent } from './operations-list.component';\nimport { OperationsListItemComponent } from './operations-list-item.component';\nimport { OperationsListService } from './operations-list.service';\n\nexport const singleOperationListRoutes: Route[] = [\n {\n path: 'devicecontrol/single',\n component: OperationsListComponent\n }\n];\n\n/**\n * This module allows for displaying the list item details of single and bulk operations.\n */\n@NgModule({\n imports: [\n CoreModule,\n StatusFilterModule,\n OperationsListItemDetailsModule,\n OperationsSharedModule,\n TooltipModule,\n RouterModule.forChild(singleOperationListRoutes)\n ],\n declarations: [OperationsListComponent, OperationsListItemComponent],\n exports: [OperationsListComponent, OperationsListItemComponent],\n providers: [\n OperationsListService,\n BulkOperationListItemService,\n hookRoute({\n context: ViewContext.Device,\n path: 'control',\n component: OperationsListComponent,\n label: gettext('Control'),\n icon: 'c8y-icon c8y-icon-device-control',\n priority: 600\n })\n ]\n})\nexport class OperationsListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i3.OperationsListService","i5","i6","i2.OperationsListService","i3","i4","i6.OperationsListItemComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MAKa,qBAAqB,CAAA;AAChC,IAAA,WAAA,CACU,gBAAkC,EAClC,iBAAoC,EACxB,oBAA0C,EAAA;QAFtD,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;QAClC,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAmB;QACxB,IAAoB,CAAA,oBAAA,GAApB,oBAAoB,CAAsB;KAC5D;IAEJ,aAAa,CAAC,YAAY,GAAG,EAAE,EAAA;AAC7B,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P,UAAU;wBACV,kBAAkB;wBAClB,+BAA+B;wBAC/B,sBAAsB;wBACtB,aAAa;AACb,wBAAA,YAAY,CAAC,QAAQ,CAAC,yBAAyB,CAAC;AACjD,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,uBAAuB,EAAE,2BAA2B,CAAC;AACpE,oBAAA,OAAO,EAAE,CAAC,uBAAuB,EAAE,2BAA2B,CAAC;AAC/D,oBAAA,SAAS,EAAE;wBACT,qBAAqB;wBACrB,4BAA4B;AAC5B,wBAAA,SAAS,CAAC;4BACR,OAAO,EAAE,WAAW,CAAC,MAAM;AAC3B,4BAAA,IAAI,EAAE,SAAS;AACf,4BAAA,SAAS,EAAE,uBAAuB;AAClC,4BAAA,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC;AACzB,4BAAA,IAAI,EAAE,kCAAkC;AACxC,4BAAA,QAAQ,EAAE,GAAG;yBACd,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC9CD;;AAEG;;;;"}
1
+ {"version":3,"file":"c8y-ngx-components-operations-operations-list.mjs","sources":["../../operations/operations-list/operations-list.service.ts","../../operations/operations-list/operations-list-item.component.ts","../../operations/operations-list/operations-list-item.component.html","../../operations/operations-list/operations-list.component.ts","../../operations/operations-list/operations-list.component.html","../../operations/operations-list/device-control.feature.ts","../../operations/operations-list/operations-list.module.ts","../../operations/operations-list/c8y-ngx-components-operations-operations-list.ts"],"sourcesContent":["import { Injectable, Optional } from '@angular/core';\nimport { IOperation, OperationService, SmartRulesService } from '@c8y/client';\nimport { Ng1SmartRulesService } from '@c8y/ngx-components/upgrade';\n\n@Injectable({ providedIn: 'root' })\nexport class OperationsListService {\n constructor(\n private operationService: OperationService,\n private smartRulesService: SmartRulesService,\n @Optional() private ng1SmartRulesService: Ng1SmartRulesService\n ) {}\n\n getOperations(customFilter = {}) {\n const filter = {\n withTotalPages: true,\n withDeleted: true,\n pageSize: 50,\n dateFrom: new Date(0).toISOString(),\n revert: true,\n ...customFilter\n };\n\n return this.operationService.list(filter);\n }\n\n isSmartRulesMicroserviceAvailable() {\n return this.smartRulesService.isMicroserviceAvailable();\n }\n\n getSmartRulesCreatePermissions() {\n if (this.ng1SmartRulesService && this.ng1SmartRulesService.permissionsCfgs) {\n return this.ng1SmartRulesService.permissionsCfgs.create;\n }\n }\n\n async createSmartRule(operation: Partial<IOperation>) {\n if (this.ng1SmartRulesService) {\n return await this.ng1SmartRulesService.addNewForOutputOperationWithUI(operation);\n }\n }\n}\n","import { Component, forwardRef, Input, OnInit, SimpleChanges, ViewChild } from '@angular/core';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\n\nimport { IOperation, OperationStatus } from '@c8y/client';\nimport {\n CoreModule,\n gettext,\n ListItemComponent,\n PRODUCT_EXPERIENCE_EVENT_SOURCE,\n ProductExperienceEvent,\n ProductExperienceEventSource\n} from '@c8y/ngx-components';\nimport { BulkOperationListItemService } from '@c8y/ngx-components/operations/bulk-operation-list-item';\nimport { OperationsListItemDetailsModule } from '@c8y/ngx-components/operations/operations-list-item-details';\nimport {\n OPERATION_STATUS_OPTIONS_MAP,\n OperationsService,\n OperationStatusOptionsMapShared\n} from '@c8y/ngx-components/operations/shared';\nimport { TooltipModule } from 'ngx-bootstrap/tooltip';\nimport { OperationsListService } from './operations-list.service';\n\n@Component({\n selector: 'c8y-operations-list-item',\n standalone: true,\n templateUrl: './operations-list-item.component.html',\n imports: [CoreModule, TooltipModule, OperationsListItemDetailsModule, RouterLink],\n providers: [\n {\n provide: PRODUCT_EXPERIENCE_EVENT_SOURCE,\n useExisting: forwardRef(() => OperationsListItemComponent)\n }\n ]\n})\nexport class OperationsListItemComponent implements OnInit, ProductExperienceEventSource {\n @Input()\n operation: Partial<IOperation>;\n @Input()\n collapsed = true;\n @Input()\n readOnly = false;\n @Input()\n noExpandToggle = false;\n @Input()\n isSmartRulesMicroserviceAvailable: boolean;\n @ViewChild('listItem', { static: true }) listItem: ListItemComponent;\n refreshLoading = false;\n OPERATION_STATUS = OperationStatus;\n OPERATION_STATUS_OPTIONS_MAP: OperationStatusOptionsMapShared = OPERATION_STATUS_OPTIONS_MAP;\n deviceId: string | number =\n this.route.snapshot.parent?.data.contextData?.id ||\n this.route.snapshot.firstChild?.data.contextData?.id;\n inventoryPermissions: string[];\n smartRuleAdminPermissions: string[];\n operationTitle: string;\n productExperienceEvent: ProductExperienceEvent;\n\n constructor(\n public bulkOperationListItemService: BulkOperationListItemService,\n public sharedService: OperationsService,\n public operationsListService: OperationsListService,\n private route: ActivatedRoute,\n private router: Router\n ) {}\n\n ngOnInit() {\n this.updateOperationTitle();\n\n const smartRulesCreatePermissions = this.operationsListService.getSmartRulesCreatePermissions();\n if (smartRulesCreatePermissions) {\n this.inventoryPermissions = smartRulesCreatePermissions[0].anyRole;\n this.smartRuleAdminPermissions = smartRulesCreatePermissions[1].anyRole;\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.operation && changes.operation.currentValue) {\n this.updateOperationTitle();\n }\n }\n\n createCustomizedBulkOperation($event?: Event) {\n if ($event) {\n $event.stopPropagation();\n }\n\n this.router.navigateByUrl(`/devicecontrol/single/create-bulk/${this.operation.id}`);\n }\n\n private updateOperationTitle(): void {\n this.operationTitle =\n this.operation?.c8y_Command?.text ||\n this.operation?.description ||\n gettext('No command text or description available');\n }\n}\n","<c8y-li\n class=\"c8y-list__item--double-actions\"\n [ngClass]=\"{ 'c8y-list__item--no-expand': noExpandToggle }\"\n [collapsed]=\"collapsed\"\n #listItem\n id=\"{{ operation.id }}\"\n>\n <c8y-li-icon>\n <button\n class=\"btn-clean\"\n type=\"button\"\n [attr.aria-label]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].label | translate\"\n [tooltip]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].label | translate\"\n placement=\"right\"\n container=\"body\"\n [delay]=\"500\"\n >\n <i\n [c8yIcon]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].icon\"\n [ngClass]=\"OPERATION_STATUS_OPTIONS_MAP[operation.status].styleClass\"\n ></i>\n </button>\n </c8y-li-icon>\n <div [ngClass]=\"{ 'content-flex-58': !readOnly, 'content-flex-50': readOnly }\">\n <div class=\"col-5\">\n <span title=\"{{ operationTitle | translate }}\" class=\"text-truncate\">\n {{ operationTitle | translate }}\n </span>\n </div>\n <div class=\"col-3\" *ngIf=\"!deviceId\">\n <a\n title=\"{{ operation.deviceName }}\"\n [routerLink]=\"['/device', operation.deviceId, 'device-info']\"\n routerLinkActive=\"active\"\n class=\"text-truncate\"\n >\n {{ operation.deviceName }}\n </a>\n </div>\n <div class=\"col-3\">\n <small class=\"icon-flex text-muted\">\n <i c8yIcon=\"calendar\" class=\"m-r-4\"></i>\n {{ operation.creationTime | c8yDate }}\n </small>\n </div>\n </div>\n <ng-container *ngIf=\"!readOnly\">\n <c8y-li-action\n label=\"{{ 'Schedule as bulk operation' | translate }}\"\n (click)=\"createCustomizedBulkOperation($event)\"\n icon=\"c8y-icon c8y-icon-energy\"\n c8yProductExperience\n inherit\n ></c8y-li-action>\n <ng-container *c8yIfAllowed=\"inventoryPermissions; allowAny: true\">\n <ng-container *c8yIfAllowed=\"smartRuleAdminPermissions; allowAny: true\">\n <c8y-li-action\n *ngIf=\"isSmartRulesMicroserviceAvailable\"\n label=\"{{ 'Create smart rule' | translate }}\"\n (click)=\"operationsListService.createSmartRule(operation)\"\n icon=\"sliders\"\n c8yProductExperience\n inherit\n ></c8y-li-action>\n </ng-container>\n </ng-container>\n <c8y-li-action\n *ngIf=\"operation.status === OPERATION_STATUS.PENDING\"\n label=\"{{ 'Cancel operation' | translate }}\"\n (click)=\"$event.stopPropagation(); sharedService.cancel(operation)\"\n icon=\"times-circle\"\n c8yProductExperience\n inherit\n ></c8y-li-action>\n </ng-container>\n <c8y-li-collapse class=\"m-b-16\">\n <c8y-operation-details-tabs\n *ngIf=\"!listItem.collapsed\"\n [operation]=\"operation\"\n [bulkOperationModalDetailsService]=\"bulkOperationListItemService\"\n ></c8y-operation-details-tabs>\n </c8y-li-collapse>\n</c8y-li>\n","import { Component, forwardRef, input, ViewChild } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { IOperation, IResultList } from '@c8y/client';\nimport {\n CoreModule,\n gettext,\n OperationRealtimeService,\n PRODUCT_EXPERIENCE_EVENT_SOURCE,\n ProductExperienceEvent,\n ProductExperienceEventSource\n} from '@c8y/ngx-components';\nimport {\n SINGLE_OPERATION_EVENT_DEVICE_TAB,\n SINGLE_OPERATION_EVENT_OVERVIEW\n} from '@c8y/ngx-components/operations/product-experience';\nimport {\n OPERATION_STATUS_OPTIONS_MAP,\n OperationStatusOption,\n OperationStatusOptionsMapShared\n} from '@c8y/ngx-components/operations/shared';\nimport {\n StatusFilterComponent,\n StatusFilterModule\n} from '@c8y/ngx-components/operations/status-filter';\nimport { flatten } from 'lodash-es';\nimport { BehaviorSubject, combineLatest, Observable, pipe } from 'rxjs';\nimport { map, shareReplay, switchMap, tap } from 'rxjs/operators';\nimport { OperationsListItemComponent } from './operations-list-item.component';\nimport { OperationsListService } from './operations-list.service';\n\n@Component({\n selector: 'c8y-operations-list',\n standalone: true,\n templateUrl: 'operations-list.component.html',\n imports: [CoreModule, StatusFilterModule, OperationsListItemComponent],\n providers: [\n OperationRealtimeService,\n {\n provide: PRODUCT_EXPERIENCE_EVENT_SOURCE,\n useExisting: forwardRef(() => OperationsListComponent)\n }\n ]\n})\nexport class OperationsListComponent implements ProductExperienceEventSource {\n fragmentType = input<string>();\n readOnlyItems = input(false);\n deviceId: string | number = this.route.snapshot.parent.data.contextData?.id;\n OPERATION_STATUS_OPTIONS_MAP: OperationStatusOptionsMapShared = OPERATION_STATUS_OPTIONS_MAP;\n\n title: string;\n refreshLoading = false;\n isSmartRulesMicroserviceAvailable = false;\n showOverviewBreadcrumbs = false;\n statusFilter$: BehaviorSubject<OperationStatusOption[]> = new BehaviorSubject(null);\n reload$: BehaviorSubject<void> = new BehaviorSubject(null);\n @ViewChild('statusFilter', { static: true }) statusFilter: StatusFilterComponent;\n\n operations$: Observable<IResultList<IOperation>> = combineLatest(\n this.statusFilter$,\n this.reload$\n ).pipe(\n tap(() => {\n this.refreshLoading = true;\n }),\n switchMap(([statusFilters]) => this.filter(statusFilters)),\n tap(() => {\n this.refreshLoading = false;\n }),\n shareReplay(1)\n );\n\n operationsFilterPipe = pipe(\n map((operations: IOperation[]) => {\n const statusFilters = this.statusFilter$.getValue();\n if (!statusFilters || !statusFilters.length) {\n return operations;\n }\n const allowedStatuses = flatten(statusFilters.map(sf => sf.status));\n return operations.filter(op => allowedStatuses.includes(op.status));\n })\n );\n\n productExperienceEvent: ProductExperienceEvent = {\n eventName: !!this.deviceId ? SINGLE_OPERATION_EVENT_DEVICE_TAB : SINGLE_OPERATION_EVENT_OVERVIEW\n };\n\n constructor(\n public realtime: OperationRealtimeService,\n private operationsListService: OperationsListService,\n private route: ActivatedRoute\n ) {\n this.title = this.route.snapshot.parent.data.contextData\n ? this.route.snapshot.parent.data.contextData.name\n : gettext('Single operations');\n this.showOverviewBreadcrumbs = !this.deviceId;\n }\n\n async ngOnInit() {\n this.isSmartRulesMicroserviceAvailable =\n await this.operationsListService.isSmartRulesMicroserviceAvailable();\n }\n\n filter(statusFilters: OperationStatusOption[]) {\n const status =\n statusFilters && statusFilters.length > 0\n ? {\n status: flatten(statusFilters.map(statusFilter => statusFilter.status))\n }\n : {};\n\n return this.getOperations(status);\n }\n\n getOperations(filter?) {\n let queryFilter = this.deviceId ? { ...filter, deviceId: this.deviceId } : filter;\n if (this.fragmentType()) {\n queryFilter = { ...queryFilter, fragmentType: this.fragmentType() };\n }\n return this.operationsListService.getOperations(queryFilter);\n }\n\n compareOperations(operationA: IOperation, operationB: IOperation): number {\n return (\n new Date(operationA.creationTime).getTime() - new Date(operationB.creationTime).getTime()\n );\n }\n}\n","<c8y-title>{{ title | translate }}</c8y-title>\n\n<c8y-breadcrumb *ngIf=\"showOverviewBreadcrumbs\">\n <c8y-breadcrumb-item\n [icon]=\"'c8y-overviews'\"\n [label]=\"'Overviews' | translate\"\n ></c8y-breadcrumb-item>\n <c8y-breadcrumb-item\n [icon]=\"'c8y-device-control'\"\n [label]=\"'Device Control' | translate\"\n [path]=\"'devicecontrol/single'\"\n ></c8y-breadcrumb-item>\n <c8y-breadcrumb-item\n [icon]=\"'c8y-device-control'\"\n [label]=\"'Single operations' | translate\"\n ></c8y-breadcrumb-item>\n</c8y-breadcrumb>\n\n<c8y-action-bar-item\n [placement]=\"'left'\"\n itemClass=\"navbar-form\"\n>\n <c8y-status-filter\n #statusFilter\n [options]=\"OPERATION_STATUS_OPTIONS_MAP\"\n (onFilterChanged)=\"statusFilter$.next($event)\"\n c8yProductExperience\n inherit\n ></c8y-status-filter>\n</c8y-action-bar-item>\n\n<c8y-action-bar-item [placement]=\"'right'\">\n <c8y-realtime-btn [service]=\"realtime\"></c8y-realtime-btn>\n</c8y-action-bar-item>\n\n<c8y-action-bar-item [placement]=\"'right'\">\n <button\n class=\"btn btn-link d-flex a-i-center\"\n title=\"{{ 'Reload' | translate }}\"\n (click)=\"reload$.next()\"\n >\n <i\n class=\"m-r-4\"\n c8yIcon=\"refresh\"\n [ngClass]=\"{ 'icon-spin': refreshLoading }\"\n ></i>\n <span class=\"text-truncate\">\n {{ 'Reload' | translate }}\n </span>\n </button>\n</c8y-action-bar-item>\n\n<ng-content select=\"c8y-help\">\n <c8y-help\n src=\"/docs/device-management-application/monitoring-and-controlling-devices/#to-view-single-operations\"\n ></c8y-help>\n</ng-content>\n\n<!-- Empty state -->\n<c8y-ui-empty-state\n [icon]=\"'c8y-energy'\"\n [title]=\"'No items to display.' | translate\"\n [subtitle]=\"'Operations will be displayed here.' | translate\"\n *ngIf=\"(operations$ | async)?.data.length === 0 && !(statusFilter$ | async)\"\n></c8y-ui-empty-state>\n<!-- No results empty state -->\n<c8y-ui-empty-state\n [icon]=\"'search'\"\n [title]=\"'No results to display.' | translate\"\n [subtitle]=\"'Adjust or reset the filter.' | translate\"\n *ngIf=\"(operations$ | async)?.data.length === 0 && (statusFilter$ | async)\"\n>\n <button\n class=\"btn btn-primary\"\n title=\"{{ 'Reset filter' | translate }}\"\n type=\"button\"\n (click)=\"statusFilter.reset()\"\n translate\n >\n Reset filter\n </button>\n</c8y-ui-empty-state>\n\n<!-- Detailed list of operations + load more button -->\n<c8y-list-group class=\"m-b-24\">\n <div\n class=\"page-sticky-header c8y-list__item c8y-list__item--double-actions hidden-xs\"\n *ngIf=\"(operations$ | async)?.data.length\"\n >\n <div class=\"c8y-list__item__block\">\n <div class=\"c8y-list__item__icon\">\n <i class=\"p-l-24\"></i>\n </div>\n <div class=\"c8y-list__item__body text-truncate-wrap\">\n <div class=\"content-flex-57\">\n <div class=\"col-5\">\n {{ 'Operation' | translate }}\n </div>\n <div\n class=\"flex-grow\"\n *ngIf=\"!deviceId\"\n >\n {{ 'Device' | translate }}\n </div>\n <div class=\"col-4\">\n {{ 'Date created' | translate }}\n </div>\n </div>\n </div>\n <div class=\"c8y-list__item__actions\"></div>\n </div>\n </div>\n <div\n class=\"d-contents\"\n *c8yFor=\"\n let op of operations$ | async;\n let i = index;\n realtime: realtime;\n realtimeOptions: { entityOrId: deviceId, removeOnUpdate: true, insertOnUpdate: true };\n comparator: compareOperations.bind(this);\n loadMore: 'auto';\n pipe: operationsFilterPipe\n \"\n >\n <c8y-operations-list-item\n class=\"d-contents\"\n [operation]=\"op\"\n [readOnly]=\"readOnlyItems()\"\n [isSmartRulesMicroserviceAvailable]=\"isSmartRulesMicroserviceAvailable\"\n (reload)=\"reload$.next()\"\n c8yProductExperience\n inherit\n ></c8y-operations-list-item>\n </div>\n</c8y-list-group>\n","import { EnvironmentProviders, makeEnvironmentProviders } from '@angular/core';\nimport { gettext, hookRoute, ViewContext } from '@c8y/ngx-components';\nimport { OperationsListComponent } from './operations-list.component';\n\nexport const deviceControlOverviewFeatureProvider: EnvironmentProviders = makeEnvironmentProviders([\n hookRoute({\n path: 'devicecontrol/single',\n component: OperationsListComponent\n })\n]);\n\nexport const deviceControlTabFeatureProvider: EnvironmentProviders = makeEnvironmentProviders([\n hookRoute({\n context: ViewContext.Device,\n path: 'control',\n component: OperationsListComponent,\n label: gettext('Control'),\n icon: 'c8y-icon c8y-icon-device-control',\n priority: 100\n })\n]);\n","import { NgModule } from '@angular/core';\nimport { gettext, hookRoute, ViewContext } from '@c8y/ngx-components';\n\nimport { OperationsListItemComponent } from './operations-list-item.component';\nimport { OperationsListComponent } from './operations-list.component';\n\n/**\n * @deprecated Use `OperationsListComponent` and `OperationsListItemComponent` as standalone components.\n *\n * This module allows for displaying the list item details of single and bulk operations.\n */\n@NgModule({\n imports: [OperationsListComponent, OperationsListItemComponent],\n exports: [OperationsListComponent, OperationsListItemComponent],\n providers: [\n hookRoute({\n path: 'devicecontrol/single',\n component: OperationsListComponent\n }),\n hookRoute({\n context: ViewContext.Device,\n path: 'control',\n component: OperationsListComponent,\n label: gettext('Control'),\n icon: 'c8y-icon c8y-icon-device-control',\n priority: 600\n })\n ]\n})\nexport class OperationsListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i3.OperationsListService","i5","i6","i2.OperationsListService","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;MAKa,qBAAqB,CAAA;AAChC,IAAA,WAAA,CACU,gBAAkC,EAClC,iBAAoC,EACxB,oBAA0C,EAAA;QAFtD,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;QAClC,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAmB;QACxB,IAAoB,CAAA,oBAAA,GAApB,oBAAoB,CAAsB;KAC5D;IAEJ,aAAa,CAAC,YAAY,GAAG,EAAE,EAAA;AAC7B,QAAA,MAAM,MAAM,GAAG;AACb,YAAA,cAAc,EAAE,IAAI;AACpB,YAAA,WAAW,EAAE,IAAI;AACjB,YAAA,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EA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AE,sBAAsB;AAC5B,gBAAA,SAAS,EAAE,uBAAuB;aACnC,CAAC;AACF,YAAA,SAAS,CAAC;gBACR,OAAO,EAAE,WAAW,CAAC,MAAM;AAC3B,gBAAA,IAAI,EAAE,SAAS;AACf,gBAAA,SAAS,EAAE,uBAAuB;AAClC,gBAAA,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC;AACzB,gBAAA,IAAI,EAAE,kCAAkC;AACxC,gBAAA,QAAQ,EAAE,GAAG;aACd,CAAC;SACH,EAfS,OAAA,EAAA,CAAA,uBAAuB,EAAE,2BAA2B,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAiBnD,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAlBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,uBAAuB,EAAE,2BAA2B,CAAC;AAC/D,oBAAA,OAAO,EAAE,CAAC,uBAAuB,EAAE,2BAA2B,CAAC;AAC/D,oBAAA,SAAS,EAAE;AACT,wBAAA,SAAS,CAAC;AACR,4BAAA,IAAI,EAAE,sBAAsB;AAC5B,4BAAA,SAAS,EAAE,uBAAuB;yBACnC,CAAC;AACF,wBAAA,SAAS,CAAC;4BACR,OAAO,EAAE,WAAW,CAAC,MAAM;AAC3B,4BAAA,IAAI,EAAE,SAAS;AACf,4BAAA,SAAS,EAAE,uBAAuB;AAClC,4BAAA,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC;AACzB,4BAAA,IAAI,EAAE,kCAAkC;AACxC,4BAAA,QAAQ,EAAE,GAAG;yBACd,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
@@ -80,10 +80,11 @@ class OperationsService {
80
80
  return Object.keys({ ...managedObject }).filter(key => !includes(RESERVED_KEYS, key));
81
81
  }
82
82
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsService, deps: [{ token: i1.OperationService }, { token: i2.ModalService }, { token: i2.AlertService }], target: i0.ɵɵFactoryTarget.Injectable }); }
83
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsService }); }
83
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsService, providedIn: 'root' }); }
84
84
  }
85
85
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OperationsService, decorators: [{
86
- type: Injectable
86
+ type: Injectable,
87
+ args: [{ providedIn: 'root' }]
87
88
  }], ctorParameters: () => [{ type: i1.OperationService }, { type: i2.ModalService }, { type: i2.AlertService }] });
88
89
 
89
90
  class OperationsSharedModule {