@c8y/ngx-components 1023.61.0 → 1023.61.12

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 (232) hide show
  1. package/context-dashboard/index.d.ts +13 -0
  2. package/context-dashboard/index.d.ts.map +1 -1
  3. package/datapoint-explorer/view/index.d.ts.map +1 -1
  4. package/echart/index.d.ts +2 -0
  5. package/echart/index.d.ts.map +1 -1
  6. package/fesm2022/c8y-ngx-components-actility-device-registration.mjs +16 -16
  7. package/fesm2022/c8y-ngx-components-advanced-software-management.mjs +7 -7
  8. package/fesm2022/c8y-ngx-components-ai-agent-chat.mjs +9 -9
  9. package/fesm2022/c8y-ngx-components-ai-ai-chat.mjs +12 -12
  10. package/fesm2022/c8y-ngx-components-ai.mjs +3 -3
  11. package/fesm2022/c8y-ngx-components-alarm-event-selector.mjs +40 -40
  12. package/fesm2022/c8y-ngx-components-alarms-cockpit.mjs +4 -4
  13. package/fesm2022/c8y-ngx-components-alarms-devicemanagement.mjs +3 -3
  14. package/fesm2022/c8y-ngx-components-alarms.mjs +82 -82
  15. package/fesm2022/c8y-ngx-components-api.mjs +7 -7
  16. package/fesm2022/c8y-ngx-components-app-logs.mjs +10 -10
  17. package/fesm2022/c8y-ngx-components-application-access-list.mjs +12 -12
  18. package/fesm2022/c8y-ngx-components-application-access-user-application-access-user-details-wrapper.mjs +3 -3
  19. package/fesm2022/c8y-ngx-components-asset-properties.mjs +48 -48
  20. package/fesm2022/{c8y-ngx-components-asset-property-grid.component-D3cPNQyD.mjs → c8y-ngx-components-asset-property-grid.component-CEphJoqx.mjs} +13 -13
  21. package/fesm2022/{c8y-ngx-components-asset-property-grid.component-D3cPNQyD.mjs.map → c8y-ngx-components-asset-property-grid.component-CEphJoqx.mjs.map} +1 -1
  22. package/fesm2022/c8y-ngx-components-assets-navigator.mjs +32 -32
  23. package/fesm2022/c8y-ngx-components-auth-configuration.mjs +120 -120
  24. package/fesm2022/c8y-ngx-components-binary-file-download.mjs +7 -7
  25. package/fesm2022/c8y-ngx-components-bookmarks.mjs +13 -13
  26. package/fesm2022/c8y-ngx-components-branding-base-branding.mjs +4 -4
  27. package/fesm2022/c8y-ngx-components-branding-dark-theme.mjs +7 -7
  28. package/fesm2022/c8y-ngx-components-branding-extra-css-branding-editor.mjs +7 -7
  29. package/fesm2022/c8y-ngx-components-branding-plain-branding-editor-lazy.mjs +3 -3
  30. package/fesm2022/c8y-ngx-components-branding-plain-branding-editor.mjs +7 -7
  31. package/fesm2022/c8y-ngx-components-branding-shared-data.mjs +15 -15
  32. package/fesm2022/c8y-ngx-components-branding-shared-lazy-add-branding-modal.mjs +6 -6
  33. package/fesm2022/c8y-ngx-components-branding-shared-lazy.mjs +36 -36
  34. package/fesm2022/c8y-ngx-components-branding-shared.mjs +13 -13
  35. package/fesm2022/c8y-ngx-components-child-devices.mjs +13 -13
  36. package/fesm2022/c8y-ngx-components-cockpit-config.mjs +40 -40
  37. package/fesm2022/{c8y-ngx-components-computed-asset-properties-alarm-count-config.component-cxDrUoXY.mjs → c8y-ngx-components-computed-asset-properties-alarm-count-config.component-B2cy8gI7.mjs} +4 -4
  38. package/fesm2022/{c8y-ngx-components-computed-asset-properties-alarm-count-config.component-cxDrUoXY.mjs.map → c8y-ngx-components-computed-asset-properties-alarm-count-config.component-B2cy8gI7.mjs.map} +1 -1
  39. package/fesm2022/{c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-BxmSKHiM.mjs → c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-BYHnA-5R.mjs} +11 -11
  40. package/fesm2022/{c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-BxmSKHiM.mjs.map → c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-BYHnA-5R.mjs.map} +1 -1
  41. package/fesm2022/{c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-CbLcHjZB.mjs → c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-C4oL39m8.mjs} +4 -4
  42. package/fesm2022/{c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-CbLcHjZB.mjs.map → c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-C4oL39m8.mjs.map} +1 -1
  43. package/fesm2022/{c8y-ngx-components-computed-asset-properties-event-count-config.component-DSWgAtkH.mjs → c8y-ngx-components-computed-asset-properties-event-count-config.component-DGwm6_C9.mjs} +4 -4
  44. package/fesm2022/{c8y-ngx-components-computed-asset-properties-event-count-config.component-DSWgAtkH.mjs.map → c8y-ngx-components-computed-asset-properties-event-count-config.component-DGwm6_C9.mjs.map} +1 -1
  45. package/fesm2022/{c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-CYskL4Lc.mjs → c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-BxfCjbYY.mjs} +5 -5
  46. package/fesm2022/{c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-CYskL4Lc.mjs.map → c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-BxfCjbYY.mjs.map} +1 -1
  47. package/fesm2022/{c8y-ngx-components-computed-asset-properties-last-measurement-config.component-CDFNPo4q.mjs → c8y-ngx-components-computed-asset-properties-last-measurement-config.component-C1cuxN3L.mjs} +4 -4
  48. package/fesm2022/{c8y-ngx-components-computed-asset-properties-last-measurement-config.component-CDFNPo4q.mjs.map → c8y-ngx-components-computed-asset-properties-last-measurement-config.component-C1cuxN3L.mjs.map} +1 -1
  49. package/fesm2022/c8y-ngx-components-computed-asset-properties.mjs +1 -1
  50. package/fesm2022/c8y-ngx-components-connectivity.mjs +53 -53
  51. package/fesm2022/c8y-ngx-components-context-dashboard-asset-add.mjs +10 -10
  52. package/fesm2022/c8y-ngx-components-context-dashboard-asset-view.mjs +7 -7
  53. package/fesm2022/c8y-ngx-components-context-dashboard-cockpit-home-dashboard.mjs +11 -11
  54. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-appearance-settings.component-CfvHiXsE.mjs → c8y-ngx-components-context-dashboard-dashboard-appearance-settings.component-DsCDppJx.mjs} +4 -4
  55. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-appearance-settings.component-CfvHiXsE.mjs.map → c8y-ngx-components-context-dashboard-dashboard-appearance-settings.component-DsCDppJx.mjs.map} +1 -1
  56. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-general-settings.component-DUbxiMZh.mjs → c8y-ngx-components-context-dashboard-dashboard-general-settings.component-RdLW5nde.mjs} +10 -10
  57. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-general-settings.component-DUbxiMZh.mjs.map → c8y-ngx-components-context-dashboard-dashboard-general-settings.component-RdLW5nde.mjs.map} +1 -1
  58. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-version-history.component-Byk0CoOG.mjs → c8y-ngx-components-context-dashboard-dashboard-version-history.component--1OYYpR2.mjs} +4 -4
  59. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-version-history.component-Byk0CoOG.mjs.map → c8y-ngx-components-context-dashboard-dashboard-version-history.component--1OYYpR2.mjs.map} +1 -1
  60. package/fesm2022/c8y-ngx-components-context-dashboard-device-add.mjs +10 -10
  61. package/fesm2022/c8y-ngx-components-context-dashboard-device-view.mjs +7 -7
  62. package/fesm2022/c8y-ngx-components-context-dashboard-devicemanagement.mjs +3 -3
  63. package/fesm2022/c8y-ngx-components-context-dashboard-state.mjs +3 -3
  64. package/fesm2022/c8y-ngx-components-context-dashboard.mjs +118 -102
  65. package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  66. package/fesm2022/{c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-CGnlj1KZ.mjs → c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-Cek3_qZQ.mjs} +16 -16
  67. package/fesm2022/{c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-CGnlj1KZ.mjs.map → c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-Cek3_qZQ.mjs.map} +1 -1
  68. package/fesm2022/c8y-ngx-components-dashboard-details-advanced-tab.mjs +12 -12
  69. package/fesm2022/c8y-ngx-components-dashboard-manager-devicemanagement.mjs +6 -6
  70. package/fesm2022/c8y-ngx-components-dashboard-manager.mjs +22 -22
  71. package/fesm2022/c8y-ngx-components-data-broker.mjs +7 -7
  72. package/fesm2022/c8y-ngx-components-data-grid-columns-asset-type.mjs +3 -3
  73. package/fesm2022/c8y-ngx-components-data-grid-columns.mjs +3 -3
  74. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +29 -24
  75. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
  76. package/fesm2022/c8y-ngx-components-datapoint-explorer.mjs +18 -13
  77. package/fesm2022/c8y-ngx-components-datapoint-explorer.mjs.map +1 -1
  78. package/fesm2022/c8y-ngx-components-datapoint-library-details.mjs +3 -3
  79. package/fesm2022/c8y-ngx-components-datapoint-library-list.mjs +3 -3
  80. package/fesm2022/c8y-ngx-components-datapoint-library-services.mjs +3 -3
  81. package/fesm2022/c8y-ngx-components-datapoint-library.mjs +4 -4
  82. package/fesm2022/c8y-ngx-components-datapoint-selector.mjs +43 -43
  83. package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs +33 -33
  84. package/fesm2022/c8y-ngx-components-default-subscriptions.mjs +16 -16
  85. package/fesm2022/c8y-ngx-components-device-enrolment-modal.mjs +9 -9
  86. package/fesm2022/c8y-ngx-components-device-enrolment.mjs +6 -6
  87. package/fesm2022/c8y-ngx-components-device-grid.mjs +43 -43
  88. package/fesm2022/c8y-ngx-components-device-list.mjs +22 -22
  89. package/fesm2022/c8y-ngx-components-device-map.mjs +12 -12
  90. package/fesm2022/c8y-ngx-components-device-profile.mjs +34 -34
  91. package/fesm2022/c8y-ngx-components-device-protocol-object-mappings.mjs +3 -3
  92. package/fesm2022/c8y-ngx-components-device-protocols.mjs +16 -16
  93. package/fesm2022/c8y-ngx-components-device-provisioned-certificates.mjs +13 -13
  94. package/fesm2022/c8y-ngx-components-device-shell.mjs +31 -31
  95. package/fesm2022/c8y-ngx-components-diagnostics.mjs +13 -13
  96. package/fesm2022/c8y-ngx-components-echart.mjs +67 -39
  97. package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
  98. package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs +43 -43
  99. package/fesm2022/c8y-ngx-components-ecosystem-archived-confirm.mjs +7 -7
  100. package/fesm2022/c8y-ngx-components-ecosystem-license-confirm.mjs +10 -10
  101. package/fesm2022/c8y-ngx-components-ecosystem-plugin-setup-stepper.mjs +7 -7
  102. package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs +46 -46
  103. package/fesm2022/c8y-ngx-components-ecosystem.mjs +82 -82
  104. package/fesm2022/c8y-ngx-components-editor.mjs +6 -6
  105. package/fesm2022/c8y-ngx-components-events-events-timeline.mjs +3 -3
  106. package/fesm2022/c8y-ngx-components-events.mjs +3 -3
  107. package/fesm2022/c8y-ngx-components-exports-list.mjs +6 -6
  108. package/fesm2022/c8y-ngx-components-feature-toggles-list.mjs +6 -6
  109. package/fesm2022/c8y-ngx-components-file-preview.mjs +7 -7
  110. package/fesm2022/c8y-ngx-components-files-repository.mjs +19 -19
  111. package/fesm2022/c8y-ngx-components-global-context.mjs +130 -130
  112. package/fesm2022/c8y-ngx-components-group-breadcrumbs.mjs +6 -6
  113. package/fesm2022/c8y-ngx-components-icon-selector.mjs +19 -19
  114. package/fesm2022/c8y-ngx-components-interval-picker.mjs +3 -3
  115. package/fesm2022/c8y-ngx-components-location.mjs +28 -28
  116. package/fesm2022/c8y-ngx-components-loriot-device-registration.mjs +16 -16
  117. package/fesm2022/c8y-ngx-components-map.mjs +22 -20
  118. package/fesm2022/c8y-ngx-components-map.mjs.map +1 -1
  119. package/fesm2022/c8y-ngx-components-messaging-management.mjs +55 -55
  120. package/fesm2022/c8y-ngx-components-operations-bulk-operation-from-single.mjs +7 -7
  121. package/fesm2022/c8y-ngx-components-operations-bulk-operation-list-item.mjs +19 -19
  122. package/fesm2022/c8y-ngx-components-operations-bulk-operation-scheduler.mjs +7 -7
  123. package/fesm2022/c8y-ngx-components-operations-bulk-operation-stepper.mjs +13 -13
  124. package/fesm2022/c8y-ngx-components-operations-bulk-operations-list.mjs +13 -13
  125. package/fesm2022/c8y-ngx-components-operations-bulk-operations-service.mjs +7 -7
  126. package/fesm2022/c8y-ngx-components-operations-bulk-operations-stepper-container.mjs +7 -7
  127. package/fesm2022/c8y-ngx-components-operations-bulk-single-operations-list.mjs +3 -3
  128. package/fesm2022/c8y-ngx-components-operations-create-bulk-operation-details.mjs +7 -7
  129. package/fesm2022/c8y-ngx-components-operations-device-selector.mjs +7 -7
  130. package/fesm2022/c8y-ngx-components-operations-grid-columns.mjs +12 -12
  131. package/fesm2022/c8y-ngx-components-operations-operation-details.mjs +13 -13
  132. package/fesm2022/c8y-ngx-components-operations-operation-summary.mjs +7 -7
  133. package/fesm2022/c8y-ngx-components-operations-operations-list-item-details.mjs +10 -10
  134. package/fesm2022/c8y-ngx-components-operations-operations-list.mjs +12 -12
  135. package/fesm2022/c8y-ngx-components-operations-operations-timeline.mjs +7 -7
  136. package/fesm2022/c8y-ngx-components-operations-shared.mjs +10 -10
  137. package/fesm2022/c8y-ngx-components-operations-status-filter.mjs +7 -7
  138. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-configuration.mjs +7 -7
  139. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-device-profile.mjs +13 -13
  140. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-firmware.mjs +13 -13
  141. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs +13 -13
  142. package/fesm2022/c8y-ngx-components-operations-stepper-frames.mjs +13 -13
  143. package/fesm2022/c8y-ngx-components-operations.mjs +7 -7
  144. package/fesm2022/c8y-ngx-components-pending-mo-request.mjs +7 -7
  145. package/fesm2022/c8y-ngx-components-platform-configuration.mjs +10 -10
  146. package/fesm2022/c8y-ngx-components-protocol-lpwan.mjs +38 -38
  147. package/fesm2022/c8y-ngx-components-protocol-opcua.mjs +58 -58
  148. package/fesm2022/c8y-ngx-components-register-device.mjs +58 -58
  149. package/fesm2022/c8y-ngx-components-remote-access-configurations.mjs +9 -9
  150. package/fesm2022/c8y-ngx-components-remote-access-data.mjs +3 -3
  151. package/fesm2022/c8y-ngx-components-remote-access-passthrough.mjs +3 -3
  152. package/fesm2022/c8y-ngx-components-remote-access-shared.mjs +6 -6
  153. package/fesm2022/c8y-ngx-components-remote-access-ssh-remote-access-ssh-endpoint-modal.mjs +3 -3
  154. package/fesm2022/c8y-ngx-components-remote-access-ssh.mjs +3 -3
  155. package/fesm2022/c8y-ngx-components-remote-access-telnet.mjs +3 -3
  156. package/fesm2022/c8y-ngx-components-remote-access-terminal-viewer.mjs +3 -3
  157. package/fesm2022/c8y-ngx-components-remote-access-vnc-remote-access-vnc-endpoint-modal.mjs +3 -3
  158. package/fesm2022/c8y-ngx-components-remote-access-vnc-vnc-viewer.mjs +6 -6
  159. package/fesm2022/c8y-ngx-components-remote-access-vnc.mjs +3 -3
  160. package/fesm2022/c8y-ngx-components-replace-device-replace-device-wizard.mjs +6 -6
  161. package/fesm2022/c8y-ngx-components-replace-device.mjs +10 -10
  162. package/fesm2022/c8y-ngx-components-report-dashboard.mjs +16 -16
  163. package/fesm2022/c8y-ngx-components-reports.mjs +19 -19
  164. package/fesm2022/c8y-ngx-components-repository-configuration.mjs +48 -48
  165. package/fesm2022/c8y-ngx-components-repository-firmware.mjs +33 -33
  166. package/fesm2022/c8y-ngx-components-repository-shared.mjs +34 -34
  167. package/fesm2022/c8y-ngx-components-repository-software.mjs +42 -42
  168. package/fesm2022/c8y-ngx-components-repository.mjs +4 -4
  169. package/fesm2022/c8y-ngx-components-search.mjs +19 -19
  170. package/fesm2022/c8y-ngx-components-sensor-phone-sensor-phone-modal.mjs +6 -6
  171. package/fesm2022/c8y-ngx-components-sensor-phone.mjs +7 -7
  172. package/fesm2022/c8y-ngx-components-services-service-command-tab.mjs +3 -3
  173. package/fesm2022/c8y-ngx-components-services-shared.mjs +3 -3
  174. package/fesm2022/c8y-ngx-components-services.mjs +29 -29
  175. package/fesm2022/c8y-ngx-components-sigfox-device-registration.mjs +16 -16
  176. package/fesm2022/c8y-ngx-components-sms-gateway.mjs +7 -7
  177. package/fesm2022/c8y-ngx-components-static-assets-data.mjs +3 -3
  178. package/fesm2022/c8y-ngx-components-static-assets-modal.mjs +9 -9
  179. package/fesm2022/c8y-ngx-components-static-assets.mjs +6 -6
  180. package/fesm2022/c8y-ngx-components-sub-assets.mjs +60 -60
  181. package/fesm2022/c8y-ngx-components-tenants.mjs +40 -40
  182. package/fesm2022/c8y-ngx-components-time-context.mjs +6 -6
  183. package/fesm2022/c8y-ngx-components-tracking.mjs +12 -12
  184. package/fesm2022/c8y-ngx-components-translation-editor-data.mjs +3 -3
  185. package/fesm2022/c8y-ngx-components-translation-editor-lazy.mjs +12 -12
  186. package/fesm2022/c8y-ngx-components-translation-editor.mjs +6 -6
  187. package/fesm2022/c8y-ngx-components-trusted-certificates.mjs +33 -33
  188. package/fesm2022/c8y-ngx-components-upgrade-upgraded-services.mjs +4 -4
  189. package/fesm2022/c8y-ngx-components-upgrade.mjs +41 -41
  190. package/fesm2022/c8y-ngx-components-user-roles.mjs +10 -10
  191. package/fesm2022/c8y-ngx-components-widgets-definitions-asset-table.mjs +6 -6
  192. package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-graph.mjs +3 -3
  193. package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget-ai-config.mjs +3 -3
  194. package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget.mjs +6 -6
  195. package/fesm2022/c8y-ngx-components-widgets-implementations-alarms.mjs +19 -19
  196. package/fesm2022/c8y-ngx-components-widgets-implementations-asset-notes.mjs +3 -3
  197. package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs +39 -39
  198. package/fesm2022/c8y-ngx-components-widgets-implementations-cockpit-legacy-welcome.mjs +3 -3
  199. package/fesm2022/c8y-ngx-components-widgets-implementations-cockpit-welcome.mjs +3 -3
  200. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +7 -6
  201. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
  202. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs +27 -27
  203. package/fesm2022/c8y-ngx-components-widgets-implementations-device-control-message.mjs +3 -3
  204. package/fesm2022/c8y-ngx-components-widgets-implementations-device-management-welcome.mjs +10 -10
  205. package/fesm2022/c8y-ngx-components-widgets-implementations-help-and-service-widget.mjs +3 -3
  206. package/fesm2022/c8y-ngx-components-widgets-implementations-html-widget.mjs +24 -24
  207. package/fesm2022/c8y-ngx-components-widgets-implementations-image.mjs +9 -9
  208. package/fesm2022/c8y-ngx-components-widgets-implementations-info-gauge.mjs +18 -18
  209. package/fesm2022/c8y-ngx-components-widgets-implementations-kpi.mjs +6 -6
  210. package/fesm2022/c8y-ngx-components-widgets-implementations-linear-gauge.mjs +6 -6
  211. package/fesm2022/c8y-ngx-components-widgets-implementations-map.mjs +9 -9
  212. package/fesm2022/c8y-ngx-components-widgets-implementations-markdown.mjs +9 -9
  213. package/fesm2022/c8y-ngx-components-widgets-implementations-pie-chart.mjs +9 -9
  214. package/fesm2022/c8y-ngx-components-widgets-implementations-quick-links.mjs +23 -19
  215. package/fesm2022/c8y-ngx-components-widgets-implementations-quick-links.mjs.map +1 -1
  216. package/fesm2022/c8y-ngx-components-widgets-implementations-three-d-rotation.mjs +9 -9
  217. package/fesm2022/c8y-ngx-components.mjs +1386 -1386
  218. package/locales/de.po +32 -11
  219. package/locales/es.po +33 -12
  220. package/locales/fr.po +32 -11
  221. package/locales/ja_JP.po +32 -11
  222. package/locales/ko.po +32 -11
  223. package/locales/locales.pot +3 -0
  224. package/locales/nl.po +32 -11
  225. package/locales/pl.po +32 -11
  226. package/locales/pt_BR.po +32 -11
  227. package/locales/zh_CN.po +32 -11
  228. package/locales/zh_TW.po +32 -11
  229. package/map/index.d.ts.map +1 -1
  230. package/package.json +1 -1
  231. package/widgets/implementations/datapoints-graph/index.d.ts.map +1 -1
  232. package/widgets/implementations/quick-links/index.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"c8y-ngx-components-computed-asset-properties-event-count-config.component-DSWgAtkH.mjs","sources":["../../computed-asset-properties/event-count/event-count-config.component.ts","../../computed-asset-properties/event-count/event-count-config.component.html"],"sourcesContent":["import { Component, inject, Input, OnInit } from '@angular/core';\nimport {\n ControlContainer,\n FormBuilder,\n FormGroup,\n NgForm,\n ReactiveFormsModule,\n Validators\n} from '@angular/forms';\nimport { C8yTranslatePipe, CommonModule, CoreModule } from '@c8y/ngx-components';\n\nimport { EventCountConfig } from './event-count.model';\nimport { Observable } from 'rxjs';\n\n@Component({\n selector: 'c8y-event-count-config',\n templateUrl: './event-count-config.component.html',\n imports: [CoreModule, CommonModule, C8yTranslatePipe, ReactiveFormsModule],\n viewProviders: [{ provide: ControlContainer, useExisting: NgForm }]\n})\nexport class ComputedPropertyEventCountConfigComponent implements OnInit {\n @Input() config?: EventCountConfig;\n formGroup: FormGroup;\n\n private formBuilder = inject(FormBuilder);\n private form = inject(NgForm);\n\n ngOnInit(): void {\n this.initForm();\n }\n\n onBeforeSave(config?: EventCountConfig): boolean | Promise<boolean> | Observable<boolean> {\n if (this.formGroup.valid) {\n Object.assign(config, this.formGroup.value);\n return true;\n }\n return false;\n }\n\n private initForm(): void {\n this.formGroup = this.createForm();\n this.form.form.addControl('config', this.formGroup);\n this.formGroup.patchValue(this.config);\n }\n\n private createForm() {\n return this.formBuilder.group({\n type: ['', [Validators.required]]\n });\n }\n}\n","<form class=\"row d-flex-md\" [formGroup]=\"formGroup\">\n <div class=\"col-md-6\">\n <c8y-form-group class=\"m-b-16\">\n <label\n [title]=\"'Event type' | translate\"\n translate\n >\n Event type\n </label>\n <input\n class=\"form-control\"\n name=\"type\"\n type=\"string\"\n formControlName=\"type\"\n placeholder=\"{{ 'e.g. {{ example }}' | translate: { example: 'c8y_LocationUpdate' } }}\"\n />\n <c8y-messages\n [show]=\"formGroup.controls?.type?.touched && formGroup?.controls?.type?.errors\"\n ></c8y-messages>\n </c8y-form-group>\n </div>\n</form>\n"],"names":["i2"],"mappings":";;;;;;;MAoBa,yCAAyC,CAAA;AANtD,IAAA,WAAA,GAAA;AAUU,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;AACjC,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;AAyB9B,IAAA;IAvBC,QAAQ,GAAA;QACN,IAAI,CAAC,QAAQ,EAAE;IACjB;AAEA,IAAA,YAAY,CAAC,MAAyB,EAAA;AACpC,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE;YACxB,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;AAC3C,YAAA,OAAO,IAAI;QACb;AACA,QAAA,OAAO,KAAK;IACd;IAEQ,QAAQ,GAAA;AACd,QAAA,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,EAAE;AAClC,QAAA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC;QACnD,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;IACxC;IAEQ,UAAU,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;YAC5B,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;AACjC,SAAA,CAAC;IACJ;+GA7BW,yCAAyC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA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EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,EAAA,UAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,8BAAoB,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,aAAA,EAC1D,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAA,CAAA,CAAA;;4FAExD,yCAAyC,EAAA,UAAA,EAAA,CAAA;kBANrD,SAAS;+BACE,wBAAwB,EAAA,OAAA,EAEzB,CAAC,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,CAAC,iBAC3D,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAA,QAAA,EAAA,0pBAAA,EAAA;;sBAGlE;;;;;"}
1
+ {"version":3,"file":"c8y-ngx-components-computed-asset-properties-event-count-config.component-DGwm6_C9.mjs","sources":["../../computed-asset-properties/event-count/event-count-config.component.ts","../../computed-asset-properties/event-count/event-count-config.component.html"],"sourcesContent":["import { Component, inject, Input, OnInit } from '@angular/core';\nimport {\n ControlContainer,\n FormBuilder,\n FormGroup,\n NgForm,\n ReactiveFormsModule,\n Validators\n} from '@angular/forms';\nimport { C8yTranslatePipe, CommonModule, CoreModule } from '@c8y/ngx-components';\n\nimport { EventCountConfig } from './event-count.model';\nimport { Observable } from 'rxjs';\n\n@Component({\n selector: 'c8y-event-count-config',\n templateUrl: './event-count-config.component.html',\n imports: [CoreModule, CommonModule, C8yTranslatePipe, ReactiveFormsModule],\n viewProviders: [{ provide: ControlContainer, useExisting: NgForm }]\n})\nexport class ComputedPropertyEventCountConfigComponent implements OnInit {\n @Input() config?: EventCountConfig;\n formGroup: FormGroup;\n\n private formBuilder = inject(FormBuilder);\n private form = inject(NgForm);\n\n ngOnInit(): void {\n this.initForm();\n }\n\n onBeforeSave(config?: EventCountConfig): boolean | Promise<boolean> | Observable<boolean> {\n if (this.formGroup.valid) {\n Object.assign(config, this.formGroup.value);\n return true;\n }\n return false;\n }\n\n private initForm(): void {\n this.formGroup = this.createForm();\n this.form.form.addControl('config', this.formGroup);\n this.formGroup.patchValue(this.config);\n }\n\n private createForm() {\n return this.formBuilder.group({\n type: ['', [Validators.required]]\n });\n }\n}\n","<form class=\"row d-flex-md\" [formGroup]=\"formGroup\">\n <div class=\"col-md-6\">\n <c8y-form-group class=\"m-b-16\">\n <label\n [title]=\"'Event type' | translate\"\n translate\n >\n Event type\n </label>\n <input\n class=\"form-control\"\n name=\"type\"\n type=\"string\"\n formControlName=\"type\"\n placeholder=\"{{ 'e.g. {{ example }}' | translate: { example: 'c8y_LocationUpdate' } }}\"\n />\n <c8y-messages\n [show]=\"formGroup.controls?.type?.touched && formGroup?.controls?.type?.errors\"\n ></c8y-messages>\n </c8y-form-group>\n </div>\n</form>\n"],"names":["i2"],"mappings":";;;;;;;MAoBa,yCAAyC,CAAA;AANtD,IAAA,WAAA,GAAA;AAUU,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;AACjC,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;AAyB9B,IAAA;IAvBC,QAAQ,GAAA;QACN,IAAI,CAAC,QAAQ,EAAE;IACjB;AAEA,IAAA,YAAY,CAAC,MAAyB,EAAA;AACpC,QA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AAA,aAAA,EAC1D,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAA,CAAA,CAAA;;4FAExD,yCAAyC,EAAA,UAAA,EAAA,CAAA;kBANrD,SAAS;+BACE,wBAAwB,EAAA,OAAA,EAEzB,CAAC,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,CAAC,iBAC3D,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAA,QAAA,EAAA,0pBAAA,EAAA;;sBAGlE;;;;;"}
@@ -5,7 +5,7 @@ import { FormBuilder, NgForm, Validators, ControlContainer, ReactiveFormsModule
5
5
  import * as i1 from '@c8y/ngx-components';
6
6
  import { CoreModule, CommonModule, C8yTranslatePipe } from '@c8y/ngx-components';
7
7
  import { gettext } from '@c8y/ngx-components/gettext';
8
- import { R as RESULT_TYPES, F as FieldbusService } from './c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-BxmSKHiM.mjs';
8
+ import { R as RESULT_TYPES, F as FieldbusService } from './c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-BYHnA-5R.mjs';
9
9
  import * as i2 from '@angular/common';
10
10
 
11
11
  class FieldbusItemStatusConfigComponent {
@@ -104,10 +104,10 @@ class FieldbusItemStatusConfigComponent {
104
104
  });
105
105
  }
106
106
  }
107
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: FieldbusItemStatusConfigComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
108
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.17", type: FieldbusItemStatusConfigComponent, isStandalone: true, selector: "c8y-fieldbus-item-status-config", inputs: { config: "config", asset: "asset" }, usesOnChanges: true, ngImport: i0, template: "<form [formGroup]=\"formGroup\">\n <div class=\"d-flex-md row\">\n <div class=\"col-md-6\">\n <c8y-form-group style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"fieldbusItem\">{{ 'Fieldbus item' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"fieldbusItem\"\n formControlName=\"item\"\n >\n @for (group of groupedItems; track group.label) {\n <optgroup [label]=\"group.label | translate\">\n @for (item of group.items; track item.name) {\n <option [ngValue]=\"item\">\n {{ item.name }}\n </option>\n }\n </optgroup>\n }\n </select>\n </div>\n <c8y-messages\n [show]=\"formGroup.controls?.item?.touched ? formGroup?.controls?.item?.errors : {}\"\n ></c8y-messages>\n </c8y-form-group>\n </div>\n <div class=\"col-md-6\">\n <c8y-form-group style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"resultType\">{{ 'Result type' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"resultType\"\n formControlName=\"resultType\"\n >\n @for (resultType of resultTypes | keyvalue; track resultType.key) {\n <option [ngValue]=\"resultType.value.value\">\n {{ resultType.value.label | translate }}\n </option>\n }\n </select>\n </div>\n </c8y-form-group>\n </div>\n </div>\n</form>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i1.FormGroupComponent, selector: "c8y-form-group", inputs: ["hasError", "hasWarning", "hasSuccess", "novalidation", "status"] }, { kind: "component", type: i1.MessagesComponent, selector: "c8y-messages", inputs: ["show", "defaults", "helpMessage"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "pipe", type: i1.C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: i2.KeyValuePipe, name: "keyvalue" }], viewProviders: [{ provide: ControlContainer, useExisting: NgForm }] }); }
107
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: FieldbusItemStatusConfigComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
108
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: FieldbusItemStatusConfigComponent, isStandalone: true, selector: "c8y-fieldbus-item-status-config", inputs: { config: "config", asset: "asset" }, usesOnChanges: true, ngImport: i0, template: "<form [formGroup]=\"formGroup\">\n <div class=\"d-flex-md row\">\n <div class=\"col-md-6\">\n <c8y-form-group style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"fieldbusItem\">{{ 'Fieldbus item' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"fieldbusItem\"\n formControlName=\"item\"\n >\n @for (group of groupedItems; track group.label) {\n <optgroup [label]=\"group.label | translate\">\n @for (item of group.items; track item.name) {\n <option [ngValue]=\"item\">\n {{ item.name }}\n </option>\n }\n </optgroup>\n }\n </select>\n </div>\n <c8y-messages\n [show]=\"formGroup.controls?.item?.touched ? formGroup?.controls?.item?.errors : {}\"\n ></c8y-messages>\n </c8y-form-group>\n </div>\n <div class=\"col-md-6\">\n <c8y-form-group style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"resultType\">{{ 'Result type' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"resultType\"\n formControlName=\"resultType\"\n >\n @for (resultType of resultTypes | keyvalue; track resultType.key) {\n <option [ngValue]=\"resultType.value.value\">\n {{ resultType.value.label | translate }}\n </option>\n }\n </select>\n </div>\n </c8y-form-group>\n </div>\n </div>\n</form>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i1.FormGroupComponent, selector: "c8y-form-group", inputs: ["hasError", "hasWarning", "hasSuccess", "novalidation", "status"] }, { kind: "component", type: i1.MessagesComponent, selector: "c8y-messages", inputs: ["show", "defaults", "helpMessage"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "pipe", type: i1.C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: i2.KeyValuePipe, name: "keyvalue" }], viewProviders: [{ provide: ControlContainer, useExisting: NgForm }] }); }
109
109
  }
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: FieldbusItemStatusConfigComponent, decorators: [{
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: FieldbusItemStatusConfigComponent, decorators: [{
111
111
  type: Component,
112
112
  args: [{ selector: 'c8y-fieldbus-item-status-config', imports: [CoreModule, CommonModule, C8yTranslatePipe, ReactiveFormsModule], viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], template: "<form [formGroup]=\"formGroup\">\n <div class=\"d-flex-md row\">\n <div class=\"col-md-6\">\n <c8y-form-group style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"fieldbusItem\">{{ 'Fieldbus item' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"fieldbusItem\"\n formControlName=\"item\"\n >\n @for (group of groupedItems; track group.label) {\n <optgroup [label]=\"group.label | translate\">\n @for (item of group.items; track item.name) {\n <option [ngValue]=\"item\">\n {{ item.name }}\n </option>\n }\n </optgroup>\n }\n </select>\n </div>\n <c8y-messages\n [show]=\"formGroup.controls?.item?.touched ? formGroup?.controls?.item?.errors : {}\"\n ></c8y-messages>\n </c8y-form-group>\n </div>\n <div class=\"col-md-6\">\n <c8y-form-group style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"resultType\">{{ 'Result type' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"resultType\"\n formControlName=\"resultType\"\n >\n @for (resultType of resultTypes | keyvalue; track resultType.key) {\n <option [ngValue]=\"resultType.value.value\">\n {{ resultType.value.label | translate }}\n </option>\n }\n </select>\n </div>\n </c8y-form-group>\n </div>\n </div>\n</form>\n" }]
113
113
  }], propDecorators: { config: [{
@@ -117,4 +117,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
117
117
  }] } });
118
118
 
119
119
  export { FieldbusItemStatusConfigComponent };
120
- //# sourceMappingURL=c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-CYskL4Lc.mjs.map
120
+ //# sourceMappingURL=c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-BxfCjbYY.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-CYskL4Lc.mjs","sources":["../../computed-asset-properties/fieldbus-item-status/fieldbus-item-status-config.component.ts","../../computed-asset-properties/fieldbus-item-status/fieldbus-item-status-config.component.html"],"sourcesContent":["import {\n Component,\n inject,\n Input,\n OnInit,\n OnChanges,\n SimpleChanges,\n OnDestroy\n} from '@angular/core';\nimport {\n ControlContainer,\n FormBuilder,\n NgForm,\n ReactiveFormsModule,\n Validators\n} from '@angular/forms';\nimport { IManagedObject } from '@c8y/client';\nimport { C8yTranslatePipe, CommonModule, CoreModule } from '@c8y/ngx-components';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport {\n FieldbusCoil,\n FieldbusDeviceType,\n FieldbusItemStatusConfig,\n FieldbusRegister,\n RESULT_TYPES\n} from './fieldbus-item-status.model';\nimport { FieldbusService } from './fieldbus.service';\nimport { Observable } from 'rxjs';\n\ntype FieldbusItemsGroup = {\n type: 'c8y_Coil' | 'c8y_Register';\n label: string;\n items: (FieldbusCoil | FieldbusRegister)[];\n};\n\n@Component({\n selector: 'c8y-fieldbus-item-status-config',\n templateUrl: './fieldbus-item-status-config.component.html',\n imports: [CoreModule, CommonModule, C8yTranslatePipe, ReactiveFormsModule],\n viewProviders: [{ provide: ControlContainer, useExisting: NgForm }]\n})\nexport class FieldbusItemStatusConfigComponent implements OnInit, OnChanges, OnDestroy {\n @Input() config?: FieldbusItemStatusConfig;\n @Input() asset?: IManagedObject;\n\n resultTypes = RESULT_TYPES;\n formGroup: ReturnType<FieldbusItemStatusConfigComponent['createForm']>;\n groupedItems: FieldbusItemsGroup[] = [];\n private deviceType: FieldbusDeviceType;\n\n private fieldbusService = inject(FieldbusService);\n private formBuilder = inject(FormBuilder);\n private form = inject(NgForm);\n\n ngOnInit() {\n this.initForm();\n }\n\n async ngOnChanges(changes: SimpleChanges) {\n if (changes['asset'] && this.asset) {\n try {\n this.deviceType = await this.fieldbusService.getDeviceTypeOf(this.asset);\n this.buildGroupedItemsFromDeviceType();\n this.patchFormFromConfig();\n } catch (err) {\n this.deviceType = null;\n this.groupedItems = [];\n this.formGroup.reset();\n }\n }\n\n if (changes['config'] && this.config) {\n this.patchFormFromConfig();\n }\n }\n\n ngOnDestroy() {\n this.form.form.removeControl('config');\n }\n\n onBeforeSave(\n config?: FieldbusItemStatusConfig\n ): boolean | Promise<boolean> | Observable<boolean> {\n if (this.formGroup.valid) {\n Object.assign(config, this.formToConfig());\n return true;\n }\n return false;\n }\n\n private initForm(): void {\n this.formGroup = this.createForm();\n this.form.form.addControl('config', this.formGroup);\n this.formGroup.patchValue({ item: null, resultType: RESULT_TYPES.RAW_VALUE.value });\n this.patchFormFromConfig();\n }\n\n private createForm() {\n return this.formBuilder.group({\n item: [null, [Validators.required]],\n resultType: ['', [Validators.required]]\n });\n }\n\n private formToConfig(): FieldbusItemStatusConfig {\n const formValue = this.formGroup.value;\n if (!formValue.item) return null;\n const item = formValue.item as FieldbusCoil | FieldbusRegister;\n const itemName = item.name;\n const itemType = this.groupedItems.find(g => g.items.includes(item))?.type;\n const resultType = formValue.resultType as keyof typeof RESULT_TYPES;\n return { itemName, itemType, resultType };\n }\n\n private patchFormFromConfig(): void {\n if (!this.config || !this.groupedItems.length || !this.formGroup) return;\n const { itemType, itemName, resultType } = this.config;\n let foundItem = null;\n for (const group of this.groupedItems) {\n foundItem = group.items.find(item => group.type === itemType && item.name === itemName);\n if (foundItem) break;\n }\n if (foundItem) {\n this.formGroup.patchValue({ item: foundItem, resultType });\n } else {\n this.formGroup.patchValue({ item: null, resultType: RESULT_TYPES.RAW_VALUE.value });\n }\n }\n\n private buildGroupedItemsFromDeviceType() {\n this.groupedItems = [];\n if (!this.deviceType) return;\n if (this.deviceType.c8y_Coils?.length) {\n this.groupedItems.push({\n type: 'c8y_Coil',\n label: gettext('Coils'),\n items: this.deviceType.c8y_Coils\n });\n }\n if (this.deviceType.c8y_Registers?.length) {\n this.groupedItems.push({\n type: 'c8y_Register',\n label: gettext('Registers'),\n items: this.deviceType.c8y_Registers\n });\n }\n }\n}\n","<form [formGroup]=\"formGroup\">\n <div class=\"d-flex-md row\">\n <div class=\"col-md-6\">\n <c8y-form-group style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"fieldbusItem\">{{ 'Fieldbus item' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"fieldbusItem\"\n formControlName=\"item\"\n >\n @for (group of groupedItems; track group.label) {\n <optgroup [label]=\"group.label | translate\">\n @for (item of group.items; track item.name) {\n <option [ngValue]=\"item\">\n {{ item.name }}\n </option>\n }\n </optgroup>\n }\n </select>\n </div>\n <c8y-messages\n [show]=\"formGroup.controls?.item?.touched ? formGroup?.controls?.item?.errors : {}\"\n ></c8y-messages>\n </c8y-form-group>\n </div>\n <div class=\"col-md-6\">\n <c8y-form-group style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"resultType\">{{ 'Result type' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"resultType\"\n formControlName=\"resultType\"\n >\n @for (resultType of resultTypes | keyvalue; track resultType.key) {\n <option [ngValue]=\"resultType.value.value\">\n {{ resultType.value.label | translate }}\n </option>\n }\n </select>\n </div>\n </c8y-form-group>\n </div>\n </div>\n</form>\n"],"names":["i1","i2","i3"],"mappings":";;;;;;;;;;MAyCa,iCAAiC,CAAA;AAN9C,IAAA,WAAA,GAAA;QAUE,IAAA,CAAA,WAAW,GAAG,YAAY;QAE1B,IAAA,CAAA,YAAY,GAAyB,EAAE;AAG/B,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAA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A,CAAA,MAAA,EAAA,UAAA,EAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAD,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,EAAA,UAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,8BAAoB,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,aAAA,EAC1D,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAA,CAAA,CAAA;;4FAExD,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAN7C,SAAS;+BACE,iCAAiC,EAAA,OAAA,EAElC,CAAC,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,CAAC,iBAC3D,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAA,QAAA,EAAA,krDAAA,EAAA;;sBAGlE;;sBACA;;;;;"}
1
+ {"version":3,"file":"c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-BxfCjbYY.mjs","sources":["../../computed-asset-properties/fieldbus-item-status/fieldbus-item-status-config.component.ts","../../computed-asset-properties/fieldbus-item-status/fieldbus-item-status-config.component.html"],"sourcesContent":["import {\n Component,\n inject,\n Input,\n OnInit,\n OnChanges,\n SimpleChanges,\n OnDestroy\n} from '@angular/core';\nimport {\n ControlContainer,\n FormBuilder,\n NgForm,\n ReactiveFormsModule,\n Validators\n} from '@angular/forms';\nimport { IManagedObject } from '@c8y/client';\nimport { C8yTranslatePipe, CommonModule, CoreModule } from '@c8y/ngx-components';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport {\n FieldbusCoil,\n FieldbusDeviceType,\n FieldbusItemStatusConfig,\n FieldbusRegister,\n RESULT_TYPES\n} from './fieldbus-item-status.model';\nimport { FieldbusService } from './fieldbus.service';\nimport { Observable } from 'rxjs';\n\ntype FieldbusItemsGroup = {\n type: 'c8y_Coil' | 'c8y_Register';\n label: string;\n items: (FieldbusCoil | FieldbusRegister)[];\n};\n\n@Component({\n selector: 'c8y-fieldbus-item-status-config',\n templateUrl: './fieldbus-item-status-config.component.html',\n imports: [CoreModule, CommonModule, C8yTranslatePipe, ReactiveFormsModule],\n viewProviders: [{ provide: ControlContainer, useExisting: NgForm }]\n})\nexport class FieldbusItemStatusConfigComponent implements OnInit, OnChanges, OnDestroy {\n @Input() config?: FieldbusItemStatusConfig;\n @Input() asset?: IManagedObject;\n\n resultTypes = RESULT_TYPES;\n formGroup: ReturnType<FieldbusItemStatusConfigComponent['createForm']>;\n groupedItems: FieldbusItemsGroup[] = [];\n private deviceType: FieldbusDeviceType;\n\n private fieldbusService = inject(FieldbusService);\n private formBuilder = inject(FormBuilder);\n private form = inject(NgForm);\n\n ngOnInit() {\n this.initForm();\n }\n\n async ngOnChanges(changes: SimpleChanges) {\n if (changes['asset'] && this.asset) {\n try {\n this.deviceType = await this.fieldbusService.getDeviceTypeOf(this.asset);\n this.buildGroupedItemsFromDeviceType();\n this.patchFormFromConfig();\n } catch (err) {\n this.deviceType = null;\n this.groupedItems = [];\n this.formGroup.reset();\n }\n }\n\n if (changes['config'] && this.config) {\n this.patchFormFromConfig();\n }\n }\n\n ngOnDestroy() {\n this.form.form.removeControl('config');\n }\n\n onBeforeSave(\n config?: FieldbusItemStatusConfig\n ): boolean | Promise<boolean> | Observable<boolean> {\n if (this.formGroup.valid) {\n Object.assign(config, this.formToConfig());\n return true;\n }\n return false;\n }\n\n private initForm(): void {\n this.formGroup = this.createForm();\n this.form.form.addControl('config', this.formGroup);\n this.formGroup.patchValue({ item: null, resultType: RESULT_TYPES.RAW_VALUE.value });\n this.patchFormFromConfig();\n }\n\n private createForm() {\n return this.formBuilder.group({\n item: [null, [Validators.required]],\n resultType: ['', [Validators.required]]\n });\n }\n\n private formToConfig(): FieldbusItemStatusConfig {\n const formValue = this.formGroup.value;\n if (!formValue.item) return null;\n const item = formValue.item as FieldbusCoil | FieldbusRegister;\n const itemName = item.name;\n const itemType = this.groupedItems.find(g => g.items.includes(item))?.type;\n const resultType = formValue.resultType as keyof typeof RESULT_TYPES;\n return { itemName, itemType, resultType };\n }\n\n private patchFormFromConfig(): void {\n if (!this.config || !this.groupedItems.length || !this.formGroup) return;\n const { itemType, itemName, resultType } = this.config;\n let foundItem = null;\n for (const group of this.groupedItems) {\n foundItem = group.items.find(item => group.type === itemType && item.name === itemName);\n if (foundItem) break;\n }\n if (foundItem) {\n this.formGroup.patchValue({ item: foundItem, resultType });\n } else {\n this.formGroup.patchValue({ item: null, resultType: RESULT_TYPES.RAW_VALUE.value });\n }\n }\n\n private buildGroupedItemsFromDeviceType() {\n this.groupedItems = [];\n if (!this.deviceType) return;\n if (this.deviceType.c8y_Coils?.length) {\n this.groupedItems.push({\n type: 'c8y_Coil',\n label: gettext('Coils'),\n items: this.deviceType.c8y_Coils\n });\n }\n if (this.deviceType.c8y_Registers?.length) {\n this.groupedItems.push({\n type: 'c8y_Register',\n label: gettext('Registers'),\n items: this.deviceType.c8y_Registers\n });\n }\n }\n}\n","<form [formGroup]=\"formGroup\">\n <div class=\"d-flex-md row\">\n <div class=\"col-md-6\">\n <c8y-form-group style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"fieldbusItem\">{{ 'Fieldbus item' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"fieldbusItem\"\n formControlName=\"item\"\n >\n @for (group of groupedItems; track group.label) {\n <optgroup [label]=\"group.label | translate\">\n @for (item of group.items; track item.name) {\n <option [ngValue]=\"item\">\n {{ item.name }}\n </option>\n }\n </optgroup>\n }\n </select>\n </div>\n <c8y-messages\n [show]=\"formGroup.controls?.item?.touched ? formGroup?.controls?.item?.errors : {}\"\n ></c8y-messages>\n </c8y-form-group>\n </div>\n <div class=\"col-md-6\">\n <c8y-form-group style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"resultType\">{{ 'Result type' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"resultType\"\n formControlName=\"resultType\"\n >\n @for (resultType of resultTypes | keyvalue; track resultType.key) {\n <option [ngValue]=\"resultType.value.value\">\n {{ resultType.value.label | translate }}\n </option>\n }\n </select>\n </div>\n </c8y-form-group>\n </div>\n </div>\n</form>\n"],"names":["i1","i2","i3"],"mappings":";;;;;;;;;;MAyCa,iCAAiC,CAAA;AAN9C,IAAA,WAAA,GAAA;QAUE,IAAA,CAAA,WAAW,GAAG,YAAY;QAE1B,IAAA,CAAA,YAAY,GAAyB,EAAE;AAG/B,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;AACjC,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;AA+F9B,IAAA;IA7FC,QAAQ,GAAA;QACN,IAAI,CAAC,QAAQ,EAAE;IACjB;IAEA,MAAM,WAAW,CAAC,OAAsB,EAAA;QACtC,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,KAAK,EAAE;AAClC,YAA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AAA,EAAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,EAAA,UAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,8BAAoB,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,aAAA,EAC1D,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAA,CAAA,CAAA;;4FAExD,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAN7C,SAAS;+BACE,iCAAiC,EAAA,OAAA,EAElC,CAAC,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,CAAC,iBAC3D,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAA,QAAA,EAAA,krDAAA,EAAA;;sBAGlE;;sBACA;;;;;"}
@@ -70,10 +70,10 @@ class ComputedPropertyLastMeasurementConfigComponent {
70
70
  ])
71
71
  });
72
72
  }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ComputedPropertyLastMeasurementConfigComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
74
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.17", type: ComputedPropertyLastMeasurementConfigComponent, isStandalone: true, selector: "c8y-last-measurement-config", inputs: { config: "config", asset: "asset" }, ngImport: i0, template: "\n<form [formGroup]=\"formGroup\">\n <div class=\"d-flex-md row\">\n <div class=\"col-md-6\">\n <div class=\"form-group\" style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"resultType\">{{ 'Result type' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"resultType\"\n formControlName=\"resultType\"\n >\n <option\n *ngFor=\"let type of resultTypes | keyvalue\"\n [ngValue]=\"type.value.value\"\n >\n {{ type.value.label | translate }}\n </option>\n </select>\n </div>\n </div>\n </div>\n <div class=\"col-md-6 no-card-context\">\n <c8y-datapoint-selection-list\n class=\"bg-inherit\"\n name=\"dp\"\n [config]=\"datapointSelectionConfig\"\n [minActiveCount]=\"minSelectCount\"\n [maxActiveCount]=\"maxSelectCount\"\n formControlName=\"dp\"\n ></c8y-datapoint-selection-list>\n </div>\n </div>\n</form>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: DatapointSelectorModule }, { kind: "component", type: i3$1.DatapointSelectionListComponent, selector: "c8y-datapoint-selection-list", inputs: ["actions", "allowDragAndDrop", "config", "defaultFormOptions", "maxActiveCount", "minActiveCount", "resolveContext", "listTitle", "removeTitle"], outputs: ["isValid", "change"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "pipe", type: i1.C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: i2.KeyValuePipe, name: "keyvalue" }], viewProviders: [{ provide: ControlContainer, useExisting: NgForm }] }); }
73
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ComputedPropertyLastMeasurementConfigComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
74
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: ComputedPropertyLastMeasurementConfigComponent, isStandalone: true, selector: "c8y-last-measurement-config", inputs: { config: "config", asset: "asset" }, ngImport: i0, template: "\n<form [formGroup]=\"formGroup\">\n <div class=\"d-flex-md row\">\n <div class=\"col-md-6\">\n <div class=\"form-group\" style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"resultType\">{{ 'Result type' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"resultType\"\n formControlName=\"resultType\"\n >\n <option\n *ngFor=\"let type of resultTypes | keyvalue\"\n [ngValue]=\"type.value.value\"\n >\n {{ type.value.label | translate }}\n </option>\n </select>\n </div>\n </div>\n </div>\n <div class=\"col-md-6 no-card-context\">\n <c8y-datapoint-selection-list\n class=\"bg-inherit\"\n name=\"dp\"\n [config]=\"datapointSelectionConfig\"\n [minActiveCount]=\"minSelectCount\"\n [maxActiveCount]=\"maxSelectCount\"\n formControlName=\"dp\"\n ></c8y-datapoint-selection-list>\n </div>\n </div>\n</form>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: DatapointSelectorModule }, { kind: "component", type: i3$1.DatapointSelectionListComponent, selector: "c8y-datapoint-selection-list", inputs: ["actions", "allowDragAndDrop", "config", "defaultFormOptions", "maxActiveCount", "minActiveCount", "resolveContext", "listTitle", "removeTitle"], outputs: ["isValid", "change"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "pipe", type: i1.C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: i2.KeyValuePipe, name: "keyvalue" }], viewProviders: [{ provide: ControlContainer, useExisting: NgForm }] }); }
75
75
  }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ComputedPropertyLastMeasurementConfigComponent, decorators: [{
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ComputedPropertyLastMeasurementConfigComponent, decorators: [{
77
77
  type: Component,
78
78
  args: [{ selector: 'c8y-last-measurement-config', imports: [
79
79
  CoreModule,
@@ -89,4 +89,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
89
89
  }] } });
90
90
 
91
91
  export { ComputedPropertyLastMeasurementConfigComponent, exactlyASingleDatapointActive };
92
- //# sourceMappingURL=c8y-ngx-components-computed-asset-properties-last-measurement-config.component-CDFNPo4q.mjs.map
92
+ //# sourceMappingURL=c8y-ngx-components-computed-asset-properties-last-measurement-config.component-C1cuxN3L.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"c8y-ngx-components-computed-asset-properties-last-measurement-config.component-CDFNPo4q.mjs","sources":["../../computed-asset-properties/last-measurement/last-measurement.model.ts","../../computed-asset-properties/last-measurement/last-measurement-config.component.ts","../../computed-asset-properties/last-measurement/last-measurement-config.component.html"],"sourcesContent":["import { KPIDetails } from '@c8y/ngx-components/datapoint-selector';\nimport { gettext } from '@c8y/ngx-components/gettext';\n\nexport const RESULT_TYPES = {\n VALUE: { name: 'VALUE', value: 1, label: gettext('Only value') },\n VALUE_UNIT: { name: 'VALUE_UNIT', value: 2, label: gettext('Value and unit') },\n VALUE_UNIT_TIME: { name: 'VALUE_UNIT_TIME', value: 3, label: gettext('Value, unit and time') },\n OBJECT: { name: 'OBJECT', value: 4, label: gettext('Complete object') }\n};\n\nexport type LastMeasurementConfig = {\n dp: KPIDetails[];\n resultType: number;\n};\n","import { Component, inject, Input, OnInit } from '@angular/core';\nimport {\n AbstractControl,\n ControlContainer,\n FormBuilder,\n NgForm,\n ReactiveFormsModule,\n ValidationErrors,\n ValidatorFn,\n Validators\n} from '@angular/forms';\nimport { IManagedObject } from '@c8y/client';\nimport { C8yTranslatePipe, CommonModule, CoreModule } from '@c8y/ngx-components';\nimport {\n DatapointSelectorModalOptions,\n DatapointSelectorModule,\n KPIDetails\n} from '@c8y/ngx-components/datapoint-selector';\nimport { Observable } from 'rxjs';\nimport { LastMeasurementConfig, RESULT_TYPES } from './last-measurement.model';\n\nexport function exactlyASingleDatapointActive(): ValidatorFn {\n return (control: AbstractControl): ValidationErrors | null => {\n const datapoints: KPIDetails[] = control.value;\n\n if (!datapoints || !datapoints.length) {\n return null;\n }\n\n const activeDatapoints = datapoints.filter(datapoint => datapoint.__active);\n\n if (activeDatapoints.length === 1) {\n return null;\n }\n\n return { exactlyOneDatapointNeedsToBeActive: true };\n };\n}\n\n@Component({\n selector: 'c8y-last-measurement-config',\n templateUrl: './last-measurement-config.component.html',\n imports: [\n CoreModule,\n DatapointSelectorModule,\n CommonModule,\n C8yTranslatePipe,\n ReactiveFormsModule\n ],\n viewProviders: [{ provide: ControlContainer, useExisting: NgForm }]\n})\nexport class ComputedPropertyLastMeasurementConfigComponent implements OnInit {\n @Input() config?: LastMeasurementConfig;\n @Input() asset?: IManagedObject;\n formGroup: ReturnType<ComputedPropertyLastMeasurementConfigComponent['createForm']>;\n datapointSelectionConfig: Partial<DatapointSelectorModalOptions> = {};\n\n private formBuilder = inject(FormBuilder);\n private form = inject(NgForm);\n\n selectedProperty: IManagedObject[] = [];\n minSelectCount = 1;\n maxSelectCount = 1;\n resultTypes = RESULT_TYPES;\n\n ngOnInit() {\n if (this.asset) {\n this.datapointSelectionConfig.contextAsset = this.asset;\n this.datapointSelectionConfig.allowChangingContext = false;\n }\n this.initForm();\n }\n\n onBeforeSave(config?: LastMeasurementConfig): boolean | Promise<boolean> | Observable<boolean> {\n if (this.formGroup.valid) {\n Object.assign(config, this.formGroup.value);\n config.dp = config.dp.filter(d => d.__active);\n config.dp[0].__target = { id: config.dp[0].__target.id, name: config.dp[0].__target.name };\n return true;\n }\n return false;\n }\n\n private initForm(): void {\n this.formGroup = this.createForm();\n this.form.form.addControl('config', this.formGroup);\n this.formGroup.patchValue(this.config);\n }\n\n private createForm() {\n return this.formBuilder.group({\n resultType: [this.resultTypes.VALUE.value, [Validators.required]],\n dp: this.formBuilder.control(new Array<KPIDetails>(), [\n Validators.required,\n Validators.minLength(1),\n exactlyASingleDatapointActive()\n ])\n });\n }\n}\n","\n<form [formGroup]=\"formGroup\">\n <div class=\"d-flex-md row\">\n <div class=\"col-md-6\">\n <div class=\"form-group\" style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"resultType\">{{ 'Result type' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"resultType\"\n formControlName=\"resultType\"\n >\n <option\n *ngFor=\"let type of resultTypes | keyvalue\"\n [ngValue]=\"type.value.value\"\n >\n {{ type.value.label | translate }}\n </option>\n </select>\n </div>\n </div>\n </div>\n <div class=\"col-md-6 no-card-context\">\n <c8y-datapoint-selection-list\n class=\"bg-inherit\"\n name=\"dp\"\n [config]=\"datapointSelectionConfig\"\n [minActiveCount]=\"minSelectCount\"\n [maxActiveCount]=\"maxSelectCount\"\n formControlName=\"dp\"\n ></c8y-datapoint-selection-list>\n </div>\n </div>\n</form>\n"],"names":["i3"],"mappings":";;;;;;;;;;;AAGO,MAAM,YAAY,GAAG;AAC1B,IAAA,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE;AAChE,IAAA,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAAE;AAC9E,IAAA,eAAe,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,sBAAsB,CAAC,EAAE;AAC9F,IAAA,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC;CACtE;;SCae,6BAA6B,GAAA;IAC3C,OAAO,CAAC,OAAwB,KAA6B;AAC3D,QAAA,MAAM,UAAU,GA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AA,ECnD3D,2kCAkCA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDSI,UAAU,otCACV,uBAAuB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,+BAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,gBAAA,EAAA,gBAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,aAAA,CAAA,EAAA,OAAA,EAAA,CAAA,SAAA,EAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACvB,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAEZ,mBAAmB,+IAEN,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAA,CAAA,CAAA;;4FAExD,8CAA8C,EAAA,UAAA,EAAA,CAAA;kBAZ1D,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,6BAA6B,EAAA,OAAA,EAE9B;wBACP,UAAU;wBACV,uBAAuB;wBACvB,YAAY;wBACZ,gBAAgB;wBAChB;qBACD,EAAA,aAAA,EACc,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAA,QAAA,EAAA,2kCAAA,EAAA;;sBAGlE;;sBACA;;;;;"}
1
+ {"version":3,"file":"c8y-ngx-components-computed-asset-properties-last-measurement-config.component-C1cuxN3L.mjs","sources":["../../computed-asset-properties/last-measurement/last-measurement.model.ts","../../computed-asset-properties/last-measurement/last-measurement-config.component.ts","../../computed-asset-properties/last-measurement/last-measurement-config.component.html"],"sourcesContent":["import { KPIDetails } from '@c8y/ngx-components/datapoint-selector';\nimport { gettext } from '@c8y/ngx-components/gettext';\n\nexport const RESULT_TYPES = {\n VALUE: { name: 'VALUE', value: 1, label: gettext('Only value') },\n VALUE_UNIT: { name: 'VALUE_UNIT', value: 2, label: gettext('Value and unit') },\n VALUE_UNIT_TIME: { name: 'VALUE_UNIT_TIME', value: 3, label: gettext('Value, unit and time') },\n OBJECT: { name: 'OBJECT', value: 4, label: gettext('Complete object') }\n};\n\nexport type LastMeasurementConfig = {\n dp: KPIDetails[];\n resultType: number;\n};\n","import { Component, inject, Input, OnInit } from '@angular/core';\nimport {\n AbstractControl,\n ControlContainer,\n FormBuilder,\n NgForm,\n ReactiveFormsModule,\n ValidationErrors,\n ValidatorFn,\n Validators\n} from '@angular/forms';\nimport { IManagedObject } from '@c8y/client';\nimport { C8yTranslatePipe, CommonModule, CoreModule } from '@c8y/ngx-components';\nimport {\n DatapointSelectorModalOptions,\n DatapointSelectorModule,\n KPIDetails\n} from '@c8y/ngx-components/datapoint-selector';\nimport { Observable } from 'rxjs';\nimport { LastMeasurementConfig, RESULT_TYPES } from './last-measurement.model';\n\nexport function exactlyASingleDatapointActive(): ValidatorFn {\n return (control: AbstractControl): ValidationErrors | null => {\n const datapoints: KPIDetails[] = control.value;\n\n if (!datapoints || !datapoints.length) {\n return null;\n }\n\n const activeDatapoints = datapoints.filter(datapoint => datapoint.__active);\n\n if (activeDatapoints.length === 1) {\n return null;\n }\n\n return { exactlyOneDatapointNeedsToBeActive: true };\n };\n}\n\n@Component({\n selector: 'c8y-last-measurement-config',\n templateUrl: './last-measurement-config.component.html',\n imports: [\n CoreModule,\n DatapointSelectorModule,\n CommonModule,\n C8yTranslatePipe,\n ReactiveFormsModule\n ],\n viewProviders: [{ provide: ControlContainer, useExisting: NgForm }]\n})\nexport class ComputedPropertyLastMeasurementConfigComponent implements OnInit {\n @Input() config?: LastMeasurementConfig;\n @Input() asset?: IManagedObject;\n formGroup: ReturnType<ComputedPropertyLastMeasurementConfigComponent['createForm']>;\n datapointSelectionConfig: Partial<DatapointSelectorModalOptions> = {};\n\n private formBuilder = inject(FormBuilder);\n private form = inject(NgForm);\n\n selectedProperty: IManagedObject[] = [];\n minSelectCount = 1;\n maxSelectCount = 1;\n resultTypes = RESULT_TYPES;\n\n ngOnInit() {\n if (this.asset) {\n this.datapointSelectionConfig.contextAsset = this.asset;\n this.datapointSelectionConfig.allowChangingContext = false;\n }\n this.initForm();\n }\n\n onBeforeSave(config?: LastMeasurementConfig): boolean | Promise<boolean> | Observable<boolean> {\n if (this.formGroup.valid) {\n Object.assign(config, this.formGroup.value);\n config.dp = config.dp.filter(d => d.__active);\n config.dp[0].__target = { id: config.dp[0].__target.id, name: config.dp[0].__target.name };\n return true;\n }\n return false;\n }\n\n private initForm(): void {\n this.formGroup = this.createForm();\n this.form.form.addControl('config', this.formGroup);\n this.formGroup.patchValue(this.config);\n }\n\n private createForm() {\n return this.formBuilder.group({\n resultType: [this.resultTypes.VALUE.value, [Validators.required]],\n dp: this.formBuilder.control(new Array<KPIDetails>(), [\n Validators.required,\n Validators.minLength(1),\n exactlyASingleDatapointActive()\n ])\n });\n }\n}\n","\n<form [formGroup]=\"formGroup\">\n <div class=\"d-flex-md row\">\n <div class=\"col-md-6\">\n <div class=\"form-group\" style=\"padding-top: var(--c8y-font-size-base)\">\n <label for=\"resultType\">{{ 'Result type' | translate }}</label>\n <div class=\"c8y-select-wrapper\">\n <select\n class=\"form-control\"\n id=\"resultType\"\n formControlName=\"resultType\"\n >\n <option\n *ngFor=\"let type of resultTypes | keyvalue\"\n [ngValue]=\"type.value.value\"\n >\n {{ type.value.label | translate }}\n </option>\n </select>\n </div>\n </div>\n </div>\n <div class=\"col-md-6 no-card-context\">\n <c8y-datapoint-selection-list\n class=\"bg-inherit\"\n name=\"dp\"\n [config]=\"datapointSelectionConfig\"\n [minActiveCount]=\"minSelectCount\"\n [maxActiveCount]=\"maxSelectCount\"\n formControlName=\"dp\"\n ></c8y-datapoint-selection-list>\n </div>\n </div>\n</form>\n"],"names":["i3"],"mappings":";;;;;;;;;;;AAGO,MAAM,YAAY,GAAG;AA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Z1D,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,6BAA6B,EAAA,OAAA,EAE9B;wBACP,UAAU;wBACV,uBAAuB;wBACvB,YAAY;wBACZ,gBAAgB;wBAChB;qBACD,EAAA,aAAA,EACc,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAA,QAAA,EAAA,2kCAAA,EAAA;;sBAGlE;;sBACA;;;;;"}
@@ -1,2 +1,2 @@
1
- export { c as computedAssetPropertiesProviders } from './c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-BxmSKHiM.mjs';
1
+ export { c as computedAssetPropertiesProviders } from './c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-BYHnA-5R.mjs';
2
2
  //# sourceMappingURL=c8y-ngx-components-computed-asset-properties.mjs.map
@@ -37,10 +37,10 @@ class AbstractConnectivityNodeFactory {
37
37
  return !!tab ? [this.connectivityNode] : [];
38
38
  }));
39
39
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AbstractConnectivityNodeFactory, deps: [{ token: AbstractConnectivityTabFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
41
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AbstractConnectivityNodeFactory }); }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AbstractConnectivityNodeFactory, deps: [{ token: AbstractConnectivityTabFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
41
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AbstractConnectivityNodeFactory }); }
42
42
  }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AbstractConnectivityNodeFactory, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AbstractConnectivityNodeFactory, decorators: [{
44
44
  type: Injectable
45
45
  }], ctorParameters: () => [{ type: AbstractConnectivityTabFactory }] });
46
46
 
@@ -55,10 +55,10 @@ class ActilityGuard {
55
55
  }
56
56
  return this.showActilityProvider;
57
57
  }
58
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityGuard, deps: [{ token: i1.AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
59
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityGuard }); }
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ActilityGuard, deps: [{ token: i1.AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
59
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ActilityGuard }); }
60
60
  }
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityGuard, decorators: [{
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ActilityGuard, decorators: [{
62
62
  type: Injectable
63
63
  }], ctorParameters: () => [{ type: i1.AppStateService }] });
64
64
 
@@ -76,10 +76,10 @@ class ActilityTabFactory extends AbstractConnectivityTabFactory {
76
76
  config() {
77
77
  return this.tabConfig;
78
78
  }
79
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityTabFactory, deps: [{ token: i1$1.Router }, { token: ActilityGuard }], target: i0.ɵɵFactoryTarget.Injectable }); }
80
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityTabFactory, providedIn: 'root' }); }
79
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ActilityTabFactory, deps: [{ token: i1$1.Router }, { token: ActilityGuard }], target: i0.ɵɵFactoryTarget.Injectable }); }
80
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ActilityTabFactory, providedIn: 'root' }); }
81
81
  }
82
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityTabFactory, decorators: [{
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ActilityTabFactory, decorators: [{
83
83
  type: Injectable,
84
84
  args: [{ providedIn: 'root' }]
85
85
  }], ctorParameters: () => [{ type: i1$1.Router }, { type: ActilityGuard }] });
@@ -89,20 +89,20 @@ class ActilityNodeFactory extends AbstractConnectivityNodeFactory {
89
89
  super(tabFactory);
90
90
  this.tabFactory = tabFactory;
91
91
  }
92
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityNodeFactory, deps: [{ token: ActilityTabFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
93
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityNodeFactory, providedIn: 'root' }); }
92
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ActilityNodeFactory, deps: [{ token: ActilityTabFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
93
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ActilityNodeFactory, providedIn: 'root' }); }
94
94
  }
95
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityNodeFactory, decorators: [{
95
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ActilityNodeFactory, decorators: [{
96
96
  type: Injectable,
97
97
  args: [{ providedIn: 'root' }]
98
98
  }], ctorParameters: () => [{ type: ActilityTabFactory }] });
99
99
 
100
100
  class ActilityModule {
101
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
102
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.17", ngImport: i0, type: ActilityModule }); }
103
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityModule, providers: [ActilityGuard, hookNavigator(ActilityNodeFactory), hookTab(ActilityTabFactory)] }); }
101
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ActilityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
102
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: ActilityModule }); }
103
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ActilityModule, providers: [ActilityGuard, hookNavigator(ActilityNodeFactory), hookTab(ActilityTabFactory)] }); }
104
104
  }
105
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ActilityModule, decorators: [{
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ActilityModule, decorators: [{
106
106
  type: NgModule,
107
107
  args: [{
108
108
  providers: [ActilityGuard, hookNavigator(ActilityNodeFactory), hookTab(ActilityTabFactory)]
@@ -120,10 +120,10 @@ class LoriotGuard {
120
120
  }
121
121
  return this.showLoriotProvider;
122
122
  }
123
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LoriotGuard, deps: [{ token: i1.AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
124
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LoriotGuard }); }
123
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: LoriotGuard, deps: [{ token: i1.AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
124
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: LoriotGuard }); }
125
125
  }
126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LoriotGuard, decorators: [{
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: LoriotGuard, decorators: [{
127
127
  type: Injectable
128
128
  }], ctorParameters: () => [{ type: i1.AppStateService }] });
129
129
 
@@ -141,10 +141,10 @@ class LoriotTabFactory extends AbstractConnectivityTabFactory {
141
141
  config() {
142
142
  return this.tabConfig;
143
143
  }
144
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LoriotTabFactory, deps: [{ token: i1$1.Router }, { token: LoriotGuard }], target: i0.ɵɵFactoryTarget.Injectable }); }
145
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LoriotTabFactory, providedIn: 'root' }); }
144
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: LoriotTabFactory, deps: [{ token: i1$1.Router }, { token: LoriotGuard }], target: i0.ɵɵFactoryTarget.Injectable }); }
145
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: LoriotTabFactory, providedIn: 'root' }); }
146
146
  }
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LoriotTabFactory, decorators: [{
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: LoriotTabFactory, decorators: [{
148
148
  type: Injectable,
149
149
  args: [{ providedIn: 'root' }]
150
150
  }], ctorParameters: () => [{ type: i1$1.Router }, { type: LoriotGuard }] });
@@ -154,20 +154,20 @@ class LoriotNodeFactory extends AbstractConnectivityNodeFactory {
154
154
  super(tabFactory);
155
155
  this.tabFactory = tabFactory;
156
156
  }
157
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LoriotNodeFactory, deps: [{ token: LoriotTabFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
158
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LoriotNodeFactory, providedIn: 'root' }); }
157
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: LoriotNodeFactory, deps: [{ token: LoriotTabFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
158
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: LoriotNodeFactory, providedIn: 'root' }); }
159
159
  }
160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LoriotNodeFactory, decorators: [{
160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: LoriotNodeFactory, decorators: [{
161
161
  type: Injectable,
162
162
  args: [{ providedIn: 'root' }]
163
163
  }], ctorParameters: () => [{ type: LoriotTabFactory }] });
164
164
 
165
165
  class LoriotModule {
166
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LoriotModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
167
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.17", ngImport: i0, type: LoriotModule }); }
168
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LoriotModule, providers: [LoriotGuard, hookNavigator(LoriotNodeFactory), hookTab(LoriotTabFactory)] }); }
166
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: LoriotModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
167
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: LoriotModule }); }
168
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: LoriotModule, providers: [LoriotGuard, hookNavigator(LoriotNodeFactory), hookTab(LoriotTabFactory)] }); }
169
169
  }
170
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: LoriotModule, decorators: [{
170
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: LoriotModule, decorators: [{
171
171
  type: NgModule,
172
172
  args: [{
173
173
  providers: [LoriotGuard, hookNavigator(LoriotNodeFactory), hookTab(LoriotTabFactory)]
@@ -185,10 +185,10 @@ class SigfoxGuard {
185
185
  }
186
186
  return this.showSigfoxProvider;
187
187
  }
188
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SigfoxGuard, deps: [{ token: i1.AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
189
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SigfoxGuard }); }
188
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SigfoxGuard, deps: [{ token: i1.AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
189
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SigfoxGuard }); }
190
190
  }
191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SigfoxGuard, decorators: [{
191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SigfoxGuard, decorators: [{
192
192
  type: Injectable
193
193
  }], ctorParameters: () => [{ type: i1.AppStateService }] });
194
194
 
@@ -206,10 +206,10 @@ class SigfoxTabFactory extends AbstractConnectivityTabFactory {
206
206
  config() {
207
207
  return this.tabConfig;
208
208
  }
209
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SigfoxTabFactory, deps: [{ token: i1$1.Router }, { token: SigfoxGuard }], target: i0.ɵɵFactoryTarget.Injectable }); }
210
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SigfoxTabFactory, providedIn: 'root' }); }
209
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SigfoxTabFactory, deps: [{ token: i1$1.Router }, { token: SigfoxGuard }], target: i0.ɵɵFactoryTarget.Injectable }); }
210
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SigfoxTabFactory, providedIn: 'root' }); }
211
211
  }
212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SigfoxTabFactory, decorators: [{
212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SigfoxTabFactory, decorators: [{
213
213
  type: Injectable,
214
214
  args: [{ providedIn: 'root' }]
215
215
  }], ctorParameters: () => [{ type: i1$1.Router }, { type: SigfoxGuard }] });
@@ -219,20 +219,20 @@ class SigfoxNodeFactory extends AbstractConnectivityNodeFactory {
219
219
  super(tabFactory);
220
220
  this.tabFactory = tabFactory;
221
221
  }
222
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SigfoxNodeFactory, deps: [{ token: SigfoxTabFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
223
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SigfoxNodeFactory, providedIn: 'root' }); }
222
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SigfoxNodeFactory, deps: [{ token: SigfoxTabFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
223
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SigfoxNodeFactory, providedIn: 'root' }); }
224
224
  }
225
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SigfoxNodeFactory, decorators: [{
225
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SigfoxNodeFactory, decorators: [{
226
226
  type: Injectable,
227
227
  args: [{ providedIn: 'root' }]
228
228
  }], ctorParameters: () => [{ type: SigfoxTabFactory }] });
229
229
 
230
230
  class SigfoxModule {
231
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SigfoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
232
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.17", ngImport: i0, type: SigfoxModule }); }
233
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SigfoxModule, providers: [SigfoxGuard, hookNavigator(SigfoxNodeFactory), hookTab(SigfoxTabFactory)] }); }
231
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SigfoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
232
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: SigfoxModule }); }
233
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SigfoxModule, providers: [SigfoxGuard, hookNavigator(SigfoxNodeFactory), hookTab(SigfoxTabFactory)] }); }
234
234
  }
235
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SigfoxModule, decorators: [{
235
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SigfoxModule, decorators: [{
236
236
  type: NgModule,
237
237
  args: [{
238
238
  providers: [SigfoxGuard, hookNavigator(SigfoxNodeFactory), hookTab(SigfoxTabFactory)]
@@ -246,18 +246,18 @@ const connectivityRoutes = [
246
246
  }
247
247
  ];
248
248
  class ConnectivityModule {
249
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ConnectivityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
250
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.17", ngImport: i0, type: ConnectivityModule, imports: [CoreModule,
249
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ConnectivityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
250
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: ConnectivityModule, imports: [CoreModule,
251
251
  ActilityModule,
252
252
  SigfoxModule,
253
253
  LoriotModule, i1$1.RouterModule] }); }
254
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ConnectivityModule, imports: [CoreModule,
254
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ConnectivityModule, imports: [CoreModule,
255
255
  ActilityModule,
256
256
  SigfoxModule,
257
257
  LoriotModule,
258
258
  RouterModule.forChild(connectivityRoutes)] }); }
259
259
  }
260
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ConnectivityModule, decorators: [{
260
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ConnectivityModule, decorators: [{
261
261
  type: NgModule,
262
262
  args: [{
263
263
  imports: [
@@ -283,10 +283,10 @@ class SimGuard {
283
283
  }
284
284
  return this.showSimProvider;
285
285
  }
286
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SimGuard, deps: [{ token: i1.Permissions }, { token: i1.AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
287
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SimGuard }); }
286
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SimGuard, deps: [{ token: i1.Permissions }, { token: i1.AppStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
287
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SimGuard }); }
288
288
  }
289
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SimGuard, decorators: [{
289
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SimGuard, decorators: [{
290
290
  type: Injectable
291
291
  }], ctorParameters: () => [{ type: i1.Permissions }, { type: i1.AppStateService }] });
292
292
 
@@ -355,9 +355,9 @@ async function encodeFiles(model, fields) {
355
355
  return result;
356
356
  }
357
357
  class SimModule {
358
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SimModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
359
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.17", ngImport: i0, type: SimModule, imports: [i1.ProviderConfigurationModule] }); }
360
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SimModule, providers: [SimGuard, hookPatternMessages(MESSAGES_CONNECTIVITY_SIM)], imports: [ProviderConfigurationModule.config([
358
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SimModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
359
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: SimModule, imports: [i1.ProviderConfigurationModule] }); }
360
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SimModule, providers: [SimGuard, hookPatternMessages(MESSAGES_CONNECTIVITY_SIM)], imports: [ProviderConfigurationModule.config([
361
361
  {
362
362
  navigation: {
363
363
  label: gettext('Connectivity'),
@@ -404,7 +404,7 @@ class SimModule {
404
404
  }
405
405
  ])] }); }
406
406
  }
407
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: SimModule, decorators: [{
407
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SimModule, decorators: [{
408
408
  type: NgModule,
409
409
  args: [{
410
410
  providers: [SimGuard, hookPatternMessages(MESSAGES_CONNECTIVITY_SIM)],
@@ -8,10 +8,10 @@ class AssetDashboardActionBarFactory extends DashboardActionBarFactory {
8
8
  super(...arguments);
9
9
  this.targetContext = ViewContext.Group;
10
10
  }
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AssetDashboardActionBarFactory, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
12
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AssetDashboardActionBarFactory, providedIn: 'root' }); }
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AssetDashboardActionBarFactory, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
12
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AssetDashboardActionBarFactory, providedIn: 'root' }); }
13
13
  }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AssetDashboardActionBarFactory, decorators: [{
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AssetDashboardActionBarFactory, decorators: [{
15
15
  type: Injectable,
16
16
  args: [{
17
17
  providedIn: 'root'
@@ -23,10 +23,10 @@ class AddAssetDashboardFactory extends AddDashboardFactory {
23
23
  super(...arguments);
24
24
  this.targetContext = ViewContext.Group;
25
25
  }
26
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AddAssetDashboardFactory, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
27
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AddAssetDashboardFactory, providedIn: 'root' }); }
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AddAssetDashboardFactory, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
27
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AddAssetDashboardFactory, providedIn: 'root' }); }
28
28
  }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AddAssetDashboardFactory, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AddAssetDashboardFactory, decorators: [{
30
30
  type: Injectable,
31
31
  args: [{
32
32
  providedIn: 'root'
@@ -34,9 +34,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
34
34
  }] });
35
35
 
36
36
  class AddAssetContextDashboardModule {
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AddAssetContextDashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
38
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.17", ngImport: i0, type: AddAssetContextDashboardModule, imports: [ContextDashboardModule] }); }
39
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AddAssetContextDashboardModule, providers: [
37
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AddAssetContextDashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
38
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: AddAssetContextDashboardModule, imports: [ContextDashboardModule] }); }
39
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AddAssetContextDashboardModule, providers: [
40
40
  hookRoute([
41
41
  // new dashboard route should be defined last
42
42
  {
@@ -52,7 +52,7 @@ class AddAssetContextDashboardModule {
52
52
  hookActionBar(AssetDashboardActionBarFactory)
53
53
  ], imports: [ContextDashboardModule] }); }
54
54
  }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AddAssetContextDashboardModule, decorators: [{
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AddAssetContextDashboardModule, decorators: [{
56
56
  type: NgModule,
57
57
  args: [{
58
58
  imports: [ContextDashboardModule],
@@ -14,18 +14,18 @@ class AssetDashboardGuard {
14
14
  ContextDashboardType.Type
15
15
  ]);
16
16
  }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AssetDashboardGuard, deps: [{ token: i1.ContextDashboardService }], target: i0.ɵɵFactoryTarget.Injectable }); }
18
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AssetDashboardGuard, providedIn: 'root' }); }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AssetDashboardGuard, deps: [{ token: i1.ContextDashboardService }], target: i0.ɵɵFactoryTarget.Injectable }); }
18
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AssetDashboardGuard, providedIn: 'root' }); }
19
19
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AssetDashboardGuard, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AssetDashboardGuard, decorators: [{
21
21
  type: Injectable,
22
22
  args: [{ providedIn: 'root' }]
23
23
  }], ctorParameters: () => [{ type: i1.ContextDashboardService }] });
24
24
 
25
25
  class ViewAssetContextDashboardModule {
26
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ViewAssetContextDashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
27
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.17", ngImport: i0, type: ViewAssetContextDashboardModule, imports: [ContextDashboardModule] }); }
28
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ViewAssetContextDashboardModule, providers: [
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ViewAssetContextDashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
27
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: ViewAssetContextDashboardModule, imports: [ContextDashboardModule] }); }
28
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ViewAssetContextDashboardModule, providers: [
29
29
  hookRoute([
30
30
  {
31
31
  path: 'dashboard/:dashboardId',
@@ -38,7 +38,7 @@ class ViewAssetContextDashboardModule {
38
38
  ])
39
39
  ], imports: [ContextDashboardModule] }); }
40
40
  }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ViewAssetContextDashboardModule, decorators: [{
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ViewAssetContextDashboardModule, decorators: [{
42
42
  type: NgModule,
43
43
  args: [{
44
44
  imports: [ContextDashboardModule],