@c8y/ngx-components 1023.59.1 → 1023.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/alarm-event-selector/index.d.ts +54 -4
  2. package/alarm-event-selector/index.d.ts.map +1 -1
  3. package/asset-properties/index.d.ts +20 -5
  4. package/asset-properties/index.d.ts.map +1 -1
  5. package/context-dashboard/index.d.ts +31 -3
  6. package/context-dashboard/index.d.ts.map +1 -1
  7. package/datapoint-explorer/devicemanagement/index.d.ts.map +1 -1
  8. package/datapoint-selector/index.d.ts +90 -6
  9. package/datapoint-selector/index.d.ts.map +1 -1
  10. package/fesm2022/c8y-ngx-components-actility-device-registration.mjs +16 -16
  11. package/fesm2022/c8y-ngx-components-advanced-software-management.mjs +7 -7
  12. package/fesm2022/c8y-ngx-components-ai-agent-chat.mjs +9 -9
  13. package/fesm2022/c8y-ngx-components-ai-ai-chat.mjs +12 -12
  14. package/fesm2022/c8y-ngx-components-ai.mjs +3 -3
  15. package/fesm2022/c8y-ngx-components-alarm-event-selector.mjs +202 -44
  16. package/fesm2022/c8y-ngx-components-alarm-event-selector.mjs.map +1 -1
  17. package/fesm2022/c8y-ngx-components-alarms-cockpit.mjs +4 -4
  18. package/fesm2022/c8y-ngx-components-alarms-devicemanagement.mjs +3 -3
  19. package/fesm2022/c8y-ngx-components-alarms.mjs +82 -82
  20. package/fesm2022/c8y-ngx-components-api.mjs +7 -7
  21. package/fesm2022/c8y-ngx-components-app-logs.mjs +10 -10
  22. package/fesm2022/c8y-ngx-components-application-access-list.mjs +12 -12
  23. package/fesm2022/c8y-ngx-components-application-access-user-application-access-user-details-wrapper.mjs +3 -3
  24. package/fesm2022/c8y-ngx-components-asset-properties.mjs +121 -57
  25. package/fesm2022/c8y-ngx-components-asset-properties.mjs.map +1 -1
  26. package/fesm2022/{c8y-ngx-components-asset-property-grid.component-BoVrIpap.mjs → c8y-ngx-components-asset-property-grid.component-D3cPNQyD.mjs} +13 -13
  27. package/fesm2022/{c8y-ngx-components-asset-property-grid.component-BoVrIpap.mjs.map → c8y-ngx-components-asset-property-grid.component-D3cPNQyD.mjs.map} +1 -1
  28. package/fesm2022/c8y-ngx-components-assets-navigator.mjs +32 -32
  29. package/fesm2022/c8y-ngx-components-auth-configuration.mjs +120 -120
  30. package/fesm2022/c8y-ngx-components-binary-file-download.mjs +7 -7
  31. package/fesm2022/c8y-ngx-components-bookmarks.mjs +13 -13
  32. package/fesm2022/c8y-ngx-components-branding-base-branding.mjs +4 -4
  33. package/fesm2022/c8y-ngx-components-branding-dark-theme.mjs +7 -7
  34. package/fesm2022/c8y-ngx-components-branding-extra-css-branding-editor.mjs +7 -7
  35. package/fesm2022/c8y-ngx-components-branding-plain-branding-editor-lazy.mjs +3 -3
  36. package/fesm2022/c8y-ngx-components-branding-plain-branding-editor.mjs +7 -7
  37. package/fesm2022/c8y-ngx-components-branding-shared-data.mjs +15 -15
  38. package/fesm2022/c8y-ngx-components-branding-shared-lazy-add-branding-modal.mjs +6 -6
  39. package/fesm2022/c8y-ngx-components-branding-shared-lazy.mjs +36 -36
  40. package/fesm2022/c8y-ngx-components-branding-shared.mjs +13 -13
  41. package/fesm2022/c8y-ngx-components-child-devices.mjs +13 -13
  42. package/fesm2022/c8y-ngx-components-cockpit-config.mjs +40 -40
  43. package/fesm2022/{c8y-ngx-components-computed-asset-properties-alarm-count-config.component-SA0syLy7.mjs → c8y-ngx-components-computed-asset-properties-alarm-count-config.component-cxDrUoXY.mjs} +4 -4
  44. package/fesm2022/{c8y-ngx-components-computed-asset-properties-alarm-count-config.component-SA0syLy7.mjs.map → c8y-ngx-components-computed-asset-properties-alarm-count-config.component-cxDrUoXY.mjs.map} +1 -1
  45. package/fesm2022/{c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-C5oS4Be-.mjs → c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-BxmSKHiM.mjs} +11 -11
  46. package/fesm2022/{c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-C5oS4Be-.mjs.map → c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-BxmSKHiM.mjs.map} +1 -1
  47. package/fesm2022/{c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-BOmgJI14.mjs → c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-CbLcHjZB.mjs} +4 -4
  48. package/fesm2022/{c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-BOmgJI14.mjs.map → c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-CbLcHjZB.mjs.map} +1 -1
  49. package/fesm2022/{c8y-ngx-components-computed-asset-properties-event-count-config.component-CaTb9cph.mjs → c8y-ngx-components-computed-asset-properties-event-count-config.component-DSWgAtkH.mjs} +4 -4
  50. package/fesm2022/{c8y-ngx-components-computed-asset-properties-event-count-config.component-CaTb9cph.mjs.map → c8y-ngx-components-computed-asset-properties-event-count-config.component-DSWgAtkH.mjs.map} +1 -1
  51. package/fesm2022/{c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-Bg9mbBkF.mjs → c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-CYskL4Lc.mjs} +5 -5
  52. package/fesm2022/{c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-Bg9mbBkF.mjs.map → c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-CYskL4Lc.mjs.map} +1 -1
  53. package/fesm2022/{c8y-ngx-components-computed-asset-properties-last-measurement-config.component-DkrSvf9F.mjs → c8y-ngx-components-computed-asset-properties-last-measurement-config.component-CDFNPo4q.mjs} +5 -4
  54. package/fesm2022/c8y-ngx-components-computed-asset-properties-last-measurement-config.component-CDFNPo4q.mjs.map +1 -0
  55. package/fesm2022/c8y-ngx-components-computed-asset-properties.mjs +1 -1
  56. package/fesm2022/c8y-ngx-components-connectivity.mjs +53 -53
  57. package/fesm2022/c8y-ngx-components-context-dashboard-asset-add.mjs +10 -10
  58. package/fesm2022/c8y-ngx-components-context-dashboard-asset-view.mjs +7 -7
  59. package/fesm2022/c8y-ngx-components-context-dashboard-cockpit-home-dashboard.mjs +11 -11
  60. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-appearance-settings.component-BovfVT29.mjs → c8y-ngx-components-context-dashboard-dashboard-appearance-settings.component-CfvHiXsE.mjs} +4 -4
  61. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-appearance-settings.component-BovfVT29.mjs.map → c8y-ngx-components-context-dashboard-dashboard-appearance-settings.component-CfvHiXsE.mjs.map} +1 -1
  62. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-general-settings.component-CC5346kW.mjs → c8y-ngx-components-context-dashboard-dashboard-general-settings.component-DUbxiMZh.mjs} +10 -10
  63. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-general-settings.component-CC5346kW.mjs.map → c8y-ngx-components-context-dashboard-dashboard-general-settings.component-DUbxiMZh.mjs.map} +1 -1
  64. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-version-history.component-CHuc--XM.mjs → c8y-ngx-components-context-dashboard-dashboard-version-history.component-Byk0CoOG.mjs} +4 -4
  65. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-version-history.component-CHuc--XM.mjs.map → c8y-ngx-components-context-dashboard-dashboard-version-history.component-Byk0CoOG.mjs.map} +1 -1
  66. package/fesm2022/c8y-ngx-components-context-dashboard-device-add.mjs +10 -10
  67. package/fesm2022/c8y-ngx-components-context-dashboard-device-view.mjs +7 -7
  68. package/fesm2022/c8y-ngx-components-context-dashboard-devicemanagement.mjs +3 -3
  69. package/fesm2022/c8y-ngx-components-context-dashboard-state.mjs +3 -3
  70. package/fesm2022/c8y-ngx-components-context-dashboard.mjs +143 -107
  71. package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  72. package/fesm2022/{c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-DvKsV_Fs.mjs → c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-CGnlj1KZ.mjs} +16 -16
  73. package/fesm2022/{c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-DvKsV_Fs.mjs.map → c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-CGnlj1KZ.mjs.map} +1 -1
  74. package/fesm2022/c8y-ngx-components-dashboard-details-advanced-tab.mjs +12 -12
  75. package/fesm2022/c8y-ngx-components-dashboard-manager-devicemanagement.mjs +6 -6
  76. package/fesm2022/c8y-ngx-components-dashboard-manager.mjs +22 -22
  77. package/fesm2022/c8y-ngx-components-data-broker.mjs +7 -7
  78. package/fesm2022/c8y-ngx-components-data-grid-columns-asset-type.mjs +3 -3
  79. package/fesm2022/c8y-ngx-components-data-grid-columns.mjs +3 -3
  80. package/fesm2022/c8y-ngx-components-datapoint-explorer-devicemanagement.mjs +1 -1
  81. package/fesm2022/c8y-ngx-components-datapoint-explorer-devicemanagement.mjs.map +1 -1
  82. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +25 -25
  83. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
  84. package/fesm2022/c8y-ngx-components-datapoint-explorer.mjs +13 -13
  85. package/fesm2022/c8y-ngx-components-datapoint-library-details.mjs +3 -3
  86. package/fesm2022/c8y-ngx-components-datapoint-library-list.mjs +3 -3
  87. package/fesm2022/c8y-ngx-components-datapoint-library-services.mjs +3 -3
  88. package/fesm2022/c8y-ngx-components-datapoint-library.mjs +4 -4
  89. package/fesm2022/c8y-ngx-components-datapoint-selector.mjs +234 -67
  90. package/fesm2022/c8y-ngx-components-datapoint-selector.mjs.map +1 -1
  91. package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs +33 -33
  92. package/fesm2022/c8y-ngx-components-default-subscriptions.mjs +16 -16
  93. package/fesm2022/c8y-ngx-components-device-enrolment-modal.mjs +9 -9
  94. package/fesm2022/c8y-ngx-components-device-enrolment.mjs +6 -6
  95. package/fesm2022/c8y-ngx-components-device-grid.mjs +43 -43
  96. package/fesm2022/c8y-ngx-components-device-list.mjs +22 -22
  97. package/fesm2022/c8y-ngx-components-device-map.mjs +12 -12
  98. package/fesm2022/c8y-ngx-components-device-profile.mjs +34 -34
  99. package/fesm2022/c8y-ngx-components-device-protocol-object-mappings.mjs +3 -3
  100. package/fesm2022/c8y-ngx-components-device-protocols.mjs +16 -16
  101. package/fesm2022/c8y-ngx-components-device-provisioned-certificates.mjs +13 -13
  102. package/fesm2022/c8y-ngx-components-device-shell.mjs +31 -31
  103. package/fesm2022/c8y-ngx-components-diagnostics.mjs +13 -13
  104. package/fesm2022/c8y-ngx-components-echart.mjs +30 -30
  105. package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs +43 -43
  106. package/fesm2022/c8y-ngx-components-ecosystem-archived-confirm.mjs +7 -7
  107. package/fesm2022/c8y-ngx-components-ecosystem-license-confirm.mjs +10 -10
  108. package/fesm2022/c8y-ngx-components-ecosystem-plugin-setup-stepper.mjs +7 -7
  109. package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs +46 -46
  110. package/fesm2022/c8y-ngx-components-ecosystem.mjs +82 -82
  111. package/fesm2022/c8y-ngx-components-editor.mjs +6 -6
  112. package/fesm2022/c8y-ngx-components-events-events-timeline.mjs +3 -3
  113. package/fesm2022/c8y-ngx-components-events.mjs +3 -3
  114. package/fesm2022/c8y-ngx-components-exports-list.mjs +6 -6
  115. package/fesm2022/c8y-ngx-components-feature-toggles-list.mjs +6 -6
  116. package/fesm2022/c8y-ngx-components-file-preview.mjs +7 -7
  117. package/fesm2022/c8y-ngx-components-files-repository.mjs +19 -19
  118. package/fesm2022/c8y-ngx-components-global-context.mjs +130 -130
  119. package/fesm2022/c8y-ngx-components-group-breadcrumbs.mjs +6 -6
  120. package/fesm2022/c8y-ngx-components-icon-selector.mjs +19 -19
  121. package/fesm2022/c8y-ngx-components-interval-picker.mjs +3 -3
  122. package/fesm2022/c8y-ngx-components-location.mjs +28 -28
  123. package/fesm2022/c8y-ngx-components-loriot-device-registration.mjs +16 -16
  124. package/fesm2022/c8y-ngx-components-map.mjs +19 -19
  125. package/fesm2022/c8y-ngx-components-messaging-management.mjs +55 -55
  126. package/fesm2022/c8y-ngx-components-operations-bulk-operation-from-single.mjs +7 -7
  127. package/fesm2022/c8y-ngx-components-operations-bulk-operation-list-item.mjs +19 -19
  128. package/fesm2022/c8y-ngx-components-operations-bulk-operation-scheduler.mjs +7 -7
  129. package/fesm2022/c8y-ngx-components-operations-bulk-operation-stepper.mjs +13 -13
  130. package/fesm2022/c8y-ngx-components-operations-bulk-operations-list.mjs +13 -13
  131. package/fesm2022/c8y-ngx-components-operations-bulk-operations-service.mjs +7 -7
  132. package/fesm2022/c8y-ngx-components-operations-bulk-operations-stepper-container.mjs +7 -7
  133. package/fesm2022/c8y-ngx-components-operations-bulk-single-operations-list.mjs +3 -3
  134. package/fesm2022/c8y-ngx-components-operations-create-bulk-operation-details.mjs +7 -7
  135. package/fesm2022/c8y-ngx-components-operations-device-selector.mjs +7 -7
  136. package/fesm2022/c8y-ngx-components-operations-grid-columns.mjs +12 -12
  137. package/fesm2022/c8y-ngx-components-operations-operation-details.mjs +13 -13
  138. package/fesm2022/c8y-ngx-components-operations-operation-summary.mjs +7 -7
  139. package/fesm2022/c8y-ngx-components-operations-operations-list-item-details.mjs +10 -10
  140. package/fesm2022/c8y-ngx-components-operations-operations-list.mjs +12 -12
  141. package/fesm2022/c8y-ngx-components-operations-operations-timeline.mjs +7 -7
  142. package/fesm2022/c8y-ngx-components-operations-shared.mjs +10 -10
  143. package/fesm2022/c8y-ngx-components-operations-status-filter.mjs +7 -7
  144. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-configuration.mjs +7 -7
  145. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-device-profile.mjs +13 -13
  146. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-firmware.mjs +13 -13
  147. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs +13 -13
  148. package/fesm2022/c8y-ngx-components-operations-stepper-frames.mjs +13 -13
  149. package/fesm2022/c8y-ngx-components-operations.mjs +7 -7
  150. package/fesm2022/c8y-ngx-components-pending-mo-request.mjs +7 -7
  151. package/fesm2022/c8y-ngx-components-platform-configuration.mjs +10 -10
  152. package/fesm2022/c8y-ngx-components-protocol-lpwan.mjs +38 -38
  153. package/fesm2022/c8y-ngx-components-protocol-opcua.mjs +58 -58
  154. package/fesm2022/c8y-ngx-components-register-device.mjs +58 -58
  155. package/fesm2022/c8y-ngx-components-remote-access-configurations.mjs +9 -9
  156. package/fesm2022/c8y-ngx-components-remote-access-data.mjs +3 -3
  157. package/fesm2022/c8y-ngx-components-remote-access-passthrough.mjs +3 -3
  158. package/fesm2022/c8y-ngx-components-remote-access-shared.mjs +6 -6
  159. package/fesm2022/c8y-ngx-components-remote-access-ssh-remote-access-ssh-endpoint-modal.mjs +3 -3
  160. package/fesm2022/c8y-ngx-components-remote-access-ssh.mjs +3 -3
  161. package/fesm2022/c8y-ngx-components-remote-access-telnet.mjs +3 -3
  162. package/fesm2022/c8y-ngx-components-remote-access-terminal-viewer.mjs +3 -3
  163. package/fesm2022/c8y-ngx-components-remote-access-vnc-remote-access-vnc-endpoint-modal.mjs +3 -3
  164. package/fesm2022/c8y-ngx-components-remote-access-vnc-vnc-viewer.mjs +6 -6
  165. package/fesm2022/c8y-ngx-components-remote-access-vnc.mjs +3 -3
  166. package/fesm2022/c8y-ngx-components-replace-device-replace-device-wizard.mjs +6 -6
  167. package/fesm2022/c8y-ngx-components-replace-device.mjs +10 -10
  168. package/fesm2022/c8y-ngx-components-report-dashboard.mjs +16 -16
  169. package/fesm2022/c8y-ngx-components-reports.mjs +19 -19
  170. package/fesm2022/c8y-ngx-components-repository-configuration.mjs +48 -48
  171. package/fesm2022/c8y-ngx-components-repository-firmware.mjs +33 -33
  172. package/fesm2022/c8y-ngx-components-repository-shared.mjs +34 -34
  173. package/fesm2022/c8y-ngx-components-repository-software.mjs +42 -42
  174. package/fesm2022/c8y-ngx-components-repository.mjs +4 -4
  175. package/fesm2022/c8y-ngx-components-search.mjs +19 -19
  176. package/fesm2022/c8y-ngx-components-sensor-phone-sensor-phone-modal.mjs +6 -6
  177. package/fesm2022/c8y-ngx-components-sensor-phone.mjs +7 -7
  178. package/fesm2022/c8y-ngx-components-services-service-command-tab.mjs +3 -3
  179. package/fesm2022/c8y-ngx-components-services-shared.mjs +3 -3
  180. package/fesm2022/c8y-ngx-components-services.mjs +29 -29
  181. package/fesm2022/c8y-ngx-components-sigfox-device-registration.mjs +16 -16
  182. package/fesm2022/c8y-ngx-components-sms-gateway.mjs +7 -7
  183. package/fesm2022/c8y-ngx-components-static-assets-data.mjs +3 -3
  184. package/fesm2022/c8y-ngx-components-static-assets-modal.mjs +9 -9
  185. package/fesm2022/c8y-ngx-components-static-assets.mjs +6 -6
  186. package/fesm2022/c8y-ngx-components-sub-assets.mjs +60 -60
  187. package/fesm2022/c8y-ngx-components-tenants.mjs +40 -40
  188. package/fesm2022/c8y-ngx-components-time-context.mjs +6 -6
  189. package/fesm2022/c8y-ngx-components-tracking.mjs +12 -12
  190. package/fesm2022/c8y-ngx-components-translation-editor-data.mjs +3 -3
  191. package/fesm2022/c8y-ngx-components-translation-editor-lazy.mjs +12 -12
  192. package/fesm2022/c8y-ngx-components-translation-editor.mjs +6 -6
  193. package/fesm2022/c8y-ngx-components-trusted-certificates.mjs +33 -33
  194. package/fesm2022/c8y-ngx-components-upgrade-upgraded-services.mjs +4 -4
  195. package/fesm2022/c8y-ngx-components-upgrade.mjs +41 -41
  196. package/fesm2022/c8y-ngx-components-user-roles.mjs +10 -10
  197. package/fesm2022/c8y-ngx-components-widgets-definitions-asset-table.mjs +6 -6
  198. package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-graph.mjs +39 -3
  199. package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-graph.mjs.map +1 -1
  200. package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-table.mjs +19 -0
  201. package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-table.mjs.map +1 -1
  202. package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget-ai-config.mjs +3 -3
  203. package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget.mjs +6 -6
  204. package/fesm2022/c8y-ngx-components-widgets-definitions-info-gauge.mjs +95 -1
  205. package/fesm2022/c8y-ngx-components-widgets-definitions-info-gauge.mjs.map +1 -1
  206. package/fesm2022/c8y-ngx-components-widgets-definitions-kpi.mjs +21 -1
  207. package/fesm2022/c8y-ngx-components-widgets-definitions-kpi.mjs.map +1 -1
  208. package/fesm2022/c8y-ngx-components-widgets-definitions-linear-gauge.mjs +23 -1
  209. package/fesm2022/c8y-ngx-components-widgets-definitions-linear-gauge.mjs.map +1 -1
  210. package/fesm2022/c8y-ngx-components-widgets-definitions-pie-chart.mjs +15 -1
  211. package/fesm2022/c8y-ngx-components-widgets-definitions-pie-chart.mjs.map +1 -1
  212. package/fesm2022/c8y-ngx-components-widgets-definitions-radial-gauge.mjs +24 -1
  213. package/fesm2022/c8y-ngx-components-widgets-definitions-radial-gauge.mjs.map +1 -1
  214. package/fesm2022/c8y-ngx-components-widgets-definitions-silo.mjs +23 -1
  215. package/fesm2022/c8y-ngx-components-widgets-definitions-silo.mjs.map +1 -1
  216. package/fesm2022/c8y-ngx-components-widgets-implementations-alarms.mjs +19 -19
  217. package/fesm2022/c8y-ngx-components-widgets-implementations-asset-notes.mjs +3 -3
  218. package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs +39 -39
  219. package/fesm2022/c8y-ngx-components-widgets-implementations-cockpit-legacy-welcome.mjs +3 -3
  220. package/fesm2022/c8y-ngx-components-widgets-implementations-cockpit-welcome.mjs +3 -3
  221. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +31 -75
  222. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
  223. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs +74 -113
  224. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs.map +1 -1
  225. package/fesm2022/c8y-ngx-components-widgets-implementations-device-control-message.mjs +3 -3
  226. package/fesm2022/c8y-ngx-components-widgets-implementations-device-management-welcome.mjs +10 -10
  227. package/fesm2022/c8y-ngx-components-widgets-implementations-help-and-service-widget.mjs +3 -3
  228. package/fesm2022/c8y-ngx-components-widgets-implementations-html-widget.mjs +24 -24
  229. package/fesm2022/c8y-ngx-components-widgets-implementations-image.mjs +13 -14
  230. package/fesm2022/c8y-ngx-components-widgets-implementations-image.mjs.map +1 -1
  231. package/fesm2022/c8y-ngx-components-widgets-implementations-info-gauge.mjs +36 -59
  232. package/fesm2022/c8y-ngx-components-widgets-implementations-info-gauge.mjs.map +1 -1
  233. package/fesm2022/c8y-ngx-components-widgets-implementations-kpi.mjs +14 -10
  234. package/fesm2022/c8y-ngx-components-widgets-implementations-kpi.mjs.map +1 -1
  235. package/fesm2022/c8y-ngx-components-widgets-implementations-linear-gauge.mjs +15 -11
  236. package/fesm2022/c8y-ngx-components-widgets-implementations-linear-gauge.mjs.map +1 -1
  237. package/fesm2022/c8y-ngx-components-widgets-implementations-map.mjs +10 -10
  238. package/fesm2022/c8y-ngx-components-widgets-implementations-map.mjs.map +1 -1
  239. package/fesm2022/c8y-ngx-components-widgets-implementations-markdown.mjs +9 -9
  240. package/fesm2022/c8y-ngx-components-widgets-implementations-pie-chart.mjs +12 -46
  241. package/fesm2022/c8y-ngx-components-widgets-implementations-pie-chart.mjs.map +1 -1
  242. package/fesm2022/c8y-ngx-components-widgets-implementations-quick-links.mjs +28 -25
  243. package/fesm2022/c8y-ngx-components-widgets-implementations-quick-links.mjs.map +1 -1
  244. package/fesm2022/c8y-ngx-components-widgets-implementations-three-d-rotation.mjs +9 -9
  245. package/fesm2022/c8y-ngx-components.mjs +1386 -1386
  246. package/locales/de.po +20 -0
  247. package/locales/es.po +20 -0
  248. package/locales/fr.po +20 -0
  249. package/locales/ja_JP.po +19 -0
  250. package/locales/ko.po +20 -0
  251. package/locales/locales.pot +30 -7
  252. package/locales/nl.po +20 -0
  253. package/locales/pl.po +20 -0
  254. package/locales/pt_BR.po +20 -0
  255. package/locales/zh_CN.po +20 -0
  256. package/locales/zh_TW.po +20 -0
  257. package/package.json +1 -1
  258. package/widgets/definitions/datapoints-graph/index.d.ts.map +1 -1
  259. package/widgets/definitions/datapoints-table/index.d.ts.map +1 -1
  260. package/widgets/definitions/info-gauge/index.d.ts.map +1 -1
  261. package/widgets/definitions/kpi/index.d.ts.map +1 -1
  262. package/widgets/definitions/linear-gauge/index.d.ts.map +1 -1
  263. package/widgets/definitions/pie-chart/index.d.ts.map +1 -1
  264. package/widgets/definitions/radial-gauge/index.d.ts.map +1 -1
  265. package/widgets/definitions/silo/index.d.ts.map +1 -1
  266. package/widgets/implementations/datapoints-graph/index.d.ts +4 -8
  267. package/widgets/implementations/datapoints-graph/index.d.ts.map +1 -1
  268. package/widgets/implementations/datapoints-table/index.d.ts +19 -23
  269. package/widgets/implementations/datapoints-table/index.d.ts.map +1 -1
  270. package/widgets/implementations/image/index.d.ts.map +1 -1
  271. package/widgets/implementations/info-gauge/index.d.ts +3 -2
  272. package/widgets/implementations/info-gauge/index.d.ts.map +1 -1
  273. package/widgets/implementations/kpi/index.d.ts +3 -2
  274. package/widgets/implementations/kpi/index.d.ts.map +1 -1
  275. package/widgets/implementations/linear-gauge/index.d.ts +3 -2
  276. package/widgets/implementations/linear-gauge/index.d.ts.map +1 -1
  277. package/widgets/implementations/pie-chart/index.d.ts +0 -9
  278. package/widgets/implementations/pie-chart/index.d.ts.map +1 -1
  279. package/widgets/implementations/quick-links/index.d.ts +1 -1
  280. package/widgets/implementations/quick-links/index.d.ts.map +1 -1
  281. package/fesm2022/c8y-ngx-components-computed-asset-properties-last-measurement-config.component-DkrSvf9F.mjs.map +0 -1
@@ -7,7 +7,7 @@ import * as i2 from '@angular/cdk/drag-drop';
7
7
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
8
8
  import * as i1 from '@c8y/ngx-components';
9
9
  import { ColorService, EmptyStateComponent, ContextRouteService } from '@c8y/ngx-components';
10
- import { WidgetConfigComponent } from '@c8y/ngx-components/context-dashboard';
10
+ import { WidgetConfigComponent, WidgetConfigService } from '@c8y/ngx-components/context-dashboard';
11
11
  import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';
12
12
  import * as i7 from '@angular/router';
13
13
  import { ActivatedRoute } from '@angular/router';
@@ -75,6 +75,7 @@ type OmitSelectorProperties = {
75
75
  color?: boolean;
76
76
  label?: boolean;
77
77
  };
78
+ type ConfigStoreMode = 'ISOLATED' | 'MIXED';
78
79
 
79
80
  declare class AlarmEventAttributesFormService {
80
81
  duplicateTypeValidator(selectedItems: AlarmOrEvent[]): (control: AbstractControl) => ValidationErrors | null;
@@ -246,7 +247,8 @@ declare class AlarmEventSelectionListComponent implements ControlValueAccessor,
246
247
  ngOnDestroy(): void;
247
248
  registerOnTouched(fn: any): void;
248
249
  validate(_control: AbstractControl): ValidationErrors;
249
- writeValue(val: AlarmOrEvent[]): void;
250
+ get formGroups(): FormGroup[];
251
+ writeValue(alarmsOrEvents: AlarmOrEvent[]): void;
250
252
  registerOnChange(fn: any): void;
251
253
  add(): void;
252
254
  onItemRemoved(index: number): void;
@@ -363,6 +365,54 @@ declare class AlarmEventSelectorModule {
363
365
  static ɵinj: i0.ɵɵInjectorDeclaration<AlarmEventSelectorModule>;
364
366
  }
365
367
 
366
- export { ALARM_TEXTS, AlarmEventAttributesFormComponent, AlarmEventSelectionListComponent, AlarmEventSelectorComponent, AlarmEventSelectorListItemComponent, AlarmEventSelectorModalComponent, AlarmEventSelectorModalService, AlarmEventSelectorModule, AlarmEventSelectorService, CustomAlarmEventFormComponent, EVENT_TEXTS, IncludesAlarmOrEventPipe };
367
- export type { AlarmDetails, AlarmEventSelectorModalOptions, AlarmOrEvent, EventDetails, OmitSelectorProperties, SelectedDatapoint, TimelineType, TimelineTypeTexts };
368
+ declare class WidgetEventSelectorComponent implements OnInit {
369
+ /**
370
+ * The name of the control in the widget configuration where
371
+ * the selected events will be stored.
372
+ */
373
+ controlName: string;
374
+ /**
375
+ * Determines how the config is updated:
376
+ * - ISOLATED: Only stores items matching the events timelineType
377
+ * - MIXED: Stores both alarms and events together
378
+ */
379
+ configStoreMode: ConfigStoreMode;
380
+ events: EventDetails[];
381
+ readonly widgetConfigService: WidgetConfigService;
382
+ readonly timelineType: TimelineType;
383
+ ngOnInit(): void;
384
+ onEventsChange(events: EventDetails[]): void;
385
+ private getEvents;
386
+ private updateEventsConfig;
387
+ private getAlarmsOrEventsFromWidgetConfig;
388
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetEventSelectorComponent, never>;
389
+ static ɵcmp: i0.ɵɵComponentDeclaration<WidgetEventSelectorComponent, "c8y-widget-event-selector", never, { "controlName": { "alias": "controlName"; "required": false; }; "configStoreMode": { "alias": "configStoreMode"; "required": false; }; }, {}, never, never, true, never>;
390
+ }
391
+
392
+ declare class WidgetAlarmSelectorComponent implements OnInit {
393
+ /**
394
+ * The name of the control in the widget configuration where
395
+ * the selected alarms will be stored.
396
+ */
397
+ controlName: string;
398
+ /**
399
+ * Determines how the config is updated:
400
+ * - ISOLATED: Only stores items matching the alarms timelineType
401
+ * - MIXED: Stores both alarms and events together
402
+ */
403
+ configStoreMode: ConfigStoreMode;
404
+ alarms: AlarmDetails[];
405
+ readonly widgetConfigService: WidgetConfigService;
406
+ readonly timelineType: TimelineType;
407
+ ngOnInit(): void;
408
+ onAlarmsChange(alarms: AlarmDetails[]): void;
409
+ private getAlarms;
410
+ private updateAlarmsConfig;
411
+ private getAlarmsOrEventsFromWidgetConfig;
412
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetAlarmSelectorComponent, never>;
413
+ static ɵcmp: i0.ɵɵComponentDeclaration<WidgetAlarmSelectorComponent, "c8y-widget-alarm-selector", never, { "controlName": { "alias": "controlName"; "required": false; }; "configStoreMode": { "alias": "configStoreMode"; "required": false; }; }, {}, never, never, true, never>;
414
+ }
415
+
416
+ export { ALARM_TEXTS, AlarmEventAttributesFormComponent, AlarmEventSelectionListComponent, AlarmEventSelectorComponent, AlarmEventSelectorListItemComponent, AlarmEventSelectorModalComponent, AlarmEventSelectorModalService, AlarmEventSelectorModule, AlarmEventSelectorService, CustomAlarmEventFormComponent, EVENT_TEXTS, IncludesAlarmOrEventPipe, WidgetAlarmSelectorComponent, WidgetEventSelectorComponent };
417
+ export type { AlarmDetails, AlarmEventSelectorModalOptions, AlarmOrEvent, ConfigStoreMode, EventDetails, OmitSelectorProperties, SelectedDatapoint, TimelineType, TimelineTypeTexts };
368
418
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../alarm-event-selector/alarm-event-selector.model.ts","../../alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.service.ts","../../alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.model.ts","../../alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.component.ts","../../alarm-event-selector/alarm-event-selector-modal/alarm-event-selector-modal.component.ts","../../alarm-event-selector/alarm-event-selector-modal/alarm-event-selector-modal.model.ts","../../alarm-event-selector/alarm-event-selector-modal/alarm-event-selector-modal.service.ts","../../alarm-event-selector/alarm-event-selector.service.ts","../../alarm-event-selector/alarm-event-selection-list/alarm-event-selection-list.component.ts","../../alarm-event-selector/alarm-event-selector-list-item/alarm-event-selector-list-item.component.ts","../../alarm-event-selector/alarm-event-selector.component.ts","../../alarm-event-selector/pipes/includes-alarm.pipe.ts","../../alarm-event-selector/custom-alarm-event-form/custom-alarm-event-form.component.ts","../../alarm-event-selector/alarm-event-selector.module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAKA;;;;;AAKE;;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
+ {"version":3,"file":"index.d.ts","sources":["../../alarm-event-selector/alarm-event-selector.model.ts","../../alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.service.ts","../../alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.model.ts","../../alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.component.ts","../../alarm-event-selector/alarm-event-selector-modal/alarm-event-selector-modal.component.ts","../../alarm-event-selector/alarm-event-selector-modal/alarm-event-selector-modal.model.ts","../../alarm-event-selector/alarm-event-selector-modal/alarm-event-selector-modal.service.ts","../../alarm-event-selector/alarm-event-selector.service.ts","../../alarm-event-selector/alarm-event-selection-list/alarm-event-selection-list.component.ts","../../alarm-event-selector/alarm-event-selector-list-item/alarm-event-selector-list-item.component.ts","../../alarm-event-selector/alarm-event-selector.component.ts","../../alarm-event-selector/pipes/includes-alarm.pipe.ts","../../alarm-event-selector/custom-alarm-event-form/custom-alarm-event-form.component.ts","../../alarm-event-selector/alarm-event-selector.module.ts","../../alarm-event-selector/widget-event-selector.component.ts","../../alarm-event-selector/widget-alarm-selector.component.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAKA;;;;;AAKE;;;;;AAMI;;AAEJ;;;;;AAMI;;AAEJ;;;;;AAMI;;;;;;AAQA;;;;;;;;;;;;;;;;;AAkBN;AAsBA;AAsBA;;AAEG;AACG;;;;;;ACrGN;;;;AAaC;;;;ACZG;AACD;AACD;AACA;AACA;AACD;;ACyBD;AAoCI;AACA;;;;;;AAJF;AAGU;;AAwBV;AAIA;AAIA;AAIA;AAIA;;AAiBA;AAIA;;;AAKD;;AClID;AAwBc;;;AAhBZ;AACA;AACA;;AAEA;AACA;;;;;;AAWoB;AAEpB;;AAUA;;;AAGD;;AC5CK;;ACIN;;AAEG;AACH;AAEc;AAAQ;AACpB;;;;AAIG;AACH;;;AAUD;;ACbD;AAQI;AACA;AACA;;;AAGF;;;;AAIG;AACH;AAIA;;;;AAIG;;AAWH;;;;;AAKG;AACG;;;AAuBA;AACA;;;;;AA2CP;;ACrED;AA0FI;AACA;AACA;AACY;AACA;AACA;AA9Dd;;;AAGG;;AAGH;;AAEG;AACM;AAET;;AAEG;AACM;AAEA;;AAGT;;;AAGG;;AAGH;;AAEG;AACM;AAET;;;AAGG;AACM;AAET;;AAEG;AACM;;AAGA;;AAGT;;AAEG;AACM;;;AAIT;;;AAeA;AAYA;AAKA;AAIA;AAIA;AAIA;AAWA;;;AA2CA;AAMA;AAOA;;;AAUD;;AC3ND;AA2Dc;;AAnBH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAIC;AACA;;AAGV;;AAGoB;;;;AA0BpB;AAIA;AAIA;AASA;AAIA;;;AAiBA;;;AAKD;;ACrID;AAwDc;;;AAxBH;AACA;AACA;AACA;AACA;;AAGC;AACV;AACA;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAMoB;AAEpB;AAQA;AAMA;AAUA;;AAYA;AAKA;AAIA;AAoCA;AAKA;AAIA;;;AAaD;;ACnMD;AAEE;;;AAWD;;ACFD;AA4Bc;;;;;;AAPF;AACA;;AAGV;;AAGoB;;;;AAmCpB;;;AAKD;;AClED;;;;AAoBwC;;ACxBxC;AAmBE;;;AAGG;AACM;AAET;;;;AAIG;;;;AAMH;AAEA;AAIA;AAIA;AAMA;AAeA;;;AAOD;;ACzED;AAmBE;;;AAGG;AACM;AAET;;;;AAIG;;;;AAMH;AAEA;AAIA;AAIA;AAMA;AAeA;;;AAOD;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injector, Type, TemplateRef, ElementRef, ViewContainerRef, OnInit, OnChanges, OnDestroy, EventEmitter, SimpleChanges, InjectionToken } from '@angular/core';
3
3
  import * as _c8y_client from '@c8y/client';
4
- import { IManagedObject, IAlarm, IEvent, Paging } from '@c8y/client';
4
+ import { IIdentified, IManagedObject, IAlarm, IEvent, Paging } from '@c8y/client';
5
5
  import { Observable, BehaviorSubject } from 'rxjs';
6
6
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
7
7
  import { CdkTree } from '@angular/cdk/tree';
@@ -146,6 +146,10 @@ type AssetPropertyListConfig = {
146
146
  * Tabs to hide in the custom properties drawer.
147
147
  */
148
148
  hiddenTabs?: HiddenTabs;
149
+ /**
150
+ * Flag to add context asset's ID and name to output properties.
151
+ */
152
+ addAssetToProperty?: boolean;
149
153
  };
150
154
  declare const defaultAssetPropertyListConfig: AssetPropertyListConfig;
151
155
  declare const defaultAssetProperties: Array<BaseProperty>;
@@ -208,6 +212,7 @@ interface BaseProperty {
208
212
  active?: boolean;
209
213
  computed?: boolean;
210
214
  instanceId?: string;
215
+ asset?: IIdentified;
211
216
  [key: string]: any;
212
217
  }
213
218
  interface NestedPropertyFields extends BaseProperty {
@@ -345,7 +350,10 @@ interface AssetPropertyFlatNode {
345
350
  property: AssetPropertyType;
346
351
  isVisible: boolean;
347
352
  indeterminate?: boolean;
348
- contextAssetId?: string;
353
+ /**
354
+ * ID of asset that was selected while configuring the computed property.
355
+ */
356
+ configuredAssetId?: string;
349
357
  }
350
358
  declare class FlatTreeDataSource extends DataSource<AssetPropertyFlatNode> {
351
359
  private _dataChange;
@@ -786,9 +794,15 @@ declare class AssetPropertyTabsComponent implements OnInit, OnChanges, OnDestroy
786
794
  paging: Paging<IManagedObject>;
787
795
  inputText: string;
788
796
  selectedTab: AssetPropertyTab;
789
- assetProperties: AssetPropertyType[];
790
- regularProperties: AssetPropertyType[];
791
- computedProperties: AssetPropertyType[];
797
+ set assetProperties(value: AssetPropertyType[]);
798
+ get assetProperties(): AssetPropertyType[];
799
+ private _assetProperties;
800
+ set regularProperties(value: AssetPropertyType[]);
801
+ get regularProperties(): AssetPropertyType[];
802
+ private _regularProperties;
803
+ set computedProperties(value: AssetPropertyType[]);
804
+ get computedProperties(): AssetPropertyType[];
805
+ private _computedProperties;
792
806
  displayedProperties: AssetPropertyType[];
793
807
  assetCount: number;
794
808
  regularCount: number;
@@ -835,6 +849,7 @@ declare class AssetPropertyTabsComponent implements OnInit, OnChanges, OnDestroy
835
849
  * @returns The flattened list of properties.
836
850
  */
837
851
  private categorizeAndFlattenHierarchicalProperties;
852
+ private withContextAssetId;
838
853
  static ɵfac: i0.ɵɵFactoryDeclaration<AssetPropertyTabsComponent, never>;
839
854
  static ɵcmp: i0.ɵɵComponentDeclaration<AssetPropertyTabsComponent, "c8y-asset-property-tabs", never, { "asset": { "alias": "asset"; "required": false; }; "config": { "alias": "config"; "required": false; }; "selectedProperties": { "alias": "selectedProperties"; "required": false; }; "hiddenTabs": { "alias": "hiddenTabs"; "required": false; }; "tabsOutletName": { "alias": "tabsOutletName"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; }, { "selectedPropertiesChange": "selectedPropertiesChange"; }, never, never, true, never>;
840
855
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../asset-properties/asset-properties.model.ts","../../asset-properties/asset-properties.service.ts","../../asset-properties/custom-properties-drawer.service.ts","../../asset-properties/asset-property-list/tree-data-source.ts","../../asset-properties/asset-property-list/asset-property-action.directive.ts","../../asset-properties/asset-property-list/asset-property-list.component.ts","../../asset-properties/asset-property-selector-drawer/asset-property-selector-drawer.component.ts","../../asset-properties/computed-properties.service.ts","../../asset-properties/asset-property-tabs/asset-property-tabs.component.ts","../../asset-properties/asset-property-selector/asset-property-selector.component.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;AAKA;AACE;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACD;AAEK;AACJ;;;;AAIG;AACH;AACA;;;;;AAKG;AACH;;AAGI;AACA;AAGN;;;;;;AAaI;;;;;AAME;;;;AAUE;;;;;AAMD;AAGD;AACJ;;;AAGG;;AAEH;;AAEG;;;AAIC;AACJ;;AAEG;AACH;AACA;;;AAGG;;AAEH;;;;;;AAMG;;AAEH;;;;;AA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BA;;;;;AAsGA;AAWA;;AAEG;AACH;AAcA;;AAEG;AACH;AAkDA;;;;AAIG;AACH;;;AAOD;;ACnYD;;;AAGG;AACH;AA2BE;;AAEG;;AAEH;;AAEG;;AAEH;;AAEG;;AAEH;;AAEG;AACM;AACT;;AAEG;AACM;AACT;;AAEG;AACM;AACT;;AAEG;AACM;AAET;;AAEG;;AAEH;;AAEG;AACH;;;;;;;;AAWA;AAUA;;AAEG;AACH;AAIA;;AAEG;;AAKH;;AAEG;AACH;AAIA;;;AAGG;;AAWH;;;AAGG;AACH;AASA;;;AAGG;AACH;AAMA;;;AAGG;;AAaH;;;AAGG;AACH;AAOA;;AAEG;AACH;AAKA;;AAEG;AACH;AAMA;;AAEG;AACH;AAOA;;;;AAIG;;AAoFH;;;;;AAKG;AACH;AAmBA;;;;;AAKG;;;;AAaJ;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../asset-properties/asset-properties.model.ts","../../asset-properties/asset-properties.service.ts","../../asset-properties/custom-properties-drawer.service.ts","../../asset-properties/asset-property-list/tree-data-source.ts","../../asset-properties/asset-property-list/asset-property-action.directive.ts","../../asset-properties/asset-property-list/asset-property-list.component.ts","../../asset-properties/asset-property-selector-drawer/asset-property-selector-drawer.component.ts","../../asset-properties/computed-properties.service.ts","../../asset-properties/asset-property-tabs/asset-property-tabs.component.ts","../../asset-properties/asset-property-selector/asset-property-selector.component.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;AAKA;AACE;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACD;AAEK;AACJ;;;;AAIG;AACH;AACA;;;;;AAKG;AACH;;AAGI;AACA;AAGN;;;;;;AAaI;;;;;AAME;;;;AAUE;;;;;AAMD;AAGD;AACJ;;;AAGG;;AAEH;;AAEG;;;AAIC;AACJ;;AAEG;AACH;AACA;;;AAGG;;AAEH;;;;;;AAMG;;AAEH;;;;;AAKG;AACH;AACA;;;AAGG;;AAEH;;A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A;;;;;;;AAwDA;;;AAGG;AACH;;;AA2BA;;;;;AAsGA;AAWA;;AAEG;AACH;AAcA;;AAEG;AACH;AAkDA;;;;AAIG;AACH;AAQA;;;AASD;;AClaD;;;AAGG;AACH;AA4BE;;AAEG;;AAEH;;AAEG;;AAEH;;AAEG;;AAEH;;AAEG;AACM;AACT;;AAEG;AACM;AACT;;AAEG;AACM;AACT;;AAEG;AACM;AAET;;AAEG;;AAEH;;AAEG;AACH;;;;;;;;AAWA;AAUA;;AAEG;AACH;AAIA;;AAEG;;AAKH;;AAEG;AACH;AAIA;;;AAGG;;AAWH;;;AAGG;AACH;AASA;;;AAGG;AACH;AAMA;;;AAGG;;AAaH;;;AAGG;AACH;AAOA;;AAEG;AACH;AAKA;;AAEG;AACH;AAMA;;AAEG;AACH;AAOA;;;;AAIG;;AAoFH;;;;;AAKG;AACH;AAmBA;;;;;AAKG;;;;AAaJ;;;"}
@@ -13,7 +13,7 @@ import { SupportedIconsSuggestions } from '@c8y/ngx-components/icon-selector/ico
13
13
  import * as rxjs from 'rxjs';
14
14
  import { Observable as Observable$1, BehaviorSubject, Subject, Subscription } from 'rxjs';
15
15
  import * as _angular_forms from '@angular/forms';
16
- import { FormBuilder, NgForm } from '@angular/forms';
16
+ import { FormBuilder, ValidatorFn, NgForm } from '@angular/forms';
17
17
  import * as i2 from 'ngx-bootstrap/tooltip';
18
18
  import * as i3 from 'ngx-bootstrap/popover';
19
19
  import * as i4 from '@c8y/ngx-components/assets-navigator';
@@ -380,7 +380,7 @@ declare class ContextDashboardService {
380
380
  private appStateService;
381
381
  private contextRouteService;
382
382
  dashboardTabs$: Observable$1<Tab[]>;
383
- formDisabled$: Observable$1<boolean>;
383
+ readonly formDisabled$: Observable$1<boolean>;
384
384
  readonly REPORT_PARTIAL_NAME = "report_";
385
385
  copyClipboard: DashboardCopyClipboard;
386
386
  queriesUtil: QueriesUtil;
@@ -1189,6 +1189,28 @@ interface WidgetConfigSectionBase<T> {
1189
1189
  * provided multiple times, only one is used.
1190
1190
  */
1191
1191
  providers?: Type<unknown>[] | (() => Promise<Type<unknown>[]>);
1192
+ /**
1193
+ * An array of validator functions to be applied to the main widget config form.
1194
+ * These validators are added when the section is initialized and allow for custom
1195
+ * validation logic (useful for cross-section or cross-fields validation).
1196
+ *
1197
+ * **Note:** Validator must indicate the names of form controls (at least one) whose values affect the validation outcome.
1198
+ * This can be done by setting a `controlNames` property on the validator function:
1199
+ *
1200
+ * @example
1201
+ * ```TypeScript
1202
+ * const myValidator: ValidatorFn = (formGroup: AbstractControl) => {
1203
+ * // validation logic
1204
+ * };
1205
+ * (myValidator as any).controlNames = ['control1', 'control2'];
1206
+ * ```
1207
+ */
1208
+ validators?: ValidatorFn[];
1209
+ /**
1210
+ * Custom validation errors to display.
1211
+ * Keys should match the error keys, values are the error messages.
1212
+ */
1213
+ validationErrors?: Record<string, string>;
1192
1214
  }
1193
1215
 
1194
1216
  declare class WidgetConfigSectionService extends ExtensionPointForPlugins<WidgetConfigSectionDefinition> {
@@ -1469,10 +1491,16 @@ declare class WidgetPreviewComponent {
1469
1491
  static ɵcmp: i0.ɵɵComponentDeclaration<WidgetPreviewComponent, "c8y-widget-preview", never, { "previewClasses": { "alias": "previewClasses"; "required": false; }; }, {}, never, never, true, never>;
1470
1492
  }
1471
1493
 
1472
- declare class WidgetConfigSectionComponent {
1494
+ declare class WidgetConfigSectionComponent implements OnInit {
1473
1495
  section: WidgetConfigSection;
1474
1496
  feedbackTemplate: TemplateRef<any>;
1497
+ customValidatorsTouched: i0.WritableSignal<boolean>;
1498
+ readonly parentForm: NgForm;
1499
+ private readonly destroyRef;
1475
1500
  setFeedbackTemplate(template: TemplateRef<any>): void;
1501
+ ngOnInit(): void;
1502
+ private initializeCustomValidation;
1503
+ private extractControlNames;
1476
1504
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetConfigSectionComponent, never>;
1477
1505
  static ɵcmp: i0.ɵɵComponentDeclaration<WidgetConfigSectionComponent, "c8y-widget-config-section", never, { "section": { "alias": "section"; "required": false; }; }, {}, never, never, true, never>;
1478
1506
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../context-dashboard/add-dashboard.component.ts","../../context-dashboard/add-dashboard.factory.ts","../../context-dashboard/context-dashboard.model.ts","../../context-dashboard/context-dashboard.service.ts","../../context-dashboard/dashboard-detail.service.ts","../../context-dashboard/dashboard-detail.component.ts","../../context-dashboard/memento/dashboard-originator.service.ts","../../context-dashboard/memento/dashboard-caretaker.service.ts","../../context-dashboard/memento/dashboard-edit-mode.service.ts","../../context-dashboard/widget.service.ts","../../context-dashboard/context-dashboard.component.ts","../../context-dashboard/widget-config/appearance-settings.component.ts","../../context-dashboard/type-dashboard-info/type-dashboard-info.component.ts","../../context-dashboard/widget-config-hook/widget-config-hook.model.ts","../../context-dashboard/widget-config-hook/widget-config-hook.service.ts","../../context-dashboard/widget-config.service.ts","../../context-dashboard/widget-config/widget-config-root.component.ts","../../context-dashboard/widget-config.component.ts","../../context-dashboard/widget-config/widget-preview.component.ts","../../context-dashboard/widget-config/widget-config-section.component.ts","../../context-dashboard/widget-config/widget-preview-wrapper.component.ts","../../context-dashboard/paste-dashboard-action.component.ts","../../context-dashboard/context-dashboard.module.ts","../../context-dashboard/dashboard-action-bar.factory.ts","../../context-dashboard/device-info-dashboard/device-info-dashboard.component.ts","../../context-dashboard/device-info-dashboard/device-info-dashboard.module.ts","../../context-dashboard/device-management-home-dashboard/device-management-home-dashboard.component.ts","../../context-dashboard/device-management-home-dashboard/device-management-home-dashboard.module.ts","../../context-dashboard/widget-config/widget-config-appearance.component.ts","../../context-dashboard/widget-config/widget-config-general.component.ts","../../context-dashboard/widget-config/widget-asset-selector.component.ts","../../context-dashboard/new-dashboard.guard.ts","../../context-dashboard/widget-config/global-context-section.component.ts","../../context-dashboard/widget-config/widget-config-feedback.component.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;AAQI;AACA;AADQ;;;;AAoBX;;ACpBD;AACE;;;;AAMM;;AAoCP;;ACzCD;AACA;;;;;;;;;;;;;;;;AAiBE;;AAEG;AACH;AACD;;AAGC;;;AAGG;;AAGH;;AAEG;;AAGH;;AAEG;AACH;AACE;;AAEG;AACH;;AAEF;;;AAGG;AACH;AACE;;AAEA;;AAEF;;;;;AAKG;AACH;AACA;;;;;;AAMG;AACH;AAEA;;AAEG;AACH;AACD;AAEK;;;AAGJ;AACD;;AAGC;AACA;AACA;AACA;AACA;AACA;AACA;AAAY;AAAwB;AACpC;AAAkB;AAAwB;AAC1C;AACA;AACA;AACA;AACA;;;AAGG;AACH;AACA;AACE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AAAmB;;AACpB;AACD;;AAEG;;AAED;;AAEG;;AAEH;;AAEG;AACH;AACA;;AAEG;AACH;AACA;;;;;;;;AAQG;AACH;AACE;AACA;AACA;AACA;AACD;AACD;;AAEG;;AAEJ;AAED;;;;;;;AAOA;;;AAGG;AACG;AACJ;;AAEG;;AAEH;;AAEG;AACH;AACA;;;;;;;;;;;;;AAaG;;AAKG;AACD;;AAKP;AACE;AACA;AACA;AACA;AACA;AACD;AAED;AACE;AACA;AACA;AACD;AAEK;;AAE0D;;;;;AAO/D;AAED;;;;;;;;;;;;;;;;;AAuBA;;;;;;;;;;;;;;;;;;;;;AA4BA;;;;;;;;;;;;;;;;;AA2BA;;;;;AAUC;;;AAIC;AACD;AAED;AACM;AAEN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCE;AACD;AAED;AAEM;AAEN;AACA;;;;;;;;;;;;AAaC;;AC3UD;AAwCI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAlDF;AACA;;;;;AAKA;;AAKA;AACA;AACA;AACA;AACA;AACA;;;;;AASA;AAGA;AAIA;;;;AAmEM;AAyB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B;;;AAGD;;ACpCD;;;;AAkBmD;;ACnBnD;AAOE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACoE;;;AACrE;;ACPD;AAOE;;;AAQA;AAOA;;;AAGD;;ACdD;AAkBE;AACA;AACA;AACA;AAEA;;AAEG;AAEH;AAEA;;AAEG;;AAIH;;AAEG;;AAIH;;AAEG;;AAIH;;AAEG;;AAIH;;;AAGG;AACH;AAEA;;AAEG;AACG;AAsCN;;;;AAIG;AACH;AAIA;;;AAGG;AACH;;;;;AAcD;;AC5ID;AAUA;;;;;AAqBC;;ACrBD;AAaE;;AAIA;;AAIA;;;AAOA;;;;AAO+E;;;AAMhF;;ACvDD;AAOE;AACwB;AAExB;;;AAGD;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../context-dashboard/add-dashboard.component.ts","../../context-dashboard/add-dashboard.factory.ts","../../context-dashboard/context-dashboard.model.ts","../../context-dashboard/context-dashboard.service.ts","../../context-dashboard/dashboard-detail.service.ts","../../context-dashboard/dashboard-detail.component.ts","../../context-dashboard/memento/dashboard-originator.service.ts","../../context-dashboard/memento/dashboard-caretaker.service.ts","../../context-dashboard/memento/dashboard-edit-mode.service.ts","../../context-dashboard/widget.service.ts","../../context-dashboard/context-dashboard.component.ts","../../context-dashboard/widget-config/appearance-settings.component.ts","../../context-dashboard/type-dashboard-info/type-dashboard-info.component.ts","../../context-dashboard/widget-config-hook/widget-config-hook.model.ts","../../context-dashboard/widget-config-hook/widget-config-hook.service.ts","../../context-dashboard/widget-config.service.ts","../../context-dashboard/widget-config/widget-config-root.component.ts","../../context-dashboard/widget-config.component.ts","../../context-dashboard/widget-config/widget-preview.component.ts","../../context-dashboard/widget-config/widget-config-section.component.ts","../../context-dashboard/widget-config/widget-preview-wrapper.component.ts","../../context-dashboard/paste-dashboard-action.component.ts","../../context-dashboard/context-dashboard.module.ts","../../context-dashboard/dashboard-action-bar.factory.ts","../../context-dashboard/device-info-dashboard/device-info-dashboard.component.ts","../../context-dashboard/device-info-dashboard/device-info-dashboard.module.ts","../../context-dashboard/device-management-home-dashboard/device-management-home-dashboard.component.ts","../../context-dashboard/device-management-home-dashboard/device-management-home-dashboard.module.ts","../../context-dashboard/widget-config/widget-config-appearance.component.ts","../../context-dashboard/widget-config/widget-config-general.component.ts","../../context-dashboard/widget-config/widget-asset-selector.component.ts","../../context-dashboard/new-dashboard.guard.ts","../../context-dashboard/widget-config/global-context-section.component.ts","../../context-dashboard/widget-config/widget-config-feedback.component.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;AAQI;AACA;AADQ;;;;AAoBX;;ACpBD;AACE;;;;AAMM;;AAoCP;;ACzCD;AACA;;;;;;;;;;;;;;;;AAiBE;;AAEG;AACH;AACD;;AAGC;;;AAGG;;AAGH;;AAEG;;AAGH;;AAEG;AACH;AACE;;AAEG;AACH;;AAEF;;;AAGG;AACH;AACE;;AAEA;;AAEF;;;;;AAKG;AACH;AACA;;;;;;AAMG;AACH;AAEA;;AAEG;AACH;AACD;AAEK;;;AAGJ;AACD;;AAGC;AACA;AACA;AACA;AACA;AACA;AACA;AAAY;AAAwB;AACpC;AAAkB;AAAwB;AAC1C;AACA;AACA;AACA;AACA;;;AAGG;AACH;AACA;AACE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AAAmB;;AACpB;AACD;;AAEG;;AAED;;AAEG;;AAEH;;AAEG;AACH;AACA;;AAEG;AACH;AACA;;;;;;;;AAQG;AACH;AACE;AACA;AACA;AACA;AACD;AACD;;AAEG;;AAEJ;AAED;;;;;;;AAOA;;;AAGG;AACG;AACJ;;AAEG;;AAEH;;AAEG;AACH;AACA;;;;;;;;;;;;;AAaG;;AAKG;AACD;;AAKP;AACE;AACA;AACA;AACA;AACA;AACD;AAED;AACE;AACA;AACA;AACD;AAEK;;AAE0D;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;;AA8IA;AAOA;AAgBA;AAcA;AAsBA;AAcA;;;AAiBD;;ACzYD;AAOE;AACA;AAGA;AAAkB;;;;;AAQnB;;ACXD;;AAiBE;AACA;;AAGA;AAEA;AAIA;AAIA;AAsBA;;;AAaD;;AC7ED;AAOE;;;;AAUD;;ACPD;AAiCI;AACA;AACA;AACA;AAbF;AACiE;AACjE;;;;;;AAQU;;;;;;;AAkEX;;ACjFD;;;;;;AAMG;AACH;;;;;AAgFC;;AC/GD;AACE;AACA;;;AA0BD;;ACtBD;AAkSI;AACA;AACA;AACA;AA/RF;;AAEA;;;;;;AAOA;AACA;;AAkRU;;;;;AAuEV;;;AAGD;;AC9VD;;;;AAiByC;;ACpCzC;AAuBc;AAjBZ;AACA;;;AAgBoB;;AAUpB;;;AAGD;;ACpCD;;;;AAkBmD;;ACnBnD;AAOE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACoE;;;AACrE;;ACPD;AAOE;;;AAQA;AAOA;;;AAGD;;ACdD;AAkBE;AACA;AACA;AACA;AAEA;;AAEG;AAEH;AAEA;;AAEG;;AAIH;;AAEG;;AAIH;;AAEG;;AAIH;;AAEG;;AAIH;;;AAGG;AACH;AAEA;;AAEG;AACG;AAsCN;;;;AAIG;AACH;AAIA;;;AAGG;AACH;;;;;AAcD;;AC5ID;AAUA;;;;;AAqBC;;ACrBD;AAaE;;AAIA;;AAIA;;;AAOA;;;;AAO+E;;;AAMhF;;ACvDD;AAOE;AACwB;AAExB;;;AAGD;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../../datapoint-explorer/devicemanagement/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAeA,cAAA,gBAAA,EAAA,SAAA,CAAA,QAAA;AAiDA,cAAA,+BAAA,GAA4C,aAAA,CAAA,aAAA,GAAA,aAAA,CAAA,aAAA,GAAA,aAAA,CAAA,gBAAA;;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../../datapoint-explorer/devicemanagement/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAeA,cAAA,gBAAA,EAAA,SAAA,CAAA,QAAA;AAkDA,cAAA,+BAAA,GAA4C,aAAA,CAAA,aAAA,GAAA,aAAA,CAAA,aAAA,GAAA,aAAA,CAAA,gBAAA;;;;"}
@@ -16,7 +16,7 @@ import { ControlValueAccessor, Validator, FormGroup, FormBuilder, AbstractContro
16
16
  import { IIdentified, IManagedObject, InventoryService, MeasurementService, IResultList } from '@c8y/client';
17
17
  import { BehaviorSubject, Observable } from 'rxjs';
18
18
  import { SupportedIconsSuggestions } from '@c8y/ngx-components/icon-selector/icons';
19
- import { WidgetConfigComponent } from '@c8y/ngx-components/context-dashboard';
19
+ import { WidgetConfigComponent, WidgetConfigService } from '@c8y/ngx-components/context-dashboard';
20
20
 
21
21
  declare const AXIS_TYPES: readonly [{
22
22
  readonly val: any;
@@ -325,6 +325,7 @@ declare class DatapointSelectionListComponent implements ControlValueAccessor, V
325
325
  minActiveCount: number;
326
326
  resolveContext: boolean;
327
327
  listTitle: string;
328
+ removeTitle: boolean;
328
329
  formArray: FormArray;
329
330
  datapointLibraryEntries: Observable<IResultList<ManagedObjectKPI>>;
330
331
  maxActiveCountReached: boolean;
@@ -333,23 +334,28 @@ declare class DatapointSelectionListComponent implements ControlValueAccessor, V
333
334
  readonly addRemove: "add-remove";
334
335
  readonly select: "select";
335
336
  };
337
+ minActiveErrorMessage: "At least {{ minActive }} data point(s) must be selected and active.";
338
+ maxActiveErrorMessage: "At maximum {{ maxActive }} data point(s) can be selected and active.";
339
+ DATA_POINTS_LABEL: "Data points`display`";
336
340
  isValid: Observable<boolean>;
337
341
  change: Observable<any[]>;
338
342
  private usedValidators;
339
343
  constructor(datapointSelector: DatapointSelectorService, datapointLibrary: DatapointLibraryService, formBuilder: FormBuilder, widgetComponent: WidgetConfigComponent);
340
344
  ngOnChanges(changes: SimpleChanges): void;
341
- registerOnTouched(fn: any): void;
342
- validate(_control: AbstractControl): ValidationErrors;
343
345
  ngOnInit(): void;
344
- writeValue(obj: KPIDetails[]): void;
346
+ registerOnTouched(fn: any): void;
347
+ validate(_control: AbstractControl): ValidationErrors | null;
348
+ writeValue(datapoints: KPIDetails[]): void;
345
349
  registerOnChange(fn: any): void;
346
350
  add(): void;
347
351
  onItemRemoved(index: number): void;
352
+ get formGroups(): FormGroup[];
348
353
  drop(event: CdkDragDrop<KPIDetails[]>): void;
349
354
  private transformValue;
350
355
  private calculateMaxActiveCount;
356
+ private updateValidators;
351
357
  static ɵfac: i0.ɵɵFactoryDeclaration<DatapointSelectionListComponent, [null, null, null, { optional: true; }]>;
352
- static ɵcmp: i0.ɵɵComponentDeclaration<DatapointSelectionListComponent, "c8y-datapoint-selection-list", never, { "actions": { "alias": "actions"; "required": false; }; "allowDragAndDrop": { "alias": "allowDragAndDrop"; "required": false; }; "config": { "alias": "config"; "required": false; }; "defaultFormOptions": { "alias": "defaultFormOptions"; "required": false; }; "maxActiveCount": { "alias": "maxActiveCount"; "required": false; }; "minActiveCount": { "alias": "minActiveCount"; "required": false; }; "resolveContext": { "alias": "resolveContext"; "required": false; }; "listTitle": { "alias": "listTitle"; "required": false; }; }, { "isValid": "isValid"; "change": "change"; }, never, [".alert"], true, never>;
358
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatapointSelectionListComponent, "c8y-datapoint-selection-list", never, { "actions": { "alias": "actions"; "required": false; }; "allowDragAndDrop": { "alias": "allowDragAndDrop"; "required": false; }; "config": { "alias": "config"; "required": false; }; "defaultFormOptions": { "alias": "defaultFormOptions"; "required": false; }; "maxActiveCount": { "alias": "maxActiveCount"; "required": false; }; "minActiveCount": { "alias": "minActiveCount"; "required": false; }; "resolveContext": { "alias": "resolveContext"; "required": false; }; "listTitle": { "alias": "listTitle"; "required": false; }; "removeTitle": { "alias": "removeTitle"; "required": false; }; }, { "isValid": "isValid"; "change": "change"; }, never, [".alert"], true, never>;
353
359
  }
354
360
 
355
361
  declare class DatapointTemplatePopoverComponent {
@@ -467,6 +473,84 @@ declare class DatapointSelectorModule {
467
473
  static ɵinj: i0.ɵɵInjectorDeclaration<DatapointSelectorModule>;
468
474
  }
469
475
 
470
- export { AXIS_TYPES, AddButtonTypes, CHART_LINE_TYPES, CHART_RENDER_TYPES, DATAPOINT_LIBRARY_FRAGMENT, DatapointAttributesFormComponent, DatapointAttributesFormValidationService, DatapointLabelPipe, DatapointLibraryService, DatapointSelectionListComponent, DatapointSelectorComponent, DatapointSelectorListItemComponent, DatapointSelectorModalComponent, DatapointSelectorModule, DatapointSelectorService, DatapointTemplatePopoverComponent, IncludesDatapointPipe };
476
+ /**
477
+ * A configuration component for selecting and managing datapoints in the widget config section.
478
+ */
479
+ declare class WidgetDatapointsSelectorComponent implements OnInit {
480
+ /**
481
+ * Minimum number of active datapoints required in the list.
482
+ */
483
+ minActiveCount: number;
484
+ /**
485
+ * Maximum number of active datapoints allowed in the list.
486
+ */
487
+ maxActiveCount: number;
488
+ /**
489
+ * When true, adds an info validation error if selected active datapoints
490
+ * have different units.
491
+ */
492
+ showDifferentUnitsAlert: boolean;
493
+ /**
494
+ * The title displayed above the datapoint selection list.
495
+ *
496
+ * When set, this title appears as a header for the datapoint list section.
497
+ */
498
+ listTitle: string;
499
+ /**
500
+ * Configuration options for the datapoint attributes form.
501
+ */
502
+ defaultFormOptions: Partial<DatapointAttributesFormConfig>;
503
+ /**
504
+ * Configuration options for the datapoint selector modal.
505
+ *
506
+ * These options customize the behavior and appearance of the modal
507
+ * dialog used for selecting datapoints.
508
+ */
509
+ config: Partial<DatapointSelectorModalOptions>;
510
+ /**
511
+ * The name of the control in the widget configuration where
512
+ * the selected datapoints will be stored.
513
+ *
514
+ * This corresponds to a property name in the widget's configuration object.
515
+ */
516
+ controlName: string;
517
+ /**
518
+ * Whether to hide the title section of the datapoint selection list.
519
+ *
520
+ * When set to `true`, the title header will not be rendered.
521
+ */
522
+ removeTitle: boolean;
523
+ /**
524
+ * Whether to read `showAdvancedChartOptions` from the widget config
525
+ * and merge it into `defaultFormOptions`.
526
+ *
527
+ * When set to `true`, the component will subscribe to `currentConfig$`
528
+ * and apply the `showAdvancedChartOptions` flag.
529
+ * Defaults to `false`.
530
+ */
531
+ useAdvancedChartOptions: boolean;
532
+ datapoints: KPIDetails[];
533
+ differentUnits: boolean;
534
+ differentUnitsMessageError: "Selected data points have different units.";
535
+ readonly widgetConfigService: WidgetConfigService;
536
+ private readonly widgetComponent;
537
+ private readonly dashboardContextComponent;
538
+ private readonly destroyRef;
539
+ ngOnInit(): void;
540
+ onDatapointsChange(datapoints: KPIDetails[]): void;
541
+ private getDatapointsFromWidgetConfig;
542
+ private assignContextFromContextDashboard;
543
+ /**
544
+ * Checks if selected datapoints have different units and sets warning flag.
545
+ * Different units in a pie chart can be misleading to users.
546
+ *
547
+ * @param datapoints - Array of selected datapoints to check
548
+ */
549
+ private checkUnitsMatch;
550
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetDatapointsSelectorComponent, never>;
551
+ static ɵcmp: i0.ɵɵComponentDeclaration<WidgetDatapointsSelectorComponent, "c8y-widget-datapoints-selector", never, { "minActiveCount": { "alias": "minActiveCount"; "required": false; }; "maxActiveCount": { "alias": "maxActiveCount"; "required": false; }; "showDifferentUnitsAlert": { "alias": "showDifferentUnitsAlert"; "required": false; }; "listTitle": { "alias": "listTitle"; "required": false; }; "defaultFormOptions": { "alias": "defaultFormOptions"; "required": false; }; "config": { "alias": "config"; "required": false; }; "controlName": { "alias": "controlName"; "required": false; }; "removeTitle": { "alias": "removeTitle"; "required": false; }; "useAdvancedChartOptions": { "alias": "useAdvancedChartOptions"; "required": false; }; }, {}, never, never, true, never>;
552
+ }
553
+
554
+ export { AXIS_TYPES, AddButtonTypes, CHART_LINE_TYPES, CHART_RENDER_TYPES, DATAPOINT_LIBRARY_FRAGMENT, DatapointAttributesFormComponent, DatapointAttributesFormValidationService, DatapointLabelPipe, DatapointLibraryService, DatapointSelectionListComponent, DatapointSelectorComponent, DatapointSelectorListItemComponent, DatapointSelectorModalComponent, DatapointSelectorModule, DatapointSelectorService, DatapointTemplatePopoverComponent, IncludesDatapointPipe, WidgetDatapointsSelectorComponent };
471
555
  export type { AddButtonType, AxisTypes, ChartLineTypes, ChartRenderTypes, DatapointAction, DatapointAttributesFormConfig, DatapointSelectorModalAssetSelectorOptions, DatapointSelectorModalOptions, KPIDetails, ManagedObjectKPI };
472
556
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../datapoint-selector/datapoint-attributes-form/datapoint-attributes.model.ts","../../datapoint-selector/datapoint-selection.model.ts","../../datapoint-selector/datapoint-library.service.ts","../../datapoint-selector/datapoint-selector.component.ts","../../datapoint-selector/datapoint-selector-modal/datapoint-selector-modal.component.ts","../../datapoint-selector/datapoint-selector-list-item/datapoint-selector-list-item.component.ts","../../datapoint-selector/datapoint-selector-modal/datapoint-selector-modal.model.ts","../../datapoint-selector/datapoint-selector.service.ts","../../datapoint-selector/datapoint-selection-list/datapoint-selection-list.component.ts","../../datapoint-selector/datapoint-template-popover/datapoint-template-popover.component.ts","../../datapoint-selector/pipes/includes-datapoint.pipe.ts","../../datapoint-selector/pipes/datapoint-label.pipe.ts","../../datapoint-selector/pipes/filter-datapoints.pipe.ts","../../datapoint-selector/datapoint-attributes-form/datapoint-attributes-form-validation.service.ts","../../datapoint-selector/datapoint-attributes-form/datapoint-attributes-form.component.ts","../../datapoint-selector/datapoint-selector.module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA;;;;;;;;;;AAMM;AAEN;;;;;;;;;;;;;;;;;;;AASM;AAEN;;;;;;;;;;;;;;;;;;;AASM;;ACrBN;;;;AAKE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;AAEK;AACJ;AACD;;;AAIC;;AAED;;;;;;;;;;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A;AACA;;AAEA;;;;;;;;;;;;AAaT;;AAEI;;;AAGJ;;;AAIoB;AAKpB;AAKA;AAMA;AAMA;AAOA;AAeA;AASA;AAIA;AAOA;AAYA;AAYA;AAMA;AAcA;AAQA;;;AAOD;;AC3MD;;;;AA+BuC;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../datapoint-selector/datapoint-attributes-form/datapoint-attributes.model.ts","../../datapoint-selector/datapoint-selection.model.ts","../../datapoint-selector/datapoint-library.service.ts","../../datapoint-selector/datapoint-selector.component.ts","../../datapoint-selector/datapoint-selector-modal/datapoint-selector-modal.component.ts","../../datapoint-selector/datapoint-selector-list-item/datapoint-selector-list-item.component.ts","../../datapoint-selector/datapoint-selector-modal/datapoint-selector-modal.model.ts","../../datapoint-selector/datapoint-selector.service.ts","../../datapoint-selector/datapoint-selection-list/datapoint-selection-list.component.ts","../../datapoint-selector/datapoint-template-popover/datapoint-template-popover.component.ts","../../datapoint-selector/pipes/includes-datapoint.pipe.ts","../../datapoint-selector/pipes/datapoint-label.pipe.ts","../../datapoint-selector/pipes/filter-datapoints.pipe.ts","../../datapoint-selector/datapoint-attributes-form/datapoint-attributes-form-validation.service.ts","../../datapoint-selector/datapoint-attributes-form/datapoint-attributes-form.component.ts","../../datapoint-selector/datapoint-selector.module.ts","../../datapoint-selector/widget-datapoints-selector.component.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA;;;;;;;;;;AAMM;AAEN;;;;;;;;;;;;;;;;;;;AASM;AAEN;;;;;;;;;;;;;;;;;;;AASM;;ACrBN;;;;AAKE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;AAEK;AACJ;AACD;;;AAIC;;AAED;;;;;;;;;;;;AAaA;AAEK;;ACzCN;AAII;AACA;AACA;AACA;;AAHQ;;AAoBJ;AAUA;A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AAEI;;;AAGJ;;;AAIoB;AAKpB;AAKA;AAMA;AAMA;AAOA;AAeA;AASA;AAIA;AAOA;AAYA;AAYA;AAMA;AAcA;AAQA;;;AAOD;;AC3MD;;;;AA+BuC;;AClCvC;;AAEG;AACH;AAgBE;;AAEG;AACM;AAET;;AAEG;;AAGH;;;AAGG;AACM;AAET;;;;AAIG;AACM;AAET;;AAEG;AACM;AAET;;;;;AAKG;AACM;AAET;;;;;AAKG;AACM;AAET;;;;AAIG;AACM;AAET;;;;;;;AAOG;AACM;;AAGT;AAEA;;AAGA;AACA;AAGA;AAEA;AAcA;AAKA;AAWA;AAYA;;;;;AAKG;AACH;;;AAgBD;;;"}
@@ -237,10 +237,10 @@ class ActilityDeviceRegistrationService {
237
237
  error.message = data.message;
238
238
  throw error;
239
239
  }
240
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationService, deps: [{ token: i1.InventoryService }, { token: i1.FetchClient }, { token: i2.TranslateService }, { token: i1.ApplicationService }, { token: i3.OptionsService }, { token: i3.AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
241
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationService, providedIn: 'root' }); }
240
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationService, deps: [{ token: i1.InventoryService }, { token: i1.FetchClient }, { token: i2.TranslateService }, { token: i1.ApplicationService }, { token: i3.OptionsService }, { token: i3.AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
241
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationService, providedIn: 'root' }); }
242
242
  }
243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationService, decorators: [{
243
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationService, decorators: [{
244
244
  type: Injectable,
245
245
  args: [{ providedIn: 'root' }]
246
246
  }], ctorParameters: () => [{ type: i1.InventoryService }, { type: i1.FetchClient }, { type: i2.TranslateService }, { type: i1.ApplicationService }, { type: i3.OptionsService }, { type: i3.AppStateService }] });
@@ -461,10 +461,10 @@ class ActilityDeviceRegistrationComponent {
461
461
  this.unsubscribe$.next();
462
462
  this.unsubscribe$.complete();
463
463
  }
464
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationComponent, deps: [{ token: i1$1.BsModalRef }, { token: ActilityDeviceRegistrationService }, { token: i3.GainsightService }], target: i0.ɵɵFactoryTarget.Component }); }
465
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ActilityDeviceRegistrationComponent, isStandalone: true, selector: "c8y-actility-registration", ngImport: i0, template: "<c8y-modal\n [title]=\"'Actility LoRa registration' | translate\"\n [headerClasses]=\"'dialog-header'\"\n [customFooter]=\"true\"\n>\n <ng-container c8y-modal-title>\n <span [c8yIcon]=\"'c8y-device-connect'\"></span>\n </ng-container>\n\n <ng-container *ngIf=\"state === 'loadPending'; else registrationForm\">\n <div class=\"p-16 text-center\">\n <c8y-loading></c8y-loading>\n </div>\n </ng-container>\n\n <!--Formly schema is rendered-->\n <ng-template #registrationForm>\n <c8y-stepper\n [hideStepProgress]=\"true\"\n c8y-modal-body\n linear\n *ngIf=\"(errorMessages$ | async).length === 0; else errorMessagesPresent\"\n >\n <cdk-step [stepControl]=\"form\">\n <div class=\"p-b-16\">\n <p class=\"modal-subtitle sticky-top\">\n {{ 'Register a single Actility device' | translate }}\n </p>\n <formly-form\n class=\"formly-group-array-cols d-block p-l-24 p-r-24 p-t-16\"\n [form]=\"form\"\n [fields]=\"fields\"\n [model]=\"model\"\n ></formly-form>\n </div>\n\n <c8y-stepper-buttons\n class=\"sticky-bottom d-block p-t-16 p-b-16 separator-top bg-level-0\"\n [labels]=\"registrationStepLabels\"\n (onNext)=\"register($event)\"\n (onCancel)=\"bsModalRef.hide()\"\n [showButtons]=\"{ cancel: true, next: true }\"\n [pending]=\"state === 'registrationPending'\"\n [disabled]=\"!form?.valid\"\n ></c8y-stepper-buttons>\n </cdk-step>\n <cdk-step state=\"final\">\n <!--success scenario-->\n <div\n class=\"p-16 text-center\"\n *ngIf=\"state === 'registrationPending'\"\n >\n <c8y-loading></c8y-loading>\n </div>\n <div class=\"m-24\">\n <c8y-operation-result\n class=\"lead m-b-0\"\n type=\"success\"\n *ngIf=\"state === 'registrationSuccess'\"\n text=\"{{ 'Device registered' | translate }}\"\n [size]=\"84\"\n [vertical]=\"true\"\n ></c8y-operation-result>\n </div>\n <c8y-stepper-buttons\n class=\"sticky-bottom d-block p-t-16 p-b-16 separator-top bg-level-0\"\n (onCustom)=\"bsModalRef.hide()\"\n [showButtons]=\"{ custom: true }\"\n [labels]=\"finalStepLabels\"\n ></c8y-stepper-buttons>\n </cdk-step>\n </c8y-stepper>\n </ng-template>\n\n <!--Failure scenario-->\n <ng-template #errorMessagesPresent>\n <div class=\"m-24\">\n <c8y-operation-result\n class=\"lead\"\n type=\"error\"\n *ngIf=\"state === 'registrationError'\"\n text=\"{{ 'Failed to register' | translate }}\"\n [size]=\"84\"\n [vertical]=\"true\"\n ></c8y-operation-result>\n <div\n class=\"m-b-8\"\n *ngFor=\"let msg of errorMessages$ | async\"\n data-cy=\"actility-device-registration.component--registration-error\"\n [ngClass]=\"{\n 'text-center': state === 'registrationError',\n 'alert alert-danger': state === 'loadError'\n }\"\n >\n <span [innerHTML]=\"msg | translate\"></span>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button\n class=\"btn btn-default\"\n title=\"{{ 'Close' | translate }}\"\n type=\"button\"\n (click)=\"bsModalRef.hide()\"\n >\n {{ 'Close' | translate }}\n </button>\n </div>\n </ng-template>\n</c8y-modal>\n", dependencies: [{ kind: "component", type: ModalComponent, selector: "c8y-modal", inputs: ["disabled", "close", "dismiss", "title", "body", "customFooter", "headerClasses", "labels"], outputs: ["onDismiss", "onClose"] }, { kind: "directive", type: IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LoadingComponent, selector: "c8y-loading", inputs: ["layout", "progress", "message"] }, { kind: "component", type: C8yStepper, selector: "c8y-stepper", inputs: ["disableDefaultIcons", "disableProgressButtons", "customClasses", "hideStepProgress", "useStepLabelsAsTitlesOnly"], outputs: ["onStepChange"] }, { kind: "component", type: CdkStep, selector: "cdk-step", inputs: ["stepControl", "label", "errorMessage", "aria-label", "aria-labelledby", "state", "editable", "optional", "completed", "hasError"], outputs: ["interacted"], exportAs: ["cdkStep"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i4.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }, { kind: "component", type: C8yStepperButtons, selector: "c8y-stepper-buttons", inputs: ["labels", "pending", "disabled", "showButtons"], outputs: ["onCancel", "onNext", "onBack", "onCustom"] }, { kind: "component", type: OperationResultComponent, selector: "c8y-operation-result", inputs: ["text", "vertical", "size", "type"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }] }); }
464
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationComponent, deps: [{ token: i1$1.BsModalRef }, { token: ActilityDeviceRegistrationService }, { token: i3.GainsightService }], target: i0.ɵɵFactoryTarget.Component }); }
465
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.17", type: ActilityDeviceRegistrationComponent, isStandalone: true, selector: "c8y-actility-registration", ngImport: i0, template: "<c8y-modal\n [title]=\"'Actility LoRa registration' | translate\"\n [headerClasses]=\"'dialog-header'\"\n [customFooter]=\"true\"\n>\n <ng-container c8y-modal-title>\n <span [c8yIcon]=\"'c8y-device-connect'\"></span>\n </ng-container>\n\n <ng-container *ngIf=\"state === 'loadPending'; else registrationForm\">\n <div class=\"p-16 text-center\">\n <c8y-loading></c8y-loading>\n </div>\n </ng-container>\n\n <!--Formly schema is rendered-->\n <ng-template #registrationForm>\n <c8y-stepper\n [hideStepProgress]=\"true\"\n c8y-modal-body\n linear\n *ngIf=\"(errorMessages$ | async).length === 0; else errorMessagesPresent\"\n >\n <cdk-step [stepControl]=\"form\">\n <div class=\"p-b-16\">\n <p class=\"modal-subtitle sticky-top\">\n {{ 'Register a single Actility device' | translate }}\n </p>\n <formly-form\n class=\"formly-group-array-cols d-block p-l-24 p-r-24 p-t-16\"\n [form]=\"form\"\n [fields]=\"fields\"\n [model]=\"model\"\n ></formly-form>\n </div>\n\n <c8y-stepper-buttons\n class=\"sticky-bottom d-block p-t-16 p-b-16 separator-top bg-level-0\"\n [labels]=\"registrationStepLabels\"\n (onNext)=\"register($event)\"\n (onCancel)=\"bsModalRef.hide()\"\n [showButtons]=\"{ cancel: true, next: true }\"\n [pending]=\"state === 'registrationPending'\"\n [disabled]=\"!form?.valid\"\n ></c8y-stepper-buttons>\n </cdk-step>\n <cdk-step state=\"final\">\n <!--success scenario-->\n <div\n class=\"p-16 text-center\"\n *ngIf=\"state === 'registrationPending'\"\n >\n <c8y-loading></c8y-loading>\n </div>\n <div class=\"m-24\">\n <c8y-operation-result\n class=\"lead m-b-0\"\n type=\"success\"\n *ngIf=\"state === 'registrationSuccess'\"\n text=\"{{ 'Device registered' | translate }}\"\n [size]=\"84\"\n [vertical]=\"true\"\n ></c8y-operation-result>\n </div>\n <c8y-stepper-buttons\n class=\"sticky-bottom d-block p-t-16 p-b-16 separator-top bg-level-0\"\n (onCustom)=\"bsModalRef.hide()\"\n [showButtons]=\"{ custom: true }\"\n [labels]=\"finalStepLabels\"\n ></c8y-stepper-buttons>\n </cdk-step>\n </c8y-stepper>\n </ng-template>\n\n <!--Failure scenario-->\n <ng-template #errorMessagesPresent>\n <div class=\"m-24\">\n <c8y-operation-result\n class=\"lead\"\n type=\"error\"\n *ngIf=\"state === 'registrationError'\"\n text=\"{{ 'Failed to register' | translate }}\"\n [size]=\"84\"\n [vertical]=\"true\"\n ></c8y-operation-result>\n <div\n class=\"m-b-8\"\n *ngFor=\"let msg of errorMessages$ | async\"\n data-cy=\"actility-device-registration.component--registration-error\"\n [ngClass]=\"{\n 'text-center': state === 'registrationError',\n 'alert alert-danger': state === 'loadError'\n }\"\n >\n <span [innerHTML]=\"msg | translate\"></span>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button\n class=\"btn btn-default\"\n title=\"{{ 'Close' | translate }}\"\n type=\"button\"\n (click)=\"bsModalRef.hide()\"\n >\n {{ 'Close' | translate }}\n </button>\n </div>\n </ng-template>\n</c8y-modal>\n", dependencies: [{ kind: "component", type: ModalComponent, selector: "c8y-modal", inputs: ["disabled", "close", "dismiss", "title", "body", "customFooter", "headerClasses", "labels"], outputs: ["onDismiss", "onClose"] }, { kind: "directive", type: IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LoadingComponent, selector: "c8y-loading", inputs: ["layout", "progress", "message"] }, { kind: "component", type: C8yStepper, selector: "c8y-stepper", inputs: ["disableDefaultIcons", "disableProgressButtons", "customClasses", "hideStepProgress", "useStepLabelsAsTitlesOnly"], outputs: ["onStepChange"] }, { kind: "component", type: CdkStep, selector: "cdk-step", inputs: ["stepControl", "label", "errorMessage", "aria-label", "aria-labelledby", "state", "editable", "optional", "completed", "hasError"], outputs: ["interacted"], exportAs: ["cdkStep"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i4.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }, { kind: "component", type: C8yStepperButtons, selector: "c8y-stepper-buttons", inputs: ["labels", "pending", "disabled", "showButtons"], outputs: ["onCancel", "onNext", "onBack", "onCustom"] }, { kind: "component", type: OperationResultComponent, selector: "c8y-operation-result", inputs: ["text", "vertical", "size", "type"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }] }); }
466
466
  }
467
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationComponent, decorators: [{
467
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationComponent, decorators: [{
468
468
  type: Component,
469
469
  args: [{ selector: 'c8y-actility-registration', imports: [
470
470
  ModalComponent,
@@ -495,10 +495,10 @@ class ActilityDeviceRegistrationButtonComponent {
495
495
  ignoreBackdropClick: true
496
496
  });
497
497
  }
498
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationButtonComponent, deps: [{ token: i1$1.BsModalService }], target: i0.ɵɵFactoryTarget.Component }); }
499
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ActilityDeviceRegistrationButtonComponent, isStandalone: true, selector: "c8y-actility-registration-button", ngImport: i0, template: "<button title=\"{{ 'Actility LoRa' | translate }}\" type=\"button\" (click)=\"open()\">\n <i c8yIcon=\"c8y-device-connect\"></i>\n {{ 'Actility LoRa' | translate }}\n</button>\n", dependencies: [{ kind: "directive", type: IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }] }); }
498
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationButtonComponent, deps: [{ token: i1$1.BsModalService }], target: i0.ɵɵFactoryTarget.Component }); }
499
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.17", type: ActilityDeviceRegistrationButtonComponent, isStandalone: true, selector: "c8y-actility-registration-button", ngImport: i0, template: "<button title=\"{{ 'Actility LoRa' | translate }}\" type=\"button\" (click)=\"open()\">\n <i c8yIcon=\"c8y-device-connect\"></i>\n {{ 'Actility LoRa' | translate }}\n</button>\n", dependencies: [{ kind: "directive", type: IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }] }); }
500
500
  }
501
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationButtonComponent, decorators: [{
501
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationButtonComponent, decorators: [{
502
502
  type: Component,
503
503
  args: [{ selector: 'c8y-actility-registration-button', imports: [IconDirective, C8yTranslatePipe], template: "<button title=\"{{ 'Actility LoRa' | translate }}\" type=\"button\" (click)=\"open()\">\n <i c8yIcon=\"c8y-device-connect\"></i>\n {{ 'Actility LoRa' | translate }}\n</button>\n" }]
504
504
  }], ctorParameters: () => [{ type: i1$1.BsModalService }] });
@@ -518,10 +518,10 @@ class ActilityDeviceRegistrationFactory {
518
518
  }
519
519
  return actions;
520
520
  }
521
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationFactory, deps: [{ token: i3.TenantUiService }], target: i0.ɵɵFactoryTarget.Injectable }); }
522
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationFactory, providedIn: 'root' }); }
521
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationFactory, deps: [{ token: i3.TenantUiService }], target: i0.ɵɵFactoryTarget.Injectable }); }
522
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationFactory, providedIn: 'root' }); }
523
523
  }
524
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationFactory, decorators: [{
524
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationFactory, decorators: [{
525
525
  type: Injectable,
526
526
  args: [{
527
527
  providedIn: 'root'
@@ -529,19 +529,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
529
529
  }], ctorParameters: () => [{ type: i3.TenantUiService }] });
530
530
 
531
531
  class ActilityDeviceRegistrationModule {
532
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
533
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationModule, imports: [CoreModule,
532
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
533
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationModule, imports: [CoreModule,
534
534
  CommonModule,
535
535
  ActilityDeviceRegistrationButtonComponent,
536
536
  ActilityDeviceRegistrationComponent] }); }
537
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationModule, providers: [
537
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationModule, providers: [
538
538
  ActilityDeviceRegistrationService,
539
539
  hookDeviceRegistration(ActilityDeviceRegistrationFactory)
540
540
  ], imports: [CoreModule,
541
541
  CommonModule,
542
542
  ActilityDeviceRegistrationComponent] }); }
543
543
  }
544
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActilityDeviceRegistrationModule, decorators: [{
544
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityDeviceRegistrationModule, decorators: [{
545
545
  type: NgModule,
546
546
  args: [{
547
547
  imports: [
@@ -24,19 +24,19 @@ class AdvancedSoftwareService extends Service {
24
24
  }
25
25
  return this.isAvailable;
26
26
  }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AdvancedSoftwareService, deps: [{ token: i1.FetchClient }, { token: i2.AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
28
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AdvancedSoftwareService }); }
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AdvancedSoftwareService, deps: [{ token: i1.FetchClient }, { token: i2.AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
28
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AdvancedSoftwareService }); }
29
29
  }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AdvancedSoftwareService, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AdvancedSoftwareService, decorators: [{
31
31
  type: Injectable
32
32
  }], ctorParameters: () => [{ type: i1.FetchClient }, { type: i2.AppStateService }] });
33
33
 
34
34
  class AdvancedSoftwareModule {
35
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AdvancedSoftwareModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
36
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: AdvancedSoftwareModule, imports: [CommonModule, CoreModule] }); }
37
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AdvancedSoftwareModule, providers: [AdvancedSoftwareService, hookService('asm', AdvancedSoftwareService)], imports: [CommonModule, CoreModule] }); }
35
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AdvancedSoftwareModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
36
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.17", ngImport: i0, type: AdvancedSoftwareModule, imports: [CommonModule, CoreModule] }); }
37
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AdvancedSoftwareModule, providers: [AdvancedSoftwareService, hookService('asm', AdvancedSoftwareService)], imports: [CommonModule, CoreModule] }); }
38
38
  }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AdvancedSoftwareModule, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AdvancedSoftwareModule, decorators: [{
40
40
  type: NgModule,
41
41
  args: [{
42
42
  imports: [CommonModule, CoreModule],