@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
@@ -563,10 +563,10 @@ class Ng1ActionBarFactoryService {
563
563
  return this.bridge.getActionBarItems();
564
564
  }));
565
565
  }
566
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1ActionBarFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable }); }
567
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1ActionBarFactoryService }); }
566
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1ActionBarFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable }); }
567
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1ActionBarFactoryService }); }
568
568
  }
569
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1ActionBarFactoryService, decorators: [{
569
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1ActionBarFactoryService, decorators: [{
570
570
  type: Injectable
571
571
  }], ctorParameters: () => [{ type: BridgeService }] });
572
572
 
@@ -596,10 +596,10 @@ class Ng1ActionFactoryService {
596
596
  get() {
597
597
  return this.bridge.getActions();
598
598
  }
599
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1ActionFactoryService, deps: [{ token: BridgeService }, { token: i1.TabsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
600
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1ActionFactoryService }); }
599
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1ActionFactoryService, deps: [{ token: BridgeService }, { token: i1.TabsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
600
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1ActionFactoryService }); }
601
601
  }
602
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1ActionFactoryService, decorators: [{
602
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1ActionFactoryService, decorators: [{
603
603
  type: Injectable
604
604
  }], ctorParameters: () => [{ type: BridgeService }, { type: i1.TabsService }] });
605
605
 
@@ -689,10 +689,10 @@ class Ng1BreadcrumbFactoryService {
689
689
  this.trigger.next();
690
690
  return this.breadcrumbs;
691
691
  }
692
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1BreadcrumbFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable }); }
693
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1BreadcrumbFactoryService }); }
692
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1BreadcrumbFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable }); }
693
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1BreadcrumbFactoryService }); }
694
694
  }
695
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1BreadcrumbFactoryService, decorators: [{
695
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1BreadcrumbFactoryService, decorators: [{
696
696
  type: Injectable
697
697
  }], ctorParameters: () => [{ type: BridgeService }] });
698
698
 
@@ -710,10 +710,10 @@ class Ng1DocsFactoryService {
710
710
  get() {
711
711
  return this.links;
712
712
  }
713
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1DocsFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable }); }
714
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1DocsFactoryService }); }
713
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1DocsFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable }); }
714
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1DocsFactoryService }); }
715
715
  }
716
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1DocsFactoryService, decorators: [{
716
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1DocsFactoryService, decorators: [{
717
717
  type: Injectable
718
718
  }], ctorParameters: () => [{ type: BridgeService }] });
719
719
 
@@ -724,10 +724,10 @@ class Ng1NodesFactoryService {
724
724
  get() {
725
725
  return this.bridge.navigationNodes$;
726
726
  }
727
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1NodesFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable }); }
728
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1NodesFactoryService }); }
727
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1NodesFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable }); }
728
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1NodesFactoryService }); }
729
729
  }
730
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1NodesFactoryService, decorators: [{
730
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1NodesFactoryService, decorators: [{
731
731
  type: Injectable
732
732
  }], ctorParameters: () => [{ type: BridgeService }] });
733
733
 
@@ -739,18 +739,18 @@ class Ng1TabsFactoryService {
739
739
  get() {
740
740
  return this.tabsObservable;
741
741
  }
742
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1TabsFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable }); }
743
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1TabsFactoryService }); }
742
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1TabsFactoryService, deps: [{ token: BridgeService }], target: i0.ɵɵFactoryTarget.Injectable }); }
743
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1TabsFactoryService }); }
744
744
  }
745
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1TabsFactoryService, decorators: [{
745
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1TabsFactoryService, decorators: [{
746
746
  type: Injectable
747
747
  }], ctorParameters: () => [{ type: BridgeService }] });
748
748
 
749
749
  setAngularJSGlobal(angular);
750
750
  class UpgradeModule {
751
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
752
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: UpgradeModule, imports: [RouterModule, UpgradedServicesModule] }); }
753
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UpgradeModule, providers: [
751
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: UpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
752
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.17", ngImport: i0, type: UpgradeModule, imports: [RouterModule, UpgradedServicesModule] }); }
753
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: UpgradeModule, providers: [
754
754
  absoluteDateServiceProvider,
755
755
  bridgeServiceProvider,
756
756
  authBridgeServiceProvider,
@@ -762,7 +762,7 @@ class UpgradeModule {
762
762
  hookDocs(Ng1DocsFactoryService)
763
763
  ], imports: [RouterModule, UpgradedServicesModule] }); }
764
764
  }
765
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UpgradeModule, decorators: [{
765
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: UpgradeModule, decorators: [{
766
766
  type: NgModule,
767
767
  args: [{
768
768
  imports: [RouterModule, UpgradedServicesModule],
@@ -902,10 +902,10 @@ class ServerMessagesService {
902
902
  translate(s) {
903
903
  return this.translateService.instant(s);
904
904
  }
905
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ServerMessagesService, deps: [{ token: i1$1.TranslateService }, { token: HOOK_PATTERN_MESSAGES }], target: i0.ɵɵFactoryTarget.Injectable }); }
906
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ServerMessagesService }); }
905
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ServerMessagesService, deps: [{ token: i1$1.TranslateService }, { token: HOOK_PATTERN_MESSAGES }], target: i0.ɵɵFactoryTarget.Injectable }); }
906
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ServerMessagesService }); }
907
907
  }
908
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ServerMessagesService, decorators: [{
908
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ServerMessagesService, decorators: [{
909
909
  type: Injectable
910
910
  }], ctorParameters: () => [{ type: i1$1.TranslateService }, { type: undefined, decorators: [{
911
911
  type: Inject,
@@ -1453,10 +1453,10 @@ class DashboardBridgeService {
1453
1453
  this.contextDashboardService.formDisabled = scope.forms.componentForm.$invalid;
1454
1454
  return scope;
1455
1455
  }
1456
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DashboardBridgeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1457
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DashboardBridgeService, providedIn: 'root' }); }
1456
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: DashboardBridgeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1457
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: DashboardBridgeService, providedIn: 'root' }); }
1458
1458
  }
1459
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DashboardBridgeService, decorators: [{
1459
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: DashboardBridgeService, decorators: [{
1460
1460
  type: Injectable,
1461
1461
  args: [{ providedIn: 'root' }]
1462
1462
  }], ctorParameters: () => [] });
@@ -1496,10 +1496,10 @@ class WidgetComponent {
1496
1496
  this.resizeSubscription.unsubscribe();
1497
1497
  }
1498
1498
  }
1499
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetComponent, deps: [{ token: i1.WidgetsDashboardComponent, optional: true }, { token: DashboardBridgeService }, { token: i0.ElementRef }, { token: i1.DashboardChildComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
1500
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: WidgetComponent, isStandalone: true, selector: "c8y-widget-legacy", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1499
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: WidgetComponent, deps: [{ token: i1.WidgetsDashboardComponent, optional: true }, { token: DashboardBridgeService }, { token: i0.ElementRef }, { token: i1.DashboardChildComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
1500
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.17", type: WidgetComponent, isStandalone: true, selector: "c8y-widget-legacy", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1501
1501
  }
1502
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetComponent, decorators: [{
1502
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: WidgetComponent, decorators: [{
1503
1503
  type: Component,
1504
1504
  args: [{
1505
1505
  selector: 'c8y-widget-legacy',
@@ -1525,10 +1525,10 @@ class LegacyDeviceSelectorComponent {
1525
1525
  this.ng1Scope.$destroy();
1526
1526
  }
1527
1527
  }
1528
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LegacyDeviceSelectorComponent, deps: [{ token: DashboardBridgeService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
1529
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: LegacyDeviceSelectorComponent, isStandalone: true, selector: "c8y-device-selector-legacy", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1528
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LegacyDeviceSelectorComponent, deps: [{ token: DashboardBridgeService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
1529
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.17", type: LegacyDeviceSelectorComponent, isStandalone: true, selector: "c8y-device-selector-legacy", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1530
1530
  }
1531
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LegacyDeviceSelectorComponent, decorators: [{
1531
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LegacyDeviceSelectorComponent, decorators: [{
1532
1532
  type: Component,
1533
1533
  args: [{
1534
1534
  selector: 'c8y-device-selector-legacy',
@@ -1590,25 +1590,25 @@ class Ng1ComponentFactoryService {
1590
1590
  });
1591
1591
  return components;
1592
1592
  }
1593
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1ComponentFactoryService, deps: [{ token: DashboardBridgeService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1594
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1ComponentFactoryService }); }
1593
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1ComponentFactoryService, deps: [{ token: DashboardBridgeService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1594
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1ComponentFactoryService }); }
1595
1595
  }
1596
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Ng1ComponentFactoryService, decorators: [{
1596
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: Ng1ComponentFactoryService, decorators: [{
1597
1597
  type: Injectable
1598
1598
  }], ctorParameters: () => [{ type: DashboardBridgeService }] });
1599
1599
 
1600
1600
  class DashboardUpgradeModule {
1601
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DashboardUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1602
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: DashboardUpgradeModule, imports: [CommonModule,
1601
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: DashboardUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1602
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.17", ngImport: i0, type: DashboardUpgradeModule, imports: [CommonModule,
1603
1603
  C8yTranslateModule,
1604
1604
  AssetSelectorModule,
1605
1605
  LegacyDeviceSelectorComponent,
1606
1606
  WidgetComponent] }); }
1607
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DashboardUpgradeModule, providers: [hookComponent(Ng1ComponentFactoryService)], imports: [CommonModule,
1607
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: DashboardUpgradeModule, providers: [hookComponent(Ng1ComponentFactoryService)], imports: [CommonModule,
1608
1608
  C8yTranslateModule,
1609
1609
  AssetSelectorModule] }); }
1610
1610
  }
1611
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DashboardUpgradeModule, decorators: [{
1611
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: DashboardUpgradeModule, decorators: [{
1612
1612
  type: NgModule,
1613
1613
  args: [{
1614
1614
  imports: [
@@ -13,10 +13,10 @@ class InventoryRoleSelector extends UpgradeComponent {
13
13
  constructor(elementRef, injector) {
14
14
  super('c8yInventoryRoleSelector', elementRef, injector);
15
15
  }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InventoryRoleSelector, deps: [{ token: i0.ElementRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive }); }
17
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: InventoryRoleSelector, isStandalone: true, selector: "c8y-inventory-role-selector-upgraded", inputs: { assignedRoles: "assignedRoles", inheritedRoles: "inheritedRoles", inventoryRoles: "inventoryRoles", ownerAllowedRoles: "ownerAllowedRoles", disableEditForExternalUsers: "disableEditForExternalUsers" }, outputs: { onApply: "onApply" }, usesInheritance: true, ngImport: i0 }); }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: InventoryRoleSelector, deps: [{ token: i0.ElementRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive }); }
17
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.17", type: InventoryRoleSelector, isStandalone: true, selector: "c8y-inventory-role-selector-upgraded", inputs: { assignedRoles: "assignedRoles", inheritedRoles: "inheritedRoles", inventoryRoles: "inventoryRoles", ownerAllowedRoles: "ownerAllowedRoles", disableEditForExternalUsers: "disableEditForExternalUsers" }, outputs: { onApply: "onApply" }, usesInheritance: true, ngImport: i0 }); }
18
18
  }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InventoryRoleSelector, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: InventoryRoleSelector, decorators: [{
20
20
  type: Directive,
21
21
  args: [{ selector: 'c8y-inventory-role-selector-upgraded' }]
22
22
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Injector }], propDecorators: { assignedRoles: [{
@@ -146,10 +146,10 @@ class RolesAssetTreeComponent {
146
146
  }
147
147
  return true;
148
148
  }
149
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: RolesAssetTreeComponent, deps: [{ token: i1.Ng1UserInventoryRolesService, optional: true }, { token: i1.Ng1RolesService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
150
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: RolesAssetTreeComponent, isStandalone: true, selector: "c8y-roles-asset-tree-upgraded", inputs: { user: "user", searchFilter: "searchFilter", assignedRoles: "assignedRoles", ownerAssignedRoles: "ownerAssignedRoles", expandGroups: "expandGroups", pageSize: "pageSize", paginationOffset: "paginationOffset", disableEditForExternalUsers: "disableEditForExternalUsers" }, outputs: { onChangeRoles: "onChangeRoles", onChangeItemCount: "onChangeItemCount" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"c8y-list__group m-b-0 no-border-last\">\n <div\n class=\"c8y-list__item\"\n *ngFor=\"\n let asset of flatAssetTree$ | async | slice: paginationOffset:paginationOffset + pageSize\n \"\n >\n <div\n class=\"c8y-list__item__block\"\n [title]=\"\n (asset._subGroups && asset.isOpened\n ? asset._subGroups.length\n ? asset._subGroups.length > 1\n ? manySubgroupsTitle\n : oneSubgroupTitle\n : noSubgroupTitle\n : clickToOpenTitle\n ) | translate: { count: asset._subGroups?.length }\n \"\n >\n <div [ngStyle]=\"{ 'padding-left': asset._depth * 8 + 'px' }\"></div>\n <div class=\"c8y-list__item__icon m-t-4 p-l-0\">\n <button\n class=\"btn-clean\"\n [attr.aria-label]=\"(!asset.isOpened ? expandAriaLabel : collapseAriaLabel) | translate\"\n type=\"button\"\n (click)=\"loadChildren(asset)\"\n >\n <i\n class=\"c8y-icon-duocolor\"\n c8yIcon=\"c8y-group\"\n *ngIf=\"!asset.isOpened\"\n ></i>\n <i\n class=\"c8y-icon-duocolor\"\n c8yIcon=\"c8y-group-open\"\n *ngIf=\"asset.isOpened\"\n ></i>\n </button>\n </div>\n <div class=\"c8y-list__item__body\">\n <div class=\"d-flex a-i-center\">\n <div class=\"col-sm-7 p-l-0 col-xs-12\">\n <button\n class=\"btn-clean\"\n type=\"button\"\n (click)=\"loadChildren(asset)\"\n >\n <span\n class=\"text-truncate\"\n [ngStyle]=\"{ cursor: 'pointer' }\"\n title=\"{{ asset.name }}\"\n >\n {{ asset.name }}\n </span>\n </button>\n </div>\n <div class=\"p-t-8 col-xs-12 visible-xs\"></div>\n <div class=\"col-sm-5 p-l-0 col-xs-12 p-r-0\">\n <div class=\"d-flex\">\n <div class=\"flex-grow form-group-sm max-width-100\">\n <c8y-inventory-role-selector-upgraded\n [ownerAllowedRoles]=\"\n ownerAllAssignedRoles ? ownerAllAssignedRoles[asset.id] : undefined\n \"\n [inheritedRoles]=\"inheritedRoles ? inheritedRoles[asset.id] : undefined\"\n [assignedRoles]=\"assignedRoles ? assignedRoles[asset.id] : undefined\"\n [inventoryRoles]=\"inventoryRoles\"\n [disableEditForExternalUsers]=\"disableEditForExternalUsers\"\n (onApply)=\"onApply($event, asset.id)\"\n (click)=\"$event.stopPropagation()\"\n ></c8y-inventory-role-selector-upgraded>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <c8y-ui-empty-state\n [icon]=\"'search'\"\n [title]=\"'No matching group found among the expanded groups.' | translate\"\n [subtitle]=\"'Try to expand more groups or to refine your search term.' | translate\"\n *ngIf=\"searchFilter && !(flatAssetTree$ | async).length\"\n [horizontal]=\"false\"\n ></c8y-ui-empty-state>\n</div>\n", dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: InventoryRoleSelector, selector: "c8y-inventory-role-selector-upgraded", inputs: ["assignedRoles", "inheritedRoles", "inventoryRoles", "ownerAllowedRoles", "disableEditForExternalUsers"], outputs: ["onApply"] }, { kind: "component", type: EmptyStateComponent, selector: "c8y-ui-empty-state", inputs: ["icon", "title", "subtitle", "horizontal"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: SlicePipe, name: "slice" }] }); }
149
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: RolesAssetTreeComponent, deps: [{ token: i1.Ng1UserInventoryRolesService, optional: true }, { token: i1.Ng1RolesService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
150
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.17", type: RolesAssetTreeComponent, isStandalone: true, selector: "c8y-roles-asset-tree-upgraded", inputs: { user: "user", searchFilter: "searchFilter", assignedRoles: "assignedRoles", ownerAssignedRoles: "ownerAssignedRoles", expandGroups: "expandGroups", pageSize: "pageSize", paginationOffset: "paginationOffset", disableEditForExternalUsers: "disableEditForExternalUsers" }, outputs: { onChangeRoles: "onChangeRoles", onChangeItemCount: "onChangeItemCount" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"c8y-list__group m-b-0 no-border-last\">\n <div\n class=\"c8y-list__item\"\n *ngFor=\"\n let asset of flatAssetTree$ | async | slice: paginationOffset:paginationOffset + pageSize\n \"\n >\n <div\n class=\"c8y-list__item__block\"\n [title]=\"\n (asset._subGroups && asset.isOpened\n ? asset._subGroups.length\n ? asset._subGroups.length > 1\n ? manySubgroupsTitle\n : oneSubgroupTitle\n : noSubgroupTitle\n : clickToOpenTitle\n ) | translate: { count: asset._subGroups?.length }\n \"\n >\n <div [ngStyle]=\"{ 'padding-left': asset._depth * 8 + 'px' }\"></div>\n <div class=\"c8y-list__item__icon m-t-4 p-l-0\">\n <button\n class=\"btn-clean\"\n [attr.aria-label]=\"(!asset.isOpened ? expandAriaLabel : collapseAriaLabel) | translate\"\n type=\"button\"\n (click)=\"loadChildren(asset)\"\n >\n <i\n class=\"c8y-icon-duocolor\"\n c8yIcon=\"c8y-group\"\n *ngIf=\"!asset.isOpened\"\n ></i>\n <i\n class=\"c8y-icon-duocolor\"\n c8yIcon=\"c8y-group-open\"\n *ngIf=\"asset.isOpened\"\n ></i>\n </button>\n </div>\n <div class=\"c8y-list__item__body\">\n <div class=\"d-flex a-i-center\">\n <div class=\"col-sm-7 p-l-0 col-xs-12\">\n <button\n class=\"btn-clean\"\n type=\"button\"\n (click)=\"loadChildren(asset)\"\n >\n <span\n class=\"text-truncate\"\n [ngStyle]=\"{ cursor: 'pointer' }\"\n title=\"{{ asset.name }}\"\n >\n {{ asset.name }}\n </span>\n </button>\n </div>\n <div class=\"p-t-8 col-xs-12 visible-xs\"></div>\n <div class=\"col-sm-5 p-l-0 col-xs-12 p-r-0\">\n <div class=\"d-flex\">\n <div class=\"flex-grow form-group-sm max-width-100\">\n <c8y-inventory-role-selector-upgraded\n [ownerAllowedRoles]=\"\n ownerAllAssignedRoles ? ownerAllAssignedRoles[asset.id] : undefined\n \"\n [inheritedRoles]=\"inheritedRoles ? inheritedRoles[asset.id] : undefined\"\n [assignedRoles]=\"assignedRoles ? assignedRoles[asset.id] : undefined\"\n [inventoryRoles]=\"inventoryRoles\"\n [disableEditForExternalUsers]=\"disableEditForExternalUsers\"\n (onApply)=\"onApply($event, asset.id)\"\n (click)=\"$event.stopPropagation()\"\n ></c8y-inventory-role-selector-upgraded>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <c8y-ui-empty-state\n [icon]=\"'search'\"\n [title]=\"'No matching group found among the expanded groups.' | translate\"\n [subtitle]=\"'Try to expand more groups or to refine your search term.' | translate\"\n *ngIf=\"searchFilter && !(flatAssetTree$ | async).length\"\n [horizontal]=\"false\"\n ></c8y-ui-empty-state>\n</div>\n", dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: InventoryRoleSelector, selector: "c8y-inventory-role-selector-upgraded", inputs: ["assignedRoles", "inheritedRoles", "inventoryRoles", "ownerAllowedRoles", "disableEditForExternalUsers"], outputs: ["onApply"] }, { kind: "component", type: EmptyStateComponent, selector: "c8y-ui-empty-state", inputs: ["icon", "title", "subtitle", "horizontal"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: SlicePipe, name: "slice" }] }); }
151
151
  }
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: RolesAssetTreeComponent, decorators: [{
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: RolesAssetTreeComponent, decorators: [{
153
153
  type: Component,
154
154
  args: [{ selector: 'c8y-roles-asset-tree-upgraded', imports: [
155
155
  NgFor,
@@ -189,11 +189,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
189
189
  }] } });
190
190
 
191
191
  class UserRolesModule {
192
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UserRolesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
193
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: UserRolesModule, imports: [CoreModule, InventoryRoleSelector, RolesAssetTreeComponent] }); }
194
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UserRolesModule, imports: [CoreModule, RolesAssetTreeComponent] }); }
192
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: UserRolesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
193
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.17", ngImport: i0, type: UserRolesModule, imports: [CoreModule, InventoryRoleSelector, RolesAssetTreeComponent] }); }
194
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: UserRolesModule, imports: [CoreModule, RolesAssetTreeComponent] }); }
195
195
  }
196
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UserRolesModule, decorators: [{
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: UserRolesModule, decorators: [{
197
197
  type: NgModule,
198
198
  args: [{
199
199
  imports: [CoreModule, InventoryRoleSelector, RolesAssetTreeComponent]
@@ -48,10 +48,10 @@ class AssetTableWidgetFactory {
48
48
  return [];
49
49
  }));
50
50
  }
51
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AssetTableWidgetFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
52
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AssetTableWidgetFactory, providedIn: 'root' }); }
51
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AssetTableWidgetFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
52
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AssetTableWidgetFactory, providedIn: 'root' }); }
53
53
  }
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AssetTableWidgetFactory, decorators: [{
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AssetTableWidgetFactory, decorators: [{
55
55
  type: Injectable,
56
56
  args: [{
57
57
  providedIn: 'root'
@@ -96,10 +96,10 @@ class AssetTableConfigFactory {
96
96
  return [];
97
97
  }));
98
98
  }
99
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AssetTableConfigFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
100
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AssetTableConfigFactory, providedIn: 'root' }); }
99
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AssetTableConfigFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
100
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AssetTableConfigFactory, providedIn: 'root' }); }
101
101
  }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AssetTableConfigFactory, decorators: [{
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AssetTableConfigFactory, decorators: [{
103
103
  type: Injectable,
104
104
  args: [{
105
105
  providedIn: 'root'
@@ -157,13 +157,19 @@ class DatapointGraphFactory {
157
157
  return [];
158
158
  }));
159
159
  }
160
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DatapointGraphFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
161
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DatapointGraphFactory }); }
160
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: DatapointGraphFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
161
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: DatapointGraphFactory }); }
162
162
  }
163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DatapointGraphFactory, decorators: [{
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: DatapointGraphFactory, decorators: [{
164
164
  type: Injectable
165
165
  }] });
166
166
 
167
+ const DATAPOINT_SELECT_DEFAULT_OPTIONS = {
168
+ showRange: true,
169
+ showChart: true
170
+ };
171
+ const MIN_ACTIVE_COUNT = 1;
172
+
167
173
  const datapointGraphWidgetproviders = [
168
174
  hookWidget(DatapointGraphFactory),
169
175
  hookPreview({
@@ -195,6 +201,36 @@ const datapointGraphWidgetproviders = [
195
201
  widgetControls: datapointsGraphWidgetControls
196
202
  },
197
203
  loadComponent: () => import('@c8y/ngx-components/context-dashboard').then(m => m.GlobalContextSectionComponent)
204
+ }),
205
+ hookWidgetConfig({
206
+ widgetId: defaultWidgetIds.DATAPOINTS_GRAPH,
207
+ label: gettext('Alarm selection'),
208
+ loadComponent: () => import('@c8y/ngx-components/alarm-event-selector').then(m => m.WidgetAlarmSelectorComponent),
209
+ initialState: {
210
+ configStoreMode: 'MIXED'
211
+ },
212
+ priority: 100
213
+ }),
214
+ hookWidgetConfig({
215
+ widgetId: defaultWidgetIds.DATAPOINTS_GRAPH,
216
+ label: gettext('Event selection'),
217
+ loadComponent: () => import('@c8y/ngx-components/alarm-event-selector').then(m => m.WidgetEventSelectorComponent),
218
+ initialState: {
219
+ configStoreMode: 'MIXED'
220
+ },
221
+ priority: 110
222
+ }),
223
+ hookWidgetConfig({
224
+ widgetId: defaultWidgetIds.DATAPOINTS_GRAPH,
225
+ label: gettext('Data point selection'),
226
+ loadComponent: () => import('@c8y/ngx-components/datapoint-selector').then(m => m.WidgetDatapointsSelectorComponent),
227
+ initialState: {
228
+ minActiveCount: MIN_ACTIVE_COUNT,
229
+ defaultFormOptions: DATAPOINT_SELECT_DEFAULT_OPTIONS,
230
+ useAdvancedChartOptions: true
231
+ },
232
+ expanded: true,
233
+ priority: 120
198
234
  })
199
235
  ];
200
236
 
@@ -1 +1 @@
1
- {"version":3,"file":"c8y-ngx-components-widgets-definitions-datapoints-graph.mjs","sources":["../../widgets/definitions/datapoints-graph/datapoint-graph-widget-controls-definition.ts","../../widgets/definitions/datapoints-graph/datapoint-graph-widget-factory.ts","../../widgets/definitions/datapoints-graph/index.ts","../../widgets/definitions/datapoints-graph/c8y-ngx-components-widgets-definitions-datapoints-graph.ts"],"sourcesContent":["import {\n defineWidgetControls,\n createAutoRefreshHandlers\n} from '@c8y/ngx-components/global-context';\n\nconst autoRefreshHandlers = createAutoRefreshHandlers();\n\nexport const datapointsGraphWidgetControls = defineWidgetControls({\n name: 'datapoints-graph-widget',\n supports: [\n 'timeRange',\n 'liveRefresh',\n 'displayMode',\n 'refreshInterval',\n 'refreshOption',\n 'dataAggregation',\n 'source',\n 'eventSourceId'\n ],\n handlers: {\n disableAutoRefresh: {\n handler: state => {\n const result = autoRefreshHandlers.disableAutoRefresh(state);\n return {\n inlineControlSettings: result?.inlineControlSettings ?? {},\n dashboardControlSettings: result?.dashboardControlSettings ?? {},\n links: result?.links ?? {},\n options: result?.options\n };\n }\n }\n },\n settings: {\n dashboard: {\n live: {\n inline: {\n showAutoRefresh: true,\n showTimeContext: true\n }\n },\n history: {\n inline: {\n showTimeContext: true,\n showAggregation: true\n }\n }\n },\n config: {\n live: {\n inline: {\n showAutoRefresh: true,\n showRefreshInterval: true\n },\n configuration: {\n showAutoRefresh: true,\n showRefreshInterval: true,\n showTimeContext: true\n }\n },\n history: {\n inline: {},\n configuration: {\n showTimeContext: true,\n showAggregation: true\n }\n }\n },\n viewAndConfig: {\n live: {\n inline: {\n showAutoRefresh: true,\n showTimeContext: true,\n showRefreshInterval: true\n },\n configuration: {\n showAutoRefresh: true,\n showRefreshInterval: true,\n showTimeContext: true\n }\n },\n history: {\n inline: {\n showTimeContext: true,\n showAggregation: true\n },\n configuration: {\n showTimeContext: true,\n showAggregation: true\n }\n }\n },\n defaultLinks: {\n dashboard: {\n live: {\n dateTimeContext: true,\n isAutoRefreshEnabled: true\n },\n history: {\n dateTimeContext: true,\n aggregation: true\n }\n },\n config: {},\n viewAndConfig: {}\n }\n }\n});\n","import { inject, Injectable } from '@angular/core';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport {\n DynamicDatapointsResolver,\n PreviewService,\n DynamicWidgetDefinition\n} from '@c8y/ngx-components';\nimport { map, Observable } from 'rxjs';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\nimport cloneDeep from 'lodash/cloneDeep';\nimport {\n exportConfigWithTargets,\n importConfigWithTargets\n} from '@c8y/ngx-components/widgets/import-export-config';\nimport { datapointsGraphWidgetControls } from './datapoint-graph-widget-controls-definition';\n\n@Injectable()\nexport class DatapointGraphFactory {\n private readonly previewFeatureService = inject(PreviewService);\n\n private readonly baseWidgetDefinition: DynamicWidgetDefinition = {\n id: defaultWidgetIds.DATAPOINTS_GRAPH,\n label: gettext('Data graph'),\n description: gettext('Displays a graph of selected data points'),\n loadComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/datapoints-graph').then(\n m => m.DatapointsGraphWidgetViewComponent\n ),\n loadConfigComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/datapoints-graph').then(\n m => m.DatapointsGraphWidgetConfigComponent\n ),\n previewImage: 'c8y-style-assets/datapoints-graph-widget.png',\n resolve: {\n datapoints: DynamicDatapointsResolver\n },\n data: {\n schema: () =>\n import(\n 'c8y-schema-loader?interfaceName=DatapointsGraphWidgetConfig!@c8y/ngx-components/echart'\n ),\n export: exportConfigWithTargets,\n import: importConfigWithTargets,\n widgetControls: datapointsGraphWidgetControls,\n settings: {\n noNewWidgets: false,\n widgetDefaults: {\n _width: 8,\n _height: 4\n },\n noDeviceTarget: true,\n groupsSelectable: false\n },\n displaySettings: {\n globalTimeContext: true,\n globalAggregationContext: true,\n globalRealtimeContext: true\n }\n }\n };\n\n get(): Observable<DynamicWidgetDefinition[]> {\n return this.previewFeatureService.getState$('ui.datapoint-graph.v2').pipe(\n map(state => {\n if (state) {\n const newWidgetDefinition = cloneDeep(this.baseWidgetDefinition);\n newWidgetDefinition.id = defaultWidgetIds.DATAPOINTS_GRAPH_NEW;\n newWidgetDefinition.data.settings.noNewWidgets = true;\n\n return [this.baseWidgetDefinition, newWidgetDefinition];\n }\n return [];\n })\n );\n }\n}\n","import { hookPreview, hookWidget } from '@c8y/ngx-components';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport { DatapointGraphFactory } from './datapoint-graph-widget-factory';\nimport {\n hookWidgetConfig,\n GlobalContextSectionComponent\n} from '@c8y/ngx-components/context-dashboard';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\nimport { datapointsGraphWidgetControls } from './datapoint-graph-widget-controls-definition';\n\nexport const datapointGraphWidgetproviders = [\n hookWidget(DatapointGraphFactory),\n hookPreview({\n key: 'ui.datapoint-graph.v2',\n label: 'Data graph',\n description: () =>\n import('@c8y/style/markdown-files/datapoint-graph-preview.md').then(m => m.default),\n settings: {\n reload: true\n }\n }),\n /* We need to register the widget config for both the new and old widget IDs. This ensures compatibility for widgets\n created with the new data graph id (e.g. if a data point graph widget was created via community plugins)\n and widgets using the default one (toggled via preview feature)\n */\n hookWidgetConfig<GlobalContextSectionComponent>({\n widgetId: defaultWidgetIds.DATAPOINTS_GRAPH_NEW,\n priority: 10,\n label: gettext('Time context'),\n initialState: {\n widgetControls: datapointsGraphWidgetControls\n },\n loadComponent: () =>\n import('@c8y/ngx-components/context-dashboard').then(m => m.GlobalContextSectionComponent)\n }),\n hookWidgetConfig<GlobalContextSectionComponent>({\n widgetId: defaultWidgetIds.DATAPOINTS_GRAPH,\n priority: 10,\n label: gettext('Time context'),\n initialState: {\n widgetControls: datapointsGraphWidgetControls\n },\n loadComponent: () =>\n import('@c8y/ngx-components/context-dashboard').then(m => m.GlobalContextSectionComponent)\n })\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAKA,MAAM,mBAAmB,GAAG,yBAAyB,EAAE;AAEhD,MAAM,6BAA6B,GAAG,oBAAoB,CAAC;AAChE,IAAA,IAAI,EAAE,yBAAyB;AAC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widgets/definitions/datapoints-graph/datapoint-graph-widget-controls-definition.ts","../../widgets/definitions/datapoints-graph/datapoint-graph-widget-factory.ts","../../widgets/definitions/datapoints-graph/datapoint-graph.constants.ts","../../widgets/definitions/datapoints-graph/index.ts","../../widgets/definitions/datapoints-graph/c8y-ngx-components-widgets-definitions-datapoints-graph.ts"],"sourcesContent":["import {\n defineWidgetControls,\n createAutoRefreshHandlers\n} from '@c8y/ngx-components/global-context';\n\nconst autoRefreshHandlers = createAutoRefreshHandlers();\n\nexport const datapointsGraphWidgetControls = defineWidgetControls({\n name: 'datapoints-graph-widget',\n supports: [\n 'timeRange',\n 'liveRefresh',\n 'displayMode',\n 'refreshInterval',\n 'refreshOption',\n 'dataAggregation',\n 'source',\n 'eventSourceId'\n ],\n handlers: {\n disableAutoRefresh: {\n handler: state => {\n const result = autoRefreshHandlers.disableAutoRefresh(state);\n return {\n inlineControlSettings: result?.inlineControlSettings ?? {},\n dashboardControlSettings: result?.dashboardControlSettings ?? {},\n links: result?.links ?? {},\n options: result?.options\n };\n }\n }\n },\n settings: {\n dashboard: {\n live: {\n inline: {\n showAutoRefresh: true,\n showTimeContext: true\n }\n },\n history: {\n inline: {\n showTimeContext: true,\n showAggregation: true\n }\n }\n },\n config: {\n live: {\n inline: {\n showAutoRefresh: true,\n showRefreshInterval: true\n },\n configuration: {\n showAutoRefresh: true,\n showRefreshInterval: true,\n showTimeContext: true\n }\n },\n history: {\n inline: {},\n configuration: {\n showTimeContext: true,\n showAggregation: true\n }\n }\n },\n viewAndConfig: {\n live: {\n inline: {\n showAutoRefresh: true,\n showTimeContext: true,\n showRefreshInterval: true\n },\n configuration: {\n showAutoRefresh: true,\n showRefreshInterval: true,\n showTimeContext: true\n }\n },\n history: {\n inline: {\n showTimeContext: true,\n showAggregation: true\n },\n configuration: {\n showTimeContext: true,\n showAggregation: true\n }\n }\n },\n defaultLinks: {\n dashboard: {\n live: {\n dateTimeContext: true,\n isAutoRefreshEnabled: true\n },\n history: {\n dateTimeContext: true,\n aggregation: true\n }\n },\n config: {},\n viewAndConfig: {}\n }\n }\n});\n","import { inject, Injectable } from '@angular/core';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport {\n DynamicDatapointsResolver,\n PreviewService,\n DynamicWidgetDefinition\n} from '@c8y/ngx-components';\nimport { map, Observable } from 'rxjs';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\nimport cloneDeep from 'lodash/cloneDeep';\nimport {\n exportConfigWithTargets,\n importConfigWithTargets\n} from '@c8y/ngx-components/widgets/import-export-config';\nimport { datapointsGraphWidgetControls } from './datapoint-graph-widget-controls-definition';\n\n@Injectable()\nexport class DatapointGraphFactory {\n private readonly previewFeatureService = inject(PreviewService);\n\n private readonly baseWidgetDefinition: DynamicWidgetDefinition = {\n id: defaultWidgetIds.DATAPOINTS_GRAPH,\n label: gettext('Data graph'),\n description: gettext('Displays a graph of selected data points'),\n loadComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/datapoints-graph').then(\n m => m.DatapointsGraphWidgetViewComponent\n ),\n loadConfigComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/datapoints-graph').then(\n m => m.DatapointsGraphWidgetConfigComponent\n ),\n previewImage: 'c8y-style-assets/datapoints-graph-widget.png',\n resolve: {\n datapoints: DynamicDatapointsResolver\n },\n data: {\n schema: () =>\n import(\n 'c8y-schema-loader?interfaceName=DatapointsGraphWidgetConfig!@c8y/ngx-components/echart'\n ),\n export: exportConfigWithTargets,\n import: importConfigWithTargets,\n widgetControls: datapointsGraphWidgetControls,\n settings: {\n noNewWidgets: false,\n widgetDefaults: {\n _width: 8,\n _height: 4\n },\n noDeviceTarget: true,\n groupsSelectable: false\n },\n displaySettings: {\n globalTimeContext: true,\n globalAggregationContext: true,\n globalRealtimeContext: true\n }\n }\n };\n\n get(): Observable<DynamicWidgetDefinition[]> {\n return this.previewFeatureService.getState$('ui.datapoint-graph.v2').pipe(\n map(state => {\n if (state) {\n const newWidgetDefinition = cloneDeep(this.baseWidgetDefinition);\n newWidgetDefinition.id = defaultWidgetIds.DATAPOINTS_GRAPH_NEW;\n newWidgetDefinition.data.settings.noNewWidgets = true;\n\n return [this.baseWidgetDefinition, newWidgetDefinition];\n }\n return [];\n })\n );\n }\n}\n","import { DatapointAttributesFormConfig } from '@c8y/ngx-components/datapoint-selector';\n\nexport const DATAPOINT_SELECT_DEFAULT_OPTIONS: Partial<DatapointAttributesFormConfig> = {\n showRange: true,\n showChart: true\n};\n\nexport const MIN_ACTIVE_COUNT = 1;\n","import { hookPreview, hookWidget } from '@c8y/ngx-components';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport { DatapointGraphFactory } from './datapoint-graph-widget-factory';\nimport {\n hookWidgetConfig,\n GlobalContextSectionComponent\n} from '@c8y/ngx-components/context-dashboard';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\nimport { datapointsGraphWidgetControls } from './datapoint-graph-widget-controls-definition';\nimport { DATAPOINT_SELECT_DEFAULT_OPTIONS, MIN_ACTIVE_COUNT } from './datapoint-graph.constants';\n\nexport const datapointGraphWidgetproviders = [\n hookWidget(DatapointGraphFactory),\n hookPreview({\n key: 'ui.datapoint-graph.v2',\n label: 'Data graph',\n description: () =>\n import('@c8y/style/markdown-files/datapoint-graph-preview.md').then(m => m.default),\n settings: {\n reload: true\n }\n }),\n /* We need to register the widget config for both the new and old widget IDs. This ensures compatibility for widgets\n created with the new data graph id (e.g. if a data point graph widget was created via community plugins)\n and widgets using the default one (toggled via preview feature)\n */\n hookWidgetConfig<GlobalContextSectionComponent>({\n widgetId: defaultWidgetIds.DATAPOINTS_GRAPH_NEW,\n priority: 10,\n label: gettext('Time context'),\n initialState: {\n widgetControls: datapointsGraphWidgetControls\n },\n loadComponent: () =>\n import('@c8y/ngx-components/context-dashboard').then(m => m.GlobalContextSectionComponent)\n }),\n hookWidgetConfig<GlobalContextSectionComponent>({\n widgetId: defaultWidgetIds.DATAPOINTS_GRAPH,\n priority: 10,\n label: gettext('Time context'),\n initialState: {\n widgetControls: datapointsGraphWidgetControls\n },\n loadComponent: () =>\n import('@c8y/ngx-components/context-dashboard').then(m => m.GlobalContextSectionComponent)\n }),\n hookWidgetConfig({\n widgetId: defaultWidgetIds.DATAPOINTS_GRAPH,\n label: gettext('Alarm selection'),\n loadComponent: () =>\n import('@c8y/ngx-components/alarm-event-selector').then(m => m.WidgetAlarmSelectorComponent),\n initialState: {\n configStoreMode: 'MIXED'\n },\n priority: 100\n }),\n hookWidgetConfig({\n widgetId: defaultWidgetIds.DATAPOINTS_GRAPH,\n label: gettext('Event selection'),\n loadComponent: () =>\n import('@c8y/ngx-components/alarm-event-selector').then(m => m.WidgetEventSelectorComponent),\n initialState: {\n configStoreMode: 'MIXED'\n },\n priority: 110\n }),\n hookWidgetConfig({\n widgetId: defaultWidgetIds.DATAPOINTS_GRAPH,\n label: gettext('Data point selection'),\n loadComponent: () =>\n import('@c8y/ngx-components/datapoint-selector').then(\n m => m.WidgetDatapointsSelectorComponent\n ),\n initialState: {\n minActiveCount: MIN_ACTIVE_COUNT,\n defaultFormOptions: DATAPOINT_SELECT_DEFAULT_OPTIONS,\n useAdvancedChartOptions: true\n },\n expanded: true,\n priority: 120\n })\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAKA,MAAM,mBAAmB,GAAG,yBAAyB,EAAE;AAEhD,MAAM,6BAA6B,GAAG,oBAAoB,CAAC;AAChE,IAAA,IAAI,EAAE,yBAAyB;AAC/B,IAAA,QAAQ,EAAE;QACR,WAAW;QACX,aAAa;QACb,aAAa;QACb,iBAAiB;QACjB,eAAe;QACf,iBAAiB;QACjB,QAAQ;QACR;AACD,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,kBAAkB,EAAE;YAClB,OAAO,EAAE,KAAK,IAAG;gBACf,MAAM,MAAM,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,KAAK,CAAC;gBAC5D,OAAO;AACL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,EAAE;AACZ,YAAA,eAAe,EAAE;AAClB,SAAA;AACD,QAAA,QAAQ,EAAE;KACX,CAAC;AACF,IAAA,gBAAgB,CAAC;QACf,QAAQ,EAAE,gBAAgB,CAAC,gBAAgB;AAC3C,QAAA,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC;AACjC,QAAA,aAAa,EAAE,MACb,OAAO,0CAA0C,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,4BAA4B,CAAC;AAC9F,QAAA,YAAY,EAAE;AACZ,YAAA,eAAe,EAAE;AAClB,SAAA;AACD,QAAA,QAAQ,EAAE;KACX,CAAC;AACF,IAAA,gBAAgB,CAAC;QACf,QAAQ,EAAE,gBAAgB,CAAC,gBAAgB;AAC3C,QAAA,KAAK,EAAE,OAAO,CAAC,sBAAsB,CAAC;AACtC,QAAA,aAAa,EAAE,MACb,OAAO,wCAAwC,CAAC,CAAC,IAAI,CACnD,CAAC,IAAI,CAAC,CAAC,iCAAiC,CACzC;AACH,QAAA,YAAY,EAAE;AACZ,YAAA,cAAc,EAAE,gBAAgB;AAChC,YAAA,kBAAkB,EAAE,gCAAgC;AACpD,YAAA,uBAAuB,EAAE;AAC1B,SAAA;AACD,QAAA,QAAQ,EAAE,IAAI;AACd,QAAA,QAAQ,EAAE;KACX;;;AChFH;;AAEG;;;;"}
@@ -4,6 +4,14 @@ import { hookWidgetConfig } from '@c8y/ngx-components/context-dashboard';
4
4
  import { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';
5
5
  import { importConfigWithTargets, exportConfigWithTargets } from '@c8y/ngx-components/widgets/import-export-config';
6
6
 
7
+ const DATAPOINT_SELECT_DEFAULT_OPTIONS = {
8
+ selectableChartLineTypes: [],
9
+ selectableAxisTypes: [],
10
+ showRedRange: true,
11
+ showYellowRange: true
12
+ };
13
+ const MIN_ACTIVE_COUNT = 1;
14
+
7
15
  const datapointsTableWidgetControls = {
8
16
  presets: ['defaultWithAggregation']
9
17
  };
@@ -55,6 +63,17 @@ const dataPointsTableWidgetProviders = [
55
63
  widgetControls: datapointsTableWidgetControls
56
64
  },
57
65
  loadComponent: () => import('@c8y/ngx-components/context-dashboard').then(m => m.GlobalContextSectionComponent)
66
+ }),
67
+ hookWidgetConfig({
68
+ widgetId: defaultWidgetIds.DATA_POINTS_TABLE,
69
+ label: gettext('Data point selection'),
70
+ loadComponent: () => import('@c8y/ngx-components/datapoint-selector').then(m => m.WidgetDatapointsSelectorComponent),
71
+ initialState: {
72
+ minActiveCount: MIN_ACTIVE_COUNT,
73
+ defaultFormOptions: DATAPOINT_SELECT_DEFAULT_OPTIONS
74
+ },
75
+ expanded: true,
76
+ priority: 100
58
77
  })
59
78
  ];
60
79
 
@@ -1 +1 @@
1
- {"version":3,"file":"c8y-ngx-components-widgets-definitions-datapoints-table.mjs","sources":["../../widgets/definitions/datapoints-table/index.ts","../../widgets/definitions/datapoints-table/c8y-ngx-components-widgets-definitions-datapoints-table.ts"],"sourcesContent":["import { gettext } from '@c8y/ngx-components/gettext';\nimport {\n DynamicComponentErrorStrategy,\n DynamicDatapointsResolver,\n DynamicWidgetDefinition,\n hookWidget\n} from '@c8y/ngx-components';\nimport {\n GlobalContextSectionComponent,\n hookWidgetConfig\n} from '@c8y/ngx-components/context-dashboard';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\nimport {\n exportConfigWithTargets,\n importConfigWithTargets\n} from '@c8y/ngx-components/widgets/import-export-config';\nimport { type WidgetControlsPresetConfig } from '@c8y/ngx-components/global-context';\n\nconst datapointsTableWidgetControls: WidgetControlsPresetConfig = {\n presets: ['defaultWithAggregation']\n};\n\nexport const dataPointsTableWidgetDefinition = {\n id: defaultWidgetIds.DATA_POINTS_TABLE,\n label: gettext('Data points table'),\n description: gettext(`A table display of a collection of data points`),\n loadComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/datapoints-table').then(\n m => m.DatapointsTableViewWidgetComponent\n ),\n loadConfigComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/datapoints-table').then(\n m => m.DatapointsTableWidgetConfigComponent\n ),\n previewImage: 'c8y-style-assets/data-points-table-widget.png',\n resolve: {\n datapoints: DynamicDatapointsResolver\n },\n errorStrategy: DynamicComponentErrorStrategy.OVERLAY_ERROR,\n data: {\n schema: () =>\n import(\n 'c8y-schema-loader?interfaceName=DatapointsTableConfig!@c8y/ngx-components/widgets/implementations/datapoints-table'\n ),\n export: exportConfigWithTargets,\n import: importConfigWithTargets,\n widgetControls: datapointsTableWidgetControls,\n settings: {\n noNewWidgets: false,\n widgetDefaults: {\n _width: 8,\n _height: 4\n },\n ng1: {\n options: {\n noDeviceTarget: true,\n minCol: 6,\n datapointAttributes: ['datapoints']\n }\n }\n },\n displaySettings: {\n globalAutoRefreshContext: true,\n globalTimeContext: true,\n globalRealtimeContext: false,\n globalAggregationContext: true\n }\n }\n} satisfies DynamicWidgetDefinition;\n\nexport const dataPointsTableWidgetProviders = [\n hookWidget(dataPointsTableWidgetDefinition),\n hookWidgetConfig<GlobalContextSectionComponent>({\n widgetId: defaultWidgetIds.DATA_POINTS_TABLE,\n priority: 10,\n label: gettext('Time context'),\n initialState: {\n widgetControls: datapointsTableWidgetControls\n },\n loadComponent: () =>\n import('@c8y/ngx-components/context-dashboard').then(m => m.GlobalContextSectionComponent)\n })\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAkBA,MAAM,6BAA6B,GAA+B;IAChE,OAAO,EAAE,CAAC,wBAAwB;CACnC;AAEM,MAAM,+BAA+B,GAAG;IAC7C,EAAE,EAAE,gBAAgB,CAAC,iBAAiB;AACtC,IAAA,KAAK,EAAE,OAAO,CAAC,mBAAmB,CAAC;AACnC,IAAA,WAAW,EAAE,OAAO,CAAC,CAAA,8CAAA,CAAgD,CAAC;AACtE,IAAA,aAAa,EAAE,MACb,OAAO,8DAA8D,CAAC,CAAC,IAAI,CACzE,CAAC,IAAI,CAAC,CAAC,kCAAkC,CAC1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CAAC,CAAC,6BAA6B;KAC5F;;;ACjFH;;AAEG;;;;"}
1
+ {"version":3,"file":"c8y-ngx-components-widgets-definitions-datapoints-table.mjs","sources":["../../widgets/definitions/datapoints-table/datapoints-table.constants.ts","../../widgets/definitions/datapoints-table/index.ts","../../widgets/definitions/datapoints-table/c8y-ngx-components-widgets-definitions-datapoints-table.ts"],"sourcesContent":["import { DatapointAttributesFormConfig } from '@c8y/ngx-components/datapoint-selector';\n\nexport const DATAPOINT_SELECT_DEFAULT_OPTIONS: Partial<DatapointAttributesFormConfig> = {\n selectableChartLineTypes: [],\n selectableAxisTypes: [],\n showRedRange: true,\n showYellowRange: true\n};\nexport const MIN_ACTIVE_COUNT = 1;\n","import { gettext } from '@c8y/ngx-components/gettext';\nimport {\n DynamicWidgetDefinition,\n DynamicDatapointsResolver,\n DynamicComponentErrorStrategy,\n hookWidget\n} from '@c8y/ngx-components';\nimport {\n GlobalContextSectionComponent,\n hookWidgetConfig\n} from '@c8y/ngx-components/context-dashboard';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\nimport {\n exportConfigWithTargets,\n importConfigWithTargets\n} from '@c8y/ngx-components/widgets/import-export-config';\nimport { DATAPOINT_SELECT_DEFAULT_OPTIONS, MIN_ACTIVE_COUNT } from './datapoints-table.constants';\nimport { type WidgetControlsPresetConfig } from '@c8y/ngx-components/global-context';\n\nconst datapointsTableWidgetControls: WidgetControlsPresetConfig = {\n presets: ['defaultWithAggregation']\n};\n\nexport const dataPointsTableWidgetDefinition = {\n id: defaultWidgetIds.DATA_POINTS_TABLE,\n label: gettext('Data points table'),\n description: gettext(`A table display of a collection of data points`),\n loadComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/datapoints-table').then(\n m => m.DatapointsTableViewWidgetComponent\n ),\n loadConfigComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/datapoints-table').then(\n m => m.DatapointsTableWidgetConfigComponent\n ),\n previewImage: 'c8y-style-assets/data-points-table-widget.png',\n resolve: {\n datapoints: DynamicDatapointsResolver\n },\n errorStrategy: DynamicComponentErrorStrategy.OVERLAY_ERROR,\n data: {\n schema: () =>\n import(\n 'c8y-schema-loader?interfaceName=DatapointsTableConfig!@c8y/ngx-components/widgets/implementations/datapoints-table'\n ),\n export: exportConfigWithTargets,\n import: importConfigWithTargets,\n widgetControls: datapointsTableWidgetControls,\n settings: {\n noNewWidgets: false,\n widgetDefaults: {\n _width: 8,\n _height: 4\n },\n ng1: {\n options: {\n noDeviceTarget: true,\n minCol: 6,\n datapointAttributes: ['datapoints']\n }\n }\n },\n displaySettings: {\n globalAutoRefreshContext: true,\n globalTimeContext: true,\n globalRealtimeContext: false,\n globalAggregationContext: true\n }\n }\n} satisfies DynamicWidgetDefinition;\n\nexport const dataPointsTableWidgetProviders = [\n hookWidget(dataPointsTableWidgetDefinition),\n hookWidgetConfig<GlobalContextSectionComponent>({\n widgetId: defaultWidgetIds.DATA_POINTS_TABLE,\n priority: 10,\n label: gettext('Time context'),\n initialState: {\n widgetControls: datapointsTableWidgetControls\n },\n loadComponent: () =>\n import('@c8y/ngx-components/context-dashboard').then(m => m.GlobalContextSectionComponent)\n }),\n hookWidgetConfig({\n widgetId: defaultWidgetIds.DATA_POINTS_TABLE,\n label: gettext('Data point selection'),\n loadComponent: () =>\n import('@c8y/ngx-components/datapoint-selector').then(\n m => m.WidgetDatapointsSelectorComponent\n ),\n initialState: {\n minActiveCount: MIN_ACTIVE_COUNT,\n defaultFormOptions: DATAPOINT_SELECT_DEFAULT_OPTIONS\n },\n expanded: true,\n priority: 100\n })\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAEO,MAAM,gCAAgC,GAA2C;AACtF,IAAA,wBAAwB,EAAE,EAAE;AAC5B,IAAA,mBAAmB,EAAE,EAAE;AACvB,IAAA,YAAY,EAAE,IAAI;AAClB,IAAA,eAAe,EAAE;CAClB;AACM,MAAM,gBAAgB,GAAG,CAAC;;ACWjC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,MAAM,8BAA8B,GAAG;IAC5C,UAAU,CAAC,+BAA+B,CAAC;AAC3C,IAAA,gBAAgB,CAAgC;QAC9C,QAAQ,EAAE,gBAAgB,CAAC,iBAAiB;AAC5C,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,KAAK,EAAE,OAAO,CAAC,cAAc,CAAC;AAC9B,QAAA,YAAY,EAAE;AACZ,YAAA,cAAc,EAAE;AACjB,SAAA;AACD,QAAA,aAAa,EAAE,MACb,OAAO,uCAAuC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,6BAA6B;KAC5F,CAAC;AACF,IAAA,gBAAgB,CAAC;QACf,QAAQ,EAAE,gBAAgB,CAAC,iBAAiB;AAC5C,QAAA,KAAK,EAAE,OAAO,CAAC,sBAAsB,CAAC;AACtC,QAAA,aAAa,EAAE,MACb,OAAO,wCAAwC,CAAC,CAAC,IAAI,CACnD,CAAC,IAAI,CAAC,CAAC,iCAAiC,CACzC;AACH,QAAA,YAAY,EAAE;AACZ,YAAA,cAAc,EAAE,gBAAgB;AAChC,YAAA,kBAAkB,EAAE;AACrB,SAAA;AACD,QAAA,QAAQ,EAAE,IAAI;AACd,QAAA,QAAQ,EAAE;KACX;;;AChGH;;AAEG;;;;"}
@@ -58,10 +58,10 @@ class AIHtmlWidgetConfigFactory {
58
58
  return [];
59
59
  }));
60
60
  }
61
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AIHtmlWidgetConfigFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
62
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AIHtmlWidgetConfigFactory, providedIn: 'root' }); }
61
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AIHtmlWidgetConfigFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
62
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AIHtmlWidgetConfigFactory, providedIn: 'root' }); }
63
63
  }
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AIHtmlWidgetConfigFactory, decorators: [{
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AIHtmlWidgetConfigFactory, decorators: [{
65
65
  type: Injectable,
66
66
  args: [{
67
67
  providedIn: 'root'
@@ -50,10 +50,10 @@ class HtmlWidgetConfigFactory {
50
50
  return [];
51
51
  }));
52
52
  }
53
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HtmlWidgetConfigFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
54
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HtmlWidgetConfigFactory, providedIn: 'root' }); }
53
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: HtmlWidgetConfigFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
54
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: HtmlWidgetConfigFactory, providedIn: 'root' }); }
55
55
  }
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HtmlWidgetConfigFactory, decorators: [{
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: HtmlWidgetConfigFactory, decorators: [{
57
57
  type: Injectable,
58
58
  args: [{
59
59
  providedIn: 'root'
@@ -94,10 +94,10 @@ class HtmlWidgetFactory {
94
94
  return [];
95
95
  }));
96
96
  }
97
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HtmlWidgetFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
98
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HtmlWidgetFactory, providedIn: 'root' }); }
97
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: HtmlWidgetFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
98
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: HtmlWidgetFactory, providedIn: 'root' }); }
99
99
  }
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HtmlWidgetFactory, decorators: [{
100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: HtmlWidgetFactory, decorators: [{
101
101
  type: Injectable,
102
102
  args: [{
103
103
  providedIn: 'root'