@c8y/ng1-modules 1020.40.0 → 1021.0.4

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 (940) hide show
  1. package/aclManagement/controllers/permissionEditorCtrl.js +1 -1
  2. package/aclManagement/directives/permissionEditor.js +1 -1
  3. package/aclManagement/index.js +1 -1
  4. package/administration-alarmMapping/controllers/alarmMapping.js +1 -1
  5. package/administration-alarmMapping/index.js +1 -1
  6. package/administration-applicationSettings/controllers/applicationSettings.js +1 -1
  7. package/administration-applicationSettings/index.js +1 -1
  8. package/administration-applications/appWizard/appWizard.deprecated.js +0 -1
  9. package/administration-applications/appWizard/appWizardClone1Step.component.js +1 -1
  10. package/administration-applications/appWizard/appWizardClone2Step.component.js +1 -1
  11. package/administration-applications/appWizard/appWizardExternalStep.component.js +1 -1
  12. package/administration-applications/appWizard/appWizardMenuStep.component.js +1 -1
  13. package/administration-applications/appWizard/appWizardSmartAppStep.component.js +1 -1
  14. package/administration-applications/appWizard/appWizardSuccessStep.component.js +1 -1
  15. package/administration-applications/appWizard/appWizardUploadStep.component.js +1 -1
  16. package/administration-applications/appWizard/context-path.directive.js +1 -1
  17. package/administration-applications/application-detail/application-detail.component.js +1 -1
  18. package/administration-applications/application-detail/application-detail.deprecated.js +0 -1
  19. package/administration-applications/application-list-view/application-list-view.component.js +1 -1
  20. package/administration-applications/application-list-view/application-list-view.deprecated.js +0 -1
  21. package/administration-applications/controllers/appDetailsTitle.js +1 -1
  22. package/administration-applications/controllers/applicationAccessEditor.js +1 -1
  23. package/administration-applications/controllers/permissions.js +1 -1
  24. package/administration-applications/directives/applicationAccessEditor.js +1 -1
  25. package/administration-applications/index.js +1 -1
  26. package/administration-applications/index.mock.js +1 -1
  27. package/administration-archivesEditor/index.js +1 -1
  28. package/administration-archivesEditor/index.mock.js +1 -1
  29. package/administration-archivesEditor/list.controller.js +1 -1
  30. package/administration-archivesEditor/upload.controller.js +1 -1
  31. package/administration-auditLogs/filter.directive.js +1 -1
  32. package/administration-auditLogs/index.js +1 -1
  33. package/administration-auditLogs/index.mock.js +1 -1
  34. package/administration-auditLogs/list.controller.js +1 -1
  35. package/administration-config/administration-config.module.js +1 -1
  36. package/administration-deviceUsers/controllers/deviceUserDetail.js +1 -1
  37. package/administration-deviceUsers/controllers/deviceUserList.js +1 -1
  38. package/administration-deviceUsers/index.js +1 -1
  39. package/administration-deviceUsers/views/list.html +2 -4
  40. package/administration-homeAdministration/home-administration.component.js +1 -1
  41. package/administration-homeAdministration/home-administration.config.js +1 -1
  42. package/administration-retentionRules/index.js +1 -1
  43. package/administration-retentionRules/index.mock.js +1 -1
  44. package/administration-retentionRules/list.controller.js +1 -1
  45. package/administration-retentionRules/views/list.html +1 -1
  46. package/administration-statistics/controllers/statistics.js +1 -1
  47. package/administration-statistics/index.js +1 -1
  48. package/administration-statistics/index.mock.js +1 -1
  49. package/administration-storageLimitEmail/controllers/storageLimitCtrl.js +1 -1
  50. package/administration-storageLimitEmail/index.js +1 -1
  51. package/alarmsEventsExplorer/alarmsEventsTimelinesChart/alarmsEventsTimelinesChart.component.js +1 -1
  52. package/alarmsEventsExplorer/alarmsEventsTimelinesChart/alarmsEventsTimelinesChart.service.js +1 -1
  53. package/alarmsEventsExplorer/alarmsEventsTimelinesConfig/alarmsEventsTimelinesConfig.component.js +1 -1
  54. package/alarmsEventsExplorer/alarmsEventsTimelinesConfig/alarmsEventsTimelinesConfigModal.controller.js +1 -1
  55. package/alarmsEventsExplorer/index.js +1 -1
  56. package/app-logs/app-instance-logs/app-instance-logs.component.js +1 -1
  57. package/app-logs/app-instance-logs/app-instance-logs.html +31 -10
  58. package/app-logs/app-logs/app-logs.component.js +1 -1
  59. package/app-logs/app-logs/download-logs.component.js +1 -1
  60. package/app-logs/app-logs.service.js +1 -1
  61. package/app-logs/index.js +1 -1
  62. package/app-status/app-alarms/app-alarms.component.js +1 -1
  63. package/app-status/app-events/app-events.component.js +1 -1
  64. package/app-status/app-instances/app-instances.component.js +1 -1
  65. package/app-status/app-instances-details/app-instances-details.component.js +1 -1
  66. package/app-status/app-status/app-status.component.js +1 -1
  67. package/app-status/app-tenant-subscriptions-list/app-tenant-subscriptions-list.component.js +1 -1
  68. package/app-status/index.js +1 -1
  69. package/app-status-ui/index.js +1 -1
  70. package/asset-notes/assetNotes.component.js +1 -1
  71. package/asset-notes/assetNotes.module.js +1 -1
  72. package/asset-notes/assetNotes.service.js +1 -1
  73. package/assetPropertyWidget/index.js +1 -1
  74. package/assetPropertyWidget/index.mock.js +1 -1
  75. package/assetPropertyWidget/main.controller.js +1 -1
  76. package/assetTable/addIconMap.controller.js +1 -1
  77. package/assetTable/addOperation.controller.js +1 -1
  78. package/assetTable/assetTable2/assets.controller.js +1 -1
  79. package/assetTable/assetTable2/assets.service.js +1 -1
  80. package/assetTable/assetTable2/assetsConfig.controller.js +1 -1
  81. package/assetTable/assetTable2/configIconMap.controller.js +1 -1
  82. package/assetTable/assetTable2/index.js +1 -1
  83. package/assetTable/assetTable2/rendererButton.controller.js +1 -1
  84. package/assetTable/assetTable2/rendererButtonConfig.controller.js +1 -1
  85. package/assetTable/assetTable2/rendererIcon.controller.js +1 -1
  86. package/assetTable/assetTable2/sort.directive.js +1 -1
  87. package/assetTable/assets.controller.js +1 -1
  88. package/assetTable/assetsConfig.controller.js +1 -1
  89. package/assetTable/comparisons.service.js +1 -1
  90. package/assetTable/counterColumns.service.js +1 -1
  91. package/assetTable/index.js +1 -1
  92. package/assetTable/operationTemplate.service.js +1 -1
  93. package/assetTable/sort.directive.js +1 -1
  94. package/binary-file-download/binary-file-download.component.js +1 -1
  95. package/binary-file-download/binary-file-download.config.js +1 -1
  96. package/binaryArtefactsManagement/controllers/list.js +1 -1
  97. package/binaryArtefactsManagement/controllers/upload.js +1 -1
  98. package/binaryArtefactsManagement/index.js +1 -1
  99. package/cockpit-assetCount/controllers/AssetCount.js +1 -1
  100. package/cockpit-assetCount/index.js +1 -1
  101. package/cockpit-assetCount/services/assetCount.js +1 -1
  102. package/cockpit-cockpitConfig/index.js +1 -1
  103. package/cockpit-cockpitConfig/services/navigator.js +1 -1
  104. package/cockpit-dataPointExplorerUI/index.js +1 -1
  105. package/cockpit-reports/index.js +1 -1
  106. package/cockpit-reports/reports.service.js +1 -1
  107. package/cockpit-smartRulesUI/index.js +1 -1
  108. package/commandTemplates/components/commandTemplates.js +1 -1
  109. package/commandTemplates/controllers/commandTemplates.js +1 -1
  110. package/commandTemplates/index.js +1 -1
  111. package/connectivityV2/auditLogs.component.js +1 -1
  112. package/connectivityV2/connectivityV2.component.js +1 -1
  113. package/connectivityV2/connectivityV2.module.js +1 -1
  114. package/connectivityV2/connectivityV2.service.js +1 -1
  115. package/connectivityV2/sessions.component.js +1 -1
  116. package/connectivityV2/sms.component.js +1 -1
  117. package/connectivityV2/status.component.js +1 -1
  118. package/core/angular-locales.js +1 -1
  119. package/core/angularStart.js +1 -1
  120. package/core/bootstrap.js +1 -1
  121. package/core/core/cometdExtensions.js +1 -1
  122. package/core/core/config.js +1 -1
  123. package/core/core/index.js +1 -1
  124. package/core/core/locales.js +1 -1
  125. package/core/core/services/SMSGateway.js +1 -1
  126. package/core/core/services/actility.js +1 -1
  127. package/core/core/services/alarms.js +1 -1
  128. package/core/core/services/application.js +1 -1
  129. package/core/core/services/audits.js +1 -1
  130. package/core/core/services/auth.js +1 -1
  131. package/core/core/services/base.js +1 -1
  132. package/core/core/services/binary.js +1 -1
  133. package/core/core/services/binaryCommon.js +1 -1
  134. package/core/core/services/connectivity.js +1 -1
  135. package/core/core/services/connectivitySettings.js +1 -1
  136. package/core/core/services/counter.js +1 -1
  137. package/core/core/services/deviceBulkControl.js +1 -1
  138. package/core/core/services/deviceControl.js +1 -1
  139. package/core/core/services/deviceGroup.js +1 -1
  140. package/core/core/services/deviceShell.js +1 -1
  141. package/core/core/services/deviceStatus.js +1 -1
  142. package/core/core/services/devices.js +1 -1
  143. package/core/core/services/dynamicGroups.js +1 -1
  144. package/core/core/services/events.js +1 -1
  145. package/core/core/services/geo.js +1 -1
  146. package/core/core/services/groupTypesConfig.js +1 -1
  147. package/core/core/services/groups.js +1 -1
  148. package/core/core/services/identity.js +1 -1
  149. package/core/core/services/inventory.js +1 -1
  150. package/core/core/services/jsonSchemas.js +1 -1
  151. package/core/core/services/kpi.js +1 -1
  152. package/core/core/services/license.js +1 -1
  153. package/core/core/services/loginOptions.js +1 -1
  154. package/core/core/services/measurementUnits.js +1 -1
  155. package/core/core/services/measurements.js +1 -1
  156. package/core/core/services/messaging.js +1 -1
  157. package/core/core/services/notifications.js +1 -1
  158. package/core/core/services/permissions.js +1 -1
  159. package/core/core/services/promise.js +1 -1
  160. package/core/core/services/queriesUtil.js +1 -1
  161. package/core/core/services/realtime.js +1 -1
  162. package/core/core/services/realtimeLongPollingTransport.js +1 -1
  163. package/core/core/services/retentions.js +1 -1
  164. package/core/core/services/roles.js +1 -1
  165. package/core/core/services/settings.js +1 -1
  166. package/core/core/services/simulator.js +1 -1
  167. package/core/core/services/smartRestTemplates.js +1 -1
  168. package/core/core/services/statement.js +1 -1
  169. package/core/core/services/statistics.js +1 -1
  170. package/core/core/services/storageLimitation.js +1 -1
  171. package/core/core/services/system.js +1 -1
  172. package/core/core/services/tenant.js +1 -1
  173. package/core/core/services/tfaSettings.js +1 -1
  174. package/core/core/services/tracker.js +1 -1
  175. package/core/core/services/user.js +1 -1
  176. package/core/core/services/userGroup.js +1 -1
  177. package/core/core/services/userPreferences.js +1 -1
  178. package/core/core/services/util.js +1 -1
  179. package/core/core/services/workers.js +1 -1
  180. package/core/cumulocity.json +0 -14
  181. package/core/index.js +1 -1
  182. package/core/locales/de.po +216 -366
  183. package/core/locales/en.po +3 -15
  184. package/core/locales/en_US.po +887 -0
  185. package/core/locales/es.po +232 -372
  186. package/core/locales/fr.po +224 -373
  187. package/core/locales/ja_JP.po +187 -370
  188. package/core/locales/ko.po +132 -391
  189. package/core/locales/nl.po +222 -371
  190. package/core/locales/pl.po +227 -375
  191. package/core/locales/pt_BR.po +223 -369
  192. package/core/locales/zh_CN.po +127 -386
  193. package/core/locales/zh_TW.po +128 -387
  194. package/core/sdk/directives/login.js +1 -1
  195. package/core/sdk/directives/logout.js +1 -1
  196. package/core/sdk/directives/repeat.js +1 -1
  197. package/core/sdk/index.js +1 -1
  198. package/core/sdk/providers/cumulocity.js +1 -1
  199. package/core/ui/components/battery/battery.js +1 -1
  200. package/core/ui/components/errorFeedback.js +1 -1
  201. package/core/ui/components/feedback-panel.component.js +1 -1
  202. package/core/ui/components/inplaceInput.js +1 -1
  203. package/core/ui/components/passwordStrengthChecklist.js +1 -1
  204. package/core/ui/components/signalStrength/signal.js +1 -1
  205. package/core/ui/components/timelinesChart.js +1 -1
  206. package/core/ui/constants/pathUtils.js +1 -1
  207. package/core/ui/containers/header.component.js +1 -1
  208. package/core/ui/containers/root.component.js +1 -1
  209. package/core/ui/containers/wizard.component.js +1 -1
  210. package/core/ui/containers/wizardModal.service.js +1 -1
  211. package/core/ui/containers/wizardSlide.jquery.js +1 -1
  212. package/core/ui/containers/wizardStep.component.js +1 -1
  213. package/core/ui/controllers/addDynamicGroupModal.js +1 -1
  214. package/core/ui/controllers/binaryInputModal.js +1 -1
  215. package/core/ui/controllers/editRetentionRule.js +1 -1
  216. package/core/ui/controllers/eventList.js +1 -1
  217. package/core/ui/controllers/listPagination/listPagination.controller.js +1 -1
  218. package/core/ui/controllers/loginCtrl.js +1 -1
  219. package/core/ui/controllers/mcontainer.js +1 -1
  220. package/core/ui/controllers/radialGauge.js +1 -1
  221. package/core/ui/csvExporter/csv-escape-formulas-option.decorator.js +1 -1
  222. package/core/ui/csvExporter/csvExporter.controller.js +1 -1
  223. package/core/ui/csvExporter/csvExporter.directive.js +1 -1
  224. package/core/ui/csvExporter/csvExporter.service.js +1 -1
  225. package/core/ui/directives/affix.js +1 -1
  226. package/core/ui/directives/aggregation.js +1 -1
  227. package/core/ui/directives/alarmList.js +1 -1
  228. package/core/ui/directives/appIcon.js +1 -1
  229. package/core/ui/directives/auditList.js +1 -1
  230. package/core/ui/directives/audits.js +1 -1
  231. package/core/ui/directives/autocomplete.js +1 -1
  232. package/core/ui/directives/autofocus.js +1 -1
  233. package/core/ui/directives/binaryInput.js +1 -1
  234. package/core/ui/directives/binaryOut.js +1 -1
  235. package/core/ui/directives/bindHtmlCompile.js +1 -1
  236. package/core/ui/directives/codeEditor.js +1 -1
  237. package/core/ui/directives/dateTimePicker.js +1 -1
  238. package/core/ui/directives/deviceGroupSelector.js +1 -1
  239. package/core/ui/directives/downloadButton.js +1 -1
  240. package/core/ui/directives/editRetentionRule.js +1 -1
  241. package/core/ui/directives/eventList.js +1 -1
  242. package/core/ui/directives/filePicker.js +1 -1
  243. package/core/ui/directives/hScroll.js +1 -1
  244. package/core/ui/directives/icon.js +1 -1
  245. package/core/ui/directives/ifAllowed.js +1 -1
  246. package/core/ui/directives/interval.js +1 -1
  247. package/core/ui/directives/keyShortcut.js +1 -1
  248. package/core/ui/directives/listPagination/listPagination.js +1 -1
  249. package/core/ui/directives/listPagination/listPaginationControl.js +1 -1
  250. package/core/ui/directives/loadMore.js +1 -1
  251. package/core/ui/directives/login.js +1 -1
  252. package/core/ui/directives/map-plugins/geofence-layer.js +1 -1
  253. package/core/ui/directives/map.js +1 -1
  254. package/core/ui/directives/map2.js +1 -1
  255. package/core/ui/directives/max.js +1 -1
  256. package/core/ui/directives/min.js +1 -1
  257. package/core/ui/directives/number.js +1 -1
  258. package/core/ui/directives/onChange.js +1 -1
  259. package/core/ui/directives/passwordStrength.js +1 -1
  260. package/core/ui/directives/phoneNumber.js +1 -1
  261. package/core/ui/directives/pieChart.js +1 -1
  262. package/core/ui/directives/radialGauge.js +1 -1
  263. package/core/ui/directives/rdbDump.js +1 -1
  264. package/core/ui/directives/realtimeBtn.js +1 -1
  265. package/core/ui/directives/realtimeButton.js +1 -1
  266. package/core/ui/directives/refreshBtn.js +1 -1
  267. package/core/ui/directives/renderer.js +1 -1
  268. package/core/ui/directives/scrollLoad.js +1 -1
  269. package/core/ui/directives/spellcheck.js +1 -1
  270. package/core/ui/directives/sunburstChart.js +1 -1
  271. package/core/ui/directives/textOut.js +1 -1
  272. package/core/ui/directives/validateIp.js +1 -1
  273. package/core/ui/directives/validateUniqueExternalId.js +1 -1
  274. package/core/ui/fieldbus/fieldbus.service.js +1 -1
  275. package/core/ui/filteringSorting/filteredSortedList.controller.js +1 -1
  276. package/core/ui/filteringSorting/filteredSortedList.directive.js +1 -1
  277. package/core/ui/filteringSorting/filteringSortingCollections.service.js +1 -1
  278. package/core/ui/filteringSorting/filteringSortingColumnConfigModal.controller.js +1 -1
  279. package/core/ui/filteringSorting/filteringSortingColumns.service.js +1 -1
  280. package/core/ui/filteringSorting/filteringSortingInventoryQueries.service.js +1 -1
  281. package/core/ui/filters/absoluteDate.js +1 -1
  282. package/core/ui/filters/bytes.js +1 -1
  283. package/core/ui/filters/capitalizestring.js +1 -1
  284. package/core/ui/filters/checkForDate.js +1 -1
  285. package/core/ui/filters/dateParts.js +1 -1
  286. package/core/ui/filters/distance.js +1 -1
  287. package/core/ui/filters/duration.js +1 -1
  288. package/core/ui/filters/filter-translate.decorator.js +1 -1
  289. package/core/ui/filters/filterByFields.js +1 -1
  290. package/core/ui/filters/hex.filter.js +1 -1
  291. package/core/ui/filters/humanize.js +1 -1
  292. package/core/ui/filters/humanize2.js +1 -1
  293. package/core/ui/filters/humanizeAppName.js +1 -1
  294. package/core/ui/filters/orderBy-translate.decorator.js +1 -1
  295. package/core/ui/filters/relativedate.js +1 -1
  296. package/core/ui/filters/safeLinks.js +1 -1
  297. package/core/ui/filters/truncate.filter.js +1 -1
  298. package/core/ui/forms/checkDirty.directive.js +1 -1
  299. package/core/ui/forms/duration-input.component.js +1 -1
  300. package/core/ui/forms/hex-input.directive.js +1 -1
  301. package/core/ui/forms/host-address.validator.js +1 -1
  302. package/core/ui/forms/http-protocol.validator.js +1 -1
  303. package/core/ui/forms/model-options.directive.js +1 -1
  304. package/core/ui/forms/regular-expression.validator.js +1 -1
  305. package/core/ui/forms/required-input-placeholder.directive.js +1 -1
  306. package/core/ui/forms/saveButtonFooter.component.js +1 -1
  307. package/core/ui/forms/search.component.js +1 -1
  308. package/core/ui/forms/ssh-key-input.js +1 -1
  309. package/core/ui/forms/toggle-disabled-class-on-select-wrapper.directive.js +1 -1
  310. package/core/ui/forms/uib-dropdown-dropup.directive.js +1 -1
  311. package/core/ui/forms/uib-dropdown-hide-empty.directive.js +1 -1
  312. package/core/ui/forms/uib-dropdown.decorator.js +1 -1
  313. package/core/ui/forms/validate-url-segment.validator.js +1 -1
  314. package/core/ui/groups/group-create-and-assign.component.js +1 -1
  315. package/core/ui/groups/group-details.config.js +1 -1
  316. package/core/ui/groups/group-device-assignment.component.js +1 -1
  317. package/core/ui/header/accessDeniedModal.controller.js +1 -1
  318. package/core/ui/header/action-bar-set.component.js +1 -1
  319. package/core/ui/header/action-bar.component.js +1 -1
  320. package/core/ui/header/action-bar.service.js +1 -1
  321. package/core/ui/header/actions.component.js +1 -1
  322. package/core/ui/header/actions.provider.js +1 -1
  323. package/core/ui/index.js +1 -1
  324. package/core/ui/inputDirectives/colorpicker.js +1 -1
  325. package/core/ui/itemSelector/itemSelector.component.js +1 -1
  326. package/core/ui/keys.js +1 -1
  327. package/core/ui/leaflet/leaflet-directive.decorator.js +1 -1
  328. package/core/ui/lists/list-display-control.component.js +1 -1
  329. package/core/ui/lists/quickLinksList.service.js +1 -1
  330. package/core/ui/locales/locales.provider.js +1 -1
  331. package/core/ui/measurements/range.service.js +1 -1
  332. package/core/ui/measurements/rangeSet.service.js +1 -1
  333. package/core/ui/navigation/breadcrumbs.component.js +1 -1
  334. package/core/ui/navigation/breadcrumbs.provider.js +1 -1
  335. package/core/ui/navigation/breadcrumbsSet.component.js +1 -1
  336. package/core/ui/navigation/navigator.component.js +1 -1
  337. package/core/ui/navigation/navigatorNode.component.js +1 -1
  338. package/core/ui/navigation/tabs.component.js +1 -1
  339. package/core/ui/navigation/tabs.provider.js +1 -1
  340. package/core/ui/notifications/accessDenied.service.js +1 -1
  341. package/core/ui/notifications/alert.controller.js +1 -1
  342. package/core/ui/notifications/alert.service.js +1 -1
  343. package/core/ui/notifications/alertOnItem.directive.js +1 -1
  344. package/core/ui/notifications/alerts.component.js +1 -1
  345. package/core/ui/operations/operations-timeline-modal.component.js +1 -1
  346. package/core/ui/operations/operations-timeline.component.js +1 -1
  347. package/core/ui/properties/children.computedProperty.js +1 -1
  348. package/core/ui/properties/computedProperties.provider.js +1 -1
  349. package/core/ui/properties/computedPropertyConfig.controller.js +1 -1
  350. package/core/ui/properties/configurationSnapshot.computedProperty.js +1 -1
  351. package/core/ui/properties/counters.computedProperty.js +1 -1
  352. package/core/ui/properties/lastDeviceMessage.computedProperty.js +1 -1
  353. package/core/ui/properties/lastMeasurement.computedProperty.js +1 -1
  354. package/core/ui/properties/lastMeasurementConfig.controller.js +1 -1
  355. package/core/ui/properties/propertiesLibrary.service.js +1 -1
  356. package/core/ui/properties/propertySelector.controller.js +1 -1
  357. package/core/ui/properties/propertySelector.directive.js +1 -1
  358. package/core/ui/properties/schemaProperties.service.js +1 -1
  359. package/core/ui/properties/schemaPropertySelector.controller.js +1 -1
  360. package/core/ui/providers/beta.js +1 -1
  361. package/core/ui/providers/components.js +1 -1
  362. package/core/ui/providers/httpCache.js +1 -1
  363. package/core/ui/providers/keys.js +1 -1
  364. package/core/ui/providers/mapConfig.js +1 -1
  365. package/core/ui/providers/maps.js +1 -1
  366. package/core/ui/providers/navigator.js +1 -1
  367. package/core/ui/providers/objectActions.js +1 -1
  368. package/core/ui/providers/renderers.js +1 -1
  369. package/core/ui/providers/search.js +1 -1
  370. package/core/ui/providers/views.js +1 -1
  371. package/core/ui/providers/zip.js +1 -1
  372. package/core/ui/realtime/realtime-switch.component.js +1 -1
  373. package/core/ui/roles/roles-matrix.component.js +1 -1
  374. package/core/ui/sanitize-html/sanitize-html.js +1 -1
  375. package/core/ui/sanitize-html/sanitize-html.service.js +1 -1
  376. package/core/ui/schemaForm/dateTimePicker.config.js +1 -1
  377. package/core/ui/schemaForm/deviceGroupIdPicker.config.js +1 -1
  378. package/core/ui/schemaForm/fileUpload.config.js +1 -1
  379. package/core/ui/schemaForm/fileUpload.directive.js +1 -1
  380. package/core/ui/schemaForm/formatBySchema.filter.js +1 -1
  381. package/core/ui/schemaForm/overrides/decorators/bootstrap/array.html +1 -1
  382. package/core/ui/schemaForm/overrides/decorators/decorators.decorator.js +1 -1
  383. package/core/ui/schemaForm/schemaEditor.component.js +1 -1
  384. package/core/ui/schemaForm/schemaForm.component.js +1 -1
  385. package/core/ui/schemaForm/schemaForm.config.js +1 -1
  386. package/core/ui/schemaForm/schemaForm.run.js +1 -1
  387. package/core/ui/schemaForm/schemaFormHelper.service.js +1 -1
  388. package/core/ui/schemaForm/schemaPropertyEditor.component.js +1 -1
  389. package/core/ui/schemaForm/text.config.js +1 -1
  390. package/core/ui/services/batchop.js +1 -1
  391. package/core/ui/services/contextDetailsShared.service.js +1 -1
  392. package/core/ui/services/docs.js +1 -1
  393. package/core/ui/services/groupsHierarchyNavigator.js +1 -1
  394. package/core/ui/services/groupsHierarchySvc.js +1 -1
  395. package/core/ui/services/loginService.js +1 -1
  396. package/core/ui/services/measurementsReport.js +1 -1
  397. package/core/ui/services/modal.js +1 -1
  398. package/core/ui/services/passwordStrengthCheckerFactory.js +1 -1
  399. package/core/ui/services/support.js +1 -1
  400. package/core/ui/services/tenantOptions.js +1 -1
  401. package/core/ui/services/uiconfig.js +1 -1
  402. package/core/ui/services/util.js +1 -1
  403. package/core/ui/shims.js +1 -1
  404. package/core/ui/smartrules/smartRulesAvailability.service.js +1 -1
  405. package/core/ui/title/title.controller.js +1 -1
  406. package/core/ui/title/title.provider.js +1 -1
  407. package/core/ui/title/uiTitle.component.js +1 -1
  408. package/core/ui/title/uiTitleSet.component.js +1 -1
  409. package/core/ui/user/editUser.controller.js +1 -1
  410. package/core/ui/user/editUser.directive.js +1 -1
  411. package/core/ui/user/editUser.service.js +1 -1
  412. package/core/ui/user/measurementUnitPreference.component.js +1 -1
  413. package/core/ui/user/rolesUiStrings.constant.js +1 -1
  414. package/core/ui/user/userPicker.component.js +1 -1
  415. package/core/ui/user/userSettingsBlocks.provider.js +1 -1
  416. package/core/ui/user/userUtil.service.js +1 -1
  417. package/core/ui/user/usernameValidator.directive.js +1 -1
  418. package/core/ui/utils/copyToClipboard.directive.js +1 -1
  419. package/core/ui/utils/guide-docs.directive.js +1 -1
  420. package/core/ui/utils/rectangle-spinner.component.js +1 -1
  421. package/core/ui/utils/uiComponent.directive.js +1 -1
  422. package/core/ui/views/auditList.html +2 -2
  423. package/core/ui/views/deviceGroupSelector.html +17 -8
  424. package/core/update-query-params.js +1 -1
  425. package/dashboard2/dashboard/dashboardSelect.controller.js +1 -1
  426. package/dashboard2/dashboard.service.js +1 -1
  427. package/dashboard2/dashboardInventory.service.js +1 -1
  428. package/dashboard2/index.js +1 -1
  429. package/dataBroker/connectors/connectorEditor.component.js +1 -1
  430. package/dataBroker/connectors/connectors.component.js +1 -1
  431. package/dataBroker/connectors/connectors.html +2 -2
  432. package/dataBroker/connectors/connectors.service.js +1 -1
  433. package/dataBroker/connectorsAlarms/connectorAlarms.component.js +1 -1
  434. package/dataBroker/connectorsAlarms/connectorAlarms.html +4 -0
  435. package/dataBroker/dataBroker.config.js +1 -1
  436. package/dataBroker/dataBroker.module.js +1 -1
  437. package/dataBroker/subscriptions/addSubscription.component.js +1 -1
  438. package/dataBroker/subscriptions/pendingSubscription.component.js +1 -1
  439. package/dataBroker/subscriptions/subscription.component.js +1 -1
  440. package/dataBroker/subscriptions/subscriptions.component.js +1 -1
  441. package/dataPointExplorer/controllers/dataPointAdd.js +1 -1
  442. package/dataPointExplorer/controllers/dataPointExplorer.js +1 -1
  443. package/dataPointExplorer/controllers/dataPointItem.js +1 -1
  444. package/dataPointExplorer/controllers/dataPointList.js +1 -1
  445. package/dataPointExplorer/controllers/dataPointWidget.js +1 -1
  446. package/dataPointExplorer/controllers/dataPointWidgetConfig.js +1 -1
  447. package/dataPointExplorer/directives/dataPointList.js +1 -1
  448. package/dataPointExplorer/directives/dataPointValidator.js +1 -1
  449. package/dataPointExplorer/index.js +1 -1
  450. package/dataPointExplorer/services/dataPoints.js +1 -1
  451. package/dataPointTable/dataPointTable.controller.js +1 -1
  452. package/dataPointTable/dataPointTable.directive.js +1 -1
  453. package/dataPointTable/dataPointTable.service.js +1 -1
  454. package/dataPointTable/index.js +1 -1
  455. package/dataPointTable/realtimeRadioButton.directive.js +1 -1
  456. package/dataPointTable/widget.controller.js +1 -1
  457. package/device-protocol-actility/actility-device.provider.js +1 -1
  458. package/device-protocol-actility/actility.module.js +1 -1
  459. package/device-protocol-canbus/canbus-device.provider.js +1 -1
  460. package/device-protocol-canbus/canbus.module.js +1 -1
  461. package/device-protocol-canopen/canopen-device.provider.js +1 -1
  462. package/device-protocol-canopen/canopen.module.js +1 -1
  463. package/device-protocol-deviceDatabase4/device-protocol-deviceDatabase4.module.js +1 -1
  464. package/device-protocol-deviceDatabase4/device-type-create-step.component.js +1 -1
  465. package/device-protocol-deviceDatabase4/device-type-protocol-base.provider.js +1 -1
  466. package/device-protocol-deviceDatabase4/device-type-row-info.component.js +1 -1
  467. package/device-protocol-lora/lora-device.provider.js +1 -1
  468. package/device-protocol-lora/lora.module.js +1 -1
  469. package/device-protocol-lpwan/lpwan-device.provider.js +1 -1
  470. package/device-protocol-lpwan/lpwan.module.js +1 -1
  471. package/device-protocol-lwm2m/lwm2m.provider.js +1 -1
  472. package/device-protocol-lwm2m/lwm2mDetail.component.js +1 -1
  473. package/device-protocol-lwm2m/lwm2mFinalStep.component.js +1 -1
  474. package/device-protocol-lwm2m/lwm2mResource.component.js +1 -1
  475. package/device-protocol-lwm2m/lwm2mUploadStep.component.js +1 -1
  476. package/device-protocol-lwm2m/lwm2mValidationRules/lwm2mValidationRule.component.js +1 -1
  477. package/device-protocol-lwm2m/lwm2mValidationRules/lwm2mValidationRules.component.js +1 -1
  478. package/device-protocol-lwm2m/module.js +1 -1
  479. package/device-protocol-modbus/modbus-device.provider.js +1 -1
  480. package/device-protocol-modbus/modbus.module.js +1 -1
  481. package/device-protocol-opcua/opcua-device.provider.js +1 -1
  482. package/device-protocol-opcua/opcua.module.js +1 -1
  483. package/device-protocol-opcua-v2/opcua-device-v2.provider.js +1 -1
  484. package/device-protocol-opcua-v2/opcua-v2-create-step.component.js +1 -1
  485. package/device-protocol-opcua-v2/opcua-v2-row-info.component.js +1 -1
  486. package/device-protocol-opcua-v2/opcua-v2.module.js +1 -1
  487. package/device-protocol-profibus/profibus-device.provider.js +1 -1
  488. package/device-protocol-profibus/profibus.module.js +1 -1
  489. package/device-protocol-sigfox/sigfox-device.provider.js +1 -1
  490. package/device-protocol-sigfox/sigfox.module.js +1 -1
  491. package/device-protocol-snmp/snmp-device.provider.js +1 -1
  492. package/device-protocol-snmp/snmp.module.js +1 -1
  493. package/device-protocols/device-protocol-import-button.component.js +1 -1
  494. package/device-protocols/deviceProtocolBreadcrumb.component.js +1 -1
  495. package/device-protocols/deviceProtocolList.component.js +1 -1
  496. package/device-protocols/deviceProtocolSelect.component.js +1 -1
  497. package/device-protocols/deviceProtocolUi.provider.js +1 -1
  498. package/device-protocols/deviceProtocolView.component.js +1 -1
  499. package/device-protocols/deviceProtocolWizard.component.js +1 -1
  500. package/device-protocols/module.js +1 -1
  501. package/device-protocols/object-mapping.component.js +1 -1
  502. package/device-protocols/object-mappings.service.js +1 -1
  503. package/deviceActility/actilityUI.provider.js +1 -1
  504. package/deviceActility/deviceActility.module.js +1 -1
  505. package/deviceActility/deviceActility.service.js +1 -1
  506. package/deviceControlRelay/index.js +1 -1
  507. package/deviceControlRelay/relayControl/relayControl.controller.js +1 -1
  508. package/deviceControlRelay/relayControl/relayControl.directive.js +1 -1
  509. package/deviceControlRelay/widget.controller.js +1 -1
  510. package/deviceControlRelayArray/index.js +1 -1
  511. package/deviceControlRelayArray/relayArrayControl/relayArrayControl.controller.js +1 -1
  512. package/deviceControlRelayArray/relayArrayControl/relayArrayControl.directive.js +1 -1
  513. package/deviceControlRelayArray/widget.controller.js +1 -1
  514. package/deviceDatabase4/detail/basic-info.component.js +1 -1
  515. package/deviceDatabase4/detail/device-type-detail.component.js +1 -1
  516. package/deviceDatabase4/detail/discrete-inputs.component.js +1 -1
  517. package/deviceDatabase4/detail/discrete-outputs.component.js +1 -1
  518. package/deviceDatabase4/detail/holding-registers.component.js +1 -1
  519. package/deviceDatabase4/detail/input-registers.component.js +1 -1
  520. package/deviceDatabase4/detail/message-id-configuration-description.component.js +1 -1
  521. package/deviceDatabase4/detail/message-id-configuration.component.js +1 -1
  522. package/deviceDatabase4/detail/options.component.js +1 -1
  523. package/deviceDatabase4/device-database-4.module.js +1 -1
  524. package/deviceDatabase4/device-database.service.js +1 -1
  525. package/deviceDatabase4/device-type-list.component.js +1 -1
  526. package/deviceDatabase4/modals/configure-discrete-io.component.js +1 -1
  527. package/deviceDatabase4/modals/configure-register.component.js +1 -1
  528. package/deviceDatabase4/modals/import-device-type.component.js +1 -1
  529. package/deviceDatabase4/modals/select-fieldbus-property.component.js +1 -1
  530. package/deviceDatabase4/parsers/device-type-parser-eds.service.js +1 -1
  531. package/deviceDatabase4/parsers/device-type-parser-json.service.js +1 -1
  532. package/deviceDatabase4/parsers/device-type-parser-mib.service.js +1 -1
  533. package/deviceDatabase4/parsers/device-type-parser.service.js +1 -1
  534. package/deviceDatabase4/property-generator.service.js +1 -1
  535. package/deviceDatabase4/unique.directive.js +1 -1
  536. package/deviceDatabase4/validate-measurement-fragment.directive.js +1 -1
  537. package/deviceDatabase4/validate-value-in-register-range.directive.js +1 -1
  538. package/deviceDatabase4/vendor/ini.js +1 -1
  539. package/deviceDetail/index.js +1 -1
  540. package/deviceDetailIdentity/controllers/identity.js +1 -1
  541. package/deviceDetailIdentity/index.js +1 -1
  542. package/deviceGroupAssignment/deviceGroupAssignment.module.js +1 -1
  543. package/deviceGroupAssignment/groupAssignment.component.js +1 -1
  544. package/devicePropertyWidget/controllers/config.js +1 -1
  545. package/devicePropertyWidget/controllers/widget.js +1 -1
  546. package/devicePropertyWidget/directives/fragmentCheckboxList.js +1 -1
  547. package/devicePropertyWidget/index.js +1 -1
  548. package/devicePropertyWidget/services/moRealTimeDetails.js +1 -1
  549. package/deviceSelector/controllers/deviceSelectorComboCtrl.js +1 -1
  550. package/deviceSelector/controllers/deviceSelectorCtrl.js +1 -1
  551. package/deviceSelector/controllers/deviceSelectorListCtrl.js +1 -1
  552. package/deviceSelector/directives/deviceSelector.js +1 -1
  553. package/deviceSelector/directives/deviceSelectorCombo.js +1 -1
  554. package/deviceSelector/directives/deviceSelectorList.js +1 -1
  555. package/deviceSelector/index.js +1 -1
  556. package/deviceStatusWidget/availability.component.js +1 -1
  557. package/deviceStatusWidget/deviceStatus.component.js +1 -1
  558. package/deviceStatusWidget/deviceStatus.module.js +1 -1
  559. package/deviceStatusWidget/keyboardKeyHandler.service.js +1 -1
  560. package/deviceStatusWidget/ownerStatus.component.js +1 -1
  561. package/deviceStatusWidget/requiredAvailabilityIntervalSetting.component.js +1 -1
  562. package/deviceTitle/cumulocity.json +7 -0
  563. package/deviceTitle/index.js +1 -0
  564. package/devicemanagement-availability/controllers/availability.js +1 -1
  565. package/devicemanagement-availability/index.js +1 -1
  566. package/devicemanagement-deviceListMap/controllers/deviceListMap.js +1 -1
  567. package/devicemanagement-deviceListMap/index.js +1 -1
  568. package/devicemanagement-deviceManagement/cumulocity.json +1 -6
  569. package/devicemanagement-deviceManagement/devicemanagement.module.js +1 -1
  570. package/devicemanagement-deviceNetwork/controllers/network.js +1 -1
  571. package/devicemanagement-deviceNetwork/index.js +1 -1
  572. package/devicemanagement-eventList/controllers/eventList.js +1 -1
  573. package/devicemanagement-eventList/index.js +1 -1
  574. package/devicemanagement-location/controllers/location.js +1 -1
  575. package/devicemanagement-logViewer/config.js +1 -1
  576. package/devicemanagement-logViewer/controllers/logViewer.js +1 -1
  577. package/devicemanagement-logViewer/directives/logViewer.js +1 -1
  578. package/devicemanagement-logViewer/index.js +1 -1
  579. package/devicemanagement-logViewer/providers/logViewer.js +1 -1
  580. package/devicemanagement-measurements/index.js +1 -1
  581. package/devicemanagement-restartDevice/index.js +1 -1
  582. package/devicemanagement-tixiDeviceControl/index.js +1 -1
  583. package/enterpriseEdition/createFile.js +1 -1
  584. package/enterpriseEdition/customBranding/brandingConfiguration.constants.js +1 -1
  585. package/enterpriseEdition/customBranding/brandingConfiguration.service.js +1 -1
  586. package/enterpriseEdition/customBranding/brandingConfigurationForm.component.js +1 -1
  587. package/enterpriseEdition/customBranding/brandingConfigurationUi.provider.js +1 -1
  588. package/enterpriseEdition/customBranding/brandingDeploy.service.js +1 -1
  589. package/enterpriseEdition/customBranding/brandingProcessExecution.component.js +1 -1
  590. package/enterpriseEdition/customBranding/custom-branding.module.js +1 -1
  591. package/enterpriseEdition/customBranding/microservice.value.js +1 -1
  592. package/enterpriseEdition/enterpriseEdition.module.js +1 -1
  593. package/enterpriseEdition/enterpriseEditionAvailability.service.js +1 -1
  594. package/enterpriseEdition/sslCertificate/certificateActivation.component.js +1 -1
  595. package/enterpriseEdition/sslCertificate/certificateDeactivation.component.js +1 -1
  596. package/enterpriseEdition/sslCertificate/countDownRedirect.component.js +1 -1
  597. package/enterpriseEdition/sslCertificate/manageCertificate.component.js +1 -1
  598. package/enterpriseEdition/sslCertificate/manageCertificate.service.js +1 -1
  599. package/enterpriseEdition/ui-assets/index.js +1 -1
  600. package/enterpriseEdition/ui-assets/public-options.service.js +1 -1
  601. package/enterpriseEdition/ui-assets/static-assets.service.js +1 -1
  602. package/enterpriseEdition/ui-assets/ui-assets.service.js +1 -1
  603. package/eventList/eventList.controller.js +1 -1
  604. package/eventList/eventListConfig.controller.js +1 -1
  605. package/eventList/index.js +1 -1
  606. package/eventsBinary/components/eventBinaryActions/eventBinaryActions.js +1 -1
  607. package/eventsBinary/components/eventBinaryIcon/eventBinaryIcon.js +1 -1
  608. package/eventsBinary/components/eventBinaryPreview/eventBinaryPreview.js +1 -1
  609. package/eventsBinary/eventsBinary.module.js +1 -1
  610. package/eventsBinary/services/eventsBinary.service.js +1 -1
  611. package/export/controllers/detail.js +1 -1
  612. package/export/controllers/list.js +1 -1
  613. package/export/directives/timespan.js +1 -1
  614. package/export/index.js +1 -1
  615. package/export/index.mock.js +1 -1
  616. package/export/services/api.js +1 -1
  617. package/export/services/config.js +1 -1
  618. package/export/services/export.js +1 -1
  619. package/export/services/filters.js +1 -1
  620. package/fieldbusConfig/fieldbus-config.module.js +1 -1
  621. package/generic-ui/config-audit/config-audit-diff.component.js +1 -1
  622. package/generic-ui/config-audit/config-audit-modal.component.js +1 -1
  623. package/generic-ui/config-audit/config-audit.component.js +1 -1
  624. package/generic-ui/config-audit/config-audit.service.js +1 -1
  625. package/generic-ui/config-audit/index.js +1 -1
  626. package/generic-ui/data.mock.js +1 -1
  627. package/generic-ui/generic-ui-auto.component.js +1 -1
  628. package/generic-ui/generic-ui-config.provider.js +1 -1
  629. package/generic-ui/generic-ui-inventory-property.component.js +1 -1
  630. package/generic-ui/generic-ui-inventory.component.js +1 -1
  631. package/generic-ui/generic-ui-operation-list-button.component.js +1 -1
  632. package/generic-ui/generic-ui.component.js +1 -1
  633. package/generic-ui/generic-ui.service.js +1 -1
  634. package/generic-ui/module.js +1 -1
  635. package/groupsHierarchy/controllers/assetSearchCtrl.js +1 -1
  636. package/groupsHierarchy/controllers/groupDevicesCtrl.js +1 -1
  637. package/groupsHierarchy/controllers/groupsListCtrl.js +1 -1
  638. package/groupsHierarchy/groupsHierarchyUi.provider.js +1 -1
  639. package/groupsHierarchy/index.js +1 -1
  640. package/groupsHierarchy/index.mock.js +1 -1
  641. package/htmlWidget/htmlWidget.controller.js +1 -1
  642. package/htmlWidget/htmlWidget.directive.js +1 -1
  643. package/htmlWidget/htmlWidgetConfig.controller.js +1 -1
  644. package/htmlWidget/index.js +1 -1
  645. package/htmlWidget/index.mock.js +1 -1
  646. package/index.js +1 -1
  647. package/kpi/controllers/deprecated/edit.js +1 -1
  648. package/kpi/controllers/deprecated/graph.js +1 -1
  649. package/kpi/controllers/deprecated/multipleKpiConfig.js +1 -1
  650. package/kpi/controllers/deprecated/setup.js +1 -1
  651. package/kpi/controllers/gauge.js +1 -1
  652. package/kpi/controllers/kpiConfig.js +1 -1
  653. package/kpi/controllers/list.js +1 -1
  654. package/kpi/controllers/listConfig.js +1 -1
  655. package/kpi/controllers/pieChart.js +1 -1
  656. package/kpi/controllers/pieChartConfig.js +1 -1
  657. package/kpi/index.js +1 -1
  658. package/kpi/index.mock.js +0 -1
  659. package/kpi/services/baseWidget.js +1 -1
  660. package/kpi/services/kpi.js +1 -1
  661. package/kpi/services/mostRecentKpi.js +1 -1
  662. package/map/controllers/geofenceEdit.js +1 -1
  663. package/map/controllers/map.js +1 -1
  664. package/map/index.js +1 -1
  665. package/map/services/geofence.js +1 -1
  666. package/measurements/controllers/lineChart.js +1 -1
  667. package/measurements/controllers/measurements.js +1 -1
  668. package/measurements/directives/lineChart.js +1 -1
  669. package/measurements/directives/timeIntervalChoice.js +1 -1
  670. package/measurements/fragmentChart/fragmentChart.component.js +1 -1
  671. package/measurements/index.js +1 -1
  672. package/measurements/measurements2/axisX.service.js +1 -1
  673. package/measurements/measurements2/axisY.service.js +1 -1
  674. package/measurements/measurements2/chart.controller.js +1 -1
  675. package/measurements/measurements2/chart.directive.js +1 -1
  676. package/measurements/measurements2/chart.service.js +1 -1
  677. package/measurements/measurements2/chartCommon.service.js +1 -1
  678. package/measurements/measurements2/hoverInfo.service.js +1 -1
  679. package/measurements/measurements2/iconBar.js +1 -1
  680. package/measurements/measurements2/rtAutoMove.service.js +1 -1
  681. package/measurements/measurements2/series.service.js +1 -1
  682. package/measurements/services/lineChartService.js +1 -1
  683. package/modbusConfiguration4/fieldbus-config.component.js +1 -1
  684. package/modbusConfiguration4/fieldbus-device-list.component.js +1 -1
  685. package/modbusConfiguration4/modbus-configuration-4.config.js +1 -1
  686. package/modbusConfiguration4/modbus-configuration-4.module.js +1 -1
  687. package/modbusWidget4/constants.js +1 -1
  688. package/modbusWidget4/modbus-widget.service.js +1 -1
  689. package/modbusWidget4/widget-config.component.js +1 -1
  690. package/modbusWidget4/widget.component.js +1 -1
  691. package/modbusWidget4/widget.config.js +1 -1
  692. package/modbusWidget4/widget.html +1 -1
  693. package/modbusWidget4/widget.module.js +1 -1
  694. package/modbusWidgets/controllers/widget.js +1 -1
  695. package/modbusWidgets/controllers/widgetConfig.js +1 -1
  696. package/modbusWidgets/index.js +1 -1
  697. package/modbusWidgets/services/modbusWidget.js +1 -1
  698. package/newsletter/downloadEmailsList.component.js +1 -1
  699. package/newsletter/newsletter.config.js +1 -1
  700. package/newsletter/newsletter.module.js +1 -1
  701. package/newsletter/newsletter.service.js +1 -1
  702. package/newsletter/subscribeNewsletter.component.js +1 -1
  703. package/nvd3ChartDirectives/override.js +1 -1
  704. package/oauth/controllers/oauth.js +1 -1
  705. package/oauth/index.js +1 -1
  706. package/package.json +5 -5
  707. package/platformConfiguration/index.js +1 -1
  708. package/platformConfiguration/platformConfiguration.component.js +1 -1
  709. package/platformConfiguration/platformConfigurationUi.provider.js +1 -1
  710. package/propertiesLibrary/index.js +1 -1
  711. package/propertiesLibrary/jsonSchemaObjectEditor.component.js +1 -1
  712. package/propertiesLibrary/jsonSchemaObjectsList.component.js +1 -1
  713. package/qrCode/controllers/qrCode.js +1 -1
  714. package/qrCode/directives/displayQrCode.js +1 -1
  715. package/qrCode/index.js +1 -1
  716. package/qrCode/services/qrCodePrinter.js +1 -1
  717. package/qrCode/services/qrCodeTemplate.js +1 -1
  718. package/relayWidget/index.js +1 -1
  719. package/relayWidget/relay.controller.js +1 -1
  720. package/relayWidget/relay.service.js +1 -1
  721. package/remoteAccess/clients/remoteAccessClients.service.js +1 -1
  722. package/remoteAccess/clients/terminal/index.js +1 -1
  723. package/remoteAccess/clients/terminal/shell-adapter.js +1 -1
  724. package/remoteAccess/clients/terminal/telnet-negotiator.js +1 -1
  725. package/remoteAccess/clients/vnc/vncClient.js +1 -1
  726. package/remoteAccess/remoteAccess.module.js +1 -1
  727. package/remoteAccess/remoteAccess.service.js +1 -1
  728. package/remoteAccess/remoteAccessEndpointCard/remoteAccessEndpointCard.component.js +1 -1
  729. package/remoteAccess/remoteAccessEndpointModal/remoteAccessEndpointModal.component.js +1 -1
  730. package/remoteAccess/remoteAccessEndpointsList/remoteAccessEndpointsList.component.js +1 -1
  731. package/remoteAccess/remoteAccessSettings/remoteAccessSettings.component.js +1 -1
  732. package/remoteAccess/remoteAccessUI.provider.js +1 -1
  733. package/roles/detail/roleDetailGlobal.component.js +1 -1
  734. package/roles/detail/roleDetailInventory.component.js +1 -1
  735. package/roles/detail/roleGlobalSaveConfirm.controller.js +1 -1
  736. package/roles/detail/roleGlobalSaveConfirm.html +9 -5
  737. package/roles/detail/roleInventoryPermissionList.component.js +1 -1
  738. package/roles/detail/roleTitle.component.js +1 -1
  739. package/roles/index.js +1 -1
  740. package/roles/list/rolesList.component.js +1 -1
  741. package/roles/list/rolesOverview.controller.js +1 -1
  742. package/roles/rolesUi.provider.js +1 -1
  743. package/scada/config.controller.js +1 -1
  744. package/scada/index.js +1 -1
  745. package/scada/index.mock.js +1 -1
  746. package/scada/mapping.directive.js +1 -1
  747. package/scada/svg.directive.js +1 -1
  748. package/scada/util.service.js +1 -1
  749. package/scada/views/component.html +1 -0
  750. package/scada/views/componentConfig.html +1 -0
  751. package/scada/widget.controller.js +1 -1
  752. package/simulators/add/simulatorAdd.component.js +1 -1
  753. package/simulators/detail/detail.component.js +1 -1
  754. package/simulators/detail/detail.controller.js +1 -1
  755. package/simulators/detail/instructionAdd.component.js +1 -1
  756. package/simulators/detail/instructionDetail.component.js +1 -1
  757. package/simulators/detail/instructionList.component.js +1 -1
  758. package/simulators/detail/operationAddDialog.component.js +1 -1
  759. package/simulators/detail/operations.component.js +1 -1
  760. package/simulators/index.js +1 -1
  761. package/simulators/list/list.component.js +1 -1
  762. package/simulators/list/simulatorCloneDialog.component.js +1 -1
  763. package/simulators/simulators.service.js +1 -1
  764. package/simulators/simulatorsUi.provider.js +1 -1
  765. package/smartRestEditor/addTemplate/addTemplate.component.js +1 -1
  766. package/smartRestEditor/csvPreviewer/csvPreviewer.component.js +1 -1
  767. package/smartRestEditor/details.controller.js +1 -1
  768. package/smartRestEditor/importTemplate/importTemplate.component.js +1 -1
  769. package/smartRestEditor/index.js +1 -1
  770. package/smartRestEditor/list.controller.js +1 -1
  771. package/smartRestEditor/requestEditor/requestEditor.component.js +1 -1
  772. package/smartRestEditor/responseEditor/responseEditor.component.js +1 -1
  773. package/smartRestEditor/validators/validateCustomFieldKeyInRequestTemplate.directive.js +1 -1
  774. package/smartRestEditor/validators/validateUniqueMsgIdInTemplate.directive.js +1 -1
  775. package/smartRestEditor/valueInput/valueInput.directive.js +1 -1
  776. package/smartRestEditorUI/index.js +1 -1
  777. package/smartRules/add/addSmartRuleButton.component.js +1 -1
  778. package/smartRules/controllers/add.js +1 -1
  779. package/smartRules/controllers/childAssetsSelector.js +1 -1
  780. package/smartRules/controllers/edit.js +1 -1
  781. package/smartRules/controllers/list.js +1 -1
  782. package/smartRules/controllers/smartRuleParamInput.js +1 -1
  783. package/smartRules/directives/childAssetsSelector.js +1 -1
  784. package/smartRules/directives/smartRuleParamInput.js +1 -1
  785. package/smartRules/directives/smartRuleParamInputAlarmSeverity.js +1 -1
  786. package/smartRules/directives/smartRuleParamInputAlarmType.js +1 -1
  787. package/smartRules/directives/smartRuleParamInputCheckbox.js +1 -1
  788. package/smartRules/directives/smartRuleParamInputDashboard.js +1 -1
  789. package/smartRules/directives/smartRuleParamInputDefault.js +1 -1
  790. package/smartRules/directives/smartRuleParamInputEmail.js +1 -1
  791. package/smartRules/directives/smartRuleParamInputEscalationSteps.js +1 -1
  792. package/smartRules/directives/smartRuleParamInputExportConfiguration.js +1 -1
  793. package/smartRules/directives/smartRuleParamInputFrequency.js +1 -1
  794. package/smartRules/directives/smartRuleParamInputGeofence.js +1 -1
  795. package/smartRules/directives/smartRuleParamInputKpi.js +1 -1
  796. package/smartRules/directives/smartRuleParamInputNumber.js +1 -1
  797. package/smartRules/directives/smartRuleParamInputOperation.js +1 -1
  798. package/smartRules/directives/smartRuleParamInputPhoneNumber.js +1 -1
  799. package/smartRules/directives/smartRuleParamInputSelect.js +1 -1
  800. package/smartRules/directives/smartRuleParamInputTextarea.js +1 -1
  801. package/smartRules/directives/smartRuleParamInputTimeInterval.js +1 -1
  802. package/smartRules/directives/smartRuleParamWarnMaxLength.js +1 -1
  803. package/smartRules/index.js +1 -1
  804. package/smartRules/list/smartRulesList.component.js +1 -1
  805. package/smartRules/services/smartRuleTemplates.js +1 -1
  806. package/smartRules/services/smartRules.js +1 -1
  807. package/smartRules/views/paramInputAlarmType.html +25 -13
  808. package/smartRules/views/paramInputEscalationSteps.html +53 -19
  809. package/smartRules/views/paramInputKpi.html +18 -12
  810. package/smartRules/views/paramInputOperation.html +17 -14
  811. package/smartRules/views/paramInputTimeInterval.html +25 -17
  812. package/switchDisplay/controller/switchDisplayConfigCtrl.js +1 -1
  813. package/switchDisplay/controller/switchDisplayCtrl.js +1 -1
  814. package/switchDisplay/index.js +1 -1
  815. package/tenantApplications/controllers/main.js +1 -1
  816. package/tenantApplications/index.js +1 -1
  817. package/tenantApplications/subscribed-applications/subscribed-applications.component.js +1 -1
  818. package/tenantLicenses/index.js +1 -1
  819. package/tenantLicenses/licenseManagement.component.js +1 -1
  820. package/tenantPolicies/retentionRule/retentionRuleRow.component.js +1 -1
  821. package/tenantPolicies/systemOptions/editSystemOption.component.js +1 -1
  822. package/tenantPolicies/systemOptions/systemOptionsRow.component.js +1 -1
  823. package/tenantPolicies/tenantOptions/editTenantOption.component.js +1 -1
  824. package/tenantPolicies/tenantOptions/tenantOptionsRow.component.js +1 -1
  825. package/tenantPolicies/tenantPolicies.module.js +1 -1
  826. package/tenantPolicies/tenantPolicies.service.js +1 -1
  827. package/tenantPolicies/tenantPoliciesConfig.provider.js +1 -1
  828. package/tenantPolicies/tenantPolicyDetail/tenantPolicyDetail.component.js +1 -1
  829. package/tenantPolicies/tenantPolicyDetail/tenantPolicyRow.component.js +1 -1
  830. package/tenantPolicies/tenantPolicyList/tenantPolicyList.component.js +1 -1
  831. package/tenantStatistics/index.js +1 -1
  832. package/tenantStatistics/tenant-statistics-columns.service.js +1 -1
  833. package/tenantStatistics/tenant-statistics.component.js +1 -1
  834. package/tenants/controllers/customProperties.js +1 -1
  835. package/tenants/controllers/detail.js +1 -1
  836. package/tenants/index.js +1 -1
  837. package/tenants/index.mock.js +1 -1
  838. package/trackerConfiguration/controllers/msisdnAlert.controller.js +1 -1
  839. package/trackerConfiguration/controllers/trackerConfiguration.controller.js +1 -1
  840. package/trackerConfiguration/directives/msisdnAlert.directive.js +1 -1
  841. package/trackerConfiguration/index.js +1 -1
  842. package/trackerConfiguration/services/realtimeLockup.service.js +1 -1
  843. package/trackerConfiguration/services/trackerAlarms.service.js +1 -1
  844. package/trackerConfiguration/services/trackerLocation.service.js +1 -1
  845. package/trackerConfiguration/services/trackerRestart.service.js +1 -1
  846. package/trackerConfiguration/services/trackerSituation.service.js +1 -1
  847. package/trackerConfiguration/services/trackerSos.service.js +1 -1
  848. package/trackerConfiguration/services/unitConversionHelper.service.js +1 -1
  849. package/trackerModels/index.js +1 -1
  850. package/trackerModels/trackerModels.service.js +1 -1
  851. package/trackerRegistration/index.js +1 -1
  852. package/trackerRegistration/trackerRegistration.controller.js +1 -1
  853. package/trackerRegistration/trackerRegistration.service.js +1 -1
  854. package/trackerRegistration/trackerRegistrationHistory.service.js +1 -1
  855. package/trackingAppConfig/index.js +1 -1
  856. package/trafficLightWidget/index.js +1 -1
  857. package/trafficLightWidget/states-mapping.component.js +1 -1
  858. package/trafficLightWidget/traffic-light.component.js +1 -1
  859. package/userRoles/copyRolesModal/copyRolesModal.component.js +1 -1
  860. package/userRoles/index.js +1 -1
  861. package/userRoles/inventoryRoleSelector/inventoryRoleSelector.component.js +1 -1
  862. package/userRoles/inventoryRolesTab/inventoryRolesTab.component.js +1 -1
  863. package/userRoles/rolesAssetTree/rolesAssetTree.component.js +1 -1
  864. package/userRoles/userRoles.service.js +1 -1
  865. package/userRoles/userRolesUi.service.js +1 -1
  866. package/users/aclEditor/aclEditor.directive.js +1 -1
  867. package/users/applicationAccess/applicationAccess.directive.js +1 -1
  868. package/users/index.js +1 -1
  869. package/users/userDetailView/userApplicationAccess.component.js +1 -1
  870. package/users/userDetailView/userDetailView.component.js +1 -1
  871. package/users/userList/userList.component.js +1 -1
  872. package/users/userListView/userListView.component.js +1 -1
  873. package/users/userRemovalModal/userRemovalModal.component.js +1 -1
  874. package/users/usersUi.provider.js +1 -1
  875. package/actilityProviderSettings/actilityProviderSettings.module.js +0 -1
  876. package/actilityProviderSettings/actilitySettings.component.js +0 -1
  877. package/actilityProviderSettings/actilitySettings.html +0 -128
  878. package/actilityProviderSettings/actilitySettings.service.js +0 -1
  879. package/actilityProviderSettings/cumulocity.json +0 -14
  880. package/cell-id-information-activator/cell-id-information-activator.config.js +0 -1
  881. package/cell-id-information-activator/cell-id-information-activator.module.js +0 -1
  882. package/cell-id-information-activator/cell-id-information-activator.service.js +0 -1
  883. package/cell-id-information-activator/cumulocity.json +0 -13
  884. package/cell-id-usage-statistics/cell-id-usage-statistics.component.js +0 -1
  885. package/cell-id-usage-statistics/cell-id-usage-statistics.config.js +0 -1
  886. package/cell-id-usage-statistics/cell-id-usage-statistics.html +0 -104
  887. package/cell-id-usage-statistics/cell-id-usage-statistics.module.js +0 -1
  888. package/cell-id-usage-statistics/cell-id-usage-statistics.service.js +0 -1
  889. package/cell-id-usage-statistics/constants.js +0 -1
  890. package/cell-id-usage-statistics/cumulocity.json +0 -15
  891. package/configurationRepository/configurationRepository.service.js +0 -1
  892. package/configurationRepository/cumulocity.json +0 -13
  893. package/configurationRepository/index.js +0 -1
  894. package/configurationRepository/list.controller.js +0 -1
  895. package/configurationRepository/views/list.html +0 -273
  896. package/core/core/services/combain.js +0 -1
  897. package/core/locales/ru.po +0 -17228
  898. package/core/ui/configurable-device-list-columns/configurable-columns.service.js +0 -1
  899. package/core/ui/configurable-device-list-columns/constants.js +0 -1
  900. package/core/ui/configurable-device-list-columns/modal-columns-configure.component.html +0 -171
  901. package/core/ui/configurable-device-list-columns/modal-columns-configure.component.js +0 -1
  902. package/core/ui/configurable-device-list-columns/unique-by.directive.js +0 -1
  903. package/core/ui/controllers/deviceList.js +0 -1
  904. package/core/ui/devices/device-details.config.js +0 -1
  905. package/core/ui/directives/deviceDetailBasic/availability.js +0 -1
  906. package/core/ui/directives/deviceDetailBasic/group.js +0 -1
  907. package/core/ui/directives/deviceList.js +0 -1
  908. package/core/ui/directives/deviceStatusDisplay.js +0 -1
  909. package/core/ui/directives/linearGauge.js +0 -1
  910. package/core/ui/directives/silo.js +0 -1
  911. package/core/ui/services/deviceListColumns.js +0 -1
  912. package/core/ui/views/deviceDetailBasic/availability.html +0 -85
  913. package/core/ui/views/deviceDetailBasic/basic.html +0 -165
  914. package/core/ui/views/deviceDetailBasic/firmware.html +0 -26
  915. package/core/ui/views/deviceDetailBasic/group.html +0 -36
  916. package/core/ui/views/deviceDetailBasic/groupSelectModal.html +0 -50
  917. package/core/ui/views/deviceDetailBasic/hardware.html +0 -28
  918. package/core/ui/views/deviceDetailBasic/mobile.html +0 -82
  919. package/core/ui/views/deviceDetailBasic/network.html +0 -12
  920. package/core/ui/views/deviceList.html +0 -64
  921. package/core/ui/views/deviceStatusDisplay.html +0 -44
  922. package/core/ui/views/linearGauge.html +0 -11
  923. package/core/ui/views/silo.html +0 -16
  924. package/deviceConfiguration/cumulocity.json +0 -14
  925. package/deviceConfiguration/index.js +0 -1
  926. package/deviceConfiguration/styles/styles.less +0 -1
  927. package/deviceConfiguration/views/configuration.html +0 -7
  928. package/deviceList/cumulocity.json +0 -14
  929. package/deviceList/deviceList.controller.js +0 -1
  930. package/deviceList/index.js +0 -1
  931. package/deviceList/views/index.html +0 -9
  932. package/kpi/img/linear-gauge-widget-pr.png +0 -0
  933. package/kpi/img/silo-widget-pr.png +0 -0
  934. package/kpi/views/linearGauge.html +0 -11
  935. package/kpi/views/silo.html +0 -9
  936. package/sigfox-provider-settings/cumulocity.json +0 -14
  937. package/sigfox-provider-settings/sigfox-provider-settings.module.js +0 -1
  938. package/sigfox-provider-settings/sigfox-settings.component.js +0 -1
  939. package/sigfox-provider-settings/sigfox-settings.html +0 -83
  940. package/sigfox-provider-settings/sigfox-settings.service.js +0 -1
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.parts.devicePropertyWidget",[]).config(["c8yComponentsProvider","gettext",function(e,t){e.add({name:"Properties",description:t("Table of device properties, for example, name, type or notes."),templateUrl:":::PLUGIN_PATH:::/views/main.html",configTemplateUrl:":::PLUGIN_PATH:::/views/config.html",previewImage:":::PLUGIN_PATH:::/img/properties-widget-pr.png",options:{noNewWidgets:!0}})}]);
1
+ angular.module("c8y.parts.devicePropertyWidget",[]).config(["c8yComponentsProvider","gettext",function(e,t){e.add({name:"Properties",description:t("Table of device properties, for example, name, type or notes."),templateUrl:":::PLUGIN_PATH:::/views/main.html",configTemplateUrl:":::PLUGIN_PATH:::/views/config.html",previewImage:":::PLUGIN_PATH:::/img/properties-widget-pr.png",options:{noNewWidgets:!0}})}]);
@@ -1 +1 @@
1
- "use strict";!function(){function t(r,o){return{detail:function(t,e){var n,e=e.id,i="/managedobjects/".concat(t),a=o.realtimeActions().UPDATE;function c(t){n?_.assign(n,t):n=t}return o.addListener(e,i,a,function(t,e){c(e)}),o.start(e,i),r.detail(t).then(function(t){return c(t.data),n})}}}t.$inject=["c8yInventory","c8yRealtime"],angular.module("c8y.parts.devicePropertyWidget").factory("c8yMoRealTimeDetails",t)}();
1
+ (()=>{function t(r,o){return{detail:function(t,e){var n,e=e.id,a="/managedobjects/".concat(t),i=o.realtimeActions().UPDATE;function c(t){n?_.assign(n,t):n=t}return o.addListener(e,a,i,function(t,e){c(e)}),o.start(e,a),r.detail(t).then(function(t){return c(t.data),n})}}}t.$inject=["c8yInventory","c8yRealtime"],angular.module("c8y.parts.devicePropertyWidget").factory("c8yMoRealTimeDetails",t)})();
@@ -1 +1 @@
1
- "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}!function(){function e(s,u,e,r,t,n,i){var o;s.placeholder=i("Device's name or value of any device's property"),s.isDeviceSelected=s.isDeviceSelected||function(){return!(!_.isUndefined(O())||!s.selectRequired)},s.selectRoot=s.selectRoot||function(){b(o)},s.isSelectedRoot=s.isSelectedRoot||O,s.select=s.select||b,s.clickSelect=function(e){s.select(e,s),s.form&&(s.form.$setDirty(),s.form.$setValidity("deviceSelected",!0))},s.isSelected=s.isSelected||D,s.isSelectedById=s.isSelectedById||S,s.isSelectionEmpty=s.isSelectionEmpty||function(){return!s.selectedChildDevice},s.search=l,s.searchData={},s.propagateToggle={},s.icon=function(){return s.loading?"circle-o-notch":"search"},s.checkEnter=function(e){e.keyCode===A&&l(s.searchData.text)},s.getRootName=function(e){return e||i("Root Device")},s.emptySelectionAvailable=_.result(s,"emptySelectionAvailable")||!1,s.emptySelectionIcon=_.result(s,"emptySelectionIcon")||"",s.emptySelectionLabel=_.result(s,"emptySelectionLabel")||i("None"),s.readOnlyInfoText=_.result(s,"readOnlyInfo")||i("Selection change is disabled."),s.getScope=function(){return s},s.$watch("parent",c),s.$watch("selectedChildDevice",m),s.$on("selectDevice",P);function c(e,t){!e||t&&e.id&&e.id===t||(_.isObjectLike(e)?u.when(e):n.detail(e).then(r.getResData)).then(function(e){return h(e),s.parentDevice=e,s.top&&(o=e,s.root=o,s.selectedChildDevice||!e.isDevice&&!s.groupsSelectable||(s.selectedChildDevice=e)),e}).then(y).then(v).then(a)}function a(e,t){e=(s.children||[]).concat(e);s.children=_.uniqBy(e,"id"),s.truncated=!_.isUndefined(t)&&t}function l(e){s.propagateToggle.value=!1,_.remove(s.children,function(e){return!S(e)}),s.loading=!0,s.searchData.lastText=e,d({text:e}).then(f).finally(function(){s.loading=!1})}function d(e){!s.searchOnlyChildAssetsOf||void 0!==e.ids||void 0!==e.text&&""!==e.text||(e.ids=s.searchOnlyChildAssetsOf.id);function c(e){a++;var t=e.statistics.pageSize,r=e.paging.next,n=e.length>=t;i=function(e){return _(e).map(_.property("childDevices.references")).flatten().map(_.property("managedObject.id")).uniq().value()}(o=e);var i,o=function(e){var r=[];{var n;s.searchOnlyChildAssetsOf?(n=s.searchOnlyChildAssetsOf.id,_.forEach(e,function(t){t.id===n&&r.push(t),t&&t.assetParents&&t.assetParents.references&&t.assetParents.references.forEach(function(e){e.managedObject.id===n&&r.push(t)})})):r=e}return r}(_.filter(o,function(e){return e&&(S(e)||e.c8y_IsDevice||p(e)||(r=i,function(e){return _.get(e,"deviceParents.references.length")}(t=e)&&!_.includes(r,t.id)))&&!("c8y_OpcuaNode"===e.type);var t,r})),o=(l=[].concat(_toConsumableArray(l),_toConsumableArray(o))).length>t,r=r&&n;return l.length>=t||10<=a||!r?(n=o||r,u.resolve({mos:_.take(l,t),truncated:n})):e.paging.next().then(c)}var a=0,l=[];return n.list(_objectSpread(_objectSpread({},e),{},{withParents:!0})).then(c)}function f(e){var t=e.mos,r=e.truncated;return u.resolve(t).then(v).then(function(e){return a(e,r)})}function p(e){return!!e.c8y_IsDeviceGroup}function y(e){return t[p(e)?"childAssets":"childDevices"](e)}function h(e){var t=!p(e),r=t?"childDevices":"childAssets";e.isDevice=t,e.__children=e[r]&&e[r].references||[]}function v(e){return _.map(e,function(e){return h(e),S(e)&&b(e),s.parent&&(e.openChildren=!1,Array.isArray(s.parent.idPath)?(e.idPath=_.cloneDeep(s.parent.idPath),e.idPath.push(s.parent.id)):e.idPath=[s.parent.id]),e})}function m(e){var t;e&&e.id&&(s.$parent.propagateToggle?s.propagateToggle=s.$parent.propagateToggle:s.propagateToggle={value:!0},t=e.idPath?e.idPath[0]:e.id,!s.deviceSelectorForm.$dirty&&s.selectedChildDeviceId&&s.selectedChildDeviceId!==e.id&&s.deviceSelectorForm.$setDirty(),s.idPath=e.idPath,s.selectedChildDeviceId=e.id,s.children||!s.top||s.parent||d({ids:t}).then(f))}function b(e,t){var r=["id","type","name"],n=t?[g(r,e)]:[];(t||s).$emit("selectDevice",n,r,e)}function g(e,r){return _.reduce(e,function(e,t){return e[t]=_.get(r,[t]),e},{})}function S(e){return e&&s.selectedChildDevice&&s.selectedChildDevice.id===e.id}function D(e){return S(e)}function O(){return D(o)||s.selectedChildDevice&&(o&&o.id)===s.selectedChildDevice.id}function P(e,t,r,n){var i,r=s.top?_.reduce(r,function(e,t){return e[t]="_root",e},{}):g(r,s.parentDevice);t.push(r),s.top&&(i=t.reverse(),r=_.reduce(i[0],function(e,t,r){return e["path_".concat(r)]=_.map(i,r).join("/"),e},{}),e.stopPropagation(),s.selectedChildDevice=n,s.contextPaths=r,s.onSelect({selDevice:n,contextPaths:r}))}_.assign(this,{$onInit:function(){void 0!==s.selectedChildDevice&&e(function(){s.form.$setValidity("deviceSelected",!0)},500)}});var A=13}e.$inject=["$scope","$q","$timeout","c8yBase","c8yDevices","c8yInventory","gettext"],angular.module("c8y.deviceSelector").controller("DeviceSelectorComboCtrl",e)}();
1
+ function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}(()=>{function e(s,u,e,r,t,n,i){var o;s.placeholder=i("Device's name or value of any device's property"),s.isDeviceSelected=s.isDeviceSelected||function(){return!(!_.isUndefined(P())||!s.selectRequired)},s.selectRoot=s.selectRoot||function(){b(o)},s.isSelectedRoot=s.isSelectedRoot||P,s.select=s.select||b,s.clickSelect=function(e){s.select(e,s),s.form&&(s.form.$setDirty(),s.form.$setValidity("deviceSelected",!0))},s.isSelected=s.isSelected||D,s.isSelectedById=s.isSelectedById||S,s.isSelectionEmpty=s.isSelectionEmpty||function(){return!s.selectedChildDevice},s.search=l,s.searchData={},s.propagateToggle={},s.icon=function(){return s.loading?"circle-o-notch":"search"},s.checkEnter=function(e){e.keyCode===A&&l(s.searchData.text)},s.getRootName=function(e){return e||i("Root Device")},s.emptySelectionAvailable=_.result(s,"emptySelectionAvailable")||!1,s.emptySelectionIcon=_.result(s,"emptySelectionIcon")||"",s.emptySelectionLabel=_.result(s,"emptySelectionLabel")||i("None"),s.readOnlyInfoText=_.result(s,"readOnlyInfo")||i("Selection change is disabled."),s.getScope=function(){return s},s.$watch("parent",c),s.$watch("selectedChildDevice",m),s.$on("selectDevice",O);function c(e,t){!e||t&&e.id&&e.id===t||(_.isObjectLike(e)?u.when(e):n.detail(e).then(r.getResData)).then(function(e){return h(e),s.parentDevice=e,s.top&&(o=e,s.root=o,s.selectedChildDevice||!e.isDevice&&!s.groupsSelectable||(s.selectedChildDevice=e)),e}).then(y).then(v).then(a)}function a(e,t){e=(s.children||[]).concat(e);s.children=_.uniqBy(e,"id"),s.truncated=!_.isUndefined(t)&&t}function l(e){s.propagateToggle.value=!1,_.remove(s.children,function(e){return!S(e)}),s.loading=!0,s.searchData.lastText=e,d({text:e}).then(p).finally(function(){s.loading=!1})}function d(e){!s.searchOnlyChildAssetsOf||void 0!==e.ids||void 0!==e.text&&""!==e.text||(e.ids=s.searchOnlyChildAssetsOf.id);function c(e){a++;var t=e.statistics.pageSize,r=e.paging.next,n=t<=e.length;i=(e=>_(e).map(_.property("childDevices.references")).flatten().map(_.property("managedObject.id")).uniq().value())(o=e);var i,o=(e=>{var r,n=[];return s.searchOnlyChildAssetsOf?(r=s.searchOnlyChildAssetsOf.id,_.forEach(e,function(t){t.id===r&&n.push(t),t&&t.assetParents&&t.assetParents.references&&t.assetParents.references.forEach(function(e){e.managedObject.id===r&&n.push(t)})})):n=e,n})(_.filter(o,function(e){return e&&(S(e)||e.c8y_IsDevice||f(e)||(r=i,(e=>_.get(e,"deviceParents.references.length"))(t=e)&&!_.includes(r,t.id)))&&!("c8y_OpcuaNode"===e.type);var t,r})),o=(l=[].concat(_toConsumableArray(l),_toConsumableArray(o))).length>t,r=r&&n;return t<=l.length||10<=a||!r?(n=o||r,u.resolve({mos:_.take(l,t),truncated:n})):e.paging.next().then(c)}var a=0,l=[];return n.list(_objectSpread(_objectSpread({},e),{},{withParents:!0})).then(c)}function p(e){var t=e.mos,r=e.truncated;return u.resolve(t).then(v).then(function(e){return a(e,r)})}function f(e){return!!e.c8y_IsDeviceGroup}function y(e){return t[f(e)?"childAssets":"childDevices"](e)}function h(e){var t=!f(e),r=t?"childDevices":"childAssets";e.isDevice=t,e.__children=e[r]&&e[r].references||[]}function v(e){return _.map(e,function(e){return h(e),S(e)&&b(e),s.parent&&(e.openChildren=!1,Array.isArray(s.parent.idPath)?(e.idPath=_.cloneDeep(s.parent.idPath),e.idPath.push(s.parent.id)):e.idPath=[s.parent.id]),e})}function m(e){var t;e&&e.id&&(s.$parent.propagateToggle?s.propagateToggle=s.$parent.propagateToggle:s.propagateToggle={value:!0},t=e.idPath?e.idPath[0]:e.id,!s.deviceSelectorForm.$dirty&&s.selectedChildDeviceId&&s.selectedChildDeviceId!==e.id&&s.deviceSelectorForm.$setDirty(),s.idPath=e.idPath,s.selectedChildDeviceId=e.id,s.children||!s.top||s.parent||d({ids:t}).then(p))}function b(e,t){var r=["id","type","name"],n=t?[g(r,e)]:[];(t||s).$emit("selectDevice",n,r,e)}function g(e,r){return _.reduce(e,function(e,t){return e[t]=_.get(r,[t]),e},{})}function S(e){return e&&s.selectedChildDevice&&s.selectedChildDevice.id===e.id}function D(e){return S(e)}function P(){return D(o)||s.selectedChildDevice&&(o&&o.id)===s.selectedChildDevice.id}function O(e,t,r,n){var i,r=s.top?_.reduce(r,function(e,t){return e[t]="_root",e},{}):g(r,s.parentDevice);t.push(r),s.top&&(i=t.reverse(),r=_.reduce(i[0],function(e,t,r){return e["path_".concat(r)]=_.map(i,r).join("/"),e},{}),e.stopPropagation(),s.selectedChildDevice=n,s.contextPaths=r,s.onSelect({selDevice:n,contextPaths:r}))}_.assign(this,{$onInit:function(){void 0!==s.selectedChildDevice&&e(function(){s.form.$setValidity("deviceSelected",!0)},500)}});var A=13}e.$inject=["$scope","$q","$timeout","c8yBase","c8yDevices","c8yInventory","gettext"],angular.module("c8y.deviceSelector").controller("DeviceSelectorComboCtrl",e)})();
@@ -1 +1 @@
1
- "use strict";!function(){function e(t,n,c,e){var i=5,a=i;function s(){l(null,i)}function l(e,n){t.searchDone=!1,t.searchProgress=!0,t.devices.length=0,a=i;e=e?e.text:"";(e?c.searchIncludingChildDevices({text:e,pageSize:n}):c.list({pageSize:n})).then(o).then(r).finally(function(){t.searchDone=!0,t.searchProgress=!1})}function r(e){return t.paging.next&&e.length<a?t.paging.next().then(o).then(r):n.when()}function o(e){var n=_.uniqBy((t.selectedDevices||[]).concat(t.devices||[]).concat(e),"id"),c=(t.devices=n,!!t.paging&&t.paging.loading);return t.paging=e.paging,t.paging.loading=c,n}function g(){t.selectedDevices.splice(0,t.selectedDevices.length)}t.devices=[],t.selectedDevices=[];t.placeholder=e("Device's name or value of any device's property"),t.search=l,t.loadNext=function(){a+=i,t.paging.loading=!0,t.paging.next().then(o).then(r).finally(function(){t.paging.loading=!1})},t.clearSearch=function(){t.devices.length=0,t.selectedDevices.length=0,t.searchDone=!1,t.searchProgress=!1,t.searchData=t.searchData||{},t.searchData.text="",s()},t.selectAll=function c(e,n){n||g(),_.forEach(e,function(e){var n;n=e,_.find(t.disabledDevices,function(e){return e.id===n.id})||t.selectedDevices.push(e),c(e.children,!0)})},t.deselectAll=g,t.checkEnter=function(e){13===e.keyCode&&l(t.searchData)},s()}e.$inject=["$scope","$q","c8yDevices","gettext"],angular.module("c8y.deviceSelector").controller("deviceSelectorCtrl",e)}();
1
+ (()=>{function e(t,n,c,e){var i=5,a=i;function s(){l(null,i)}function l(e,n){t.searchDone=!1,t.searchProgress=!0,t.devices.length=0,a=i;e=e?e.text:"";(e?c.searchIncludingChildDevices({text:e,pageSize:n}):c.list({pageSize:n})).then(o).then(r).finally(function(){t.searchDone=!0,t.searchProgress=!1})}function r(e){return t.paging.next&&e.length<a?t.paging.next().then(o).then(r):n.when()}function o(e){var n=_.uniqBy((t.selectedDevices||[]).concat(t.devices||[]).concat(e),"id"),c=(t.devices=n,!!t.paging&&t.paging.loading);return t.paging=e.paging,t.paging.loading=c,n}function g(){t.selectedDevices.splice(0,t.selectedDevices.length)}t.devices=[],t.selectedDevices=[];t.placeholder=e("Device's name or value of any device's property"),t.search=l,t.loadNext=function(){a+=i,t.paging.loading=!0,t.paging.next().then(o).then(r).finally(function(){t.paging.loading=!1})},t.clearSearch=function(){t.devices.length=0,t.selectedDevices.length=0,t.searchDone=!1,t.searchProgress=!1,t.searchData=t.searchData||{},t.searchData.text="",s()},t.selectAll=function c(e,n){n||g(),_.forEach(e,function(e){var n;n=e,_.find(t.disabledDevices,function(e){return e.id===n.id})||t.selectedDevices.push(e),c(e.children,!0)})},t.deselectAll=g,t.checkEnter=function(e){13===e.keyCode&&l(t.searchData)},s()}e.$inject=["$scope","$q","c8yDevices","gettext"],angular.module("c8y.deviceSelector").controller("deviceSelectorCtrl",e)})();
@@ -1 +1 @@
1
- "use strict";!function(){function e(e,i,t,n){var r=e.selectedDevices;function c(e){return e.childAssets.references.length+e.childDevices.references.length}function l(n){return n&&!!_.find(r,function(e){return parseInt(e.id,10)===parseInt(n.id,10)})}e.collapseExpandChildren=function(e){var n;0<c(e)&&(e.children?e.children=null:((n=e).__loading=!0,i.all([t.childAssets(n),t.childDevices(n)]).then(function(e){delete n.__loading,n.children=[],n.children.push(e[0]),n.children.push(e[1]),n.children=_.flattenDeep(n.children)})))},e.getChildrenCount=c,e.isSelected=l,e.onDeviceSelect=function(e){var n,i;l(e)?(n=e,_.remove(r,function(e){return parseInt(e.id,10)===parseInt(n.id,10)})):(i=e,_.find(r,function(e){return parseInt(e.id,10)===parseInt(i.id,10)})||r.push(i))},e.isDisabled=function(n){return _.find(e.disabledDevices,function(e){return parseInt(e.id,10)===parseInt(n.id,10)})},e.getDeviceTitle=function(e){return e.name||n.getString("Device {{id}}",e)}}e.$inject=["$scope","$q","c8yDevices","gettextCatalog"],angular.module("c8y.deviceSelector").controller("deviceSelectorListCtrl",e)}();
1
+ (()=>{function e(e,i,t,n){var r=e.selectedDevices;function c(e){return e.childAssets.references.length+e.childDevices.references.length}function l(n){return n&&!!_.find(r,function(e){return parseInt(e.id,10)===parseInt(n.id,10)})}e.collapseExpandChildren=function(e){var n;0<c(e)&&(e.children?e.children=null:((n=e).__loading=!0,i.all([t.childAssets(n),t.childDevices(n)]).then(function(e){delete n.__loading,n.children=[],n.children.push(e[0]),n.children.push(e[1]),n.children=_.flattenDeep(n.children)})))},e.getChildrenCount=c,e.isSelected=l,e.onDeviceSelect=function(e){var n,i;l(e)?(n=e,_.remove(r,function(e){return parseInt(e.id,10)===parseInt(n.id,10)})):(i=e,_.find(r,function(e){return parseInt(e.id,10)===parseInt(i.id,10)})||r.push(i))},e.isDisabled=function(n){return _.find(e.disabledDevices,function(e){return parseInt(e.id,10)===parseInt(n.id,10)})},e.getDeviceTitle=function(e){return e.name||n.getString("Device {{id}}",e)}}e.$inject=["$scope","$q","c8yDevices","gettextCatalog"],angular.module("c8y.deviceSelector").controller("deviceSelectorListCtrl",e)})();
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.deviceSelector").directive("c8yDeviceSelector",function(){return{restrict:"E",templateUrl:":::PLUGIN_PATH:::/views/deviceSelector.html",controller:"deviceSelectorCtrl",scope:{selectedDevices:"=",disabledDevices:"="}}});
1
+ angular.module("c8y.deviceSelector").directive("c8yDeviceSelector",function(){return{restrict:"E",templateUrl:":::PLUGIN_PATH:::/views/deviceSelector.html",controller:"deviceSelectorCtrl",scope:{selectedDevices:"=",disabledDevices:"="}}});
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.deviceSelector").directive("c8yDeviceSelectorComboDevices",function(){return{restrict:"A",link:function(e,i){e.__el=i;var t=e.depth||0;function l(){e.child.openChildren=e.idPath&&!!e.idPath[t]&&e.idPath[t]===e.child.id&&e.selectedChildDevice.id!==e.child.id,e.child.openChildren&&e.toggleChildren(e,e.child)}e.$evalAsync(function(){return e.propagateToggle.value&&l()})}}}).directive("c8yDeviceSelectorCombo",["$compile",function(t){return{restrict:"EA",scope:{parent:"=?",selectedChildDevice:"=?",selectedChildDeviceId:"=?",contextPaths:"=?",onSelect:"&",groupsSelectable:"=?",selectRequired:"=?",idPath:"=?",emptySelectionAvailable:"&?",emptySelectionIcon:"&?",emptySelectionLabel:"&?",readOnly:"<",readOnlyInfo:"&?",searchOnlyChildAssetsOf:"=?"},templateUrl:":::PLUGIN_PATH:::/views/deviceSelectorCombo.html",controller:"DeviceSelectorComboCtrl",require:"?^form",link:{post:function(o,c,e,i){var n=t('<div ng-include="\':::PLUGIN_PATH:::/views/deviceSelectorCombo.html\'" ng-controller="DeviceSelectorComboCtrl"></div>');o.top=!0,o.form=i,o.form&&o.selectedChildDevice&&!o.selectedChildDevice.id&&o.form.$setValidity("deviceSelected",!1),o.toggleChildren=function(e,i,t){return o._toggleChildren($(e.target),i,t)},o._toggleChildren=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:c,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:o,t=2<arguments.length?arguments[2]:void 0,l=e.hasClass("deviceRow")?e:e.parents(".deviceRow").first();t.openChildren=!t.openChildren,t.openChildren?(e=i.$new(),(t.childrenNewScope=e).openChildren=!1,e.propagateToggle=i.propagateToggle,e.parent=t,e.depth=_.isNumber(i.depth)?i.depth+1:1,e.children=[],e.top=!1,n(e,function(e){l.append(e)})):(l.children().last().remove(),t.childrenNewScope.$destroy(),delete t.childrenNewScope)}}}}}]);
1
+ angular.module("c8y.deviceSelector").directive("c8yDeviceSelectorComboDevices",function(){return{restrict:"A",link:function(e,i){e.__el=i;var l=e.depth||0;function t(){e.child.openChildren=e.idPath&&!!e.idPath[l]&&e.idPath[l]===e.child.id&&e.selectedChildDevice.id!==e.child.id,e.child.openChildren&&e.toggleChildren(e,e.child)}e.$evalAsync(function(){return e.propagateToggle.value&&t()})}}}).directive("c8yDeviceSelectorCombo",["$compile",function(l){return{restrict:"EA",scope:{parent:"=?",selectedChildDevice:"=?",selectedChildDeviceId:"=?",contextPaths:"=?",onSelect:"&",groupsSelectable:"=?",selectRequired:"=?",idPath:"=?",emptySelectionAvailable:"&?",emptySelectionIcon:"&?",emptySelectionLabel:"&?",readOnly:"<",readOnlyInfo:"&?",searchOnlyChildAssetsOf:"=?"},templateUrl:":::PLUGIN_PATH:::/views/deviceSelectorCombo.html",controller:"DeviceSelectorComboCtrl",require:"?^form",link:{post:function(o,c,e,i){var n=l('<div ng-include="\':::PLUGIN_PATH:::/views/deviceSelectorCombo.html\'" ng-controller="DeviceSelectorComboCtrl"></div>');o.top=!0,o.form=i,o.form&&o.selectedChildDevice&&!o.selectedChildDevice.id&&o.form.$setValidity("deviceSelected",!1),o.toggleChildren=function(e,i,l){return o._toggleChildren($(e.target),i,l)},o._toggleChildren=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:c,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:o,l=2<arguments.length?arguments[2]:void 0,t=e.hasClass("deviceRow")?e:e.parents(".deviceRow").first();l.openChildren=!l.openChildren,l.openChildren?(e=i.$new(),(l.childrenNewScope=e).openChildren=!1,e.propagateToggle=i.propagateToggle,e.parent=l,e.depth=_.isNumber(i.depth)?i.depth+1:1,e.children=[],e.top=!1,n(e,function(e){t.append(e)})):(t.children().last().remove(),l.childrenNewScope.$destroy(),delete l.childrenNewScope)}}}}}]);
@@ -1 +1 @@
1
- "use strict";!function(){function e(r){return{restrict:"E",replace:!0,scope:{selectedDevices:"=",disabledDevices:"=",device:"="},templateUrl:":::PLUGIN_PATH:::/views/deviceSelectorList.html",controller:"deviceSelectorListCtrl",compile:function(e){var t,i=e.contents().remove();return function(e,c){(t=t||r(i))(e,function(e){c.append(e)})}}}}e.$inject=["$compile"],angular.module("c8y.deviceSelector").directive("c8yDeviceSelectorList",e)}();
1
+ (()=>{function e(r){return{restrict:"E",replace:!0,scope:{selectedDevices:"=",disabledDevices:"=",device:"="},templateUrl:":::PLUGIN_PATH:::/views/deviceSelectorList.html",controller:"deviceSelectorListCtrl",compile:function(e){var t,i=e.contents().remove();return function(e,c){(t=t||r(i))(e,function(e){c.append(e)})}}}}e.$inject=["$compile"],angular.module("c8y.deviceSelector").directive("c8yDeviceSelectorList",e)})();
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.deviceSelector",[]);
1
+ angular.module("c8y.deviceSelector",[]);
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.deviceStatus").component("deviceAvailabilityStatus",{controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/availability.html",bindings:{device:"<",status:"<"}});
1
+ angular.module("c8y.deviceStatus").component("deviceAvailabilityStatus",{controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/availability.html",bindings:{device:"<",status:"<"}});
@@ -1 +1 @@
1
- "use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _regeneratorRuntime(){_regeneratorRuntime=function(){return a};var u,a={},t=Object.prototype,s=t.hasOwnProperty,f=Object.defineProperty||function(t,e,r){t[e]=r.value},e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function i(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(u){i=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o,i,a,c,e=e&&e.prototype instanceof g?e:g,e=Object.create(e.prototype),n=new G(n||[]);return f(e,"_invoke",{value:(o=t,i=r,a=n,c=h,function(t,e){if(c===y)throw Error("Generator is already running");if(c===v){if("throw"===t)throw e;return{value:u,done:!0}}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){r=function t(e,r){var n=r.method,o=e.iterator[n];if(o===u)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=u,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;n=l(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,d;o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=u),r.delegate=null,d):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}(r,a);if(r){if(r===d)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(c===h)throw c=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);c=y;r=l(o,i,a);if("normal"===r.type){if(c=a.done?v:p,r.arg===d)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(c=v,a.method="throw",a.arg=r.arg)}})}),e}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=c;var h="suspendedStart",p="suspendedYield",y="executing",v="completed",d={};function g(){}function m(){}function w(){}var e={},b=(i(e,n,function(){return this}),Object.getPrototypeOf),b=b&&b(b(O([]))),L=(b&&b!==t&&s.call(b,n)&&(e=b),w.prototype=g.prototype=Object.create(e));function _(t){["next","throw","return"].forEach(function(e){i(t,e,function(t){return this._invoke(e,t)})})}function x(a,c){var e;f(this,"_invoke",{value:function(r,n){function t(){return new c(function(t,e){!function e(t,r,n,o){var i,t=l(a[t],a,r);if("throw"!==t.type)return(r=(i=t.arg).value)&&"object"==_typeof(r)&&s.call(r,"__await")?c.resolve(r.__await).then(function(t){e("next",t,n,o)},function(t){e("throw",t,n,o)}):c.resolve(r).then(function(t){i.value=t,n(i)},function(t){return e("throw",t,n,o)});o(t.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}})}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(e){if(e||""===e){var r,t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return r=-1,(t=function t(){for(;++r<e.length;)if(s.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=u,t.done=!0,t}).next=t}throw new TypeError(_typeof(e)+" is not iterable")}return f(L,"constructor",{value:m.prototype=w,configurable:!0}),f(w,"constructor",{value:m,configurable:!0}),m.displayName=i(w,o,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,i(t,o,"GeneratorFunction")),t.prototype=Object.create(L),t},a.awrap=function(t){return{__await:t}},_(x.prototype),i(x.prototype,r,function(){return this}),a.AsyncIterator=x,a.async=function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new x(c(t,e,r,n),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},_(L),i(L,o,"Generator"),i(L,n,function(){return this}),i(L,"toString",function(){return"[object Generator]"}),a.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=O,G.prototype={constructor:G,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&s.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=u)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return i.type="throw",i.arg=r,n.next=t,e&&(n.method="next",n.arg=u),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,S(o)),n}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=u),d}},a}function asyncGeneratorStep(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function _asyncToGenerator(c){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=c.apply(t,a);function o(t){asyncGeneratorStep(n,e,r,o,i,"next",t)}function i(t){asyncGeneratorStep(n,e,r,o,i,"throw",t)}o(void 0)})}}!function(){function t(t,e,r,n,o,i,a,c,u){var s=r("Restart device"),f=this,l=c.get("additionalDeviceStatusButtons");function h(t){f.status=i.status(t)}function p(){return(p=_asyncToGenerator(_regeneratorRuntime().mark(function t(){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.delete(f.device);case 2:n.success(r("Device deleted.")),e.path("/device");case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}_.assign(f,{$onInit:function(){o.detailRealtime(f.config.device.id,t,h).then(function(e){f.device=e,f.displayRestartBtn=o.supportsOperation(e,"c8y_Restart"),f.additionalButtonsInfo=l.filter(function(t){return t.canShowButton(e)}).map(function(t){return t.getButtonInfo()})})},restart:function(){a.create({deviceId:f.device.id,description:s,c8y_Restart:{}}).then(function(){n.success(r("Device will be restarted."))})},deleteDevice:function(){return p.apply(this,arguments)}})}t.$inject=["$scope","$location","gettext","c8yAlert","c8yDevices","c8yDeviceStatus","c8yDeviceControl","c8yServiceRegistry","c8yDeviceGridService"],angular.module("c8y.deviceStatus").component("c8yDeviceStatus",{controller:t,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/deviceStatus.html",bindings:{config:"<"}})}();
1
+ function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _regeneratorRuntime(){_regeneratorRuntime=function(){return a};var u,a={},t=Object.prototype,s=t.hasOwnProperty,f=Object.defineProperty||function(t,e,r){t[e]=r.value},e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function i(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(u){i=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o,i,a,c,e=e&&e.prototype instanceof g?e:g,e=Object.create(e.prototype),n=new G(n||[]);return f(e,"_invoke",{value:(o=t,i=r,a=n,c=h,function(t,e){if(c===y)throw Error("Generator is already running");if(c===v){if("throw"===t)throw e;return{value:u,done:!0}}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){r=function t(e,r){var n=r.method,o=e.iterator[n];if(o===u)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=u,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;n=l(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,d;o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=u),r.delegate=null,d):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}(r,a);if(r){if(r===d)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(c===h)throw c=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);c=y;r=l(o,i,a);if("normal"===r.type){if(c=a.done?v:p,r.arg===d)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(c=v,a.method="throw",a.arg=r.arg)}})}),e}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=c;var h="suspendedStart",p="suspendedYield",y="executing",v="completed",d={};function g(){}function m(){}function w(){}var e={},b=(i(e,n,function(){return this}),Object.getPrototypeOf),b=b&&b(b(O([]))),L=(b&&b!==t&&s.call(b,n)&&(e=b),w.prototype=g.prototype=Object.create(e));function _(t){["next","throw","return"].forEach(function(e){i(t,e,function(t){return this._invoke(e,t)})})}function x(a,c){var e;f(this,"_invoke",{value:function(r,n){function t(){return new c(function(t,e){!function e(t,r,n,o){var i,t=l(a[t],a,r);if("throw"!==t.type)return(r=(i=t.arg).value)&&"object"==_typeof(r)&&s.call(r,"__await")?c.resolve(r.__await).then(function(t){e("next",t,n,o)},function(t){e("throw",t,n,o)}):c.resolve(r).then(function(t){i.value=t,n(i)},function(t){return e("throw",t,n,o)});o(t.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}})}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(e){if(e||""===e){var r,t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return r=-1,(t=function t(){for(;++r<e.length;)if(s.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=u,t.done=!0,t}).next=t}throw new TypeError(_typeof(e)+" is not iterable")}return f(L,"constructor",{value:m.prototype=w,configurable:!0}),f(w,"constructor",{value:m,configurable:!0}),m.displayName=i(w,o,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,i(t,o,"GeneratorFunction")),t.prototype=Object.create(L),t},a.awrap=function(t){return{__await:t}},_(x.prototype),i(x.prototype,r,function(){return this}),a.AsyncIterator=x,a.async=function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new x(c(t,e,r,n),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},_(L),i(L,o,"Generator"),i(L,n,function(){return this}),i(L,"toString",function(){return"[object Generator]"}),a.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=O,G.prototype={constructor:G,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&s.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=u)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return i.type="throw",i.arg=r,n.next=t,e&&(n.method="next",n.arg=u),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,S(o)),n}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=u),d}},a}function asyncGeneratorStep(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function _asyncToGenerator(c){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=c.apply(t,a);function o(t){asyncGeneratorStep(n,e,r,o,i,"next",t)}function i(t){asyncGeneratorStep(n,e,r,o,i,"throw",t)}o(void 0)})}}(()=>{function t(t,e,r,n,o,i,a,c,u){var s=r("Restart device"),f=this,l=c.get("additionalDeviceStatusButtons");function h(t){f.status=i.status(t)}function p(){return(p=_asyncToGenerator(_regeneratorRuntime().mark(function t(){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.delete(f.device);case 2:n.success(r("Device deleted.")),e.path("/device");case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}_.assign(f,{$onInit:function(){o.detailRealtime(f.config.device.id,t,h).then(function(e){f.device=e,f.displayRestartBtn=o.supportsOperation(e,"c8y_Restart"),f.additionalButtonsInfo=l.filter(function(t){return t.canShowButton(e)}).map(function(t){return t.getButtonInfo()})})},restart:function(){a.create({deviceId:f.device.id,description:s,c8y_Restart:{}}).then(function(){n.success(r("Device will be restarted."))})},deleteDevice:function(){return p.apply(this,arguments)}})}t.$inject=["$scope","$location","gettext","c8yAlert","c8yDevices","c8yDeviceStatus","c8yDeviceControl","c8yServiceRegistry","c8yDeviceGridService"],angular.module("c8y.deviceStatus").component("c8yDeviceStatus",{controller:t,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/deviceStatus.html",bindings:{config:"<"}})})();
@@ -1 +1 @@
1
- "use strict";!function(){function e(e,t){e.add({name:"deviceStatusWidget",nameDisplay:t("Device status"),description:t("Widget displays connectivity status for particular device"),widgetComponent:"c8yDeviceStatus",previewImage:"c8y-style-assets/dm-device-status-widget.png",options:{groupSelectable:!1}})}e.$inject=["c8yComponentsProvider","gettext"],angular.module("c8y.deviceStatus",[]).config(e)}();
1
+ (()=>{function e(e,t){e.add({name:"deviceStatusWidget",nameDisplay:t("Device status"),description:t("Widget displays connectivity status for particular device"),widgetComponent:"c8yDeviceStatus",previewImage:"c8y-style-assets/dm-device-status-widget.png",options:{groupSelectable:!1}})}e.$inject=["c8yComponentsProvider","gettext"],angular.module("c8y.deviceStatus",[]).config(e)})();
@@ -1 +1 @@
1
- "use strict";!function(){function e(e){var t=e.createEnum(["Enter","Escape"]);return{handle:function(e,a,n){e.key===t.Enter.value?a():e.key===t.Escape.value&&n()}}}e.$inject=["c8yBase"],angular.module("c8y.deviceStatus").factory("keyboardKeyHandler",e)}();
1
+ (()=>{function e(e){var c=e.createEnum(["Enter","Escape"]);return{handle:function(e,a,n){e.key===c.Enter.value?a():e.key===c.Escape.value&&n()}}}e.$inject=["c8yBase"],angular.module("c8y.deviceStatus").factory("keyboardKeyHandler",e)})();
@@ -1 +1 @@
1
- "use strict";!function(){function e(n,e,i,t,o,r,c,s,a,d,u){var l,v=this,h=d("Enable/disable owner"),w=d("You don't have permission to admin this device.");function g(){r.hasId(v.device)&&(v.ownerInfoFetched=!1,o.canAdminMOs([v.device]).then(function(e){return v.canAdminDevice=e,v.canAdminDevice?n.resolve():(c.danger(w),n.reject())}).then(f).finally(function(){v.ownerInfoFetched=!0}))}function f(){return b(!1),i.getOwnerObject(_.get(v,"device.id"),{silentError:!0}).then(function(e){v.owner=e}).catch(function(e){e.serviceUser&&b(e.serviceUser),e.accessDenied&&(v.errorTooltipMessage=d("You don't have permission to enable/disable this owner user.")),e.notFound&&!e.serviceUser&&c.danger(u.getString('Device owner not found for device "{{name}}".',v.device)),e.accessDenied||e.notFound||e.serviceUser||c.danger(r.getResErrorMessage(e))})}function m(){v.isEditMode?v.isEditMode=!1:(v.isEditMode=!0,l=_.get(v,"device.owner"))}function b(e){_.set(v,"serviceUserDevice",e)}function y(){var e,n;v.device.owner?(n=d("Change owner`owner may be a human or system user`"),e=d("Change owner`owner may be a human or system user`"),n={status:"warning",title:n,body:u.getString('You are about to change the owner of this device to "{{ owner }}" user. Unless the credentials on the device are changed accordingly this may interrupt the communication between this device and the platform. Do you want to proceed?',{owner:v.device.owner}),size:"sm",labels:{ok:e,cancel:d("Cancel")}},s(n).then(function(){m(),t.detail(_.get(v,"device.owner"),{silentError:!0}).then(function(){return i.save(_.pick(v.device,["id","owner"]))}).then(function(){c.success(d("Device owner updated."))}).then(function(){g()}).catch(function(){var e=v.device.owner;D(l),c.danger(u.getString('Could not find user "{{errorUser}}". Device owner reverted to "{{owner}}".',{errorUser:e,owner:v.device.owner}))})}).catch(function(){p()})):p()}function p(){m(),D(l)}function D(e){_.set(v,"device.owner",e)}_.assign(v,{$onChanges:function(e){e.device.currentValue&&g()},toggleOwner:function(e){function n(){v.owner.enabled=!t}var t=e.target.checked,o=_.get(v,"device.id");o&&v.canAdminDevice||n();var e=d(t?"Enable owner":"Disable owner"),r=d(t?"You are about to enable this device owner. Do you want to proceed?":"You are about to disable this device owner, this user will be locked and logged out of the platform. Do you want to proceed?"),r={title:e,body:r,status:"danger",size:"sm",labels:{ok:e,cancel:d("Cancel")}};s(r).then(function(){return i.setOwnerEnabled(o,t).then(function(e){v.owner=e,c.success(d("Owner status updated."))}).catch(n)}).catch(n)},toggleEdit:m,getTooltip:function(){return v.errorTooltipMessage?"":h},keyPressHandler:function(e){return a.handle(e,y,p)},save:y,cancel:p,shouldShowToggle:function(){return!v.isEditMode&&v.ownerInfoFetched&&!v.serviceUserDevice}})}e.$inject=["$q","$scope","c8yInventory","c8yUser","c8yPermissions","c8yBase","c8yAlert","c8yModal","keyboardKeyHandler","gettext","gettextCatalog"],angular.module("c8y.deviceStatus").component("ownerStatus",{controller:e,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/ownerStatus.html",bindings:{device:"<"}})}();
1
+ (()=>{function e(n,e,i,t,o,r,c,s,a,d,u){var l,v=this,h=d("Enable/disable owner"),w=d("You don't have permission to admin this device.");function g(){r.hasId(v.device)&&(v.ownerInfoFetched=!1,o.canAdminMOs([v.device]).then(function(e){return v.canAdminDevice=e,v.canAdminDevice?n.resolve():(c.danger(w),n.reject())}).then(f).finally(function(){v.ownerInfoFetched=!0}))}function f(){return b(!1),i.getOwnerObject(_.get(v,"device.id"),{silentError:!0}).then(function(e){v.owner=e}).catch(function(e){e.serviceUser&&b(e.serviceUser),e.accessDenied&&(v.errorTooltipMessage=d("You don't have permission to enable/disable this owner user.")),e.notFound&&!e.serviceUser&&c.danger(u.getString('Device owner not found for device "{{name}}".',v.device)),e.accessDenied||e.notFound||e.serviceUser||c.danger(r.getResErrorMessage(e))})}function m(){v.isEditMode?v.isEditMode=!1:(v.isEditMode=!0,l=_.get(v,"device.owner"))}function b(e){_.set(v,"serviceUserDevice",e)}function y(){var e,n;v.device.owner?(n=d("Change owner`owner may be a human or system user`"),e=d("Change owner`owner may be a human or system user`"),n={status:"warning",title:n,body:u.getString('You are about to change the owner of this device to "{{ owner }}" user. Unless the credentials on the device are changed accordingly this may interrupt the communication between this device and the platform. Do you want to proceed?',{owner:v.device.owner}),size:"sm",labels:{ok:e,cancel:d("Cancel")}},s(n).then(function(){m(),t.detail(_.get(v,"device.owner"),{silentError:!0}).then(function(){return i.save(_.pick(v.device,["id","owner"]))}).then(function(){c.success(d("Device owner updated."))}).then(function(){g()}).catch(function(){var e=v.device.owner;D(l),c.danger(u.getString('Could not find user "{{errorUser}}". Device owner reverted to "{{owner}}".',{errorUser:e,owner:v.device.owner}))})}).catch(function(){p()})):p()}function p(){m(),D(l)}function D(e){_.set(v,"device.owner",e)}_.assign(v,{$onChanges:function(e){e.device.currentValue&&g()},toggleOwner:function(e){function n(){v.owner.enabled=!t}var t=e.target.checked,o=_.get(v,"device.id");o&&v.canAdminDevice||n();var e=d(t?"Enable owner":"Disable owner"),r=d(t?"You are about to enable this device owner. Do you want to proceed?":"You are about to disable this device owner, this user will be locked and logged out of the platform. Do you want to proceed?"),r={title:e,body:r,status:"danger",size:"sm",labels:{ok:e,cancel:d("Cancel")}};s(r).then(function(){return i.setOwnerEnabled(o,t).then(function(e){v.owner=e,c.success(d("Owner status updated."))}).catch(n)}).catch(n)},toggleEdit:m,getTooltip:function(){return v.errorTooltipMessage?"":h},keyPressHandler:function(e){return a.handle(e,y,p)},save:y,cancel:p,shouldShowToggle:function(){return!v.isEditMode&&v.ownerInfoFetched&&!v.serviceUserDevice}})}e.$inject=["$q","$scope","c8yInventory","c8yUser","c8yPermissions","c8yBase","c8yAlert","c8yModal","keyboardKeyHandler","gettext","gettextCatalog"],angular.module("c8y.deviceStatus").component("ownerStatus",{controller:e,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/ownerStatus.html",bindings:{device:"<"}})})();
@@ -1 +1 @@
1
- "use strict";!function(){function e(a,n,i,t,r){var s,e,l=this,c=60,d={c8yMax:{required_availability:r("Required interval must be a number and cannot be longer than 32767 minutes.")},c8yMin:{required_availability:r("Required interval must be a positive number.")}};function o(){(e=l.device).c8y_RequiredAvailability=e.c8y_RequiredAvailability||{},e.c8y_RequiredAvailability&&e.c8y_RequiredAvailability.responseInterval<0||(i=Math.round(l.responseInterval),e.c8y_RequiredAvailability.responseInterval=i,e.c8y_Tracking&&e.c8y_Tracking.interval&&e.c8y_Tracking.interval!==i*c&&(i=e.c8y_Tracking.interval>i*c?r("Changing this value can cause showing false offline statuses and prevent alarms from being created as early as possible"):r("Changing this value can cause showing false online statuses and prevent alarms from being created as early as possible"),a.add({text:i,type:"warning"})),v(e.c8y_RequiredAvailability));var e,i=_.pick(l.device,["id","c8y_RequiredAvailability"]);return l.saveInProgress=!0,n.save(i).then(function(){l.saveInProgress=!1,u()}).then(function(){a.success(r("Required interval updated."))})}function v(e){var i=e&&0!==e.responseInterval;_.set(l,"responseInterval",i?Math.abs(Number(e.responseInterval)):void 0)}function u(){l.isEditMode?l.isEditMode=!1:(e=l.responseInterval,l.isEditMode=!0)}function y(){l.responseInterval=e,l.isEditMode=!1}_.assign(l,{isEditMode:!1,saveInProgress:!1,maxRequiredIntervalLimit:32767,save:o,switchMaintenance:function(e){n.switchResponseInterval(e)},$doCheck:function(){!function(){var e=_.get(l.device,"c8y_RequiredAvailability");_.isEqual(e,s)||(!function(e){v(e)}(e),s=e)}()},toggleEdit:u,resetEdit:y,validationHints:function(e){return i.validationHints(e,d)},keyHandler:function(e){return t.handle(e,o,y)},invalid:angular.bind(i,i.invalid,l,"availabilityForm")})}e.$inject=["c8yAlert","c8yDevices","c8yBase","keyboardKeyHandler","gettext"],angular.module("c8y.deviceStatus").component("requiredAvailabilityIntervalSetting",{controller:e,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/requiredAvailabilityIntervalSetting.html",bindings:{device:"<",status:"<"}})}();
1
+ (()=>{function e(a,n,i,t,r){var s,e,l=this,c=60,d={c8yMax:{required_availability:r("Required interval must be a number and cannot be longer than 32767 minutes.")},c8yMin:{required_availability:r("Required interval must be a positive number.")}};function v(){(e=l.device).c8y_RequiredAvailability=e.c8y_RequiredAvailability||{},e.c8y_RequiredAvailability&&e.c8y_RequiredAvailability.responseInterval<0||(i=Math.round(l.responseInterval),e.c8y_RequiredAvailability.responseInterval=i,e.c8y_Tracking&&e.c8y_Tracking.interval&&e.c8y_Tracking.interval!==i*c&&(i=e.c8y_Tracking.interval>i*c?r("Changing this value can cause showing false offline statuses and prevent alarms from being created as early as possible"):r("Changing this value can cause showing false online statuses and prevent alarms from being created as early as possible"),a.add({text:i,type:"warning"})),o(e.c8y_RequiredAvailability));var e,i=_.pick(l.device,["id","c8y_RequiredAvailability"]);return l.saveInProgress=!0,n.save(i).then(function(){l.saveInProgress=!1,u()}).then(function(){a.success(r("Required interval updated."))})}function o(e){var i=e&&0!==e.responseInterval;_.set(l,"responseInterval",i?Math.abs(Number(e.responseInterval)):void 0)}function u(){l.isEditMode?l.isEditMode=!1:(e=l.responseInterval,l.isEditMode=!0)}function y(){l.responseInterval=e,l.isEditMode=!1}_.assign(l,{isEditMode:!1,saveInProgress:!1,maxRequiredIntervalLimit:32767,save:v,switchMaintenance:function(e){n.switchResponseInterval(e)},$doCheck:function(){(()=>{var e=_.get(l.device,"c8y_RequiredAvailability");_.isEqual(e,s)||(o(e),s=e)})()},toggleEdit:u,resetEdit:y,validationHints:function(e){return i.validationHints(e,d)},keyHandler:function(e){return t.handle(e,v,y)},invalid:angular.bind(i,i.invalid,l,"availabilityForm")})}e.$inject=["c8yAlert","c8yDevices","c8yBase","keyboardKeyHandler","gettext"],angular.module("c8y.deviceStatus").component("requiredAvailabilityIntervalSetting",{controller:e,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/requiredAvailabilityIntervalSetting.html",bindings:{device:"<",status:"<"}})})();
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "Device title",
3
+ "ngModules": ["c8y.deviceTitle"],
4
+ "category": "Device",
5
+ "description": "Shows title for devices.",
6
+ "js": ["index.js"]
7
+ }
@@ -0,0 +1 @@
1
+ angular.module("c8y.deviceTitle",[]).config(["c8yTitleProvider",function(t){function i(e){return{title:e}}_.forEach(["/device/:deviceId","/service/:deviceId"],function(e){t.addTitle(e,{data:["$routeParams","c8yBase","c8yDevices",function(e,t,c){e=e.deviceId;return e?c.detailCached(e).then(t.getResData).then(c.properName).then(i):{}}]})})}]);
@@ -1 +1 @@
1
- "use strict";!function(){function t(n,t,o,l,a,r){var i,u=t.deviceId,c={},t=!u,e=a("Availability percentage is based on the number of critical alarms raised and cleared."),d=a("Operability chart displays how many devices had their average availability on particular level in the last 30 days."),v=o.createEnum([{name:"DAY",value:1,label:a("Last 24 hours availability")},{name:"WEEK",value:7,label:a("Last 7 days availability")},{name:"MONTH",value:30,label:a("Last 30 days availability")}]),m=o.createEnum([{name:"DOWNTIME",value:"downtime",label:a("Downtime"),color:"#d9534f"},{name:"UPTIME",value:"uptime",label:a("Uptime"),color:"#5cb85c"}]);function s(r){t=r,a=moment(),t=moment().subtract(t.value,"days"),e=o.dateFullFormat;var t,a,e,i={dateFrom:t.format(e),dateTo:a.format(e),id:u};return(i.id?l.reports.downtimeDuration(i):l.reports.downtimeDurationAggregation(i)).then(function(t){var a,e,n;a=r,e=i,t=t.data,n=t.downtimeDuration,e=f(i,t)-n,c[a.name]={name:a.name,label:a.label,order:a.ordinal,data:[{key:m.DOWNTIME.value,val:n},{key:m.UPTIME.value,val:e}]}})}function f(t,a){var a=1<arguments.length&&void 0!==a?a:{},e=moment(t.dateFrom),t=moment(t.dateTo),n=1;return"number"==typeof a.deviceCount?n=a.deviceCount:Array.isArray(a.availabilityStats)&&(n=a.availabilityStats.length),t.diff(e,"seconds")*(n||1)}function y(t){var a=_.find(t,{key:m.UPTIME.value}).val;return a/(a+_.find(t,{key:m.DOWNTIME.value}).val)*100}_.assign(n,{intervalsData:c,showOverviewBreadcrumbs:t,availabilityTooltip:e,operabilityTooltip:d,x:function(){return function(t){return t.key}},y:function(){return function(t){return t.val}},xGraph:function(){return function(t){return t[0]}},yGraph:function(){return function(t){return t[1]}},xTickFormat:function(){return function(t){return"".concat(t,"%")}},color:function(){return function(t){return _.find(m,{value:t.data.key}).color}},colorGraph:function(){return function(){return m.UPTIME.color}},tooltip:function(){return function(t){return r.getString(_.find(m,{value:t}).label)}},tooltipGraph:function(){return function(t,a,e){e=Math.round(e);return r.getPlural(e,"1 device","{{$count}} devices",{})}},percentage:y,percentageClass:function(t){return 50<y(t)?"text-success":"text-danger"}}),v.values().forEach(s),u||(a=o.dateFullFormat,i={dateFrom:moment().subtract(30,"day").format(a),dateTo:moment().format(a)},l.reports.downtimeDuration(i).then(function(t){var a,e;a=i,t=(t=t.data).availabilityStats,e=f(a),a=t.map(function(t){var a=t.downtimeDuration;return t.percent=100*(e-a)/e,t}),n.graphData=[{key:"operability",values:function(a){for(var n=10,r=[],t=function(){var e=i*n,t=a.filter(function(t){return a=e,(t=t).percent<=a&&t.percent>a-n;var a}).length;r.push([e,t])},i=0;i<=10;i++)t();return r}(a)}]}))}t.$inject=["$scope","$routeParams","c8yBase","c8yAlarms","gettext","gettextCatalog"],angular.module("c8y.parts.availability").controller("availabilityReportCtrl",t)}();
1
+ (()=>{function t(n,t,o,l,a,r){var i,u=t.deviceId,c={},t=!u,e=a("Availability percentage is based on the number of critical alarms raised and cleared."),d=a("Operability chart displays how many devices had their average availability on particular level in the last 30 days."),v=o.createEnum([{name:"DAY",value:1,label:a("Last 24 hours availability")},{name:"WEEK",value:7,label:a("Last 7 days availability")},{name:"MONTH",value:30,label:a("Last 30 days availability")}]),m=o.createEnum([{name:"DOWNTIME",value:"downtime",label:a("Downtime"),color:"#d9534f"},{name:"UPTIME",value:"uptime",label:a("Uptime"),color:"#5cb85c"}]);function s(r){t=r,a=moment(),t=moment().subtract(t.value,"days"),e=o.dateFullFormat;var t,a,e,i={dateFrom:t.format(e),dateTo:a.format(e),id:u};return(i.id?l.reports.downtimeDuration(i):l.reports.downtimeDurationAggregation(i)).then(function(t){var a,e,n;a=r,e=i,t=t.data,n=t.downtimeDuration,e=f(i,t)-n,c[a.name]={name:a.name,label:a.label,order:a.ordinal,data:[{key:m.DOWNTIME.value,val:n},{key:m.UPTIME.value,val:e}]}})}function f(t,a){var a=1<arguments.length&&void 0!==a?a:{},e=moment(t.dateFrom),t=moment(t.dateTo),n=1;return"number"==typeof a.deviceCount?n=a.deviceCount:Array.isArray(a.availabilityStats)&&(n=a.availabilityStats.length),t.diff(e,"seconds")*(n||1)}function y(t){var a=_.find(t,{key:m.UPTIME.value}).val;return a/(a+_.find(t,{key:m.DOWNTIME.value}).val)*100}_.assign(n,{intervalsData:c,showOverviewBreadcrumbs:t,availabilityTooltip:e,operabilityTooltip:d,x:function(){return function(t){return t.key}},y:function(){return function(t){return t.val}},xGraph:function(){return function(t){return t[0]}},yGraph:function(){return function(t){return t[1]}},xTickFormat:function(){return function(t){return"".concat(t,"%")}},color:function(){return function(t){return _.find(m,{value:t.data.key}).color}},colorGraph:function(){return function(){return m.UPTIME.color}},tooltip:function(){return function(t){return r.getString(_.find(m,{value:t}).label)}},tooltipGraph:function(){return function(t,a,e){e=Math.round(e);return r.getPlural(e,"1 device","{{$count}} devices",{})}},percentage:y,percentageClass:function(t){return 50<y(t)?"text-success":"text-danger"}}),v.values().forEach(s),u||(a=o.dateFullFormat,i={dateFrom:moment().subtract(30,"day").format(a),dateTo:moment().format(a)},l.reports.downtimeDuration(i).then(function(t){var a,e;a=i,t=(t=t.data).availabilityStats,e=f(a),a=t.map(function(t){var a=t.downtimeDuration;return t.percent=100*(e-a)/e,t}),n.graphData=[{key:"operability",values:(a=>{for(var n=10,r=[],t=function(){var e=i*n,t=a.filter(function(t){return a=e,(t=t).percent<=a&&t.percent>a-n;var a}).length;r.push([e,t])},i=0;i<=10;i++)t();return r})(a)}]}))}t.$inject=["$scope","$routeParams","c8yBase","c8yAlarms","gettext","gettextCatalog"],angular.module("c8y.parts.availability").controller("availabilityReportCtrl",t)})();
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.parts.availability",["nvd3ChartDirectives"]).config(["c8yViewsProvider","c8yNavigatorProvider","c8yTitleProvider","gettext",function(i,e,a,t){var l="signal",n={name:t("Availability"),icon:l,templateUrl:"".concat(":::PLUGIN_PATH:::/views/","detail.html"),controller:"availabilityReportCtrl",showIfPermissions:{allRoles:["ROLE_ALARM_READ"],anyRole:["ROLE_INVENTORY_READ","ROLE_MANAGED_OBJECT_READ"]}},o="availability";e.addNavigation({parent:t("Devices"),name:t("Availability"),icon:l,path:o,showIfPermissions:{allRoles:["ROLE_ALARM_READ"],anyRole:["ROLE_INVENTORY_READ","ROLE_MANAGED_OBJECT_READ"]}}),i.when("/device/:deviceId",_.cloneDeep(n)),i.when("/".concat(o),_.cloneDeep(n)),a.addTitle("/".concat(o),{data:function(){return{title:t("Availability")}}})}]);
1
+ angular.module("c8y.parts.availability",["nvd3ChartDirectives"]).config(["c8yViewsProvider","c8yNavigatorProvider","c8yTitleProvider","gettext",function(i,a,e,l){var t="signal",n={name:l("Availability"),icon:t,templateUrl:"".concat(":::PLUGIN_PATH:::/views/","detail.html"),controller:"availabilityReportCtrl",showIfPermissions:{allRoles:["ROLE_ALARM_READ"],anyRole:["ROLE_INVENTORY_READ","ROLE_MANAGED_OBJECT_READ"]}},o="availability";a.addNavigation({parent:l("Devices"),name:l("Availability"),icon:t,path:o,showIfPermissions:{allRoles:["ROLE_ALARM_READ"],anyRole:["ROLE_INVENTORY_READ","ROLE_MANAGED_OBJECT_READ"]}}),i.when("/device/:deviceId",_.cloneDeep(n)),i.when("/".concat(o),_.cloneDeep(n)),e.addTitle("/".concat(o),{data:function(){return{title:l("Availability")}}})}]);
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.parts.deviceListMap").controller("deviceListMapVPCtrl",["$scope","c8yTitle","gettext","gettextCatalog","c8yConfig",function(e,t,a,i,r){var l;e.cssClass="fixedFullArea",e.markerTemplate=r.deviceListMap.markerTemplate||null,e.realtime=r.deviceListMap.realtime||!1,e.legend=r.deviceListMap.legend||!1,e.refresh=function(){e.$broadcast("refresh")},e.paging={refresh:!0},t.changeTitle({title:a("Device map"),subtitle:l?i.getString("{{qty}} markers",{qty:l}):void 0})}]);
1
+ angular.module("c8y.parts.deviceListMap").controller("deviceListMapVPCtrl",["$scope","c8yTitle","gettext","gettextCatalog","c8yConfig",function(e,t,a,i,r){var l;e.cssClass="fixedFullArea",e.markerTemplate=r.deviceListMap.markerTemplate||null,e.realtime=r.deviceListMap.realtime||!1,e.legend=r.deviceListMap.legend||!1,e.refresh=function(){e.$broadcast("refresh")},e.paging={refresh:!0},t.changeTitle({title:a("Device map"),subtitle:l?i.getString("{{qty}} markers",{qty:l}):void 0})}]);
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.parts.deviceListMap",[]).constant("c8yMapsConfiguration",{deviceListMap:{},tracking:{}}).config(["$routeProvider","c8yNavigatorProvider","gettext","c8yMapsConfiguration",function(i,a,e,t){a.addNavigation(t.deviceListMap.navigation||{parent:e("Devices"),name:e("Map"),priority:1900,path:"devicemap",icon:"c8y-location"}),i.when("/devicemap",{templateUrl:":::PLUGIN_PATH:::/views/index.html"})}]);
1
+ angular.module("c8y.parts.deviceListMap",[]).constant("c8yMapsConfiguration",{deviceListMap:{},tracking:{}}).config(["$routeProvider","c8yNavigatorProvider","gettext","c8yMapsConfiguration",function(i,a,e,t){a.addNavigation(t.deviceListMap.navigation||{parent:e("Devices"),name:e("Map"),priority:1900,path:"devicemap",icon:"c8y-location"}),i.when("/devicemap",{templateUrl:":::PLUGIN_PATH:::/views/index.html"})}]);
@@ -5,12 +5,7 @@
5
5
  "icon": "home",
6
6
  "color": "#F03F0F",
7
7
  "description": "Manage the technical aspects of a device and ensure it is working correctly. View technical details, including hardware, mobile network and configuration data. Manage the installed firmware and software of the device. Reconfigure the device setttings. This plugin contributes the firmware and software repository entries in the navigator. Additionally it adds views to the device detail. ",
8
- "imports": [
9
- "core/deviceConfiguration",
10
- "core/deviceDetail",
11
- "core/generic-ui",
12
- "core/configurationRepository"
13
- ],
8
+ "imports": ["core/deviceDetail", "core/generic-ui"],
14
9
  "folderName": "deviceManagement",
15
10
  "js": ["devicemanagement.module.js"],
16
11
  "appsInclude": ["devicemanagement"]
@@ -1 +1 @@
1
- "use strict";!function(){function e(e,c,i){e.configDefaultView(),c.provideDeviceTab(),i.initUi()}e.$inject=["c8yGenericUiConfigProvider","c8yRemoteAccessUIProvider","c8yDeviceProtocolUiProvider"],angular.module("c8y.deviceManagement",["c8y.genericUi","c8y.remoteAccess","c8y.deviceProtocols"]).config(e)}();
1
+ (()=>{function e(e,c,i){e.configDefaultView(),c.provideDeviceTab(),i.initUi()}e.$inject=["c8yGenericUiConfigProvider","c8yRemoteAccessUIProvider","c8yDeviceProtocolUiProvider"],angular.module("c8y.deviceManagement",["c8y.genericUi","c8y.remoteAccess","c8y.deviceProtocols"]).config(e)})();
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.deviceNetwork").controller("deviceNetworkCtrl",["$scope","c8yBase","c8yDeviceControl","c8ySettings","c8yAlert","gettext",function(a,e,r,t,n,s){var i=[{value:"pap",label:"PAP"},{value:"chap",label:"CHAP"},{value:"none",label:s("None")}],o=[{substr:{start:0,count:1},leadingBits:"0",netmask:"255.0.0.0"},{substr:{start:0,count:2},leadingBits:"10",netmask:"255.255.0.0"},{substr:{start:0,count:3},leadingBits:"110",netmask:"255.255.255.0"}];function c(e){return _.isBoolean(e)?e:Boolean(e)}function d(e,t){var n=e.c8y_Network.c8y_WAN,e={deviceId:e.id,description:s("Configure WAN settings"),deliveryType:t,c8y_Network:{c8y_WAN:{apn:n.apn,username:n.username,password:n.password,authType:n.authType}}};return r.create(e).then(_.partial(l,s("Sent operation to apply WAN settings."),a.wanForm))}function l(e,t){n.success(e),t&&t.$setPristine()}a.patterns={MAC:/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/},a.authTypes=i,a.invalid=angular.bind(e,e.invalid,a),a.onLanIpChanged=function(e){e.netmask=function(e){var t;{var n;e&&(e=e.split("."),n=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"0",e="".concat(e);return e.length>=t?e:new Array(t-e.length+1).join(n)+e}(parseInt(e[0],10).toString(2),8),t=null,_.forEach(o,function(e){n.substr(e.substr.start,e.substr.count)===e.leadingBits&&(t=e.netmask)}))}return t}(e.ip)},a.saveWANviaIP=function(e){return d(e)},a.saveWANviaSMS=function(e){return d(e,"SMS")},a.saveLANandDHCP=function(e){var t=e.c8y_Network.c8y_LAN,t={deviceId:e.id,description:s("Configure LAN settings"),c8y_Network:{c8y_LAN:{enabled:t.enabled?1:0,ip:t.ip,netmask:t.netmask}}},n=e.c8y_Network.c8y_DHCP,e={deviceId:e.id,description:s("Configure DHCP settings"),c8y_Network:{c8y_DHCP:{enabled:n.enabled?1:0,addressRange:n.addressRange,dns1:n.dns1,dns2:n.dns2,domainName:n.domainName}}};Promise.all(r.create(t),r.create(e)).then(_.partial(l,n.enabled?s("Sent operation to apply LAN and DHCP settings."):s("Sent operation to apply LAN settings."),a.lanDhcpForm))},a.$watch("device",function(e){_.update(e,"c8y_Network.c8y_LAN.enabled",c),_.update(e,"c8y_Network.c8y_DHCP.enabled",c)}),t.getSystemOptionValue({category:"messaging",key:"provider"},!1).then(function(e){a.smsEnabled=!!e})}]);
1
+ angular.module("c8y.deviceNetwork").controller("deviceNetworkCtrl",["$scope","c8yBase","c8yDeviceControl","c8ySettings","c8yAlert","gettext",function(a,e,r,t,n,s){var i=[{value:"pap",label:"PAP"},{value:"chap",label:"CHAP"},{value:"none",label:s("None")}],o=[{substr:{start:0,count:1},leadingBits:"0",netmask:"255.0.0.0"},{substr:{start:0,count:2},leadingBits:"10",netmask:"255.255.0.0"},{substr:{start:0,count:3},leadingBits:"110",netmask:"255.255.255.0"}];function c(e){return _.isBoolean(e)?e:Boolean(e)}function d(e,t){var n=e.c8y_Network.c8y_WAN,e={deviceId:e.id,description:s("Configure WAN settings"),deliveryType:t,c8y_Network:{c8y_WAN:{apn:n.apn,username:n.username,password:n.password,authType:n.authType}}};return r.create(e).then(_.partial(l,s("Sent operation to apply WAN settings."),a.wanForm))}function l(e,t){n.success(e),t&&t.$setPristine()}a.patterns={MAC:/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/},a.authTypes=i,a.invalid=angular.bind(e,e.invalid,a),a.onLanIpChanged=function(e){e.netmask=(e=>{var t,n;return e&&(e=e.split("."),n=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"0",e="".concat(e);return e.length>=t?e:new Array(t-e.length+1).join(n)+e}(parseInt(e[0],10).toString(2),8),t=null,_.forEach(o,function(e){n.substr(e.substr.start,e.substr.count)===e.leadingBits&&(t=e.netmask)})),t})(e.ip)},a.saveWANviaIP=function(e){return d(e)},a.saveWANviaSMS=function(e){return d(e,"SMS")},a.saveLANandDHCP=function(e){var t=e.c8y_Network.c8y_LAN,t={deviceId:e.id,description:s("Configure LAN settings"),c8y_Network:{c8y_LAN:{enabled:t.enabled?1:0,ip:t.ip,netmask:t.netmask}}},n=e.c8y_Network.c8y_DHCP,e={deviceId:e.id,description:s("Configure DHCP settings"),c8y_Network:{c8y_DHCP:{enabled:n.enabled?1:0,addressRange:n.addressRange,dns1:n.dns1,dns2:n.dns2,domainName:n.domainName}}};Promise.all(r.create(t),r.create(e)).then(_.partial(l,n.enabled?s("Sent operation to apply LAN and DHCP settings."):s("Sent operation to apply LAN settings."),a.lanDhcpForm))},a.$watch("device",function(e){_.update(e,"c8y_Network.c8y_LAN.enabled",c),_.update(e,"c8y_Network.c8y_DHCP.enabled",c)}),t.getSystemOptionValue({category:"messaging",key:"provider"},!1).then(function(e){a.smsEnabled=!!e})}]);
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.deviceNetwork",[]).config(["c8yViewsProvider","gettext",function(e,t){e.when("/device/:deviceId",{templateUrl:"".concat(":::PLUGIN_PATH:::/views/","network.html"),name:t("Network"),priority:500,icon:"globe",showIf:["$routeParams","c8yBase","c8yDevices",function(e,t,c){e=e.deviceId;return c.detailCached(e).then(t.getResData).then(function(e){return!_.isUndefined(e.c8y_Network)})}],controller:["$scope","$routeParams","c8yBase","c8yDevices",function(t,e,c,i){t.device={},i.detailCached(e.deviceId).then(c.getResData).then(function(e){t.device=e})}]})}]);
1
+ angular.module("c8y.deviceNetwork",[]).config(["c8yViewsProvider","gettext",function(e,t){e.when("/device/:deviceId",{templateUrl:"".concat(":::PLUGIN_PATH:::/views/","network.html"),name:t("Network"),priority:500,icon:"globe",showIf:["$routeParams","c8yBase","c8yDevices",function(e,t,c){e=e.deviceId;return c.detailCached(e).then(t.getResData).then(function(e){return!_.isUndefined(e.c8y_Network)})}],controller:["$scope","$routeParams","c8yBase","c8yDevices",function(t,e,c,n){t.device={},n.detailCached(e.deviceId).then(c.getResData).then(function(e){t.device=e})}]})}]);
@@ -1 +1 @@
1
- "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}!function(){function e(e){e=_objectSpread(_objectSpread({},e),{},{pageSize:50});_.assign(this,{filters:e})}e.$inject=["$routeParams"],angular.module("c8y.parts.eventList").controller("eventListCtrl",e)}();
1
+ function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{function e(e){e=_objectSpread(_objectSpread({},e),{},{pageSize:50});_.assign(this,{filters:e})}e.$inject=["$routeParams"],angular.module("c8y.parts.eventList").controller("eventListCtrl",e)})();
@@ -1 +1 @@
1
- "use strict";!function(){function e(e,n,t){var i="c8y-events";e.addNavigation({parent:{name:t("Overviews"),icon:"c8y-overviews"},name:t("Events"),priority:1300,icon:i,path:"events"}),n.when("/events",{icon:i,name:t("Events"),templateUrl:":::PLUGIN_PATH:::/views/index.html"}),n.when("/device/:deviceId",{icon:i,name:t("Events"),templateUrl:":::PLUGIN_PATH:::/views/index.html"}),n.when("/service/:deviceId",{icon:i,name:t("Events"),templateUrl:":::PLUGIN_PATH:::/views/index.html"})}e.$inject=["c8yNavigatorProvider","c8yViewsProvider","gettext"],angular.module("c8y.parts.eventList",[]).config(e)}();
1
+ (()=>{function e(e,n,i){var t="c8y-events";e.addNavigation({parent:{name:i("Overviews"),icon:"c8y-overviews"},name:i("Events"),priority:1300,icon:t,path:"events"}),n.when("/events",{icon:t,name:i("Events"),templateUrl:":::PLUGIN_PATH:::/views/index.html"}),n.when("/device/:deviceId",{icon:t,name:i("Events"),templateUrl:":::PLUGIN_PATH:::/views/index.html"}),n.when("/service/:deviceId",{icon:t,name:i("Events"),templateUrl:":::PLUGIN_PATH:::/views/index.html"})}e.$inject=["c8yNavigatorProvider","c8yViewsProvider","gettext"],angular.module("c8y.parts.eventList",[]).config(e)})();
@@ -1 +1 @@
1
- "use strict";!function(){function e(t,n,e,a,i,o,l,c,d){var r,s,u="c8y_Position",g="com_nsn_startups_vendme_fragments_GPSCoordinates",f={},m={icon:{type:"div",className:"normal-marker-icon",iconSize:[25,41],iconAnchor:[12.5,41]},focus:!0,draggable:!0};function v(e){d.getMap("locationId").then(function(e){setTimeout(function(){e.invalidateSize(!0)},500)}),r=e,t.location=A(e)||{};var n,e=t.location;b(t.location),s=_.clone(e),(n=e).lat&&n.lng&&$(e)}function b(e){var n=_.get(e,"lat"),t=_.get(e,"lng"),a=_.get(e,"alt");_.set(e,"lat",_.toNumber(n)),_.set(e,"lng",_.toNumber(t)),_.isUndefined(a)||_.set(e,"alt",_.toNumber(a))}function h(e){e&&($(e={lat:Number(e.lat),lng:Number(e.lng),zoom:17}),C(e),D(e))}function p(){var e;i.detailCached(((e=_.get(t,"child.config.device"))&&(m.draggable=!1),_.get(e,"id",n.deviceId))).then(function(e){return _.cloneDeep(e.data)}).then(v)}function $(e){_.assign(m,{lat:parseFloat(e.lat),lng:parseFloat(e.lng)}),D(f.main=m)}function C(e){_.assign(t.location,{lat:parseFloat(e.lat),lng:(e=parseFloat(e.lng),(e%=360)<-180?360+e:180<e?e-360:e)})}function y(e){return i.isVendme(e)?g:u}function A(e){return e[y(e)]}function D(e){e=e||m;_.assign(t.center,e)}_.assign(t,{settings:{},markers:f,mapDefaults:{scrollWheelZoom:!1},centerMap:D,center:{lat:0,lng:0,zoom:11},pattern:{latitude:/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/,longitude:/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/,altitude:/^[-+]?(0|([1-9]\d*))(\.\d+)?$/},events:{markers:{enable:["dragend"]}},gotoAddress:function(e){a.geoCode(e).then(function(e){e=_.get(e,"data[0]");return e?(e.lng=e.lon,e):(l.warning(c("Address could not be found.")),null)}).then(h)},cancel:function(){t.noeditable=!t.noeditable,_.isEqual(t.location,s)||(t.location=_.clone(s))},save:function(){t.noeditable=!t.noeditable;var e={id:r.id},n=_.clone(A(r));delete n.address,e[y(r)]=n,b(e[y(r)]),i.save(e).then(function(){l.success(c("Location saved."))}).then(p)},realtimeChannel:"/managedobjects/".concat(void 0!==n.deviceId?n.deviceId:"*"),invalid:angular.bind(e,e.invalid,t),id:t.$id}),t.$on("leafletDirectiveMarker.locationId.dragend",function(e,n){C(n.model)}),t.$watch("child.config.device",p),o.addListener(t.$id,t.realtimeChannel,"".concat(t.$id,"-subscribed"),function(){p()}),o.addListener(t.$id,t.realtimeChannel,"CREATE",function(e,n){v(n)}),o.addListener(t.$id,t.realtimeChannel,"UPDATE",function(e,n){v(n)}),p()}e.$inject=["$scope","$routeParams","c8yBase","c8yGeo","c8yDevices","c8yRealtime","c8yAlert","gettext","leafletData"],angular.module("c8y.parts.location").controller("locationCtrl",e)}();
1
+ (()=>{function e(t,n,e,a,i,o,l,c,d){var r,s,u="c8y_Position",g="com_nsn_startups_vendme_fragments_GPSCoordinates",f={},m={icon:{type:"div",className:"normal-marker-icon",iconSize:[25,41],iconAnchor:[12.5,41]},focus:!0,draggable:!0};function v(e){d.getMap("locationId").then(function(e){setTimeout(function(){e.invalidateSize(!0)},500)}),r=e,t.location=A(e)||{};var n,e=t.location;b(t.location),s=_.clone(e),(n=e).lat&&n.lng&&$(e)}function b(e){var n=_.get(e,"lat"),t=_.get(e,"lng"),a=_.get(e,"alt");_.set(e,"lat",_.toNumber(n)),_.set(e,"lng",_.toNumber(t)),_.isUndefined(a)||_.set(e,"alt",_.toNumber(a))}function h(e){e&&($(e={lat:Number(e.lat),lng:Number(e.lng),zoom:17}),C(e),D(e))}function p(){var e;i.detailCached(((e=_.get(t,"child.config.device"))&&(m.draggable=!1),_.get(e,"id",n.deviceId))).then(function(e){return _.cloneDeep(e.data)}).then(v)}function $(e){_.assign(m,{lat:parseFloat(e.lat),lng:parseFloat(e.lng)}),D(f.main=m)}function C(e){_.assign(t.location,{lat:parseFloat(e.lat),lng:(e=parseFloat(e.lng),(e%=360)<-180?360+e:180<e?e-360:e)})}function y(e){return i.isVendme(e)?g:u}function A(e){return e[y(e)]}function D(e){e=e||m;_.assign(t.center,e)}_.assign(t,{settings:{},markers:f,mapDefaults:{scrollWheelZoom:!1},centerMap:D,center:{lat:0,lng:0,zoom:11},pattern:{latitude:/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/,longitude:/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/,altitude:/^[-+]?(0|([1-9]\d*))(\.\d+)?$/},events:{markers:{enable:["dragend"]}},gotoAddress:function(e){a.geoCode(e).then(function(e){e=_.get(e,"data[0]");return e?(e.lng=e.lon,e):(l.warning(c("Address could not be found.")),null)}).then(h)},cancel:function(){t.noeditable=!t.noeditable,_.isEqual(t.location,s)||(t.location=_.clone(s))},save:function(){t.noeditable=!t.noeditable;var e={id:r.id},n=_.clone(A(r));delete n.address,e[y(r)]=n,b(e[y(r)]),i.save(e).then(function(){l.success(c("Location saved."))}).then(p)},realtimeChannel:"/managedobjects/".concat(void 0!==n.deviceId?n.deviceId:"*"),invalid:angular.bind(e,e.invalid,t),id:t.$id}),t.$on("leafletDirectiveMarker.locationId.dragend",function(e,n){C(n.model)}),t.$watch("child.config.device",p),o.addListener(t.$id,t.realtimeChannel,"".concat(t.$id,"-subscribed"),function(){p()}),o.addListener(t.$id,t.realtimeChannel,"CREATE",function(e,n){v(n)}),o.addListener(t.$id,t.realtimeChannel,"UPDATE",function(e,n){v(n)}),p()}e.$inject=["$scope","$routeParams","c8yBase","c8yGeo","c8yDevices","c8yRealtime","c8yAlert","gettext","leafletData"],angular.module("c8y.parts.location").controller("locationCtrl",e)})();
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.logViewer").config(["logViewerProvider","gettext",function(e,i){e.when("/device/:deviceId",{name:i("Logs"),templateUrl:":::PLUGIN_PATH:::/views/index.html",icon:"file-text-o"})}]);
1
+ angular.module("c8y.logViewer").config(["logViewerProvider","gettext",function(e,i){e.when("/device/:deviceId",{name:i("Logs"),templateUrl:":::PLUGIN_PATH:::/views/index.html",icon:"file-text-o"})}]);
@@ -1 +1 @@
1
- "use strict";!function(){function e(i,n,o,e,t,s,l,a,r,c,u,d,f,g,m){var y=this,p="YYYY-MM-DDTHH:mm:ssZZ",h={EVENT:"logsViewer",LOGS:{ACTIONS:{REQUEST:"request",DELETE:"delete",CANCEL:"cancel",DOWNLOAD:"download"}}};function L(){i.filters={dateFrom:moment().subtract(1,"day"),dateTo:moment(),logFile:i.logTypes[0]&&i.logTypes[0].name||null,maximumLines:1e3},y.filters=i.filters}function E(e){e=_.assign({deviceId:n.deviceId,fragmentType:"c8y_LogfileRequest",dateFrom:new Date(0).toISOString(),revert:!0,withTotalPages:!0},e);return a.list(e).then(C)}function C(e,t){i.operations&&!t||(i.operations=[]),e.forEach(function(e){i.operations.push(e)}),i.paging=e.paging}function v(){_.get(i.paging,"refresh")&&(i.realtimeAnimation=!1,i.refreshLoading=!0,i.paging.refresh().then(_.partialRight(C,!0)).finally(function(){i.refreshLoading=!1}),i.paging=null)}function T(e){if(e.c8y_LogfileRequest.file){e=s.getIdFromUrl(e.c8y_LogfileRequest.file);if(e)return s.removeBinary(e)}return!1}function R(e){e={id:e.id,status:e.status,c8y_LogfileRequest:null};return a.save(e)}function S(e){D(e)?i.selectedLog=e:i.selectedLog=void 0}function D(e){return e.c8y_LogfileRequest&&e.c8y_LogfileRequest.file}function q(e){return e&&"SUCCESSFUL"===e.status}function F(e){return e&&"FAILED"===e.status}function I(e,t){t&&!e?(y.shouldClose="disabled",o(function(){y.shouldClose="outsideClick"})):y.shouldClose="outsideClick"}i.PRODUCT_EXPERIENCE=h,i.requestLogfile=function(e){var t={deviceId:n.deviceId,description:d("Log file request"),c8y_LogfileRequest:{dateFrom:moment(e.dateFrom).format(p),dateTo:moment(e.dateTo).format(p),logFile:e.logFile,searchText:e.searchText||"",maximumLines:e.maximumLines}};a.createWithNotifications(t).then(function(e){e.created.then(v),e.completed.then(function(e){e.status===a.status.SUCCESSFUL?(_.assign(t,e),S(t)):e.status===a.status.FAILED&&"Operation cancelled by user."!==e.failureReason&&(e.failureReason?u.danger(f('Could not load file: "{{failureReason | translate}}".',e)):u.danger(d("Could not load file.")))},_.noop,function(e){_.assign(t,e),S(t)}).then(v)})},i.hasLogFile=D,i.selectLogfile=S,i.isBinary=function(e){return e&&e.c8y_LogfileRequest&&e.c8y_LogfileRequest.file&&(!!s.getIdFromUrl(e.c8y_LogfileRequest.file)||t.isEventBinary(e.c8y_LogfileRequest.file))},i.download=g.download,i.cancel=function(e){return"PENDING"===e.status&&a.cancel(e).then(function(){return u.success(d("Log file request cancelled."))}).then(v)},i.remove=function(e){return c({title:d("Delete log file"),body:d("You are about to delete this log file. Do you want to proceed?"),status:"danger",labels:{ok:d("Delete")}}).then(_.partial(T,e)).then(_.partial(R,e)).then(function(){m.triggerEvent(h.EVENT,{action:h.LOGS.ACTIONS.DELETE}),u.success(d("Log file deleted."))}).then(v)},i.statusIcon=function(e){return a.getStyle(e).icon},i.statusClass=function(e){return a.getStyle(e).cls},i.isSuccessful=q,i.isPending=function(e){return e&&"PENDING"===e.status},i.isFailed=F,i.isCompleted=function(e){return q(e)||F(e)},i.refresh=v,i.loadNext=function(e){i.paging.loading=!0,(e?E({pageSize:e}):i.paging.next().then(C)).finally(function(){i.paging.loading=!1})},i.getOperationDesc=function(e){return e.description||d("no description available")},i.$watch("vm.datePickerToOpen",I),i.$watch("vm.datePickerFromOpen",I),i.$watch("vm.logtypeSelect.open",function(e){e||(y.shouldClose="disabled",o(function(){y.shouldClose="outsideClick"}))}),y.shouldClose="outsideClick",y.datePickerToOpen=!1,y.datePickerFromOpen=!1,l.detail(n.deviceId).then(e.getResData).then(function(e){i.logTypes=_.map(e.c8y_SupportedLogs,function(e){return{name:e}}),y.logTypes=i.logTypes}).then(L),E();var O=i.$id,w="/operations/".concat(n.deviceId),N=r.realtimeActions();_.forOwn(N,function(e){r.addListener(O,w,e,function(e,t){var n;_.has(t,"c8y_LogfileRequest")&&(v(),n=i.selectedLog)&&n.id===t.id&&e===N.UPDATE&&(n.c8y_LogfileRequest=t.c8y_LogfileRequest)})}),r.start(O,w),i.$on("$destroy",function(){r.stop(O,w),r.destroySubscription(O,w)})}e.$inject=["$scope","$routeParams","$timeout","c8yBase","c8yEvents","c8yBinary","c8yDevices","c8yDeviceControl","c8yRealtime","c8yModal","c8yAlert","gettext","gettextCatalog","logViewer","c8yGainsightService"],angular.module("c8y.logViewer").controller("logViewerCtrl",e)}();
1
+ (()=>{function e(i,n,o,e,t,s,l,a,r,c,u,d,f,g,m){var y=this,p="YYYY-MM-DDTHH:mm:ssZZ",h={EVENT:"logsViewer",LOGS:{ACTIONS:{REQUEST:"request",DELETE:"delete",CANCEL:"cancel",DOWNLOAD:"download"}}};function L(){i.filters={dateFrom:moment().subtract(1,"day"),dateTo:moment(),logFile:i.logTypes[0]&&i.logTypes[0].name||null,maximumLines:1e3},y.filters=i.filters}function E(e){e=_.assign({deviceId:n.deviceId,fragmentType:"c8y_LogfileRequest",dateFrom:new Date(0).toISOString(),revert:!0,withTotalPages:!0},e);return a.list(e).then(C)}function C(e,t){i.operations&&!t||(i.operations=[]),e.forEach(function(e){i.operations.push(e)}),i.paging=e.paging}function v(){_.get(i.paging,"refresh")&&(i.realtimeAnimation=!1,i.refreshLoading=!0,i.paging.refresh().then(_.partialRight(C,!0)).finally(function(){i.refreshLoading=!1}),i.paging=null)}function T(e){if(e.c8y_LogfileRequest.file){e=s.getIdFromUrl(e.c8y_LogfileRequest.file);if(e)return s.removeBinary(e)}return!1}function R(e){e={id:e.id,status:e.status,c8y_LogfileRequest:null};return a.save(e)}function S(e){D(e)?i.selectedLog=e:i.selectedLog=void 0}function D(e){return e.c8y_LogfileRequest&&e.c8y_LogfileRequest.file}function q(e){return e&&"SUCCESSFUL"===e.status}function F(e){return e&&"FAILED"===e.status}function I(e,t){t&&!e?(y.shouldClose="disabled",o(function(){y.shouldClose="outsideClick"})):y.shouldClose="outsideClick"}i.PRODUCT_EXPERIENCE=h,i.requestLogfile=function(e){var t={deviceId:n.deviceId,description:d("Log file request"),c8y_LogfileRequest:{dateFrom:moment(e.dateFrom).format(p),dateTo:moment(e.dateTo).format(p),logFile:e.logFile,searchText:e.searchText||"",maximumLines:e.maximumLines}};a.createWithNotifications(t).then(function(e){e.created.then(v),e.completed.then(function(e){e.status===a.status.SUCCESSFUL?(_.assign(t,e),S(t)):e.status===a.status.FAILED&&"Operation cancelled by user."!==e.failureReason&&(e.failureReason?u.danger(f('Could not load file: "{{failureReason | translate}}".',e)):u.danger(d("Could not load file.")))},_.noop,function(e){_.assign(t,e),S(t)}).then(v)})},i.hasLogFile=D,i.selectLogfile=S,i.isBinary=function(e){return e&&e.c8y_LogfileRequest&&e.c8y_LogfileRequest.file&&(!!s.getIdFromUrl(e.c8y_LogfileRequest.file)||t.isEventBinary(e.c8y_LogfileRequest.file))},i.download=g.download,i.cancel=function(e){return"PENDING"===e.status&&a.cancel(e).then(function(){return u.success(d("Log file request cancelled."))}).then(v)},i.remove=function(e){return c({title:d("Delete log file"),body:d("You are about to delete this log file. Do you want to proceed?"),status:"danger",labels:{ok:d("Delete")}}).then(_.partial(T,e)).then(_.partial(R,e)).then(function(){m.triggerEvent(h.EVENT,{action:h.LOGS.ACTIONS.DELETE}),u.success(d("Log file deleted."))}).then(v)},i.statusIcon=function(e){return a.getStyle(e).icon},i.statusClass=function(e){return a.getStyle(e).cls},i.isSuccessful=q,i.isPending=function(e){return e&&"PENDING"===e.status},i.isFailed=F,i.isCompleted=function(e){return q(e)||F(e)},i.refresh=v,i.loadNext=function(e){i.paging.loading=!0,(e?E({pageSize:e}):i.paging.next().then(C)).finally(function(){i.paging.loading=!1})},i.getOperationDesc=function(e){return e.description||d("no description available")},i.$watch("vm.datePickerToOpen",I),i.$watch("vm.datePickerFromOpen",I),i.$watch("vm.logtypeSelect.open",function(e){e||(y.shouldClose="disabled",o(function(){y.shouldClose="outsideClick"}))}),y.shouldClose="outsideClick",y.datePickerToOpen=!1,y.datePickerFromOpen=!1,l.detail(n.deviceId).then(e.getResData).then(function(e){i.logTypes=_.map(e.c8y_SupportedLogs,function(e){return{name:e}}),y.logTypes=i.logTypes}).then(L),E();var O=i.$id,w="/operations/".concat(n.deviceId),N=r.realtimeActions();_.forOwn(N,function(e){r.addListener(O,w,e,function(e,t){var n;_.has(t,"c8y_LogfileRequest")&&(v(),n=i.selectedLog)&&n.id===t.id&&e===N.UPDATE&&(n.c8y_LogfileRequest=t.c8y_LogfileRequest)})}),r.start(O,w),i.$on("$destroy",function(){r.stop(O,w),r.destroySubscription(O,w)})}e.$inject=["$scope","$routeParams","$timeout","c8yBase","c8yEvents","c8yBinary","c8yDevices","c8yDeviceControl","c8yRealtime","c8yModal","c8yAlert","gettext","gettextCatalog","logViewer","c8yGainsightService"],angular.module("c8y.logViewer").controller("logViewerCtrl",e)})();
@@ -1 +1 @@
1
- "use strict";!function(){function e(i,o,a,g,r){return{restrict:"E",replace:!0,template:'<div>\n <div ng-show="loading" style="min-width: 100%; text-align: center;"><c8y-loading></c8y-loading></div>\n <pre ng-show="textFile && !loading" style="max-height: 300px; overflow:auto;">{{logFileData}}</pre>\n <div ng-show="!textFile && !loading" class="alert alert-warning" role= "alert">\n <span translate>\n No preview available for log files with MIME type other than <code>text/*</code>.\n </span><br>\n <button class="btn btn-default btn-sm m-t-16" ng-click="download(logOp)" type="button" translate> Download </button>\n </div></div>',link:function(l){l.download=i.download,l.$watch("selectedLog",function(t){var e,n;t&&t.c8y_LogfileRequest&&t.c8y_LogfileRequest.file&&(l.logOp=t,l.loading=!0,e=t.c8y_LogfileRequest.file,(g.isEventBinary(e)?(n=g.getEventIdFromUrl(e),g.getContentType(n)):(n=a.getIdFromUrl(e),a.getContentType(n))).then(function(e){e.match(/^text.*$/)?i.getLogfile(t).then(function(e){l.textFile=!0,l.logFileData=e.data}).catch(function(){o.danger(r("The file is no longer available."))}).finally(function(){l.loading=!1}):(l.textFile=!1,l.loading=!1)}))},!0)}}}e.$inject=["logViewer","c8yAlert","c8yBinary","c8yEvents","gettext"],angular.module("c8y.logViewer").directive("c8yLogViewer",e)}();
1
+ (()=>{function e(i,o,a,g,r){return{restrict:"E",replace:!0,template:'<div>\n <div ng-show="loading" style="min-width: 100%; text-align: center;"><c8y-loading></c8y-loading></div>\n <pre ng-show="textFile && !loading" style="max-height: 300px; overflow:auto;">{{logFileData}}</pre>\n <div ng-show="!textFile && !loading" class="alert alert-warning" role= "alert">\n <span translate>\n No preview available for log files with MIME type other than <code>text/*</code>.\n </span><br>\n <button class="btn btn-default btn-sm m-t-16" ng-click="download(logOp)" type="button" translate> Download </button>\n </div></div>',link:function(l){l.download=i.download,l.$watch("selectedLog",function(t){var e,n;t&&t.c8y_LogfileRequest&&t.c8y_LogfileRequest.file&&(l.logOp=t,l.loading=!0,e=t.c8y_LogfileRequest.file,(g.isEventBinary(e)?(n=g.getEventIdFromUrl(e),g.getContentType(n)):(n=a.getIdFromUrl(e),a.getContentType(n))).then(function(e){e.match(/^text.*$/)?i.getLogfile(t).then(function(e){l.textFile=!0,l.logFileData=e.data}).catch(function(){o.danger(r("The file is no longer available."))}).finally(function(){l.loading=!1}):(l.textFile=!1,l.loading=!1)}))},!0)}}}e.$inject=["logViewer","c8yAlert","c8yBinary","c8yEvents","gettext"],angular.module("c8y.logViewer").directive("c8yLogViewer",e)})();
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.logViewer",[]);
1
+ angular.module("c8y.logViewer",[]);
@@ -1 +1 @@
1
- "use strict";!function(){function e(n,o){var l,a,d,c,u,f;function i(e,t,n){e=e.deviceId;return t.detailCached(e).then(n.getResData).then(function(e){return t.supportsOperation(e,"c8y_LogfileRequest")})}function s(e){var t;return e&&e.c8y_LogfileRequest&&e.c8y_LogfileRequest.file?(e=e.c8y_LogfileRequest.file,u.isEventBinary(e)?(t=u.getEventIdFromUrl(e))?u.downloadAsText(t):l.get(e):(t=c.getIdFromUrl(e))?c.downloadAsText(t):l.get(e)):a.when({data:o("Loading logfiles…")})}function g(e){if(e.c8y_LogfileRequest.file){e=e.c8y_LogfileRequest.file;if(u.isEventBinary(e)){var t=u.getEventIdFromUrl(e);if(t)return u.detail(t).then(function(e){return f.downloadAndSaveAs(e.data)}).catch(function(){d.danger(o("Could not download the log file."))})}else{t=c.getIdFromUrl(e);if(t)return c.downloadAndSaveAs(t).catch(function(){d.danger(o("Could not download the log file."))})}}return!1}return{$get:["$http","$q","c8yAlert","c8yBinary","c8yEvents","eventsBinaryService",function(e,t,n,o,i,r){return l=e,a=t,d=n,c=o,u=i,f=r,{getLogfile:s,download:g}}],when:function(e,t){n.when(e,_.assign(t,{showIf:["$routeParams","c8yDevices","c8yBase",i]}))},showIf:i}}e.$inject=["c8yViewsProvider","gettext"],angular.module("c8y.logViewer").provider("logViewer",e)}();
1
+ (()=>{function e(n,o){var l,a,d,c,u,f;function i(e,t,n){e=e.deviceId;return t.detailCached(e).then(n.getResData).then(function(e){return t.supportsOperation(e,"c8y_LogfileRequest")})}function g(e){var t;return e&&e.c8y_LogfileRequest&&e.c8y_LogfileRequest.file?(e=e.c8y_LogfileRequest.file,u.isEventBinary(e)?(t=u.getEventIdFromUrl(e))?u.downloadAsText(t):l.get(e):(t=c.getIdFromUrl(e))?c.downloadAsText(t):l.get(e)):a.when({data:o("Loading logfiles…")})}function s(e){if(e.c8y_LogfileRequest.file){e=e.c8y_LogfileRequest.file;if(u.isEventBinary(e)){var t=u.getEventIdFromUrl(e);if(t)return u.detail(t).then(function(e){return f.downloadAndSaveAs(e.data)}).catch(function(){d.danger(o("Could not download the log file."))})}else{t=c.getIdFromUrl(e);if(t)return c.downloadAndSaveAs(t).catch(function(){d.danger(o("Could not download the log file."))})}}return!1}return{$get:["$http","$q","c8yAlert","c8yBinary","c8yEvents","eventsBinaryService",function(e,t,n,o,i,r){return l=e,a=t,d=n,c=o,u=i,f=r,{getLogfile:g,download:s}}],when:function(e,t){n.when(e,_.assign(t,{showIf:["$routeParams","c8yDevices","c8yBase",i]}))},showIf:i}}e.$inject=["c8yViewsProvider","gettext"],angular.module("c8y.logViewer").provider("logViewer",e)})();
@@ -1 +1 @@
1
- "use strict";!function(){function e(e,i){e.when("/device/:deviceId",{templateUrl:":::PLUGIN_PATH:::/views/index.html",priority:900,name:i("Measurements"),icon:"line-chart",controller:t}),e.when("/service/:deviceId",{templateUrl:":::PLUGIN_PATH:::/views/index.html",priority:900,name:i("Measurements"),icon:"line-chart",controller:t})}function t(i,e,t){i.device={},t.detailCached(e.deviceId).then(function(e){e=e.data;i.device=e})}t.$inject=["$scope","$routeParams","c8yDevices"],e.$inject=["c8yViewsProvider","gettext"],angular.module("c8y.parts.measurements",[]).config(e)}();
1
+ (()=>{function e(e,i){e.when("/device/:deviceId",{templateUrl:":::PLUGIN_PATH:::/views/index.html",priority:900,name:i("Measurements"),icon:"line-chart",controller:t}),e.when("/service/:deviceId",{templateUrl:":::PLUGIN_PATH:::/views/index.html",priority:900,name:i("Measurements"),icon:"line-chart",controller:t})}function t(i,e,t){i.device={},t.detailCached(e.deviceId).then(function(e){e=e.data;i.device=e})}t.$inject=["$scope","$routeParams","c8yDevices"],e.$inject=["c8yViewsProvider","gettext"],angular.module("c8y.parts.measurements",[]).config(e)})();
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.restartDevice",[]).config(["c8yViewsProvider","c8yActionsProvider","gettext",function(e,t,r){var i=r("Restart device");t.addUrlAction({path:"/device/:deviceId/*",text:i,priority:-1e3,actionBar:!0,showIf:["$routeParams","c8yBase","c8yInventory","c8yDevices",function(e,t,c,r){return c.detail(e.deviceId).then(function(e){e=t.getResData(e);return r.supportsOperation(e,"c8y_Restart")})}],action:["$routeParams","c8yAlert","c8yDeviceControl","gettextCatalog",function(e,t,c){return c.create({deviceId:e.deviceId,description:i,c8y_Restart:{}}).then(function(){t.success(r("Device will be restarted."))})}]})}]);
1
+ angular.module("c8y.restartDevice",[]).config(["c8yViewsProvider","c8yActionsProvider","gettext",function(e,t,r){var i=r("Restart device");t.addUrlAction({path:"/device/:deviceId/*",text:i,priority:-1e3,actionBar:!0,showIf:["$routeParams","c8yBase","c8yInventory","c8yDevices",function(e,t,c,r){return c.detail(e.deviceId).then(function(e){e=t.getResData(e);return r.supportsOperation(e,"c8y_Restart")})}],action:["$routeParams","c8yAlert","c8yDeviceControl","gettextCatalog",function(e,t,c){return c.create({deviceId:e.deviceId,description:i,c8y_Restart:{}}).then(function(){t.success(r("Device will be restarted."))})}]})}]);
@@ -1 +1 @@
1
- "use strict";!function(){function e(e,r){i.$inject=["$scope","$uibModalInstance","gettextCatalog"];var t="/device/:deviceId";function i(e,t,n){var n={type:"object",properties:{frequency:{type:"number",title:n.getString("Frequency (in seconds)"),required:!0},duration:{type:"number",title:n.getString("Duration (minutes)"),required:!0}}},a={frequency:10,duration:10};e.schema=n,e.params=a,e.getMeasurements=function(){t.close(a)},e.dismiss=t.dismiss}function o(e){var t=e.c8yDeviceControl,n=e.c8yAlert,a=e.gettextCatalog,s=e.operation,r=e.messages;t.createWithNotifications(s).then(function(e){e.created.then(function(){n.success(r.createdMessage)}),e.completed.then(function(e){e.status===t.status.SUCCESSFUL?n.success(r.successfulMessage):e.status===t.status.FAILED&&(e.failureReason?n.danger(a.getString(r.failureMessageWithReason,e)):n.danger(r.failureMessage))})})}e.addUrlAction({path:t,text:r("Get measurements"),actionBar:!0,priority:5e3,showIf:["$routeParams","c8yBase","c8yDevices",function(e,t,n){e=e.deviceId;return n.detailCached(e).then(t.getResData).then(function(e){return n.supportsOperation(e,"c8y_MeasurementRequestOperation")})}],showIfPermissions:{adminMOs:[":deviceId"]},action:["$routeParams","c8yDeviceControl","c8yAlert","gettextCatalog",function(e,t,n,a){o({c8yDeviceControl:t,c8yAlert:n,gettextCatalog:a,operation:{deviceId:e.deviceId,description:r("Get measurements"),c8y_MeasurementRequestOperation:{requestName:"LOG"}},messages:{createdMessage:r("Getting measurements from device…"),successfulMessage:r("Got measurements from device."),failureMessage:r("Could not get measurements from device."),failureMessageWithReason:r('Could not get measurements from device: "{{failureReason | translate}}".')}})}]}),e.addUrlAction({path:t,text:r("Initiate measurement poll"),actionBar:!0,priority:5e3,showIf:["$routeParams","c8yDevices","c8yBase",function(e,t,n){e=e.deviceId;return t.detailCached(e).then(n.getResData).then(function(e){return t.supportsOperation(e,"c8y_MeasurementPollFrequencyOperation")})}],showIfPermissions:{adminMOs:[":deviceId"]},action:["c8yDeviceControl","c8yAlert","gettextCatalog","c8yModal","$routeParams",function(t,n,a,e,s){return e({templateUrl:":::PLUGIN_PATH:::/pollFrequencyOperationSettings.html",controller:i}).then(function(e){return{deviceId:s.deviceId,description:r("Initiate measurement poll"),c8y_MeasurementPollFrequencyOperation:{frequency:e.frequency,duration:e.duration}}}).then(function(e){return o({c8yDeviceControl:t,c8yAlert:n,gettextCatalog:a,operation:e,messages:{createdMessage:r("Initiating measurement poll…"),successfulMessage:r("Initiated measurement poll."),failureMessage:r("Could not initiate measurement poll."),failureMessageWithReason:r('Could not initiate measurement poll: "{{failureReason | translate}}".')}})})}]})}e.$inject=["c8yActionsProvider","gettext"],angular.module("c8y.tixiDeviceControl",[]).config(e)}();
1
+ (()=>{function e(e,r){i.$inject=["$scope","$uibModalInstance","gettextCatalog"];var t="/device/:deviceId";function i(e,t,n){var n={type:"object",properties:{frequency:{type:"number",title:n.getString("Frequency (in seconds)"),required:!0},duration:{type:"number",title:n.getString("Duration (minutes)"),required:!0}}},a={frequency:10,duration:10};e.schema=n,e.params=a,e.getMeasurements=function(){t.close(a)},e.dismiss=t.dismiss}function o(e){var t=e.c8yDeviceControl,n=e.c8yAlert,a=e.gettextCatalog,s=e.messages;t.createWithNotifications(e.operation).then(function(e){e.created.then(function(){n.success(s.createdMessage)}),e.completed.then(function(e){e.status===t.status.SUCCESSFUL?n.success(s.successfulMessage):e.status===t.status.FAILED&&(e.failureReason?n.danger(a.getString(s.failureMessageWithReason,e)):n.danger(s.failureMessage))})})}e.addUrlAction({path:t,text:r("Get measurements"),actionBar:!0,priority:5e3,showIf:["$routeParams","c8yBase","c8yDevices",function(e,t,n){e=e.deviceId;return n.detailCached(e).then(t.getResData).then(function(e){return n.supportsOperation(e,"c8y_MeasurementRequestOperation")})}],showIfPermissions:{adminMOs:[":deviceId"]},action:["$routeParams","c8yDeviceControl","c8yAlert","gettextCatalog",function(e,t,n,a){o({c8yDeviceControl:t,c8yAlert:n,gettextCatalog:a,operation:{deviceId:e.deviceId,description:r("Get measurements"),c8y_MeasurementRequestOperation:{requestName:"LOG"}},messages:{createdMessage:r("Getting measurements from device…"),successfulMessage:r("Got measurements from device."),failureMessage:r("Could not get measurements from device."),failureMessageWithReason:r('Could not get measurements from device: "{{failureReason | translate}}".')}})}]}),e.addUrlAction({path:t,text:r("Initiate measurement poll"),actionBar:!0,priority:5e3,showIf:["$routeParams","c8yDevices","c8yBase",function(e,t,n){e=e.deviceId;return t.detailCached(e).then(n.getResData).then(function(e){return t.supportsOperation(e,"c8y_MeasurementPollFrequencyOperation")})}],showIfPermissions:{adminMOs:[":deviceId"]},action:["c8yDeviceControl","c8yAlert","gettextCatalog","c8yModal","$routeParams",function(t,n,a,e,s){return e({templateUrl:":::PLUGIN_PATH:::/pollFrequencyOperationSettings.html",controller:i}).then(function(e){return{deviceId:s.deviceId,description:r("Initiate measurement poll"),c8y_MeasurementPollFrequencyOperation:{frequency:e.frequency,duration:e.duration}}}).then(function(e){return o({c8yDeviceControl:t,c8yAlert:n,gettextCatalog:a,operation:e,messages:{createdMessage:r("Initiating measurement poll…"),successfulMessage:r("Initiated measurement poll."),failureMessage:r("Could not initiate measurement poll."),failureMessageWithReason:r('Could not initiate measurement poll: "{{failureReason | translate}}".')}})})}]})}e.$inject=["c8yActionsProvider","gettext"],angular.module("c8y.tixiDeviceControl",[]).config(e)})();
@@ -1 +1 @@
1
- "use strict";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,e){var t;if(r)return"string"==typeof r?_arrayLikeToArray(r,e):"Map"===(t="Object"===(t=Object.prototype.toString.call(r).slice(8,-1))&&r.constructor?r.constructor.name:t)||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0}function _arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function _iterableToArrayLimit(r,e){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var n,a,o,l,i=[],u=!0,y=!1;try{if(o=(t=t.call(r)).next,0===e){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);u=!0);}catch(r){y=!0,a=r}finally{try{if(!u&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(y)throw a}}return i}}function _arrayWithHoles(r){if(Array.isArray(r))return r}angular.module("c8y.ui").value("createFile",function(e,t){try{return new File(e,t)}catch(r){e=_slicedToArray(e,1)[0];return e.name=t,e}});
1
+ function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,e){var t;if(r)return"string"==typeof r?_arrayLikeToArray(r,e):"Map"===(t="Object"===(t={}.toString.call(r).slice(8,-1))&&r.constructor?r.constructor.name:t)||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0}function _arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t<e;t++)n[t]=r[t];return n}function _iterableToArrayLimit(r,e){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var n,a,o,l,i=[],u=!0,y=!1;try{if(o=(t=t.call(r)).next,0===e){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);u=!0);}catch(r){y=!0,a=r}finally{try{if(!u&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(y)throw a}}return i}}function _arrayWithHoles(r){if(Array.isArray(r))return r}angular.module("c8y.ui").value("createFile",function(e,t){try{return new File(e,t)}catch(r){e=_slicedToArray(e,1)[0];return e.name=t,e}});
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.custom-branding").constant("c8yBrandingMapping",{fileProperties:[{key:"appLogo",filename:"logo-nav",cssVar:"navigator-platform-logo"},{key:"brand-logo-img",filename:"logo",cssVar:"brand-logo-img"},{key:"favicon",filename:"favicon",option:"faviconUrl"}],cookieBannerProperties:["cookieBannerDisabled","cookieBannerTitle","cookieBannerText","policyUrl"],nonCssProperties:["__import-font","html_title"],cssVarMapping:{headerColor:"header-color",appLogo:"navigator-platform-logo",navColor:"navigator-bg-color",navColorHeader:"navigator-header-bg","appLogo-height":"navigator-platform-logo-height","font-family-sans-serif":"font-family-base","headings-font-family":"font-family-headings","brand-logo-height":"brand-logo-img-height",html_title:"globalTitle",favicon:"faviconUrl"},fontFamilyCssVars:{"@font-family-sans-serif":"font-family-base","@headings-font-family":"font-family-headings"}});
1
+ angular.module("c8y.custom-branding").constant("c8yBrandingMapping",{fileProperties:[{key:"appLogo",filename:"logo-nav",cssVar:"navigator-platform-logo"},{key:"brand-logo-img",filename:"logo",cssVar:"brand-logo-img"},{key:"favicon",filename:"favicon",option:"faviconUrl"}],cookieBannerProperties:["cookieBannerDisabled","cookieBannerTitle","cookieBannerText","policyUrl"],nonCssProperties:["__import-font","html_title"],cssVarMapping:{headerColor:"header-color",appLogo:"navigator-platform-logo",navColor:"navigator-bg-color",navColorHeader:"navigator-header-bg","appLogo-height":"navigator-platform-logo-height","font-family-sans-serif":"font-family-base","headings-font-family":"font-family-headings","brand-logo-height":"brand-logo-img-height",html_title:"globalTitle",favicon:"faviconUrl"},fontFamilyCssVars:{"@font-family-sans-serif":"font-family-base","@headings-font-family":"font-family-headings"}});
@@ -1 +1 @@
1
- "use strict";!function(){function t(n,e,r){var a=e.url("service/".concat("branding","/")),c={"Content-Type":"application/json"};return{update:function(){var t={headers:c};return n.post("".concat(a,"update"),t).then(e.getResData)},state:function(){var t={headers:c,silentError:!0};return n.get("".concat(a,"state"),{},t).then(e.getResData)},wizardPreview:function(){return t({process:_.constant("preview")})},wizardGenerate:function(){return t({process:_.constant("generate")})}};function t(t){return r.open({component:"c8yBrandingProcessExecution",backdrop:"static",keyboard:!1,resolve:t}).result}}t.$inject=["$http","c8yBase","c8yWizardModal"],angular.module("c8y.custom-branding").factory("c8yBrandingConfiguration",t)}();
1
+ (()=>{function n(t,e,r){var a=e.url("service/".concat("branding","/")),o={"Content-Type":"application/json"};return{update:function(){var n={headers:o};return t.post("".concat(a,"update"),n).then(e.getResData)},state:function(){var n={headers:o,silentError:!0};return t.get("".concat(a,"state"),{},n).then(e.getResData)},wizardPreview:function(){return n({process:_.constant("preview")})},wizardGenerate:function(){return n({process:_.constant("generate")})}};function n(n){return r.open({component:"c8yBrandingProcessExecution",backdrop:"static",keyboard:!1,resolve:n}).result}}n.$inject=["$http","c8yBase","c8yWizardModal"],angular.module("c8y.custom-branding").factory("c8yBrandingConfiguration",n)})();
@@ -1 +1 @@
1
- "use strict";!function(){function n(r,n,t,e,i,o,a,c,l,s,u,d,f,g){var p,m,b,y,v=g("humanizeAppName"),h=this,g=s("Apply branding"),I=s("Save branding configuration first"),B={html_title:w,favicon:function(n){h.favicon=n?n.fileSrc:"",p&&p.document.querySelector("link[rel=icon]")&&(p.document.querySelector("link[rel=icon]").href=n?n.fileSrc:"")},"navigator-font-family":function(n){k("navigator-font-family",a.getFontFamilyCssVar(n))},appLogo:function(n){return k("navigator-platform-logo",n?"url(".concat(n.fileSrc,")"):"")},"brand-logo-img":function(n){return k("brand-logo-img",n?"url(".concat(n.fileSrc,")"):"")},"__import-font":function(n){var e=document.createElement("style");e.innerText="@import url('".concat(n,"')"),C().contentDocument.head.appendChild(e),p&&p.document.head.appendChild(e)}};function C(){return document.querySelector("#previewBrowser")}function N(){return h.isLoading=!0,n.all({schema:i.getSchema(),form:i.getForm(),options:i.getSchemaFormOptions(),branding:i.getBranding(),app:d.getCurrent()}).then(function(n){var e=n.schema,t=n.form,o=n.options,i=n.branding,n=n.app,a=(_.defaults(i,{c8y_less_variables:{}}),b=_.cloneDeep(i),_.assign(h,{schema:e,form:t,options:o,branding:i}),y=n,C());a.src="".concat(d.getHref(y),"/index.html"),a.onload=function(){a.appTitle=a.contentDocument.title,_.set(a.contentWindow,"C8Y_PREVIEW.preview",!0),_.set(a.contentWindow,"C8Y_PREVIEW.previewCookieBanner",R()),w(),T()},r.$watchCollection("vm.branding.c8y_less_variables",T)}).finally(function(){h.isLoading=!1})}function w(n){n=n||A();h.title="".concat(n," - ").concat(C().appTitle),p&&(p.document.title="".concat(n," - ").concat(p.appTitle),p.C8Y_PREVIEW.globalTitle=n)}function A(){return _.get(h,"branding.c8y_less_variables.html_title")||u.appOption("globalTitle")}function R(){return _.pick(h.branding.c8y_less_variables,["cookieBannerDisabled","cookieBannerTitle","cookieBannerText","policyUrl"])}function T(){h.isLoading||_.forOwn(h.branding.c8y_less_variables,function(n,e){B[e]?B[e](n):k(e,n)})}function k(n,e){E(n,e,C().contentDocument.documentElement),p&&E(n,e,p.document.documentElement)}function E(n,e,t){n=a.keyToCssVar(n);"navigator-platform-logo-height"===n?null==e||""===e?t.style.removeProperty("--".concat(n)):t.style.setProperty("--".concat(n),"".concat(e,"%")):t.style.setProperty("--".concat(n),_.isNumber(e)?"".concat(e,"px"):e)}function P(){return o.state().then(S)}function S(n){var e=h.state;h.state=n,e&&e.RUNNING&&!n.RUNNING&&l.success(s("Branded applications created.")),e&&e.WAITING&&n.RUNNING&&l.success(s("Branded applications will be created.")),(n.RUNNING||n.WAITING)&&t(P,2e3)}_.assign(h,{$onInit:function(){c&&P();return N()},applyTitle:g,dirtyFormApplyTitle:I,canSave:function(){return!(_.get(r,"platformConfigurationForm1.$invalid")||_.get(r,"platformConfigurationForm2.$invalid"))},save:function(){var t=[],o=i.BINARY_VARS;return h.branding.binary_ref={},_.each(o,function(e){var n;h.branding.c8y_less_variables[e]&&(n=i.saveBinary(e,h.branding.c8y_less_variables[e],b.binary_ref,b.c8y_less_variables[e]).then(function(n){h.branding.binary_ref[e]=_.pick(n,["id","name"])}),t.push(n))}),n.all(t).then(function(){return h.branding.c8y_less_variables=_.omitBy(h.branding.c8y_less_variables,function(n,e){return""===_.trim(n)||_.includes(o,e)}),i.saveConfiguration(h.branding,b.id).then(function(){return l.success(s("Branding saved."))})}).then(e.reload)},generate:o.wizardGenerate,preview:function(){p=window.open("".concat(d.getHref(y),"/index.html"),"_blank","noopener,noreferrer"),function e(){clearInterval(m);m=setInterval(function(){var n;p&&(p.C8Y_PREVIEW={preview:!0,globalTitle:A(),previewCookieBanner:R()},p.C8Y_APP)&&(n=p.C8Y_APP.name,p.appTitle=v(n),clearInterval(m),T(),p.onunload=function(){return e()})})}()},blocked:function(){var n=h.state;return!_.get(h,"branding.id")||_.get(n,"RUNNING")||_.get(n,"WAITING")},title:window.document.title,favicon:"favicon.ico",useMicroservice:c,applyConfiguration:function(){a.removeLegacyBrandedApplications().then(function(){return f({status:"info",title:s("Apply branding configuration"),body:s("You are about to apply the branding configuration, making it visible to all subtenants. Do you want to proceed?"),labels:{ok:s("Apply")}})}).then(function(){a.deploy(h.branding.c8y_less_variables).then(function(){return l.success(s("Branding configuration is being applied. It usually takes less than a minute."))},function(n){l.danger(u.getResErrorMessage(n))})})},removeAppliedBranding:function(){f({status:"info",title:s("Remove branding"),body:s("You are about to remove applied branding.\n If you have any extra customization options set, they will be reset.\n The default branding will be shown to all subtenants. Do you want to proceed?"),labels:{ok:s("Remove")}}).then(function(){a.reset().then(function(){return l.success(s("Branding has been removed."))})})},resetForm:function(n){f({status:"info",title:s("Reset branding configuration"),body:s("You are about to reset the branding configuration to the previously saved settings.\n Do you want to proceed?"),labels:{ok:s("Reset")}}).then(function(){N().then(function(){n&&n.$setPristine(),l.success(s("Branding configuration has been reset."))},function(n){return l.danger(n)})})}})}n.$inject=["$scope","$q","$timeout","$route","c8yBrandingConfigurationUi","c8yBrandingConfiguration","c8yBrandingDeploy","USE_BRANDING_MICROSERVICE","c8yAlert","gettext","c8yBase","c8yApplication","c8yModal","$filter"],angular.module("c8y.custom-branding").component("c8yBrandingConfigurationForm",{templateUrl:":::PLUGIN_PATH:::/customBranding/brandingConfigurationForm.html",controller:n,controllerAs:"vm"})}();
1
+ (()=>{function n(r,n,t,e,i,o,a,c,l,s,u,d,g,f){var p,m,b,y,v=f("humanizeAppName"),h=this,f=s("Apply branding"),I=s("Save branding configuration first"),B={html_title:w,favicon:function(n){h.favicon=n?n.fileSrc:"",p&&p.document.querySelector("link[rel=icon]")&&(p.document.querySelector("link[rel=icon]").href=n?n.fileSrc:"")},"navigator-font-family":function(n){k("navigator-font-family",a.getFontFamilyCssVar(n))},appLogo:function(n){return k("navigator-platform-logo",n?"url(".concat(n.fileSrc,")"):"")},"brand-logo-img":function(n){return k("brand-logo-img",n?"url(".concat(n.fileSrc,")"):"")},"__import-font":function(n){var e=document.createElement("style");e.innerText="@import url('".concat(n,"')"),C().contentDocument.head.appendChild(e),p&&p.document.head.appendChild(e)}};function C(){return document.querySelector("#previewBrowser")}function N(){return h.isLoading=!0,n.all({schema:i.getSchema(),form:i.getForm(),options:i.getSchemaFormOptions(),branding:i.getBranding(),app:d.getCurrent()}).then(function(n){var e=n.schema,t=n.form,o=n.options,i=n.branding,n=n.app,a=(_.defaults(i,{c8y_less_variables:{}}),b=_.cloneDeep(i),_.assign(h,{schema:e,form:t,options:o,branding:i}),y=n,C());a.src="".concat(d.getHref(y),"/index.html"),a.onload=function(){a.appTitle=a.contentDocument.title,_.set(a.contentWindow,"C8Y_PREVIEW.preview",!0),_.set(a.contentWindow,"C8Y_PREVIEW.previewCookieBanner",R()),w(),T()},r.$watchCollection("vm.branding.c8y_less_variables",T)}).finally(function(){h.isLoading=!1})}function w(n){n=n||A();h.title="".concat(n," - ").concat(C().appTitle),p&&(p.document.title="".concat(n," - ").concat(p.appTitle),p.C8Y_PREVIEW.globalTitle=n)}function A(){return _.get(h,"branding.c8y_less_variables.html_title")||u.appOption("globalTitle")}function R(){return _.pick(h.branding.c8y_less_variables,["cookieBannerDisabled","cookieBannerTitle","cookieBannerText","policyUrl"])}function T(){h.isLoading||_.forOwn(h.branding.c8y_less_variables,function(n,e){B[e]?B[e](n):k(e,n)})}function k(n,e){E(n,e,C().contentDocument.documentElement),p&&E(n,e,p.document.documentElement)}function E(n,e,t){n=a.keyToCssVar(n);"navigator-platform-logo-height"===n?null==e||""===e?t.style.removeProperty("--".concat(n)):t.style.setProperty("--".concat(n),"".concat(e,"%")):t.style.setProperty("--".concat(n),_.isNumber(e)?"".concat(e,"px"):e)}function P(){return o.state().then(S)}function S(n){var e=h.state;h.state=n,e&&e.RUNNING&&!n.RUNNING&&l.success(s("Branded applications created.")),e&&e.WAITING&&n.RUNNING&&l.success(s("Branded applications will be created.")),(n.RUNNING||n.WAITING)&&t(P,2e3)}_.assign(h,{$onInit:function(){c&&P();return N()},applyTitle:f,dirtyFormApplyTitle:I,canSave:function(){return!(_.get(r,"platformConfigurationForm1.$invalid")||_.get(r,"platformConfigurationForm2.$invalid"))},save:function(){var t=[],o=i.BINARY_VARS;return h.branding.binary_ref={},_.each(o,function(e){var n;h.branding.c8y_less_variables[e]&&(n=i.saveBinary(e,h.branding.c8y_less_variables[e],b.binary_ref,b.c8y_less_variables[e]).then(function(n){h.branding.binary_ref[e]=_.pick(n,["id","name"])}),t.push(n))}),n.all(t).then(function(){return h.branding.c8y_less_variables=_.omitBy(h.branding.c8y_less_variables,function(n,e){return""===_.trim(n)||_.includes(o,e)}),i.saveConfiguration(h.branding,b.id).then(function(){return l.success(s("Branding saved."))})}).then(e.reload)},generate:o.wizardGenerate,preview:function(){p=window.open("".concat(d.getHref(y),"/index.html"),"_blank","noopener,noreferrer"),function e(){clearInterval(m);m=setInterval(function(){var n;p&&(p.C8Y_PREVIEW={preview:!0,globalTitle:A(),previewCookieBanner:R()},p.C8Y_APP)&&(n=p.C8Y_APP.name,p.appTitle=v(n),clearInterval(m),T(),p.onunload=function(){return e()})})}()},blocked:function(){var n=h.state;return!_.get(h,"branding.id")||_.get(n,"RUNNING")||_.get(n,"WAITING")},title:window.document.title,favicon:"favicon.ico",useMicroservice:c,applyConfiguration:function(){a.removeLegacyBrandedApplications().then(function(){return g({status:"info",title:s("Apply branding configuration"),body:s("You are about to apply the branding configuration, making it visible to all subtenants. Do you want to proceed?"),labels:{ok:s("Apply")}})}).then(function(){a.deploy(h.branding.c8y_less_variables).then(function(){return l.success(s("Branding configuration is being applied. It usually takes less than a minute."))},function(n){l.danger(u.getResErrorMessage(n))})})},removeAppliedBranding:function(){g({status:"info",title:s("Remove branding"),body:s("You are about to remove applied branding.\n If you have any extra customization options set, they will be reset.\n The default branding will be shown to all subtenants. Do you want to proceed?"),labels:{ok:s("Remove")}}).then(function(){a.reset().then(function(){return l.success(s("Branding has been removed."))})})},resetForm:function(n){g({status:"info",title:s("Reset branding configuration"),body:s("You are about to reset the branding configuration to the previously saved settings.\n Do you want to proceed?"),labels:{ok:s("Reset")}}).then(function(){N().then(function(){n&&n.$setPristine(),l.success(s("Branding configuration has been reset."))},function(n){return l.danger(n)})})}})}n.$inject=["$scope","$q","$timeout","$route","c8yBrandingConfigurationUi","c8yBrandingConfiguration","c8yBrandingDeploy","USE_BRANDING_MICROSERVICE","c8yAlert","gettext","c8yBase","c8yApplication","c8yModal","$filter"],angular.module("c8y.custom-branding").component("c8yBrandingConfigurationForm",{templateUrl:":::PLUGIN_PATH:::/customBranding/brandingConfigurationForm.html",controller:n,controllerAs:"vm"})})();