@c8y/ngx-components 1022.34.0 → 1022.44.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (943) hide show
  1. package/actility-device-registration/actility-device-registration.component.d.ts.map +1 -1
  2. package/actility-device-registration/actility-device-registration.service.d.ts.map +1 -1
  3. package/alarms/alarm-details.component.d.ts.map +1 -1
  4. package/alarms/alarm-info.component.d.ts.map +1 -1
  5. package/alarms/alarm-severity-to-icon-class.pipe.d.ts +9 -0
  6. package/alarms/alarm-severity-to-icon-class.pipe.d.ts.map +1 -0
  7. package/alarms/alarms-icon.component.d.ts.map +1 -1
  8. package/alarms/alarms-interval-refresh.component.d.ts.map +1 -1
  9. package/alarms/alarms-list.component.d.ts.map +1 -1
  10. package/alarms/alarms-view.service.d.ts.map +1 -1
  11. package/alarms/alarms.component.d.ts.map +1 -1
  12. package/alarms/alarms.helper.d.ts.map +1 -1
  13. package/alarms/alarms.model.d.ts.map +1 -1
  14. package/alarms/cockpit/index.d.ts.map +1 -1
  15. package/alarms/devicemanagement/index.d.ts.map +1 -1
  16. package/alarms/index.d.ts +1 -0
  17. package/alarms/index.d.ts.map +1 -1
  18. package/asset-properties/asset-properties.model.d.ts +77 -1
  19. package/asset-properties/asset-properties.model.d.ts.map +1 -1
  20. package/asset-properties/asset-properties.service.d.ts +17 -0
  21. package/asset-properties/asset-properties.service.d.ts.map +1 -1
  22. package/asset-properties/asset-property-list/asset-property-collapse-button-title.pipe.d.ts +14 -0
  23. package/asset-properties/asset-property-list/asset-property-collapse-button-title.pipe.d.ts.map +1 -0
  24. package/asset-properties/asset-property-list/asset-property-icon.pipe.d.ts +2 -1
  25. package/asset-properties/asset-property-list/asset-property-icon.pipe.d.ts.map +1 -1
  26. package/asset-properties/asset-property-list/asset-property-list.component.d.ts +52 -13
  27. package/asset-properties/asset-property-list/asset-property-list.component.d.ts.map +1 -1
  28. package/asset-properties/asset-property-list/asset-property-value.pipe.d.ts +7 -3
  29. package/asset-properties/asset-property-list/asset-property-value.pipe.d.ts.map +1 -1
  30. package/asset-properties/asset-property-list/tree-data-source.d.ts +1 -0
  31. package/asset-properties/asset-property-list/tree-data-source.d.ts.map +1 -1
  32. package/asset-properties/asset-property-selector-drawer/asset-property-selector-drawer.component.d.ts.map +1 -1
  33. package/asset-properties/computed-properties-config/computed-properties-config.component.d.ts +39 -0
  34. package/asset-properties/computed-properties-config/computed-properties-config.component.d.ts.map +1 -0
  35. package/asset-properties/computed-properties.service.d.ts +27 -0
  36. package/asset-properties/computed-properties.service.d.ts.map +1 -0
  37. package/asset-properties/custom-properties-drawer/custom-properties-drawer.component.d.ts +11 -6
  38. package/asset-properties/custom-properties-drawer/custom-properties-drawer.component.d.ts.map +1 -1
  39. package/asset-properties/custom-properties-drawer.service.d.ts +2 -1
  40. package/asset-properties/custom-properties-drawer.service.d.ts.map +1 -1
  41. package/asset-properties/index.d.ts +1 -0
  42. package/asset-properties/index.d.ts.map +1 -1
  43. package/assets-navigator/asset-node.d.ts.map +1 -1
  44. package/assets-navigator/asset-node.service.d.ts.map +1 -1
  45. package/assets-navigator/asset-selector/asset-selector-node.component.d.ts.map +1 -1
  46. package/assets-navigator/asset-selector/asset-selector.model.d.ts +1 -2
  47. package/assets-navigator/asset-selector/asset-selector.model.d.ts.map +1 -1
  48. package/assets-navigator/asset-selector/miller-view.component.d.ts +17 -5
  49. package/assets-navigator/asset-selector/miller-view.component.d.ts.map +1 -1
  50. package/assets-navigator/asset-selector/unassigned-devices-node.d.ts.map +1 -1
  51. package/assets-navigator/load-more-node.d.ts.map +1 -1
  52. package/auth-configuration/basic-settings/login-settings.component.d.ts.map +1 -1
  53. package/auth-configuration/basic-settings/session-configuration.component.d.ts.map +1 -1
  54. package/auth-configuration/factories/navigation.factory.d.ts.map +1 -1
  55. package/auth-configuration/factories/tabs.factory.d.ts.map +1 -1
  56. package/auth-configuration/sso-configuration/sso-configuration.component.d.ts.map +1 -1
  57. package/auth-configuration/sso-configuration/template-parts/access-mapping/inventory-roles-modal.component.d.ts.map +1 -1
  58. package/auth-configuration/sso-configuration/template-parts/signature-configuration.component.d.ts.map +1 -1
  59. package/auth-configuration/sso-configuration/template-parts/user-data-mapping.component.d.ts.map +1 -1
  60. package/binary-file-download/binary-file-download.service.d.ts.map +1 -1
  61. package/bookmarks/bookmarks.component.d.ts.map +1 -1
  62. package/bookmarks/bookmarks.service.d.ts.map +1 -1
  63. package/bookmarks/edit-bookmarks/edit-bookmarks.component.d.ts.map +1 -1
  64. package/branding/dark-theme/dark-theme-tab.factory.d.ts.map +1 -1
  65. package/branding/extra-css-branding-editor/extra-css-branding-editor-tab.factory.d.ts.map +1 -1
  66. package/branding/plain-branding-editor/plain-branding-editor-tab.factory.d.ts.map +1 -1
  67. package/branding/shared/lazy/branding-form/branding-form.component.d.ts.map +1 -1
  68. package/branding/shared/lazy/branding-import-modal/branding-import-modal.component.d.ts.map +1 -1
  69. package/branding/shared/lazy/edit-branding-router-outlet/edit-branding-router-outlet.component.d.ts.map +1 -1
  70. package/cockpit-config/cockpit-config.guard.d.ts.map +1 -1
  71. package/cockpit-config/cockpit-configuration.component.d.ts.map +1 -1
  72. package/computed-asset-properties/alarm-count/alarm-count-3-months-computed-property.d.ts +8 -0
  73. package/computed-asset-properties/alarm-count/alarm-count-3-months-computed-property.d.ts.map +1 -0
  74. package/computed-asset-properties/alarm-count/alarm-count-config.component.d.ts +26 -0
  75. package/computed-asset-properties/alarm-count/alarm-count-config.component.d.ts.map +1 -0
  76. package/computed-asset-properties/alarm-count/alarm-count-today-computed-property.d.ts +8 -0
  77. package/computed-asset-properties/alarm-count/alarm-count-today-computed-property.d.ts.map +1 -0
  78. package/computed-asset-properties/alarm-count/alarm-count-value.d.ts +17 -0
  79. package/computed-asset-properties/alarm-count/alarm-count-value.d.ts.map +1 -0
  80. package/computed-asset-properties/alarm-count/alarm-count.model.d.ts +6 -0
  81. package/computed-asset-properties/alarm-count/alarm-count.model.d.ts.map +1 -0
  82. package/computed-asset-properties/c8y-ngx-components-computed-asset-properties.d.ts.map +1 -0
  83. package/computed-asset-properties/child-count/child-assets-count-computed-property.d.ts +14 -0
  84. package/computed-asset-properties/child-count/child-assets-count-computed-property.d.ts.map +1 -0
  85. package/computed-asset-properties/child-count/child-count-value.d.ts +14 -0
  86. package/computed-asset-properties/child-count/child-count-value.d.ts.map +1 -0
  87. package/computed-asset-properties/child-count/child-devices-count-computed-property.d.ts +14 -0
  88. package/computed-asset-properties/child-count/child-devices-count-computed-property.d.ts.map +1 -0
  89. package/computed-asset-properties/common/realtime-value-base.d.ts +32 -0
  90. package/computed-asset-properties/common/realtime-value-base.d.ts.map +1 -0
  91. package/computed-asset-properties/common/realtime-value-handler.d.ts +19 -0
  92. package/computed-asset-properties/common/realtime-value-handler.d.ts.map +1 -0
  93. package/computed-asset-properties/configuration-snapshot/configuration-snapshot-computed-property.d.ts +7 -0
  94. package/computed-asset-properties/configuration-snapshot/configuration-snapshot-computed-property.d.ts.map +1 -0
  95. package/computed-asset-properties/configuration-snapshot/configuration-snapshot-config.component.d.ts +21 -0
  96. package/computed-asset-properties/configuration-snapshot/configuration-snapshot-config.component.d.ts.map +1 -0
  97. package/computed-asset-properties/configuration-snapshot/configuration-snapshot.model.d.ts +8 -0
  98. package/computed-asset-properties/configuration-snapshot/configuration-snapshot.model.d.ts.map +1 -0
  99. package/computed-asset-properties/event-count/event-count-3-months.d.ts +8 -0
  100. package/computed-asset-properties/event-count/event-count-3-months.d.ts.map +1 -0
  101. package/computed-asset-properties/event-count/event-count-config.component.d.ts +18 -0
  102. package/computed-asset-properties/event-count/event-count-config.component.d.ts.map +1 -0
  103. package/computed-asset-properties/event-count/event-count-today.d.ts +8 -0
  104. package/computed-asset-properties/event-count/event-count-today.d.ts.map +1 -0
  105. package/computed-asset-properties/event-count/event-count-value.d.ts +17 -0
  106. package/computed-asset-properties/event-count/event-count-value.d.ts.map +1 -0
  107. package/computed-asset-properties/event-count/event-count.model.d.ts +4 -0
  108. package/computed-asset-properties/event-count/event-count.model.d.ts.map +1 -0
  109. package/computed-asset-properties/index.d.ts +3 -0
  110. package/computed-asset-properties/index.d.ts.map +1 -0
  111. package/computed-asset-properties/last-device-message/last-device-message-computed-property.d.ts +3 -0
  112. package/computed-asset-properties/last-device-message/last-device-message-computed-property.d.ts.map +1 -0
  113. package/computed-asset-properties/last-device-message/last-device-message-value.d.ts +13 -0
  114. package/computed-asset-properties/last-device-message/last-device-message-value.d.ts.map +1 -0
  115. package/computed-asset-properties/last-measurement/last-measurement-computed-property.d.ts +8 -0
  116. package/computed-asset-properties/last-measurement/last-measurement-computed-property.d.ts.map +1 -0
  117. package/computed-asset-properties/last-measurement/last-measurement-config.component.d.ts +48 -0
  118. package/computed-asset-properties/last-measurement/last-measurement-config.component.d.ts.map +1 -0
  119. package/computed-asset-properties/last-measurement/last-measurement-value.d.ts +13 -0
  120. package/computed-asset-properties/last-measurement/last-measurement-value.d.ts.map +1 -0
  121. package/computed-asset-properties/last-measurement/last-measurement.model.d.ts +28 -0
  122. package/computed-asset-properties/last-measurement/last-measurement.model.d.ts.map +1 -0
  123. package/computed-asset-properties/strategies/alarm-count-strategy.d.ts +17 -0
  124. package/computed-asset-properties/strategies/alarm-count-strategy.d.ts.map +1 -0
  125. package/computed-asset-properties/strategies/child-count-strategy.d.ts +14 -0
  126. package/computed-asset-properties/strategies/child-count-strategy.d.ts.map +1 -0
  127. package/computed-asset-properties/strategies/count-strategy-base.d.ts +12 -0
  128. package/computed-asset-properties/strategies/count-strategy-base.d.ts.map +1 -0
  129. package/computed-asset-properties/strategies/event-count-strategy.d.ts +16 -0
  130. package/computed-asset-properties/strategies/event-count-strategy.d.ts.map +1 -0
  131. package/computed-asset-properties/strategies/last-device-message-strategy.d.ts +20 -0
  132. package/computed-asset-properties/strategies/last-device-message-strategy.d.ts.map +1 -0
  133. package/computed-asset-properties/strategies/last-measurement-strategy.d.ts +16 -0
  134. package/computed-asset-properties/strategies/last-measurement-strategy.d.ts.map +1 -0
  135. package/connectivity/abstract-connectivity-node.factory.d.ts.map +1 -1
  136. package/connectivity/actility/actility-tab.factory.d.ts.map +1 -1
  137. package/connectivity/sigfox/sigfox-tab.factory.d.ts.map +1 -1
  138. package/connectivity/sim/sim.module.d.ts.map +1 -1
  139. package/context-dashboard/cockpit-home-dashboard/cockpit-dashboard.component.d.ts.map +1 -1
  140. package/context-dashboard/cockpit-home-dashboard/cockpit-dashboard.model.d.ts.map +1 -1
  141. package/context-dashboard/cockpit-home-dashboard/cockpit-dashboard.module.d.ts.map +1 -1
  142. package/context-dashboard/context-dashboard.component.d.ts.map +1 -1
  143. package/context-dashboard/context-dashboard.model.d.ts +16 -0
  144. package/context-dashboard/context-dashboard.model.d.ts.map +1 -1
  145. package/context-dashboard/context-dashboard.service.d.ts.map +1 -1
  146. package/context-dashboard/dashboard-detail.component.d.ts.map +1 -1
  147. package/context-dashboard/dashboard-detail.service.d.ts.map +1 -1
  148. package/context-dashboard/dashboard-details-tabs.factory.d.ts.map +1 -1
  149. package/context-dashboard/dashboard-settings/dashboard-general-settings.component.d.ts.map +1 -1
  150. package/context-dashboard/dashboard-settings/dashboard-version-history.component.d.ts.map +1 -1
  151. package/context-dashboard/dashboard-settings/typed-dashboard-settings.component.d.ts.map +1 -1
  152. package/context-dashboard/device-info-dashboard/device-info-dashboard.component.d.ts.map +1 -1
  153. package/context-dashboard/device-info-dashboard/device-info-dashboard.module.d.ts.map +1 -1
  154. package/context-dashboard/device-management-home-dashboard/device-management-home-dashboard.component.d.ts.map +1 -1
  155. package/context-dashboard/device-management-home-dashboard/device-management-home-dashboard.module.d.ts.map +1 -1
  156. package/context-dashboard/new-dashboard.guard.d.ts.map +1 -1
  157. package/context-dashboard/widget-config/appearance-settings.component.d.ts.map +1 -1
  158. package/context-dashboard/widget-config.service.d.ts +11 -1
  159. package/context-dashboard/widget-config.service.d.ts.map +1 -1
  160. package/core/action/action.service.d.ts +1 -1
  161. package/core/action-bar/action-bar.service.d.ts +1 -1
  162. package/core/authentication/simplified-auth.service.d.ts +1 -1
  163. package/core/authentication/simplified-auth.service.d.ts.map +1 -1
  164. package/core/breadcrumb/breadcrumb.service.d.ts +1 -1
  165. package/core/common/date.pipe.d.ts.map +1 -1
  166. package/core/common/extension-hooks.d.ts.map +1 -1
  167. package/core/common/options.service.d.ts +1 -1
  168. package/core/common/service-registry.service.d.ts +1 -1
  169. package/core/common/ui-state.service.d.ts +7 -7
  170. package/core/common/ui-state.service.d.ts.map +1 -1
  171. package/core/common/user-preferences/user-preferences.service.d.ts +4 -4
  172. package/core/common/user-preferences/user-preferences.service.d.ts.map +1 -1
  173. package/core/dashboard/widgets-dashboard.component.d.ts +1 -1
  174. package/core/dashboard/widgets-dashboard.component.d.ts.map +1 -1
  175. package/core/data-grid/action-controls-extension.service.d.ts +1 -1
  176. package/core/data-grid/filter-chip/filter-mapper.factory.d.ts +1 -1
  177. package/core/date-picker/date-picker.component.d.ts.map +1 -1
  178. package/core/docs/docs.models.d.ts +1 -1
  179. package/core/docs/docs.module.d.ts +1 -1
  180. package/core/docs/help-and-support-outlet/help-and-support-outlet.module.d.ts +1 -1
  181. package/core/docs/legal-notices-outlet/legal-notices-outlet.module.d.ts +1 -1
  182. package/core/docs/support-outlet/support-outlet.component.d.ts +4 -3
  183. package/core/docs/support-outlet/support-outlet.component.d.ts.map +1 -1
  184. package/core/docs/support-outlet/support-outlet.module.d.ts +1 -1
  185. package/core/drawer/drawer.service.d.ts +1 -1
  186. package/core/dynamic-component/dynamic-component.model.d.ts +18 -4
  187. package/core/dynamic-component/dynamic-component.model.d.ts.map +1 -1
  188. package/core/dynamic-forms/i18n/translate.extension.d.ts.map +1 -1
  189. package/core/feedback-form/feedback-form.component.d.ts +27 -0
  190. package/core/feedback-form/feedback-form.component.d.ts.map +1 -0
  191. package/core/feedback-form/feedback-form.model.d.ts +6 -0
  192. package/core/feedback-form/feedback-form.model.d.ts.map +1 -0
  193. package/core/feedback-form/index.d.ts +2 -0
  194. package/core/feedback-form/index.d.ts.map +1 -0
  195. package/core/i18n/gettext.d.ts +4 -1
  196. package/core/i18n/gettext.d.ts.map +1 -1
  197. package/core/i18n/pattern-messages.data.d.ts +61 -0
  198. package/core/i18n/pattern-messages.data.d.ts.map +1 -1
  199. package/core/i18n/patterns-message.hook.d.ts +1 -1
  200. package/core/index.d.ts +1 -0
  201. package/core/index.d.ts.map +1 -1
  202. package/core/modal/modal.service.d.ts +0 -1
  203. package/core/modal/modal.service.d.ts.map +1 -1
  204. package/core/navigator/navigator-bottom/navigator-bottom.module.d.ts +1 -1
  205. package/core/navigator/navigator-top/navigator-top.module.d.ts +1 -1
  206. package/core/navigator/navigator.module.d.ts +1 -1
  207. package/core/navigator/navigator.service.d.ts +1 -1
  208. package/core/plugins/index.d.ts +1 -0
  209. package/core/plugins/index.d.ts.map +1 -1
  210. package/core/plugins/plugins-injection-token.d.ts +14 -0
  211. package/core/plugins/plugins-injection-token.d.ts.map +1 -0
  212. package/core/plugins/plugins-loader.service.d.ts +7 -21
  213. package/core/plugins/plugins-loader.service.d.ts.map +1 -1
  214. package/core/plugins/plugins-resolve.service.d.ts +1 -0
  215. package/core/plugins/plugins-resolve.service.d.ts.map +1 -1
  216. package/core/preview-feature/preview-feature.component.d.ts.map +1 -1
  217. package/core/preview-feature/preview-feature.service.d.ts +1 -1
  218. package/core/provider-configuration/provider-configuration-hook.d.ts +1 -1
  219. package/core/query-param-handler/index.d.ts +1 -1
  220. package/core/query-param-handler/query-param-bottom-drawer.service.d.ts +1 -1
  221. package/core/query-param-handler/query-param-handler.service.d.ts +1 -1
  222. package/core/query-param-handler/query-param-modal-handler.service.d.ts +1 -1
  223. package/core/router/router.service.d.ts +1 -1
  224. package/core/search/search.service.d.ts +1 -1
  225. package/core/stepper/stepper.service.d.ts +1 -1
  226. package/core/tabs/tab.component.d.ts +2 -2
  227. package/core/tabs/tab.component.d.ts.map +1 -1
  228. package/core/tabs/tab.model.d.ts +2 -2
  229. package/core/tabs/tab.model.d.ts.map +1 -1
  230. package/core/tabs/tabs.service.d.ts +1 -1
  231. package/core/tabs/tabs.service.d.ts.map +1 -1
  232. package/core/ui-settings/ui-settings.module.d.ts +1 -1
  233. package/core/user/change-current-user-password.service.d.ts +10 -0
  234. package/core/user/change-current-user-password.service.d.ts.map +1 -0
  235. package/core/user/index.d.ts +1 -0
  236. package/core/user/index.d.ts.map +1 -1
  237. package/core/user/user-details-drawer/user-details-drawer.module.d.ts +1 -1
  238. package/core/user/user-menu.service.d.ts +1 -1
  239. package/core/user/user.module.d.ts +1 -1
  240. package/core/version/version.model.d.ts +1 -1
  241. package/core/version/version.module.d.ts +1 -1
  242. package/core/wizard/wizard.model.d.ts +1 -1
  243. package/dashboard-details-advanced-tab/advanced-tab.factory.d.ts.map +1 -1
  244. package/dashboard-details-advanced-tab/assign-widget-assets/assign-widget-asset-modal.component.d.ts.map +1 -1
  245. package/dashboard-details-advanced-tab/dashboard-json-editor/dashboard-json-editor.component.d.ts.map +1 -1
  246. package/dashboard-details-advanced-tab/dashboard-json-editor/import-export-widgets.service.d.ts.map +1 -1
  247. package/dashboard-manager/dashboard-manager-tabs.factory.d.ts.map +1 -1
  248. package/dashboard-manager/dashboard-manager.service.d.ts.map +1 -1
  249. package/dashboard-manager/devicemanagement/index.d.ts +1 -1
  250. package/dashboard-manager/type-dashboard-target-assets-grid/type-dashboard-target-assets-grid.component.d.ts.map +1 -1
  251. package/dashboard-manager/type-dashboard-target-assets-modal/type-dashboard-target-assets-modal.component.d.ts.map +1 -1
  252. package/dashboard-manager/type-dashboards-list/device-type-value.grid-column.d.ts.map +1 -1
  253. package/dashboard-manager/type-dashboards-list/type-dashboards-list.component.d.ts.map +1 -1
  254. package/data-grid-columns/asset-type/asset-type-grid-column.d.ts.map +1 -1
  255. package/data-grid-columns/asset-type/asset-type.cell-renderer.component.d.ts.map +1 -1
  256. package/datapoint-explorer/datapoint-explorer-navigation-factory.d.ts.map +1 -1
  257. package/datapoint-explorer/devicemanagement/index.d.ts +3 -0
  258. package/datapoint-explorer/devicemanagement/index.d.ts.map +1 -1
  259. package/datapoint-explorer/view/configuration/workspace-configuration.component.d.ts +4 -2
  260. package/datapoint-explorer/view/configuration/workspace-configuration.component.d.ts.map +1 -1
  261. package/datapoint-explorer/view/create-new-report-modal/create-new-report-modal.component.d.ts.map +1 -1
  262. package/datapoint-explorer/view/datapoint-explorer.component.d.ts +7 -3
  263. package/datapoint-explorer/view/datapoint-explorer.component.d.ts.map +1 -1
  264. package/datapoint-explorer/view/datapoint-explorer.model.d.ts +1 -0
  265. package/datapoint-explorer/view/datapoint-explorer.model.d.ts.map +1 -1
  266. package/datapoint-explorer/view/index.d.ts +3 -0
  267. package/datapoint-explorer/view/index.d.ts.map +1 -1
  268. package/datapoint-explorer/view/send-as-widget-to-dashboard-modal/send-as-widget-to-dashboard-modal.component.d.ts.map +1 -1
  269. package/datapoint-explorer/view/send-as-widget-to-report-modal/send-as-widget-to-report-modal.component.d.ts.map +1 -1
  270. package/datapoint-library/datapoint-library.module.d.ts.map +1 -1
  271. package/datapoint-library/details/datapoint-library-details.component.d.ts +1 -2
  272. package/datapoint-library/details/datapoint-library-details.component.d.ts.map +1 -1
  273. package/datapoint-library/list/datapoint-library-list.component.d.ts.map +1 -1
  274. package/datapoint-selector/datapoint-attributes-form/datapoint-attributes-form-validation.service.d.ts.map +1 -1
  275. package/datapoint-selector/datapoint-selector-modal/datapoint-selector-modal.component.d.ts.map +1 -1
  276. package/datapoint-selector/datapoint-template-popover/datapoint-template-popover.component.d.ts.map +1 -1
  277. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-fetching.service.d.ts.map +1 -1
  278. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.service.d.ts.map +1 -1
  279. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-exports-selector-time-range/datapoints-exports-selector-time-range.component.d.ts.map +1 -1
  280. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-modal.component.d.ts.map +1 -1
  281. package/datapoints-export-selector/datapoints-export-selector.model.d.ts.map +1 -1
  282. package/default-subscriptions/default-subscriptions-navigation.factory.d.ts.map +1 -1
  283. package/default-subscriptions/default-subscriptions.component.d.ts.map +1 -1
  284. package/device-grid/columns/alarms.cell-renderer.component.d.ts.map +1 -1
  285. package/device-grid/columns/alarms.device-grid-column.d.ts.map +1 -1
  286. package/device-grid/columns/group.device-grid-column.d.ts.map +1 -1
  287. package/device-grid/columns/imei.device-grid-column.d.ts.map +1 -1
  288. package/device-grid/columns/model.device-grid-column.d.ts.map +1 -1
  289. package/device-grid/columns/name.device-grid-column.d.ts.map +1 -1
  290. package/device-grid/columns/registration-date.device-grid-column.d.ts.map +1 -1
  291. package/device-grid/columns/serial-number.device-grid-column.d.ts.map +1 -1
  292. package/device-grid/columns/status.device-grid-column.d.ts.map +1 -1
  293. package/device-grid/columns/system-id.device-grid-column.d.ts.map +1 -1
  294. package/device-grid/columns/type.device-grid-column.d.ts.map +1 -1
  295. package/device-grid/device-grid.component.d.ts.map +1 -1
  296. package/device-grid/device-grid.service.d.ts.map +1 -1
  297. package/device-list/add-smart-group.component.d.ts.map +1 -1
  298. package/device-list/device-list-navigation.factory.d.ts.map +1 -1
  299. package/device-list/devices.breadcrumb-factory.d.ts.map +1 -1
  300. package/device-map/device-map-navigation.factory.d.ts.map +1 -1
  301. package/device-profile/add-device-profile.component.d.ts.map +1 -1
  302. package/device-profile/device-profile-list.component.d.ts.map +1 -1
  303. package/device-profile/device-profile-navigation.factory.d.ts.map +1 -1
  304. package/device-profile/device-profile.component.d.ts.map +1 -1
  305. package/device-profile/device-profile.service.d.ts.map +1 -1
  306. package/device-profile/device-tab-profile/device-tab-profile.component.d.ts.map +1 -1
  307. package/device-profile/select-configuration-modal.component.d.ts.map +1 -1
  308. package/device-protocols/device-protocols.guard.d.ts.map +1 -1
  309. package/device-provisioned-certificates/device-provisioned-certificates.module.d.ts.map +1 -1
  310. package/device-provisioned-certificates/device-tab-provisioned-certificates.component.d.ts.map +1 -1
  311. package/device-shell/device-shell.module.d.ts.map +1 -1
  312. package/device-shell/shared/device-shell.service.d.ts.map +1 -1
  313. package/device-shell/shell/shell.component.d.ts.map +1 -1
  314. package/diagnostics/diagnostics.module.d.ts.map +1 -1
  315. package/diagnostics/diagnostics.service.d.ts.map +1 -1
  316. package/echart/charts.component.d.ts +11 -2
  317. package/echart/charts.component.d.ts.map +1 -1
  318. package/echart/index.d.ts +1 -0
  319. package/echart/index.d.ts.map +1 -1
  320. package/echart/models/chart.model.d.ts +5 -0
  321. package/echart/models/chart.model.d.ts.map +1 -1
  322. package/echart/models/datapoints-graph-widget.model.d.ts +2 -0
  323. package/echart/models/datapoints-graph-widget.model.d.ts.map +1 -1
  324. package/echart/select-aggregated-datapoint/select-aggregated-datapoint.component.d.ts +18 -0
  325. package/echart/select-aggregated-datapoint/select-aggregated-datapoint.component.d.ts.map +1 -0
  326. package/echart/services/chart-helpers.service.d.ts +4 -0
  327. package/echart/services/chart-helpers.service.d.ts.map +1 -1
  328. package/echart/services/echarts-options.service.d.ts +4 -5
  329. package/echart/services/echarts-options.service.d.ts.map +1 -1
  330. package/ecosystem/application-plugins/application-plugins.component.d.ts.map +1 -1
  331. package/ecosystem/application-plugins/application-plugins.module.d.ts.map +1 -1
  332. package/ecosystem/application-plugins/apps-to-update-remotes-select.component.d.ts.map +1 -1
  333. package/ecosystem/application-plugins/only-latest-filter/only-latest-filter.component.d.ts.map +1 -1
  334. package/ecosystem/application-plugins/orphaned-status-cell-renderer.component.d.ts.map +1 -1
  335. package/ecosystem/application-plugins/plugin-list.service.d.ts.map +1 -1
  336. package/ecosystem/application-plugins/update-plugin-of-app/update-plugin-of-app.component.d.ts.map +1 -1
  337. package/ecosystem/application-properties/application-properties.component.d.ts.map +1 -1
  338. package/ecosystem/application-properties/subscription-modal/subscription-modal.component.d.ts.map +1 -1
  339. package/ecosystem/ecosystem-tabs.factory.d.ts.map +1 -1
  340. package/ecosystem/license-confirm/license-confirm-modal.component.d.ts.map +1 -1
  341. package/ecosystem/license-confirm/license-view.component.d.ts.map +1 -1
  342. package/ecosystem/microservices/add-microservice.component.d.ts.map +1 -1
  343. package/ecosystem/packages/add-package.component.d.ts.map +1 -1
  344. package/ecosystem/packages/deploy-application/deploy-application.component.d.ts.map +1 -1
  345. package/ecosystem/packages/package-list/packages-list.component.d.ts.map +1 -1
  346. package/ecosystem/packages/package-versions/package-versions-list/package-versions-list.component.d.ts.map +1 -1
  347. package/ecosystem/packages/package-versions/packages-versions.component.d.ts.map +1 -1
  348. package/ecosystem/plugin-setup-stepper/plugin-setup-stepper.module.d.ts.map +1 -1
  349. package/ecosystem/shared/add-application.component.d.ts.map +1 -1
  350. package/ecosystem/shared/application-card.component.d.ts.map +1 -1
  351. package/ecosystem/shared/archived-filter/archived-filter.component.d.ts.map +1 -1
  352. package/ecosystem/shared/ecosystem.constants.d.ts.map +1 -1
  353. package/ecosystem/shared/ecosystem.service.d.ts.map +1 -1
  354. package/ecosystem/shared/package-availability.service.d.ts.map +1 -1
  355. package/ecosystem/shared/package-version-select/package-version-select.component.d.ts.map +1 -1
  356. package/ecosystem/shared/upload-archive.component.d.ts.map +1 -1
  357. package/editor/editor.component.d.ts +15 -0
  358. package/editor/editor.component.d.ts.map +1 -1
  359. package/exports/index.d.ts +1 -1
  360. package/exports/index.d.ts.map +1 -1
  361. package/exports/list/exports-grid.service.d.ts.map +1 -1
  362. package/exports/list/exports-list/exports-list.component.d.ts.map +1 -1
  363. package/fesm2022/c8y-ngx-components-actility-device-registration.mjs +2 -1
  364. package/fesm2022/c8y-ngx-components-actility-device-registration.mjs.map +1 -1
  365. package/fesm2022/c8y-ngx-components-alarm-event-selector.mjs +8 -7
  366. package/fesm2022/c8y-ngx-components-alarm-event-selector.mjs.map +1 -1
  367. package/fesm2022/c8y-ngx-components-alarms-cockpit.mjs +2 -1
  368. package/fesm2022/c8y-ngx-components-alarms-cockpit.mjs.map +1 -1
  369. package/fesm2022/c8y-ngx-components-alarms-devicemanagement.mjs +2 -1
  370. package/fesm2022/c8y-ngx-components-alarms-devicemanagement.mjs.map +1 -1
  371. package/fesm2022/c8y-ngx-components-alarms.mjs +40 -2
  372. package/fesm2022/c8y-ngx-components-alarms.mjs.map +1 -1
  373. package/fesm2022/c8y-ngx-components-asset-properties.mjs +608 -97
  374. package/fesm2022/c8y-ngx-components-asset-properties.mjs.map +1 -1
  375. package/fesm2022/c8y-ngx-components-asset-property-grid.component-CRnyUbyz.mjs.map +1 -1
  376. package/fesm2022/c8y-ngx-components-assets-navigator.mjs +70 -23
  377. package/fesm2022/c8y-ngx-components-assets-navigator.mjs.map +1 -1
  378. package/fesm2022/c8y-ngx-components-auth-configuration.mjs +2 -1
  379. package/fesm2022/c8y-ngx-components-auth-configuration.mjs.map +1 -1
  380. package/fesm2022/c8y-ngx-components-binary-file-download.mjs +2 -1
  381. package/fesm2022/c8y-ngx-components-binary-file-download.mjs.map +1 -1
  382. package/fesm2022/c8y-ngx-components-bookmarks.mjs +2 -1
  383. package/fesm2022/c8y-ngx-components-bookmarks.mjs.map +1 -1
  384. package/fesm2022/c8y-ngx-components-branding-dark-theme.mjs +2 -1
  385. package/fesm2022/c8y-ngx-components-branding-dark-theme.mjs.map +1 -1
  386. package/fesm2022/c8y-ngx-components-branding-extra-css-branding-editor.mjs +3 -3
  387. package/fesm2022/c8y-ngx-components-branding-extra-css-branding-editor.mjs.map +1 -1
  388. package/fesm2022/c8y-ngx-components-branding-plain-branding-editor.mjs +2 -1
  389. package/fesm2022/c8y-ngx-components-branding-plain-branding-editor.mjs.map +1 -1
  390. package/fesm2022/c8y-ngx-components-branding-shared-lazy.mjs +22 -12
  391. package/fesm2022/c8y-ngx-components-branding-shared-lazy.mjs.map +1 -1
  392. package/fesm2022/c8y-ngx-components-child-devices.mjs +2 -1
  393. package/fesm2022/c8y-ngx-components-child-devices.mjs.map +1 -1
  394. package/fesm2022/c8y-ngx-components-cockpit-config.mjs +2 -1
  395. package/fesm2022/c8y-ngx-components-cockpit-config.mjs.map +1 -1
  396. package/fesm2022/c8y-ngx-components-computed-asset-properties-alarm-count-config.component-BOpIFCYh.mjs +68 -0
  397. package/fesm2022/c8y-ngx-components-computed-asset-properties-alarm-count-config.component-BOpIFCYh.mjs.map +1 -0
  398. package/fesm2022/c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-D8otkLI8.mjs +73 -0
  399. package/fesm2022/c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-D8otkLI8.mjs.map +1 -0
  400. package/fesm2022/c8y-ngx-components-computed-asset-properties-event-count-config.component-AVm6qa9k.mjs +44 -0
  401. package/fesm2022/c8y-ngx-components-computed-asset-properties-event-count-config.component-AVm6qa9k.mjs.map +1 -0
  402. package/fesm2022/c8y-ngx-components-computed-asset-properties-last-measurement-config.component-CtUoKGuU.mjs +91 -0
  403. package/fesm2022/c8y-ngx-components-computed-asset-properties-last-measurement-config.component-CtUoKGuU.mjs.map +1 -0
  404. package/fesm2022/c8y-ngx-components-computed-asset-properties.mjs +643 -0
  405. package/fesm2022/c8y-ngx-components-computed-asset-properties.mjs.map +1 -0
  406. package/fesm2022/c8y-ngx-components-connectivity.mjs +2 -1
  407. package/fesm2022/c8y-ngx-components-connectivity.mjs.map +1 -1
  408. package/fesm2022/c8y-ngx-components-context-dashboard-cockpit-home-dashboard.mjs +2 -1
  409. package/fesm2022/c8y-ngx-components-context-dashboard-cockpit-home-dashboard.mjs.map +1 -1
  410. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-general-settings.component-DjlpSztw.mjs → c8y-ngx-components-context-dashboard-dashboard-general-settings.component-BkcNSexF.mjs} +3 -2
  411. package/fesm2022/c8y-ngx-components-context-dashboard-dashboard-general-settings.component-BkcNSexF.mjs.map +1 -0
  412. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-version-history.component-B2zLhv0X.mjs → c8y-ngx-components-context-dashboard-dashboard-version-history.component-D9W68e7h.mjs} +3 -2
  413. package/fesm2022/c8y-ngx-components-context-dashboard-dashboard-version-history.component-D9W68e7h.mjs.map +1 -0
  414. package/fesm2022/c8y-ngx-components-context-dashboard.mjs +43 -10
  415. package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  416. package/fesm2022/{c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-CwfVxTSx.mjs → c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-D0lATUjO.mjs} +12 -8
  417. package/fesm2022/c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-D0lATUjO.mjs.map +1 -0
  418. package/fesm2022/c8y-ngx-components-dashboard-details-advanced-tab.mjs +4 -3
  419. package/fesm2022/c8y-ngx-components-dashboard-details-advanced-tab.mjs.map +1 -1
  420. package/fesm2022/c8y-ngx-components-dashboard-manager.mjs +2 -1
  421. package/fesm2022/c8y-ngx-components-dashboard-manager.mjs.map +1 -1
  422. package/fesm2022/c8y-ngx-components-data-broker.mjs +2 -1
  423. package/fesm2022/c8y-ngx-components-data-broker.mjs.map +1 -1
  424. package/fesm2022/c8y-ngx-components-data-grid-columns-asset-type.mjs +2 -1
  425. package/fesm2022/c8y-ngx-components-data-grid-columns-asset-type.mjs.map +1 -1
  426. package/fesm2022/c8y-ngx-components-data-grid-columns.mjs +2 -1
  427. package/fesm2022/c8y-ngx-components-data-grid-columns.mjs.map +1 -1
  428. package/fesm2022/c8y-ngx-components-datapoint-explorer-devicemanagement.mjs +38 -9
  429. package/fesm2022/c8y-ngx-components-datapoint-explorer-devicemanagement.mjs.map +1 -1
  430. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +61 -46
  431. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
  432. package/fesm2022/c8y-ngx-components-datapoint-explorer.mjs +2 -1
  433. package/fesm2022/c8y-ngx-components-datapoint-explorer.mjs.map +1 -1
  434. package/fesm2022/c8y-ngx-components-datapoint-library-details.mjs +2 -1
  435. package/fesm2022/c8y-ngx-components-datapoint-library-details.mjs.map +1 -1
  436. package/fesm2022/c8y-ngx-components-datapoint-library-list.mjs +2 -1
  437. package/fesm2022/c8y-ngx-components-datapoint-library-list.mjs.map +1 -1
  438. package/fesm2022/c8y-ngx-components-datapoint-library.mjs +2 -1
  439. package/fesm2022/c8y-ngx-components-datapoint-library.mjs.map +1 -1
  440. package/fesm2022/c8y-ngx-components-datapoint-selector.mjs +2 -1
  441. package/fesm2022/c8y-ngx-components-datapoint-selector.mjs.map +1 -1
  442. package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs +2 -1
  443. package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs.map +1 -1
  444. package/fesm2022/c8y-ngx-components-default-subscriptions.mjs +2 -1
  445. package/fesm2022/c8y-ngx-components-default-subscriptions.mjs.map +1 -1
  446. package/fesm2022/c8y-ngx-components-device-grid.mjs +3 -3
  447. package/fesm2022/c8y-ngx-components-device-grid.mjs.map +1 -1
  448. package/fesm2022/c8y-ngx-components-device-list.mjs +2 -1
  449. package/fesm2022/c8y-ngx-components-device-list.mjs.map +1 -1
  450. package/fesm2022/c8y-ngx-components-device-map.mjs +2 -1
  451. package/fesm2022/c8y-ngx-components-device-map.mjs.map +1 -1
  452. package/fesm2022/c8y-ngx-components-device-profile.mjs +2 -1
  453. package/fesm2022/c8y-ngx-components-device-profile.mjs.map +1 -1
  454. package/fesm2022/c8y-ngx-components-device-protocol-object-mappings.mjs +3 -2
  455. package/fesm2022/c8y-ngx-components-device-protocol-object-mappings.mjs.map +1 -1
  456. package/fesm2022/c8y-ngx-components-device-protocols.mjs +2 -1
  457. package/fesm2022/c8y-ngx-components-device-protocols.mjs.map +1 -1
  458. package/fesm2022/c8y-ngx-components-device-provisioned-certificates.mjs +2 -1
  459. package/fesm2022/c8y-ngx-components-device-provisioned-certificates.mjs.map +1 -1
  460. package/fesm2022/c8y-ngx-components-device-shell.mjs +2 -1
  461. package/fesm2022/c8y-ngx-components-device-shell.mjs.map +1 -1
  462. package/fesm2022/c8y-ngx-components-diagnostics.mjs +2 -1
  463. package/fesm2022/c8y-ngx-components-diagnostics.mjs.map +1 -1
  464. package/fesm2022/c8y-ngx-components-echart-models.mjs +9 -2
  465. package/fesm2022/c8y-ngx-components-echart-models.mjs.map +1 -1
  466. package/fesm2022/c8y-ngx-components-echart.mjs +319 -140
  467. package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
  468. package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs +2 -1
  469. package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
  470. package/fesm2022/c8y-ngx-components-ecosystem-license-confirm.mjs +2 -1
  471. package/fesm2022/c8y-ngx-components-ecosystem-license-confirm.mjs.map +1 -1
  472. package/fesm2022/c8y-ngx-components-ecosystem-plugin-setup-stepper.mjs +2 -1
  473. package/fesm2022/c8y-ngx-components-ecosystem-plugin-setup-stepper.mjs.map +1 -1
  474. package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs +2 -1
  475. package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs.map +1 -1
  476. package/fesm2022/c8y-ngx-components-ecosystem.mjs +2 -1
  477. package/fesm2022/c8y-ngx-components-ecosystem.mjs.map +1 -1
  478. package/fesm2022/c8y-ngx-components-editor.mjs +15 -0
  479. package/fesm2022/c8y-ngx-components-editor.mjs.map +1 -1
  480. package/fesm2022/c8y-ngx-components-events.mjs +1 -1
  481. package/fesm2022/c8y-ngx-components-events.mjs.map +1 -1
  482. package/fesm2022/c8y-ngx-components-exports-list.mjs +2 -1
  483. package/fesm2022/c8y-ngx-components-exports-list.mjs.map +1 -1
  484. package/fesm2022/c8y-ngx-components-exports.mjs +2 -1
  485. package/fesm2022/c8y-ngx-components-exports.mjs.map +1 -1
  486. package/fesm2022/c8y-ngx-components-file-preview.mjs +2 -1
  487. package/fesm2022/c8y-ngx-components-file-preview.mjs.map +1 -1
  488. package/fesm2022/c8y-ngx-components-files-repository.mjs +2 -1
  489. package/fesm2022/c8y-ngx-components-files-repository.mjs.map +1 -1
  490. package/fesm2022/c8y-ngx-components-icon-selector.mjs +2 -1
  491. package/fesm2022/c8y-ngx-components-icon-selector.mjs.map +1 -1
  492. package/fesm2022/c8y-ngx-components-location.mjs +2 -1
  493. package/fesm2022/c8y-ngx-components-location.mjs.map +1 -1
  494. package/fesm2022/c8y-ngx-components-loriot-device-registration.mjs +2 -1
  495. package/fesm2022/c8y-ngx-components-loriot-device-registration.mjs.map +1 -1
  496. package/fesm2022/c8y-ngx-components-map.mjs +2 -1
  497. package/fesm2022/c8y-ngx-components-map.mjs.map +1 -1
  498. package/fesm2022/c8y-ngx-components-messaging-management.mjs +2 -1
  499. package/fesm2022/c8y-ngx-components-messaging-management.mjs.map +1 -1
  500. package/fesm2022/c8y-ngx-components-operations-bulk-operation-list-item.mjs +2 -1
  501. package/fesm2022/c8y-ngx-components-operations-bulk-operation-list-item.mjs.map +1 -1
  502. package/fesm2022/c8y-ngx-components-operations-bulk-operation-scheduler.mjs +2 -1
  503. package/fesm2022/c8y-ngx-components-operations-bulk-operation-scheduler.mjs.map +1 -1
  504. package/fesm2022/c8y-ngx-components-operations-bulk-operation-stepper.mjs +2 -1
  505. package/fesm2022/c8y-ngx-components-operations-bulk-operation-stepper.mjs.map +1 -1
  506. package/fesm2022/c8y-ngx-components-operations-bulk-single-operations-list.mjs +2 -1
  507. package/fesm2022/c8y-ngx-components-operations-bulk-single-operations-list.mjs.map +1 -1
  508. package/fesm2022/c8y-ngx-components-operations-create-bulk-operation-details.mjs +2 -1
  509. package/fesm2022/c8y-ngx-components-operations-create-bulk-operation-details.mjs.map +1 -1
  510. package/fesm2022/c8y-ngx-components-operations-grid-columns.mjs +2 -1
  511. package/fesm2022/c8y-ngx-components-operations-grid-columns.mjs.map +1 -1
  512. package/fesm2022/c8y-ngx-components-operations-operations-list-item-details.mjs +2 -1
  513. package/fesm2022/c8y-ngx-components-operations-operations-list-item-details.mjs.map +1 -1
  514. package/fesm2022/c8y-ngx-components-operations-operations-list.mjs +2 -1
  515. package/fesm2022/c8y-ngx-components-operations-operations-list.mjs.map +1 -1
  516. package/fesm2022/c8y-ngx-components-operations-shared.mjs +2 -1
  517. package/fesm2022/c8y-ngx-components-operations-shared.mjs.map +1 -1
  518. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-configuration.mjs +4 -4
  519. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-configuration.mjs.map +1 -1
  520. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-device-profile.mjs +4 -4
  521. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-device-profile.mjs.map +1 -1
  522. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-firmware.mjs +4 -4
  523. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-firmware.mjs.map +1 -1
  524. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs +4 -4
  525. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs.map +1 -1
  526. package/fesm2022/c8y-ngx-components-operations.mjs +2 -1
  527. package/fesm2022/c8y-ngx-components-operations.mjs.map +1 -1
  528. package/fesm2022/c8y-ngx-components-pending-mo-request.mjs +2 -1
  529. package/fesm2022/c8y-ngx-components-pending-mo-request.mjs.map +1 -1
  530. package/fesm2022/c8y-ngx-components-platform-configuration.mjs +2 -1
  531. package/fesm2022/c8y-ngx-components-platform-configuration.mjs.map +1 -1
  532. package/fesm2022/c8y-ngx-components-protocol-lpwan.mjs +2 -1
  533. package/fesm2022/c8y-ngx-components-protocol-lpwan.mjs.map +1 -1
  534. package/fesm2022/c8y-ngx-components-protocol-opcua-mappings.mjs +1 -1
  535. package/fesm2022/c8y-ngx-components-protocol-opcua-mappings.mjs.map +1 -1
  536. package/fesm2022/c8y-ngx-components-protocol-opcua.mjs +2 -1
  537. package/fesm2022/c8y-ngx-components-protocol-opcua.mjs.map +1 -1
  538. package/fesm2022/c8y-ngx-components-register-device.mjs +2 -1
  539. package/fesm2022/c8y-ngx-components-register-device.mjs.map +1 -1
  540. package/fesm2022/c8y-ngx-components-remote-access-configurations.mjs +3 -3
  541. package/fesm2022/c8y-ngx-components-remote-access-configurations.mjs.map +1 -1
  542. package/fesm2022/c8y-ngx-components-remote-access-passthrough.mjs +2 -1
  543. package/fesm2022/c8y-ngx-components-remote-access-passthrough.mjs.map +1 -1
  544. package/fesm2022/c8y-ngx-components-remote-access-shared.mjs +2 -1
  545. package/fesm2022/c8y-ngx-components-remote-access-shared.mjs.map +1 -1
  546. package/fesm2022/c8y-ngx-components-remote-access-ssh.mjs +2 -1
  547. package/fesm2022/c8y-ngx-components-remote-access-ssh.mjs.map +1 -1
  548. package/fesm2022/c8y-ngx-components-remote-access-telnet.mjs +2 -1
  549. package/fesm2022/c8y-ngx-components-remote-access-telnet.mjs.map +1 -1
  550. package/fesm2022/c8y-ngx-components-remote-access-vnc-vnc-viewer.mjs +3 -3
  551. package/fesm2022/c8y-ngx-components-remote-access-vnc-vnc-viewer.mjs.map +1 -1
  552. package/fesm2022/c8y-ngx-components-remote-access-vnc.mjs +2 -1
  553. package/fesm2022/c8y-ngx-components-remote-access-vnc.mjs.map +1 -1
  554. package/fesm2022/c8y-ngx-components-replace-device-replace-device-wizard.mjs +2 -1
  555. package/fesm2022/c8y-ngx-components-replace-device-replace-device-wizard.mjs.map +1 -1
  556. package/fesm2022/c8y-ngx-components-replace-device.mjs +2 -1
  557. package/fesm2022/c8y-ngx-components-replace-device.mjs.map +1 -1
  558. package/fesm2022/c8y-ngx-components-report-dashboard.mjs +2 -1
  559. package/fesm2022/c8y-ngx-components-report-dashboard.mjs.map +1 -1
  560. package/fesm2022/c8y-ngx-components-reports.mjs +2 -1
  561. package/fesm2022/c8y-ngx-components-reports.mjs.map +1 -1
  562. package/fesm2022/c8y-ngx-components-repository-configuration.mjs +2 -1
  563. package/fesm2022/c8y-ngx-components-repository-configuration.mjs.map +1 -1
  564. package/fesm2022/c8y-ngx-components-repository-firmware.mjs +2 -1
  565. package/fesm2022/c8y-ngx-components-repository-firmware.mjs.map +1 -1
  566. package/fesm2022/c8y-ngx-components-repository-shared.mjs +3 -2
  567. package/fesm2022/c8y-ngx-components-repository-shared.mjs.map +1 -1
  568. package/fesm2022/c8y-ngx-components-repository-software.mjs +2 -1
  569. package/fesm2022/c8y-ngx-components-repository-software.mjs.map +1 -1
  570. package/fesm2022/c8y-ngx-components-search.mjs +2 -1
  571. package/fesm2022/c8y-ngx-components-search.mjs.map +1 -1
  572. package/fesm2022/c8y-ngx-components-sensor-phone-sensor-phone-modal.mjs +2 -1
  573. package/fesm2022/c8y-ngx-components-sensor-phone-sensor-phone-modal.mjs.map +1 -1
  574. package/fesm2022/c8y-ngx-components-sensor-phone.mjs +3 -2
  575. package/fesm2022/c8y-ngx-components-sensor-phone.mjs.map +1 -1
  576. package/fesm2022/c8y-ngx-components-services-service-command-tab.mjs +2 -1
  577. package/fesm2022/c8y-ngx-components-services-service-command-tab.mjs.map +1 -1
  578. package/fesm2022/c8y-ngx-components-services-shared.mjs +1 -1
  579. package/fesm2022/c8y-ngx-components-services-shared.mjs.map +1 -1
  580. package/fesm2022/c8y-ngx-components-services.mjs +2 -1
  581. package/fesm2022/c8y-ngx-components-services.mjs.map +1 -1
  582. package/fesm2022/c8y-ngx-components-sigfox-device-registration.mjs +2 -1
  583. package/fesm2022/c8y-ngx-components-sigfox-device-registration.mjs.map +1 -1
  584. package/fesm2022/c8y-ngx-components-sms-gateway.mjs +3 -2
  585. package/fesm2022/c8y-ngx-components-sms-gateway.mjs.map +1 -1
  586. package/fesm2022/c8y-ngx-components-sub-assets.mjs +2 -1
  587. package/fesm2022/c8y-ngx-components-sub-assets.mjs.map +1 -1
  588. package/fesm2022/c8y-ngx-components-tenants.mjs +37 -37
  589. package/fesm2022/c8y-ngx-components-tenants.mjs.map +1 -1
  590. package/fesm2022/c8y-ngx-components-tracking.mjs +2 -1
  591. package/fesm2022/c8y-ngx-components-tracking.mjs.map +1 -1
  592. package/fesm2022/c8y-ngx-components-translation-editor-lazy.mjs +5 -5
  593. package/fesm2022/c8y-ngx-components-translation-editor-lazy.mjs.map +1 -1
  594. package/fesm2022/c8y-ngx-components-trusted-certificates.mjs +2 -1
  595. package/fesm2022/c8y-ngx-components-trusted-certificates.mjs.map +1 -1
  596. package/fesm2022/c8y-ngx-components-upgrade.mjs +10 -3
  597. package/fesm2022/c8y-ngx-components-upgrade.mjs.map +1 -1
  598. package/fesm2022/c8y-ngx-components-user-roles.mjs +2 -1
  599. package/fesm2022/c8y-ngx-components-user-roles.mjs.map +1 -1
  600. package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-alarm-list.mjs +2 -1
  601. package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-alarm-list.mjs.map +1 -1
  602. package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-all-critical-alarms.mjs +2 -1
  603. package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-all-critical-alarms.mjs.map +1 -1
  604. package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-recent-alarms.mjs +2 -1
  605. package/fesm2022/c8y-ngx-components-widgets-definitions-alarms-recent-alarms.mjs.map +1 -1
  606. package/fesm2022/c8y-ngx-components-widgets-definitions-applications.mjs +2 -1
  607. package/fesm2022/c8y-ngx-components-widgets-definitions-applications.mjs.map +1 -1
  608. package/fesm2022/c8y-ngx-components-widgets-definitions-asset-notes.mjs +2 -1
  609. package/fesm2022/c8y-ngx-components-widgets-definitions-asset-notes.mjs.map +1 -1
  610. package/fesm2022/c8y-ngx-components-widgets-definitions-cockpit-legacy-welcome.mjs +2 -1
  611. package/fesm2022/c8y-ngx-components-widgets-definitions-cockpit-legacy-welcome.mjs.map +1 -1
  612. package/fesm2022/c8y-ngx-components-widgets-definitions-cockpit-welcome.mjs +2 -1
  613. package/fesm2022/c8y-ngx-components-widgets-definitions-cockpit-welcome.mjs.map +1 -1
  614. package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-graph.mjs +2 -1
  615. package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-graph.mjs.map +1 -1
  616. package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-table.mjs +2 -1
  617. package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-table.mjs.map +1 -1
  618. package/fesm2022/c8y-ngx-components-widgets-definitions-device-control-message.mjs +2 -1
  619. package/fesm2022/c8y-ngx-components-widgets-definitions-device-control-message.mjs.map +1 -1
  620. package/fesm2022/c8y-ngx-components-widgets-definitions-device-management-welcome.mjs +1 -1
  621. package/fesm2022/c8y-ngx-components-widgets-definitions-device-management-welcome.mjs.map +1 -1
  622. package/fesm2022/c8y-ngx-components-widgets-definitions-help-and-service.mjs +2 -1
  623. package/fesm2022/c8y-ngx-components-widgets-definitions-help-and-service.mjs.map +1 -1
  624. package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget.mjs +3 -3
  625. package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget.mjs.map +1 -1
  626. package/fesm2022/c8y-ngx-components-widgets-definitions-image.mjs +3 -6
  627. package/fesm2022/c8y-ngx-components-widgets-definitions-image.mjs.map +1 -1
  628. package/fesm2022/c8y-ngx-components-widgets-definitions-info-gauge.mjs +2 -1
  629. package/fesm2022/c8y-ngx-components-widgets-definitions-info-gauge.mjs.map +1 -1
  630. package/fesm2022/c8y-ngx-components-widgets-definitions-kpi.mjs +2 -1
  631. package/fesm2022/c8y-ngx-components-widgets-definitions-kpi.mjs.map +1 -1
  632. package/fesm2022/c8y-ngx-components-widgets-definitions-linear-gauge.mjs +2 -1
  633. package/fesm2022/c8y-ngx-components-widgets-definitions-linear-gauge.mjs.map +1 -1
  634. package/fesm2022/c8y-ngx-components-widgets-definitions-map.mjs +2 -1
  635. package/fesm2022/c8y-ngx-components-widgets-definitions-map.mjs.map +1 -1
  636. package/fesm2022/c8y-ngx-components-widgets-definitions-markdown.mjs +2 -2
  637. package/fesm2022/c8y-ngx-components-widgets-definitions-markdown.mjs.map +1 -1
  638. package/fesm2022/c8y-ngx-components-widgets-definitions-quick-links.mjs +2 -1
  639. package/fesm2022/c8y-ngx-components-widgets-definitions-quick-links.mjs.map +1 -1
  640. package/fesm2022/c8y-ngx-components-widgets-definitions-radial-gauge.mjs +2 -1
  641. package/fesm2022/c8y-ngx-components-widgets-definitions-radial-gauge.mjs.map +1 -1
  642. package/fesm2022/c8y-ngx-components-widgets-definitions-silo.mjs +2 -1
  643. package/fesm2022/c8y-ngx-components-widgets-definitions-silo.mjs.map +1 -1
  644. package/fesm2022/c8y-ngx-components-widgets-definitions-three-d-rotation.mjs +2 -1
  645. package/fesm2022/c8y-ngx-components-widgets-definitions-three-d-rotation.mjs.map +1 -1
  646. package/fesm2022/c8y-ngx-components-widgets-implementations-alarms.mjs +2 -1
  647. package/fesm2022/c8y-ngx-components-widgets-implementations-alarms.mjs.map +1 -1
  648. package/fesm2022/c8y-ngx-components-widgets-implementations-asset-notes.mjs +2 -1
  649. package/fesm2022/c8y-ngx-components-widgets-implementations-asset-notes.mjs.map +1 -1
  650. package/fesm2022/c8y-ngx-components-widgets-implementations-cockpit-welcome.mjs +9 -6
  651. package/fesm2022/c8y-ngx-components-widgets-implementations-cockpit-welcome.mjs.map +1 -1
  652. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +15 -7
  653. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
  654. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs +2 -1
  655. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs.map +1 -1
  656. package/fesm2022/c8y-ngx-components-widgets-implementations-device-control-message.mjs +2 -1
  657. package/fesm2022/c8y-ngx-components-widgets-implementations-device-control-message.mjs.map +1 -1
  658. package/fesm2022/c8y-ngx-components-widgets-implementations-device-management-welcome.mjs +2 -1
  659. package/fesm2022/c8y-ngx-components-widgets-implementations-device-management-welcome.mjs.map +1 -1
  660. package/fesm2022/c8y-ngx-components-widgets-implementations-help-and-service-widget.mjs +2 -1
  661. package/fesm2022/c8y-ngx-components-widgets-implementations-help-and-service-widget.mjs.map +1 -1
  662. package/fesm2022/c8y-ngx-components-widgets-implementations-html-widget.mjs +13 -8
  663. package/fesm2022/c8y-ngx-components-widgets-implementations-html-widget.mjs.map +1 -1
  664. package/fesm2022/c8y-ngx-components-widgets-implementations-image.mjs +2 -1
  665. package/fesm2022/c8y-ngx-components-widgets-implementations-image.mjs.map +1 -1
  666. package/fesm2022/c8y-ngx-components-widgets-implementations-info-gauge.mjs +2 -1
  667. package/fesm2022/c8y-ngx-components-widgets-implementations-info-gauge.mjs.map +1 -1
  668. package/fesm2022/c8y-ngx-components-widgets-implementations-linear-gauge.mjs +2 -1
  669. package/fesm2022/c8y-ngx-components-widgets-implementations-linear-gauge.mjs.map +1 -1
  670. package/fesm2022/c8y-ngx-components-widgets-implementations-map.mjs +2 -1
  671. package/fesm2022/c8y-ngx-components-widgets-implementations-map.mjs.map +1 -1
  672. package/fesm2022/c8y-ngx-components-widgets-implementations-markdown.mjs +2 -1
  673. package/fesm2022/c8y-ngx-components-widgets-implementations-markdown.mjs.map +1 -1
  674. package/fesm2022/c8y-ngx-components-widgets-implementations-quick-links.mjs +2 -1
  675. package/fesm2022/c8y-ngx-components-widgets-implementations-quick-links.mjs.map +1 -1
  676. package/fesm2022/c8y-ngx-components-widgets-import-export-config.mjs +3 -10
  677. package/fesm2022/c8y-ngx-components-widgets-import-export-config.mjs.map +1 -1
  678. package/fesm2022/c8y-ngx-components.mjs +694 -504
  679. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  680. package/file-preview/file-preview.component.d.ts.map +1 -1
  681. package/files-repository/files-repository-navigation.factory.d.ts.map +1 -1
  682. package/files-repository/files-repository-upload.component.d.ts.map +1 -1
  683. package/files-repository/files-repository.component.d.ts.map +1 -1
  684. package/files-repository/files-repository.service.d.ts +1 -2
  685. package/files-repository/files-repository.service.d.ts.map +1 -1
  686. package/icon-selector/icon-selector-modal/icon-selector-modal.component.d.ts.map +1 -1
  687. package/icon-selector/icon-selector.component.d.ts.map +1 -1
  688. package/locales/de.po +138 -12
  689. package/locales/es.po +138 -12
  690. package/locales/fr.po +138 -12
  691. package/locales/ja_JP.po +132 -12
  692. package/locales/ko.po +137 -12
  693. package/locales/locales.pot +103 -12
  694. package/locales/nl.po +138 -12
  695. package/locales/pl.po +138 -12
  696. package/locales/pt_BR.po +138 -12
  697. package/locales/zh_CN.po +137 -12
  698. package/locales/zh_TW.po +137 -12
  699. package/location/location-tab.factory.d.ts.map +1 -1
  700. package/location/location.component.d.ts.map +1 -1
  701. package/loriot-device-registration/loriot-device-registration.component.d.ts.map +1 -1
  702. package/loriot-device-registration/loriot-provider.service.d.ts.map +1 -1
  703. package/map/map.component.d.ts.map +1 -1
  704. package/messaging-management/messaging/namespace-list/namespace-item/namespace-item-card/namespace-item-card.component.d.ts.map +1 -1
  705. package/messaging-management/messaging/shared/usage/usage.component.d.ts.map +1 -1
  706. package/messaging-management/messaging/topic/topic-list-view.component.d.ts.map +1 -1
  707. package/messaging-management/messaging/topic/topic-subscribers-view/topic-subscribers-data-grid.service.d.ts.map +1 -1
  708. package/messaging-management/messaging/topic/topic-subscribers-view/topic-subscribers-view.component.d.ts.map +1 -1
  709. package/messaging-management/messaging/topic/topics-data-grid.service.d.ts.map +1 -1
  710. package/messaging-management/navigator/messaging-navigator-factory.d.ts.map +1 -1
  711. package/messaging-management/navigator/topic-details-tab.factory.d.ts.map +1 -1
  712. package/operations/bulk-operation-list-item/bulk-operation-list-item.component.d.ts.map +1 -1
  713. package/operations/bulk-operation-list-item/modals/bulk-operations-reschedule-modal.component.d.ts.map +1 -1
  714. package/operations/bulk-operation-scheduler/operation-scheduler.component.d.ts.map +1 -1
  715. package/operations/bulk-operation-stepper/bulk-operation-stepper.component.d.ts.map +1 -1
  716. package/operations/bulk-single-operations-list/single-operation-item.component.d.ts.map +1 -1
  717. package/operations/bulk-single-operations-list/single-operations-list.component.d.ts.map +1 -1
  718. package/operations/factories/bulk-operations-tab.factory.d.ts.map +1 -1
  719. package/operations/grid-columns/creation-time.grid-column.d.ts.map +1 -1
  720. package/operations/grid-columns/device.grid-column.d.ts.map +1 -1
  721. package/operations/grid-columns/failure-reason.grid-column.d.ts.map +1 -1
  722. package/operations/grid-columns/status.grid-column.d.ts.map +1 -1
  723. package/operations/operations-list/device-control.feature.d.ts.map +1 -1
  724. package/operations/operations-list/operations-list-item.component.d.ts.map +1 -1
  725. package/operations/operations-list/operations-list.component.d.ts.map +1 -1
  726. package/operations/operations-list/single-operations-tab.factory.d.ts.map +1 -1
  727. package/operations/operations-list-item-details/operation-details-tabs.component.d.ts.map +1 -1
  728. package/operations/shared/nav.factory.d.ts.map +1 -1
  729. package/operations/shared/operations.service.d.ts.map +1 -1
  730. package/operations/stepper-bulk-type-configuration/stepper-bulk-type-configuration.component.d.ts.map +1 -1
  731. package/operations/stepper-bulk-type-device-profile/stepper-bulk-type-device-profile.component.d.ts.map +1 -1
  732. package/operations/stepper-bulk-type-firmware/stepper-bulk-type-firmware.component.d.ts.map +1 -1
  733. package/operations/stepper-bulk-type-software/select-software-step.component.d.ts.map +1 -1
  734. package/operations/stepper-bulk-type-software/stepper-bulk-type-software.component.d.ts.map +1 -1
  735. package/package.json +1 -1
  736. package/pending-mo-request/pending-mo-request-interceptor.d.ts.map +1 -1
  737. package/pending-mo-request/pending-mo-request.service.d.ts.map +1 -1
  738. package/platform-configuration/platform-configuration-form-provider.service.d.ts.map +1 -1
  739. package/protocol-lpwan/lpwan-protocol.module.d.ts.map +1 -1
  740. package/protocol-lpwan/lpwan-set-connections.component.d.ts.map +1 -1
  741. package/protocol-lpwan/lpwan-set-device-protocol.component.d.ts.map +1 -1
  742. package/protocol-lpwan/multiple-lns-connectors/actility-multiple-lns-connector.component.d.ts.map +1 -1
  743. package/protocol-lpwan/multiple-lns-connectors/connection-info-with-download-csv.component.d.ts.map +1 -1
  744. package/protocol-lpwan/multiple-lns-connectors/loriot/loriot-multiple-lns-connector.component.d.ts.map +1 -1
  745. package/protocol-lpwan/multiple-lns-connectors/no-connections-found.component.d.ts.map +1 -1
  746. package/protocol-lpwan/multiple-lns-connectors/sigfox-multiple-lns-connector.component.d.ts.map +1 -1
  747. package/protocol-opcua/opcua-address-space.component.d.ts.map +1 -1
  748. package/protocol-opcua/opcua-device-protocol-detail.component.d.ts.map +1 -1
  749. package/protocol-opcua/opcua-server-config.component.d.ts.map +1 -1
  750. package/protocol-opcua/opcua-servers.component.d.ts.map +1 -1
  751. package/register-device/bulk/bulk-device-registration-modal.component.d.ts.map +1 -1
  752. package/register-device/device-registration-view.component.d.ts.map +1 -1
  753. package/register-device/extensible/base-extensible-device-registration.service.d.ts.map +1 -1
  754. package/register-device/extensible/bulk/extensible-bulk-device-registration-modal.component.d.ts.map +1 -1
  755. package/register-device/extensible/bulk/extensible-bulk-device-registration.service.d.ts.map +1 -1
  756. package/register-device/extensible/single/extensible-device-registration-modal.component.d.ts.map +1 -1
  757. package/register-device/extensible/single/extensible-device-registration-stepper.component.d.ts.map +1 -1
  758. package/register-device/extensible/single/extensible-device-registration.service.d.ts.map +1 -1
  759. package/register-device/general/general-device-registration.component.d.ts.map +1 -1
  760. package/register-device/register-device-navigation.factory.d.ts.map +1 -1
  761. package/register-device/register-device.service.d.ts.map +1 -1
  762. package/remote-access/configurations/remote-access-configuration-list/remote-access-configuration-list.component.d.ts.map +1 -1
  763. package/remote-access/configurations/remote-access-pick-protocol-modal/remote-access-pick-protocol-modal.component.d.ts.map +1 -1
  764. package/remote-access/passthrough/index.d.ts +1 -1
  765. package/remote-access/passthrough/index.d.ts.map +1 -1
  766. package/remote-access/shared/remote-access-basic-endpoint-modal/remote-access-basic-endpoint-modal.component.d.ts.map +1 -1
  767. package/remote-access/ssh/index.d.ts.map +1 -1
  768. package/remote-access/telnet/index.d.ts.map +1 -1
  769. package/remote-access/vnc/index.d.ts.map +1 -1
  770. package/replace-device/replace-device-grid-action.factory.d.ts.map +1 -1
  771. package/replace-device/replace-device-wizard/replace-device-wizard.component.d.ts.map +1 -1
  772. package/replace-device/replace-device-wizard/replace-device-wizard.service.d.ts.map +1 -1
  773. package/replace-device/replace-device.service.d.ts.map +1 -1
  774. package/report-dashboard/report-dashboard-list.component.d.ts.map +1 -1
  775. package/report-dashboard/report-dashboard-navigation.factory.d.ts.map +1 -1
  776. package/reports/export-schedules.component.d.ts.map +1 -1
  777. package/repository/configuration/device-tab/configuration-repository-device-tab.module.d.ts.map +1 -1
  778. package/repository/configuration/device-tab/save-to-repository.component.d.ts.map +1 -1
  779. package/repository/configuration/device-tab/text-based-configuration.component.d.ts.map +1 -1
  780. package/repository/configuration/list/configuration-detail.component.d.ts.map +1 -1
  781. package/repository/configuration/list/configuration-list.component.d.ts.map +1 -1
  782. package/repository/configuration/list/configuration-repository-navigation-factory.d.ts.map +1 -1
  783. package/repository/firmware/device-tab/firmware-device-tab.component.d.ts.map +1 -1
  784. package/repository/firmware/device-tab/firmware-repository-device-tab.module.d.ts.map +1 -1
  785. package/repository/firmware/list/add-firmware-modal.component.d.ts.map +1 -1
  786. package/repository/firmware/list/add-firmware-patch-modal.component.d.ts.map +1 -1
  787. package/repository/firmware/list/firmware-details.component.d.ts.map +1 -1
  788. package/repository/firmware/list/firmware-list.component.d.ts.map +1 -1
  789. package/repository/firmware/list/firmware-repository-navigation-factory.d.ts.map +1 -1
  790. package/repository/shared/columns/description.grid-column.d.ts.map +1 -1
  791. package/repository/shared/columns/device-type.grid-column.d.ts.map +1 -1
  792. package/repository/shared/columns/file.grid-column.d.ts.map +1 -1
  793. package/repository/shared/columns/name.grid-column.d.ts.map +1 -1
  794. package/repository/shared/columns/type.filtering-form-renderer.component.d.ts.map +1 -1
  795. package/repository/shared/columns/type.grid-column.d.ts.map +1 -1
  796. package/repository/shared/columns/versions.grid-column.d.ts.map +1 -1
  797. package/repository/shared/repository.service.d.ts.map +1 -1
  798. package/repository/shared/select-modal/repository-select-modal.component.d.ts +1 -1
  799. package/repository/shared/select-modal/repository-select-modal.component.d.ts.map +1 -1
  800. package/repository/shared/software-type/software-type.component.d.ts.map +1 -1
  801. package/repository/software/device-tab/installed-software.component.d.ts.map +1 -1
  802. package/repository/software/device-tab/software-repository-device-tab.module.d.ts.map +1 -1
  803. package/repository/software/list/add-software-modal.component.d.ts.map +1 -1
  804. package/repository/software/list/software-details.component.d.ts.map +1 -1
  805. package/repository/software/list/software-list.component.d.ts.map +1 -1
  806. package/repository/software/list/software-repository-navigation-factory.d.ts.map +1 -1
  807. package/search/columns/asset-type-search-grid-column.d.ts.map +1 -1
  808. package/search/search-grid.component.d.ts.map +1 -1
  809. package/search/search-results.component.d.ts.map +1 -1
  810. package/sensor-phone/connect-smartphone.factory.d.ts.map +1 -1
  811. package/sensor-phone/sensor-phone-modal/sensor-phone-modal.component.d.ts.map +1 -1
  812. package/sensor-phone/sensor-phone-modal/sensor-phone.service.d.ts.map +1 -1
  813. package/services/service-command-tab/service-command.feature.d.ts.map +1 -1
  814. package/services/services-device-tab/columns/last-updated-date.device-grid-column.d.ts.map +1 -1
  815. package/services/services-device-tab/columns/name.grid-column.d.ts.map +1 -1
  816. package/services/services-device-tab/columns/service-type.grid-column.d.ts.map +1 -1
  817. package/services/services-device-tab/columns/status.grid-column.d.ts.map +1 -1
  818. package/services/services-device-tab/services-device-tab.component.d.ts.map +1 -1
  819. package/services/services-device-tab/services-device-tab.module.d.ts.map +1 -1
  820. package/services/services-device-tab/services.breadcrumb-factory.d.ts.map +1 -1
  821. package/services/shared/service-command.service.d.ts.map +1 -1
  822. package/services/status-options/status-options.model.d.ts.map +1 -1
  823. package/sigfox-device-registration/sigfox-device-registration.component.d.ts.map +1 -1
  824. package/sigfox-device-registration/sigfox-provider.service.d.ts.map +1 -1
  825. package/sms-gateway/sms-gateway.module.d.ts.map +1 -1
  826. package/sub-assets/add-group/add-group.component.d.ts.map +1 -1
  827. package/sub-assets/asset-properties-item.component.d.ts.map +1 -1
  828. package/sub-assets/asset-properties.component.d.ts.map +1 -1
  829. package/sub-assets/assign-devices/assign-child-devices.component.d.ts.map +1 -1
  830. package/sub-assets/assign-devices/assign-devices.component.d.ts.map +1 -1
  831. package/sub-assets/delete-assets-modal/delete-assets-modal.component.d.ts.map +1 -1
  832. package/sub-assets/group-info.component.d.ts.map +1 -1
  833. package/sub-assets/sub-assets-grid.component.d.ts.map +1 -1
  834. package/sub-assets/sub-assets.module.d.ts.map +1 -1
  835. package/sub-assets/sub-assets.service.d.ts.map +1 -1
  836. package/sub-assets/unassign-assets-modal/unassign-modal.component.d.ts.map +1 -1
  837. package/tenants/custom-properties/custom-properties.component.d.ts.map +1 -1
  838. package/tenants/tenant-form/tenant-form.component.d.ts.map +1 -1
  839. package/tenants/tenant-limits/tenant-limits.component.d.ts.map +1 -1
  840. package/tenants/tenant-list/creation-time.filtering-form-renderer.component.d.ts.map +1 -1
  841. package/tenants/tenant-list/tenant-list.component.d.ts.map +1 -1
  842. package/tenants/tenants-navigation.factory.d.ts.map +1 -1
  843. package/tenants/tenants.module.d.ts.map +1 -1
  844. package/tracking/tracking.feature.d.ts.map +1 -1
  845. package/translation-editor/lazy/translation-editor/translation-editor.component.d.ts.map +1 -1
  846. package/trusted-certificates/crl/crl-check-settings.component.d.ts.map +1 -1
  847. package/trusted-certificates/crl/crl-settings.component.d.ts.map +1 -1
  848. package/trusted-certificates/factories/tabs.factory.d.ts.map +1 -1
  849. package/trusted-certificates/factories/trusted-certificates-navigation.factory.d.ts.map +1 -1
  850. package/trusted-certificates/list/add-trusted-certificate.component.d.ts.map +1 -1
  851. package/trusted-certificates/list/trusted-certificate-list.component.d.ts.map +1 -1
  852. package/upgrade/auth-bridge.service.d.ts.map +1 -1
  853. package/upgrade/bridge.service.d.ts.map +1 -1
  854. package/upgrade/ng1/downgraded.services.d.ts +1 -0
  855. package/upgrade/ng1/downgraded.services.d.ts.map +1 -1
  856. package/upgrade/ng1/index.d.ts.map +1 -1
  857. package/user-roles/roles-asset-tree/roles-asset-tree.component.d.ts.map +1 -1
  858. package/widgets/cockpit/index.d.ts +4 -4
  859. package/widgets/definitions/alarms/alarm-list/index.d.ts +1 -1
  860. package/widgets/definitions/alarms/alarm-list/index.d.ts.map +1 -1
  861. package/widgets/definitions/alarms/all-critical-alarms/index.d.ts +1 -1
  862. package/widgets/definitions/alarms/all-critical-alarms/index.d.ts.map +1 -1
  863. package/widgets/definitions/alarms/recent-alarms/index.d.ts +1 -1
  864. package/widgets/definitions/alarms/recent-alarms/index.d.ts.map +1 -1
  865. package/widgets/definitions/applications/index.d.ts +1 -1
  866. package/widgets/definitions/applications/index.d.ts.map +1 -1
  867. package/widgets/definitions/asset-notes/index.d.ts +1 -1
  868. package/widgets/definitions/asset-notes/index.d.ts.map +1 -1
  869. package/widgets/definitions/cockpit-legacy-welcome/index.d.ts +1 -1
  870. package/widgets/definitions/cockpit-legacy-welcome/index.d.ts.map +1 -1
  871. package/widgets/definitions/cockpit-welcome/index.d.ts +1 -1
  872. package/widgets/definitions/cockpit-welcome/index.d.ts.map +1 -1
  873. package/widgets/definitions/datapoints-graph/datapoint-graph-widget-factory.d.ts.map +1 -1
  874. package/widgets/definitions/datapoints-graph/index.d.ts +1 -1
  875. package/widgets/definitions/datapoints-table/index.d.ts +1 -1
  876. package/widgets/definitions/datapoints-table/index.d.ts.map +1 -1
  877. package/widgets/definitions/device-control-message/index.d.ts +1 -1
  878. package/widgets/definitions/device-control-message/index.d.ts.map +1 -1
  879. package/widgets/definitions/help-and-service/index.d.ts +1 -1
  880. package/widgets/definitions/help-and-service/index.d.ts.map +1 -1
  881. package/widgets/definitions/html-widget/html-widget.factory.d.ts.map +1 -1
  882. package/widgets/definitions/html-widget/index.d.ts +1 -1
  883. package/widgets/definitions/image/index.d.ts +5 -3
  884. package/widgets/definitions/image/index.d.ts.map +1 -1
  885. package/widgets/definitions/info-gauge/index.d.ts +2 -3
  886. package/widgets/definitions/info-gauge/index.d.ts.map +1 -1
  887. package/widgets/definitions/kpi/index.d.ts +1 -1
  888. package/widgets/definitions/kpi/index.d.ts.map +1 -1
  889. package/widgets/definitions/linear-gauge/index.d.ts +1 -1
  890. package/widgets/definitions/linear-gauge/index.d.ts.map +1 -1
  891. package/widgets/definitions/map/index.d.ts +1 -1
  892. package/widgets/definitions/map/index.d.ts.map +1 -1
  893. package/widgets/definitions/markdown/index.d.ts +5 -3
  894. package/widgets/definitions/markdown/index.d.ts.map +1 -1
  895. package/widgets/definitions/quick-links/index.d.ts +1 -1
  896. package/widgets/definitions/quick-links/index.d.ts.map +1 -1
  897. package/widgets/definitions/radial-gauge/index.d.ts +1 -1
  898. package/widgets/definitions/radial-gauge/index.d.ts.map +1 -1
  899. package/widgets/definitions/silo/index.d.ts +1 -1
  900. package/widgets/definitions/silo/index.d.ts.map +1 -1
  901. package/widgets/definitions/three-d-rotation/index.d.ts +1 -1
  902. package/widgets/definitions/three-d-rotation/index.d.ts.map +1 -1
  903. package/widgets/implementations/alarms/alarm-list-widget-config/alarm-list-widget-config.component.d.ts.map +1 -1
  904. package/widgets/implementations/alarms/alarm-list-widget-view/alarm-list-widget.component.d.ts.map +1 -1
  905. package/widgets/implementations/alarms/alarm-list-widget.model.d.ts.map +1 -1
  906. package/widgets/implementations/alarms/alarm-widget-alarms-reload.component.d.ts.map +1 -1
  907. package/widgets/implementations/cockpit-welcome/welcome.component.d.ts +3 -2
  908. package/widgets/implementations/cockpit-welcome/welcome.component.d.ts.map +1 -1
  909. package/widgets/implementations/datapoints-graph/datapoints-graph-config/datapoints-graph-widget-config.component.d.ts +4 -1
  910. package/widgets/implementations/datapoints-graph/datapoints-graph-config/datapoints-graph-widget-config.component.d.ts.map +1 -1
  911. package/widgets/implementations/datapoints-graph/datapoints-graph-view/datapoints-graph-widget-view.component.d.ts +2 -1
  912. package/widgets/implementations/datapoints-graph/datapoints-graph-view/datapoints-graph-widget-view.component.d.ts.map +1 -1
  913. package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-reload/datapoints-reload.component.d.ts.map +1 -1
  914. package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table/datapoints-table.component.d.ts.map +1 -1
  915. package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.component.d.ts.map +1 -1
  916. package/widgets/implementations/datapoints-table/datapoints-table-widget.model.d.ts.map +1 -1
  917. package/widgets/implementations/datapoints-table/date-range-picker.component.d.ts.map +1 -1
  918. package/widgets/implementations/device-control-message/device-control-message-widget-view/device-control-message-widget-view.component.d.ts.map +1 -1
  919. package/widgets/implementations/device-management-welcome/welcome.component.d.ts.map +1 -1
  920. package/widgets/implementations/help-and-service-widget/help-and-service-view/help-and-service-view.component.d.ts.map +1 -1
  921. package/widgets/implementations/html-widget/advanced-settings/advanced-settings.component.d.ts.map +1 -1
  922. package/widgets/implementations/html-widget/html-widget-config.service.d.ts.map +1 -1
  923. package/widgets/implementations/html-widget/widget-code-editor-section/widget-code-editor.component.d.ts +5 -3
  924. package/widgets/implementations/html-widget/widget-code-editor-section/widget-code-editor.component.d.ts.map +1 -1
  925. package/widgets/implementations/image/image-widget-config/image-widget-config.component.d.ts.map +1 -1
  926. package/widgets/implementations/image/image-widget.service.d.ts +1 -2
  927. package/widgets/implementations/image/image-widget.service.d.ts.map +1 -1
  928. package/widgets/implementations/info-gauge/info-gauge-widget-config/info-gauge-widget-config.component.d.ts.map +1 -1
  929. package/widgets/implementations/linear-gauge/linear-gauge-widget-view/linear-gauge-widget-view.component.d.ts.map +1 -1
  930. package/widgets/implementations/map/map-widget-config.component.d.ts.map +1 -1
  931. package/widgets/implementations/map/map-widget.component.d.ts.map +1 -1
  932. package/widgets/implementations/markdown/markdown-widget-config/markdown-widget-config.component.d.ts.map +1 -1
  933. package/widgets/implementations/markdown/markdown-widget.service.d.ts.map +1 -1
  934. package/widgets/implementations/quick-links/quick-links-widget-config/quick-links-widget-config.component.d.ts.map +1 -1
  935. package/widgets/import-export-config/config-target-export.d.ts +3 -1
  936. package/widgets/import-export-config/config-target-export.d.ts.map +1 -1
  937. package/widgets/import-export-config/config-target-import.d.ts +3 -1
  938. package/widgets/import-export-config/config-target-import.d.ts.map +1 -1
  939. package/widgets/import-export-config/device-import-export.d.ts +3 -1
  940. package/widgets/import-export-config/device-import-export.d.ts.map +1 -1
  941. package/fesm2022/c8y-ngx-components-context-dashboard-dashboard-general-settings.component-DjlpSztw.mjs.map +0 -1
  942. package/fesm2022/c8y-ngx-components-context-dashboard-dashboard-version-history.component-B2zLhv0X.mjs.map +0 -1
  943. package/fesm2022/c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-CwfVxTSx.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"c8y-ngx-components-icon-selector.mjs","sources":["../../icon-selector/icon-name.pipe.ts","../../icon-selector/icon-selector.component.ts","../../icon-selector/icon-selector.component.html","../../icon-selector/icon-selector-modal/icon-selector-modal.component.ts","../../icon-selector/icon-selector-modal/icon-selector-modal.component.html","../../icon-selector/icon-selector.service.ts","../../icon-selector/icon-selector-wrapper/icon-selector-wrapper.component.ts","../../icon-selector/icon-selector-wrapper/icon-selector-wrapper.component.html","../../icon-selector/icon-selector.module.ts","../../icon-selector/c8y-ngx-components-icon-selector.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({ name: 'iconName' })\nexport class IconNamePipe implements PipeTransform {\n transform(icon: string): string {\n if (icon.startsWith('c8y-')) {\n return icon.replace(/^c8y-/, '');\n }\n return icon;\n }\n}\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { BehaviorSubject, Observable, combineLatest, defer, from } from 'rxjs';\nimport { debounceTime, map, shareReplay, startWith } from 'rxjs/operators';\nimport {\n gettext,\n IconDirective,\n C8yTranslateDirective,\n C8yTranslatePipe\n} from '@c8y/ngx-components';\nimport { clone } from 'lodash-es';\nimport { DefaultIconDefinition } from '@c8y/ngx-components/icon-selector/model';\nimport { SupportedIconsSuggestions } from '@c8y/ngx-components/icon-selector/icons';\nimport { FormsModule } from '@angular/forms';\nimport { NgIf, NgFor, NgClass, AsyncPipe } from '@angular/common';\nimport { IconNamePipe } from './icon-name.pipe';\n\nconst allIconCategory = gettext('All`icons-category`');\n\n@Component({\n selector: 'c8y-icon-selector',\n templateUrl: './icon-selector.component.html',\n styleUrls: [],\n imports: [\n FormsModule,\n IconDirective,\n NgIf,\n C8yTranslateDirective,\n NgFor,\n NgClass,\n C8yTranslatePipe,\n AsyncPipe,\n IconNamePipe\n ]\n})\nexport class IconSelectorComponent {\n @Input() iconCategoriesToExclude: string[] = [];\n @Input() showIconClass = true;\n @Output() onSelect = new EventEmitter<string>();\n @Input() selectedIcon: SupportedIconsSuggestions;\n\n icons$: Observable<DefaultIconDefinition[]>;\n filteredIcons$: Observable<DefaultIconDefinition[]>;\n searchTerm$ = new BehaviorSubject('');\n selectedIconCategory$ = new BehaviorSubject<string>(allIconCategory);\n availableIconCategories$: Observable<string[]>;\n\n constructor() {\n this.icons$ = defer(() => from(this.loadIconDefinitions())).pipe(\n map(icons => icons.filter(tmp => !this.iconCategoriesToExclude.includes(tmp.label))),\n shareReplay({ refCount: true, bufferSize: 1 })\n );\n this.filteredIcons$ = combineLatest([\n this.icons$,\n this.searchTerm$.pipe(debounceTime(500), startWith(this.searchTerm$.value)),\n this.selectedIconCategory$\n ]).pipe(\n map(([icons, searchTerm, category]) =>\n this.filterIconsByCategoryAndSearchTerm(icons, category, searchTerm)\n )\n );\n this.availableIconCategories$ = this.icons$.pipe(\n map(icons => [allIconCategory, ...icons.map(tmp => tmp.label)])\n );\n }\n\n async loadIconDefinitions(): Promise<DefaultIconDefinition[]> {\n const { allIcons } = await import('@c8y/ngx-components/icon-selector/icons');\n return allIcons;\n }\n\n filterIconsByCategoryAndSearchTerm(\n iconCategories: DefaultIconDefinition[],\n selectedCategory: string,\n searchTerm: string\n ): DefaultIconDefinition[] {\n if (selectedCategory !== allIconCategory) {\n iconCategories = iconCategories.filter(category => category.label === selectedCategory);\n }\n\n if (searchTerm) {\n const lowerCaseSearchTerm = searchTerm.toLowerCase();\n const matchingCategories = new Array<DefaultIconDefinition>();\n for (const category of iconCategories) {\n const matchingIcons = category.icons.filter(iconClasses =>\n iconClasses.some(iconClass => iconClass.includes(lowerCaseSearchTerm))\n );\n if (matchingIcons.length) {\n matchingCategories.push({ ...clone(category), icons: matchingIcons });\n }\n }\n return matchingCategories;\n }\n\n return iconCategories;\n }\n\n onSearchChange(searchTerm: string) {\n this.searchTerm$.next(searchTerm);\n }\n\n onCategoryFilterChanged(categoryChange: string): void {\n this.selectedIconCategory$.next(categoryChange);\n }\n\n onIconClicked(icon: ReadonlyArray<string>): void {\n this.selectedIcon = icon[0];\n this.onSelect.emit(icon[0]);\n }\n}\n","<div class=\"p-l-24 p-r-24 p-t-8 p-b-8 separator-bottom\">\n <div class=\"row d-flex-sm\">\n <div class=\"col-sm-6 m-b-8\">\n <div class=\"input-group-search input-group\" style=\"width: auto\">\n <input\n type=\"search\"\n class=\"form-control\"\n id=\"filter-icons\"\n [ngModel]=\"searchTerm$ | async\"\n (ngModelChange)=\"onSearchChange($event)\"\n placeholder=\"{{ 'Type to filter icons…' | translate }}\"\n />\n <ng-template #searchIcon>\n <span class=\"input-group-addon\">\n <i c8yIcon=\"search\"></i>\n </span>\n </ng-template>\n <span\n class=\"input-group-addon pointer\"\n *ngIf=\"searchTerm$ | async; else searchIcon\"\n (click)=\"onSearchChange('')\"\n >\n <i c8yIcon=\"times\"></i>\n </span>\n </div>\n </div>\n <div class=\"col-sm-6 m-b-8 text-right\">\n <div class=\"d-inline-flex a-i-center text-left\">\n <label class=\"m-b-0 m-r-8 flex-no-shrink\" translate>Filter by type</label>\n <div class=\"c8y-select-wrapper\">\n <select\n id=\"exampleSelect\"\n class=\"form-control\"\n [ngModel]=\"selectedIconCategory$ | async\"\n (ngModelChange)=\"onCategoryFilterChanged($event)\"\n >\n <option *ngFor=\"let category of availableIconCategories$ | async\" [ngValue]=\"category\">\n {{ category | translate }}\n </option>\n </select>\n <span></span>\n </div>\n </div>\n </div>\n </div>\n</div>\n<div class=\"modal-inner-scroll\">\n <div class=\"modal-body\" style=\"height: calc(100vh - 293px)\">\n <div class=\"dtm-icon-grid\">\n <div *ngFor=\"let iconDefinition of filteredIcons$ | async\" class=\"d-contents\">\n <div class=\"legend form-block center grid__col--fullspan\">\n {{ iconDefinition.label | translate }}\n </div>\n\n <div class=\"d-contents\" *ngFor=\"let icon of iconDefinition.icons\">\n <div\n class=\"dtm-icon-grid__item\"\n [ngClass]=\"{\n 'dtm-icon-grid__item--selected': selectedIcon && icon[0] === selectedIcon\n }\"\n >\n <button (click)=\"onIconClicked(icon)\" class=\"dtm-icon-grid__btn\" [title]=\"icon[0] | iconName\">\n <i [c8yIcon]=\"icon[0]\" class=\"d-block icon-40\"></i>\n <small *ngIf=\"showIconClass\" class=\"text-break-word\">{{ icon[0] | iconName }}</small>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n","import { Component } from '@angular/core';\nimport { gettext, C8yTranslatePipe } from '@c8y/ngx-components';\nimport { BsModalRef } from 'ngx-bootstrap/modal';\nimport { IconSelectorComponent } from '../icon-selector.component';\n\n@Component({\n selector: 'c8y-icon-selector-modal',\n templateUrl: './icon-selector-modal.component.html',\n imports: [IconSelectorComponent, C8yTranslatePipe]\n})\nexport class IconSelectorModalComponent {\n title: string = gettext('Select icon');\n currentSelection: string;\n saveButtonLabel: string = gettext('Select');\n iconCategoriesToExclude: string[] = [];\n showIconClass = true;\n\n readonly result: Promise<string> = new Promise((resolve, reject) => {\n this.save = resolve;\n this.cancel = reject;\n });\n\n private save: (value: string) => void;\n private cancel: (reason?: any) => void;\n\n constructor(private bsModal: BsModalRef) {}\n\n close() {\n this.bsModal.hide();\n this.cancel();\n }\n\n saveChanges(): void {\n this.bsModal.hide();\n this.save(this.currentSelection);\n }\n\n selectionChange(newSelection: string) {\n this.currentSelection = newSelection;\n }\n}\n","<div class=\"modal-header\">\n <div id=\"modal-title\" class=\"modal-title h4\">{{ title | translate }}</div>\n</div>\n<div id=\"modal-body\">\n <c8y-icon-selector\n (onSelect)=\"selectionChange($event)\"\n [selectedIcon]=\"currentSelection\"\n [iconCategoriesToExclude]=\"iconCategoriesToExclude\"\n [showIconClass]=\"showIconClass\"\n ></c8y-icon-selector>\n</div>\n<div class=\"modal-footer separator text-center\">\n <button class=\"btn btn-default\" (click)=\"close()\">\n {{ 'Cancel' | translate }}\n </button>\n <button class=\"btn btn-primary\" [disabled]=\"!currentSelection\" (click)=\"saveChanges()\">\n {{ saveButtonLabel | translate }}\n </button>\n</div>\n","import { Injectable } from '@angular/core';\nimport { BsModalService } from 'ngx-bootstrap/modal';\nimport { IconSelectorModalComponent } from './icon-selector-modal/icon-selector-modal.component';\n\n@Injectable({ providedIn: 'root' })\nexport class IconSelectorService {\n constructor(protected modal: BsModalService) {}\n\n selectIcon(\n initialState: Partial<\n Pick<\n IconSelectorModalComponent,\n | 'currentSelection'\n | 'title'\n | 'saveButtonLabel'\n | 'iconCategoriesToExclude'\n | 'showIconClass'\n >\n > = {}\n ): Promise<string> {\n const modal = this.modal.show(IconSelectorModalComponent, {\n ignoreBackdropClick: true,\n keyboard: false,\n initialState,\n class: 'modal-lg'\n });\n const content = modal.content as IconSelectorModalComponent;\n return content.result;\n }\n}\n","import { Component, forwardRef, Input, Output, EventEmitter } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconSelectorService } from '../icon-selector.service';\nimport { GainsightService, IconDirective, C8yTranslatePipe } from '@c8y/ngx-components';\nimport { PRODUCT_EXPERIENCE_ICON_SELECTOR } from '@c8y/ngx-components/icon-selector/model';\nimport { NgIf } from '@angular/common';\nimport { TooltipDirective } from 'ngx-bootstrap/tooltip';\n\n/**\n * A component which acts as a wrapper for the icon selector.\n *\n * Example 1:\n * ```\n <c8y-icon-selector-wrapper\n [selectedIcon]=\"'water'\"\n (onSelect)=\"selectIcon($event)\"\n ></c8y-icon-selector-wrapper>\n * ```\n * OR as a part of a formGroup\n * Example 2:\n * ```\n <c8y-icon-selector-wrapper name=\"icon\" formControlName=\"icon\">\n </c8y-icon-selector-wrapper>\n * ```\n */\n@Component({\n selector: 'c8y-icon-selector-wrapper',\n templateUrl: './icon-selector-wrapper.component.html',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => IconSelectorWrapperComponent),\n multi: true\n }\n ],\n imports: [NgIf, IconDirective, TooltipDirective, C8yTranslatePipe]\n})\nexport class IconSelectorWrapperComponent implements ControlValueAccessor {\n @Input() canRemoveIcon = false;\n @Input() selectedIcon: string;\n /**\n * The displayed icon size, the value has to be multiple of 8.\n */\n @Input() iconSize = 32;\n @Output() onSelect: EventEmitter<string> = new EventEmitter();\n\n /**\n * @ignore\n */\n onTouched: () => void;\n\n constructor(\n private iconSelector: IconSelectorService,\n private gainsightService: GainsightService\n ) {}\n\n /**\n * @ignore\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onChange: (value: string) => void = () => {};\n\n /**\n * @ignore\n * @param icon The value to update\n */\n writeValue(icon: string): void {\n this.selectedIcon = icon;\n }\n\n /**\n * @ignore\n * @param fn The function to register for changes\n */\n registerOnChange(fn: () => void): void {\n this.onChange = fn;\n }\n\n /**\n * @ignore\n * @param fn The function to register for changes\n */\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n removeIcon() {\n this.onSelect.emit(undefined);\n }\n\n async openIconSelector() {\n try {\n this.gainsightService.triggerEvent(PRODUCT_EXPERIENCE_ICON_SELECTOR.EVENTS.ICON_SELECTOR, {\n component: PRODUCT_EXPERIENCE_ICON_SELECTOR.COMPONENTS.ICON_SELECTOR_WRAPPER_COMPONENT,\n action: PRODUCT_EXPERIENCE_ICON_SELECTOR.ACTIONS.OPEN_ICON_SELECTOR\n });\n const icon = await this.iconSelector.selectIcon({\n currentSelection: this.selectedIcon\n });\n this.onChange(icon);\n this.selectedIcon = icon;\n this.onSelect.emit(icon);\n this.gainsightService.triggerEvent(PRODUCT_EXPERIENCE_ICON_SELECTOR.EVENTS.ICON_SELECTOR, {\n component: PRODUCT_EXPERIENCE_ICON_SELECTOR.COMPONENTS.ICON_SELECTOR_WRAPPER_COMPONENT,\n action: PRODUCT_EXPERIENCE_ICON_SELECTOR.ACTIONS.ICON_SELECTED\n });\n } catch {\n // nothing to do\n }\n }\n}\n","<div class=\"d-flex a-i-center j-c-center p-relative\">\n <div\n class=\"icon-{{ iconSize }} text-center l-h-1 fit-w fit-h\"\n *ngIf=\"selectedIcon\"\n >\n <i\n class=\"c8y-icon-duocolor\"\n [c8yIcon]=\"selectedIcon\"\n ></i>\n </div>\n\n <div\n class=\"icon-{{ iconSize }} text-muted text-center a-s-stretch fit-w\"\n style=\"border: 2px dashed var(--c8y-root-component-border-color)\"\n *ngIf=\"!selectedIcon\"\n >\n <span class=\"d-flex a-i-center j-c-center text-12 fit-h\">\n <em>{{ 'Auto' | translate }}</em>\n </span>\n </div>\n <div class=\"showOnHover d-flex j-c-center p-absolute fit-h fit-w\">\n <button\n class=\"btn btn-dot btn-icon btn-sm m-0\"\n title=\"{{ 'Select icon' | translate }}\"\n [attr.aria-label]=\"'Select icon' | translate\"\n type=\"button\"\n (click)=\"openIconSelector()\"\n *ngIf=\"!selectedIcon\"\n >\n {{ 'Select' | translate }}\n </button>\n <button\n class=\"btn btn-dot btn-sm btn-icon m-0\"\n [attr.aria-label]=\"'Change icon' | translate\"\n tooltip=\"{{ 'Change icon' | translate }}\"\n placement=\"top\"\n [delay]=\"500\"\n container=\"body\"\n type=\"button\"\n *ngIf=\"selectedIcon\"\n (click)=\"openIconSelector()\"\n >\n <i [c8yIcon]=\"'replace'\"></i>\n </button>\n <button\n class=\"btn btn-dot btn-dot--danger btn-icon btn-sm m-0\"\n [attr.aria-label]=\"'Remove icon and use default icon' | translate\"\n tooltip=\"{{ 'Remove icon and use default icon' | translate }}\"\n placement=\"top\"\n [delay]=\"500\"\n container=\"body\"\n type=\"button\"\n *ngIf=\"selectedIcon && canRemoveIcon\"\n (click)=\"removeIcon()\"\n >\n <i [c8yIcon]=\"'trash'\"></i>\n </button>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { CommonModule, DropAreaModule } from '@c8y/ngx-components';\nimport { TooltipModule } from 'ngx-bootstrap/tooltip';\nimport { IconNamePipe } from './icon-name.pipe';\nimport { IconSelectorModalComponent } from './icon-selector-modal/icon-selector-modal.component';\nimport { IconSelectorComponent } from './icon-selector.component';\nimport { IconSelectorWrapperComponent } from './icon-selector-wrapper/icon-selector-wrapper.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n DropAreaModule,\n TooltipModule,\n IconSelectorComponent,\n IconSelectorModalComponent,\n IconNamePipe,\n IconSelectorWrapperComponent\n ],\n exports: [\n IconSelectorComponent,\n IconSelectorModalComponent,\n IconNamePipe,\n IconSelectorWrapperComponent\n ]\n})\nexport class IconSelectorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i1.IconSelectorService"],"mappings":";;;;;;;;;;;;;;MAGa,YAAY,CAAA;AACvB,IAAA,SAAS,CAAC,IAAY,EAAA;AACpB,QAAA,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;QAClC;AACA,QAAA,OAAO,IAAI;IACb;+GANW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB,IAAI;mBAAC,EAAE,IAAI,EAAE,UAAU,EAAE;;;ACc1B,MAAM,eAAe,GAAG,OAAO,CAAC,qBAAqB,CAAC;MAkBzC,qBAAqB,CAAA;AAYhC,I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;YACd,aAAa;YACb,qBAAqB;YACrB,0BAA0B,CAAA,EAAA,CAAA,CAAA;;4FAWjB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAlB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,cAAc;wBACd,aAAa;wBACb,qBAAqB;wBACrB,0BAA0B;wBAC1B,YAAY;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,0BAA0B;wBAC1B,YAAY;wBACZ;AACD;AACF,iBAAA;;;AC1BD;;AAEG;;;;"}
1
+ {"version":3,"file":"c8y-ngx-components-icon-selector.mjs","sources":["../../icon-selector/icon-name.pipe.ts","../../icon-selector/icon-selector.component.ts","../../icon-selector/icon-selector.component.html","../../icon-selector/icon-selector-modal/icon-selector-modal.component.ts","../../icon-selector/icon-selector-modal/icon-selector-modal.component.html","../../icon-selector/icon-selector.service.ts","../../icon-selector/icon-selector-wrapper/icon-selector-wrapper.component.ts","../../icon-selector/icon-selector-wrapper/icon-selector-wrapper.component.html","../../icon-selector/icon-selector.module.ts","../../icon-selector/c8y-ngx-components-icon-selector.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({ name: 'iconName' })\nexport class IconNamePipe implements PipeTransform {\n transform(icon: string): string {\n if (icon.startsWith('c8y-')) {\n return icon.replace(/^c8y-/, '');\n }\n return icon;\n }\n}\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { BehaviorSubject, Observable, combineLatest, defer, from } from 'rxjs';\nimport { debounceTime, map, shareReplay, startWith } from 'rxjs/operators';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport { IconDirective, C8yTranslateDirective, C8yTranslatePipe } from '@c8y/ngx-components';\nimport { clone } from 'lodash-es';\nimport { DefaultIconDefinition } from '@c8y/ngx-components/icon-selector/model';\nimport { SupportedIconsSuggestions } from '@c8y/ngx-components/icon-selector/icons';\nimport { FormsModule } from '@angular/forms';\nimport { NgIf, NgFor, NgClass, AsyncPipe } from '@angular/common';\nimport { IconNamePipe } from './icon-name.pipe';\n\nconst allIconCategory = gettext('All`icons-category`');\n\n@Component({\n selector: 'c8y-icon-selector',\n templateUrl: './icon-selector.component.html',\n styleUrls: [],\n imports: [\n FormsModule,\n IconDirective,\n NgIf,\n C8yTranslateDirective,\n NgFor,\n NgClass,\n C8yTranslatePipe,\n AsyncPipe,\n IconNamePipe\n ]\n})\nexport class IconSelectorComponent {\n @Input() iconCategoriesToExclude: string[] = [];\n @Input() showIconClass = true;\n @Output() onSelect = new EventEmitter<string>();\n @Input() selectedIcon: SupportedIconsSuggestions;\n\n icons$: Observable<DefaultIconDefinition[]>;\n filteredIcons$: Observable<DefaultIconDefinition[]>;\n searchTerm$ = new BehaviorSubject('');\n selectedIconCategory$ = new BehaviorSubject<string>(allIconCategory);\n availableIconCategories$: Observable<string[]>;\n\n constructor() {\n this.icons$ = defer(() => from(this.loadIconDefinitions())).pipe(\n map(icons => icons.filter(tmp => !this.iconCategoriesToExclude.includes(tmp.label))),\n shareReplay({ refCount: true, bufferSize: 1 })\n );\n this.filteredIcons$ = combineLatest([\n this.icons$,\n this.searchTerm$.pipe(debounceTime(500), startWith(this.searchTerm$.value)),\n this.selectedIconCategory$\n ]).pipe(\n map(([icons, searchTerm, category]) =>\n this.filterIconsByCategoryAndSearchTerm(icons, category, searchTerm)\n )\n );\n this.availableIconCategories$ = this.icons$.pipe(\n map(icons => [allIconCategory, ...icons.map(tmp => tmp.label)])\n );\n }\n\n async loadIconDefinitions(): Promise<DefaultIconDefinition[]> {\n const { allIcons } = await import('@c8y/ngx-components/icon-selector/icons');\n return allIcons;\n }\n\n filterIconsByCategoryAndSearchTerm(\n iconCategories: DefaultIconDefinition[],\n selectedCategory: string,\n searchTerm: string\n ): DefaultIconDefinition[] {\n if (selectedCategory !== allIconCategory) {\n iconCategories = iconCategories.filter(category => category.label === selectedCategory);\n }\n\n if (searchTerm) {\n const lowerCaseSearchTerm = searchTerm.toLowerCase();\n const matchingCategories = new Array<DefaultIconDefinition>();\n for (const category of iconCategories) {\n const matchingIcons = category.icons.filter(iconClasses =>\n iconClasses.some(iconClass => iconClass.includes(lowerCaseSearchTerm))\n );\n if (matchingIcons.length) {\n matchingCategories.push({ ...clone(category), icons: matchingIcons });\n }\n }\n return matchingCategories;\n }\n\n return iconCategories;\n }\n\n onSearchChange(searchTerm: string) {\n this.searchTerm$.next(searchTerm);\n }\n\n onCategoryFilterChanged(categoryChange: string): void {\n this.selectedIconCategory$.next(categoryChange);\n }\n\n onIconClicked(icon: ReadonlyArray<string>): void {\n this.selectedIcon = icon[0];\n this.onSelect.emit(icon[0]);\n }\n}\n","<div class=\"p-l-24 p-r-24 p-t-8 p-b-8 separator-bottom\">\n <div class=\"row d-flex-sm\">\n <div class=\"col-sm-6 m-b-8\">\n <div class=\"input-group-search input-group\" style=\"width: auto\">\n <input\n type=\"search\"\n class=\"form-control\"\n id=\"filter-icons\"\n [ngModel]=\"searchTerm$ | async\"\n (ngModelChange)=\"onSearchChange($event)\"\n placeholder=\"{{ 'Type to filter icons…' | translate }}\"\n />\n <ng-template #searchIcon>\n <span class=\"input-group-addon\">\n <i c8yIcon=\"search\"></i>\n </span>\n </ng-template>\n <span\n class=\"input-group-addon pointer\"\n *ngIf=\"searchTerm$ | async; else searchIcon\"\n (click)=\"onSearchChange('')\"\n >\n <i c8yIcon=\"times\"></i>\n </span>\n </div>\n </div>\n <div class=\"col-sm-6 m-b-8 text-right\">\n <div class=\"d-inline-flex a-i-center text-left\">\n <label class=\"m-b-0 m-r-8 flex-no-shrink\" translate>Filter by type</label>\n <div class=\"c8y-select-wrapper\">\n <select\n id=\"exampleSelect\"\n class=\"form-control\"\n [ngModel]=\"selectedIconCategory$ | async\"\n (ngModelChange)=\"onCategoryFilterChanged($event)\"\n >\n <option *ngFor=\"let category of availableIconCategories$ | async\" [ngValue]=\"category\">\n {{ category | translate }}\n </option>\n </select>\n <span></span>\n </div>\n </div>\n </div>\n </div>\n</div>\n<div class=\"modal-inner-scroll\">\n <div class=\"modal-body\" style=\"height: calc(100vh - 293px)\">\n <div class=\"dtm-icon-grid\">\n <div *ngFor=\"let iconDefinition of filteredIcons$ | async\" class=\"d-contents\">\n <div class=\"legend form-block center grid__col--fullspan\">\n {{ iconDefinition.label | translate }}\n </div>\n\n <div class=\"d-contents\" *ngFor=\"let icon of iconDefinition.icons\">\n <div\n class=\"dtm-icon-grid__item\"\n [ngClass]=\"{\n 'dtm-icon-grid__item--selected': selectedIcon && icon[0] === selectedIcon\n }\"\n >\n <button (click)=\"onIconClicked(icon)\" class=\"dtm-icon-grid__btn\" [title]=\"icon[0] | iconName\">\n <i [c8yIcon]=\"icon[0]\" class=\"d-block icon-40\"></i>\n <small *ngIf=\"showIconClass\" class=\"text-break-word\">{{ icon[0] | iconName }}</small>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n","import { Component } from '@angular/core';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport { C8yTranslatePipe } from '@c8y/ngx-components';\nimport { BsModalRef } from 'ngx-bootstrap/modal';\nimport { IconSelectorComponent } from '../icon-selector.component';\n\n@Component({\n selector: 'c8y-icon-selector-modal',\n templateUrl: './icon-selector-modal.component.html',\n imports: [IconSelectorComponent, C8yTranslatePipe]\n})\nexport class IconSelectorModalComponent {\n title: string = gettext('Select icon');\n currentSelection: string;\n saveButtonLabel: string = gettext('Select');\n iconCategoriesToExclude: string[] = [];\n showIconClass = true;\n\n readonly result: Promise<string> = new Promise((resolve, reject) => {\n this.save = resolve;\n this.cancel = reject;\n });\n\n private save: (value: string) => void;\n private cancel: (reason?: any) => void;\n\n constructor(private bsModal: BsModalRef) {}\n\n close() {\n this.bsModal.hide();\n this.cancel();\n }\n\n saveChanges(): void {\n this.bsModal.hide();\n this.save(this.currentSelection);\n }\n\n selectionChange(newSelection: string) {\n this.currentSelection = newSelection;\n }\n}\n","<div class=\"modal-header\">\n <div id=\"modal-title\" class=\"modal-title h4\">{{ title | translate }}</div>\n</div>\n<div id=\"modal-body\">\n <c8y-icon-selector\n (onSelect)=\"selectionChange($event)\"\n [selectedIcon]=\"currentSelection\"\n [iconCategoriesToExclude]=\"iconCategoriesToExclude\"\n [showIconClass]=\"showIconClass\"\n ></c8y-icon-selector>\n</div>\n<div class=\"modal-footer separator text-center\">\n <button class=\"btn btn-default\" (click)=\"close()\">\n {{ 'Cancel' | translate }}\n </button>\n <button class=\"btn btn-primary\" [disabled]=\"!currentSelection\" (click)=\"saveChanges()\">\n {{ saveButtonLabel | translate }}\n </button>\n</div>\n","import { Injectable } from '@angular/core';\nimport { BsModalService } from 'ngx-bootstrap/modal';\nimport { IconSelectorModalComponent } from './icon-selector-modal/icon-selector-modal.component';\n\n@Injectable({ providedIn: 'root' })\nexport class IconSelectorService {\n constructor(protected modal: BsModalService) {}\n\n selectIcon(\n initialState: Partial<\n Pick<\n IconSelectorModalComponent,\n | 'currentSelection'\n | 'title'\n | 'saveButtonLabel'\n | 'iconCategoriesToExclude'\n | 'showIconClass'\n >\n > = {}\n ): Promise<string> {\n const modal = this.modal.show(IconSelectorModalComponent, {\n ignoreBackdropClick: true,\n keyboard: false,\n initialState,\n class: 'modal-lg'\n });\n const content = modal.content as IconSelectorModalComponent;\n return content.result;\n }\n}\n","import { Component, forwardRef, Input, Output, EventEmitter } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconSelectorService } from '../icon-selector.service';\nimport { GainsightService, IconDirective, C8yTranslatePipe } from '@c8y/ngx-components';\nimport { PRODUCT_EXPERIENCE_ICON_SELECTOR } from '@c8y/ngx-components/icon-selector/model';\nimport { NgIf } from '@angular/common';\nimport { TooltipDirective } from 'ngx-bootstrap/tooltip';\n\n/**\n * A component which acts as a wrapper for the icon selector.\n *\n * Example 1:\n * ```\n <c8y-icon-selector-wrapper\n [selectedIcon]=\"'water'\"\n (onSelect)=\"selectIcon($event)\"\n ></c8y-icon-selector-wrapper>\n * ```\n * OR as a part of a formGroup\n * Example 2:\n * ```\n <c8y-icon-selector-wrapper name=\"icon\" formControlName=\"icon\">\n </c8y-icon-selector-wrapper>\n * ```\n */\n@Component({\n selector: 'c8y-icon-selector-wrapper',\n templateUrl: './icon-selector-wrapper.component.html',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => IconSelectorWrapperComponent),\n multi: true\n }\n ],\n imports: [NgIf, IconDirective, TooltipDirective, C8yTranslatePipe]\n})\nexport class IconSelectorWrapperComponent implements ControlValueAccessor {\n @Input() canRemoveIcon = false;\n @Input() selectedIcon: string;\n /**\n * The displayed icon size, the value has to be multiple of 8.\n */\n @Input() iconSize = 32;\n @Output() onSelect: EventEmitter<string> = new EventEmitter();\n\n /**\n * @ignore\n */\n onTouched: () => void;\n\n constructor(\n private iconSelector: IconSelectorService,\n private gainsightService: GainsightService\n ) {}\n\n /**\n * @ignore\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onChange: (value: string) => void = () => {};\n\n /**\n * @ignore\n * @param icon The value to update\n */\n writeValue(icon: string): void {\n this.selectedIcon = icon;\n }\n\n /**\n * @ignore\n * @param fn The function to register for changes\n */\n registerOnChange(fn: () => void): void {\n this.onChange = fn;\n }\n\n /**\n * @ignore\n * @param fn The function to register for changes\n */\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n removeIcon() {\n this.onSelect.emit(undefined);\n }\n\n async openIconSelector() {\n try {\n this.gainsightService.triggerEvent(PRODUCT_EXPERIENCE_ICON_SELECTOR.EVENTS.ICON_SELECTOR, {\n component: PRODUCT_EXPERIENCE_ICON_SELECTOR.COMPONENTS.ICON_SELECTOR_WRAPPER_COMPONENT,\n action: PRODUCT_EXPERIENCE_ICON_SELECTOR.ACTIONS.OPEN_ICON_SELECTOR\n });\n const icon = await this.iconSelector.selectIcon({\n currentSelection: this.selectedIcon\n });\n this.onChange(icon);\n this.selectedIcon = icon;\n this.onSelect.emit(icon);\n this.gainsightService.triggerEvent(PRODUCT_EXPERIENCE_ICON_SELECTOR.EVENTS.ICON_SELECTOR, {\n component: PRODUCT_EXPERIENCE_ICON_SELECTOR.COMPONENTS.ICON_SELECTOR_WRAPPER_COMPONENT,\n action: PRODUCT_EXPERIENCE_ICON_SELECTOR.ACTIONS.ICON_SELECTED\n });\n } catch {\n // nothing to do\n }\n }\n}\n","<div class=\"d-flex a-i-center j-c-center p-relative\">\n <div\n class=\"icon-{{ iconSize }} text-center l-h-1 fit-w fit-h\"\n *ngIf=\"selectedIcon\"\n >\n <i\n class=\"c8y-icon-duocolor\"\n [c8yIcon]=\"selectedIcon\"\n ></i>\n </div>\n\n <div\n class=\"icon-{{ iconSize }} text-muted text-center a-s-stretch fit-w\"\n style=\"border: 2px dashed var(--c8y-root-component-border-color)\"\n *ngIf=\"!selectedIcon\"\n >\n <span class=\"d-flex a-i-center j-c-center text-12 fit-h\">\n <em>{{ 'Auto' | translate }}</em>\n </span>\n </div>\n <div class=\"showOnHover d-flex j-c-center p-absolute fit-h fit-w\">\n <button\n class=\"btn btn-dot btn-icon btn-sm m-0\"\n title=\"{{ 'Select icon' | translate }}\"\n [attr.aria-label]=\"'Select icon' | translate\"\n type=\"button\"\n (click)=\"openIconSelector()\"\n *ngIf=\"!selectedIcon\"\n >\n {{ 'Select' | translate }}\n </button>\n <button\n class=\"btn btn-dot btn-sm btn-icon m-0\"\n [attr.aria-label]=\"'Change icon' | translate\"\n tooltip=\"{{ 'Change icon' | translate }}\"\n placement=\"top\"\n [delay]=\"500\"\n container=\"body\"\n type=\"button\"\n *ngIf=\"selectedIcon\"\n (click)=\"openIconSelector()\"\n >\n <i [c8yIcon]=\"'replace'\"></i>\n </button>\n <button\n class=\"btn btn-dot btn-dot--danger btn-icon btn-sm m-0\"\n [attr.aria-label]=\"'Remove icon and use default icon' | translate\"\n tooltip=\"{{ 'Remove icon and use default icon' | translate }}\"\n placement=\"top\"\n [delay]=\"500\"\n container=\"body\"\n type=\"button\"\n *ngIf=\"selectedIcon && canRemoveIcon\"\n (click)=\"removeIcon()\"\n >\n <i [c8yIcon]=\"'trash'\"></i>\n </button>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { CommonModule, DropAreaModule } from '@c8y/ngx-components';\nimport { TooltipModule } from 'ngx-bootstrap/tooltip';\nimport { IconNamePipe } from './icon-name.pipe';\nimport { IconSelectorModalComponent } from './icon-selector-modal/icon-selector-modal.component';\nimport { IconSelectorComponent } from './icon-selector.component';\nimport { IconSelectorWrapperComponent } from './icon-selector-wrapper/icon-selector-wrapper.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n DropAreaModule,\n TooltipModule,\n IconSelectorComponent,\n IconSelectorModalComponent,\n IconNamePipe,\n IconSelectorWrapperComponent\n ],\n exports: [\n IconSelectorComponent,\n IconSelectorModalComponent,\n IconNamePipe,\n IconSelectorWrapperComponent\n ]\n})\nexport class IconSelectorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i1.IconSelectorService"],"mappings":";;;;;;;;;;;;;;;MAGa,YAAY,CAAA;AACvB,IAAA,SAAS,CAAC,IAAY,EAAA;AACpB,QAAA,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;QAClC;AACA,QAAA,OAAO,IAAI;IACb;+GANW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB,IAAI;mBAAC,EAAE,IAAI,EAAE,UAAU,EAAE;;;ACU1B,MAAM,eAAe,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AA,EAAA,IAAA,EAAA,kBAAkB,YAhB3B,YAAY;YACZ,WAAW;YACX,cAAc;YACd,aAAa;YACb,qBAAqB;YACrB,0BAA0B,CAAA,EAAA,CAAA,CAAA;;4FAWjB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAlB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,cAAc;wBACd,aAAa;wBACb,qBAAqB;wBACrB,0BAA0B;wBAC1B,YAAY;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,0BAA0B;wBAC1B,YAAY;wBACZ;AACD;AACF,iBAAA;;;AC1BD;;AAEG;;;;"}
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { TemplateRef, ViewChild, Optional, Inject, Component, Injectable, NgModule } from '@angular/core';
3
3
  import * as i1 from '@c8y/client';
4
4
  import * as i1$1 from '@c8y/ngx-components';
5
- import { IconDirective, C8yTranslateDirective, C8yTranslatePipe, ViewContext, gettext, Permissions, ActionBarItemComponent, FormGroupComponent, RequiredInputPlaceholderDirective, MinValidationDirective, MaxValidationDirective, MessagesComponent, MessageDirective, CoreModule, hookRoute, hookTab, hookActionBar } from '@c8y/ngx-components';
5
+ import { IconDirective, C8yTranslateDirective, C8yTranslatePipe, ViewContext, Permissions, ActionBarItemComponent, FormGroupComponent, RequiredInputPlaceholderDirective, MinValidationDirective, MaxValidationDirective, MessagesComponent, MessageDirective, CoreModule, hookRoute, hookTab, hookActionBar } from '@c8y/ngx-components';
6
6
  import * as i3 from '@angular/router';
7
7
  import { RouterModule } from '@angular/router';
8
8
  import { defaultMapConfig, MAP_DEFAULT_CONFIG, MapComponent, MapModule } from '@c8y/ngx-components/map';
@@ -10,6 +10,7 @@ import * as i4 from 'rxjs';
10
10
  import { of, Subject } from 'rxjs';
11
11
  import { first, takeUntil } from 'rxjs/operators';
12
12
  import { isUndefined, cloneDeep } from 'lodash-es';
13
+ import { gettext } from '@c8y/ngx-components/gettext';
13
14
  import { NgClass, NgIf } from '@angular/common';
14
15
  import * as i4$1 from '@angular/forms';
15
16
  import { FormsModule } from '@angular/forms';
@@ -1 +1 @@
1
- {"version":3,"file":"c8y-ngx-components-location.mjs","sources":["../../location/add-location.component.ts","../../location/add-location.component.html","../../location/add-location.factory.ts","../../location/location-tab.factory.ts","../../location/location.component.ts","../../location/location.component.html","../../location/location.module.ts","../../location/c8y-ngx-components-location.ts"],"sourcesContent":["import {\n Component,\n Inject,\n OnInit,\n Optional,\n TemplateRef,\n ViewChild,\n ViewContainerRef\n} from '@angular/core';\nimport { IManagedObject, InventoryService } from '@c8y/client';\nimport {\n AlertService,\n ContextRouteService,\n IconDirective,\n C8yTranslateDirective,\n C8yTranslatePipe\n} from '@c8y/ngx-components';\nimport type { MapDefaultConfig } from '@c8y/options';\nimport { Router } from '@angular/router';\nimport { MAP_DEFAULT_CONFIG, defaultMapConfig } from '@c8y/ngx-components/map';\nimport { Observable, of } from 'rxjs';\nimport { first } from 'rxjs/operators';\n\n@Component({\n selector: 'c8y-add-location',\n templateUrl: './add-location.component.html',\n imports: [IconDirective, C8yTranslateDirective, C8yTranslatePipe]\n})\nexport class AddLocationComponent implements OnInit {\n @ViewChild('templateCopy', { read: TemplateRef, static: true }) templateCopy;\n\n constructor(\n private inventoryService: InventoryService,\n private contextRouteService: ContextRouteService,\n @Optional()\n @Inject(MAP_DEFAULT_CONFIG)\n private defaultConfig$: Observable<MapDefaultConfig>,\n private router: Router,\n private alertService: AlertService,\n private vcRef: ViewContainerRef\n ) {}\n\n ngOnInit() {\n this.vcRef.createEmbeddedView(this.templateCopy);\n }\n\n onClick(): void {\n const mapConfig$ = this.defaultConfig$ || of(defaultMapConfig);\n mapConfig$.pipe(first()).subscribe(async config => {\n const context = this.contextRouteService.activatedContextData;\n context.contextData.c8y_Position = {\n lat: config.center[0],\n lng: config.center[1]\n };\n try {\n await this.inventoryService.update(context.contextData as IManagedObject);\n } catch (ex) {\n this.alertService.addServerFailure(ex);\n }\n\n const route = this.contextRouteService.getContextRoute(context);\n this.contextRouteService.refreshContext();\n this.router.navigateByUrl(route + '/location');\n });\n }\n}\n","<ng-template #templateCopy>\n <button\n class=\"btn btn-link\"\n [title]=\"'Add location' | translate\"\n (click)=\"onClick()\"\n >\n <i c8yIcon=\"location-arrow\"></i>\n <span translate>Add location</span>\n </button>\n</ng-template>\n","import { Injectable } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport {\n ActionBarFactory,\n ActionBarItem,\n ContextRouteService,\n ViewContext\n} from '@c8y/ngx-components';\nimport { AddLocationComponent } from './add-location.component';\nimport { isUndefined } from 'lodash-es';\n\n@Injectable({ providedIn: 'root' })\nexport class AddLocationFactory implements ActionBarFactory {\n private action: ActionBarItem = {\n component: AddLocationComponent,\n placement: 'more'\n };\n\n constructor(private contextRouteService: ContextRouteService) {}\n\n get(activatedRoute?: ActivatedRoute): ActionBarItem {\n const routeData = this.contextRouteService.getContextData(activatedRoute);\n if (!routeData) {\n return;\n }\n if (\n routeData.context === ViewContext.Device &&\n isUndefined(routeData.contextData.c8y_Position)\n ) {\n return this.action;\n }\n }\n}\n","import { Injectable } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport {\n ContextRouteService,\n Tab,\n ViewContext,\n ExtensionFactory,\n gettext\n} from '@c8y/ngx-components';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LocationTabFactory implements ExtensionFactory<Tab> {\n constructor(private contextRouteService: ContextRouteService) {}\n\n get(activatedRoute: ActivatedRoute): Tab[] {\n const contextData = this.contextRouteService.getContextData(activatedRoute);\n const isDeviceOrGroupWithPosition =\n (contextData?.context === ViewContext.Device || contextData?.context === ViewContext.Group) &&\n contextData?.contextData.c8y_Position;\n if (isDeviceOrGroupWithPosition) {\n return [\n {\n label: gettext('Location'),\n icon: 'location-arrow',\n path: `${this.contextRouteService.getContextRoute(contextData)}/location`\n }\n ];\n }\n return [];\n }\n}\n","import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';\nimport { MapComponent, MapConfig, PositionManagedObject } from '@c8y/ngx-components/map';\nimport {\n AlertService,\n ContextRouteService,\n OptionsService,\n Permissions,\n gettext,\n ActionBarItemComponent,\n C8yTranslateDirective,\n IconDirective,\n FormGroupComponent,\n RequiredInputPlaceholderDirective,\n MinValidationDirective,\n MaxValidationDirective,\n MessagesComponent,\n MessageDirective,\n C8yTranslatePipe\n} from '@c8y/ngx-components';\nimport { ActivatedRoute } from '@angular/router';\nimport { InventoryService } from '@c8y/client';\nimport { isUndefined, cloneDeep } from 'lodash-es';\nimport { takeUntil } from 'rxjs/operators';\nimport { Subject } from 'rxjs';\nimport { NgClass, NgIf } from '@angular/common';\n\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'c8y-location',\n templateUrl: './location.component.html',\n imports: [\n ActionBarItemComponent,\n NgClass,\n C8yTranslateDirective,\n IconDirective,\n MapComponent,\n FormsModule,\n NgIf,\n FormGroupComponent,\n RequiredInputPlaceholderDirective,\n MinValidationDirective,\n MaxValidationDirective,\n MessagesComponent,\n MessageDirective,\n C8yTranslatePipe\n ]\n})\nexport class LocationComponent implements OnInit, OnDestroy {\n position: PositionManagedObject;\n originalPosition: PositionManagedObject;\n isEdit = false;\n canEdit = true;\n config: MapConfig = { realtime: false, follow: true, zoomLevel: 12 };\n addressSearchTerm = '';\n hideAddressSearchFeature = false;\n\n private destroy$ = new Subject<void>();\n private mapNominatimUrl = 'https://nominatim.openstreetmap.org/search?format=json&q={searchTerm}';\n\n @ViewChild(MapComponent)\n map: MapComponent;\n\n constructor(\n private contextRouteService: ContextRouteService,\n private activatedRoute: ActivatedRoute,\n private inventoryService: InventoryService,\n private permissions: Permissions,\n private optionsService: OptionsService,\n private alertService: AlertService\n ) {}\n\n ngOnInit(): void {\n this.activatedRoute.url.pipe(takeUntil(this.destroy$)).subscribe(() => {\n this.updateMap();\n });\n }\n\n async updateMap() {\n const { contextData } = this.contextRouteService.getContextData(this.activatedRoute);\n this.position = contextData as PositionManagedObject;\n this.canEdit = await this.permissions.canEdit(\n [Permissions.ROLE_INVENTORY_ADMIN, Permissions.ROLE_INVENTORY_CREATE],\n contextData\n );\n\n const hasCustomSetting = !isUndefined(this.optionsService.mapNominatimUrl);\n this.hideAddressSearchFeature = hasCustomSetting && !this.optionsService.mapNominatimUrl;\n\n if (hasCustomSetting) {\n this.mapNominatimUrl = this.optionsService.mapNominatimUrl;\n }\n\n this.map.refresh();\n }\n\n toggleRealtime() {\n this.config = { ...this.config, realtime: !this.config.realtime };\n }\n\n disableRealtime() {\n this.config = { ...this.config, realtime: false };\n }\n\n centerMap() {\n this.config = {\n ...this.config,\n center: [this.position.c8y_Position.lat, this.position.c8y_Position.lng]\n };\n }\n\n edit() {\n this.originalPosition = cloneDeep(this.position);\n this.enableMarkerDragging();\n this.disableRealtime();\n this.isEdit = true;\n }\n\n cancel() {\n this.position = this.originalPosition;\n this.isEdit = false;\n this.map.markers[0]?.dragging.disable();\n this.centerMap();\n }\n\n async save() {\n try {\n const { data } = await this.inventoryService.update({\n id: this.position.id,\n c8y_Position: this.position.c8y_Position\n });\n this.position = data as PositionManagedObject;\n } catch (ex) {\n this.alertService.addServerFailure(ex);\n }\n this.map.markers[0]?.dragging.disable();\n this.centerMap();\n this.isEdit = false;\n }\n\n positionChanged(position: PositionManagedObject) {\n this.position = position;\n }\n\n async searchAddress(searchTerm: string) {\n const fetchResponse = await fetch(this.mapNominatimUrl.replace('{searchTerm}', searchTerm));\n if (fetchResponse.status !== 200) {\n this.alertService.danger(gettext('Failed to search for address.'));\n return;\n }\n const data: Array<{ lat: string | number; lon: string | number; licence?: string }> =\n await fetchResponse.json();\n const latLng = data[0];\n if (!latLng) {\n this.alertService.warning(gettext('Address could not be found.'));\n return;\n }\n this.position.c8y_Position.lat = Number(latLng.lat);\n this.position.c8y_Position.lng = Number(latLng.lon);\n this.updateMarkerPosition();\n if (latLng.licence) {\n this.map.map.attributionControl.addAttribution(latLng.licence);\n }\n }\n\n updateMarkerPosition() {\n this.map.refreshMarkers();\n this.enableMarkerDragging();\n this.centerMap();\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n }\n\n private enableMarkerDragging() {\n const marker = this.map.markers[0];\n if (marker) {\n marker.dragging.enable();\n marker.on('dragend', () => {\n const latlng = marker.getLatLng();\n this.position.c8y_Position = {\n ...this.position.c8y_Position,\n lat: latlng.lat,\n lng: latlng.lng\n };\n this.centerMap();\n });\n }\n }\n}\n","<c8y-action-bar-item placement=\"right\">\n <button\n class=\"btn btn-link c8y-realtime\"\n title=\"{{ 'Toggle realtime' | translate }}\"\n type=\"button\"\n (click)=\"toggleRealtime()\"\n >\n <span\n class=\"c8y-pulse\"\n [ngClass]=\"{ active: config.realtime, inactive: !config.realtime }\"\n ></span>\n <span translate>Realtime</span>\n </button>\n</c8y-action-bar-item>\n<c8y-action-bar-item placement=\"right\">\n <button\n class=\"btn btn-clean\"\n title=\"{{ 'Center`verb`' | translate }}\"\n (click)=\"centerMap()\"\n >\n <i [c8yIcon]=\"'target1'\"></i>\n <span translate>Center`verb`</span>\n </button>\n</c8y-action-bar-item>\n\n<div class=\"card card--grid content-fullpage d-grid grid__col--8-4--md\">\n <div\n class=\"bg-white p-relative\"\n style=\"min-height: 30vh\"\n >\n <c8y-map\n [assets]=\"[position]\"\n [config]=\"config\"\n (onRealtimeUpdate)=\"positionChanged($event)\"\n ></c8y-map>\n </div>\n\n <form\n class=\"d-flex d-col bg-inherit content-fullpage bg-gray-white\"\n #positionForm=\"ngForm\"\n (ngSubmit)=\"save()\"\n >\n <div class=\"card-header large-padding separator sticky-top\">\n <span\n class=\"card-title\"\n translate\n >\n Device location\n </span>\n </div>\n <div class=\"inner-scroll\">\n <div\n class=\"m-16\"\n *ngIf=\"!isEdit\"\n >\n <div class=\"p-b-40\">\n <div\n class=\"text-bold\"\n translate\n >\n Latitude (°)\n </div>\n {{ position.c8y_Position.lat }}\n </div>\n <div class=\"p-b-40\">\n <div\n class=\"text-bold\"\n translate\n >\n Longitude (°)\n </div>\n {{ position.c8y_Position.lng }}\n </div>\n <div class=\"p-b-40\">\n <div\n class=\"text-bold\"\n translate\n >\n Altitude (m)\n </div>\n {{ position.c8y_Position.alt }}\n </div>\n </div>\n <div\n class=\"m-16\"\n *ngIf=\"isEdit\"\n >\n <c8y-form-group>\n <label\n for=\"lat\"\n translate\n >\n Latitude (°)\n </label>\n\n <input\n class=\"form-control\"\n [title]=\"'Latitude (°)' | translate\"\n id=\"lat\"\n name=\"lat\"\n type=\"number\"\n required\n min=\"-90\"\n max=\"90\"\n (blur)=\"positionForm.valid && updateMarkerPosition()\"\n [(ngModel)]=\"position.c8y_Position.lat\"\n />\n <c8y-messages>\n <c8y-message\n name=\"min\"\n [text]=\"'The minimum latitude value is -90°.' | translate\"\n ></c8y-message>\n <c8y-message\n name=\"max\"\n [text]=\"'The maximum latitude value is 90°.' | translate\"\n ></c8y-message>\n </c8y-messages>\n </c8y-form-group>\n <c8y-form-group>\n <label\n for=\"lat\"\n translate\n >\n Longitude (°)\n </label>\n\n <input\n class=\"form-control\"\n [title]=\"'Longitude (°)' | translate\"\n id=\"lng\"\n name=\"lng\"\n type=\"number\"\n required\n min=\"-180\"\n max=\"180\"\n (blur)=\"positionForm.valid && updateMarkerPosition()\"\n [(ngModel)]=\"position.c8y_Position.lng\"\n />\n <c8y-messages>\n <c8y-message\n name=\"min\"\n [text]=\"'The minimum longitude value is -180°.' | translate\"\n ></c8y-message>\n <c8y-message\n name=\"max\"\n [text]=\"'The maximum longitude value is 180°.' | translate\"\n ></c8y-message>\n </c8y-messages>\n </c8y-form-group>\n <c8y-form-group>\n <label\n for=\"alt\"\n translate\n >\n Altitude (m)\n </label>\n\n <input\n class=\"form-control\"\n [title]=\"'Altitude (m)' | translate\"\n id=\"alt\"\n name=\"alt\"\n type=\"number\"\n [(ngModel)]=\"position.c8y_Position.alt\"\n />\n </c8y-form-group>\n </div>\n\n <form\n class=\"card-block bg-level-1\"\n #addressSearch=\"ngForm\"\n novalidate\n (submit)=\"searchAddress(addressSearchTerm)\"\n *ngIf=\"isEdit && !hideAddressSearchFeature\"\n >\n <div class=\"form-group\">\n <label\n for=\"searchAddress\"\n translate\n >\n Find lat/long by address\n </label>\n <div class=\"input-group input-group-search\">\n <input\n class=\"form-control\"\n id=\"searchAddress\"\n name=\"addressSearchTerm\"\n type=\"text\"\n [placeholder]=\"'e.g. Speditionstraße 13, Düsseldorf`LOCALIZE`' | translate\"\n [(ngModel)]=\"addressSearchTerm\"\n />\n <span class=\"input-group-btn\">\n <button\n class=\"btn btn-dot\"\n [title]=\"'Search' | translate\"\n type=\"submit\"\n >\n <i\n class=\"dlt-c8y-icon-search\"\n c8y-icon=\"search\"\n ></i>\n </button>\n </span>\n </div>\n </div>\n </form>\n </div>\n <div class=\"card-footer separator\">\n <button\n class=\"btn btn-default\"\n [title]=\"'Edit location' | translate\"\n type=\"button\"\n *ngIf=\"canEdit && !isEdit\"\n (click)=\"edit()\"\n translate\n >\n Edit location\n </button>\n <button\n class=\"btn btn-default\"\n [title]=\"'Cancel' | translate\"\n type=\"button\"\n (click)=\"cancel()\"\n *ngIf=\"isEdit\"\n translate\n >\n Cancel\n </button>\n <button\n class=\"btn btn-primary\"\n [title]=\"'Save' | translate\"\n type=\"submit\"\n *ngIf=\"isEdit\"\n translate\n [disabled]=\"!positionForm.valid\"\n >\n Save\n </button>\n </div>\n </form>\n</div>\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { CoreModule, hookActionBar, hookRoute, hookTab, ViewContext } from '@c8y/ngx-components';\nimport { MapModule } from '@c8y/ngx-components/map';\nimport { AddLocationComponent } from './add-location.component';\nimport { AddLocationFactory } from './add-location.factory';\nimport { LocationTabFactory } from './location-tab.factory';\nimport { LocationComponent } from './location.component';\nimport { LocationConfiguration } from './location.model';\n\n@NgModule({\n imports: [MapModule, CoreModule, RouterModule, LocationComponent],\n exports: [LocationComponent],\n providers: [\n hookRoute({\n path: 'location',\n component: LocationComponent,\n context: ViewContext.Device,\n tabs: []\n }),\n hookRoute({\n path: 'location',\n component: LocationComponent,\n context: ViewContext.Group,\n tabs: []\n })\n ]\n})\nexport class LocationRouteModule {}\n\n@NgModule({\n imports: [LocationRouteModule],\n providers: [hookTab(LocationTabFactory)]\n})\nexport class LocationTabModule {}\n\n/**\n * @deprecated has been splitted into `LocationTabModule` and `AddLocationModule`.\n */\n@NgModule({\n imports: [LocationTabModule]\n})\nexport class LocationModule {\n /**\n *\n * @deprecated use the `LocationTabModule` and optionally `AddLocationModule` instead.\n */\n static config(\n config: LocationConfiguration = { addLocation: false }\n ): ModuleWithProviders<LocationModule> {\n return {\n ngModule: LocationModule,\n providers: config.addLocation ? [hookActionBar(AddLocationFactory)] : []\n };\n }\n}\n\n@NgModule({\n imports: [CoreModule, LocationRouteModule, AddLocationComponent],\n exports: [AddLocationComponent],\n providers: [hookActionBar(AddLocationFactory)]\n})\nexport class AddLocationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i1","i3","i4"],"mappings":";;;;;;;;;;;;;;;;MA4Ba,oBAAoB,CAAA;IAG/B,WAAA,CACU,gBAAkC,EAClC,mBAAwC,EAGxC,cAA4C,EAC5C,MAAc,EACd,YAA0B,EAC1B,KAAuB,EAAA;QAPvB,IAAA,CAAA,gBAAgB,GAAhB,gBAAgB;QAChB,IAAA,CAAA,mBAAmB,GAAnB,mBAAmB;QAGnB,IAAA,CAAA,cAAc,GAAd,cAAc;QACd,IAAA,CAAA,MAAM,GAAN,MAAM;QACN,IAAA,CAAA,YAAY,GAAZ,YAAY;QACZ,IAAA,CAAA,KAAK,GAAL,KAAK;IACZ;IAEH,QAAQ,GAAA;QACN,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,YAAY,CAAC;IAClD;IAEA,OAAO,GAAA;QACL,MAAM,UAAU,GAAG,IAAI,C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,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAFf,iBAAiB,CAAA,EAAA,CAAA,CAAA;;4FAEhB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,iBAAiB;AAC5B,iBAAA;;MAqBY,iBAAiB,CAAA;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAJlB,UAAU,EA9BT,mBAAmB,EA8Ba,oBAAoB,aACrD,oBAAoB,CAAA,EAAA,CAAA,CAAA;gHAGnB,iBAAiB,EAAA,SAAA,EAFjB,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,EAAA,OAAA,EAAA,CAFpC,UAAU,EAAE,mBAAmB,CAAA,EAAA,CAAA,CAAA;;4FAI9B,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,mBAAmB,EAAE,oBAAoB,CAAC;oBAChE,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAC/B,oBAAA,SAAS,EAAE,CAAC,aAAa,CAAC,kBAAkB,CAAC;AAC9C,iBAAA;;;AC7DD;;AAEG;;;;"}
1
+ {"version":3,"file":"c8y-ngx-components-location.mjs","sources":["../../location/add-location.component.ts","../../location/add-location.component.html","../../location/add-location.factory.ts","../../location/location-tab.factory.ts","../../location/location.component.ts","../../location/location.component.html","../../location/location.module.ts","../../location/c8y-ngx-components-location.ts"],"sourcesContent":["import {\n Component,\n Inject,\n OnInit,\n Optional,\n TemplateRef,\n ViewChild,\n ViewContainerRef\n} from '@angular/core';\nimport { IManagedObject, InventoryService } from '@c8y/client';\nimport {\n AlertService,\n ContextRouteService,\n IconDirective,\n C8yTranslateDirective,\n C8yTranslatePipe\n} from '@c8y/ngx-components';\nimport type { MapDefaultConfig } from '@c8y/options';\nimport { Router } from '@angular/router';\nimport { MAP_DEFAULT_CONFIG, defaultMapConfig } from '@c8y/ngx-components/map';\nimport { Observable, of } from 'rxjs';\nimport { first } from 'rxjs/operators';\n\n@Component({\n selector: 'c8y-add-location',\n templateUrl: './add-location.component.html',\n imports: [IconDirective, C8yTranslateDirective, C8yTranslatePipe]\n})\nexport class AddLocationComponent implements OnInit {\n @ViewChild('templateCopy', { read: TemplateRef, static: true }) templateCopy;\n\n constructor(\n private inventoryService: InventoryService,\n private contextRouteService: ContextRouteService,\n @Optional()\n @Inject(MAP_DEFAULT_CONFIG)\n private defaultConfig$: Observable<MapDefaultConfig>,\n private router: Router,\n private alertService: AlertService,\n private vcRef: ViewContainerRef\n ) {}\n\n ngOnInit() {\n this.vcRef.createEmbeddedView(this.templateCopy);\n }\n\n onClick(): void {\n const mapConfig$ = this.defaultConfig$ || of(defaultMapConfig);\n mapConfig$.pipe(first()).subscribe(async config => {\n const context = this.contextRouteService.activatedContextData;\n context.contextData.c8y_Position = {\n lat: config.center[0],\n lng: config.center[1]\n };\n try {\n await this.inventoryService.update(context.contextData as IManagedObject);\n } catch (ex) {\n this.alertService.addServerFailure(ex);\n }\n\n const route = this.contextRouteService.getContextRoute(context);\n this.contextRouteService.refreshContext();\n this.router.navigateByUrl(route + '/location');\n });\n }\n}\n","<ng-template #templateCopy>\n <button\n class=\"btn btn-link\"\n [title]=\"'Add location' | translate\"\n (click)=\"onClick()\"\n >\n <i c8yIcon=\"location-arrow\"></i>\n <span translate>Add location</span>\n </button>\n</ng-template>\n","import { Injectable } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport {\n ActionBarFactory,\n ActionBarItem,\n ContextRouteService,\n ViewContext\n} from '@c8y/ngx-components';\nimport { AddLocationComponent } from './add-location.component';\nimport { isUndefined } from 'lodash-es';\n\n@Injectable({ providedIn: 'root' })\nexport class AddLocationFactory implements ActionBarFactory {\n private action: ActionBarItem = {\n component: AddLocationComponent,\n placement: 'more'\n };\n\n constructor(private contextRouteService: ContextRouteService) {}\n\n get(activatedRoute?: ActivatedRoute): ActionBarItem {\n const routeData = this.contextRouteService.getContextData(activatedRoute);\n if (!routeData) {\n return;\n }\n if (\n routeData.context === ViewContext.Device &&\n isUndefined(routeData.contextData.c8y_Position)\n ) {\n return this.action;\n }\n }\n}\n","import { Injectable } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport { ContextRouteService, Tab, ViewContext, ExtensionFactory } from '@c8y/ngx-components';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LocationTabFactory implements ExtensionFactory<Tab> {\n constructor(private contextRouteService: ContextRouteService) {}\n\n get(activatedRoute: ActivatedRoute): Tab[] {\n const contextData = this.contextRouteService.getContextData(activatedRoute);\n const isDeviceOrGroupWithPosition =\n (contextData?.context === ViewContext.Device || contextData?.context === ViewContext.Group) &&\n contextData?.contextData.c8y_Position;\n if (isDeviceOrGroupWithPosition) {\n return [\n {\n label: gettext('Location'),\n icon: 'location-arrow',\n path: `${this.contextRouteService.getContextRoute(contextData)}/location`\n }\n ];\n }\n return [];\n }\n}\n","import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';\nimport { MapComponent, MapConfig, PositionManagedObject } from '@c8y/ngx-components/map';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport {\n AlertService,\n ContextRouteService,\n OptionsService,\n Permissions,\n ActionBarItemComponent,\n C8yTranslateDirective,\n IconDirective,\n FormGroupComponent,\n RequiredInputPlaceholderDirective,\n MinValidationDirective,\n MaxValidationDirective,\n MessagesComponent,\n MessageDirective,\n C8yTranslatePipe\n} from '@c8y/ngx-components';\nimport { ActivatedRoute } from '@angular/router';\nimport { InventoryService } from '@c8y/client';\nimport { isUndefined, cloneDeep } from 'lodash-es';\nimport { takeUntil } from 'rxjs/operators';\nimport { Subject } from 'rxjs';\nimport { NgClass, NgIf } from '@angular/common';\n\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'c8y-location',\n templateUrl: './location.component.html',\n imports: [\n ActionBarItemComponent,\n NgClass,\n C8yTranslateDirective,\n IconDirective,\n MapComponent,\n FormsModule,\n NgIf,\n FormGroupComponent,\n RequiredInputPlaceholderDirective,\n MinValidationDirective,\n MaxValidationDirective,\n MessagesComponent,\n MessageDirective,\n C8yTranslatePipe\n ]\n})\nexport class LocationComponent implements OnInit, OnDestroy {\n position: PositionManagedObject;\n originalPosition: PositionManagedObject;\n isEdit = false;\n canEdit = true;\n config: MapConfig = { realtime: false, follow: true, zoomLevel: 12 };\n addressSearchTerm = '';\n hideAddressSearchFeature = false;\n\n private destroy$ = new Subject<void>();\n private mapNominatimUrl = 'https://nominatim.openstreetmap.org/search?format=json&q={searchTerm}';\n\n @ViewChild(MapComponent)\n map: MapComponent;\n\n constructor(\n private contextRouteService: ContextRouteService,\n private activatedRoute: ActivatedRoute,\n private inventoryService: InventoryService,\n private permissions: Permissions,\n private optionsService: OptionsService,\n private alertService: AlertService\n ) {}\n\n ngOnInit(): void {\n this.activatedRoute.url.pipe(takeUntil(this.destroy$)).subscribe(() => {\n this.updateMap();\n });\n }\n\n async updateMap() {\n const { contextData } = this.contextRouteService.getContextData(this.activatedRoute);\n this.position = contextData as PositionManagedObject;\n this.canEdit = await this.permissions.canEdit(\n [Permissions.ROLE_INVENTORY_ADMIN, Permissions.ROLE_INVENTORY_CREATE],\n contextData\n );\n\n const hasCustomSetting = !isUndefined(this.optionsService.mapNominatimUrl);\n this.hideAddressSearchFeature = hasCustomSetting && !this.optionsService.mapNominatimUrl;\n\n if (hasCustomSetting) {\n this.mapNominatimUrl = this.optionsService.mapNominatimUrl;\n }\n\n this.map.refresh();\n }\n\n toggleRealtime() {\n this.config = { ...this.config, realtime: !this.config.realtime };\n }\n\n disableRealtime() {\n this.config = { ...this.config, realtime: false };\n }\n\n centerMap() {\n this.config = {\n ...this.config,\n center: [this.position.c8y_Position.lat, this.position.c8y_Position.lng]\n };\n }\n\n edit() {\n this.originalPosition = cloneDeep(this.position);\n this.enableMarkerDragging();\n this.disableRealtime();\n this.isEdit = true;\n }\n\n cancel() {\n this.position = this.originalPosition;\n this.isEdit = false;\n this.map.markers[0]?.dragging.disable();\n this.centerMap();\n }\n\n async save() {\n try {\n const { data } = await this.inventoryService.update({\n id: this.position.id,\n c8y_Position: this.position.c8y_Position\n });\n this.position = data as PositionManagedObject;\n } catch (ex) {\n this.alertService.addServerFailure(ex);\n }\n this.map.markers[0]?.dragging.disable();\n this.centerMap();\n this.isEdit = false;\n }\n\n positionChanged(position: PositionManagedObject) {\n this.position = position;\n }\n\n async searchAddress(searchTerm: string) {\n const fetchResponse = await fetch(this.mapNominatimUrl.replace('{searchTerm}', searchTerm));\n if (fetchResponse.status !== 200) {\n this.alertService.danger(gettext('Failed to search for address.'));\n return;\n }\n const data: Array<{ lat: string | number; lon: string | number; licence?: string }> =\n await fetchResponse.json();\n const latLng = data[0];\n if (!latLng) {\n this.alertService.warning(gettext('Address could not be found.'));\n return;\n }\n this.position.c8y_Position.lat = Number(latLng.lat);\n this.position.c8y_Position.lng = Number(latLng.lon);\n this.updateMarkerPosition();\n if (latLng.licence) {\n this.map.map.attributionControl.addAttribution(latLng.licence);\n }\n }\n\n updateMarkerPosition() {\n this.map.refreshMarkers();\n this.enableMarkerDragging();\n this.centerMap();\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n }\n\n private enableMarkerDragging() {\n const marker = this.map.markers[0];\n if (marker) {\n marker.dragging.enable();\n marker.on('dragend', () => {\n const latlng = marker.getLatLng();\n this.position.c8y_Position = {\n ...this.position.c8y_Position,\n lat: latlng.lat,\n lng: latlng.lng\n };\n this.centerMap();\n });\n }\n }\n}\n","<c8y-action-bar-item placement=\"right\">\n <button\n class=\"btn btn-link c8y-realtime\"\n title=\"{{ 'Toggle realtime' | translate }}\"\n type=\"button\"\n (click)=\"toggleRealtime()\"\n >\n <span\n class=\"c8y-pulse\"\n [ngClass]=\"{ active: config.realtime, inactive: !config.realtime }\"\n ></span>\n <span translate>Realtime</span>\n </button>\n</c8y-action-bar-item>\n<c8y-action-bar-item placement=\"right\">\n <button\n class=\"btn btn-clean\"\n title=\"{{ 'Center`verb`' | translate }}\"\n (click)=\"centerMap()\"\n >\n <i [c8yIcon]=\"'target1'\"></i>\n <span translate>Center`verb`</span>\n </button>\n</c8y-action-bar-item>\n\n<div class=\"card card--grid content-fullpage d-grid grid__col--8-4--md\">\n <div\n class=\"bg-white p-relative\"\n style=\"min-height: 30vh\"\n >\n <c8y-map\n [assets]=\"[position]\"\n [config]=\"config\"\n (onRealtimeUpdate)=\"positionChanged($event)\"\n ></c8y-map>\n </div>\n\n <form\n class=\"d-flex d-col bg-inherit content-fullpage bg-gray-white\"\n #positionForm=\"ngForm\"\n (ngSubmit)=\"save()\"\n >\n <div class=\"card-header large-padding separator sticky-top\">\n <span\n class=\"card-title\"\n translate\n >\n Device location\n </span>\n </div>\n <div class=\"inner-scroll\">\n <div\n class=\"m-16\"\n *ngIf=\"!isEdit\"\n >\n <div class=\"p-b-40\">\n <div\n class=\"text-bold\"\n translate\n >\n Latitude (°)\n </div>\n {{ position.c8y_Position.lat }}\n </div>\n <div class=\"p-b-40\">\n <div\n class=\"text-bold\"\n translate\n >\n Longitude (°)\n </div>\n {{ position.c8y_Position.lng }}\n </div>\n <div class=\"p-b-40\">\n <div\n class=\"text-bold\"\n translate\n >\n Altitude (m)\n </div>\n {{ position.c8y_Position.alt }}\n </div>\n </div>\n <div\n class=\"m-16\"\n *ngIf=\"isEdit\"\n >\n <c8y-form-group>\n <label\n for=\"lat\"\n translate\n >\n Latitude (°)\n </label>\n\n <input\n class=\"form-control\"\n [title]=\"'Latitude (°)' | translate\"\n id=\"lat\"\n name=\"lat\"\n type=\"number\"\n required\n min=\"-90\"\n max=\"90\"\n (blur)=\"positionForm.valid && updateMarkerPosition()\"\n [(ngModel)]=\"position.c8y_Position.lat\"\n />\n <c8y-messages>\n <c8y-message\n name=\"min\"\n [text]=\"'The minimum latitude value is -90°.' | translate\"\n ></c8y-message>\n <c8y-message\n name=\"max\"\n [text]=\"'The maximum latitude value is 90°.' | translate\"\n ></c8y-message>\n </c8y-messages>\n </c8y-form-group>\n <c8y-form-group>\n <label\n for=\"lat\"\n translate\n >\n Longitude (°)\n </label>\n\n <input\n class=\"form-control\"\n [title]=\"'Longitude (°)' | translate\"\n id=\"lng\"\n name=\"lng\"\n type=\"number\"\n required\n min=\"-180\"\n max=\"180\"\n (blur)=\"positionForm.valid && updateMarkerPosition()\"\n [(ngModel)]=\"position.c8y_Position.lng\"\n />\n <c8y-messages>\n <c8y-message\n name=\"min\"\n [text]=\"'The minimum longitude value is -180°.' | translate\"\n ></c8y-message>\n <c8y-message\n name=\"max\"\n [text]=\"'The maximum longitude value is 180°.' | translate\"\n ></c8y-message>\n </c8y-messages>\n </c8y-form-group>\n <c8y-form-group>\n <label\n for=\"alt\"\n translate\n >\n Altitude (m)\n </label>\n\n <input\n class=\"form-control\"\n [title]=\"'Altitude (m)' | translate\"\n id=\"alt\"\n name=\"alt\"\n type=\"number\"\n [(ngModel)]=\"position.c8y_Position.alt\"\n />\n </c8y-form-group>\n </div>\n\n <form\n class=\"card-block bg-level-1\"\n #addressSearch=\"ngForm\"\n novalidate\n (submit)=\"searchAddress(addressSearchTerm)\"\n *ngIf=\"isEdit && !hideAddressSearchFeature\"\n >\n <div class=\"form-group\">\n <label\n for=\"searchAddress\"\n translate\n >\n Find lat/long by address\n </label>\n <div class=\"input-group input-group-search\">\n <input\n class=\"form-control\"\n id=\"searchAddress\"\n name=\"addressSearchTerm\"\n type=\"text\"\n [placeholder]=\"'e.g. Speditionstraße 13, Düsseldorf`LOCALIZE`' | translate\"\n [(ngModel)]=\"addressSearchTerm\"\n />\n <span class=\"input-group-btn\">\n <button\n class=\"btn btn-dot\"\n [title]=\"'Search' | translate\"\n type=\"submit\"\n >\n <i\n class=\"dlt-c8y-icon-search\"\n c8y-icon=\"search\"\n ></i>\n </button>\n </span>\n </div>\n </div>\n </form>\n </div>\n <div class=\"card-footer separator\">\n <button\n class=\"btn btn-default\"\n [title]=\"'Edit location' | translate\"\n type=\"button\"\n *ngIf=\"canEdit && !isEdit\"\n (click)=\"edit()\"\n translate\n >\n Edit location\n </button>\n <button\n class=\"btn btn-default\"\n [title]=\"'Cancel' | translate\"\n type=\"button\"\n (click)=\"cancel()\"\n *ngIf=\"isEdit\"\n translate\n >\n Cancel\n </button>\n <button\n class=\"btn btn-primary\"\n [title]=\"'Save' | translate\"\n type=\"submit\"\n *ngIf=\"isEdit\"\n translate\n [disabled]=\"!positionForm.valid\"\n >\n Save\n </button>\n </div>\n </form>\n</div>\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { CoreModule, hookActionBar, hookRoute, hookTab, ViewContext } from '@c8y/ngx-components';\nimport { MapModule } from '@c8y/ngx-components/map';\nimport { AddLocationComponent } from './add-location.component';\nimport { AddLocationFactory } from './add-location.factory';\nimport { LocationTabFactory } from './location-tab.factory';\nimport { LocationComponent } from './location.component';\nimport { LocationConfiguration } from './location.model';\n\n@NgModule({\n imports: [MapModule, CoreModule, RouterModule, LocationComponent],\n exports: [LocationComponent],\n providers: [\n hookRoute({\n path: 'location',\n component: LocationComponent,\n context: ViewContext.Device,\n tabs: []\n }),\n hookRoute({\n path: 'location',\n component: LocationComponent,\n context: ViewContext.Group,\n tabs: []\n })\n ]\n})\nexport class LocationRouteModule {}\n\n@NgModule({\n imports: [LocationRouteModule],\n providers: [hookTab(LocationTabFactory)]\n})\nexport class LocationTabModule {}\n\n/**\n * @deprecated has been splitted into `LocationTabModule` and `AddLocationModule`.\n */\n@NgModule({\n imports: [LocationTabModule]\n})\nexport class LocationModule {\n /**\n *\n * @deprecated use the `LocationTabModule` and optionally `AddLocationModule` instead.\n */\n static config(\n config: LocationConfiguration = { addLocation: false }\n ): ModuleWithProviders<LocationModule> {\n return {\n ngModule: LocationModule,\n providers: config.addLocation ? [hookActionBar(AddLocationFactory)] : []\n };\n }\n}\n\n@NgModule({\n imports: [CoreModule, LocationRouteModule, AddLocationComponent],\n exports: [AddLocationComponent],\n providers: [hookActionBar(AddLocationFactory)]\n})\nexport class AddLocationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i1","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;MA4Ba,oBAAoB,CAAA;IAG/B,WAAA,CACU,gBAAkC,EAClC,mBAAwC,EAGxC,cAA4C,EAC5C,MAAc,EACd,YAA0B,EAC1B,KAAuB,EAAA;QAPvB,IAAA,CAAA,gBAAgB,GAAhB,gBAAgB;QAChB,IAAA,CAAA,mBAAmB,GAAnB,mBAAmB;QAGnB,IAAA,CAAA,cAAc,GAAd,cAAc;QACd,IAAA,CAAA,MAAM,GAAN,MAAM;QACN,IAAA,CAAA,YAAY,GAAZ,YAAY;QACZ,IAAA,CAAA,KAAK,GAAL,KAAK;IACZ;IAEH,QAAQ,GAAA;QACN,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,YAAY,CAAC;IAClD;IAEA,OAAO,GAAA;QACL,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,IAAI,EAAE,CAAC,gBAAgB,CAAC;AAC9D,QAAA,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,OAAM,MAAM,KAAG;AAChD,YAAA,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB,CAAC,oBAAoB;AAC7D,YAAA,OAAO,CAAC,WAAW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YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,iBAAiB;AAC5B,iBAAA;;MAqBY,iBAAiB,CAAA;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAJlB,UAAU,EA9BT,mBAAmB,EA8Ba,oBAAoB,aACrD,oBAAoB,CAAA,EAAA,CAAA,CAAA;gHAGnB,iBAAiB,EAAA,SAAA,EAFjB,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,EAAA,OAAA,EAAA,CAFpC,UAAU,EAAE,mBAAmB,CAAA,EAAA,CAAA,CAAA;;4FAI9B,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,mBAAmB,EAAE,oBAAoB,CAAC;oBAChE,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAC/B,oBAAA,SAAS,EAAE,CAAC,aAAa,CAAC,kBAAkB,CAAC;AAC9C,iBAAA;;;AC7DD;;AAEG;;;;"}
@@ -3,8 +3,9 @@ import { Injectable, Component, NgModule } from '@angular/core';
3
3
  import * as i1$1 from 'ngx-bootstrap/modal';
4
4
  import { CdkStep } from '@angular/cdk/stepper';
5
5
  import { FormGroup } from '@angular/forms';
6
+ import { gettext } from '@c8y/ngx-components/gettext';
6
7
  import * as i3 from '@c8y/ngx-components';
7
- import { gettext, ModalComponent, IconDirective, LoadingComponent, C8yStepper, C8yStepperButtons, OperationResultComponent, C8yTranslatePipe, CoreModule, CommonModule } from '@c8y/ngx-components';
8
+ import { ModalComponent, IconDirective, LoadingComponent, C8yStepper, C8yStepperButtons, OperationResultComponent, C8yTranslatePipe, CoreModule, CommonModule } from '@c8y/ngx-components';
8
9
  import * as i4 from '@ngx-formly/core';
9
10
  import { FormlyModule } from '@ngx-formly/core';
10
11
  import { uniq, cloneDeep } from 'lodash-es';
@@ -1 +1 @@
1
- {"version":3,"file":"c8y-ngx-components-loriot-device-registration.mjs","sources":["../../loriot-device-registration/loriot-device-registration.model.ts","../../loriot-device-registration/loriot-provider.service.ts","../../loriot-device-registration/loriot-device-registration.component.ts","../../loriot-device-registration/loriot-device-registration.component.html","../../loriot-device-registration/loriot-device-registration-button.component.ts","../../loriot-device-registration/loriot-device-registration-button.component.html","../../loriot-device-registration/loriot-device-registration.factory.ts","../../loriot-device-registration/loriot-device-registration.module.ts","../../loriot-device-registration/c8y-ngx-components-loriot-device-registration.ts"],"sourcesContent":["import { IManagedObject } from '@c8y/client';\n\nexport interface LoriotDevice {\n title: string;\n deveui: string;\n appeui: string;\n appkey: string;\n appid: string;\n deviceType: IManagedObject;\n error?: string;\n lnsConnectionName: string;\n}\n\nexport interface Application {\n deviceLimit: number;\n devices: number;\n hexId: string;\n name: string;\n outputs: Array<any>;\n}\n\nexport interface LoriotDeviceFormly extends LoriotDevice {\n connection: {\n name: string;\n description: string;\n baseUrl: string;\n username: string;\n password: string;\n };\n application: Application;\n}\n\nexport const PRODUCT_EXPERIENCE_LORIOT_REGISTRATION = {\n EVENT: 'deviceRegistration',\n COMPONENT: 'loriot-registration',\n RESULT: { SUCCESS: 'registrationSuccess', FAILURE: 'registrationFailure' }\n} as const;\n","import { Injectable } from '@angular/core';\nimport {\n FetchClient,\n IFetchOptions,\n IManagedObject,\n InventoryService,\n IResult,\n IResultList\n} from '@c8y/client';\nimport { TranslateService } from '@ngx-translate/core';\nimport { gettext, AppStateService } from '@c8y/ngx-components';\nimport { Application, LoriotDevice } from './loriot-device-registration.model';\n\nexport enum LoriotErrorName {\n NoDeviceProtocolsError = 'NoDeviceProtocolsError',\n NoConnectivitySettingsError = 'NoConnectivitySettingsError',\n ConnectivitySettingsError = 'ConnectivitySettingsError',\n RegistrationError = 'RegistrationError',\n DeviceProtocolsFetchError = 'DeviceProtocolsFetchError',\n ApplicationError = 'ApplicationError'\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LoriotProviderService {\n private readonly baseUrl: string = '/service/loriot/';\n private readonly registrationUrl: string = `${this.baseUrl}newDeviceRequest`;\n private readonly header: any = { 'Content-Type': 'application/json' };\n private readonly applicationsUrl: string = `${this.baseUrl}applications`;\n constructor(\n private client: FetchClient,\n private inventoryService: InventoryService,\n private translateService: TranslateService,\n private appState: AppStateService\n ) {}\n async getConnections() {\n const options: IFetchOptions = {\n method: 'GET',\n headers: this.header\n };\n const res = await this.client.fetch(`${this.baseUrl}lns-connection`, options);\n const data = await res.json();\n\n if (res.status === 200) {\n if (data.length === 0) {\n await this.throwNoConnectivitySettingsError();\n }\n } else {\n await this.throwConnectivitySettingsError(data);\n }\n return { res, data };\n }\n\n async createDevice(device: LoriotDevice): Promise<IResult<LoriotDevice>> {\n const options: IFetchOptions = {\n method: 'POST',\n headers: this.header,\n body: JSON.stringify(device)\n };\n const res = await this.client.fetch(this.registrationUrl, options);\n const data = await res.json();\n\n if (res.status !== 201) {\n this.throwRegistrationError(data);\n }\n return { res, data };\n }\n\n async getAvailableProtocols(\n filter: object = { withTotalPages: true }\n ): Promise<IResultList<IManagedObject>> {\n const query = {\n __filter: {\n __and: [\n { __has: 'c8y_IsDeviceType' },\n {\n type: { __in: ['c8y_LoraDeviceType', 'c8y_LpwanDeviceType'] }\n }\n ]\n },\n __orderby: [{ name: 1 }]\n };\n const deviceProtocolsList = await this.inventoryService.listQuery(query, filter);\n const { res, data } = deviceProtocolsList;\n if (res.status === 200) {\n if (data.length === 0) {\n this.throwNoDeviceProtocolsError();\n }\n } else {\n this.throwDeviceProtocolsFetchError();\n }\n\n return deviceProtocolsList;\n }\n\n async getApplications(connectionName: string): Promise<IResultList<Application>> {\n const options: IFetchOptions = {\n method: 'GET',\n headers: this.header,\n params: {\n loriotConnectionName: connectionName\n }\n };\n const res = await this.client.fetch(this.applicationsUrl, options);\n\n const data = await res.json();\n /* Every connection will have atleast 1 application,\n so having check for this enpoint returning empty result is not needed*/\n if (res.status !== 200) {\n this.throwApplicationError(data);\n }\n return { res, data };\n }\n\n private async throwNoConnectivitySettingsError() {\n const error = new Error();\n error.name = LoriotErrorName.NoConnectivitySettingsError;\n const hasAdminRight = await this.appState.isApplicationAvailable('administration');\n if (hasAdminRight) {\n error.message = this.translateService.instant(\n gettext(\n `Connectivity settings are not configured. Configure them in the Administration application under <a href=\"{{ link }}\">Settings</a>.`\n ),\n {\n link: '/apps/administration/index.html#/connectivitySettings/multiple_lns_connectors_loriot'\n }\n );\n } else {\n error.message = gettext(\n 'Connectivity settings are not configured. Contact the administrator.'\n );\n }\n\n throw error;\n }\n\n private throwConnectivitySettingsError(data: { message: string }) {\n const error = new Error();\n error.name = LoriotErrorName.ConnectivitySettingsError;\n error.message = data.message;\n throw error;\n }\n\n private throwRegistrationError(data: { message: string }) {\n const error = new Error();\n error.name = LoriotErrorName.RegistrationError;\n error.message = data.message;\n throw error;\n }\n\n private throwDeviceProtocolsFetchError() {\n const error = new Error();\n error.name = LoriotErrorName.DeviceProtocolsFetchError;\n error.message = gettext('Could not load device protocols.');\n throw error;\n }\n\n private throwNoDeviceProtocolsError() {\n const error = new Error();\n error.name = LoriotErrorName.NoDeviceProtocolsError;\n error.message = this.translateService.instant(\n gettext(\n `No device protocols configured. Create a LoRa device protocol in <a href=\"{{ link }}\">Device protocols</a>.`\n ),\n {\n link: '/apps/devicemanagement/#/deviceprotocols'\n }\n );\n throw error;\n }\n\n private throwApplicationError(data: { message: string }) {\n const error = new Error();\n error.name = LoriotErrorName.ApplicationError;\n error.message = data.message;\n throw error;\n }\n}\n","import { CdkStep } from '@angular/cdk/stepper';\nimport { Component } from '@angular/core';\nimport { AbstractControl, FormGroup } from '@angular/forms';\nimport {\n C8yStepper,\n GainsightService,\n gettext,\n ModalComponent,\n IconDirective,\n LoadingComponent,\n C8yStepperButtons,\n OperationResultComponent,\n C8yTranslatePipe\n} from '@c8y/ngx-components';\nimport { FormlyFieldConfig, FormlyModule } from '@ngx-formly/core';\nimport { cloneDeep, uniq } from 'lodash-es';\nimport { BsModalRef } from 'ngx-bootstrap/modal';\nimport { BehaviorSubject, defer, forkJoin, from, of, Subject, throwError } from 'rxjs';\nimport { catchError, map, mergeMap, shareReplay, switchMap, takeUntil } from 'rxjs/operators';\nimport {\n LoriotDevice,\n LoriotDeviceFormly,\n PRODUCT_EXPERIENCE_LORIOT_REGISTRATION\n} from './loriot-device-registration.model';\nimport { LoriotErrorName, LoriotProviderService } from './loriot-provider.service';\nimport { NgIf, NgFor, NgClass, AsyncPipe } from '@angular/common';\n\ntype LoriotState =\n | 'loadPending'\n | 'loadSuccess'\n | 'loadError'\n | 'registrationPending'\n | 'registrationSuccess'\n | 'registrationError';\n\n@Component({\n selector: 'c8y-loriot-registration',\n templateUrl: 'loriot-device-registration.component.html',\n imports: [\n ModalComponent,\n IconDirective,\n NgIf,\n LoadingComponent,\n C8yStepper,\n CdkStep,\n FormlyModule,\n C8yStepperButtons,\n OperationResultComponent,\n NgFor,\n NgClass,\n C8yTranslatePipe,\n AsyncPipe\n ]\n})\nexport class LoriotDeviceRegistrationComponent {\n stepper: C8yStepper;\n readonly PAGING: object = {\n withTotalPages: true,\n pageSize: 10\n };\n\n form = new FormGroup({});\n model: LoriotDeviceFormly = {} as any;\n protocols$ = this.getProtocols$();\n connections$ = this.getConnections$();\n unsubscribe$: Subject<void> = new Subject();\n\n load$ = this.connections$.pipe(\n catchError((error: Error) => of(error)),\n switchMap(connections => {\n if (\n connections instanceof Error &&\n connections.name === LoriotErrorName.NoConnectivitySettingsError\n ) {\n return of([connections]);\n }\n return forkJoin([\n of(connections),\n this.protocols$.pipe(catchError((error: Error) => of(error)))\n ]);\n }),\n map(results => {\n return results.filter(result => {\n return result instanceof Error;\n });\n }),\n switchMap(errors => {\n return errors.length === 0 ? of([]) : throwError(errors);\n })\n );\n\n fields: FormlyFieldConfig[] = [\n {\n key: 'title',\n type: 'string',\n templateOptions: {\n placeholder: gettext('LORIOT LoRa'),\n label: gettext('Title'),\n required: true\n }\n },\n {\n key: 'deveui',\n type: 'string',\n templateOptions: {\n placeholder: 'FEDCBA9876543210',\n label: gettext('Device EUI'),\n required: true,\n pattern: '^([A-F0-9]{16})$'\n },\n validation: {\n messages: {\n pattern: gettext('Must be a valid 16 digit uppercase hexadecimal number.')\n }\n }\n },\n {\n key: 'appeui',\n type: 'string',\n templateOptions: {\n placeholder: 'FEDCBA9876543210',\n label: gettext('Application EUI'),\n required: true,\n pattern: '^([a-fA-F0-9]{16})$'\n },\n validation: {\n messages: {\n pattern: gettext('Must be a valid 16 digit hexadecimal number.')\n }\n }\n },\n {\n key: 'appkey',\n type: 'string',\n templateOptions: {\n placeholder: 'FEDCBA9876543210FEDCBA9876543210',\n label: gettext('Application key'),\n required: true,\n pattern: '^([a-fA-F0-9]{32})$'\n },\n validation: {\n messages: {\n pattern: gettext('Must be a valid 32 digit hexadecimal number.')\n }\n }\n },\n {\n key: 'connection',\n type: 'typeahead',\n templateOptions: {\n label: gettext('Connection'),\n required: true,\n c8yForOptions: this.connections$,\n displayProperty: 'name',\n valueProperties: ['name']\n }\n },\n {\n key: 'application',\n type: 'typeahead',\n templateOptions: {\n label: gettext('Application name'),\n required: true,\n placeholder: gettext('LORIOT application'),\n displayProperty: 'name',\n valueProperties: ['hexId']\n },\n hooks: {\n onInit: field => {\n const connectionControl = field.form.get('connection');\n connectionControl.valueChanges\n .pipe(\n takeUntil(this.unsubscribe$),\n mergeMap(({ name }) => this.getApplications$(name))\n )\n .subscribe(\n apps => {\n field.templateOptions.c8yForOptions = of(apps);\n field.formControl.setValue(null);\n },\n error => {\n field.form.get('application').setErrors({ application: true });\n field.validators.application.message = error.message;\n }\n );\n }\n },\n validators: {\n application: {\n expression: (control: AbstractControl) => {\n return control.status === 'VALID';\n },\n message: () => ''\n }\n }\n },\n {\n key: 'deviceType',\n type: 'typeahead',\n templateOptions: {\n label: gettext('Device protocol'),\n required: true,\n c8yForOptions: this.protocols$,\n displayProperty: 'name',\n valueProperties: ['id', 'name']\n }\n }\n ];\n\n registrationStepLabels = {\n next: gettext('Register')\n };\n finalStepLabels = {\n back: gettext('Close')\n };\n\n state: LoriotState = 'loadPending';\n errors$ = new BehaviorSubject<Error[]>([]);\n errorMessages$ = this.errors$.pipe(\n map(errors => errors.map(error => error.message)),\n map(messages => uniq(messages))\n );\n constructor(\n public bsModalRef: BsModalRef,\n private loriotService: LoriotProviderService,\n private gainsightService: GainsightService\n ) {\n this.load$.subscribe(\n () => {\n this.state = 'loadSuccess';\n },\n errors => {\n this.state = 'loadError';\n this.errors$.next(errors);\n }\n );\n }\n\n async create(event: { stepper: C8yStepper; step: CdkStep }) {\n this.state = 'registrationPending';\n const loriotDevice = this.getLoriotDeviceToSend();\n try {\n await this.loriotService.createDevice(loriotDevice);\n this.state = 'registrationSuccess';\n this.gainsightService.triggerEvent(PRODUCT_EXPERIENCE_LORIOT_REGISTRATION.EVENT, {\n result: PRODUCT_EXPERIENCE_LORIOT_REGISTRATION.RESULT.SUCCESS,\n component: PRODUCT_EXPERIENCE_LORIOT_REGISTRATION.COMPONENT\n });\n } catch (error) {\n this.state = 'registrationError';\n this.gainsightService.triggerEvent(PRODUCT_EXPERIENCE_LORIOT_REGISTRATION.EVENT, {\n result: PRODUCT_EXPERIENCE_LORIOT_REGISTRATION.RESULT.FAILURE,\n component: PRODUCT_EXPERIENCE_LORIOT_REGISTRATION.COMPONENT\n });\n this.errors$.next([error]);\n }\n\n event.stepper.next();\n }\n\n getLoriotDeviceToSend() {\n const loriotDevice: LoriotDevice = cloneDeep(this.model);\n loriotDevice.lnsConnectionName = this.model.connection.name;\n delete (loriotDevice as any).connection;\n loriotDevice.appid = this.model.application.hexId;\n delete (loriotDevice as any).application;\n return loriotDevice;\n }\n\n getProtocols$() {\n return defer(() => from(this.loriotService.getAvailableProtocols())).pipe(shareReplay(1));\n }\n\n getConnections$() {\n return defer(() => from(this.loriotService.getConnections())).pipe(shareReplay(1));\n }\n\n getApplications$(name) {\n return defer(() => from(this.loriotService.getApplications(name))).pipe(shareReplay(1));\n }\n\n ngOnDestroy(): void {\n this.unsubscribe$.next();\n this.unsubscribe$.complete();\n }\n}\n","<c8y-modal\n [title]=\"'LORIOT registration' | translate\"\n [headerClasses]=\"'dialog-header'\"\n [customFooter]=\"true\"\n>\n <ng-container c8y-modal-title>\n <span [c8yIcon]=\"'c8y-device-connect'\"></span>\n </ng-container>\n <ng-container *ngIf=\"state === 'loadPending'; else registrationForm\">\n <div class=\"p-16 text-center\">\n <c8y-loading></c8y-loading>\n </div>\n </ng-container>\n\n <ng-template #registrationForm>\n <c8y-stepper\n [hideStepProgress]=\"true\"\n linear\n c8y-modal-body\n *ngIf=\"(errorMessages$ | async).length === 0; else errorMessagesPresent\"\n >\n <cdk-step [stepControl]=\"form\">\n <div class=\"p-b-16\">\n <p class=\"modal-subtitle sticky-top\">\n {{ 'Register a single LORIOT device' | translate }}\n </p>\n <formly-form\n class=\"d-block p-l-24 p-r-24 p-t-16\"\n [form]=\"form\"\n [fields]=\"fields\"\n [model]=\"model\"\n ></formly-form>\n </div>\n <c8y-stepper-buttons\n class=\"modal-footer d-block sticky-bottom separator-top bg-component\"\n [labels]=\"registrationStepLabels\"\n (onNext)=\"create($event)\"\n (onCancel)=\"bsModalRef.hide()\"\n [showButtons]=\"{ cancel: true, next: true }\"\n [pending]=\"state === 'registrationPending'\"\n [disabled]=\"!form.valid\"\n ></c8y-stepper-buttons>\n </cdk-step>\n <cdk-step state=\"final\">\n <div\n class=\"p-16 text-center\"\n *ngIf=\"state === 'registrationPending'\"\n >\n <c8y-loading></c8y-loading>\n </div>\n <div class=\"m-24\">\n <c8y-operation-result\n class=\"lead m-b-0\"\n type=\"success\"\n *ngIf=\"state === 'registrationSuccess'\"\n text=\"{{ 'Device registered' | translate }}\"\n [size]=\"84\"\n [vertical]=\"true\"\n ></c8y-operation-result>\n </div>\n\n <c8y-stepper-buttons\n class=\"sticky-bottom d-block p-t-16 p-b-16 separator-top bg-component\"\n (onCustom)=\"bsModalRef.hide()\"\n [showButtons]=\"{ custom: true }\"\n [labels]=\"finalStepLabels\"\n ></c8y-stepper-buttons>\n </cdk-step>\n </c8y-stepper>\n </ng-template>\n\n <ng-template #errorMessagesPresent>\n <div class=\"m-24\">\n <c8y-operation-result\n class=\"lead\"\n type=\"error\"\n *ngIf=\"state === 'registrationError'\"\n text=\"{{ 'Failed to register' | translate }}\"\n [size]=\"84\"\n [vertical]=\"true\"\n ></c8y-operation-result>\n <div\n class=\"m-b-8\"\n *ngFor=\"let msg of errorMessages$ | async\"\n data-cy=\"loriot-device-registration.component--registration-error\"\n [ngClass]=\"{\n 'text-center': state === 'registrationError',\n 'alert alert-danger': state === 'loadError'\n }\"\n >\n <span [innerHTML]=\"msg | translate\"></span>\n </div>\n </div>\n\n <div class=\"modal-footer\">\n <button\n class=\"btn btn-default\"\n title=\"{{ 'Close' | translate }}\"\n type=\"button\"\n (click)=\"bsModalRef.hide()\"\n >\n {{ 'Close' | translate }}\n </button>\n </div>\n </ng-template>\n</c8y-modal>\n","import { Component } from '@angular/core';\nimport { BsModalService } from 'ngx-bootstrap/modal';\nimport { LoriotDeviceRegistrationComponent } from './loriot-device-registration.component';\nimport { IconDirective, C8yTranslatePipe } from '@c8y/ngx-components';\n\n@Component({\n selector: 'c8y-loriot-registration',\n templateUrl: 'loriot-device-registration-button.component.html',\n imports: [IconDirective, C8yTranslatePipe]\n})\nexport class LoriotDeviceRegistrationButtonComponent {\n constructor(private modalService: BsModalService) {}\n\n open() {\n this.modalService.show(LoriotDeviceRegistrationComponent, {\n class: 'modal-sm',\n ariaDescribedby: 'modal-body',\n ariaLabelledBy: 'modal-title',\n ignoreBackdropClick: true\n });\n }\n}\n","<button (click)=\"open()\"><i c8yIcon=\"c8y-device-connect\"></i> {{ 'LORIOT LoRa' | translate }} </button>","import { Injectable } from '@angular/core';\nimport { TenantUiService } from '@c8y/ngx-components';\nimport { LoriotDeviceRegistrationButtonComponent } from './loriot-device-registration-button.component';\nimport { RegisterDeviceFactory, RegisterDeviceItem } from '@c8y/ngx-components/register-device';\n@Injectable({\n providedIn: 'root'\n})\nexport class LoriotDeviceRegistrationFactory implements RegisterDeviceFactory {\n constructor(private tenantService: TenantUiService) {}\n\n get() {\n const items: RegisterDeviceItem[] = [];\n if (this.tenantService.isMicroserviceSubscribedInCurrentTenant('loriot')) {\n items.push({\n template: LoriotDeviceRegistrationButtonComponent,\n priority: 97,\n category: 'single'\n } as RegisterDeviceItem);\n }\n return items;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule, CoreModule } from '@c8y/ngx-components';\nimport { hookDeviceRegistration } from '@c8y/ngx-components/register-device';\nimport { LoriotDeviceRegistrationButtonComponent } from './loriot-device-registration-button.component';\nimport { LoriotDeviceRegistrationComponent } from './loriot-device-registration.component';\nimport { LoriotDeviceRegistrationFactory } from './loriot-device-registration.factory';\nimport { LoriotProviderService } from './loriot-provider.service';\n\n@NgModule({\n imports: [\n CoreModule,\n CommonModule,\n LoriotDeviceRegistrationButtonComponent,\n LoriotDeviceRegistrationComponent\n ],\n providers: [hookDeviceRegistration(LoriotDeviceRegistrationFactory), LoriotProviderService]\n})\nexport class LoriotDeviceRegistrationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2.LoriotProviderService"],"mappings":";;;;;;;;;;;;;;;;;AAgCO,MAAM,sCAAsC,GAAG;AACpD,IAAA,KAAK,EAAE,oBAAoB;AAC3B,IAAA,SAAS,EAAE,qBAAqB;IAChC,MAAM,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,qBAAqB;CAChE;;ACvBV,IAAY,eAOX;AAPD,CAAA,UAAY,eAAe,EAAA;AACzB,IA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;AACR,oBAAA,OAAO,EAAE;wBACP,UAAU;wBACV,YAAY;wBACZ,uCAAuC;wBACvC;AACD,qBAAA;oBACD,SAAS,EAAE,CAAC,sBAAsB,CAAC,+BAA+B,CAAC,EAAE,qBAAqB;AAC3F,iBAAA;;;AChBD;;AAEG;;;;"}
1
+ {"version":3,"file":"c8y-ngx-components-loriot-device-registration.mjs","sources":["../../loriot-device-registration/loriot-device-registration.model.ts","../../loriot-device-registration/loriot-provider.service.ts","../../loriot-device-registration/loriot-device-registration.component.ts","../../loriot-device-registration/loriot-device-registration.component.html","../../loriot-device-registration/loriot-device-registration-button.component.ts","../../loriot-device-registration/loriot-device-registration-button.component.html","../../loriot-device-registration/loriot-device-registration.factory.ts","../../loriot-device-registration/loriot-device-registration.module.ts","../../loriot-device-registration/c8y-ngx-components-loriot-device-registration.ts"],"sourcesContent":["import { IManagedObject } from '@c8y/client';\n\nexport interface LoriotDevice {\n title: string;\n deveui: string;\n appeui: string;\n appkey: string;\n appid: string;\n deviceType: IManagedObject;\n error?: string;\n lnsConnectionName: string;\n}\n\nexport interface Application {\n deviceLimit: number;\n devices: number;\n hexId: string;\n name: string;\n outputs: Array<any>;\n}\n\nexport interface LoriotDeviceFormly extends LoriotDevice {\n connection: {\n name: string;\n description: string;\n baseUrl: string;\n username: string;\n password: string;\n };\n application: Application;\n}\n\nexport const PRODUCT_EXPERIENCE_LORIOT_REGISTRATION = {\n EVENT: 'deviceRegistration',\n COMPONENT: 'loriot-registration',\n RESULT: { SUCCESS: 'registrationSuccess', FAILURE: 'registrationFailure' }\n} as const;\n","import { Injectable } from '@angular/core';\nimport {\n FetchClient,\n IFetchOptions,\n IManagedObject,\n InventoryService,\n IResult,\n IResultList\n} from '@c8y/client';\nimport { TranslateService } from '@ngx-translate/core';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport { AppStateService } from '@c8y/ngx-components';\nimport { Application, LoriotDevice } from './loriot-device-registration.model';\n\nexport enum LoriotErrorName {\n NoDeviceProtocolsError = 'NoDeviceProtocolsError',\n NoConnectivitySettingsError = 'NoConnectivitySettingsError',\n ConnectivitySettingsError = 'ConnectivitySettingsError',\n RegistrationError = 'RegistrationError',\n DeviceProtocolsFetchError = 'DeviceProtocolsFetchError',\n ApplicationError = 'ApplicationError'\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LoriotProviderService {\n private readonly baseUrl: string = '/service/loriot/';\n private readonly registrationUrl: string = `${this.baseUrl}newDeviceRequest`;\n private readonly header: any = { 'Content-Type': 'application/json' };\n private readonly applicationsUrl: string = `${this.baseUrl}applications`;\n constructor(\n private client: FetchClient,\n private inventoryService: InventoryService,\n private translateService: TranslateService,\n private appState: AppStateService\n ) {}\n async getConnections() {\n const options: IFetchOptions = {\n method: 'GET',\n headers: this.header\n };\n const res = await this.client.fetch(`${this.baseUrl}lns-connection`, options);\n const data = await res.json();\n\n if (res.status === 200) {\n if (data.length === 0) {\n await this.throwNoConnectivitySettingsError();\n }\n } else {\n await this.throwConnectivitySettingsError(data);\n }\n return { res, data };\n }\n\n async createDevice(device: LoriotDevice): Promise<IResult<LoriotDevice>> {\n const options: IFetchOptions = {\n method: 'POST',\n headers: this.header,\n body: JSON.stringify(device)\n };\n const res = await this.client.fetch(this.registrationUrl, options);\n const data = await res.json();\n\n if (res.status !== 201) {\n this.throwRegistrationError(data);\n }\n return { res, data };\n }\n\n async getAvailableProtocols(\n filter: object = { withTotalPages: true }\n ): Promise<IResultList<IManagedObject>> {\n const query = {\n __filter: {\n __and: [\n { __has: 'c8y_IsDeviceType' },\n {\n type: { __in: ['c8y_LoraDeviceType', 'c8y_LpwanDeviceType'] }\n }\n ]\n },\n __orderby: [{ name: 1 }]\n };\n const deviceProtocolsList = await this.inventoryService.listQuery(query, filter);\n const { res, data } = deviceProtocolsList;\n if (res.status === 200) {\n if (data.length === 0) {\n this.throwNoDeviceProtocolsError();\n }\n } else {\n this.throwDeviceProtocolsFetchError();\n }\n\n return deviceProtocolsList;\n }\n\n async getApplications(connectionName: string): Promise<IResultList<Application>> {\n const options: IFetchOptions = {\n method: 'GET',\n headers: this.header,\n params: {\n loriotConnectionName: connectionName\n }\n };\n const res = await this.client.fetch(this.applicationsUrl, options);\n\n const data = await res.json();\n /* Every connection will have atleast 1 application,\n so having check for this enpoint returning empty result is not needed*/\n if (res.status !== 200) {\n this.throwApplicationError(data);\n }\n return { res, data };\n }\n\n private async throwNoConnectivitySettingsError() {\n const error = new Error();\n error.name = LoriotErrorName.NoConnectivitySettingsError;\n const hasAdminRight = await this.appState.isApplicationAvailable('administration');\n if (hasAdminRight) {\n error.message = this.translateService.instant(\n gettext(\n `Connectivity settings are not configured. Configure them in the Administration application under <a href=\"{{ link }}\">Settings</a>.`\n ),\n {\n link: '/apps/administration/index.html#/connectivitySettings/multiple_lns_connectors_loriot'\n }\n );\n } else {\n error.message = gettext(\n 'Connectivity settings are not configured. Contact the administrator.'\n );\n }\n\n throw error;\n }\n\n private throwConnectivitySettingsError(data: { message: string }) {\n const error = new Error();\n error.name = LoriotErrorName.ConnectivitySettingsError;\n error.message = data.message;\n throw error;\n }\n\n private throwRegistrationError(data: { message: string }) {\n const error = new Error();\n error.name = LoriotErrorName.RegistrationError;\n error.message = data.message;\n throw error;\n }\n\n private throwDeviceProtocolsFetchError() {\n const error = new Error();\n error.name = LoriotErrorName.DeviceProtocolsFetchError;\n error.message = gettext('Could not load device protocols.');\n throw error;\n }\n\n private throwNoDeviceProtocolsError() {\n const error = new Error();\n error.name = LoriotErrorName.NoDeviceProtocolsError;\n error.message = this.translateService.instant(\n gettext(\n `No device protocols configured. Create a LoRa device protocol in <a href=\"{{ link }}\">Device protocols</a>.`\n ),\n {\n link: '/apps/devicemanagement/#/deviceprotocols'\n }\n );\n throw error;\n }\n\n private throwApplicationError(data: { message: string }) {\n const error = new Error();\n error.name = LoriotErrorName.ApplicationError;\n error.message = data.message;\n throw error;\n }\n}\n","import { CdkStep } from '@angular/cdk/stepper';\nimport { Component } from '@angular/core';\nimport { AbstractControl, FormGroup } from '@angular/forms';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport {\n C8yStepper,\n GainsightService,\n ModalComponent,\n IconDirective,\n LoadingComponent,\n C8yStepperButtons,\n OperationResultComponent,\n C8yTranslatePipe\n} from '@c8y/ngx-components';\nimport { FormlyFieldConfig, FormlyModule } from '@ngx-formly/core';\nimport { cloneDeep, uniq } from 'lodash-es';\nimport { BsModalRef } from 'ngx-bootstrap/modal';\nimport { BehaviorSubject, defer, forkJoin, from, of, Subject, throwError } from 'rxjs';\nimport { catchError, map, mergeMap, shareReplay, switchMap, takeUntil } from 'rxjs/operators';\nimport {\n LoriotDevice,\n LoriotDeviceFormly,\n PRODUCT_EXPERIENCE_LORIOT_REGISTRATION\n} from './loriot-device-registration.model';\nimport { LoriotErrorName, LoriotProviderService } from './loriot-provider.service';\nimport { NgIf, NgFor, NgClass, AsyncPipe } from '@angular/common';\n\ntype LoriotState =\n | 'loadPending'\n | 'loadSuccess'\n | 'loadError'\n | 'registrationPending'\n | 'registrationSuccess'\n | 'registrationError';\n\n@Component({\n selector: 'c8y-loriot-registration',\n templateUrl: 'loriot-device-registration.component.html',\n imports: [\n ModalComponent,\n IconDirective,\n NgIf,\n LoadingComponent,\n C8yStepper,\n CdkStep,\n FormlyModule,\n C8yStepperButtons,\n OperationResultComponent,\n NgFor,\n NgClass,\n C8yTranslatePipe,\n AsyncPipe\n ]\n})\nexport class LoriotDeviceRegistrationComponent {\n stepper: C8yStepper;\n readonly PAGING: object = {\n withTotalPages: true,\n pageSize: 10\n };\n\n form = new FormGroup({});\n model: LoriotDeviceFormly = {} as any;\n protocols$ = this.getProtocols$();\n connections$ = this.getConnections$();\n unsubscribe$: Subject<void> = new Subject();\n\n load$ = this.connections$.pipe(\n catchError((error: Error) => of(error)),\n switchMap(connections => {\n if (\n connections instanceof Error &&\n connections.name === LoriotErrorName.NoConnectivitySettingsError\n ) {\n return of([connections]);\n }\n return forkJoin([\n of(connections),\n this.protocols$.pipe(catchError((error: Error) => of(error)))\n ]);\n }),\n map(results => {\n return results.filter(result => {\n return result instanceof Error;\n });\n }),\n switchMap(errors => {\n return errors.length === 0 ? of([]) : throwError(errors);\n })\n );\n\n fields: FormlyFieldConfig[] = [\n {\n key: 'title',\n type: 'string',\n templateOptions: {\n placeholder: gettext('LORIOT LoRa'),\n label: gettext('Title'),\n required: true\n }\n },\n {\n key: 'deveui',\n type: 'string',\n templateOptions: {\n placeholder: 'FEDCBA9876543210',\n label: gettext('Device EUI'),\n required: true,\n pattern: '^([A-F0-9]{16})$'\n },\n validation: {\n messages: {\n pattern: gettext('Must be a valid 16 digit uppercase hexadecimal number.')\n }\n }\n },\n {\n key: 'appeui',\n type: 'string',\n templateOptions: {\n placeholder: 'FEDCBA9876543210',\n label: gettext('Application EUI'),\n required: true,\n pattern: '^([a-fA-F0-9]{16})$'\n },\n validation: {\n messages: {\n pattern: gettext('Must be a valid 16 digit hexadecimal number.')\n }\n }\n },\n {\n key: 'appkey',\n type: 'string',\n templateOptions: {\n placeholder: 'FEDCBA9876543210FEDCBA9876543210',\n label: gettext('Application key'),\n required: true,\n pattern: '^([a-fA-F0-9]{32})$'\n },\n validation: {\n messages: {\n pattern: gettext('Must be a valid 32 digit hexadecimal number.')\n }\n }\n },\n {\n key: 'connection',\n type: 'typeahead',\n templateOptions: {\n label: gettext('Connection'),\n required: true,\n c8yForOptions: this.connections$,\n displayProperty: 'name',\n valueProperties: ['name']\n }\n },\n {\n key: 'application',\n type: 'typeahead',\n templateOptions: {\n label: gettext('Application name'),\n required: true,\n placeholder: gettext('LORIOT application'),\n displayProperty: 'name',\n valueProperties: ['hexId']\n },\n hooks: {\n onInit: field => {\n const connectionControl = field.form.get('connection');\n connectionControl.valueChanges\n .pipe(\n takeUntil(this.unsubscribe$),\n mergeMap(({ name }) => this.getApplications$(name))\n )\n .subscribe(\n apps => {\n field.templateOptions.c8yForOptions = of(apps);\n field.formControl.setValue(null);\n },\n error => {\n field.form.get('application').setErrors({ application: true });\n field.validators.application.message = error.message;\n }\n );\n }\n },\n validators: {\n application: {\n expression: (control: AbstractControl) => {\n return control.status === 'VALID';\n },\n message: () => ''\n }\n }\n },\n {\n key: 'deviceType',\n type: 'typeahead',\n templateOptions: {\n label: gettext('Device protocol'),\n required: true,\n c8yForOptions: this.protocols$,\n displayProperty: 'name',\n valueProperties: ['id', 'name']\n }\n }\n ];\n\n registrationStepLabels = {\n next: gettext('Register')\n };\n finalStepLabels = {\n back: gettext('Close')\n };\n\n state: LoriotState = 'loadPending';\n errors$ = new BehaviorSubject<Error[]>([]);\n errorMessages$ = this.errors$.pipe(\n map(errors => errors.map(error => error.message)),\n map(messages => uniq(messages))\n );\n constructor(\n public bsModalRef: BsModalRef,\n private loriotService: LoriotProviderService,\n private gainsightService: GainsightService\n ) {\n this.load$.subscribe(\n () => {\n this.state = 'loadSuccess';\n },\n errors => {\n this.state = 'loadError';\n this.errors$.next(errors);\n }\n );\n }\n\n async create(event: { stepper: C8yStepper; step: CdkStep }) {\n this.state = 'registrationPending';\n const loriotDevice = this.getLoriotDeviceToSend();\n try {\n await this.loriotService.createDevice(loriotDevice);\n this.state = 'registrationSuccess';\n this.gainsightService.triggerEvent(PRODUCT_EXPERIENCE_LORIOT_REGISTRATION.EVENT, {\n result: PRODUCT_EXPERIENCE_LORIOT_REGISTRATION.RESULT.SUCCESS,\n component: PRODUCT_EXPERIENCE_LORIOT_REGISTRATION.COMPONENT\n });\n } catch (error) {\n this.state = 'registrationError';\n this.gainsightService.triggerEvent(PRODUCT_EXPERIENCE_LORIOT_REGISTRATION.EVENT, {\n result: PRODUCT_EXPERIENCE_LORIOT_REGISTRATION.RESULT.FAILURE,\n component: PRODUCT_EXPERIENCE_LORIOT_REGISTRATION.COMPONENT\n });\n this.errors$.next([error]);\n }\n\n event.stepper.next();\n }\n\n getLoriotDeviceToSend() {\n const loriotDevice: LoriotDevice = cloneDeep(this.model);\n loriotDevice.lnsConnectionName = this.model.connection.name;\n delete (loriotDevice as any).connection;\n loriotDevice.appid = this.model.application.hexId;\n delete (loriotDevice as any).application;\n return loriotDevice;\n }\n\n getProtocols$() {\n return defer(() => from(this.loriotService.getAvailableProtocols())).pipe(shareReplay(1));\n }\n\n getConnections$() {\n return defer(() => from(this.loriotService.getConnections())).pipe(shareReplay(1));\n }\n\n getApplications$(name) {\n return defer(() => from(this.loriotService.getApplications(name))).pipe(shareReplay(1));\n }\n\n ngOnDestroy(): void {\n this.unsubscribe$.next();\n this.unsubscribe$.complete();\n }\n}\n","<c8y-modal\n [title]=\"'LORIOT registration' | translate\"\n [headerClasses]=\"'dialog-header'\"\n [customFooter]=\"true\"\n>\n <ng-container c8y-modal-title>\n <span [c8yIcon]=\"'c8y-device-connect'\"></span>\n </ng-container>\n <ng-container *ngIf=\"state === 'loadPending'; else registrationForm\">\n <div class=\"p-16 text-center\">\n <c8y-loading></c8y-loading>\n </div>\n </ng-container>\n\n <ng-template #registrationForm>\n <c8y-stepper\n [hideStepProgress]=\"true\"\n linear\n c8y-modal-body\n *ngIf=\"(errorMessages$ | async).length === 0; else errorMessagesPresent\"\n >\n <cdk-step [stepControl]=\"form\">\n <div class=\"p-b-16\">\n <p class=\"modal-subtitle sticky-top\">\n {{ 'Register a single LORIOT device' | translate }}\n </p>\n <formly-form\n class=\"d-block p-l-24 p-r-24 p-t-16\"\n [form]=\"form\"\n [fields]=\"fields\"\n [model]=\"model\"\n ></formly-form>\n </div>\n <c8y-stepper-buttons\n class=\"modal-footer d-block sticky-bottom separator-top bg-component\"\n [labels]=\"registrationStepLabels\"\n (onNext)=\"create($event)\"\n (onCancel)=\"bsModalRef.hide()\"\n [showButtons]=\"{ cancel: true, next: true }\"\n [pending]=\"state === 'registrationPending'\"\n [disabled]=\"!form.valid\"\n ></c8y-stepper-buttons>\n </cdk-step>\n <cdk-step state=\"final\">\n <div\n class=\"p-16 text-center\"\n *ngIf=\"state === 'registrationPending'\"\n >\n <c8y-loading></c8y-loading>\n </div>\n <div class=\"m-24\">\n <c8y-operation-result\n class=\"lead m-b-0\"\n type=\"success\"\n *ngIf=\"state === 'registrationSuccess'\"\n text=\"{{ 'Device registered' | translate }}\"\n [size]=\"84\"\n [vertical]=\"true\"\n ></c8y-operation-result>\n </div>\n\n <c8y-stepper-buttons\n class=\"sticky-bottom d-block p-t-16 p-b-16 separator-top bg-component\"\n (onCustom)=\"bsModalRef.hide()\"\n [showButtons]=\"{ custom: true }\"\n [labels]=\"finalStepLabels\"\n ></c8y-stepper-buttons>\n </cdk-step>\n </c8y-stepper>\n </ng-template>\n\n <ng-template #errorMessagesPresent>\n <div class=\"m-24\">\n <c8y-operation-result\n class=\"lead\"\n type=\"error\"\n *ngIf=\"state === 'registrationError'\"\n text=\"{{ 'Failed to register' | translate }}\"\n [size]=\"84\"\n [vertical]=\"true\"\n ></c8y-operation-result>\n <div\n class=\"m-b-8\"\n *ngFor=\"let msg of errorMessages$ | async\"\n data-cy=\"loriot-device-registration.component--registration-error\"\n [ngClass]=\"{\n 'text-center': state === 'registrationError',\n 'alert alert-danger': state === 'loadError'\n }\"\n >\n <span [innerHTML]=\"msg | translate\"></span>\n </div>\n </div>\n\n <div class=\"modal-footer\">\n <button\n class=\"btn btn-default\"\n title=\"{{ 'Close' | translate }}\"\n type=\"button\"\n (click)=\"bsModalRef.hide()\"\n >\n {{ 'Close' | translate }}\n </button>\n </div>\n </ng-template>\n</c8y-modal>\n","import { Component } from '@angular/core';\nimport { BsModalService } from 'ngx-bootstrap/modal';\nimport { LoriotDeviceRegistrationComponent } from './loriot-device-registration.component';\nimport { IconDirective, C8yTranslatePipe } from '@c8y/ngx-components';\n\n@Component({\n selector: 'c8y-loriot-registration',\n templateUrl: 'loriot-device-registration-button.component.html',\n imports: [IconDirective, C8yTranslatePipe]\n})\nexport class LoriotDeviceRegistrationButtonComponent {\n constructor(private modalService: BsModalService) {}\n\n open() {\n this.modalService.show(LoriotDeviceRegistrationComponent, {\n class: 'modal-sm',\n ariaDescribedby: 'modal-body',\n ariaLabelledBy: 'modal-title',\n ignoreBackdropClick: true\n });\n }\n}\n","<button (click)=\"open()\"><i c8yIcon=\"c8y-device-connect\"></i> {{ 'LORIOT LoRa' | translate }} </button>","import { Injectable } from '@angular/core';\nimport { TenantUiService } from '@c8y/ngx-components';\nimport { LoriotDeviceRegistrationButtonComponent } from './loriot-device-registration-button.component';\nimport { RegisterDeviceFactory, RegisterDeviceItem } from '@c8y/ngx-components/register-device';\n@Injectable({\n providedIn: 'root'\n})\nexport class LoriotDeviceRegistrationFactory implements RegisterDeviceFactory {\n constructor(private tenantService: TenantUiService) {}\n\n get() {\n const items: RegisterDeviceItem[] = [];\n if (this.tenantService.isMicroserviceSubscribedInCurrentTenant('loriot')) {\n items.push({\n template: LoriotDeviceRegistrationButtonComponent,\n priority: 97,\n category: 'single'\n } as RegisterDeviceItem);\n }\n return items;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule, CoreModule } from '@c8y/ngx-components';\nimport { hookDeviceRegistration } from '@c8y/ngx-components/register-device';\nimport { LoriotDeviceRegistrationButtonComponent } from './loriot-device-registration-button.component';\nimport { LoriotDeviceRegistrationComponent } from './loriot-device-registration.component';\nimport { LoriotDeviceRegistrationFactory } from './loriot-device-registration.factory';\nimport { LoriotProviderService } from './loriot-provider.service';\n\n@NgModule({\n imports: [\n CoreModule,\n CommonModule,\n LoriotDeviceRegistrationButtonComponent,\n LoriotDeviceRegistrationComponent\n ],\n providers: [hookDeviceRegistration(LoriotDeviceRegistrationFactory), LoriotProviderService]\n})\nexport class LoriotDeviceRegistrationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2.LoriotProviderService"],"mappings":";;;;;;;;;;;;;;;;;;AAgCO,MAAM,sCAAsC,GAAG;AACpD,IAAA,KAAK,EAAE,oBAAoB;AAC3B,IAAA,SAAS,EAAE,qBAAqB;IAChC,MAAM,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,qBAAqB;CAChE;;ACtBV,IAAY,eA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AT1C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,UAAU;wBACV,YAAY;wBACZ,uCAAuC;wBACvC;AACD,qBAAA;oBACD,SAAS,EAAE,CAAC,sBAAsB,CAAC,+BAA+B,CAAC,EAAE,qBAAqB;AAC3F,iBAAA;;;AChBD;;AAEG;;;;"}
@@ -1,11 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, Injectable, Directive, EventEmitter, Output, Input, ContentChild, ViewChild, Inject, Component, SimpleChange, NgModule } from '@angular/core';
3
3
  import * as i1$1 from '@c8y/ngx-components';
4
- import { gettext, sortByPriority, ManagedObjectRealtimeService, globalAutoRefreshLoading, CountdownIntervalComponent, IconDirective, C8yTranslatePipe, CommonModule as CommonModule$1, FormsModule as FormsModule$1, RealtimeModule, CoreModule } from '@c8y/ngx-components';
4
+ import { sortByPriority, ManagedObjectRealtimeService, globalAutoRefreshLoading, CountdownIntervalComponent, IconDirective, C8yTranslatePipe, CommonModule as CommonModule$1, FormsModule as FormsModule$1, RealtimeModule, CoreModule } from '@c8y/ngx-components';
5
5
  import * as i3 from '@ngx-translate/core';
6
6
  import * as i4 from 'rxjs';
7
7
  import { of, combineLatest, defer, firstValueFrom, NEVER, BehaviorSubject, Subject, fromEvent, EMPTY, merge, from } from 'rxjs';
8
8
  import { map, first, takeUntil, scan, filter, switchMap, tap, mergeMap, catchError, debounceTime, skip } from 'rxjs/operators';
9
+ import { gettext } from '@c8y/ngx-components/gettext';
9
10
  import * as i1 from '@c8y/client';
10
11
  import { QueriesUtil } from '@c8y/client';
11
12
  import { latLng, latLngBounds } from 'leaflet';