@tuki-io/tuki-widgets 0.0.219-dev.0 → 0.0.220

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 (1064) hide show
  1. package/README.md +24 -25
  2. package/contact-center/cc-readiness/cc-readiness.module.d.ts +19 -0
  3. package/contact-center/cc-readiness/cc-readiness.service.d.ts +13 -0
  4. package/contact-center/cc-readiness/components/card/card.component.d.ts +6 -0
  5. package/contact-center/cc-readiness/types/cc-readiness.d.ts +16 -0
  6. package/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.d.ts +54 -0
  7. package/contact-center/cc-readiness/widgets/summary-grid/summary-grid.component.d.ts +27 -0
  8. package/contact-center/cc-script-editor/cc-script-editor.component.d.ts +53 -0
  9. package/contact-center/cc-script-editor/cc-script-editor.module.d.ts +20 -0
  10. package/contact-center/cc-script-editor/components/dialogs/add-node-dialog/add-node-dialog.component.d.ts +35 -0
  11. package/contact-center/cc-script-editor/components/dialogs/link-node-dialog/link-node-dialog.component.d.ts +38 -0
  12. package/contact-center/cc-script-editor/components/floating-toolbar/floating-toolbar.component.d.ts +34 -0
  13. package/contact-center/cc-script-editor/components/floating-toolbar/floating-toolbar.module.d.ts +9 -0
  14. package/contact-center/cc-script-editor/components/node-action-toolbar/node-action-toolbar.component.d.ts +27 -0
  15. package/contact-center/cc-script-editor/components/node-details-sidebar/node-details-sidebar.component.d.ts +27 -0
  16. package/contact-center/cc-script-editor/components/node-search-panel/node-search-panel.component.d.ts +14 -0
  17. package/contact-center/cc-script-editor/components/wxcc-actions-bar/wxcc-actions-bar.component.d.ts +11 -0
  18. package/contact-center/cc-script-editor/components/wxcc-file-selection-bar/wxcc-file-selection-bar.component.d.ts +24 -0
  19. package/contact-center/cc-script-editor/components/wxcc-flowchart/wxcc-flowchart.component.d.ts +68 -0
  20. package/contact-center/cc-script-editor/constants/cytoscape.config.d.ts +2 -0
  21. package/contact-center/cc-script-editor/constants/wxcc-api.constants.d.ts +15 -0
  22. package/contact-center/cc-script-editor/services/cystoscape-viewport.service.d.ts +21 -0
  23. package/contact-center/cc-script-editor/services/wxcc-activity-creation.service.d.ts +21 -0
  24. package/contact-center/cc-script-editor/services/wxcc-activity-manage.service.d.ts +8 -0
  25. package/contact-center/cc-script-editor/services/wxcc-flow-api.service.d.ts +43 -0
  26. package/contact-center/cc-script-editor/services/wxcc2graph.service.d.ts +42 -0
  27. package/contact-center/cc-script-editor/types/extended-activity.d.ts +47 -0
  28. package/contact-center/cc-script-editor/types/wxcc-activity.d.ts +96 -0
  29. package/contact-center/cc-script-editor/types/wxcc.d.ts +161 -0
  30. package/contact-center/cc-script-editor/utils/node-html-template.d.ts +3 -0
  31. package/contact-center/cc-script-editor/utils/node-mappings.d.ts +54 -0
  32. package/contact-center/index.d.ts +5 -0
  33. package/contact-center/public-api.d.ts +5 -0
  34. package/contact-center/shared/api.endpoints.d.ts +6 -0
  35. package/contact-center/shared/api.service.d.ts +20 -0
  36. package/contact-center/shared/material.module.d.ts +16 -0
  37. package/contact-center/shared/shared.module.d.ts +10 -0
  38. package/di2mt/api/api.endpoints.d.ts +32 -0
  39. package/di2mt/index.d.ts +5 -0
  40. package/di2mt/public-api.d.ts +14 -0
  41. package/di2mt/shared/components/card/card.component.d.ts +6 -0
  42. package/di2mt/shared/components/chart-card/chart-card.component.d.ts +23 -0
  43. package/di2mt/shared/components/stat-card/stat-card.component.d.ts +15 -0
  44. package/di2mt/shared/components/status-list-card/status-list-card.component.d.ts +15 -0
  45. package/di2mt/shared/components/summary-card/summary-card.component.d.ts +9 -0
  46. package/di2mt/shared/components/table-filters/table-filters.component.d.ts +14 -0
  47. package/di2mt/shared/constants/app.constants.d.ts +74 -0
  48. package/di2mt/shared/material.module.d.ts +15 -0
  49. package/di2mt/shared/services/api.service.d.ts +20 -0
  50. package/di2mt/shared/shared.module.d.ts +16 -0
  51. package/di2mt/shared/types/constants.d.ts +15 -0
  52. package/di2mt/shared/types/data-table.d.ts +5 -0
  53. package/di2mt/shared/types/table/filter.d.ts +16 -0
  54. package/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.d.ts +11 -0
  55. package/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.d.ts +70 -0
  56. package/di2mt/widgets/site-upgrade/site-upgrade.module.d.ts +15 -0
  57. package/di2mt/widgets/site-upgrade/site-upgrade.service.d.ts +84 -0
  58. package/di2mt/widgets/site-upgrade/types/user-upgrade.d.ts +26 -0
  59. package/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.d.ts +20 -0
  60. package/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.d.ts +20 -0
  61. package/di2mt/widgets/upgrade-overview/cards/pending-activation-users/pending-activation-users.component.d.ts +20 -0
  62. package/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.d.ts +19 -0
  63. package/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.d.ts +20 -0
  64. package/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.d.ts +20 -0
  65. package/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.d.ts +16 -0
  66. package/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.d.ts +19 -0
  67. package/di2mt/widgets/upgrade-overview/types/upgrade-overview.d.ts +57 -0
  68. package/di2mt/widgets/upgrade-overview/upgrade-overview.module.d.ts +16 -0
  69. package/di2mt/widgets/upgrade-overview/upgrade-overview.service.d.ts +18 -0
  70. package/di2mt/widgets/user-upgrade/types/user-upgrade.d.ts +32 -0
  71. package/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.d.ts +80 -0
  72. package/di2mt/widgets/user-upgrade/user-upgrade.module.d.ts +16 -0
  73. package/di2mt/widgets/user-upgrade/user-upgrade.service.d.ts +41 -0
  74. package/esm2020/contact-center/cc-readiness/cc-readiness.module.mjs +71 -0
  75. package/esm2020/contact-center/cc-readiness/cc-readiness.service.mjs +38 -0
  76. package/esm2020/contact-center/cc-readiness/components/card/card.component.mjs +13 -0
  77. package/esm2020/contact-center/cc-readiness/types/cc-readiness.mjs +3 -0
  78. package/esm2020/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.mjs +194 -0
  79. package/esm2020/contact-center/cc-readiness/widgets/summary-grid/summary-grid.component.mjs +50 -0
  80. package/esm2020/contact-center/cc-script-editor/cc-script-editor.component.mjs +193 -0
  81. package/esm2020/contact-center/cc-script-editor/cc-script-editor.module.mjs +83 -0
  82. package/esm2020/contact-center/cc-script-editor/components/dialogs/add-node-dialog/add-node-dialog.component.mjs +60 -0
  83. package/esm2020/contact-center/cc-script-editor/components/dialogs/link-node-dialog/link-node-dialog.component.mjs +83 -0
  84. package/esm2020/contact-center/cc-script-editor/components/floating-toolbar/floating-toolbar.component.mjs +104 -0
  85. package/esm2020/contact-center/cc-script-editor/components/floating-toolbar/floating-toolbar.module.mjs +28 -0
  86. package/esm2020/contact-center/cc-script-editor/components/node-action-toolbar/node-action-toolbar.component.mjs +65 -0
  87. package/esm2020/contact-center/cc-script-editor/components/node-details-sidebar/node-details-sidebar.component.mjs +97 -0
  88. package/esm2020/contact-center/cc-script-editor/components/node-search-panel/node-search-panel.component.mjs +43 -0
  89. package/esm2020/contact-center/cc-script-editor/components/wxcc-actions-bar/wxcc-actions-bar.component.mjs +27 -0
  90. package/esm2020/contact-center/cc-script-editor/components/wxcc-file-selection-bar/wxcc-file-selection-bar.component.mjs +61 -0
  91. package/esm2020/contact-center/cc-script-editor/components/wxcc-flowchart/wxcc-flowchart.component.mjs +434 -0
  92. package/esm2020/contact-center/cc-script-editor/constants/cytoscape.config.mjs +72 -0
  93. package/esm2020/contact-center/cc-script-editor/constants/wxcc-api.constants.mjs +14 -0
  94. package/esm2020/contact-center/cc-script-editor/services/cystoscape-viewport.service.mjs +65 -0
  95. package/esm2020/contact-center/cc-script-editor/services/wxcc-activity-creation.service.mjs +82 -0
  96. package/esm2020/contact-center/cc-script-editor/services/wxcc-activity-manage.service.mjs +162 -0
  97. package/esm2020/contact-center/cc-script-editor/services/wxcc-flow-api.service.mjs +79 -0
  98. package/esm2020/contact-center/cc-script-editor/services/wxcc2graph.service.mjs +144 -0
  99. package/esm2020/contact-center/cc-script-editor/types/extended-activity.mjs +4 -0
  100. package/esm2020/contact-center/cc-script-editor/types/wxcc-activity.mjs +2 -0
  101. package/esm2020/contact-center/cc-script-editor/types/wxcc.mjs +6 -0
  102. package/esm2020/contact-center/cc-script-editor/utils/node-html-template.mjs +76 -0
  103. package/esm2020/contact-center/cc-script-editor/utils/node-mappings.mjs +109 -0
  104. package/esm2020/contact-center/public-api.mjs +6 -0
  105. package/esm2020/contact-center/shared/api.endpoints.mjs +7 -0
  106. package/esm2020/contact-center/shared/api.service.mjs +81 -0
  107. package/esm2020/contact-center/shared/material.module.mjs +80 -0
  108. package/esm2020/contact-center/shared/shared.module.mjs +33 -0
  109. package/esm2020/contact-center/tuki-io-tuki-widgets-contact-center.mjs +5 -0
  110. package/esm2020/di2mt/api/api.endpoints.mjs +33 -0
  111. package/esm2020/di2mt/public-api.mjs +25 -0
  112. package/esm2020/di2mt/shared/components/card/card.component.mjs +13 -0
  113. package/esm2020/di2mt/shared/components/chart-card/chart-card.component.mjs +66 -0
  114. package/esm2020/di2mt/shared/components/stat-card/stat-card.component.mjs +65 -0
  115. package/esm2020/di2mt/shared/components/status-list-card/status-list-card.component.mjs +43 -0
  116. package/esm2020/di2mt/shared/components/summary-card/summary-card.component.mjs +36 -0
  117. package/esm2020/di2mt/shared/components/table-filters/table-filters.component.mjs +37 -0
  118. package/esm2020/di2mt/shared/constants/app.constants.mjs +95 -0
  119. package/esm2020/di2mt/shared/material.module.mjs +76 -0
  120. package/esm2020/di2mt/shared/services/api.service.mjs +81 -0
  121. package/esm2020/di2mt/shared/shared.module.mjs +63 -0
  122. package/esm2020/di2mt/shared/types/constants.mjs +20 -0
  123. package/esm2020/di2mt/shared/types/data-table.mjs +2 -0
  124. package/esm2020/di2mt/shared/types/table/filter.mjs +2 -0
  125. package/esm2020/di2mt/tuki-io-tuki-widgets-di2mt.mjs +5 -0
  126. package/esm2020/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.mjs +38 -0
  127. package/esm2020/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.mjs +438 -0
  128. package/esm2020/di2mt/widgets/site-upgrade/site-upgrade.module.mjs +53 -0
  129. package/esm2020/di2mt/widgets/site-upgrade/site-upgrade.service.mjs +93 -0
  130. package/esm2020/di2mt/widgets/site-upgrade/types/user-upgrade.mjs +3 -0
  131. package/esm2020/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.mjs +67 -0
  132. package/esm2020/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.mjs +71 -0
  133. package/esm2020/di2mt/widgets/upgrade-overview/cards/pending-activation-users/pending-activation-users.component.mjs +83 -0
  134. package/esm2020/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.mjs +86 -0
  135. package/esm2020/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.mjs +48 -0
  136. package/esm2020/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.mjs +48 -0
  137. package/esm2020/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.mjs +89 -0
  138. package/esm2020/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.mjs +77 -0
  139. package/esm2020/di2mt/widgets/upgrade-overview/types/upgrade-overview.mjs +2 -0
  140. package/esm2020/di2mt/widgets/upgrade-overview/upgrade-overview.module.mjs +64 -0
  141. package/esm2020/di2mt/widgets/upgrade-overview/upgrade-overview.service.mjs +93 -0
  142. package/esm2020/di2mt/widgets/user-upgrade/types/user-upgrade.mjs +3 -0
  143. package/esm2020/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.mjs +379 -0
  144. package/esm2020/di2mt/widgets/user-upgrade/user-upgrade.module.mjs +59 -0
  145. package/esm2020/di2mt/widgets/user-upgrade/user-upgrade.service.mjs +80 -0
  146. package/esm2020/lib/widgets.component.mjs +22 -0
  147. package/esm2020/lib/widgets.module.mjs +21 -0
  148. package/esm2020/lib/widgets.service.mjs +14 -0
  149. package/esm2020/public-api.mjs +7 -0
  150. package/esm2020/tuki-io-tuki-widgets.mjs +5 -0
  151. package/esm2020/user-creation/public-api.mjs +13 -0
  152. package/esm2020/user-creation/src/app.constants.mjs +30 -0
  153. package/esm2020/user-creation/src/classes/notification.mjs +32 -0
  154. package/esm2020/user-creation/src/classes/site.mjs +53 -0
  155. package/esm2020/user-creation/src/environments/environment.mjs +11 -0
  156. package/esm2020/user-creation/src/interfaces/user-creation-wizard.interfaces.mjs +199 -0
  157. package/esm2020/user-creation/src/shared/api/api.service.mjs +81 -0
  158. package/esm2020/user-creation/src/shared/components/notification/notification.component.mjs +38 -0
  159. package/esm2020/user-creation/src/shared/material.module.mjs +104 -0
  160. package/esm2020/user-creation/src/shared/pipes/truncate.pipe.mjs +30 -0
  161. package/esm2020/user-creation/src/shared/services/notification.service.mjs +62 -0
  162. package/esm2020/user-creation/src/shared/services/user-creation-api.service.mjs +116 -0
  163. package/esm2020/user-creation/src/shared/services/utils.mjs +19 -0
  164. package/esm2020/user-creation/src/shared/shared.module.mjs +56 -0
  165. package/esm2020/user-creation/src/user-creation.module.mjs +102 -0
  166. package/esm2020/user-creation/src/utils/app-loader/app-loader.mjs +14 -0
  167. package/esm2020/user-creation/src/utils/build-savable-end-user.mjs +147 -0
  168. package/esm2020/user-creation/src/utils/device-default-prefix.mjs +13 -0
  169. package/esm2020/user-creation/src/utils/device-name-validation.mjs +23 -0
  170. package/esm2020/user-creation/src/utils/model.mjs +19 -0
  171. package/esm2020/user-creation/src/utils/parse-device-name-rule.mjs +26 -0
  172. package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.mjs +521 -0
  173. package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-overview-step/user-overview-step.component.mjs +19 -0
  174. package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.mjs +176 -0
  175. package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.mjs +127 -0
  176. package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.service.mjs +796 -0
  177. package/esm2020/user-creation/tuki-io-tuki-widgets-user-creation.mjs +5 -0
  178. package/esm2020/user-device-manage/public-api.mjs +9 -0
  179. package/esm2020/user-device-manage/src/app.constants.mjs +98 -0
  180. package/esm2020/user-device-manage/src/classes/device.mjs +85 -0
  181. package/esm2020/user-device-manage/src/classes/deviceProfile.mjs +40 -0
  182. package/esm2020/user-device-manage/src/classes/line-association-interface.mjs +2 -0
  183. package/esm2020/user-device-manage/src/classes/line-association.mjs +121 -0
  184. package/esm2020/user-device-manage/src/classes/line-call-info-display.mjs +10 -0
  185. package/esm2020/user-device-manage/src/classes/line-directory.mjs +27 -0
  186. package/esm2020/user-device-manage/src/classes/line.mjs +18 -0
  187. package/esm2020/user-device-manage/src/classes/notification.mjs +32 -0
  188. package/esm2020/user-device-manage/src/classes/recording-options.mjs +7 -0
  189. package/esm2020/user-device-manage/src/classes/simplified-user.mjs +111 -0
  190. package/esm2020/user-device-manage/src/classes/site-defaults.mjs +21 -0
  191. package/esm2020/user-device-manage/src/classes/translation-pattern.mjs +32 -0
  192. package/esm2020/user-device-manage/src/classes/types.mjs +24 -0
  193. package/esm2020/user-device-manage/src/common-functions.mjs +19 -0
  194. package/esm2020/user-device-manage/src/confirm-dialog/info-dialog.component.mjs +34 -0
  195. package/esm2020/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.mjs +31 -0
  196. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.mjs +16 -0
  197. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.mjs +74 -0
  198. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line.component.mjs +179 -0
  199. package/esm2020/user-device-manage/src/device-info/device-info.component.mjs +43 -0
  200. package/esm2020/user-device-manage/src/device-list/device-list.component.mjs +24 -0
  201. package/esm2020/user-device-manage/src/device-manage-widget.component.mjs +178 -0
  202. package/esm2020/user-device-manage/src/environments/environment.mjs +11 -0
  203. package/esm2020/user-device-manage/src/interseptors/auth.interceptor.mjs +36 -0
  204. package/esm2020/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +74 -0
  205. package/esm2020/user-device-manage/src/material.module.mjs +192 -0
  206. package/esm2020/user-device-manage/src/notifications/notification.component.mjs +35 -0
  207. package/esm2020/user-device-manage/src/pipes/mac-address.pipe.mjs +26 -0
  208. package/esm2020/user-device-manage/src/services/api.service.mjs +79 -0
  209. package/esm2020/user-device-manage/src/services/device.service.mjs +83 -0
  210. package/esm2020/user-device-manage/src/services/dns.service.mjs +136 -0
  211. package/esm2020/user-device-manage/src/services/line.service.mjs +76 -0
  212. package/esm2020/user-device-manage/src/services/notification.service.mjs +62 -0
  213. package/esm2020/user-device-manage/src/services/removeKynFromIBM.service.mjs +25 -0
  214. package/esm2020/user-device-manage/src/services/site-settings.service.mjs +70 -0
  215. package/esm2020/user-device-manage/src/services/sorting-utils.service.mjs +197 -0
  216. package/esm2020/user-device-manage/src/services/user.service.mjs +366 -0
  217. package/esm2020/user-device-manage/src/services/utils.service.mjs +87 -0
  218. package/esm2020/user-device-manage/src/services/validation.service.mjs +760 -0
  219. package/esm2020/user-device-manage/src/shared/tk-page-section/page-section.component.mjs +13 -0
  220. package/esm2020/user-device-manage/src/user-device-manage.module.mjs +116 -0
  221. package/esm2020/user-device-manage/src/utils/app-loader/app-loader.mjs +14 -0
  222. package/esm2020/user-device-manage/tuki-io-tuki-widgets-user-device-manage.mjs +5 -0
  223. package/esm2020/user-manage/public-api.mjs +7 -0
  224. package/esm2020/user-manage/src/app.constants.mjs +55 -0
  225. package/esm2020/user-manage/src/classes/device.mjs +38 -0
  226. package/esm2020/user-manage/src/classes/line-association-interface.mjs +2 -0
  227. package/esm2020/user-manage/src/classes/line-association.mjs +110 -0
  228. package/esm2020/user-manage/src/classes/line-call-info-display.mjs +10 -0
  229. package/esm2020/user-manage/src/classes/line-directory.mjs +28 -0
  230. package/esm2020/user-manage/src/classes/line.mjs +18 -0
  231. package/esm2020/user-manage/src/classes/notification.mjs +32 -0
  232. package/esm2020/user-manage/src/classes/pagination.mjs +8 -0
  233. package/esm2020/user-manage/src/classes/recording-options.mjs +7 -0
  234. package/esm2020/user-manage/src/classes/simplified-user.mjs +115 -0
  235. package/esm2020/user-manage/src/classes/table-data.mjs +2 -0
  236. package/esm2020/user-manage/src/classes/translation-pattern.mjs +32 -0
  237. package/esm2020/user-manage/src/classes/user-list.mjs +10 -0
  238. package/esm2020/user-manage/src/common-functions.mjs +19 -0
  239. package/esm2020/user-manage/src/device-list/device-list.component.mjs +26 -0
  240. package/esm2020/user-manage/src/device-list/device-row/device-row.component.mjs +33 -0
  241. package/esm2020/user-manage/src/environments/environment.mjs +11 -0
  242. package/esm2020/user-manage/src/interseptors/auth.interceptor.mjs +36 -0
  243. package/esm2020/user-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +81 -0
  244. package/esm2020/user-manage/src/material.module.mjs +188 -0
  245. package/esm2020/user-manage/src/notifications/notification.component.mjs +35 -0
  246. package/esm2020/user-manage/src/removeKynFromIBM.service.mjs +25 -0
  247. package/esm2020/user-manage/src/services/api.service.mjs +79 -0
  248. package/esm2020/user-manage/src/services/dns.service.mjs +110 -0
  249. package/esm2020/user-manage/src/services/line.service.mjs +34 -0
  250. package/esm2020/user-manage/src/services/notification.service.mjs +62 -0
  251. package/esm2020/user-manage/src/services/removeKynFromIBM.service.mjs +25 -0
  252. package/esm2020/user-manage/src/services/site-settings.service.mjs +36 -0
  253. package/esm2020/user-manage/src/services/sorting-utils.service.mjs +197 -0
  254. package/esm2020/user-manage/src/services/user.service.mjs +257 -0
  255. package/esm2020/user-manage/src/services/users-search.service.mjs +50 -0
  256. package/esm2020/user-manage/src/services/utils.service.mjs +73 -0
  257. package/esm2020/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.mjs +65 -0
  258. package/esm2020/user-manage/src/user-calling/user-calling.component.mjs +87 -0
  259. package/esm2020/user-manage/src/user-info/user-info.component.mjs +32 -0
  260. package/esm2020/user-manage/src/user-manage-widget.component.mjs +226 -0
  261. package/esm2020/user-manage/src/user-manage.module.mjs +102 -0
  262. package/esm2020/user-manage/src/utils/app-loader/app-loader.mjs +14 -0
  263. package/esm2020/user-manage/src/utils/pagination/pagination.component.mjs +43 -0
  264. package/esm2020/user-manage/tuki-io-tuki-widgets-user-manage.mjs +5 -0
  265. package/esm2020/users-list/public-api.mjs +9 -0
  266. package/esm2020/users-list/src/app.constants.mjs +84 -0
  267. package/esm2020/users-list/src/classes/app-location.mjs +32 -0
  268. package/esm2020/users-list/src/classes/device.mjs +7 -0
  269. package/esm2020/users-list/src/classes/line.mjs +18 -0
  270. package/esm2020/users-list/src/classes/move-user.mjs +182 -0
  271. package/esm2020/users-list/src/classes/notification.mjs +31 -0
  272. package/esm2020/users-list/src/classes/pagination.mjs +8 -0
  273. package/esm2020/users-list/src/classes/simlified-user.mjs +50 -0
  274. package/esm2020/users-list/src/classes/table-data.mjs +2 -0
  275. package/esm2020/users-list/src/classes/user-list.mjs +15 -0
  276. package/esm2020/users-list/src/components/table-toolbar/table-toolbar.component.mjs +44 -0
  277. package/esm2020/users-list/src/material.module.mjs +216 -0
  278. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.mjs +38 -0
  279. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.mjs +23 -0
  280. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.mjs +192 -0
  281. package/esm2020/users-list/src/move-user-wizard/move-user-wizard.component.mjs +38 -0
  282. package/esm2020/users-list/src/services/api-webex.service.mjs +18 -0
  283. package/esm2020/users-list/src/services/api.service.mjs +78 -0
  284. package/esm2020/users-list/src/services/dns.service.mjs +120 -0
  285. package/esm2020/users-list/src/services/events-communication.service.mjs +14 -0
  286. package/esm2020/users-list/src/services/move-user.service.mjs +53 -0
  287. package/esm2020/users-list/src/services/notification.service.mjs +62 -0
  288. package/esm2020/users-list/src/services/removeKynFromIBM.service.mjs +25 -0
  289. package/esm2020/users-list/src/services/site-settings.service.mjs +27 -0
  290. package/esm2020/users-list/src/services/user.service.mjs +174 -0
  291. package/esm2020/users-list/src/services/users-search.service.mjs +168 -0
  292. package/esm2020/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.mjs +34 -0
  293. package/esm2020/users-list/src/users-list.component.mjs +817 -0
  294. package/esm2020/users-list/src/users-list.module.mjs +98 -0
  295. package/esm2020/users-list/src/utils/app-loader/app-loader.mjs +14 -0
  296. package/esm2020/users-list/src/utils/common-functions.mjs +32 -0
  297. package/esm2020/users-list/src/utils/notifications/notification.component.mjs +38 -0
  298. package/esm2020/users-list/src/utils/pagination/pagination.component.mjs +43 -0
  299. package/esm2020/users-list/src/utils/utils.service.mjs +73 -0
  300. package/esm2020/users-list/tuki-io-tuki-widgets-users-list.mjs +5 -0
  301. package/fesm2015/tuki-io-tuki-widgets-contact-center.mjs +3452 -0
  302. package/fesm2015/tuki-io-tuki-widgets-contact-center.mjs.map +1 -0
  303. package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs +2353 -0
  304. package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +1 -0
  305. package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs +2774 -0
  306. package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs.map +1 -0
  307. package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs +3515 -0
  308. package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -0
  309. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +2268 -0
  310. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
  311. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +2726 -0
  312. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
  313. package/fesm2015/tuki-io-tuki-widgets.mjs +63 -0
  314. package/fesm2015/tuki-io-tuki-widgets.mjs.map +1 -0
  315. package/fesm2020/tuki-io-tuki-widgets-contact-center.mjs +3471 -0
  316. package/fesm2020/tuki-io-tuki-widgets-contact-center.mjs.map +1 -0
  317. package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs +2342 -0
  318. package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs.map +1 -0
  319. package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs +2733 -0
  320. package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs.map +1 -0
  321. package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs +3493 -0
  322. package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -0
  323. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +2252 -0
  324. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
  325. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +2699 -0
  326. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
  327. package/fesm2020/tuki-io-tuki-widgets.mjs +63 -0
  328. package/fesm2020/tuki-io-tuki-widgets.mjs.map +1 -0
  329. package/index.d.ts +5 -0
  330. package/lib/widgets.component.d.ts +8 -0
  331. package/lib/widgets.module.d.ts +7 -0
  332. package/lib/widgets.service.d.ts +6 -0
  333. package/package.json +81 -59
  334. package/public-api.d.ts +3 -0
  335. package/user-creation/index.d.ts +5 -0
  336. package/user-creation/public-api.d.ts +2 -0
  337. package/user-creation/src/app.constants.d.ts +25 -0
  338. package/user-creation/src/classes/notification.d.ts +18 -0
  339. package/user-creation/src/classes/site.d.ts +203 -0
  340. package/user-creation/src/environments/environment.d.ts +9 -0
  341. package/user-creation/src/interfaces/user-creation-wizard.interfaces.d.ts +554 -0
  342. package/user-creation/src/shared/api/api.service.d.ts +20 -0
  343. package/user-creation/src/shared/components/notification/notification.component.d.ts +19 -0
  344. package/user-creation/src/shared/material.module.d.ts +19 -0
  345. package/user-creation/src/shared/pipes/truncate.pipe.d.ts +7 -0
  346. package/user-creation/src/shared/services/notification.service.d.ts +18 -0
  347. package/user-creation/src/shared/services/user-creation-api.service.d.ts +30 -0
  348. package/user-creation/src/shared/services/utils.d.ts +1 -0
  349. package/user-creation/src/shared/shared.module.d.ts +12 -0
  350. package/user-creation/src/user-creation.module.d.ts +24 -0
  351. package/user-creation/src/utils/app-loader/app-loader.d.ts +6 -0
  352. package/user-creation/src/utils/build-savable-end-user.d.ts +23 -0
  353. package/user-creation/src/utils/device-default-prefix.d.ts +5 -0
  354. package/user-creation/src/utils/device-name-validation.d.ts +6 -0
  355. package/user-creation/src/utils/model.d.ts +1 -0
  356. package/user-creation/src/utils/parse-device-name-rule.d.ts +8 -0
  357. package/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.d.ts +86 -0
  358. package/user-creation/src/widgets/user-creation-wizard/components/user-overview-step/user-overview-step.component.d.ts +11 -0
  359. package/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.d.ts +47 -0
  360. package/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.d.ts +37 -0
  361. package/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.service.d.ts +106 -0
  362. package/user-device-manage/index.d.ts +5 -0
  363. package/user-device-manage/public-api.d.ts +8 -0
  364. package/user-device-manage/src/app.constants.d.ts +77 -0
  365. package/user-device-manage/src/classes/device.d.ts +233 -0
  366. package/user-device-manage/src/classes/deviceProfile.d.ts +37 -0
  367. package/user-device-manage/src/classes/line-association-interface.d.ts +45 -0
  368. package/user-device-manage/src/classes/line-association.d.ts +62 -0
  369. package/user-device-manage/src/classes/line-call-info-display.d.ts +11 -0
  370. package/user-device-manage/src/classes/line-directory.d.ts +15 -0
  371. package/user-device-manage/src/classes/line.d.ts +140 -0
  372. package/user-device-manage/src/classes/notification.d.ts +18 -0
  373. package/user-device-manage/src/classes/recording-options.d.ts +5 -0
  374. package/user-device-manage/src/classes/simplified-user.d.ts +52 -0
  375. package/user-device-manage/src/classes/site-defaults.d.ts +146 -0
  376. package/user-device-manage/src/classes/translation-pattern.d.ts +19 -0
  377. package/user-device-manage/src/classes/types.d.ts +19 -0
  378. package/user-device-manage/src/common-functions.d.ts +1 -0
  379. package/user-device-manage/src/confirm-dialog/info-dialog.component.d.ts +20 -0
  380. package/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.d.ts +15 -0
  381. package/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.d.ts +7 -0
  382. package/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.d.ts +28 -0
  383. package/user-device-manage/src/device-associated-line/device-associated-line.component.d.ts +89 -0
  384. package/user-device-manage/src/device-info/device-info.component.d.ts +15 -0
  385. package/user-device-manage/src/device-list/device-list.component.d.ts +11 -0
  386. package/user-device-manage/src/device-manage-widget.component.d.ts +62 -0
  387. package/user-device-manage/src/environments/environment.d.ts +9 -0
  388. package/user-device-manage/src/interseptors/auth.interceptor.d.ts +9 -0
  389. package/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +35 -0
  390. package/user-device-manage/src/material.module.d.ts +29 -0
  391. package/user-device-manage/src/notifications/notification.component.d.ts +19 -0
  392. package/user-device-manage/src/pipes/mac-address.pipe.d.ts +7 -0
  393. package/user-device-manage/src/services/api.service.d.ts +20 -0
  394. package/user-device-manage/src/services/device.service.d.ts +21 -0
  395. package/user-device-manage/src/services/dns.service.d.ts +18 -0
  396. package/user-device-manage/src/services/line.service.d.ts +33 -0
  397. package/user-device-manage/src/services/notification.service.d.ts +18 -0
  398. package/user-device-manage/src/services/removeKynFromIBM.service.d.ts +8 -0
  399. package/user-device-manage/src/services/site-settings.service.d.ts +25 -0
  400. package/user-device-manage/src/services/sorting-utils.service.d.ts +26 -0
  401. package/user-device-manage/src/services/user.service.d.ts +69 -0
  402. package/user-device-manage/src/services/utils.service.d.ts +10 -0
  403. package/user-device-manage/src/services/validation.service.d.ts +165 -0
  404. package/user-device-manage/src/shared/tk-page-section/page-section.component.d.ts +6 -0
  405. package/user-device-manage/src/user-device-manage.module.d.ts +25 -0
  406. package/user-device-manage/src/utils/app-loader/app-loader.d.ts +6 -0
  407. package/user-manage/index.d.ts +5 -0
  408. package/user-manage/public-api.d.ts +6 -0
  409. package/user-manage/src/app.constants.d.ts +34 -0
  410. package/user-manage/src/classes/device.d.ts +204 -0
  411. package/user-manage/src/classes/line-association-interface.d.ts +41 -0
  412. package/user-manage/src/classes/line-association.d.ts +55 -0
  413. package/user-manage/src/classes/line-call-info-display.d.ts +11 -0
  414. package/user-manage/src/classes/line-directory.d.ts +17 -0
  415. package/user-manage/src/classes/line.d.ts +141 -0
  416. package/user-manage/src/classes/notification.d.ts +18 -0
  417. package/user-manage/src/classes/pagination.d.ts +13 -0
  418. package/user-manage/src/classes/recording-options.d.ts +5 -0
  419. package/user-manage/src/classes/simplified-user.d.ts +53 -0
  420. package/user-manage/src/classes/table-data.d.ts +5 -0
  421. package/user-manage/src/classes/translation-pattern.d.ts +18 -0
  422. package/user-manage/src/classes/user-list.d.ts +34 -0
  423. package/user-manage/src/common-functions.d.ts +1 -0
  424. package/user-manage/src/device-list/device-list.component.d.ts +11 -0
  425. package/user-manage/src/device-list/device-row/device-row.component.d.ts +12 -0
  426. package/user-manage/src/environments/environment.d.ts +9 -0
  427. package/user-manage/src/interseptors/auth.interceptor.d.ts +9 -0
  428. package/user-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +37 -0
  429. package/user-manage/src/material.module.d.ts +28 -0
  430. package/user-manage/src/notifications/notification.component.d.ts +19 -0
  431. package/user-manage/src/removeKynFromIBM.service.d.ts +8 -0
  432. package/user-manage/src/services/api.service.d.ts +21 -0
  433. package/user-manage/src/services/dns.service.d.ts +14 -0
  434. package/user-manage/src/services/line.service.d.ts +17 -0
  435. package/user-manage/src/services/notification.service.d.ts +18 -0
  436. package/user-manage/src/services/removeKynFromIBM.service.d.ts +8 -0
  437. package/user-manage/src/services/site-settings.service.d.ts +9 -0
  438. package/user-manage/src/services/sorting-utils.service.d.ts +26 -0
  439. package/user-manage/src/services/user.service.d.ts +46 -0
  440. package/user-manage/src/services/users-search.service.d.ts +25 -0
  441. package/user-manage/src/services/utils.service.d.ts +9 -0
  442. package/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.d.ts +24 -0
  443. package/user-manage/src/user-calling/user-calling.component.d.ts +33 -0
  444. package/user-manage/src/user-info/user-info.component.d.ts +12 -0
  445. package/user-manage/src/user-manage-widget.component.d.ts +45 -0
  446. package/user-manage/src/user-manage.module.d.ts +22 -0
  447. package/user-manage/src/utils/app-loader/app-loader.d.ts +6 -0
  448. package/user-manage/src/utils/pagination/pagination.component.d.ts +18 -0
  449. package/users-list/index.d.ts +5 -0
  450. package/users-list/public-api.d.ts +8 -0
  451. package/users-list/src/app.constants.d.ts +67 -0
  452. package/users-list/src/classes/app-location.d.ts +17 -0
  453. package/users-list/src/classes/device.d.ts +224 -0
  454. package/users-list/src/classes/line.d.ts +140 -0
  455. package/users-list/src/classes/move-user.d.ts +85 -0
  456. package/users-list/src/classes/notification.d.ts +18 -0
  457. package/users-list/src/classes/pagination.d.ts +13 -0
  458. package/users-list/src/classes/simlified-user.d.ts +25 -0
  459. package/users-list/src/classes/table-data.d.ts +5 -0
  460. package/users-list/src/classes/user-list.d.ts +37 -0
  461. package/users-list/src/components/table-toolbar/table-toolbar.component.d.ts +17 -0
  462. package/users-list/src/material.module.d.ts +32 -0
  463. package/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.d.ts +21 -0
  464. package/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.d.ts +12 -0
  465. package/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.d.ts +55 -0
  466. package/users-list/src/move-user-wizard/move-user-wizard.component.d.ts +17 -0
  467. package/users-list/src/services/api-webex.service.d.ts +8 -0
  468. package/users-list/src/services/api.service.d.ts +21 -0
  469. package/users-list/src/services/dns.service.d.ts +18 -0
  470. package/users-list/src/services/events-communication.service.d.ts +8 -0
  471. package/users-list/src/services/move-user.service.d.ts +17 -0
  472. package/users-list/src/services/notification.service.d.ts +18 -0
  473. package/users-list/src/services/removeKynFromIBM.service.d.ts +8 -0
  474. package/users-list/src/services/site-settings.service.d.ts +11 -0
  475. package/users-list/src/services/user.service.d.ts +42 -0
  476. package/users-list/src/services/users-search.service.d.ts +41 -0
  477. package/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.d.ts +20 -0
  478. package/users-list/src/users-list.component.d.ts +97 -0
  479. package/users-list/src/users-list.module.d.ts +20 -0
  480. package/users-list/src/utils/app-loader/app-loader.d.ts +6 -0
  481. package/users-list/src/utils/common-functions.d.ts +2 -0
  482. package/users-list/src/utils/notifications/notification.component.d.ts +19 -0
  483. package/users-list/src/utils/pagination/pagination.component.d.ts +18 -0
  484. package/users-list/src/utils/utils.service.d.ts +9 -0
  485. package/.editorconfig +0 -16
  486. package/.hintrc +0 -14
  487. package/.vscode/extensions.json +0 -4
  488. package/.vscode/launch.json +0 -20
  489. package/.vscode/tasks.json +0 -42
  490. package/angular.json +0 -141
  491. package/projects/tuki/widgets/README.md +0 -24
  492. package/projects/tuki/widgets/contact-center/cc-readiness/cc-readiness.module.ts +0 -44
  493. package/projects/tuki/widgets/contact-center/cc-readiness/cc-readiness.service.spec.ts +0 -16
  494. package/projects/tuki/widgets/contact-center/cc-readiness/cc-readiness.service.ts +0 -37
  495. package/projects/tuki/widgets/contact-center/cc-readiness/components/card/card.component.html +0 -11
  496. package/projects/tuki/widgets/contact-center/cc-readiness/components/card/card.component.scss +0 -48
  497. package/projects/tuki/widgets/contact-center/cc-readiness/components/card/card.component.ts +0 -10
  498. package/projects/tuki/widgets/contact-center/cc-readiness/types/cc-readiness.ts +0 -30
  499. package/projects/tuki/widgets/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.html +0 -75
  500. package/projects/tuki/widgets/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.scss +0 -177
  501. package/projects/tuki/widgets/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.spec.ts +0 -35
  502. package/projects/tuki/widgets/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.ts +0 -243
  503. package/projects/tuki/widgets/contact-center/cc-readiness/widgets/summary-grid/summary-grid.component.html +0 -19
  504. package/projects/tuki/widgets/contact-center/cc-readiness/widgets/summary-grid/summary-grid.component.scss +0 -38
  505. package/projects/tuki/widgets/contact-center/cc-readiness/widgets/summary-grid/summary-grid.component.ts +0 -59
  506. package/projects/tuki/widgets/contact-center/cc-script-editor/cc-script-editor.component.html +0 -36
  507. package/projects/tuki/widgets/contact-center/cc-script-editor/cc-script-editor.component.scss +0 -28
  508. package/projects/tuki/widgets/contact-center/cc-script-editor/cc-script-editor.component.ts +0 -263
  509. package/projects/tuki/widgets/contact-center/cc-script-editor/cc-script-editor.module.ts +0 -54
  510. package/projects/tuki/widgets/contact-center/cc-script-editor/components/dialogs/add-node-dialog/add-node-dialog.component.html +0 -0
  511. package/projects/tuki/widgets/contact-center/cc-script-editor/components/dialogs/add-node-dialog/add-node-dialog.component.scss +0 -111
  512. package/projects/tuki/widgets/contact-center/cc-script-editor/components/dialogs/add-node-dialog/add-node-dialog.component.ts +0 -78
  513. package/projects/tuki/widgets/contact-center/cc-script-editor/components/dialogs/link-node-dialog/link-node-dialog.component.html +0 -0
  514. package/projects/tuki/widgets/contact-center/cc-script-editor/components/dialogs/link-node-dialog/link-node-dialog.component.scss +0 -155
  515. package/projects/tuki/widgets/contact-center/cc-script-editor/components/dialogs/link-node-dialog/link-node-dialog.component.ts +0 -105
  516. package/projects/tuki/widgets/contact-center/cc-script-editor/components/floating-toolbar/floating-toolbar.component.html +0 -13
  517. package/projects/tuki/widgets/contact-center/cc-script-editor/components/floating-toolbar/floating-toolbar.component.scss +0 -36
  518. package/projects/tuki/widgets/contact-center/cc-script-editor/components/floating-toolbar/floating-toolbar.component.ts +0 -118
  519. package/projects/tuki/widgets/contact-center/cc-script-editor/components/floating-toolbar/floating-toolbar.module.ts +0 -18
  520. package/projects/tuki/widgets/contact-center/cc-script-editor/components/node-action-toolbar/node-action-toolbar.component.html +0 -18
  521. package/projects/tuki/widgets/contact-center/cc-script-editor/components/node-action-toolbar/node-action-toolbar.component.scss +0 -62
  522. package/projects/tuki/widgets/contact-center/cc-script-editor/components/node-action-toolbar/node-action-toolbar.component.ts +0 -72
  523. package/projects/tuki/widgets/contact-center/cc-script-editor/components/node-details-sidebar/node-details-sidebar.component.html +0 -130
  524. package/projects/tuki/widgets/contact-center/cc-script-editor/components/node-details-sidebar/node-details-sidebar.component.scss +0 -298
  525. package/projects/tuki/widgets/contact-center/cc-script-editor/components/node-details-sidebar/node-details-sidebar.component.ts +0 -113
  526. package/projects/tuki/widgets/contact-center/cc-script-editor/components/node-search-panel/node-search-panel.component.html +0 -13
  527. package/projects/tuki/widgets/contact-center/cc-script-editor/components/node-search-panel/node-search-panel.component.scss +0 -57
  528. package/projects/tuki/widgets/contact-center/cc-script-editor/components/node-search-panel/node-search-panel.component.ts +0 -46
  529. package/projects/tuki/widgets/contact-center/cc-script-editor/components/wxcc-actions-bar/wxcc-actions-bar.component.html +0 -30
  530. package/projects/tuki/widgets/contact-center/cc-script-editor/components/wxcc-actions-bar/wxcc-actions-bar.component.scss +0 -9
  531. package/projects/tuki/widgets/contact-center/cc-script-editor/components/wxcc-actions-bar/wxcc-actions-bar.component.ts +0 -16
  532. package/projects/tuki/widgets/contact-center/cc-script-editor/components/wxcc-file-selection-bar/wxcc-file-selection-bar.component.html +0 -29
  533. package/projects/tuki/widgets/contact-center/cc-script-editor/components/wxcc-file-selection-bar/wxcc-file-selection-bar.component.scss +0 -21
  534. package/projects/tuki/widgets/contact-center/cc-script-editor/components/wxcc-file-selection-bar/wxcc-file-selection-bar.component.ts +0 -58
  535. package/projects/tuki/widgets/contact-center/cc-script-editor/components/wxcc-flowchart/wxcc-flowchart.component.html +0 -83
  536. package/projects/tuki/widgets/contact-center/cc-script-editor/components/wxcc-flowchart/wxcc-flowchart.component.scss +0 -339
  537. package/projects/tuki/widgets/contact-center/cc-script-editor/components/wxcc-flowchart/wxcc-flowchart.component.ts +0 -551
  538. package/projects/tuki/widgets/contact-center/cc-script-editor/constants/cytoscape.config.ts +0 -73
  539. package/projects/tuki/widgets/contact-center/cc-script-editor/constants/wxcc-activity-templates.constants.ts +0 -1
  540. package/projects/tuki/widgets/contact-center/cc-script-editor/constants/wxcc-api.constants.ts +0 -52
  541. package/projects/tuki/widgets/contact-center/cc-script-editor/mock/data/QWC_wxcc.json +0 -912
  542. package/projects/tuki/widgets/contact-center/cc-script-editor/mock/mock-data.service.ts +0 -0
  543. package/projects/tuki/widgets/contact-center/cc-script-editor/services/cystoscape-viewport.service.ts +0 -77
  544. package/projects/tuki/widgets/contact-center/cc-script-editor/services/wxcc-activity-creation.service.ts +0 -100
  545. package/projects/tuki/widgets/contact-center/cc-script-editor/services/wxcc-activity-manage.service.ts +0 -159
  546. package/projects/tuki/widgets/contact-center/cc-script-editor/services/wxcc-flow-api.service.ts +0 -81
  547. package/projects/tuki/widgets/contact-center/cc-script-editor/services/wxcc2graph.service.ts +0 -172
  548. package/projects/tuki/widgets/contact-center/cc-script-editor/types/cytoscape-node-html-label.d.ts +0 -24
  549. package/projects/tuki/widgets/contact-center/cc-script-editor/types/extended-activity.ts +0 -62
  550. package/projects/tuki/widgets/contact-center/cc-script-editor/types/wxcc-activity.ts +0 -135
  551. package/projects/tuki/widgets/contact-center/cc-script-editor/types/wxcc.ts +0 -220
  552. package/projects/tuki/widgets/contact-center/cc-script-editor/utils/node-html-template.ts +0 -90
  553. package/projects/tuki/widgets/contact-center/cc-script-editor/utils/node-mappings.ts +0 -153
  554. package/projects/tuki/widgets/contact-center/ng-package.json +0 -12
  555. package/projects/tuki/widgets/contact-center/public-api.ts +0 -8
  556. package/projects/tuki/widgets/contact-center/shared/api.endpoints.ts +0 -6
  557. package/projects/tuki/widgets/contact-center/shared/api.service.ts +0 -87
  558. package/projects/tuki/widgets/contact-center/shared/assets/icons/applications.svg +0 -6
  559. package/projects/tuki/widgets/contact-center/shared/assets/icons/audioPrompts.svg +0 -4
  560. package/projects/tuki/widgets/contact-center/shared/assets/icons/contactServiceQueues.svg +0 -3
  561. package/projects/tuki/widgets/contact-center/shared/assets/icons/phonebooks.svg +0 -6
  562. package/projects/tuki/widgets/contact-center/shared/assets/icons/resourceGroups.svg +0 -6
  563. package/projects/tuki/widgets/contact-center/shared/assets/icons/resources.svg +0 -3
  564. package/projects/tuki/widgets/contact-center/shared/assets/icons/scripts.svg +0 -12
  565. package/projects/tuki/widgets/contact-center/shared/assets/icons/skills.svg +0 -3
  566. package/projects/tuki/widgets/contact-center/shared/assets/icons/teams.svg +0 -3
  567. package/projects/tuki/widgets/contact-center/shared/assets/icons/triggers.svg +0 -4
  568. package/projects/tuki/widgets/contact-center/shared/assets/icons/wrapUpCodes.svg +0 -3
  569. package/projects/tuki/widgets/contact-center/shared/assets/icons/xml.svg +0 -6
  570. package/projects/tuki/widgets/contact-center/shared/material.module.ts +0 -38
  571. package/projects/tuki/widgets/contact-center/shared/shared.module.ts +0 -20
  572. package/projects/tuki/widgets/contact-center/shared/styles/tuki-widgets-theme.scss +0 -13
  573. package/projects/tuki/widgets/contact-center/shared/styles/variables.scss +0 -96
  574. package/projects/tuki/widgets/di2mt/api/api.endpoints.ts +0 -32
  575. package/projects/tuki/widgets/di2mt/assets/icons/already_upgraded.png +0 -0
  576. package/projects/tuki/widgets/di2mt/assets/icons/check2_icon.png +0 -0
  577. package/projects/tuki/widgets/di2mt/assets/icons/check_icon.png +0 -0
  578. package/projects/tuki/widgets/di2mt/assets/icons/details_d_icon.svg +0 -3
  579. package/projects/tuki/widgets/di2mt/assets/icons/expand_icon.png +0 -0
  580. package/projects/tuki/widgets/di2mt/assets/icons/icon_play.svg +0 -3
  581. package/projects/tuki/widgets/di2mt/assets/icons/issue_icon.png +0 -0
  582. package/projects/tuki/widgets/di2mt/assets/icons/menu_icon.png +0 -0
  583. package/projects/tuki/widgets/di2mt/assets/icons/ready_to_upgrade.png +0 -0
  584. package/projects/tuki/widgets/di2mt/assets/icons/search_icon.png +0 -0
  585. package/projects/tuki/widgets/di2mt/assets/icons/site.png +0 -0
  586. package/projects/tuki/widgets/di2mt/assets/icons/user.png +0 -0
  587. package/projects/tuki/widgets/di2mt/assets/icons/warning_icon.png +0 -0
  588. package/projects/tuki/widgets/di2mt/ng-package.json +0 -7
  589. package/projects/tuki/widgets/di2mt/public-api.ts +0 -28
  590. package/projects/tuki/widgets/di2mt/shared/components/card/card.component.html +0 -11
  591. package/projects/tuki/widgets/di2mt/shared/components/card/card.component.scss +0 -48
  592. package/projects/tuki/widgets/di2mt/shared/components/card/card.component.ts +0 -10
  593. package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.html +0 -15
  594. package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.scss +0 -38
  595. package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.ts +0 -76
  596. package/projects/tuki/widgets/di2mt/shared/components/index.ts +0 -6
  597. package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.html +0 -68
  598. package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.scss +0 -78
  599. package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.ts +0 -59
  600. package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.html +0 -57
  601. package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.scss +0 -187
  602. package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.ts +0 -41
  603. package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.html +0 -12
  604. package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.scss +0 -78
  605. package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.ts +0 -27
  606. package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.html +0 -28
  607. package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.scss +0 -245
  608. package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.ts +0 -28
  609. package/projects/tuki/widgets/di2mt/shared/constants/app.constants.ts +0 -96
  610. package/projects/tuki/widgets/di2mt/shared/material.module.ts +0 -36
  611. package/projects/tuki/widgets/di2mt/shared/services/api.service.ts +0 -87
  612. package/projects/tuki/widgets/di2mt/shared/shared.module.ts +0 -39
  613. package/projects/tuki/widgets/di2mt/shared/types/constants.ts +0 -22
  614. package/projects/tuki/widgets/di2mt/shared/types/data-table.ts +0 -5
  615. package/projects/tuki/widgets/di2mt/shared/types/table/filter.ts +0 -14
  616. package/projects/tuki/widgets/di2mt/styles/tuki-widgets-theme.scss +0 -13
  617. package/projects/tuki/widgets/di2mt/styles/variables.scss +0 -94
  618. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.html +0 -6
  619. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.scss +0 -45
  620. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.ts +0 -27
  621. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.html +0 -160
  622. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.scss +0 -469
  623. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.ts +0 -511
  624. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.module.ts +0 -33
  625. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.service.ts +0 -173
  626. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/types/user-upgrade.ts +0 -27
  627. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.ts +0 -55
  628. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.ts +0 -60
  629. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/pending-activation-users/pending-activation-users.component.ts +0 -72
  630. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.ts +0 -85
  631. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.html +0 -7
  632. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.scss +0 -0
  633. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.ts +0 -47
  634. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.html +0 -7
  635. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.scss +0 -0
  636. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.ts +0 -48
  637. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.ts +0 -84
  638. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.ts +0 -73
  639. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/types/upgrade-overview.ts +0 -59
  640. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/upgrade-overview.module.ts +0 -45
  641. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/upgrade-overview.service.ts +0 -109
  642. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/types/user-upgrade.ts +0 -35
  643. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.html +0 -204
  644. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.scss +0 -466
  645. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.ts +0 -441
  646. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.module.ts +0 -34
  647. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.service.ts +0 -137
  648. package/projects/tuki/widgets/karma.conf.js +0 -44
  649. package/projects/tuki/widgets/ng-package.json +0 -10
  650. package/projects/tuki/widgets/package.json +0 -13
  651. package/projects/tuki/widgets/src/lib/widgets.component.spec.ts +0 -23
  652. package/projects/tuki/widgets/src/lib/widgets.component.ts +0 -20
  653. package/projects/tuki/widgets/src/lib/widgets.module.ts +0 -16
  654. package/projects/tuki/widgets/src/lib/widgets.service.spec.ts +0 -16
  655. package/projects/tuki/widgets/src/lib/widgets.service.ts +0 -9
  656. package/projects/tuki/widgets/src/public-api.ts +0 -7
  657. package/projects/tuki/widgets/src/test.ts +0 -27
  658. package/projects/tuki/widgets/styles.scss +0 -558
  659. package/projects/tuki/widgets/tsconfig.lib.json +0 -52
  660. package/projects/tuki/widgets/tsconfig.lib.prod.json +0 -10
  661. package/projects/tuki/widgets/tsconfig.spec.json +0 -17
  662. package/projects/tuki/widgets/user-creation/assets/icons/close_icon_modal.svg +0 -3
  663. package/projects/tuki/widgets/user-creation/assets/icons/user-creation-close-icon.svg +0 -3
  664. package/projects/tuki/widgets/user-creation/ng-package.json +0 -7
  665. package/projects/tuki/widgets/user-creation/public-api.ts +0 -16
  666. package/projects/tuki/widgets/user-creation/src/app.constants.ts +0 -33
  667. package/projects/tuki/widgets/user-creation/src/classes/notification.ts +0 -40
  668. package/projects/tuki/widgets/user-creation/src/classes/site.ts +0 -260
  669. package/projects/tuki/widgets/user-creation/src/classes/user.ts +0 -177
  670. package/projects/tuki/widgets/user-creation/src/environments/environment.prod.ts +0 -9
  671. package/projects/tuki/widgets/user-creation/src/environments/environment.ts +0 -10
  672. package/projects/tuki/widgets/user-creation/src/interfaces/user-creation-wizard.interfaces.ts +0 -788
  673. package/projects/tuki/widgets/user-creation/src/shared/api/api.service.ts +0 -87
  674. package/projects/tuki/widgets/user-creation/src/shared/classes/user-template.ts +0 -77
  675. package/projects/tuki/widgets/user-creation/src/shared/components/notification/notification.component.html +0 -32
  676. package/projects/tuki/widgets/user-creation/src/shared/components/notification/notification.component.scss +0 -80
  677. package/projects/tuki/widgets/user-creation/src/shared/components/notification/notification.component.ts +0 -46
  678. package/projects/tuki/widgets/user-creation/src/shared/material.module.ts +0 -48
  679. package/projects/tuki/widgets/user-creation/src/shared/pipes/truncate.pipe.ts +0 -26
  680. package/projects/tuki/widgets/user-creation/src/shared/services/notification.service.ts +0 -68
  681. package/projects/tuki/widgets/user-creation/src/shared/services/user-creation-api.service.ts +0 -136
  682. package/projects/tuki/widgets/user-creation/src/shared/services/utils.ts +0 -16
  683. package/projects/tuki/widgets/user-creation/src/shared/shared.module.ts +0 -28
  684. package/projects/tuki/widgets/user-creation/src/shared/styles/styles.scss +0 -96
  685. package/projects/tuki/widgets/user-creation/src/user-creation.module.ts +0 -63
  686. package/projects/tuki/widgets/user-creation/src/utils/app-loader/app-loader.component.html +0 -7
  687. package/projects/tuki/widgets/user-creation/src/utils/app-loader/app-loader.component.scss +0 -14
  688. package/projects/tuki/widgets/user-creation/src/utils/app-loader/app-loader.ts +0 -13
  689. package/projects/tuki/widgets/user-creation/src/utils/build-savable-end-user.ts +0 -238
  690. package/projects/tuki/widgets/user-creation/src/utils/device-default-prefix.ts +0 -17
  691. package/projects/tuki/widgets/user-creation/src/utils/device-name-validation.ts +0 -30
  692. package/projects/tuki/widgets/user-creation/src/utils/model.ts +0 -16
  693. package/projects/tuki/widgets/user-creation/src/utils/models.ts +0 -46
  694. package/projects/tuki/widgets/user-creation/src/utils/parse-device-name-rule.ts +0 -29
  695. package/projects/tuki/widgets/user-creation/src/utils/validation.ts +0 -16
  696. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.html +0 -376
  697. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.scss +0 -476
  698. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.ts +0 -657
  699. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/components/user-overview-step/user-overview-step.component.html +0 -107
  700. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/components/user-overview-step/user-overview-step.component.scss +0 -75
  701. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/components/user-overview-step/user-overview-step.component.ts +0 -17
  702. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.html +0 -73
  703. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.scss +0 -127
  704. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.ts +0 -211
  705. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.html +0 -113
  706. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.scss +0 -227
  707. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.spec.ts +0 -41
  708. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.ts +0 -123
  709. package/projects/tuki/widgets/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.service.ts +0 -947
  710. package/projects/tuki/widgets/user-device-manage/ng-package.json +0 -7
  711. package/projects/tuki/widgets/user-device-manage/public-api.ts +0 -8
  712. package/projects/tuki/widgets/user-device-manage/src/app.constants.ts +0 -99
  713. package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-down-bold.svg +0 -1
  714. package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-left.svg +0 -5
  715. package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-right-regular.svg +0 -1
  716. package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-right.svg +0 -5
  717. package/projects/tuki/widgets/user-device-manage/src/assets/icons/cancel-regular.svg +0 -1
  718. package/projects/tuki/widgets/user-device-manage/src/assets/icons/check-circle-regular.svg +0 -1
  719. package/projects/tuki/widgets/user-device-manage/src/assets/icons/cisco.svg +0 -8
  720. package/projects/tuki/widgets/user-device-manage/src/assets/icons/cisco_7841.png +0 -0
  721. package/projects/tuki/widgets/user-device-manage/src/assets/icons/cisco_8841.png +0 -0
  722. package/projects/tuki/widgets/user-device-manage/src/assets/icons/cisco_8851.png +0 -0
  723. package/projects/tuki/widgets/user-device-manage/src/assets/icons/cisco_9861.png +0 -0
  724. package/projects/tuki/widgets/user-device-manage/src/assets/icons/close_icon_x.svg +0 -3
  725. package/projects/tuki/widgets/user-device-manage/src/assets/icons/delete_icon.svg +0 -5
  726. package/projects/tuki/widgets/user-device-manage/src/assets/icons/dragger-vertical-icon.svg +0 -3
  727. package/projects/tuki/widgets/user-device-manage/src/assets/icons/icon_user.svg +0 -1
  728. package/projects/tuki/widgets/user-device-manage/src/assets/icons/info-circle-regular.svg +0 -1
  729. package/projects/tuki/widgets/user-device-manage/src/assets/icons/people-regular.svg +0 -1
  730. package/projects/tuki/widgets/user-device-manage/src/assets/icons/plus-regular.svg +0 -1
  731. package/projects/tuki/widgets/user-device-manage/src/assets/icons/settings-light.svg +0 -1
  732. package/projects/tuki/widgets/user-device-manage/src/assets/icons/settings-regular.svg +0 -1
  733. package/projects/tuki/widgets/user-device-manage/src/assets/icons/vartical_divider_icon.svg +0 -3
  734. package/projects/tuki/widgets/user-device-manage/src/assets/icons/warning-regular.svg +0 -1
  735. package/projects/tuki/widgets/user-device-manage/src/assets/info-circle-bold.svg +0 -1
  736. package/projects/tuki/widgets/user-device-manage/src/classes/device.ts +0 -292
  737. package/projects/tuki/widgets/user-device-manage/src/classes/deviceProfile.ts +0 -79
  738. package/projects/tuki/widgets/user-device-manage/src/classes/line-association-interface.ts +0 -50
  739. package/projects/tuki/widgets/user-device-manage/src/classes/line-association.ts +0 -177
  740. package/projects/tuki/widgets/user-device-manage/src/classes/line-call-info-display.ts +0 -21
  741. package/projects/tuki/widgets/user-device-manage/src/classes/line-directory.ts +0 -41
  742. package/projects/tuki/widgets/user-device-manage/src/classes/line.ts +0 -144
  743. package/projects/tuki/widgets/user-device-manage/src/classes/notification.ts +0 -40
  744. package/projects/tuki/widgets/user-device-manage/src/classes/recording-options.ts +0 -6
  745. package/projects/tuki/widgets/user-device-manage/src/classes/simplified-user.ts +0 -169
  746. package/projects/tuki/widgets/user-device-manage/src/classes/site-defaults.ts +0 -167
  747. package/projects/tuki/widgets/user-device-manage/src/classes/translation-pattern.ts +0 -50
  748. package/projects/tuki/widgets/user-device-manage/src/classes/types.ts +0 -19
  749. package/projects/tuki/widgets/user-device-manage/src/classes/user-interface.ts +0 -225
  750. package/projects/tuki/widgets/user-device-manage/src/classes/user.ts +0 -8
  751. package/projects/tuki/widgets/user-device-manage/src/common-functions.ts +0 -16
  752. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.html +0 -14
  753. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.scss +0 -80
  754. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.ts +0 -35
  755. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.html +0 -21
  756. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.scss +0 -97
  757. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.ts +0 -28
  758. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.html +0 -6
  759. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.scss +0 -20
  760. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.ts +0 -13
  761. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.html +0 -24
  762. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.scss +0 -11
  763. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.ts +0 -74
  764. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.html +0 -241
  765. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.scss +0 -500
  766. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.ts +0 -194
  767. package/projects/tuki/widgets/user-device-manage/src/device-info/device-info.component.html +0 -52
  768. package/projects/tuki/widgets/user-device-manage/src/device-info/device-info.component.scss +0 -219
  769. package/projects/tuki/widgets/user-device-manage/src/device-info/device-info.component.ts +0 -38
  770. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.html +0 -27
  771. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.scss +0 -131
  772. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.ts +0 -25
  773. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.html +0 -301
  774. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.scss +0 -766
  775. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.ts +0 -190
  776. package/projects/tuki/widgets/user-device-manage/src/environments/environment.prod.ts +0 -9
  777. package/projects/tuki/widgets/user-device-manage/src/environments/environment.ts +0 -10
  778. package/projects/tuki/widgets/user-device-manage/src/interseptors/auth.interceptor.ts +0 -35
  779. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.html +0 -67
  780. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -98
  781. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.ts +0 -81
  782. package/projects/tuki/widgets/user-device-manage/src/material.module.ts +0 -87
  783. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.html +0 -33
  784. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.scss +0 -84
  785. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.ts +0 -46
  786. package/projects/tuki/widgets/user-device-manage/src/pipes/mac-address.pipe.ts +0 -24
  787. package/projects/tuki/widgets/user-device-manage/src/removeKynFromIBM.service.ts +0 -25
  788. package/projects/tuki/widgets/user-device-manage/src/services/api.service.ts +0 -87
  789. package/projects/tuki/widgets/user-device-manage/src/services/common-functions.ts +0 -17
  790. package/projects/tuki/widgets/user-device-manage/src/services/device.service.ts +0 -95
  791. package/projects/tuki/widgets/user-device-manage/src/services/dns.service.ts +0 -146
  792. package/projects/tuki/widgets/user-device-manage/src/services/line.service.ts +0 -89
  793. package/projects/tuki/widgets/user-device-manage/src/services/notification.service.ts +0 -68
  794. package/projects/tuki/widgets/user-device-manage/src/services/removeKynFromIBM.service.ts +0 -25
  795. package/projects/tuki/widgets/user-device-manage/src/services/site-settings.service.ts +0 -82
  796. package/projects/tuki/widgets/user-device-manage/src/services/sorting-utils.service.ts +0 -203
  797. package/projects/tuki/widgets/user-device-manage/src/services/user.service.ts +0 -432
  798. package/projects/tuki/widgets/user-device-manage/src/services/utils.service.ts +0 -87
  799. package/projects/tuki/widgets/user-device-manage/src/services/validation.service.ts +0 -829
  800. package/projects/tuki/widgets/user-device-manage/src/shared/tk-page-section/page-section.component.html +0 -13
  801. package/projects/tuki/widgets/user-device-manage/src/shared/tk-page-section/page-section.component.scss +0 -48
  802. package/projects/tuki/widgets/user-device-manage/src/shared/tk-page-section/page-section.component.spec.ts +0 -23
  803. package/projects/tuki/widgets/user-device-manage/src/shared/tk-page-section/page-section.component.ts +0 -10
  804. package/projects/tuki/widgets/user-device-manage/src/styles/_variables.scss +0 -90
  805. package/projects/tuki/widgets/user-device-manage/src/styles/form.scss +0 -284
  806. package/projects/tuki/widgets/user-device-manage/src/styles/icons.scss +0 -33
  807. package/projects/tuki/widgets/user-device-manage/src/styles/styles.scss +0 -131
  808. package/projects/tuki/widgets/user-device-manage/src/styles/tables.scss +0 -30
  809. package/projects/tuki/widgets/user-device-manage/src/user-device-manage.module.ts +0 -79
  810. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.html +0 -7
  811. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.scss +0 -11
  812. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.ts +0 -13
  813. package/projects/tuki/widgets/user-manage/ng-package.json +0 -7
  814. package/projects/tuki/widgets/user-manage/public-api.ts +0 -6
  815. package/projects/tuki/widgets/user-manage/src/app.constants.ts +0 -55
  816. package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-down-bold.svg +0 -1
  817. package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-left.svg +0 -5
  818. package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-right-bold.svg +0 -1
  819. package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-right.svg +0 -5
  820. package/projects/tuki/widgets/user-manage/src/assets/icons/cisco_7841.png +0 -0
  821. package/projects/tuki/widgets/user-manage/src/assets/icons/cisco_8841.png +0 -0
  822. package/projects/tuki/widgets/user-manage/src/assets/icons/cisco_8851.png +0 -0
  823. package/projects/tuki/widgets/user-manage/src/assets/icons/cisco_9861.png +0 -0
  824. package/projects/tuki/widgets/user-manage/src/assets/icons/delete_icon.svg +0 -5
  825. package/projects/tuki/widgets/user-manage/src/assets/icons/dragger-vertical-icon.svg +0 -3
  826. package/projects/tuki/widgets/user-manage/src/assets/icons/icon_user.svg +0 -1
  827. package/projects/tuki/widgets/user-manage/src/assets/icons/info-circle-bold.svg +0 -1
  828. package/projects/tuki/widgets/user-manage/src/assets/icons/mt.svg +0 -3
  829. package/projects/tuki/widgets/user-manage/src/assets/icons/people-regular.svg +0 -1
  830. package/projects/tuki/widgets/user-manage/src/assets/icons/settings-light.svg +0 -1
  831. package/projects/tuki/widgets/user-manage/src/assets/icons/vartical_divider_icon.svg +0 -3
  832. package/projects/tuki/widgets/user-manage/src/assets/icons/webex.svg +0 -7
  833. package/projects/tuki/widgets/user-manage/src/classes/device.ts +0 -234
  834. package/projects/tuki/widgets/user-manage/src/classes/line-association-interface.ts +0 -44
  835. package/projects/tuki/widgets/user-manage/src/classes/line-association.ts +0 -161
  836. package/projects/tuki/widgets/user-manage/src/classes/line-call-info-display.ts +0 -21
  837. package/projects/tuki/widgets/user-manage/src/classes/line-directory.ts +0 -44
  838. package/projects/tuki/widgets/user-manage/src/classes/line.ts +0 -145
  839. package/projects/tuki/widgets/user-manage/src/classes/notification.ts +0 -39
  840. package/projects/tuki/widgets/user-manage/src/classes/pagination.ts +0 -18
  841. package/projects/tuki/widgets/user-manage/src/classes/recording-options.ts +0 -6
  842. package/projects/tuki/widgets/user-manage/src/classes/simplified-user.ts +0 -174
  843. package/projects/tuki/widgets/user-manage/src/classes/table-data.ts +0 -6
  844. package/projects/tuki/widgets/user-manage/src/classes/translation-pattern.ts +0 -49
  845. package/projects/tuki/widgets/user-manage/src/classes/user-interface.ts +0 -225
  846. package/projects/tuki/widgets/user-manage/src/classes/user-list.ts +0 -42
  847. package/projects/tuki/widgets/user-manage/src/classes/user.ts +0 -8
  848. package/projects/tuki/widgets/user-manage/src/common-functions.ts +0 -16
  849. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.html +0 -32
  850. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.scss +0 -305
  851. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.ts +0 -26
  852. package/projects/tuki/widgets/user-manage/src/device-list/device-row/device-row.component.html +0 -14
  853. package/projects/tuki/widgets/user-manage/src/device-list/device-row/device-row.component.scss +0 -154
  854. package/projects/tuki/widgets/user-manage/src/device-list/device-row/device-row.component.ts +0 -34
  855. package/projects/tuki/widgets/user-manage/src/environments/environment.prod.ts +0 -9
  856. package/projects/tuki/widgets/user-manage/src/environments/environment.ts +0 -10
  857. package/projects/tuki/widgets/user-manage/src/interseptors/auth.interceptor.ts +0 -35
  858. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.html +0 -68
  859. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -125
  860. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.ts +0 -93
  861. package/projects/tuki/widgets/user-manage/src/material.module.ts +0 -85
  862. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.html +0 -33
  863. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.scss +0 -84
  864. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.ts +0 -46
  865. package/projects/tuki/widgets/user-manage/src/removeKynFromIBM.service.ts +0 -25
  866. package/projects/tuki/widgets/user-manage/src/services/api.service.ts +0 -90
  867. package/projects/tuki/widgets/user-manage/src/services/dns.service.ts +0 -116
  868. package/projects/tuki/widgets/user-manage/src/services/line.service.ts +0 -31
  869. package/projects/tuki/widgets/user-manage/src/services/notification.service.ts +0 -68
  870. package/projects/tuki/widgets/user-manage/src/services/removeKynFromIBM.service.ts +0 -25
  871. package/projects/tuki/widgets/user-manage/src/services/site-settings.service.ts +0 -35
  872. package/projects/tuki/widgets/user-manage/src/services/sorting-utils.service.ts +0 -203
  873. package/projects/tuki/widgets/user-manage/src/services/user.service.ts +0 -304
  874. package/projects/tuki/widgets/user-manage/src/services/users-search.service.ts +0 -59
  875. package/projects/tuki/widgets/user-manage/src/services/utils.service.ts +0 -71
  876. package/projects/tuki/widgets/user-manage/src/styles/_variables.scss +0 -93
  877. package/projects/tuki/widgets/user-manage/src/styles/form.scss +0 -231
  878. package/projects/tuki/widgets/user-manage/src/styles/icons.scss +0 -41
  879. package/projects/tuki/widgets/user-manage/src/styles/styles.scss +0 -128
  880. package/projects/tuki/widgets/user-manage/src/styles/tables.scss +0 -30
  881. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.html +0 -10
  882. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.scss +0 -444
  883. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.ts +0 -63
  884. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.html +0 -128
  885. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.scss +0 -469
  886. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.ts +0 -105
  887. package/projects/tuki/widgets/user-manage/src/user-details/notification.service.ts +0 -68
  888. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.html +0 -110
  889. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.scss +0 -121
  890. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.ts +0 -28
  891. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.html +0 -313
  892. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.scss +0 -638
  893. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.ts +0 -235
  894. package/projects/tuki/widgets/user-manage/src/user-manage.module.ts +0 -65
  895. package/projects/tuki/widgets/user-manage/src/user-summary/user-summary.component.html +0 -64
  896. package/projects/tuki/widgets/user-manage/src/user-summary/user-summary.component.scss +0 -17
  897. package/projects/tuki/widgets/user-manage/src/user-summary/user-summary.component.ts +0 -8
  898. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.html +0 -7
  899. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.scss +0 -11
  900. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.ts +0 -13
  901. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.html +0 -26
  902. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.scss +0 -41
  903. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.ts +0 -41
  904. package/projects/tuki/widgets/users-list/ng-package.json +0 -7
  905. package/projects/tuki/widgets/users-list/public-api.ts +0 -8
  906. package/projects/tuki/widgets/users-list/src/app.constants.ts +0 -91
  907. package/projects/tuki/widgets/users-list/src/assets/icons/close_icon_modal.svg +0 -3
  908. package/projects/tuki/widgets/users-list/src/assets/icons/cogs.svg +0 -8
  909. package/projects/tuki/widgets/users-list/src/assets/icons/copy-regular.svg +0 -1
  910. package/projects/tuki/widgets/users-list/src/assets/icons/di.svg +0 -15
  911. package/projects/tuki/widgets/users-list/src/assets/icons/di_cloud_24.svg +0 -16
  912. package/projects/tuki/widgets/users-list/src/assets/icons/icon_user.svg +0 -1
  913. package/projects/tuki/widgets/users-list/src/assets/icons/info-circle-regular.svg +0 -1
  914. package/projects/tuki/widgets/users-list/src/assets/icons/info.svg +0 -5
  915. package/projects/tuki/widgets/users-list/src/assets/icons/local_24.svg +0 -18
  916. package/projects/tuki/widgets/users-list/src/assets/icons/move_user_to_another_location.svg +0 -14
  917. package/projects/tuki/widgets/users-list/src/assets/icons/mt_old.svg +0 -3
  918. package/projects/tuki/widgets/users-list/src/assets/icons/onprem_ucm.svg +0 -17
  919. package/projects/tuki/widgets/users-list/src/assets/icons/settings-regular.svg +0 -1
  920. package/projects/tuki/widgets/users-list/src/assets/icons/webex.svg +0 -7
  921. package/projects/tuki/widgets/users-list/src/assets/icons/webex_logo_icon.svg +0 -305
  922. package/projects/tuki/widgets/users-list/src/assets/icons/white-close-icon.svg +0 -3
  923. package/projects/tuki/widgets/users-list/src/classes/app-location.ts +0 -36
  924. package/projects/tuki/widgets/users-list/src/classes/device.ts +0 -225
  925. package/projects/tuki/widgets/users-list/src/classes/line.ts +0 -144
  926. package/projects/tuki/widgets/users-list/src/classes/move-user.ts +0 -229
  927. package/projects/tuki/widgets/users-list/src/classes/notification.ts +0 -38
  928. package/projects/tuki/widgets/users-list/src/classes/pagination.ts +0 -18
  929. package/projects/tuki/widgets/users-list/src/classes/simlified-user.ts +0 -74
  930. package/projects/tuki/widgets/users-list/src/classes/table-data.ts +0 -6
  931. package/projects/tuki/widgets/users-list/src/classes/user-interface.ts +0 -225
  932. package/projects/tuki/widgets/users-list/src/classes/user-list.ts +0 -48
  933. package/projects/tuki/widgets/users-list/src/classes/user.ts +0 -8
  934. package/projects/tuki/widgets/users-list/src/components/table-toolbar/table-toolbar.component.html +0 -167
  935. package/projects/tuki/widgets/users-list/src/components/table-toolbar/table-toolbar.component.scss +0 -41
  936. package/projects/tuki/widgets/users-list/src/components/table-toolbar/table-toolbar.component.ts +0 -37
  937. package/projects/tuki/widgets/users-list/src/material.module.ts +0 -97
  938. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.html +0 -37
  939. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.scss +0 -131
  940. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.ts +0 -46
  941. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.html +0 -31
  942. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.scss +0 -20
  943. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.ts +0 -26
  944. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.html +0 -222
  945. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.scss +0 -249
  946. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.ts +0 -207
  947. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.html +0 -12
  948. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.scss +0 -41
  949. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.ts +0 -36
  950. package/projects/tuki/widgets/users-list/src/services/api-webex.service.ts +0 -14
  951. package/projects/tuki/widgets/users-list/src/services/api.service.ts +0 -90
  952. package/projects/tuki/widgets/users-list/src/services/dns.service.ts +0 -128
  953. package/projects/tuki/widgets/users-list/src/services/events-communication.service.ts +0 -11
  954. package/projects/tuki/widgets/users-list/src/services/move-user.service.ts +0 -59
  955. package/projects/tuki/widgets/users-list/src/services/notification.service.ts +0 -68
  956. package/projects/tuki/widgets/users-list/src/services/removeKynFromIBM.service.ts +0 -25
  957. package/projects/tuki/widgets/users-list/src/services/site-settings.service.ts +0 -26
  958. package/projects/tuki/widgets/users-list/src/services/user.service.ts +0 -207
  959. package/projects/tuki/widgets/users-list/src/services/users-search.service.ts +0 -192
  960. package/projects/tuki/widgets/users-list/src/styles/styles.scss +0 -639
  961. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.html +0 -15
  962. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.scss +0 -103
  963. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.ts +0 -35
  964. package/projects/tuki/widgets/users-list/src/users-list.component.css +0 -4
  965. package/projects/tuki/widgets/users-list/src/users-list.component.css.map +0 -1
  966. package/projects/tuki/widgets/users-list/src/users-list.component.html +0 -306
  967. package/projects/tuki/widgets/users-list/src/users-list.component.scss +0 -751
  968. package/projects/tuki/widgets/users-list/src/users-list.component.ts +0 -1023
  969. package/projects/tuki/widgets/users-list/src/users-list.module.ts +0 -67
  970. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css +0 -11
  971. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css.map +0 -1
  972. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.html +0 -7
  973. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.scss +0 -17
  974. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.ts +0 -13
  975. package/projects/tuki/widgets/users-list/src/utils/common-functions.ts +0 -32
  976. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.html +0 -47
  977. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.scss +0 -94
  978. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.ts +0 -46
  979. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css +0 -45
  980. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css.map +0 -1
  981. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.html +0 -26
  982. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.scss +0 -41
  983. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.ts +0 -41
  984. package/projects/tuki/widgets/users-list/src/utils/utils.service.ts +0 -71
  985. package/projects/widgets-playground/src/app/app.component.html +0 -44
  986. package/projects/widgets-playground/src/app/app.component.scss +0 -26
  987. package/projects/widgets-playground/src/app/app.component.spec.ts +0 -31
  988. package/projects/widgets-playground/src/app/app.component.ts +0 -36
  989. package/projects/widgets-playground/src/app/app.module.ts +0 -49
  990. package/projects/widgets-playground/src/assets/.gitkeep +0 -0
  991. package/projects/widgets-playground/src/assets/icons/already_upgraded.png +0 -0
  992. package/projects/widgets-playground/src/assets/icons/applications copy.svg +0 -6
  993. package/projects/widgets-playground/src/assets/icons/applications.svg +0 -6
  994. package/projects/widgets-playground/src/assets/icons/arrow-down-bold.svg +0 -1
  995. package/projects/widgets-playground/src/assets/icons/audio-prompts.svg +0 -4
  996. package/projects/widgets-playground/src/assets/icons/audioPrompts.svg +0 -4
  997. package/projects/widgets-playground/src/assets/icons/check2_icon.png +0 -0
  998. package/projects/widgets-playground/src/assets/icons/check_icon.png +0 -0
  999. package/projects/widgets-playground/src/assets/icons/contactServiceQueues.svg +0 -3
  1000. package/projects/widgets-playground/src/assets/icons/copy-regular.svg +0 -1
  1001. package/projects/widgets-playground/src/assets/icons/csqs.svg +0 -3
  1002. package/projects/widgets-playground/src/assets/icons/di.svg +0 -15
  1003. package/projects/widgets-playground/src/assets/icons/di_cloud_24.svg +0 -16
  1004. package/projects/widgets-playground/src/assets/icons/expand_icon.png +0 -0
  1005. package/projects/widgets-playground/src/assets/icons/info-circle-regular.svg +0 -1
  1006. package/projects/widgets-playground/src/assets/icons/issue_icon.png +0 -0
  1007. package/projects/widgets-playground/src/assets/icons/local_24.svg +0 -18
  1008. package/projects/widgets-playground/src/assets/icons/menu_icon.png +0 -0
  1009. package/projects/widgets-playground/src/assets/icons/mt_old.svg +0 -3
  1010. package/projects/widgets-playground/src/assets/icons/onprem_ucm.svg +0 -17
  1011. package/projects/widgets-playground/src/assets/icons/phone-books.svg +0 -6
  1012. package/projects/widgets-playground/src/assets/icons/phonebooks.svg +0 -6
  1013. package/projects/widgets-playground/src/assets/icons/ready_to_upgrade.png +0 -0
  1014. package/projects/widgets-playground/src/assets/icons/resource-group.svg +0 -6
  1015. package/projects/widgets-playground/src/assets/icons/resource.svg +0 -3
  1016. package/projects/widgets-playground/src/assets/icons/resourceGroups.svg +0 -6
  1017. package/projects/widgets-playground/src/assets/icons/resources.svg +0 -3
  1018. package/projects/widgets-playground/src/assets/icons/scripts copy.svg +0 -12
  1019. package/projects/widgets-playground/src/assets/icons/scripts.svg +0 -12
  1020. package/projects/widgets-playground/src/assets/icons/search_icon.png +0 -0
  1021. package/projects/widgets-playground/src/assets/icons/settings-regular.svg +0 -1
  1022. package/projects/widgets-playground/src/assets/icons/site.png +0 -0
  1023. package/projects/widgets-playground/src/assets/icons/skills copy.svg +0 -3
  1024. package/projects/widgets-playground/src/assets/icons/skills.svg +0 -3
  1025. package/projects/widgets-playground/src/assets/icons/teams copy.svg +0 -3
  1026. package/projects/widgets-playground/src/assets/icons/teams.svg +0 -3
  1027. package/projects/widgets-playground/src/assets/icons/triggers copy.svg +0 -4
  1028. package/projects/widgets-playground/src/assets/icons/triggers.svg +0 -4
  1029. package/projects/widgets-playground/src/assets/icons/user.png +0 -0
  1030. package/projects/widgets-playground/src/assets/icons/warning_icon.png +0 -0
  1031. package/projects/widgets-playground/src/assets/icons/webex.svg +0 -7
  1032. package/projects/widgets-playground/src/assets/icons/webex_logo_icon.svg +0 -305
  1033. package/projects/widgets-playground/src/assets/icons/wrapUpCodes.svg +0 -3
  1034. package/projects/widgets-playground/src/assets/icons/wrapup-codes.svg +0 -3
  1035. package/projects/widgets-playground/src/assets/icons/xml copy.svg +0 -6
  1036. package/projects/widgets-playground/src/assets/icons/xml.svg +0 -6
  1037. package/projects/widgets-playground/src/assets/wxcc/action-menu.svg +0 -3
  1038. package/projects/widgets-playground/src/assets/wxcc/c1.svg +0 -3
  1039. package/projects/widgets-playground/src/assets/wxcc/c2.svg +0 -3
  1040. package/projects/widgets-playground/src/assets/wxcc/close1.svg +0 -3
  1041. package/projects/widgets-playground/src/assets/wxcc/delay.svg +0 -3
  1042. package/projects/widgets-playground/src/assets/wxcc/if.svg +0 -3
  1043. package/projects/widgets-playground/src/assets/wxcc/m1.svg +0 -3
  1044. package/projects/widgets-playground/src/assets/wxcc/m2.svg +0 -3
  1045. package/projects/widgets-playground/src/assets/wxcc/m3.svg +0 -3
  1046. package/projects/widgets-playground/src/assets/wxcc/p1.svg +0 -3
  1047. package/projects/widgets-playground/src/assets/wxcc/route.svg +0 -5
  1048. package/projects/widgets-playground/src/assets/wxcc/s1.svg +0 -3
  1049. package/projects/widgets-playground/src/assets/wxcc/search.svg +0 -3
  1050. package/projects/widgets-playground/src/assets/wxcc/terminate.svg +0 -3
  1051. package/projects/widgets-playground/src/assets/wxcc/terminate2.svg +0 -3
  1052. package/projects/widgets-playground/src/assets/wxcc/unmapped.svg +0 -3
  1053. package/projects/widgets-playground/src/assets/wxcc/variable.svg +0 -3
  1054. package/projects/widgets-playground/src/environments/environment.ts +0 -5
  1055. package/projects/widgets-playground/src/favicon.ico +0 -0
  1056. package/projects/widgets-playground/src/index.html +0 -13
  1057. package/projects/widgets-playground/src/main.ts +0 -7
  1058. package/projects/widgets-playground/src/styles.scss +0 -33
  1059. package/projects/widgets-playground/tsconfig.app.json +0 -14
  1060. package/projects/widgets-playground/tsconfig.spec.json +0 -14
  1061. package/proxy.conf.js +0 -23
  1062. package/tsconfig.json +0 -52
  1063. /package/{projects/tuki/widgets/di2mt → di2mt}/README.md +0 -0
  1064. /package/{projects/tuki/widgets → esm2020}/contact-center/cc-script-editor/mock/data/QWC_ir.json +0 -0
@@ -0,0 +1,2353 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, inject, Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation } from '@angular/core';
3
+ import { SelectionModel } from '@angular/cdk/collections';
4
+ import * as i2$1 from '@angular/material/table';
5
+ import { MatTableDataSource, MatTableModule } from '@angular/material/table';
6
+ import { catchError, of, Subject, Subscription, takeUntil, map, forkJoin } from 'rxjs';
7
+ import * as i1 from '@angular/common/http';
8
+ import { HttpHeaders, HttpClientModule } from '@angular/common/http';
9
+ import * as i1$1 from '@angular/common';
10
+ import { CommonModule } from '@angular/common';
11
+ import * as i3$1 from '@angular/material/checkbox';
12
+ import { MatCheckboxModule } from '@angular/material/checkbox';
13
+ import * as i4$1 from '@angular/material/button';
14
+ import { MatButtonModule } from '@angular/material/button';
15
+ import * as i2 from '@angular/material/icon';
16
+ import { MatIconModule } from '@angular/material/icon';
17
+ import * as i3 from '@angular/material/form-field';
18
+ import { MatFormFieldModule } from '@angular/material/form-field';
19
+ import * as i4 from '@angular/material/input';
20
+ import { MatInputModule } from '@angular/material/input';
21
+ import * as i5 from '@angular/material/select';
22
+ import { MatSelectModule } from '@angular/material/select';
23
+ import * as i6 from '@angular/material/core';
24
+ import { MatOptionModule } from '@angular/material/core';
25
+ import * as i7 from '@angular/material/progress-spinner';
26
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
27
+ import * as i8 from '@angular/material/paginator';
28
+ import { MatPaginatorModule } from '@angular/material/paginator';
29
+ import { MatProgressBarModule } from '@angular/material/progress-bar';
30
+ import * as i2$2 from '@angular/material/tooltip';
31
+ import { MatTooltipModule } from '@angular/material/tooltip';
32
+ import * as i1$2 from 'ng-apexcharts';
33
+ import { NgApexchartsModule } from 'ng-apexcharts';
34
+ import { map as map$1, catchError as catchError$1 } from 'rxjs/operators';
35
+ import * as i6$1 from '@angular/material/menu';
36
+ import { MatMenuModule } from '@angular/material/menu';
37
+
38
+ const API$1 = {
39
+ OVERVIEW: {
40
+ GET_UPGRADE_PRECONDITIONS: '/api/webex-upgrade/customers/:customerId/preconditions/fetch',
41
+ GET_SITE_INFRASTRUCTURE: '/api/webex-upgrade/customers/:customerId/infra/fetch',
42
+ GET_USERS_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/users/upgrade/fetch',
43
+ GET_SITES_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/sites/upgrade/fetch',
44
+ GET_USERS_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/users/readiness/fetch',
45
+ GET_SITES_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/sites/readiness/fetch',
46
+ GET_PENDING_ACTIVATION_COUNT: '/api/webex-upgrade/customers/:customerId/users/pending-activation/count'
47
+ },
48
+ USER_UPGRADE: {
49
+ GET_USERS_UPGRADE_DATA: '/api/webex-upgrade/customers/:customerId/user-upgrade',
50
+ GET_USERS_UPGRADE_STATUS_COUNTS: '/api/webex-upgrade/customers/:customerId/user-upgrades/status-counts',
51
+ UPGRADE_USER: '/api/migration/webex/sites/:siteId/users/:userId',
52
+ SINGLE_COLLECT: '/api/migration/webex/singlecollect/features/:featureName',
53
+ SINGLE_MIGRATION: '/api/migration/webex/singlemigration/features/:featureName',
54
+ UPGRADE_STATUS: '/api/webex-upgrade/customers/:customerId/users/upgrade-status'
55
+ },
56
+ SITE_UPGRADE: {
57
+ GET_SITES_UPGRADE_DATA: '/api/webex-upgrade/customers/:customerId/site-upgrades',
58
+ GET_SITES_UPGRADE_STATUS_COUNTS: '/api/webex-upgrade/customers/:customerId/site-upgrades/status-counts',
59
+ WEBEX_CACHE_COLLECTION: '/api/migration/:migrationType/sites/:siteId/collectbuildwebexcache',
60
+ UPGRADE_SITE: '/api/migration/webex/sites/:siteId',
61
+ WEBEX_BATCH_STATUS: "/api/migration/webex/customer/:customerId/batchesstatus",
62
+ MIGRATE_SITE: "/api/migration/webex/sites/:siteId/migrate",
63
+ BATCH_STATUS: "/api/e2emigration/batches-status/:customerId",
64
+ GET_BATCH_SITES: "/api/e2emigration/batch/:customerId/Sites",
65
+ WEBEX_CACHE_COLLECTION_SITE_LIST: "/api/migration/webex/customers/:customerId/sitelistforcollectbuildwebexcache",
66
+ WEBEX_CACHE_COLLECTION_CUCM_LIST: "/api/migration/webex/customers/:customerId/cucmlistforcollectbuildwebexcache",
67
+ MIGRATION_STATUS: "/api/migration/state/webex/customers/:customerId/migrationstatus"
68
+ }
69
+ };
70
+
71
+ class APIService {
72
+ constructor(httpClient) {
73
+ this.httpClient = httpClient;
74
+ }
75
+ fetch(url, params, cache) {
76
+ const headers = this.getHeaders(cache);
77
+ params = params || {};
78
+ return this.httpClient.get(this.apiUrl + url, { params: this.prepareEncodedParams(params), headers });
79
+ }
80
+ post(url, body, params = {}) {
81
+ body = body || null;
82
+ const headers = this.getHeaders();
83
+ return this.httpClient.post(this.apiUrl + url, body, { params: this.prepareEncodedParams(params), headers });
84
+ }
85
+ // use when response extended data is necessary:
86
+ postExtended(url, body = null, params = {}, headers = {}) {
87
+ headers = headers || this.getHeaders();
88
+ return this.httpClient.post(this.apiUrl + url, body, {
89
+ headers,
90
+ observe: 'response',
91
+ params: this.prepareEncodedParams(params)
92
+ });
93
+ }
94
+ put(url, body = null, params = {}) {
95
+ const headers = this.getHeaders();
96
+ return this.httpClient.put(this.apiUrl + url, body, { headers, params: this.prepareEncodedParams(params) });
97
+ }
98
+ delete(url, params = {}) {
99
+ const headers = this.getHeaders();
100
+ return this.httpClient.delete(this.apiUrl + url, { headers, params: this.prepareEncodedParams(params) });
101
+ }
102
+ fetchPagination(url, pageSize, pageNumber, additionalParams = {}, cache) {
103
+ const copyAdditionalParams = JSON.parse(JSON.stringify(additionalParams));
104
+ const params = Object.assign(copyAdditionalParams, { size: pageSize.toString(), page: pageNumber.toString() });
105
+ return this.fetch(url, params, cache);
106
+ }
107
+ prepareEncodedParams(params) {
108
+ const result = {};
109
+ if (!params) {
110
+ return {};
111
+ }
112
+ for (const key of Object.keys(params)) {
113
+ if (params[key]) {
114
+ const stringParam = params[key].toString();
115
+ result[key] = stringParam.includes('+') ? encodeURIComponent(stringParam) : stringParam;
116
+ }
117
+ }
118
+ return result;
119
+ }
120
+ getHeaders(cache) {
121
+ let headers = new HttpHeaders();
122
+ if (cache) {
123
+ headers = headers.append('_Cache', 'true ');
124
+ }
125
+ const token = this.token || this.getParameterByName('token');
126
+ headers = headers.append('Authorization', 'Bearer ' + token);
127
+ return headers;
128
+ }
129
+ getParameterByName(name, url = window.location.href) {
130
+ name = name.replace(/[\[\]]/g, '\\$&');
131
+ var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url);
132
+ if (!results)
133
+ return null;
134
+ if (!results[2])
135
+ return '';
136
+ return decodeURIComponent(results[2].replace(/\+/g, ' '));
137
+ }
138
+ }
139
+ APIService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
140
+ APIService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, providedIn: 'root' });
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, decorators: [{
142
+ type: Injectable,
143
+ args: [{
144
+ providedIn: 'root'
145
+ }]
146
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
147
+
148
+ class UserUpgradeService {
149
+ constructor() {
150
+ this.apiService = inject(APIService);
151
+ }
152
+ // TODO: Impl the user upgrade logic here
153
+ bulkUpgrade(users) {
154
+ const body = this.generateUserUpgradeBody(users);
155
+ console.log('bulkUpgrade', users);
156
+ console.log(body);
157
+ // This is not done yet...
158
+ return this.apiService.post(API$1.USER_UPGRADE.SINGLE_MIGRATION.replace(':featureName', "PERSON"), body, {}).pipe(catchError((err) => of(err)));
159
+ }
160
+ collectUsers(users) {
161
+ const body = this.generateUserUpgradeBody(users);
162
+ console.log('collectUsers', body);
163
+ // This is not done yet...
164
+ return this.apiService.post(API$1.USER_UPGRADE.SINGLE_COLLECT.replace(':featureName', 'PERSON'), body, {}).pipe(catchError((err) => of(err)));
165
+ }
166
+ getUsersUpgradeStatuses(users) {
167
+ const body = this.generateUserUpgradeStatusBody(users);
168
+ console.log('getUsersUpgradeStatuses', body);
169
+ // This is not done yet...
170
+ return this.apiService.post(API$1.USER_UPGRADE.UPGRADE_STATUS.replace(':customerId', this.customerId), body, {}).pipe(catchError((err) => of(err)));
171
+ }
172
+ generateUserUpgradeBody(users) {
173
+ const entities = users.map(record => ({ cucmId: record.cucmId, entityId: record.userId }));
174
+ const customerId = users[0].customerId;
175
+ return {
176
+ customerId,
177
+ entities: {
178
+ PERSON: entities
179
+ }
180
+ };
181
+ }
182
+ generateUserUpgradeStatusBody(users) {
183
+ const body = {};
184
+ body[String(users[0].cucmId)] = users.map(user => String(user.userId));
185
+ return body;
186
+ }
187
+ getUserUpgradeStatusCounts() {
188
+ return this.apiService.fetch(API$1.USER_UPGRADE.GET_USERS_UPGRADE_STATUS_COUNTS.replace(':customerId', this.customerId));
189
+ }
190
+ getUserUpgradeRecords(pageSize, pageIndex, params) {
191
+ return this.apiService.fetchPagination(API$1.USER_UPGRADE.GET_USERS_UPGRADE_DATA.replace(':customerId', this.customerId), pageSize, pageIndex, params);
192
+ }
193
+ mapDevicesWithExtensions(devices, deviceDetails) {
194
+ if (!(devices === null || devices === void 0 ? void 0 : devices.length)) {
195
+ return [];
196
+ }
197
+ return devices.map(deviceName => {
198
+ var _a;
199
+ const found = deviceDetails.find(d => d.name === deviceName);
200
+ return {
201
+ deviceName,
202
+ extensions: (_a = found === null || found === void 0 ? void 0 : found.extensions) !== null && _a !== void 0 ? _a : []
203
+ };
204
+ });
205
+ }
206
+ }
207
+ UserUpgradeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
208
+ UserUpgradeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, providedIn: 'root' });
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, decorators: [{
210
+ type: Injectable,
211
+ args: [{
212
+ providedIn: 'root'
213
+ }]
214
+ }] });
215
+ class User2UpgradeStatusDTO {
216
+ }
217
+ // map UI keys -> server keys
218
+ const FILTER_KEY_MAP = {
219
+ 'Site': 'siteName',
220
+ 'User Upgrade Status': 'upgradeStatus',
221
+ 'User': 'userId',
222
+ };
223
+
224
+ const STATUS_ENTRIES = {
225
+ READY: 'Ready',
226
+ NOT_READY: 'Not Ready',
227
+ PARTIAL_READY: 'Partial Ready',
228
+ FAILED: 'Failed',
229
+ COMPLETED: 'Completed'
230
+ };
231
+ const DEPENDENCIES_STATUS = {
232
+ DEPENDENCIES_FOUND: 'Dependencies found',
233
+ NO_DEPENDENCIES: 'No dependencies',
234
+ };
235
+ var UPGRADE_STATUS;
236
+ (function (UPGRADE_STATUS) {
237
+ UPGRADE_STATUS["NOT_READY"] = "not_ready";
238
+ UPGRADE_STATUS["READY"] = "ready";
239
+ UPGRADE_STATUS["COMPLETED"] = "completed";
240
+ UPGRADE_STATUS["IN_PROGRESS"] = "in progress";
241
+ UPGRADE_STATUS["FAILED"] = "failed";
242
+ })(UPGRADE_STATUS || (UPGRADE_STATUS = {}));
243
+
244
+ const API = {
245
+ USER_TOKEN: '/api/provision/:siteId/users/:userId/token',
246
+ UPDATE_USER_FIELDS: '/api/provision/:siteId/userFields/:token',
247
+ PERSIST_USER_CACHE: '/api/provision/:siteId/saveUser/:token',
248
+ USER_BY_ID: '/api/provision/:siteId/users/:userId',
249
+ QUICK_USERS_SEARCH: "/api/search/quickusers",
250
+ LOCATION: "/api/provision/options/:siteId/locations",
251
+ USER_LOCALES: "/api/provision/options/:siteId/userlocales",
252
+ USER_PROFILES: "/api/provision/options/:siteId/userprofiles",
253
+ RECORDING_PROFILE: "/api/provision/options/:siteId/recordingprofiles",
254
+ AVAILABLE_DN_IN_RANGES: "/api/sites/:siteId/available-dn-in-ranges",
255
+ DELETE_LINE: "/api/provision/:siteId/deleteLine/:pkid/:token",
256
+ DISASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/deleteLineAssociation/:linePkid/:token",
257
+ CHECK_DELETE_LINE: "/api/provision/:siteId/checklinedeletion",
258
+ ASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/createLineAssociation/:token",
259
+ CHECK_DESTINATION_NUMBER: "/api/provision/:siteId/check-dn",
260
+ UPDATE_LINE_FIELDS: "/api/provision/:siteId/lineFields/:pkid/:token",
261
+ UPDATE_DEVICE_FIELDS: "/api/provision/:siteId/deviceFields/:deviceName/:token",
262
+ SOFTKEY_TEMPLATES: "/api/provision/options/:siteId/softkeytemplates",
263
+ SITE_SETTINGS: "/api/sites/:siteId/settings",
264
+ LINE_SLOTS: "/api/provision/:siteId/buttontemplate",
265
+ LEAN_USER_CONVERSATION_START: "/api/provision/:siteId/leanUsers/:userId/leanUserDetailsToken",
266
+ LEAN_USER_DEVICES_CONVERSATION_START: "/api/provision/:siteId/leanUsers/:userId/leanUserDevicesToken",
267
+ LEAN_USER_LINES_CONVERSATION_START: "/api/provision/:siteId/leanUsers/:userId/:leanUserDevicesToken/leanUserLinesToken",
268
+ LEAN_USER_SNR_CONVERSATION_START: "/api/provision/:siteId/leanUsers/:userId/leanUserSNRToken",
269
+ DEVICE_LINE_MONITOR_CSS: "/api/provision/options/:siteId/callingSearchSpace"
270
+ };
271
+ const REGEX_PATTERN = {
272
+ EMAIL: '^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))' +
273
+ '@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])' +
274
+ '?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])?)*$'
275
+ };
276
+ const PAGINATION_DEFAULTS = {
277
+ SIZE: 10,
278
+ INDEX: 0
279
+ };
280
+ const PAGINATION_SIZE_OPTIONS = [
281
+ 10,
282
+ 50,
283
+ 100,
284
+ 500
285
+ ];
286
+ const CUCS_TO_IGNORE = [
287
+ 189,
288
+ 194,
289
+ 191,
290
+ 190
291
+ ];
292
+ const CUCMS_TO_IGNORE = [
293
+ 249,
294
+ 255,
295
+ 251,
296
+ 250
297
+ ];
298
+ const RECORDING_MEDIA_SOURCE = [
299
+ "Gateway Preferred",
300
+ "Phone Preferred"
301
+ ];
302
+ const STATIC_OPTIONS = {
303
+ CALL_PICKUP_GROUP_AUDIO_SETTING_PHONE_ACTIVE: ['Use System Default', 'Disable', 'Beep Only'],
304
+ CALL_PICKUP_GROUP_AUDIO_SETTING_PHONE_IDLE: ['Use System Default', 'Disable', 'Ring Once'],
305
+ CONF_ACCESS_MODE: ['Fixed', 'Variable'],
306
+ DEFAULT_ON_OFF: ['Default', 'On', 'Off'],
307
+ DEFAULT_EN_DIS: ['Default', 'Enabled', 'Disabled'],
308
+ DND: ['Use Common Phone Profile Setting', 'Call Reject', 'Ringer Off'],
309
+ DND_INCOMING_CALL_ALLERT: ['Disable', 'Flash Only', 'Beep Only'],
310
+ LATENT_CAPABILITY: ['Gateway Controlled', 'Modem Relay', 'Modem Passthrough', 'Modem Relay and Passthrough', 'None'],
311
+ LINE_MODE: ['Session Line mode', 'Enhanced Line mode'],
312
+ ACTIONABLE_ALERT: ['Disabled', 'Show for all Incoming Call', 'Show for Invisible Incoming Call'],
313
+ MLPP_PREEMPTION: ['Default', 'Forceful', 'Disabled'],
314
+ PACKET_CAPTURE_MODE: ['None', 'Batch Processing Mode'],
315
+ RING_VOLUME: ['0-Silent', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15'],
316
+ PORT_DIRECTION: ['Bothways', 'Inbound', 'Outbound'],
317
+ RING_SETTING_IDLE: ['Use System Default', 'Disable', 'Flash Only', 'Ring Once', 'Ring'],
318
+ RING_SETTING_ACTIVE: ['Use System Default', 'Disable', 'Flash Only', 'Ring Once', 'Ring', 'Beep Only'],
319
+ SERVICE_PROVISIONING: ['Default', 'Internal', 'External URL', 'Both'],
320
+ SETTINGS_ACCES: ['Enabled', 'Disabled', 'Restricted'],
321
+ VISUAL_MWI: ['Use System Policy', 'Light and Prompt', 'Prompt Only', 'Light Only', 'None'],
322
+ WEEKDAYS: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
323
+ BUILD_BRIDGE: ['None', 'On', 'Off', 'Default'],
324
+ TRANSFER_TYPES: ['Release to Switch', 'Supervise Transfer'],
325
+ EXTENSION_IS_BUSY_TYPES: ['Send Callers to Voicemail', 'Put Callers on Hold Without Asking', 'Ask Callers to Hold'],
326
+ CALL_ACTIONS: ['Hang Up', 'Restart Greeting', 'Route From Next Call Routing Rule', 'Take Message'],
327
+ AUTHENTICATION_802: ['User controlled', 'Disabled', 'Enabled'],
328
+ CERTIFICATE_OPERATION: ['No Pending Operation', 'Install/Upgrade', 'Delete', 'Troubleshoot'],
329
+ AUTHENTICATION_MODE: ['By Authentication String', 'By Null String', 'By Existing Certificate (precedence to LSC)', 'By Existing Certificate (precedence to MIC)'],
330
+ KEY_ORDER: ['RSA Only', 'EC Only', 'EC Preferred, RSA Backup'],
331
+ RSA_KEY_SIZE: ['512', '1024', '2048'],
332
+ RSA_KEY_SIZE_SPECIFIC_DEVICE: ['512', '1024', '2048', '3072', '4096']
333
+ };
334
+ const TOGGLE_TYPES = {
335
+ TABS: 'TABS',
336
+ ASSOCIATED_LINE_ONLY: 'ASSOCIATED_LINE_ONLY'
337
+ };
338
+
339
+ class SummaryCardComponent {
340
+ constructor() {
341
+ this.value = 41;
342
+ this.status = 'Ready';
343
+ }
344
+ getStatusClass(status) {
345
+ switch (status === null || status === void 0 ? void 0 : status.toLowerCase()) {
346
+ case 'ready':
347
+ return 'ready';
348
+ case 'not ready':
349
+ return 'not-ready';
350
+ case 'failed':
351
+ return 'failed';
352
+ case 'completed':
353
+ return 'completed';
354
+ default:
355
+ return 'not-ready';
356
+ }
357
+ }
358
+ }
359
+ SummaryCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SummaryCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
360
+ SummaryCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SummaryCardComponent, selector: "tk-summary-card", inputs: { value: "value", status: "status", description: "description" }, ngImport: i0, template: "<article class=\"summary-card\">\r\n <header class=\"summary-card__header\">\r\n <h2>{{ value }}</h2>\r\n </header>\r\n <div class=\"summary__card-description\">\r\n <span>{{ description }}</span>\r\n <div class=\"summary__card-status-wrapper\">\r\n <span class=\"summary__card-status-indicator\" [ngClass]=\"getStatusClass(status)\"></span>\r\n <span [ngClass]=\"{'status-ready': status === 'ready'}\">{{ status }}</span>\r\n </div>\r\n </div>\r\n</article>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";:host{display:block;box-sizing:border-box;flex:1}.summary-card{font-family:Inter,Inter,sans-serif;background-color:#fff;border-radius:1rem;padding:1rem;border:1px solid hsl(0,0%,20%);max-width:100%;height:100%;display:flex;box-sizing:border-box;flex-direction:column;gap:.25rem}.summary-card__header{position:relative;display:flex;align-items:center;justify-content:space-between}.summary-card__header h2{font-size:28px;font-weight:500;margin:0}.summary__card-status-wrapper{display:flex;align-items:center;font-size:14px;gap:.5rem}.summary__card-status-wrapper .summary__card-status-indicator{width:8px;height:8px;border-radius:50%}.summary__card-status-wrapper .summary__card-status-indicator.ready{background-color:#1c3893}.summary__card-status-wrapper .summary__card-status-indicator.partial-ready{background-color:#f8cd00}.summary__card-status-wrapper .summary__card-status-indicator.not-ready{background-color:#9e9e9e}.summary__card-status-wrapper .summary__card-status-indicator.completed{background-color:#1d805f}.summary__card-status-wrapper .summary__card-status-indicator.failed{background-color:#f23933}.indicator-status-ready{color:#1170cf!important}.summary__card-description{font-size:14px;color:#333;display:flex;align-items:center;justify-content:space-between}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
361
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SummaryCardComponent, decorators: [{
362
+ type: Component,
363
+ args: [{ selector: 'tk-summary-card', template: "<article class=\"summary-card\">\r\n <header class=\"summary-card__header\">\r\n <h2>{{ value }}</h2>\r\n </header>\r\n <div class=\"summary__card-description\">\r\n <span>{{ description }}</span>\r\n <div class=\"summary__card-status-wrapper\">\r\n <span class=\"summary__card-status-indicator\" [ngClass]=\"getStatusClass(status)\"></span>\r\n <span [ngClass]=\"{'status-ready': status === 'ready'}\">{{ status }}</span>\r\n </div>\r\n </div>\r\n</article>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";:host{display:block;box-sizing:border-box;flex:1}.summary-card{font-family:Inter,Inter,sans-serif;background-color:#fff;border-radius:1rem;padding:1rem;border:1px solid hsl(0,0%,20%);max-width:100%;height:100%;display:flex;box-sizing:border-box;flex-direction:column;gap:.25rem}.summary-card__header{position:relative;display:flex;align-items:center;justify-content:space-between}.summary-card__header h2{font-size:28px;font-weight:500;margin:0}.summary__card-status-wrapper{display:flex;align-items:center;font-size:14px;gap:.5rem}.summary__card-status-wrapper .summary__card-status-indicator{width:8px;height:8px;border-radius:50%}.summary__card-status-wrapper .summary__card-status-indicator.ready{background-color:#1c3893}.summary__card-status-wrapper .summary__card-status-indicator.partial-ready{background-color:#f8cd00}.summary__card-status-wrapper .summary__card-status-indicator.not-ready{background-color:#9e9e9e}.summary__card-status-wrapper .summary__card-status-indicator.completed{background-color:#1d805f}.summary__card-status-wrapper .summary__card-status-indicator.failed{background-color:#f23933}.indicator-status-ready{color:#1170cf!important}.summary__card-description{font-size:14px;color:#333;display:flex;align-items:center;justify-content:space-between}\n"] }]
364
+ }], propDecorators: { value: [{
365
+ type: Input
366
+ }], status: [{
367
+ type: Input
368
+ }], description: [{
369
+ type: Input
370
+ }] } });
371
+
372
+ class TableFiltersComponent {
373
+ constructor() {
374
+ this.filter = new EventEmitter();
375
+ }
376
+ ngOnInit() {
377
+ if (this.filters) {
378
+ this.filters.forEach(filter => {
379
+ if (filter.type === 'select' && !filter.options.some(opt => opt.value === 'all')) {
380
+ filter.options.unshift({ label: 'All', value: 'all' });
381
+ }
382
+ });
383
+ }
384
+ }
385
+ onFilter(key, value) {
386
+ const val = { key, value };
387
+ this.filter.emit(val);
388
+ }
389
+ }
390
+ TableFiltersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableFiltersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
391
+ TableFiltersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TableFiltersComponent, selector: "tk-table-filters", inputs: { filters: "filters" }, outputs: { filter: "filter" }, ngImport: i0, template: "<div class=\"filters-wrapper\">\r\n <ng-container *ngFor=\"let filter of filters\">\r\n <div class=\"filter\">\r\n <ng-container [ngSwitch]=\"filter.type\">\r\n <!-- Search Input with Material Design -->\r\n <mat-form-field *ngSwitchCase=\"'search'\" appearance=\"outline\" class=\"search-field custom-mat-form-field\">\r\n<!-- <mat-label>{{ filter.placeholder }}</mat-label>-->\r\n <input matInput\r\n [placeholder]=\"filter.placeholder\"\r\n (input)=\"onFilter(filter.columnKey, $event)\">\r\n <mat-icon matPrefix class=\"search-icon\">\r\n <!-- <img src=\"assets/icons/search_icon.png\" alt=\"Search\" /> -->\r\n </mat-icon>\r\n </mat-form-field>\r\n\r\n <!-- Select Dropdown with Material Design -->\r\n <mat-form-field *ngSwitchCase=\"'select'\" appearance=\"outline\" class=\"select-field custom-mat-form-field\">\r\n <mat-label>{{ filter.placeholder }}</mat-label>\r\n <mat-select (selectionChange)=\"onFilter(filter.columnKey, $event)\">\r\n <mat-option *ngFor=\"let option of filter.options\" [value]=\"option.value\">\r\n {{ option.label }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n</div>\r\n", styles: [":host .filters-wrapper{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;padding:0}:host .filters-wrapper .filter .search-field,:host .filters-wrapper .filter .select-field{width:100%}:host .filters-wrapper .filter .search-field .search-icon,:host .filters-wrapper .filter .select-field .search-icon{display:flex;align-items:center;justify-content:center;margin-right:.25rem;padding:0}:host .filters-wrapper .filter .search-field .search-icon img,:host .filters-wrapper .filter .select-field .search-icon img{width:24px;height:24px;object-fit:contain;opacity:.6;vertical-align:middle}:host ::ng-deep .custom-mat-form-field{width:265px}:host ::ng-deep .custom-mat-form-field .mat-form-field-wrapper{height:24px;padding-bottom:0}:host ::ng-deep .custom-mat-form-field .mat-form-field-flex{height:34px;align-items:center;padding:0 12px}:host ::ng-deep .custom-mat-form-field .mat-form-field-infix{padding:0;border:none;min-height:auto;display:flex;align-items:center;height:28px;margin:4px 0 0;font-size:14px}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline{color:#737480}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-end{border-color:#737480;border-width:1px}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-start{border-radius:6px 0 0 6px;min-width:6px}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-end{border-radius:0 6px 6px 0}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-gap{border-radius:0}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-end{border-color:#737480;border-width:2px}:host ::ng-deep .custom-mat-form-field .mat-form-field-subscript-wrapper{display:none}:host ::ng-deep .custom-mat-form-field .mat-form-field-label{color:#555;font-size:14px}:host ::ng-deep .custom-mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,:host ::ng-deep .custom-mat-form-field.mat-form-field-can-float .mat-form-field-label.mat-form-field-empty.mat-form-field-label{transform:translateY(-50%)}:host ::ng-deep .custom-mat-form-field .mat-select-value{max-width:calc(100% - 20px)}:host ::ng-deep .custom-mat-form-field .mat-select-arrow-wrapper{transform:none;display:flex;align-items:center;position:absolute;right:-10px;top:5px}:host ::ng-deep .custom-mat-form-field input.mat-input-element{height:24px;line-height:24px;margin:3px 0 0}:host ::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-end{border-color:#ccc}:host ::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-end{border-color:#e70707}:host ::ng-deep .custom-mat-form-field .mat-select-arrow{width:16px;height:16px;border:none;margin:-6px 4px 0 0;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center;background-size:contain}:host ::ng-deep .custom-mat-form-field.use-css-arrow .mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #737480;margin:-6px 4px 0 0;background:none}:host ::ng-deep .custom-mat-form-field .mat-form-field-label-wrapper{top:2px;padding-top:0;height:28px;display:flex;overflow:visible!important;align-items:center}:host ::ng-deep .custom-mat-form-field .mat-form-field-label{color:#555;position:relative;top:auto;transform:none;padding:0 4px;background:white}:host ::ng-deep .custom-mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{position:absolute;top:-5px;width:-moz-fit-content;width:fit-content;font-size:12px;color:#555;background:white;padding:0 4px}:host ::ng-deep .custom-mat-form-field.mat-form-field-can-float .mat-form-field-label.mat-form-field-empty.mat-form-field-label{position:relative;top:auto;left:auto;transform:none;font-size:14px;background:transparent}:host ::ng-deep .custom-mat-form-field .mat-select-placeholder{color:#555;line-height:34px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i6.MatOption, selector: "mat-option", exportAs: ["matOption"] }] });
392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableFiltersComponent, decorators: [{
393
+ type: Component,
394
+ args: [{ selector: 'tk-table-filters', template: "<div class=\"filters-wrapper\">\r\n <ng-container *ngFor=\"let filter of filters\">\r\n <div class=\"filter\">\r\n <ng-container [ngSwitch]=\"filter.type\">\r\n <!-- Search Input with Material Design -->\r\n <mat-form-field *ngSwitchCase=\"'search'\" appearance=\"outline\" class=\"search-field custom-mat-form-field\">\r\n<!-- <mat-label>{{ filter.placeholder }}</mat-label>-->\r\n <input matInput\r\n [placeholder]=\"filter.placeholder\"\r\n (input)=\"onFilter(filter.columnKey, $event)\">\r\n <mat-icon matPrefix class=\"search-icon\">\r\n <!-- <img src=\"assets/icons/search_icon.png\" alt=\"Search\" /> -->\r\n </mat-icon>\r\n </mat-form-field>\r\n\r\n <!-- Select Dropdown with Material Design -->\r\n <mat-form-field *ngSwitchCase=\"'select'\" appearance=\"outline\" class=\"select-field custom-mat-form-field\">\r\n <mat-label>{{ filter.placeholder }}</mat-label>\r\n <mat-select (selectionChange)=\"onFilter(filter.columnKey, $event)\">\r\n <mat-option *ngFor=\"let option of filter.options\" [value]=\"option.value\">\r\n {{ option.label }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n</div>\r\n", styles: [":host .filters-wrapper{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;padding:0}:host .filters-wrapper .filter .search-field,:host .filters-wrapper .filter .select-field{width:100%}:host .filters-wrapper .filter .search-field .search-icon,:host .filters-wrapper .filter .select-field .search-icon{display:flex;align-items:center;justify-content:center;margin-right:.25rem;padding:0}:host .filters-wrapper .filter .search-field .search-icon img,:host .filters-wrapper .filter .select-field .search-icon img{width:24px;height:24px;object-fit:contain;opacity:.6;vertical-align:middle}:host ::ng-deep .custom-mat-form-field{width:265px}:host ::ng-deep .custom-mat-form-field .mat-form-field-wrapper{height:24px;padding-bottom:0}:host ::ng-deep .custom-mat-form-field .mat-form-field-flex{height:34px;align-items:center;padding:0 12px}:host ::ng-deep .custom-mat-form-field .mat-form-field-infix{padding:0;border:none;min-height:auto;display:flex;align-items:center;height:28px;margin:4px 0 0;font-size:14px}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline{color:#737480}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-end{border-color:#737480;border-width:1px}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-start{border-radius:6px 0 0 6px;min-width:6px}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-end{border-radius:0 6px 6px 0}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-gap{border-radius:0}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-end{border-color:#737480;border-width:2px}:host ::ng-deep .custom-mat-form-field .mat-form-field-subscript-wrapper{display:none}:host ::ng-deep .custom-mat-form-field .mat-form-field-label{color:#555;font-size:14px}:host ::ng-deep .custom-mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,:host ::ng-deep .custom-mat-form-field.mat-form-field-can-float .mat-form-field-label.mat-form-field-empty.mat-form-field-label{transform:translateY(-50%)}:host ::ng-deep .custom-mat-form-field .mat-select-value{max-width:calc(100% - 20px)}:host ::ng-deep .custom-mat-form-field .mat-select-arrow-wrapper{transform:none;display:flex;align-items:center;position:absolute;right:-10px;top:5px}:host ::ng-deep .custom-mat-form-field input.mat-input-element{height:24px;line-height:24px;margin:3px 0 0}:host ::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-end{border-color:#ccc}:host ::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-end{border-color:#e70707}:host ::ng-deep .custom-mat-form-field .mat-select-arrow{width:16px;height:16px;border:none;margin:-6px 4px 0 0;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center;background-size:contain}:host ::ng-deep .custom-mat-form-field.use-css-arrow .mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #737480;margin:-6px 4px 0 0;background:none}:host ::ng-deep .custom-mat-form-field .mat-form-field-label-wrapper{top:2px;padding-top:0;height:28px;display:flex;overflow:visible!important;align-items:center}:host ::ng-deep .custom-mat-form-field .mat-form-field-label{color:#555;position:relative;top:auto;transform:none;padding:0 4px;background:white}:host ::ng-deep .custom-mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{position:absolute;top:-5px;width:-moz-fit-content;width:fit-content;font-size:12px;color:#555;background:white;padding:0 4px}:host ::ng-deep .custom-mat-form-field.mat-form-field-can-float .mat-form-field-label.mat-form-field-empty.mat-form-field-label{position:relative;top:auto;left:auto;transform:none;font-size:14px;background:transparent}:host ::ng-deep .custom-mat-form-field .mat-select-placeholder{color:#555;line-height:34px}\n"] }]
395
+ }], propDecorators: { filters: [{
396
+ type: Input
397
+ }], filter: [{
398
+ type: Output
399
+ }] } });
400
+
401
+ class UserUpgradeDataTableComponent {
402
+ constructor() {
403
+ this.destroy$ = new Subject();
404
+ this.userUpgradeService = inject(UserUpgradeService);
405
+ this.apiService = inject(APIService);
406
+ this.STATUS_ENTRIES = STATUS_ENTRIES;
407
+ this.DEPENDENCIES_STATUS = DEPENDENCIES_STATUS;
408
+ this.dataPending = false;
409
+ this.displayedColumns = ['select', 'user', 'site', 'device', 'dialPlanStatus', 'dependencies', 'userUpgradeStatus', 'userUpgradeLoader'];
410
+ this.selection = new SelectionModel(true, []);
411
+ this.filters = [];
412
+ this.pagination = new PaginationDataDto();
413
+ this.users = [];
414
+ this.subscriptions = new Subscription();
415
+ this.statusCounts = {};
416
+ this.activeFilters = {};
417
+ this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
418
+ }
419
+ ngOnInit() {
420
+ this.dataPending = true;
421
+ this.apiService.token = this.token;
422
+ this.apiService.apiUrl = this.host;
423
+ this.userUpgradeService.customerId = this.customerId;
424
+ const subsc1 = this.userUpgradeService.getUserUpgradeRecords(this.pagination.pageSize, this.pagination.pageIndex, this.activeFilters)
425
+ .pipe(takeUntil(this.destroy$))
426
+ .subscribe((results) => {
427
+ const records = results.content;
428
+ records.forEach(record => {
429
+ record.devicesWithExtensions = this.userUpgradeService.mapDevicesWithExtensions(record.devices, record.deviceDetails);
430
+ });
431
+ this.data = new MatTableDataSource(records);
432
+ this.pagination.total = results.totalElements;
433
+ this.dataPending = false;
434
+ this.setupCustomFilter();
435
+ this.initializeFilters(records);
436
+ });
437
+ this.subscriptions.add(subsc1);
438
+ const subsc2 = this.userUpgradeService.getUserUpgradeStatusCounts()
439
+ .pipe(takeUntil(this.destroy$))
440
+ .subscribe((statusCounts) => {
441
+ this.statusCounts['Ready'] = statusCounts['READY'] || 0;
442
+ this.statusCounts['Not Ready'] = statusCounts['NOT_READY'] || 0;
443
+ this.statusCounts['Completed'] = statusCounts['COMPLETED'] || 0;
444
+ this.statusCounts['Failed'] = statusCounts['FAILED'] || 0;
445
+ });
446
+ this.subscriptions.add(subsc2);
447
+ }
448
+ ngOnDestroy() {
449
+ this.destroy$.next();
450
+ this.destroy$.complete();
451
+ this.dataPending = false;
452
+ if (this.subscriptions) {
453
+ this.subscriptions.unsubscribe();
454
+ }
455
+ }
456
+ onMultipleDevices(user) {
457
+ user.showDevices = !user.showDevices;
458
+ }
459
+ pageEvent(event) {
460
+ this.pagination.pageIndex = event.pageIndex;
461
+ this.pagination.pageSize = event.pageSize;
462
+ this.getData();
463
+ }
464
+ getSiteUpgradeStatusClass(status) {
465
+ switch (status.toLowerCase()) {
466
+ case 'ready':
467
+ return 'status-ready';
468
+ case 'partial ready':
469
+ return 'partial-ready';
470
+ case 'completed':
471
+ return 'completed';
472
+ case 'failed':
473
+ return 'failed';
474
+ case 'not ready':
475
+ return 'not-ready';
476
+ default:
477
+ return 'not-ready';
478
+ }
479
+ }
480
+ changePerPageNumber(pageSizeEvent) {
481
+ this.pagination.pageSize = pageSizeEvent.value;
482
+ this.pagination.pageIndex = 0;
483
+ this.getData();
484
+ }
485
+ getData(params) {
486
+ this.dataPending = true;
487
+ const subsc1 = this.userUpgradeService.getUserUpgradeRecords(this.pagination.pageSize, this.pagination.pageIndex, params || {})
488
+ .pipe(takeUntil(this.destroy$))
489
+ .subscribe((result) => {
490
+ const records = result.content;
491
+ records.forEach(record => {
492
+ record.devicesWithExtensions = this.userUpgradeService.mapDevicesWithExtensions(record.devices, record.deviceDetails);
493
+ });
494
+ this.data = new MatTableDataSource(records);
495
+ this.pagination.total = result.totalElements;
496
+ this.dataPending = false;
497
+ });
498
+ this.subscriptions.add(subsc1);
499
+ }
500
+ initializeFilters(records) {
501
+ if (!(records === null || records === void 0 ? void 0 : records.length)) {
502
+ this.filters = [];
503
+ return;
504
+ }
505
+ // Extract unique sites (skip empty/null)
506
+ const uniqueSites = [
507
+ ...new Set(records
508
+ .map(record => { var _a; return (_a = record.siteName) === null || _a === void 0 ? void 0 : _a.trim(); })
509
+ .filter((site) => !!site))
510
+ ];
511
+ const siteOptions = uniqueSites.map(site => ({
512
+ label: site,
513
+ value: site.toLowerCase().replace(/\s+/g, '-')
514
+ }));
515
+ // Extract unique statuses (skip empty/null)
516
+ const uniqueStatuses = [
517
+ ...new Set(records
518
+ .map(record => { var _a; return (_a = record.upgradeStatus) === null || _a === void 0 ? void 0 : _a.trim(); })
519
+ .filter((status) => !!status))
520
+ ];
521
+ const statusOptions = uniqueStatuses.map(status => ({
522
+ label: STATUS_ENTRIES[status],
523
+ value: status.toLowerCase().replace(/\s+/g, '-')
524
+ }));
525
+ this.filters = [
526
+ {
527
+ id: 'userName',
528
+ type: 'search',
529
+ columnKey: 'User',
530
+ placeholder: 'Search users...',
531
+ options: []
532
+ }
533
+ ];
534
+ if (siteOptions.length) {
535
+ this.filters.push({
536
+ id: 'sites',
537
+ type: 'select',
538
+ columnKey: 'Site',
539
+ placeholder: 'Sites',
540
+ options: siteOptions
541
+ });
542
+ }
543
+ if (statusOptions.length) {
544
+ this.filters.push({
545
+ id: 'status',
546
+ type: 'select',
547
+ columnKey: 'User Upgrade Status',
548
+ placeholder: 'Upgrade Status',
549
+ options: statusOptions
550
+ });
551
+ }
552
+ }
553
+ /** Whether the number of selected elements matches the total number of rows. */
554
+ isAllSelected() {
555
+ var _a, _b;
556
+ const numSelected = this.selection.selected.length;
557
+ const numRows = (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.data.length) !== null && _b !== void 0 ? _b : 0;
558
+ return numSelected === numRows;
559
+ }
560
+ /** Selects all rows if they are not all selected; otherwise clear selection. */
561
+ masterToggle() {
562
+ var _a;
563
+ // this.isAllSelected() ?
564
+ // this.selection.clear() :
565
+ // this.data?.data.forEach(row => this.selection.select(row));
566
+ if (this.isAllSelected()) {
567
+ this.selection.clear();
568
+ }
569
+ else {
570
+ (_a = this.data) === null || _a === void 0 ? void 0 : _a.data.forEach(row => {
571
+ if (row.upgradeStatus === 'READY') {
572
+ this.selection.select(row);
573
+ }
574
+ });
575
+ }
576
+ }
577
+ upgradeUser(user) {
578
+ if ((user === null || user === void 0 ? void 0 : user.upgradeStatus) === 'READY')
579
+ user.pending = true;
580
+ this.userUpgradeService.collectUsers([user])
581
+ .pipe(takeUntil(this.destroy$))
582
+ .subscribe(() => {
583
+ this.userUpgradeService.bulkUpgrade([user])
584
+ .pipe(takeUntil(this.destroy$))
585
+ .subscribe(() => {
586
+ this.updateUsersStatusAfterUpgrade([user]);
587
+ });
588
+ });
589
+ }
590
+ updateUsersStatusAfterUpgrade(users) {
591
+ this.userUpgradeService.getUsersUpgradeStatuses(users)
592
+ .pipe(takeUntil(this.destroy$))
593
+ .subscribe((upgradedStatuses) => {
594
+ upgradedStatuses.forEach(statusItem => {
595
+ const ind = this.getUserIndex(statusItem.userId);
596
+ if (ind > -1) {
597
+ this.data.data[ind].upgradeStatus = statusItem.upgradeStatus;
598
+ this.data.data[ind].pending = false;
599
+ }
600
+ });
601
+ this.dataPending = false;
602
+ });
603
+ }
604
+ getUserIndex(userId) {
605
+ return this.data.data.findIndex((record) => record.userId === userId);
606
+ }
607
+ upgradeSelectedUsers() {
608
+ if (this.selection.selected && this.selection.selected.length) {
609
+ this.dataPending = true;
610
+ this.userUpgradeService.collectUsers(this.selection.selected)
611
+ .pipe(takeUntil(this.destroy$))
612
+ .subscribe(() => {
613
+ this.userUpgradeService.bulkUpgrade(this.selection.selected)
614
+ .pipe(takeUntil(this.destroy$))
615
+ .subscribe(() => {
616
+ this.updateUsersStatusAfterUpgrade(this.selection.selected);
617
+ });
618
+ });
619
+ }
620
+ this.userUpgradeService.bulkUpgrade(this.selection.selected);
621
+ }
622
+ getFilterValue(input) {
623
+ if (input && input.value !== undefined)
624
+ return input.value; // e.g. {value,label}
625
+ if (input && input.target)
626
+ return input.target.value; // DOM event
627
+ return input; // plain value
628
+ }
629
+ isEmptyFilter(v) {
630
+ if (v === undefined || v === null)
631
+ return true;
632
+ if (typeof v === 'string') {
633
+ const s = v.trim().toLowerCase();
634
+ return s === '' || s === 'all';
635
+ }
636
+ return false;
637
+ }
638
+ onFilter(filterEvent) {
639
+ var _a;
640
+ const rawKey = filterEvent.key;
641
+ const serverKey = FILTER_KEY_MAP[rawKey];
642
+ const value = this.getFilterValue(filterEvent.value);
643
+ const next = Object.assign({}, this.activeFilters);
644
+ if (this.isEmptyFilter(value)) {
645
+ delete next[serverKey];
646
+ }
647
+ else {
648
+ // normalize to string for API (trim)
649
+ next[serverKey] = typeof value === 'string' ? value.trim() : String(value);
650
+ }
651
+ this.activeFilters = next;
652
+ this.pagination.pageIndex = 0;
653
+ // quick fix for demo
654
+ if (this.activeFilters['upgradeStatus']) {
655
+ this.activeFilters['upgradeStatus'] = (_a = this.activeFilters['upgradeStatus']) === null || _a === void 0 ? void 0 : _a.toUpperCase();
656
+ }
657
+ this.getData(this.activeFilters);
658
+ }
659
+ /*onFilter(filterEvent: { key: string, value: any }) {
660
+ const {key, value} = filterEvent;
661
+
662
+ let filterValue: any;
663
+ if (value && value.value !== undefined) {
664
+ filterValue = value.value;
665
+ } else if (value && value.target) {
666
+ filterValue = value.target.value;
667
+ } else {
668
+ filterValue = value;
669
+ }
670
+
671
+ // Handle "All" option or empty values - remove the filter
672
+ if (filterValue === 'all' || !filterValue || filterValue === '') {
673
+ delete this.activeFilters[key];
674
+ } else {
675
+ this.activeFilters[key] = filterValue;
676
+ }
677
+
678
+ this.applyFilters();
679
+ }*/
680
+ setupCustomFilter() {
681
+ this.data.filterPredicate = (data, filter) => {
682
+ const filters = JSON.parse(filter || '{}');
683
+ for (const [key, value] of Object.entries(filters)) {
684
+ if (!value)
685
+ continue;
686
+ switch (key) {
687
+ case 'User':
688
+ const searchTerm = value.toLowerCase();
689
+ if (!data.userName.toLowerCase().includes(searchTerm)) {
690
+ return false;
691
+ }
692
+ break;
693
+ case 'Site':
694
+ if (data.siteName !== this.getSiteNameFromValue(value)) {
695
+ return false;
696
+ }
697
+ break;
698
+ case 'User Upgrade Status':
699
+ if (!this.matchesUpgradeStatus(data.upgradeStatus, value)) {
700
+ return false;
701
+ }
702
+ break;
703
+ }
704
+ }
705
+ return true;
706
+ };
707
+ }
708
+ applyFilters() {
709
+ this.data.filter = JSON.stringify(this.activeFilters);
710
+ }
711
+ get filteredDataCount() {
712
+ var _a, _b;
713
+ return ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.filteredData) === null || _b === void 0 ? void 0 : _b.length) || 0;
714
+ }
715
+ getSiteNameFromValue(value) {
716
+ // Since we're now using actual site names, just convert back from slug format
717
+ return value.split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
718
+ }
719
+ matchesUpgradeStatus(status, filterValue) {
720
+ // Handle direct status matching for cleaner implementation
721
+ return status.toLowerCase().replace(/\s+/g, '-') === filterValue.toLowerCase();
722
+ }
723
+ getStatusClass(status) {
724
+ switch (status.toLowerCase()) {
725
+ case 'ready':
726
+ return 'ready';
727
+ case 'not ready':
728
+ return 'not-ready';
729
+ case 'partial ready':
730
+ return 'partial-ready';
731
+ case 'completed':
732
+ return 'completed';
733
+ case 'failed':
734
+ return 'failed';
735
+ default:
736
+ return 'not-ready';
737
+ }
738
+ }
739
+ }
740
+ UserUpgradeDataTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
741
+ UserUpgradeDataTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UserUpgradeDataTableComponent, selector: "tk-user-upgrade-data-table", inputs: { host: "host", token: "token", customerId: "customerId" }, ngImport: i0, template: "<div *ngIf=\"dataPending\" class=\"overlay\">\r\n <mat-progress-spinner\r\n class=\"page-spinner\"\r\n mode=\"indeterminate\"\r\n [diameter]=\"70\"\r\n strokeWidth=\"3\"\r\n ></mat-progress-spinner>\r\n</div>\r\n\r\n<div id=\"userUpgradeDataTable\" class=\"wrapper\">\r\n <div class=\"user-upgrade-status-wrapper\">\r\n <tk-summary-card [description]=\"'Users are ready to upgrade'\" [value]=\"statusCounts['Ready']\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Users are not ready'\" [value]=\"statusCounts['Not Ready']\" [status]=\"'Not Ready'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Users failed to upgrade'\" [value]=\"statusCounts['Failed']\" [status]=\"'Failed'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Successfully upgraded'\" [value]=\"statusCounts['Completed']\" [status]=\"'Completed'\"></tk-summary-card>\r\n </div>\r\n <div class=\"table-action-panel\">\r\n <tk-table-filters *ngIf=\"filters.length > 0\" [filters]=\"filters\" (filter)=\"onFilter($event)\"></tk-table-filters>\r\n <div class=\"action-wrapper\">\r\n <span>{{filteredDataCount}} Users</span>\r\n <button\r\n mat-button\r\n color=\"primary\"\r\n class=\"upgrade-bulk-button\"\r\n [disabled]=\"selection.selected.length === 0\"\r\n (click)=\"upgradeSelectedUsers()\">\r\n Upgrade {{ selection.selected.length === 0 ? '' : '(' + selection.selected.length + ')' }}\r\n </button>\r\n </div>\r\n </div>\r\n <table mat-table [dataSource]=\"data\" class=\"user-upgrade-table\">\r\n\r\n <!-- Checkbox Column -->\r\n <ng-container matColumnDef=\"select\">\r\n <th mat-header-cell *matHeaderCellDef>\r\n <mat-checkbox\r\n (change)=\"$event ? masterToggle() : null\"\r\n [checked]=\"selection.hasValue() && isAllSelected()\"\r\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\r\n class=\"custom-checkbox\">\r\n </mat-checkbox>\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <mat-checkbox\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"$event ? selection.toggle(row) : null\"\r\n [checked]=\"selection.isSelected(row)\"\r\n [disabled]=\"STATUS_ENTRIES[row.upgradeStatus] !== 'Ready' || row.pending\"\r\n class=\"custom-checkbox\">\r\n </mat-checkbox>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- User Column -->\r\n <ng-container matColumnDef=\"user\">\r\n <th mat-header-cell *matHeaderCellDef>User</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"user-info\">\r\n <div class=\"user-name\">{{element.userName}}</div>\r\n <div class=\"user-email\">{{element.userName}}</div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Site Column -->\r\n <ng-container matColumnDef=\"site\">\r\n <th mat-header-cell *matHeaderCellDef>Site</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"site-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getSiteUpgradeStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{element.siteName}}</span>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Device Column -->\r\n <ng-container matColumnDef=\"device\">\r\n <th class=\"device-td\" mat-header-cell *matHeaderCellDef>Device</th>\r\n <td mat-cell *matCellDef=\"let element\" class=\"multi-dev-box\">\r\n <div *ngIf=\"element.showDevices\" class=\"device-list show-dev-list\">\r\n <div *ngFor=\"let device of element.devicesWithExtensions; let last = last\"\r\n class=\"device-item\"\r\n [class.no-border]=\"last\">\r\n <span class=\"device-indicator\" [ngClass]=\"{'device-indicator-ready': element.deviceStatus === 'READY'}\"></span>\r\n <span class=\"device-name\">{{ device.deviceName || device }}</span>\r\n <span class=\"device-model\">\r\n {{ device.extensions?.length ? 'Ext: ' + device.extensions.join(\", \") : 'No Extension' }}\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"device-info\">\r\n <div class=\"multiple-dev-link\" *ngIf=\"element.devicesWithExtensions?.length > 1; else oneDevice\">\r\n <div class=\"device-name-wrapper clickable\"\r\n (mouseenter)=\"onMultipleDevices(element)\"\r\n (mouseleave)=\"onMultipleDevices(element)\">\r\n\r\n <span class=\"device-name\">Multiple devices ></span>\r\n </div>\r\n </div>\r\n <ng-template #oneDevice>\r\n <div class=\"device-name-wrapper\">\r\n <span class=\"device-indicator\"></span>\r\n <span class=\"device-name\">{{element.devicesWithExtensions[0].deviceName}}</span>\r\n </div>\r\n <div class=\"device-model one-dev-extensions\">\r\n {{ element.devicesWithExtensions[0].extensions?.length ?\r\n 'Ext: ' + element.devicesWithExtensions[0].extensions?.join(\", \") : 'No Extension' }}\r\n </div>\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Dial Plan Status Column -->\r\n <ng-container matColumnDef=\"dialPlanStatus\">\r\n <th mat-header-cell *matHeaderCellDef>Dial Plan Status</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getStatusClass(element.dialPlanStatus)\"></span>\r\n <span [ngClass]=\"{'status-ready': element.dialPlanStatus === 'READY'}\">{{STATUS_ENTRIES[element.dialPlanStatus]}}</span>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Dependencies Column -->\r\n <ng-container matColumnDef=\"dependencies\">\r\n <th mat-header-cell *matHeaderCellDef>Dependencies</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <span *ngIf=\"DEPENDENCIES_STATUS[element.dependenciesStatus] === 'Dependencies found'\" class=\"dependencies-text\">{{DEPENDENCIES_STATUS[element.dependenciesStatus]}}</span>\r\n <span *ngIf=\"DEPENDENCIES_STATUS[element.dependenciesStatus] === 'No dependencies'\">\u2014</span>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- User Upgrade Status Column -->\r\n <ng-container matColumnDef=\"userUpgradeStatus\">\r\n <th mat-header-cell *matHeaderCellDef>User Upgrade Status</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"upgrade-status-cell\">\r\n <ng-container *ngIf=\"STATUS_ENTRIES[element.upgradeStatus] === 'Ready'; else statusBlock\">\r\n <button mat-button color=\"primary\" class=\"upgrade-button\" (click)=\"upgradeUser(element)\">Upgrade</button>\r\n </ng-container>\r\n <ng-template #statusBlock>\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{STATUS_ENTRIES[element.upgradeStatus]}}</span>\r\n </div>\r\n </ng-template>\r\n </div>\r\n\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"userUpgradeLoader\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td class=\"mat-progress-spinner-td\" mat-cell *matCellDef=\"let element\">\r\n\r\n <mat-progress-spinner\r\n *ngIf=\"element.pending\"\r\n class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\">\r\n </mat-progress-spinner>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"\r\n [class.selected-row]=\"selection.isSelected(row)\"></tr>\r\n </table>\r\n</div>\r\n\r\n<div class=\"app-pagination\">\r\n <mat-paginator\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pagination.pageSize\"\r\n [pageSizeOptions]=\"pagination.pageSizeOptions\"\r\n [pageIndex]=\"pagination.pageIndex\"\r\n (page)=\"pageEvent($event)\"\r\n showFirstLastButtons>\r\n </mat-paginator>\r\n\r\n <!--<div class=\"page-indexes-box\">\r\n <mat-paginator\r\n [id]=\"'commonPagination'\"\r\n [hidePageSize]=\"true\"\r\n [length]=\"pagination.total\"\r\n [pageIndex]=\"pagination.pageIndex\"\r\n [pageSize]=\"pagination.pageSize\"\r\n [pageSizeOptions]=\"pagination.pageSizeOptions\"\r\n (page)=\"pageEvent($event)\">\r\n </mat-paginator>\r\n </div>\r\n\r\n <div class=\"per-page-block\">\r\n <div class=\"item_per_page\">Items per page:</div>\r\n <div class=\"select-box select-page-size\">\r\n <mat-select (selectionChange)=\"changePerPageNumber($event)\" #page\r\n [id]=\"'commonPaginationSelect'\">\r\n <mat-option *ngFor=\"let option of pageSizeOptions; let i = index;\" [id]=\"'paginationSelectOpt_' + i\" [value]=\"option\">{{option}}</mat-option>\r\n </mat-select>\r\n </div>\r\n\r\n </div>-->\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap\";.app-pagination{display:flex;flex-direction:column;align-items:stretch}.app-pagination .page-indexes-box,.app-pagination .per-page-block{justify-self:center}.app-pagination mat-select{width:100px}.overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff6;z-index:200}.mat-progress-spinner{position:absolute;top:50%;left:50%;margin-top:-20px;margin-left:-25px;width:50px;height:40px;text-align:center;font-size:10px}.mat-progress-spinner-td{position:relative}#userUpgradeDataTable .flex-container{padding:0!important}.multiple-dev-link{margin:0 0 0 13px}:host ::ng-deep .mat-cell{border-bottom:1px solid #d6d6d6;font-family:Inter,sans-serif!important}:host ::ng-deep .mat-header-cell{border-bottom:1px solid #afafaf;font-family:Inter,sans-serif!important}:host ::ng-deep .progress-spinner-td{position:relative}:host ::ng-deep #userUpgradeDataTable .mat-progress-spinner-td .mat-progress-spinner{top:28%;left:0;margin:0}.wrapper{display:flex;flex-direction:column;gap:1rem}.user-upgrade-status-wrapper{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem;align-items:stretch}.user-upgrade-table{width:100%;background:white;border-radius:8px;overflow:hidden;font-size:14px}.user-upgrade-table .mat-header-row{font-size:12px;height:35px}.user-upgrade-table .mat-cell{border-bottom:1px solid #d6d6d6}.user-upgrade-table .mat-header-cell{border-bottom:1px solid #afafaf}.user-upgrade-table .mat-row{transition:background-color .2s ease}.user-upgrade-table .mat-row:hover{background-color:#f8f9fa}.user-upgrade-table .mat-row.selected-row{background-color:#08599c1a}.user-upgrade-table .user-info .user-name{font-weight:500;color:#212121}.user-upgrade-table .user-info .user-email{font-size:12px;color:#757575}.user-upgrade-table .site-info{display:flex;align-items:center;gap:8px}.user-upgrade-table .site-info .site-indicator{width:8px;height:8px;border-radius:50%;background-color:#737480}.user-upgrade-table .device-info .device-name-wrapper{display:flex;align-items:center;gap:5px}.user-upgrade-table .device-info .device-name-wrapper .device-name{font-weight:500;color:#212121}.user-upgrade-table .device-model{font-size:12px;color:#757575;display:block}.user-upgrade-table .one-dev-extensions{margin:0 0 0 13px}.user-upgrade-table .device-indicator{width:8px;height:8px;border-radius:50%;background-color:#f8cd00}.user-upgrade-table .device-indicator-ready{background-color:#1d805f}.user-upgrade-table .device-td{padding:0 0 0 13px}.user-upgrade-table .status-info{display:flex;align-items:center;gap:8px}.user-upgrade-table .status-info .status-indicator{width:8px;height:8px;border-radius:50%}.user-upgrade-table .status-info .status-indicator.ready{background-color:#1170cf}.user-upgrade-table .status-info .status-indicator.partial-ready{background-color:#f8cd00}.user-upgrade-table .status-info .status-indicator.not-ready{background-color:#9e9e9e}.user-upgrade-table .status-info .status-indicator.completed{background-color:#1d805f}.user-upgrade-table .status-info .status-indicator.failed{background-color:#f23933}.user-upgrade-table .dependencies-text{font-size:12px;background-color:#ffe9e9;padding:.25rem .5rem;border-radius:3px;color:#000}.user-upgrade-table .upgrade-status-cell{display:flex;align-items:center;justify-content:flex-start}.user-upgrade-table .upgrade-button{border-radius:20px!important;font-size:14px!important;font-style:normal!important;font-weight:400!important;height:32px!important;display:flex!important;align-items:center!important;justify-content:center!important;background-color:#fff!important;border:2px solid black!important;border-radius:1rem!important;color:#000!important}.user-upgrade-table .upgrade-button:hover{background-color:#000000ce!important;color:#fff!important}.user-upgrade-table .custom-checkbox .mdc-checkbox{padding:8px}.mat-checkbox-disabled{opacity:.5}.multi-dev-box{position:relative}.device-list{position:absolute;top:65%;left:0;min-width:200px;background:white;box-shadow:0 2px 8px #0000001a;padding:8px 0;margin-top:4px;border-radius:2px;opacity:0;transform:translateY(-10px);visibility:hidden;transition:all .3s ease;z-index:1000}.device-list.show-dev-list{opacity:1;transform:translateY(0);visibility:visible;pointer-events:auto}.clickable{cursor:pointer}.device-item{padding:12px 16px;border-bottom:1px solid #f5f5f5;cursor:pointer;transition:background-color .2s ease}.device-item:hover{background-color:#f9f9f9}.device-item.no-border{border-bottom:none}.device-item .device-name{font-size:14px;color:#333}.table-action-panel{width:100%;display:flex;justify-content:flex-start;gap:1rem}:host ::ng-deep .action-wrapper{display:flex;flex:1;align-items:center;justify-content:space-between;gap:1rem;color:#555}:host ::ng-deep .action-wrapper .mat-button .mat-button-wrapper{margin:0}.upgrade-bulk-button{border:1px solid #000!important;color:#fff!important;background:#000!important;border-radius:20px!important;padding:0 1rem!important;font-size:14px!important;font-style:normal!important;font-weight:400!important;height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important}.upgrade-bulk-button:hover{background-color:#212121!important}.upgrade-bulk-button:disabled{background-color:#888!important;color:#fff!important;cursor:not-allowed!important;border-color:#888!important;opacity:.25!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-checked .mat-checkbox-background{background-color:#1170cf!important;border-color:#00000080!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled):hover:not(.mat-checkbox-checked) .mat-checkbox-background{background-color:#0000004d!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-indeterminate .mat-checkbox-background{background-color:#1170cf!important;border-color:#00000080!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-indeterminate .mat-checkbox-background .mat-checkbox-checkmark{transform:scale(.75)}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-indeterminate .mat-checkbox-background .mat-checkbox-mixedmark{transform:scale(.75)}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox .mat-checkbox-background{border-color:#00000080!important;transition:background-color .2s,border-color .2s,box-shadow .2s}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox .mat-checkbox-background .mat-checkbox-checkmark{transform:scale(.75)}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled) .mat-checkbox-ripple .mat-ripple-element{background-color:#1170cf40}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).cdk-focused .mat-checkbox-ripple .mat-ripple-element{background-color:#1170cf59}.user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-background{border-color:#00000080!important;transition:background-color .2s,border-color .2s,box-shadow .2s;background-color:#1170cf!important}.user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-background .mat-checkbox-checkmark{transform:scale(.75)}.user-upgrade-table .mat-checkbox.mat-accent .mat-ripple-element{background-color:#08599c1a!important}.user-upgrade-table .mat-checkbox.mat-accent:focus .mat-checkbox-background{background-color:#08599c1a!important}.user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-frame{border-color:#00000080!important}.user-upgrade-table .mat-checkbox-checkmark{color:#fff!important;transform:scale(.75)}.user-upgrade-table .mat-checkbox-checkmark-path{stroke:#fff!important}.user-upgrade-table .mat-checkbox-mixedmark{border-color:#fff!important}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i2$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i4$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: SummaryCardComponent, selector: "tk-summary-card", inputs: ["value", "status", "description"] }, { kind: "component", type: TableFiltersComponent, selector: "tk-table-filters", inputs: ["filters"], outputs: ["filter"] }, { kind: "component", type: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i8.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }] });
742
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeDataTableComponent, decorators: [{
743
+ type: Component,
744
+ args: [{ selector: 'tk-user-upgrade-data-table', template: "<div *ngIf=\"dataPending\" class=\"overlay\">\r\n <mat-progress-spinner\r\n class=\"page-spinner\"\r\n mode=\"indeterminate\"\r\n [diameter]=\"70\"\r\n strokeWidth=\"3\"\r\n ></mat-progress-spinner>\r\n</div>\r\n\r\n<div id=\"userUpgradeDataTable\" class=\"wrapper\">\r\n <div class=\"user-upgrade-status-wrapper\">\r\n <tk-summary-card [description]=\"'Users are ready to upgrade'\" [value]=\"statusCounts['Ready']\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Users are not ready'\" [value]=\"statusCounts['Not Ready']\" [status]=\"'Not Ready'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Users failed to upgrade'\" [value]=\"statusCounts['Failed']\" [status]=\"'Failed'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Successfully upgraded'\" [value]=\"statusCounts['Completed']\" [status]=\"'Completed'\"></tk-summary-card>\r\n </div>\r\n <div class=\"table-action-panel\">\r\n <tk-table-filters *ngIf=\"filters.length > 0\" [filters]=\"filters\" (filter)=\"onFilter($event)\"></tk-table-filters>\r\n <div class=\"action-wrapper\">\r\n <span>{{filteredDataCount}} Users</span>\r\n <button\r\n mat-button\r\n color=\"primary\"\r\n class=\"upgrade-bulk-button\"\r\n [disabled]=\"selection.selected.length === 0\"\r\n (click)=\"upgradeSelectedUsers()\">\r\n Upgrade {{ selection.selected.length === 0 ? '' : '(' + selection.selected.length + ')' }}\r\n </button>\r\n </div>\r\n </div>\r\n <table mat-table [dataSource]=\"data\" class=\"user-upgrade-table\">\r\n\r\n <!-- Checkbox Column -->\r\n <ng-container matColumnDef=\"select\">\r\n <th mat-header-cell *matHeaderCellDef>\r\n <mat-checkbox\r\n (change)=\"$event ? masterToggle() : null\"\r\n [checked]=\"selection.hasValue() && isAllSelected()\"\r\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\r\n class=\"custom-checkbox\">\r\n </mat-checkbox>\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <mat-checkbox\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"$event ? selection.toggle(row) : null\"\r\n [checked]=\"selection.isSelected(row)\"\r\n [disabled]=\"STATUS_ENTRIES[row.upgradeStatus] !== 'Ready' || row.pending\"\r\n class=\"custom-checkbox\">\r\n </mat-checkbox>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- User Column -->\r\n <ng-container matColumnDef=\"user\">\r\n <th mat-header-cell *matHeaderCellDef>User</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"user-info\">\r\n <div class=\"user-name\">{{element.userName}}</div>\r\n <div class=\"user-email\">{{element.userName}}</div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Site Column -->\r\n <ng-container matColumnDef=\"site\">\r\n <th mat-header-cell *matHeaderCellDef>Site</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"site-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getSiteUpgradeStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{element.siteName}}</span>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Device Column -->\r\n <ng-container matColumnDef=\"device\">\r\n <th class=\"device-td\" mat-header-cell *matHeaderCellDef>Device</th>\r\n <td mat-cell *matCellDef=\"let element\" class=\"multi-dev-box\">\r\n <div *ngIf=\"element.showDevices\" class=\"device-list show-dev-list\">\r\n <div *ngFor=\"let device of element.devicesWithExtensions; let last = last\"\r\n class=\"device-item\"\r\n [class.no-border]=\"last\">\r\n <span class=\"device-indicator\" [ngClass]=\"{'device-indicator-ready': element.deviceStatus === 'READY'}\"></span>\r\n <span class=\"device-name\">{{ device.deviceName || device }}</span>\r\n <span class=\"device-model\">\r\n {{ device.extensions?.length ? 'Ext: ' + device.extensions.join(\", \") : 'No Extension' }}\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"device-info\">\r\n <div class=\"multiple-dev-link\" *ngIf=\"element.devicesWithExtensions?.length > 1; else oneDevice\">\r\n <div class=\"device-name-wrapper clickable\"\r\n (mouseenter)=\"onMultipleDevices(element)\"\r\n (mouseleave)=\"onMultipleDevices(element)\">\r\n\r\n <span class=\"device-name\">Multiple devices ></span>\r\n </div>\r\n </div>\r\n <ng-template #oneDevice>\r\n <div class=\"device-name-wrapper\">\r\n <span class=\"device-indicator\"></span>\r\n <span class=\"device-name\">{{element.devicesWithExtensions[0].deviceName}}</span>\r\n </div>\r\n <div class=\"device-model one-dev-extensions\">\r\n {{ element.devicesWithExtensions[0].extensions?.length ?\r\n 'Ext: ' + element.devicesWithExtensions[0].extensions?.join(\", \") : 'No Extension' }}\r\n </div>\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Dial Plan Status Column -->\r\n <ng-container matColumnDef=\"dialPlanStatus\">\r\n <th mat-header-cell *matHeaderCellDef>Dial Plan Status</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getStatusClass(element.dialPlanStatus)\"></span>\r\n <span [ngClass]=\"{'status-ready': element.dialPlanStatus === 'READY'}\">{{STATUS_ENTRIES[element.dialPlanStatus]}}</span>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Dependencies Column -->\r\n <ng-container matColumnDef=\"dependencies\">\r\n <th mat-header-cell *matHeaderCellDef>Dependencies</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <span *ngIf=\"DEPENDENCIES_STATUS[element.dependenciesStatus] === 'Dependencies found'\" class=\"dependencies-text\">{{DEPENDENCIES_STATUS[element.dependenciesStatus]}}</span>\r\n <span *ngIf=\"DEPENDENCIES_STATUS[element.dependenciesStatus] === 'No dependencies'\">\u2014</span>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- User Upgrade Status Column -->\r\n <ng-container matColumnDef=\"userUpgradeStatus\">\r\n <th mat-header-cell *matHeaderCellDef>User Upgrade Status</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"upgrade-status-cell\">\r\n <ng-container *ngIf=\"STATUS_ENTRIES[element.upgradeStatus] === 'Ready'; else statusBlock\">\r\n <button mat-button color=\"primary\" class=\"upgrade-button\" (click)=\"upgradeUser(element)\">Upgrade</button>\r\n </ng-container>\r\n <ng-template #statusBlock>\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{STATUS_ENTRIES[element.upgradeStatus]}}</span>\r\n </div>\r\n </ng-template>\r\n </div>\r\n\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"userUpgradeLoader\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td class=\"mat-progress-spinner-td\" mat-cell *matCellDef=\"let element\">\r\n\r\n <mat-progress-spinner\r\n *ngIf=\"element.pending\"\r\n class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\">\r\n </mat-progress-spinner>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"\r\n [class.selected-row]=\"selection.isSelected(row)\"></tr>\r\n </table>\r\n</div>\r\n\r\n<div class=\"app-pagination\">\r\n <mat-paginator\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pagination.pageSize\"\r\n [pageSizeOptions]=\"pagination.pageSizeOptions\"\r\n [pageIndex]=\"pagination.pageIndex\"\r\n (page)=\"pageEvent($event)\"\r\n showFirstLastButtons>\r\n </mat-paginator>\r\n\r\n <!--<div class=\"page-indexes-box\">\r\n <mat-paginator\r\n [id]=\"'commonPagination'\"\r\n [hidePageSize]=\"true\"\r\n [length]=\"pagination.total\"\r\n [pageIndex]=\"pagination.pageIndex\"\r\n [pageSize]=\"pagination.pageSize\"\r\n [pageSizeOptions]=\"pagination.pageSizeOptions\"\r\n (page)=\"pageEvent($event)\">\r\n </mat-paginator>\r\n </div>\r\n\r\n <div class=\"per-page-block\">\r\n <div class=\"item_per_page\">Items per page:</div>\r\n <div class=\"select-box select-page-size\">\r\n <mat-select (selectionChange)=\"changePerPageNumber($event)\" #page\r\n [id]=\"'commonPaginationSelect'\">\r\n <mat-option *ngFor=\"let option of pageSizeOptions; let i = index;\" [id]=\"'paginationSelectOpt_' + i\" [value]=\"option\">{{option}}</mat-option>\r\n </mat-select>\r\n </div>\r\n\r\n </div>-->\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap\";.app-pagination{display:flex;flex-direction:column;align-items:stretch}.app-pagination .page-indexes-box,.app-pagination .per-page-block{justify-self:center}.app-pagination mat-select{width:100px}.overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff6;z-index:200}.mat-progress-spinner{position:absolute;top:50%;left:50%;margin-top:-20px;margin-left:-25px;width:50px;height:40px;text-align:center;font-size:10px}.mat-progress-spinner-td{position:relative}#userUpgradeDataTable .flex-container{padding:0!important}.multiple-dev-link{margin:0 0 0 13px}:host ::ng-deep .mat-cell{border-bottom:1px solid #d6d6d6;font-family:Inter,sans-serif!important}:host ::ng-deep .mat-header-cell{border-bottom:1px solid #afafaf;font-family:Inter,sans-serif!important}:host ::ng-deep .progress-spinner-td{position:relative}:host ::ng-deep #userUpgradeDataTable .mat-progress-spinner-td .mat-progress-spinner{top:28%;left:0;margin:0}.wrapper{display:flex;flex-direction:column;gap:1rem}.user-upgrade-status-wrapper{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem;align-items:stretch}.user-upgrade-table{width:100%;background:white;border-radius:8px;overflow:hidden;font-size:14px}.user-upgrade-table .mat-header-row{font-size:12px;height:35px}.user-upgrade-table .mat-cell{border-bottom:1px solid #d6d6d6}.user-upgrade-table .mat-header-cell{border-bottom:1px solid #afafaf}.user-upgrade-table .mat-row{transition:background-color .2s ease}.user-upgrade-table .mat-row:hover{background-color:#f8f9fa}.user-upgrade-table .mat-row.selected-row{background-color:#08599c1a}.user-upgrade-table .user-info .user-name{font-weight:500;color:#212121}.user-upgrade-table .user-info .user-email{font-size:12px;color:#757575}.user-upgrade-table .site-info{display:flex;align-items:center;gap:8px}.user-upgrade-table .site-info .site-indicator{width:8px;height:8px;border-radius:50%;background-color:#737480}.user-upgrade-table .device-info .device-name-wrapper{display:flex;align-items:center;gap:5px}.user-upgrade-table .device-info .device-name-wrapper .device-name{font-weight:500;color:#212121}.user-upgrade-table .device-model{font-size:12px;color:#757575;display:block}.user-upgrade-table .one-dev-extensions{margin:0 0 0 13px}.user-upgrade-table .device-indicator{width:8px;height:8px;border-radius:50%;background-color:#f8cd00}.user-upgrade-table .device-indicator-ready{background-color:#1d805f}.user-upgrade-table .device-td{padding:0 0 0 13px}.user-upgrade-table .status-info{display:flex;align-items:center;gap:8px}.user-upgrade-table .status-info .status-indicator{width:8px;height:8px;border-radius:50%}.user-upgrade-table .status-info .status-indicator.ready{background-color:#1170cf}.user-upgrade-table .status-info .status-indicator.partial-ready{background-color:#f8cd00}.user-upgrade-table .status-info .status-indicator.not-ready{background-color:#9e9e9e}.user-upgrade-table .status-info .status-indicator.completed{background-color:#1d805f}.user-upgrade-table .status-info .status-indicator.failed{background-color:#f23933}.user-upgrade-table .dependencies-text{font-size:12px;background-color:#ffe9e9;padding:.25rem .5rem;border-radius:3px;color:#000}.user-upgrade-table .upgrade-status-cell{display:flex;align-items:center;justify-content:flex-start}.user-upgrade-table .upgrade-button{border-radius:20px!important;font-size:14px!important;font-style:normal!important;font-weight:400!important;height:32px!important;display:flex!important;align-items:center!important;justify-content:center!important;background-color:#fff!important;border:2px solid black!important;border-radius:1rem!important;color:#000!important}.user-upgrade-table .upgrade-button:hover{background-color:#000000ce!important;color:#fff!important}.user-upgrade-table .custom-checkbox .mdc-checkbox{padding:8px}.mat-checkbox-disabled{opacity:.5}.multi-dev-box{position:relative}.device-list{position:absolute;top:65%;left:0;min-width:200px;background:white;box-shadow:0 2px 8px #0000001a;padding:8px 0;margin-top:4px;border-radius:2px;opacity:0;transform:translateY(-10px);visibility:hidden;transition:all .3s ease;z-index:1000}.device-list.show-dev-list{opacity:1;transform:translateY(0);visibility:visible;pointer-events:auto}.clickable{cursor:pointer}.device-item{padding:12px 16px;border-bottom:1px solid #f5f5f5;cursor:pointer;transition:background-color .2s ease}.device-item:hover{background-color:#f9f9f9}.device-item.no-border{border-bottom:none}.device-item .device-name{font-size:14px;color:#333}.table-action-panel{width:100%;display:flex;justify-content:flex-start;gap:1rem}:host ::ng-deep .action-wrapper{display:flex;flex:1;align-items:center;justify-content:space-between;gap:1rem;color:#555}:host ::ng-deep .action-wrapper .mat-button .mat-button-wrapper{margin:0}.upgrade-bulk-button{border:1px solid #000!important;color:#fff!important;background:#000!important;border-radius:20px!important;padding:0 1rem!important;font-size:14px!important;font-style:normal!important;font-weight:400!important;height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important}.upgrade-bulk-button:hover{background-color:#212121!important}.upgrade-bulk-button:disabled{background-color:#888!important;color:#fff!important;cursor:not-allowed!important;border-color:#888!important;opacity:.25!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-checked .mat-checkbox-background{background-color:#1170cf!important;border-color:#00000080!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled):hover:not(.mat-checkbox-checked) .mat-checkbox-background{background-color:#0000004d!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-indeterminate .mat-checkbox-background{background-color:#1170cf!important;border-color:#00000080!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-indeterminate .mat-checkbox-background .mat-checkbox-checkmark{transform:scale(.75)}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-indeterminate .mat-checkbox-background .mat-checkbox-mixedmark{transform:scale(.75)}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox .mat-checkbox-background{border-color:#00000080!important;transition:background-color .2s,border-color .2s,box-shadow .2s}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox .mat-checkbox-background .mat-checkbox-checkmark{transform:scale(.75)}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled) .mat-checkbox-ripple .mat-ripple-element{background-color:#1170cf40}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).cdk-focused .mat-checkbox-ripple .mat-ripple-element{background-color:#1170cf59}.user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-background{border-color:#00000080!important;transition:background-color .2s,border-color .2s,box-shadow .2s;background-color:#1170cf!important}.user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-background .mat-checkbox-checkmark{transform:scale(.75)}.user-upgrade-table .mat-checkbox.mat-accent .mat-ripple-element{background-color:#08599c1a!important}.user-upgrade-table .mat-checkbox.mat-accent:focus .mat-checkbox-background{background-color:#08599c1a!important}.user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-frame{border-color:#00000080!important}.user-upgrade-table .mat-checkbox-checkmark{color:#fff!important;transform:scale(.75)}.user-upgrade-table .mat-checkbox-checkmark-path{stroke:#fff!important}.user-upgrade-table .mat-checkbox-mixedmark{border-color:#fff!important}\n"] }]
745
+ }], propDecorators: { host: [{
746
+ type: Input
747
+ }], token: [{
748
+ type: Input
749
+ }], customerId: [{
750
+ type: Input
751
+ }] } });
752
+ class PaginationDataDto {
753
+ constructor(data) {
754
+ this.pageSizeOptions = (data === null || data === void 0 ? void 0 : data.pageSizeOptions) || PAGINATION_DATA_DEFAULTS.OPTIONS;
755
+ this.pageSize = (data === null || data === void 0 ? void 0 : data.pageSize) || PAGINATION_DATA_DEFAULTS.SIZE;
756
+ this.pageIndex = (data === null || data === void 0 ? void 0 : data.pageIndex) || PAGINATION_DATA_DEFAULTS.PAGE_INDEX;
757
+ this.total = (data === null || data === void 0 ? void 0 : data.total) || 0;
758
+ }
759
+ }
760
+ const PAGINATION_DATA_DEFAULTS = {
761
+ OPTIONS: [10, 20, 50, 100],
762
+ SIZE: 10,
763
+ PAGE_INDEX: 0
764
+ };
765
+
766
+ class CardComponent {
767
+ }
768
+ CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
769
+ CardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CardComponent, selector: "tk-card", inputs: { title: "title" }, ngImport: i0, template: "<article class=\"card\">\r\n <header class=\"card__header\">\r\n <h2>{{ title }}</h2>\r\n <!--<div class=\"card__menu-button\">\r\n <img width=\"18\" src=\"assets/icons/menu_icon.png\" alt=\"Menu Icon\">\r\n </div>-->\r\n </header>\r\n <div class=\"card__content\">\r\n <ng-content select=\"card-content\"></ng-content>\r\n </div>\r\n</article>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";:host{display:block;height:100%;box-sizing:border-box}.card{font-family:Inter,Inter,sans-serif;background-color:#fff;border-radius:1rem;padding:2rem;border:1px solid hsla(0,0%,0%,.2);min-width:300px;max-width:100%;height:100%;display:flex;flex-direction:column;box-sizing:border-box;gap:2.5rem}.card__header{position:relative;display:flex;align-items:center;justify-content:space-between}.card__header h2{font-size:16px;margin:0}.card__header .card__menu-button{position:relative;display:flex;align-items:center}.card__content{display:flex;flex-direction:column;gap:2.5rem;flex-grow:1}\n"] });
770
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardComponent, decorators: [{
771
+ type: Component,
772
+ args: [{ selector: 'tk-card', template: "<article class=\"card\">\r\n <header class=\"card__header\">\r\n <h2>{{ title }}</h2>\r\n <!--<div class=\"card__menu-button\">\r\n <img width=\"18\" src=\"assets/icons/menu_icon.png\" alt=\"Menu Icon\">\r\n </div>-->\r\n </header>\r\n <div class=\"card__content\">\r\n <ng-content select=\"card-content\"></ng-content>\r\n </div>\r\n</article>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";:host{display:block;height:100%;box-sizing:border-box}.card{font-family:Inter,Inter,sans-serif;background-color:#fff;border-radius:1rem;padding:2rem;border:1px solid hsla(0,0%,0%,.2);min-width:300px;max-width:100%;height:100%;display:flex;flex-direction:column;box-sizing:border-box;gap:2.5rem}.card__header{position:relative;display:flex;align-items:center;justify-content:space-between}.card__header h2{font-size:16px;margin:0}.card__header .card__menu-button{position:relative;display:flex;align-items:center}.card__content{display:flex;flex-direction:column;gap:2.5rem;flex-grow:1}\n"] }]
773
+ }], propDecorators: { title: [{
774
+ type: Input
775
+ }] } });
776
+
777
+ class MaterialModule {
778
+ }
779
+ MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
780
+ MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [MatProgressBarModule,
781
+ MatTooltipModule,
782
+ MatTableModule,
783
+ MatCheckboxModule,
784
+ MatButtonModule,
785
+ MatIconModule,
786
+ MatFormFieldModule,
787
+ MatInputModule,
788
+ MatSelectModule], exports: [MatProgressBarModule,
789
+ MatTooltipModule,
790
+ MatTableModule,
791
+ MatCheckboxModule,
792
+ MatButtonModule,
793
+ MatIconModule,
794
+ MatFormFieldModule,
795
+ MatInputModule,
796
+ MatSelectModule] });
797
+ MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [MatProgressBarModule,
798
+ MatTooltipModule,
799
+ MatTableModule,
800
+ MatCheckboxModule,
801
+ MatButtonModule,
802
+ MatIconModule,
803
+ MatFormFieldModule,
804
+ MatInputModule,
805
+ MatSelectModule, MatProgressBarModule,
806
+ MatTooltipModule,
807
+ MatTableModule,
808
+ MatCheckboxModule,
809
+ MatButtonModule,
810
+ MatIconModule,
811
+ MatFormFieldModule,
812
+ MatInputModule,
813
+ MatSelectModule] });
814
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, decorators: [{
815
+ type: NgModule,
816
+ args: [{
817
+ imports: [
818
+ MatProgressBarModule,
819
+ MatTooltipModule,
820
+ MatTableModule,
821
+ MatCheckboxModule,
822
+ MatButtonModule,
823
+ MatIconModule,
824
+ MatFormFieldModule,
825
+ MatInputModule,
826
+ MatSelectModule
827
+ ],
828
+ exports: [
829
+ MatProgressBarModule,
830
+ MatTooltipModule,
831
+ MatTableModule,
832
+ MatCheckboxModule,
833
+ MatButtonModule,
834
+ MatIconModule,
835
+ MatFormFieldModule,
836
+ MatInputModule,
837
+ MatSelectModule
838
+ ]
839
+ }]
840
+ }] });
841
+
842
+ class StatCardComponent {
843
+ ngOnInit() {
844
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
845
+ if (this.type === 'user') {
846
+ this.stats = {
847
+ id: (_a = this.readinessStats) === null || _a === void 0 ? void 0 : _a.id,
848
+ customerId: (_b = this.readinessStats) === null || _b === void 0 ? void 0 : _b.customerId,
849
+ total: (_c = this.readinessStats) === null || _c === void 0 ? void 0 : _c['totalUsers'],
850
+ totalReady: (_d = this.readinessStats) === null || _d === void 0 ? void 0 : _d['totalReadyUsers'],
851
+ totalUpgraded: (_e = this.readinessStats) === null || _e === void 0 ? void 0 : _e['totalUpgradedUsers'],
852
+ pendingActivation: (_f = this.readinessStats) === null || _f === void 0 ? void 0 : _f['pendingActivation'],
853
+ };
854
+ }
855
+ else {
856
+ this.stats = {
857
+ id: (_g = this.readinessStats) === null || _g === void 0 ? void 0 : _g.id,
858
+ customerId: (_h = this.readinessStats) === null || _h === void 0 ? void 0 : _h.customerId,
859
+ total: (_j = this.readinessStats) === null || _j === void 0 ? void 0 : _j['totalSites'],
860
+ totalReady: (_k = this.readinessStats) === null || _k === void 0 ? void 0 : _k['totalReadySites'],
861
+ totalUpgraded: (_l = this.readinessStats) === null || _l === void 0 ? void 0 : _l['totalUpgradedSites'],
862
+ };
863
+ }
864
+ }
865
+ get readyPercentage() {
866
+ var _a, _b, _c, _d, _e;
867
+ if (this.upgradeStatus === 'already' && this.type === 'user') {
868
+ return Math.ceil(1 / ((_a = this.stats) === null || _a === void 0 ? void 0 : _a.total) * 100);
869
+ }
870
+ else if (this.upgradeStatus === 'already' && this.type === 'site') {
871
+ return Math.ceil(((_b = this.stats) === null || _b === void 0 ? void 0 : _b.totalUpgraded) / ((_c = this.stats) === null || _c === void 0 ? void 0 : _c.total) * 100);
872
+ }
873
+ else
874
+ return Math.ceil(((_d = this.stats) === null || _d === void 0 ? void 0 : _d.totalReady) / ((_e = this.stats) === null || _e === void 0 ? void 0 : _e.total) * 100);
875
+ }
876
+ get upgradedPercentage() {
877
+ var _a, _b, _c, _d, _e, _f;
878
+ if (this.upgradeStatus === 'already' && this.type === 'user') {
879
+ return 0;
880
+ }
881
+ else if (this.upgradeStatus === 'already' && this.type === 'site') {
882
+ return ((_a = this.stats) === null || _a === void 0 ? void 0 : _a.totalReady) == 0 || ((_b = this.stats) === null || _b === void 0 ? void 0 : _b.total) == 0 ? 0 : Math.ceil(((_c = this.stats) === null || _c === void 0 ? void 0 : _c.totalReady) / ((_d = this.stats) === null || _d === void 0 ? void 0 : _d.total) * 100);
883
+ }
884
+ else
885
+ return Math.ceil(((_e = this.stats) === null || _e === void 0 ? void 0 : _e.totalUpgraded) / ((_f = this.stats) === null || _f === void 0 ? void 0 : _f.total) * 100);
886
+ }
887
+ get pendingActivationPercentage() {
888
+ var _a, _b;
889
+ return (Math.ceil(((_a = this.stats) === null || _a === void 0 ? void 0 : _a.pendingActivation) / ((_b = this.stats) === null || _b === void 0 ? void 0 : _b.pendingActivation) * 100)) || 0;
890
+ }
891
+ }
892
+ StatCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
893
+ StatCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: StatCardComponent, selector: "tk-stat-card", inputs: { title: "title", type: "type", readinessStats: "readinessStats", upgradeStatus: "upgradeStatus" }, ngImport: i0, template: "<tk-card [title]=\"title\">\r\n <ng-container ngProjectAs=\"card-content\">\r\n <div class=\"card__content-info\">\r\n <div class=\"card__content-wrapper\">\r\n <img width=\"42\" [src]=\"'assets/icons/' + type + '.png'\" alt=\"\" />\r\n <div class=\"card__content-text\">\r\n <ng-container *ngIf=\"upgradeStatus === 'ready' || upgradeStatus === 'already'\">\r\n <div class=\"card__content-label\">\r\n {{ upgradeStatus === 'ready' ? stats?.totalReady : stats?.totalUpgraded }}\r\n {{ type === 'user' ? 'Users' : 'Sites' }}</div>\r\n <div class=\"card__content-description\">{{ upgradeStatus === 'ready' ? 'Ready to Upgrade' : 'Already Upgraded' }}</div>\r\n </ng-container>\r\n <ng-container *ngIf=\"upgradeStatus === 'pending'\">\r\n <div class=\"card__content-label\">\r\n {{ stats?.pendingActivation }}\r\n {{ 'Users' }}</div>\r\n <div class=\"card__content-description\">{{ 'Ready to activate' }}</div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card__content-progress-wrapper\">\r\n <ng-container *ngIf=\"upgradeStatus === 'ready' || upgradeStatus === 'already'\">\r\n <div class=\"card__content-progress\">\r\n <div class=\"card__content-progress-label\">\r\n <span>{{ readyPercentage }}%</span>\r\n <span>From all {{ stats?.total }} {{ type === 'user' ? 'users' : 'sites' }}</span>\r\n </div>\r\n <div class=\"card__content-progress-bar\">\r\n <div\r\n class=\"card__content-progress-bar-fill ready\"\r\n [class.already]=\"upgradeStatus === 'already'\"\r\n [style.width.%]=\"readyPercentage\"\r\n ></div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"upgradeStatus === 'already'\" class=\"card__content-progress\">\r\n <div class=\"card__content-progress-label\">\r\n <span>{{ upgradedPercentage }}%</span>\r\n <span>From all {{ stats?.totalReady }} ready {{ type === 'user' ? 'users' : 'sites' }}</span>\r\n </div>\r\n <div class=\"card__content-progress-bar\">\r\n <div\r\n class=\"card__content-progress-bar-fill ready\"\r\n [class.already]=\"upgradeStatus === 'already'\"\r\n [style.width.%]=\"upgradedPercentage\"\r\n ></div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"upgradeStatus === 'pending'\">\r\n <div class=\"card__content-progress\">\r\n <div class=\"card__content-progress-label\">\r\n <span>{{ pendingActivationPercentage }}%</span>\r\n <span>From all {{ stats?.pendingActivation }} {{ 'upgraded users' }}</span>\r\n </div>\r\n <div class=\"card__content-progress-bar\" style=\"overflow: hidden;\">\r\n <div\r\n class=\"card__content-progress-bar-fill ready\"\r\n [class.pending-activation]=\"upgradeStatus === 'pending'\"\r\n [style.width.%]=\"pendingActivationPercentage\"\r\n ></div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n</tk-card>\r\n", styles: [":host{display:block;height:100%;box-sizing:border-box}.card__content-info{display:flex;align-items:center;justify-content:space-between}.card__content-text{display:flex;flex-direction:column;gap:.25rem}.card__content-text .card__content-label{font-size:20px}.card__content-text .card__content-description{font-size:12px}.card__content-wrapper{display:flex;align-items:center;justify-content:center;gap:1rem}.card__content-wrapper:first-child{display:flex;gap:.5rem}.card__content-progress-wrapper{display:flex;flex-direction:column;gap:1rem}.card__content-progress{display:flex;flex-direction:column;gap:.25rem;font-size:14px}.card__content-progress .card__content-progress-label{display:flex;align-items:center;justify-content:space-between;padding:.05rem}.card__content-progress .card__content-progress-bar{background-color:#ededed;border-radius:10rem}.card__content-progress .card__content-progress-bar .card__content-progress-bar-fill{height:10px;border-radius:inherit}.ready{background-color:#0a78cc}.already{background-color:#16a693}.pending-activation{background-color:#ddbf45}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CardComponent, selector: "tk-card", inputs: ["title"] }] });
894
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatCardComponent, decorators: [{
895
+ type: Component,
896
+ args: [{ selector: 'tk-stat-card', template: "<tk-card [title]=\"title\">\r\n <ng-container ngProjectAs=\"card-content\">\r\n <div class=\"card__content-info\">\r\n <div class=\"card__content-wrapper\">\r\n <img width=\"42\" [src]=\"'assets/icons/' + type + '.png'\" alt=\"\" />\r\n <div class=\"card__content-text\">\r\n <ng-container *ngIf=\"upgradeStatus === 'ready' || upgradeStatus === 'already'\">\r\n <div class=\"card__content-label\">\r\n {{ upgradeStatus === 'ready' ? stats?.totalReady : stats?.totalUpgraded }}\r\n {{ type === 'user' ? 'Users' : 'Sites' }}</div>\r\n <div class=\"card__content-description\">{{ upgradeStatus === 'ready' ? 'Ready to Upgrade' : 'Already Upgraded' }}</div>\r\n </ng-container>\r\n <ng-container *ngIf=\"upgradeStatus === 'pending'\">\r\n <div class=\"card__content-label\">\r\n {{ stats?.pendingActivation }}\r\n {{ 'Users' }}</div>\r\n <div class=\"card__content-description\">{{ 'Ready to activate' }}</div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card__content-progress-wrapper\">\r\n <ng-container *ngIf=\"upgradeStatus === 'ready' || upgradeStatus === 'already'\">\r\n <div class=\"card__content-progress\">\r\n <div class=\"card__content-progress-label\">\r\n <span>{{ readyPercentage }}%</span>\r\n <span>From all {{ stats?.total }} {{ type === 'user' ? 'users' : 'sites' }}</span>\r\n </div>\r\n <div class=\"card__content-progress-bar\">\r\n <div\r\n class=\"card__content-progress-bar-fill ready\"\r\n [class.already]=\"upgradeStatus === 'already'\"\r\n [style.width.%]=\"readyPercentage\"\r\n ></div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"upgradeStatus === 'already'\" class=\"card__content-progress\">\r\n <div class=\"card__content-progress-label\">\r\n <span>{{ upgradedPercentage }}%</span>\r\n <span>From all {{ stats?.totalReady }} ready {{ type === 'user' ? 'users' : 'sites' }}</span>\r\n </div>\r\n <div class=\"card__content-progress-bar\">\r\n <div\r\n class=\"card__content-progress-bar-fill ready\"\r\n [class.already]=\"upgradeStatus === 'already'\"\r\n [style.width.%]=\"upgradedPercentage\"\r\n ></div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"upgradeStatus === 'pending'\">\r\n <div class=\"card__content-progress\">\r\n <div class=\"card__content-progress-label\">\r\n <span>{{ pendingActivationPercentage }}%</span>\r\n <span>From all {{ stats?.pendingActivation }} {{ 'upgraded users' }}</span>\r\n </div>\r\n <div class=\"card__content-progress-bar\" style=\"overflow: hidden;\">\r\n <div\r\n class=\"card__content-progress-bar-fill ready\"\r\n [class.pending-activation]=\"upgradeStatus === 'pending'\"\r\n [style.width.%]=\"pendingActivationPercentage\"\r\n ></div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n</tk-card>\r\n", styles: [":host{display:block;height:100%;box-sizing:border-box}.card__content-info{display:flex;align-items:center;justify-content:space-between}.card__content-text{display:flex;flex-direction:column;gap:.25rem}.card__content-text .card__content-label{font-size:20px}.card__content-text .card__content-description{font-size:12px}.card__content-wrapper{display:flex;align-items:center;justify-content:center;gap:1rem}.card__content-wrapper:first-child{display:flex;gap:.5rem}.card__content-progress-wrapper{display:flex;flex-direction:column;gap:1rem}.card__content-progress{display:flex;flex-direction:column;gap:.25rem;font-size:14px}.card__content-progress .card__content-progress-label{display:flex;align-items:center;justify-content:space-between;padding:.05rem}.card__content-progress .card__content-progress-bar{background-color:#ededed;border-radius:10rem}.card__content-progress .card__content-progress-bar .card__content-progress-bar-fill{height:10px;border-radius:inherit}.ready{background-color:#0a78cc}.already{background-color:#16a693}.pending-activation{background-color:#ddbf45}\n"] }]
897
+ }], propDecorators: { title: [{
898
+ type: Input
899
+ }], type: [{
900
+ type: Input
901
+ }], readinessStats: [{
902
+ type: Input
903
+ }], upgradeStatus: [{
904
+ type: Input
905
+ }] } });
906
+
907
+ class StatusListCardComponent {
908
+ constructor() {
909
+ this.displayLink = false;
910
+ this.displayStatsDialog = false;
911
+ }
912
+ onMouseOverItemText(event, label) {
913
+ this.hoveredItemLabel = label;
914
+ this.displayLink = true;
915
+ }
916
+ onMouseLeaveItemText(event, label) {
917
+ this.hoveredItemLabel = label;
918
+ this.displayLink = false;
919
+ }
920
+ onMouseOverItemStats(event, label) {
921
+ event.stopPropagation();
922
+ this.hoveredItemLabel = label;
923
+ this.displayStatsDialog = true;
924
+ }
925
+ onMouseLeaveItemStats(event, label) {
926
+ this.hoveredItemLabel = label;
927
+ this.displayStatsDialog = false;
928
+ }
929
+ trackByFn(index) {
930
+ return index;
931
+ }
932
+ }
933
+ StatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
934
+ StatusListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: StatusListCardComponent, selector: "tk-status-list-card", inputs: { title: "title", items: "items" }, ngImport: i0, template: "<tk-card [title]=\"title\">\r\n <ng-container ngProjectAs=\"card-content\">\r\n <div class=\"card__list-wrapper\">\r\n <div class=\"card__list-item\" *ngFor=\"let item of items; trackBy: trackByFn\">\r\n <img *ngIf=\"item.status\" src=\"{{ 'assets/icons/check_icon.png' }}\" alt=\"\">\r\n <img *ngIf=\"!item.status\" src=\"{{ 'assets/icons/warning_icon.png' }}\" alt=\"\">\r\n <div \r\n class=\"card__item-info\"\r\n (mouseover)=\"onMouseOverItemText($event, item.label)\"\r\n (mouseleave)=\"onMouseLeaveItemText($event, item.label)\">\r\n <div \r\n class=\"card__item-text-wrapper\">\r\n <div class=\"card__item-text\"\r\n [matTooltip]=\"item.tooltip\"\r\n [matTooltipPosition]=\"'above'\">\r\n <div class=\"card__item-label\">\r\n {{ item.label }}\r\n </div>\r\n <div class=\"card__item-description\">\r\n {{ item.description }}\r\n </div>\r\n </div>\r\n <div\r\n class=\"card__item-link-wrapper\"\r\n *ngIf=\"item.link.href && hoveredItemLabel === item.label && displayLink\"\r\n [matTooltip]=\"item.link.tooltip\"\r\n [matTooltipPosition]=\"'right'\">\r\n <mat-icon>open_in_new</mat-icon>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"title.includes('Site')\"\r\n class=\"card__item-stats\"\r\n (mouseover)=\"onMouseOverItemStats($event, item.label)\"\r\n (mouseleave)=\"onMouseLeaveItemStats($event, item.label)\">\r\n <div class=\"card__item-numbers\">\r\n {{ item.value }}/{{ item.totalSites }}\r\n </div>\r\n <div class=\"card__item-numbers-description\">\r\n Ready/All\r\n </div>\r\n\r\n <div class=\"card__item-stats-dialog\" [class.fade-in]=\"hoveredItemLabel === item.label && displayStatsDialog\">\r\n <div class=\"card__item-stats-dialog-item\">\r\n <span class=\"name\">Atlanta</span>\r\n <div class=\"status\">\r\n <span class=\"indicator\"></span>\r\n <span class=\"status-text\">Ready</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</tk-card>", styles: [":host{color:#333;display:block;height:100%;box-sizing:border-box}.card__list-wrapper{display:flex;flex-direction:column;gap:.5rem}.card__list-item{display:flex;align-items:center;gap:1rem;transition:background-color .3s ease-in-out;padding:.75rem;border-radius:1rem}.card__list-item:hover{background-color:#f9f9f9}.card__item-info{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%}.card__item-text-wrapper{display:flex;align-items:center;justify-content:center;gap:1rem;cursor:help}.card__item-text{display:flex;flex-direction:column;gap:.05rem}.card__item-text .card__item-label{font-size:18px}.card__item-text .card__item-description{font-size:14px}::ng-deep .mat-tooltip{background:linear-gradient(90deg,rgb(0,0,0) 0%,rgb(73,73,73) 100%)!important;color:#fff!important;font-size:14px!important;border-radius:1rem!important;padding:.75rem!important;line-height:1.25rem}.card__item-link-wrapper{display:flex;align-items:center;justify-content:center;padding:.4rem;border-radius:.45rem;background-color:#eefaff;background:linear-gradient(90deg,#41a5cc,#95ea8b);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;color:transparent;cursor:pointer;transition:all .3s ease-in-out}.card__item-link-wrapper:hover{background:linear-gradient(90deg,#41a5cc,#95ea8b);color:#fff;-webkit-background-clip:unset;-webkit-text-fill-color:unset;background-clip:unset;transform:scale(.95)}.card__item-stats{right:0;position:absolute;text-align:right;cursor:pointer}.card__item-stats .card__item-numbers{font-size:28px}.card__item-stats .card__item-numbers-description{font-size:14px}.card__item-stats-dialog{pointer-events:none;z-index:9999;display:flex;flex-direction:column;gap:.5rem;position:absolute;top:50%;background-color:#fff;padding:1rem;border-radius:.5rem;box-shadow:0 4px 6px #0000001a;min-width:200px;max-width:300px;border:1px solid #ddd;opacity:0;transform:translate(-100%) translateY(-50%) scale(.95);transition:opacity .3s ease-in-out}.card__item-stats-dialog-item{display:flex;justify-content:space-between;align-items:center;gap:2.5rem}.card__item-stats-dialog-item span{font-size:18px;color:#555}.card__item-stats-dialog-item .status{display:flex;align-items:center;gap:8px}.card__item-stats-dialog-item .status-text{font-weight:600;color:#777;font-size:14px}.card__item-stats-dialog-item .indicator{display:inline-block;width:8px;height:8px;border-radius:50%;background-color:#1170cf}.fade-in{animation:fadeIn .3s forwards}@keyframes fadeIn{to{opacity:1;transform:translate(calc(-100% - 1.5rem)) translateY(-50%) scale(1)}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: CardComponent, selector: "tk-card", inputs: ["title"] }] });
935
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatusListCardComponent, decorators: [{
936
+ type: Component,
937
+ args: [{ selector: "tk-status-list-card", template: "<tk-card [title]=\"title\">\r\n <ng-container ngProjectAs=\"card-content\">\r\n <div class=\"card__list-wrapper\">\r\n <div class=\"card__list-item\" *ngFor=\"let item of items; trackBy: trackByFn\">\r\n <img *ngIf=\"item.status\" src=\"{{ 'assets/icons/check_icon.png' }}\" alt=\"\">\r\n <img *ngIf=\"!item.status\" src=\"{{ 'assets/icons/warning_icon.png' }}\" alt=\"\">\r\n <div \r\n class=\"card__item-info\"\r\n (mouseover)=\"onMouseOverItemText($event, item.label)\"\r\n (mouseleave)=\"onMouseLeaveItemText($event, item.label)\">\r\n <div \r\n class=\"card__item-text-wrapper\">\r\n <div class=\"card__item-text\"\r\n [matTooltip]=\"item.tooltip\"\r\n [matTooltipPosition]=\"'above'\">\r\n <div class=\"card__item-label\">\r\n {{ item.label }}\r\n </div>\r\n <div class=\"card__item-description\">\r\n {{ item.description }}\r\n </div>\r\n </div>\r\n <div\r\n class=\"card__item-link-wrapper\"\r\n *ngIf=\"item.link.href && hoveredItemLabel === item.label && displayLink\"\r\n [matTooltip]=\"item.link.tooltip\"\r\n [matTooltipPosition]=\"'right'\">\r\n <mat-icon>open_in_new</mat-icon>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"title.includes('Site')\"\r\n class=\"card__item-stats\"\r\n (mouseover)=\"onMouseOverItemStats($event, item.label)\"\r\n (mouseleave)=\"onMouseLeaveItemStats($event, item.label)\">\r\n <div class=\"card__item-numbers\">\r\n {{ item.value }}/{{ item.totalSites }}\r\n </div>\r\n <div class=\"card__item-numbers-description\">\r\n Ready/All\r\n </div>\r\n\r\n <div class=\"card__item-stats-dialog\" [class.fade-in]=\"hoveredItemLabel === item.label && displayStatsDialog\">\r\n <div class=\"card__item-stats-dialog-item\">\r\n <span class=\"name\">Atlanta</span>\r\n <div class=\"status\">\r\n <span class=\"indicator\"></span>\r\n <span class=\"status-text\">Ready</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</tk-card>", styles: [":host{color:#333;display:block;height:100%;box-sizing:border-box}.card__list-wrapper{display:flex;flex-direction:column;gap:.5rem}.card__list-item{display:flex;align-items:center;gap:1rem;transition:background-color .3s ease-in-out;padding:.75rem;border-radius:1rem}.card__list-item:hover{background-color:#f9f9f9}.card__item-info{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%}.card__item-text-wrapper{display:flex;align-items:center;justify-content:center;gap:1rem;cursor:help}.card__item-text{display:flex;flex-direction:column;gap:.05rem}.card__item-text .card__item-label{font-size:18px}.card__item-text .card__item-description{font-size:14px}::ng-deep .mat-tooltip{background:linear-gradient(90deg,rgb(0,0,0) 0%,rgb(73,73,73) 100%)!important;color:#fff!important;font-size:14px!important;border-radius:1rem!important;padding:.75rem!important;line-height:1.25rem}.card__item-link-wrapper{display:flex;align-items:center;justify-content:center;padding:.4rem;border-radius:.45rem;background-color:#eefaff;background:linear-gradient(90deg,#41a5cc,#95ea8b);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;color:transparent;cursor:pointer;transition:all .3s ease-in-out}.card__item-link-wrapper:hover{background:linear-gradient(90deg,#41a5cc,#95ea8b);color:#fff;-webkit-background-clip:unset;-webkit-text-fill-color:unset;background-clip:unset;transform:scale(.95)}.card__item-stats{right:0;position:absolute;text-align:right;cursor:pointer}.card__item-stats .card__item-numbers{font-size:28px}.card__item-stats .card__item-numbers-description{font-size:14px}.card__item-stats-dialog{pointer-events:none;z-index:9999;display:flex;flex-direction:column;gap:.5rem;position:absolute;top:50%;background-color:#fff;padding:1rem;border-radius:.5rem;box-shadow:0 4px 6px #0000001a;min-width:200px;max-width:300px;border:1px solid #ddd;opacity:0;transform:translate(-100%) translateY(-50%) scale(.95);transition:opacity .3s ease-in-out}.card__item-stats-dialog-item{display:flex;justify-content:space-between;align-items:center;gap:2.5rem}.card__item-stats-dialog-item span{font-size:18px;color:#555}.card__item-stats-dialog-item .status{display:flex;align-items:center;gap:8px}.card__item-stats-dialog-item .status-text{font-weight:600;color:#777;font-size:14px}.card__item-stats-dialog-item .indicator{display:inline-block;width:8px;height:8px;border-radius:50%;background-color:#1170cf}.fade-in{animation:fadeIn .3s forwards}@keyframes fadeIn{to{opacity:1;transform:translate(calc(-100% - 1.5rem)) translateY(-50%) scale(1)}}\n"] }]
938
+ }], propDecorators: { title: [{
939
+ type: Input
940
+ }], items: [{
941
+ type: Input
942
+ }] } });
943
+
944
+ class ChartCardComponent {
945
+ ngOnInit() {
946
+ this.initChartOptions();
947
+ }
948
+ initChartOptions() {
949
+ if (this.totalUpgraded === 0)
950
+ this.totalNotUpgraded = 100;
951
+ this.chartOptions = {
952
+ series: [this.totalUpgraded, this.totalNotUpgraded],
953
+ chart: {
954
+ type: "donut",
955
+ height: 250
956
+ },
957
+ labels: ["MT", "DI"],
958
+ colors: ["#808080", "#16A693"],
959
+ legend: {
960
+ position: "right",
961
+ offsetY: 0,
962
+ fontSize: "14px",
963
+ // markers: {
964
+ // size: 16,
965
+ // strokeWidth: 0,
966
+ // shape: 'circle'
967
+ // },
968
+ itemMargin: {
969
+ horizontal: 20,
970
+ vertical: 2
971
+ },
972
+ formatter: (seriesName, opts) => {
973
+ const percentage = this.roundPercentage((opts.w.globals.series[opts.seriesIndex] / (opts.w.globals.series[0] + opts.w.globals.series[1])) * 100);
974
+ return seriesName + " " + percentage + "%";
975
+ }
976
+ },
977
+ plotOptions: {
978
+ pie: {
979
+ donut: {
980
+ size: "75%"
981
+ }
982
+ }
983
+ },
984
+ dataLabels: {
985
+ enabled: false
986
+ }
987
+ };
988
+ }
989
+ roundPercentage(value) {
990
+ return Number((Math.round(value * 100) / 100).toFixed(1));
991
+ }
992
+ }
993
+ ChartCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
994
+ ChartCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartCardComponent, selector: "tk-chart-card", inputs: { title: "title", totalUpgraded: "totalUpgraded", totalNotUpgraded: "totalNotUpgraded" }, ngImport: i0, template: "<tk-card [title]=\"title\">\r\n <ng-container ngProjectAs=\"card-content\">\r\n <div class=\"chart-container\">\r\n <apx-chart\r\n [series]=\"chartOptions.series\"\r\n [chart]=\"chartOptions.chart\"\r\n [labels]=\"chartOptions.labels\"\r\n [colors]=\"chartOptions.colors\"\r\n [legend]=\"chartOptions.legend\"\r\n [plotOptions]=\"chartOptions.plotOptions\"\r\n [dataLabels]=\"chartOptions.dataLabels\">\r\n </apx-chart>\r\n </div>\r\n </ng-container>\r\n</tk-card>", styles: [":host{width:100%;display:block;height:100%;box-sizing:border-box}.chart-container{width:100%;height:220px;display:flex;justify-content:flex-start;align-items:center;padding:0}.chart-container apx-chart{width:100%;max-width:400px}:host ::ng-deep .apexcharts-legend{display:flex!important;flex-direction:column!important;justify-content:center!important}:host ::ng-deep .apexcharts-legend .apexcharts-legend-marker{border-radius:2px!important}:host ::ng-deep .apexcharts-legend .apexcharts-legend-text{font-weight:500!important;color:#333!important}\n"], dependencies: [{ kind: "component", type: i1$2.ChartComponent, selector: "apx-chart", inputs: ["chart", "annotations", "colors", "dataLabels", "series", "stroke", "labels", "legend", "markers", "noData", "fill", "tooltip", "plotOptions", "responsive", "xaxis", "yaxis", "forecastDataPoints", "grid", "states", "title", "subtitle", "theme", "autoUpdateSeries"] }, { kind: "component", type: CardComponent, selector: "tk-card", inputs: ["title"] }] });
995
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartCardComponent, decorators: [{
996
+ type: Component,
997
+ args: [{ selector: 'tk-chart-card', template: "<tk-card [title]=\"title\">\r\n <ng-container ngProjectAs=\"card-content\">\r\n <div class=\"chart-container\">\r\n <apx-chart\r\n [series]=\"chartOptions.series\"\r\n [chart]=\"chartOptions.chart\"\r\n [labels]=\"chartOptions.labels\"\r\n [colors]=\"chartOptions.colors\"\r\n [legend]=\"chartOptions.legend\"\r\n [plotOptions]=\"chartOptions.plotOptions\"\r\n [dataLabels]=\"chartOptions.dataLabels\">\r\n </apx-chart>\r\n </div>\r\n </ng-container>\r\n</tk-card>", styles: [":host{width:100%;display:block;height:100%;box-sizing:border-box}.chart-container{width:100%;height:220px;display:flex;justify-content:flex-start;align-items:center;padding:0}.chart-container apx-chart{width:100%;max-width:400px}:host ::ng-deep .apexcharts-legend{display:flex!important;flex-direction:column!important;justify-content:center!important}:host ::ng-deep .apexcharts-legend .apexcharts-legend-marker{border-radius:2px!important}:host ::ng-deep .apexcharts-legend .apexcharts-legend-text{font-weight:500!important;color:#333!important}\n"] }]
998
+ }], propDecorators: { title: [{
999
+ type: Input
1000
+ }], totalUpgraded: [{
1001
+ type: Input
1002
+ }], totalNotUpgraded: [{
1003
+ type: Input
1004
+ }] } });
1005
+
1006
+ class SharedModule {
1007
+ }
1008
+ SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1009
+ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, declarations: [CardComponent,
1010
+ StatCardComponent,
1011
+ StatusListCardComponent,
1012
+ ChartCardComponent,
1013
+ SummaryCardComponent,
1014
+ TableFiltersComponent], imports: [CommonModule,
1015
+ MaterialModule,
1016
+ NgApexchartsModule,
1017
+ HttpClientModule], exports: [MaterialModule,
1018
+ CardComponent,
1019
+ StatCardComponent,
1020
+ StatusListCardComponent,
1021
+ ChartCardComponent,
1022
+ SummaryCardComponent,
1023
+ TableFiltersComponent] });
1024
+ SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, imports: [CommonModule,
1025
+ MaterialModule,
1026
+ NgApexchartsModule,
1027
+ HttpClientModule, MaterialModule] });
1028
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, decorators: [{
1029
+ type: NgModule,
1030
+ args: [{
1031
+ declarations: [
1032
+ CardComponent,
1033
+ StatCardComponent,
1034
+ StatusListCardComponent,
1035
+ ChartCardComponent,
1036
+ SummaryCardComponent,
1037
+ TableFiltersComponent
1038
+ ],
1039
+ imports: [
1040
+ CommonModule,
1041
+ MaterialModule,
1042
+ NgApexchartsModule,
1043
+ HttpClientModule
1044
+ ],
1045
+ exports: [
1046
+ MaterialModule,
1047
+ CardComponent,
1048
+ StatCardComponent,
1049
+ StatusListCardComponent,
1050
+ ChartCardComponent,
1051
+ SummaryCardComponent,
1052
+ TableFiltersComponent
1053
+ ]
1054
+ }]
1055
+ }] });
1056
+
1057
+ class UserUpgradeModule {
1058
+ }
1059
+ UserUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1060
+ UserUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, declarations: [UserUpgradeDataTableComponent], imports: [CommonModule,
1061
+ SharedModule,
1062
+ MatTableModule,
1063
+ MatButtonModule,
1064
+ MatCheckboxModule,
1065
+ MatSelectModule,
1066
+ MatProgressSpinnerModule,
1067
+ MatOptionModule,
1068
+ MatPaginatorModule,
1069
+ MatSelectModule], exports: [UserUpgradeDataTableComponent] });
1070
+ UserUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, imports: [CommonModule,
1071
+ SharedModule,
1072
+ MatTableModule,
1073
+ MatButtonModule,
1074
+ MatCheckboxModule,
1075
+ MatSelectModule,
1076
+ MatProgressSpinnerModule,
1077
+ MatOptionModule,
1078
+ MatPaginatorModule,
1079
+ MatSelectModule] });
1080
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, decorators: [{
1081
+ type: NgModule,
1082
+ args: [{
1083
+ declarations: [
1084
+ UserUpgradeDataTableComponent
1085
+ ],
1086
+ imports: [
1087
+ CommonModule,
1088
+ SharedModule,
1089
+ MatTableModule,
1090
+ MatButtonModule,
1091
+ MatCheckboxModule,
1092
+ MatSelectModule,
1093
+ MatProgressSpinnerModule,
1094
+ MatOptionModule,
1095
+ MatPaginatorModule,
1096
+ MatSelectModule
1097
+ ],
1098
+ exports: [
1099
+ UserUpgradeDataTableComponent
1100
+ ]
1101
+ }]
1102
+ }] });
1103
+
1104
+ class SiteUpgradeService {
1105
+ constructor() {
1106
+ this.siteUpdateStatusEvent = new Subject();
1107
+ this.apiService = inject(APIService);
1108
+ }
1109
+ getSiteUpgradeStatusCounts() {
1110
+ return this.apiService.fetch(API$1.SITE_UPGRADE.GET_SITES_UPGRADE_STATUS_COUNTS.replace(':customerId', this.customerId));
1111
+ }
1112
+ getSiteUpgradeRecords() {
1113
+ return this.apiService.fetch(API$1.SITE_UPGRADE.GET_SITES_UPGRADE_DATA.replace(':customerId', this.customerId)).pipe(map((resp) => {
1114
+ return resp.content.map((record) => ({
1115
+ siteId: record.siteId,
1116
+ siteName: record.siteName,
1117
+ totalUsers: record.totalUsers,
1118
+ totalReadyUsers: record.readyUsers,
1119
+ totalNotReadyUsers: record.notReadyUsers,
1120
+ totalUpgradedUsers: record.totalUpgradedUsers,
1121
+ totalFailedUsers: record.totalFailedToUpgradeUsers,
1122
+ locationMapping: record.locationMappingStatus,
1123
+ PSTNTrunk: record.pstnTrunkStatus,
1124
+ // upgradeStatus: record.siteUpgradeStatus // return after demo 22.03.26 and delete the next line
1125
+ upgradeStatus: record.siteUpgradeStatus === 'READY' ? 'COMPLETED' : record.siteUpgradeStatus,
1126
+ }));
1127
+ }));
1128
+ }
1129
+ getBatchSites() {
1130
+ return this.apiService.fetch(API$1.SITE_UPGRADE.GET_BATCH_SITES.replace(':customerId', this.customerId));
1131
+ }
1132
+ collectSiteCache(siteId, migrationType = 'webex') {
1133
+ return this.apiService.post(API$1.SITE_UPGRADE.WEBEX_CACHE_COLLECTION
1134
+ .replace(':siteId', String(siteId))
1135
+ .replace(':migrationType', migrationType), {});
1136
+ }
1137
+ migrateSite(siteId, batchId) {
1138
+ return this.apiService.post(API$1.SITE_UPGRADE.MIGRATE_SITE.replace(':siteId', String(siteId)), {}, { batchId: batchId || '' });
1139
+ }
1140
+ getBatchesStatuses(batchIds) {
1141
+ return this.apiService.post(API$1.SITE_UPGRADE.WEBEX_BATCH_STATUS
1142
+ .replace(':customerId', this.customerId), batchIds, false)
1143
+ .pipe(map((result) => {
1144
+ this.siteUpdateStatusEvent.next(result);
1145
+ return result;
1146
+ }));
1147
+ }
1148
+ getSiteListForCollectAndBuildWebexCache() {
1149
+ return this.apiService.fetch(API$1.SITE_UPGRADE.WEBEX_CACHE_COLLECTION_SITE_LIST.replace(':customerId', this.customerId))
1150
+ .pipe(map((siteSet) => this.siteSetForCollectAndBuildWebexCache = siteSet));
1151
+ }
1152
+ getCUCMListCurrentlyInCollectAndBuildWebexCache() {
1153
+ return this.apiService.fetch(API$1.SITE_UPGRADE.WEBEX_CACHE_COLLECTION_CUCM_LIST.replace(':customerId', this.customerId))
1154
+ .pipe(map((cucmSet) => this.cucmSetInCollectAndBuildWebexCache = cucmSet));
1155
+ }
1156
+ getMigrationBatchesStatuses() {
1157
+ return this.apiService.fetch(API$1.SITE_UPGRADE.BATCH_STATUS.replace(':customerId', this.customerId));
1158
+ /*.pipe(map((result: BatchStatusDTO[]) => {
1159
+ this.siteUpdateStatusEvent.next(result);
1160
+ return result;
1161
+ }))*/
1162
+ }
1163
+ getMigratedSiteStatus(pageSize, page) {
1164
+ return this.apiService.fetchPagination(API$1.SITE_UPGRADE.MIGRATION_STATUS.replace(':customerId', this.customerId), pageSize, page, {}, false);
1165
+ }
1166
+ // TODO: Impl the site upgrade logic here
1167
+ upgradeSite(site) {
1168
+ const customerId = site.customerId;
1169
+ const siteId = site.siteId;
1170
+ }
1171
+ }
1172
+ SiteUpgradeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1173
+ SiteUpgradeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, providedIn: 'root' });
1174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, decorators: [{
1175
+ type: Injectable,
1176
+ args: [{
1177
+ providedIn: 'root'
1178
+ }]
1179
+ }] });
1180
+ const STATUSES = {
1181
+ COMPLETED: 'Completed',
1182
+ NEW: 'New',
1183
+ IN_PROGRESS: 'In Progress',
1184
+ FAILED_IN_ERROR: 'Failed-in error',
1185
+ FAILED: 'Failed',
1186
+ FAILED_WITH_RETRY: 'Failed with Retry',
1187
+ COLLECTING: 'Collecting',
1188
+ FAILED_COLLECTING: 'Failed on collecting',
1189
+ WAITING_FOR_REVIEW: 'Waiting for review'
1190
+ };
1191
+
1192
+ class ProgressBarComponent {
1193
+ constructor() {
1194
+ this.isAvailable = false;
1195
+ this._progress = 0;
1196
+ this.color = 'grey';
1197
+ }
1198
+ set progress(value) {
1199
+ this._progress = Math.max(0, Math.min(100, Number(value) || 0));
1200
+ this.setColor(this._progress);
1201
+ }
1202
+ get progress() { return this._progress; }
1203
+ setColor(p) {
1204
+ if (p <= 20)
1205
+ this.color = 'red';
1206
+ else if (p <= 40)
1207
+ this.color = 'yellow';
1208
+ else if (p <= 60)
1209
+ this.color = 'darkblue';
1210
+ else if (p <= 80)
1211
+ this.color = 'lightblue';
1212
+ else
1213
+ this.color = 'green';
1214
+ }
1215
+ }
1216
+ ProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1217
+ ProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ProgressBarComponent, selector: "app-progress-bar", inputs: { isAvailable: "isAvailable", progress: "progress" }, ngImport: i0, template: "<!--<div *ngIf=\"isAvailable\" class=\"progress-bar-container\">\n <div class=\"progress-bar {{color}}\" [ngStyle]=\"{'width': progress + '%'}\"></div>\n</div>-->\n<div *ngIf=\"isAvailable\" class=\"progress-bar-container\">\n <div class=\"progress-bar\" [ngClass]=\"color\" [style.width.%]=\"progress\"></div>\n</div>\n", styles: [".progress-bar-container{background-color:#e5e5e5;border-radius:20px;width:100%}.progress-bar{height:7px;width:0;border-radius:15px;text-align:center}.progress-percent{font-weight:600}.progress-bar.green{background-color:#94d326}.progress-bar.red{background-color:#ed4364}.progress-bar.yellow{background-color:#fed200}.progress-bar{height:8px;border-radius:4px;transition:width .25s ease,background-color .25s ease}.progress-bar.red{background-color:#e53935}.progress-bar.yellow{background-color:#fbc02d}.progress-bar.darkblue{background-color:#1e3a8a}.progress-bar.lightblue{background-color:#60a5fa}.progress-bar.green{background-color:#22c55e}.progress-bar.grey{background-color:#9ca3af}.progress-bar.darkblue{background-color:#2c355d}.progress-bar.lightblue{background-color:#2299d9}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1218
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProgressBarComponent, decorators: [{
1219
+ type: Component,
1220
+ args: [{ selector: 'app-progress-bar', template: "<!--<div *ngIf=\"isAvailable\" class=\"progress-bar-container\">\n <div class=\"progress-bar {{color}}\" [ngStyle]=\"{'width': progress + '%'}\"></div>\n</div>-->\n<div *ngIf=\"isAvailable\" class=\"progress-bar-container\">\n <div class=\"progress-bar\" [ngClass]=\"color\" [style.width.%]=\"progress\"></div>\n</div>\n", styles: [".progress-bar-container{background-color:#e5e5e5;border-radius:20px;width:100%}.progress-bar{height:7px;width:0;border-radius:15px;text-align:center}.progress-percent{font-weight:600}.progress-bar.green{background-color:#94d326}.progress-bar.red{background-color:#ed4364}.progress-bar.yellow{background-color:#fed200}.progress-bar{height:8px;border-radius:4px;transition:width .25s ease,background-color .25s ease}.progress-bar.red{background-color:#e53935}.progress-bar.yellow{background-color:#fbc02d}.progress-bar.darkblue{background-color:#1e3a8a}.progress-bar.lightblue{background-color:#60a5fa}.progress-bar.green{background-color:#22c55e}.progress-bar.grey{background-color:#9ca3af}.progress-bar.darkblue{background-color:#2c355d}.progress-bar.lightblue{background-color:#2299d9}\n"] }]
1221
+ }], propDecorators: { isAvailable: [{
1222
+ type: Input
1223
+ }], progress: [{
1224
+ type: Input
1225
+ }] } });
1226
+
1227
+ const MAX_INTEGER = 2147483647;
1228
+ class SiteUpgradeDataTableComponent {
1229
+ constructor() {
1230
+ this.siteUpgradeService = inject(SiteUpgradeService);
1231
+ this.apiService = inject(APIService);
1232
+ this.destroy$ = new Subject();
1233
+ this.STATUS_ENTRIES = STATUS_ENTRIES;
1234
+ this.dataPending = false;
1235
+ this.displayedColumns = ['site', 'ready users', 'upgraded users', 'location mapping', 'pstn trunk', 'site upgrade status', 'progressBar', 'actions', 'userUpgradeLoader'];
1236
+ this.selection = new SelectionModel(true, []);
1237
+ this.filters = [];
1238
+ this.activeFilters = {};
1239
+ this.subscriptions = new Subscription();
1240
+ this.statusCounts = {};
1241
+ }
1242
+ ngOnInit() {
1243
+ this.dataPending = true;
1244
+ this.apiService.token = this.token;
1245
+ this.apiService.apiUrl = this.host;
1246
+ this.siteUpgradeService.customerId = this.customerId;
1247
+ const subsc1 = forkJoin([
1248
+ this.siteUpgradeService.getSiteUpgradeRecords(),
1249
+ this.siteUpgradeService.getMigratedSiteStatus(MAX_INTEGER, 0),
1250
+ this.siteUpgradeService.getSiteListForCollectAndBuildWebexCache(),
1251
+ this.siteUpgradeService.getCUCMListCurrentlyInCollectAndBuildWebexCache(),
1252
+ this.siteUpgradeService.getBatchSites()
1253
+ ]).pipe(takeUntil(this.destroy$))
1254
+ .subscribe((results) => {
1255
+ var _a, _b, _c, _d;
1256
+ const records = results[0].map(site => (Object.assign(Object.assign({}, site), { siteId: Number(site.siteId) })));
1257
+ this.data = new MatTableDataSource(records);
1258
+ this.dataPending = false;
1259
+ this.setupCustomFilter();
1260
+ this.initializeFilters(records);
1261
+ this.setMigratedStatus(results[1]);
1262
+ if (((_a = this.data) === null || _a === void 0 ? void 0 : _a.data.length) && ((_b = results[2]) === null || _b === void 0 ? void 0 : _b.length)) {
1263
+ this.initCollectProgress(results[2]);
1264
+ }
1265
+ if (((_c = this.data) === null || _c === void 0 ? void 0 : _c.data.length) && ((_d = results[4]) === null || _d === void 0 ? void 0 : _d.length)) {
1266
+ this.setBatchIdToSites(results[4]);
1267
+ }
1268
+ });
1269
+ this.subscriptions.add(subsc1);
1270
+ const subsc2 = this.siteUpgradeService.getSiteUpgradeStatusCounts()
1271
+ .pipe(takeUntil(this.destroy$))
1272
+ .subscribe((statusCounts) => {
1273
+ // this.statusCounts['Ready'] = statusCounts['READY'] || 0; // return after demo 22.03.26 and delete next line
1274
+ this.statusCounts['Ready'] = 0;
1275
+ this.statusCounts['Not Ready'] = statusCounts['NOT_READY'] || 0;
1276
+ // this.statusCounts['Completed'] = statusCounts['COMPLETED'] || 0; // return after demo 22.03.26 and delete next line
1277
+ this.statusCounts['Completed'] = 1;
1278
+ this.statusCounts['Failed'] = statusCounts['FAILED'] || 0;
1279
+ });
1280
+ this.subscriptions.add(subsc2);
1281
+ const subsc3 = this.siteUpgradeService.siteUpdateStatusEvent
1282
+ .subscribe((updatedStatuses) => {
1283
+ this.handleCheckBatchStatusResponse(updatedStatuses);
1284
+ });
1285
+ this.subscriptions.add(subsc3);
1286
+ }
1287
+ onSiteMigration(site) {
1288
+ site.pending = true;
1289
+ site.isProgressBarAvailable = true;
1290
+ site.isMigrationInProgress = true;
1291
+ const subsc = this.siteUpgradeService.migrateSite(String(site.siteId), String(site.batchId))
1292
+ .pipe(takeUntil(this.destroy$))
1293
+ .subscribe((migrationFormId) => {
1294
+ site.migrationFormId = migrationFormId;
1295
+ site.progress = 1;
1296
+ this.runMigrationProgress(site);
1297
+ });
1298
+ this.subscriptions.add(subsc);
1299
+ }
1300
+ runMigrationProgress(site) {
1301
+ this.updateMigrationProgress(site);
1302
+ site.interval = setInterval(() => {
1303
+ this.updateMigrationProgress(site);
1304
+ }, 10000);
1305
+ }
1306
+ updateMigrationProgress(site) {
1307
+ if (!site || !site.isMigrationInProgress) {
1308
+ return;
1309
+ }
1310
+ this.siteUpgradeService.getMigrationBatchesStatuses()
1311
+ .subscribe((statuses) => {
1312
+ if (statuses === null || statuses === void 0 ? void 0 : statuses.length) {
1313
+ statuses.forEach((statusItem) => {
1314
+ const ind = this.getSiteIndex(statusItem.id);
1315
+ if (ind > -1) {
1316
+ this.data.data[ind].progress = statusItem.progress;
1317
+ this.data.data[ind].status = statusItem.status;
1318
+ if (statusItem.status !== 'In Progress') {
1319
+ this.data.data[ind].pending = false;
1320
+ this.data.data[ind].isMigrationInProgress = false;
1321
+ this.data.data[ind].isProgressBarAvailable = false;
1322
+ }
1323
+ }
1324
+ });
1325
+ if (statuses.filter(statusItem => statusItem.status === 'In Progress').length < 1) {
1326
+ this.data.data.forEach(site => {
1327
+ site.pending = false;
1328
+ site.isMigrationInProgress = false;
1329
+ site.isProgressBarAvailable = false;
1330
+ });
1331
+ }
1332
+ }
1333
+ }, () => {
1334
+ this.resetMigrationProgress(site, 'FAILED');
1335
+ });
1336
+ }
1337
+ resetMigrationProgress(site, status) {
1338
+ site.isMigrationInProgress = false;
1339
+ site.pending = false;
1340
+ site.isProgressBarAvailable = false;
1341
+ if (site.interval) {
1342
+ clearInterval(site.interval);
1343
+ }
1344
+ if (status) {
1345
+ site.status = status;
1346
+ }
1347
+ }
1348
+ onCollect(site) {
1349
+ site.pending = true;
1350
+ site.status = STATUSES.COLLECTING;
1351
+ // const ind =
1352
+ const subscription = this.siteUpgradeService.collectSiteCache(Number(site.siteId), 'webex')
1353
+ .subscribe({
1354
+ error: () => site.pending = false
1355
+ });
1356
+ this.subscriptions.add(subscription);
1357
+ /*setTimeout(() => {
1358
+ this.runBatchCheckStatus();
1359
+ }, 700);*/
1360
+ setTimeout(() => {
1361
+ this.initCollectInterval(site);
1362
+ }, 700);
1363
+ }
1364
+ initCollectInterval(site) {
1365
+ if (!site.interval && !site.initPending) {
1366
+ site.initPending = true;
1367
+ this.getCUCMListAlreadyInCollectWebexCache(site);
1368
+ this.getSiteListForCollectAndBuildWebexCache(site);
1369
+ site.interval = setInterval(() => {
1370
+ this.getCUCMListAlreadyInCollectWebexCache(site);
1371
+ this.getSiteListForCollectAndBuildWebexCache(site);
1372
+ }, 10000);
1373
+ }
1374
+ }
1375
+ getSiteListForCollectAndBuildWebexCache(site) {
1376
+ this.siteUpgradeService.getSiteListForCollectAndBuildWebexCache()
1377
+ .pipe(takeUntil(this.destroy$))
1378
+ .subscribe((siteSet) => {
1379
+ if (!siteSet || !siteSet.length) {
1380
+ site.pending = false;
1381
+ this.removeInterval(site);
1382
+ site.isCollected = true;
1383
+ }
1384
+ }, () => {
1385
+ site.pending = false;
1386
+ this.removeInterval(site);
1387
+ });
1388
+ }
1389
+ removeInterval(site) {
1390
+ if (site.interval) {
1391
+ clearInterval(site.interval);
1392
+ }
1393
+ }
1394
+ handleBatchCUCMAlreadyInCollectCache() {
1395
+ this.data.data.forEach(site => {
1396
+ var _a, _b;
1397
+ site.isCUCMInCollectCache =
1398
+ (_b = (_a = this.siteUpgradeService) === null || _a === void 0 ? void 0 : _a.cucmSetInCollectAndBuildWebexCache) === null || _b === void 0 ? void 0 : _b.includes(Number(site.sourceId));
1399
+ });
1400
+ }
1401
+ getCUCMListAlreadyInCollectWebexCache(site) {
1402
+ this.siteUpgradeService.getCUCMListCurrentlyInCollectAndBuildWebexCache()
1403
+ .pipe(takeUntil(this.destroy$))
1404
+ .pipe(map$1((cucmList) => {
1405
+ this.handleBatchCUCMAlreadyInCollectCache();
1406
+ if (!cucmList || !cucmList.length) {
1407
+ site.pending = false;
1408
+ this.removeInterval(site);
1409
+ site.isCollected = true;
1410
+ }
1411
+ return cucmList;
1412
+ })).subscribe({
1413
+ error: () => {
1414
+ site.pending = false;
1415
+ site.initPending = true;
1416
+ this.removeInterval(site);
1417
+ }
1418
+ });
1419
+ }
1420
+ checkBatchStatus(batchIds) {
1421
+ const subsc = this.siteUpgradeService.getBatchesStatuses(batchIds)
1422
+ .pipe(takeUntil(this.destroy$), catchError$1(() => {
1423
+ clearInterval(this.collectingBatchInterval);
1424
+ return of([]);
1425
+ })).subscribe((updatedStatuses) => {
1426
+ this.handleCheckBatchStatusResponse(updatedStatuses);
1427
+ });
1428
+ this.subscriptions.add(subsc);
1429
+ }
1430
+ handleCheckBatchStatusResponse(updatedStatuses) {
1431
+ var _a, _b;
1432
+ if (updatedStatuses && updatedStatuses.length && ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.length)) {
1433
+ updatedStatuses.forEach(updatedStatus => {
1434
+ var _a, _b;
1435
+ const ind = (_a = this.data) === null || _a === void 0 ? void 0 : _a.data.findIndex(batch => batch.siteId === updatedStatus.id);
1436
+ if (ind > -1 && ((_b = this.data) === null || _b === void 0 ? void 0 : _b.data[ind]) && updatedStatus.status) {
1437
+ this.data.data[ind].upgradeStatus = updatedStatus.status;
1438
+ }
1439
+ });
1440
+ }
1441
+ else {
1442
+ if (this.collectingBatchInterval) {
1443
+ clearInterval(this.collectingBatchInterval);
1444
+ }
1445
+ }
1446
+ }
1447
+ getSiteIndex(batchId) {
1448
+ if (this.data.data.length) {
1449
+ return this.data.data.findIndex(siteItem => siteItem.batchId === batchId);
1450
+ }
1451
+ return -1;
1452
+ }
1453
+ initializeFilters(records) {
1454
+ if (!(records === null || records === void 0 ? void 0 : records.length)) {
1455
+ this.filters = [];
1456
+ return;
1457
+ }
1458
+ // Extract unique sites (skip empty/null)
1459
+ const uniqueSites = [
1460
+ ...new Set(records
1461
+ .map(record => { var _a; return (_a = record.siteName) === null || _a === void 0 ? void 0 : _a.trim(); })
1462
+ .filter((site) => !!site))
1463
+ ];
1464
+ const siteOptions = uniqueSites.map(site => ({
1465
+ label: site,
1466
+ value: site.toLowerCase().replace(/\s+/g, '-')
1467
+ }));
1468
+ // Extract unique statuses (skip empty/null)
1469
+ const uniqueStatuses = [
1470
+ ...new Set(records
1471
+ .map(record => { var _a; return (_a = record.upgradeStatus) === null || _a === void 0 ? void 0 : _a.trim(); })
1472
+ .filter((status) => !!status))
1473
+ ];
1474
+ const statusOptions = uniqueStatuses.map(status => ({
1475
+ label: STATUS_ENTRIES[status],
1476
+ value: status.toLowerCase().replace(/\s+/g, '-')
1477
+ }));
1478
+ this.filters = [];
1479
+ if (siteOptions.length) {
1480
+ this.filters.push({
1481
+ id: 'sites',
1482
+ type: 'select',
1483
+ columnKey: 'Site',
1484
+ placeholder: 'Sites',
1485
+ options: siteOptions
1486
+ });
1487
+ }
1488
+ if (statusOptions.length) {
1489
+ this.filters.push({
1490
+ id: 'status',
1491
+ type: 'select',
1492
+ columnKey: 'Site Upgrade Status',
1493
+ placeholder: 'Upgrade Status',
1494
+ options: statusOptions
1495
+ });
1496
+ }
1497
+ }
1498
+ onFilter(filterEvent) {
1499
+ const { key, value } = filterEvent;
1500
+ let filterValue;
1501
+ if (value && value.value !== undefined) {
1502
+ filterValue = value.value;
1503
+ }
1504
+ else if (value && value.target) {
1505
+ filterValue = value.target.value;
1506
+ }
1507
+ else {
1508
+ filterValue = value;
1509
+ }
1510
+ // Handle "All" option or empty values - remove the filter
1511
+ if (filterValue === 'all' || !filterValue || filterValue === '') {
1512
+ delete this.activeFilters[key];
1513
+ }
1514
+ else {
1515
+ this.activeFilters[key] = filterValue;
1516
+ }
1517
+ this.applyFilters();
1518
+ }
1519
+ setupCustomFilter() {
1520
+ this.data.filterPredicate = (data, filter) => {
1521
+ const filters = JSON.parse(filter || '{}');
1522
+ for (const [key, value] of Object.entries(filters)) {
1523
+ if (!value)
1524
+ continue;
1525
+ switch (key) {
1526
+ case 'Site':
1527
+ if (data.siteName !== this.getSiteNameFromValue(value)) {
1528
+ return false;
1529
+ }
1530
+ break;
1531
+ case 'Site Upgrade Status':
1532
+ if (!this.matchesUpgradeStatus(data.upgradeStatus, value)) {
1533
+ return false;
1534
+ }
1535
+ break;
1536
+ }
1537
+ }
1538
+ return true;
1539
+ };
1540
+ }
1541
+ applyFilters() {
1542
+ this.data.filter = JSON.stringify(this.activeFilters);
1543
+ }
1544
+ getSiteNameFromValue(value) {
1545
+ // Since we're now using actual site names, just convert back from slug format
1546
+ return value.split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
1547
+ }
1548
+ matchesUpgradeStatus(status, filterValue) {
1549
+ // Handle direct status matching for cleaner implementation
1550
+ return status.toLowerCase().replace(/\s+/g, '-') === filterValue.toLowerCase();
1551
+ }
1552
+ get filteredDataCount() {
1553
+ var _a, _b;
1554
+ return ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.filteredData) === null || _b === void 0 ? void 0 : _b.length) || 0;
1555
+ }
1556
+ /** Whether the number of selected elements matches the total number of rows. */
1557
+ isAllSelected() {
1558
+ var _a;
1559
+ const numSelected = this.selection.selected.length;
1560
+ const numRows = ((_a = this.data) === null || _a === void 0 ? void 0 : _a.data.length) || 0;
1561
+ return numSelected === numRows;
1562
+ }
1563
+ /** Selects all rows if they are not all selected; otherwise clear selection. */
1564
+ masterToggle() {
1565
+ var _a;
1566
+ this.isAllSelected() ?
1567
+ this.selection.clear() :
1568
+ (_a = this.data) === null || _a === void 0 ? void 0 : _a.data.forEach(row => this.selection.select(row));
1569
+ }
1570
+ getLocationMappingClass(locationMapping) {
1571
+ return locationMapping ? 'success' : 'error';
1572
+ }
1573
+ getSiteUpgradeStatusClass(status) {
1574
+ switch (status.toLowerCase()) {
1575
+ case 'ready':
1576
+ return 'status-ready';
1577
+ case 'partial ready':
1578
+ return 'partial-ready';
1579
+ case 'completed':
1580
+ return 'completed';
1581
+ case 'failed':
1582
+ return 'failed';
1583
+ case 'not ready':
1584
+ return 'not-ready';
1585
+ default:
1586
+ return 'not-ready';
1587
+ }
1588
+ }
1589
+ upgradeSite(site) {
1590
+ this.siteUpgradeService.upgradeSite(site);
1591
+ }
1592
+ setMigratedStatus(webexMigratedSites) {
1593
+ var _a, _b;
1594
+ if (webexMigratedSites && webexMigratedSites.length && ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.length)) {
1595
+ const statusObj = this.getSiteStatusMappingObj(webexMigratedSites);
1596
+ this.data.data.forEach(site => site.migrationFormStatus = statusObj[site.siteId] || '');
1597
+ }
1598
+ }
1599
+ getSiteStatusMappingObj(webexMigratedSites) {
1600
+ const statusObj = {};
1601
+ webexMigratedSites.forEach(item => {
1602
+ var _a;
1603
+ if ((_a = item.site) === null || _a === void 0 ? void 0 : _a.id) {
1604
+ statusObj[String(item.site.id)] = item.migrationFormStatus;
1605
+ }
1606
+ });
1607
+ return statusObj;
1608
+ }
1609
+ setBatchIdToSites(batches) {
1610
+ var _a, _b;
1611
+ if ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.length) {
1612
+ this.data.data.forEach(site => {
1613
+ site.batchId = this.getBatchId(batches, site.siteId);
1614
+ });
1615
+ }
1616
+ }
1617
+ getBatchId(batches, siteId) {
1618
+ const ind = batches.findIndex(batch => batch.siteId === siteId);
1619
+ return ind > -1 ? batches[ind].id : null;
1620
+ }
1621
+ initCollectProgress(sitesInProgress) {
1622
+ var _a;
1623
+ (_a = this.data) === null || _a === void 0 ? void 0 : _a.data.forEach(site => {
1624
+ if (sitesInProgress.includes(site.siteId)) {
1625
+ site.pending = true;
1626
+ this.initCollectInterval(site);
1627
+ }
1628
+ });
1629
+ }
1630
+ ngOnDestroy() {
1631
+ this.destroy$.next();
1632
+ this.destroy$.complete();
1633
+ this.dataPending = false;
1634
+ if (this.collectingBatchInterval) {
1635
+ clearInterval(this.collectingBatchInterval);
1636
+ }
1637
+ if (this.subscriptions) {
1638
+ this.subscriptions.unsubscribe();
1639
+ }
1640
+ }
1641
+ }
1642
+ SiteUpgradeDataTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1643
+ SiteUpgradeDataTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SiteUpgradeDataTableComponent, selector: "tk-site-upgrade-data-table", inputs: { host: "host", token: "token", customerId: "customerId" }, ngImport: i0, template: "<div *ngIf=\"dataPending\" class=\"overlay\">\r\n <mat-progress-spinner\r\n class=\"page-spinner\"\r\n mode=\"indeterminate\"\r\n [diameter]=\"70\"\r\n strokeWidth=\"3\"></mat-progress-spinner>\r\n</div>\r\n\r\n<div id=\"siteUpgradeTable\" class=\"wrapper\">\r\n <div class=\"site-upgrade-status-wrapper\">\r\n <tk-summary-card [description]=\"'Sites are ready to upgrade'\" [value]=\"statusCounts['Ready']\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Sites are not ready'\" [value]=\"statusCounts['Not Ready']\"\r\n [status]=\"'Not Ready'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Sites failed to upgrade'\" [value]=\"statusCounts['Failed']\"\r\n [status]=\"'Failed'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Successfully upgraded'\" [value]=\"statusCounts['Completed']\"\r\n [status]=\"'Completed'\"></tk-summary-card>\r\n </div>\r\n <div class=\"table-action-panel\">\r\n <tk-table-filters *ngIf=\"filters.length > 0\" [filters]=\"filters\" (filter)=\"onFilter($event)\"></tk-table-filters>\r\n <div class=\"action-wrapper\">\r\n <span>{{ filteredDataCount }} Sites</span>\r\n </div>\r\n </div>\r\n <table mat-table [dataSource]=\"data\" class=\"site-upgrade-table\">\r\n\r\n <!-- Site Column -->\r\n <ng-container matColumnDef=\"site\">\r\n <th mat-header-cell *matHeaderCellDef>Site</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"site-info\">\r\n {{ element.siteName }}\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Ready Users Column -->\r\n <ng-container matColumnDef=\"ready users\">\r\n <th mat-header-cell *matHeaderCellDef>Ready Users</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"user-count-info\">\r\n <div class=\"user-count\">{{ element.totalReadyUsers }}/{{ element.totalUsers }}</div>\r\n <div class=\"user-label\">Ready/Total</div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Upgraded Users Column -->\r\n <ng-container matColumnDef=\"upgraded users\">\r\n <th mat-header-cell *matHeaderCellDef>Upgraded Users</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"user-count-info\">\r\n <div class=\"user-count\">{{ element.totalUpgradedUsers }}/{{ element.totalUsers }}</div>\r\n <div class=\"user-label\">Upgraded/Total</div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Location Mapping Column -->\r\n <ng-container matColumnDef=\"location mapping\">\r\n <th mat-header-cell *matHeaderCellDef>Location Mapping</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"status-icon-cell\">\r\n <img *ngIf=\"element.locationMapping\" src=\"assets/icons/check2_icon.png\" alt=\"Location Mapping Enabled\"/>\r\n <img *ngIf=\"!element.locationMapping\" src=\"assets/icons/issue_icon.png\" alt=\"Location Mapping Disabled\"/>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- PSTN Trunk Column -->\r\n <ng-container matColumnDef=\"pstn trunk\">\r\n <th mat-header-cell *matHeaderCellDef>PSTN Trunk</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"status-icon-cell\">\r\n <img *ngIf=\"element.PSTNTrunk\" src=\"assets/icons/check2_icon.png\" alt=\"PSTN Trunk Enabled\"/>\r\n <img *ngIf=\"!element.PSTNTrunk\" src=\"assets/icons/issue_icon.png\" alt=\"PSTN Trunk Disabled\"/>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Site Upgrade Status Column -->\r\n <ng-container matColumnDef=\"site upgrade status\">\r\n <th mat-header-cell *matHeaderCellDef>Site Upgrade Status</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"upgrade-status-cell\">\r\n <ng-container *ngIf=\"element.upgradeStatus === 'READY'; else statusBlock\">\r\n <button mat-button color=\"primary\" class=\"upgrade-button\" (click)=\"onSiteMigration(element)\">Upgrade</button>\r\n </ng-container>\r\n <ng-template #statusBlock>\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getSiteUpgradeStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{ STATUS_ENTRIES[element.upgradeStatus] }}</span>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"progressBar\">\r\n <th class=\"header\" mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"app-progress-bar-container\">\r\n <app-progress-bar\r\n [isAvailable]=\"element.isProgressBarAvailable\"\r\n [progress]=\"element.progress\"\r\n #progressBars>\r\n </app-progress-bar>\r\n </div>\r\n <span *ngIf=\"element.isProgressBarAvailable\" class=\"progress-percents\">\r\n {{ element.progress }} %\r\n </span>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Action Column -->\r\n <ng-container matColumnDef=\"actions\">\r\n <th mat-header-cell *matHeaderCellDef>Actions</th>\r\n <td mat-cell *matCellDef=\"let element\" class=\"progress-spinner-td\">\r\n <div class=\"flex-container\">\r\n <button mat-icon-button [matMenuTriggerFor]=\"defaultBatchMenu\">\r\n <span style=\"font-size: 17px;\">\u22EE</span>\r\n </button>\r\n </div>\r\n\r\n <mat-menu\r\n #defaultBatchMenu=\"matMenu\"\r\n xPosition=\"after\"\r\n class=\"webex-action-menu\">\r\n\r\n <div class=\"webex-action-menu-row\"\r\n [ngClass]=\"{ 'webex-action-menu-row-disabled': element.pending || element.migrationFormStatus === 'NOT_PREPARED' }\"\r\n (click)=\"element.pending || element.migrationFormStatus === 'NOT_PREPARED' ? $event.stopPropagation() : onCollect(element)\">\r\n <span\r\n class=\"webex-details-icon webex-icon\"\r\n [ngClass]=\"{ 'migration-action-disabled': element.pending || element.migrationFormStatus === 'NOT_PREPARED'}\">\r\n </span>\r\n <span class=\"webex-action-menu-title\">Collect</span>\r\n </div>\r\n </mat-menu>\r\n\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"userUpgradeLoader\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td class=\"mat-progress-spinner-td\" mat-cell *matCellDef=\"let element\">\r\n\r\n <mat-progress-spinner\r\n *ngIf=\"element.pending\"\r\n class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\">\r\n </mat-progress-spinner>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n </table>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap\";.webex-action-menu{box-shadow:0 4px 40px #0000001a!important;border-radius:0!important;width:258px;box-sizing:content-box;cursor:pointer}.webex-action-menu-row-disabled{cursor:default!important;opacity:.4}.webex-action-menu-row-disabled .webex-action-menu-title{color:#bababa!important;line-height:23px}.app-progress-bar-container{margin:7px 20px 0 0}.progress-bar-container{min-width:40px}.webex-action-menu-row:hover{background:#f5f5f5}.webex-icon{display:inline-block;height:25px;width:25px;margin:0 7px 0 0}.webex-details-icon{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M16.2115 19.5H17.0961V16H16.2115V19.5ZM16.6538 15.0865C16.7743 15.0929 16.8782 15.0509 16.9653 14.9606C17.0525 14.8702 17.0961 14.7647 17.0961 14.6442C17.0961 14.5237 17.0509 14.4199 16.9605 14.3327C16.8701 14.2455 16.7679 14.2019 16.6538 14.2019C16.5333 14.2019 16.4294 14.2455 16.3422 14.3327C16.2551 14.4199 16.2115 14.5237 16.2115 14.6442C16.2115 14.7583 16.2551 14.8606 16.3422 14.951C16.4294 15.0413 16.5333 15.0865 16.6538 15.0865ZM4.99997 3.99998V10.1827V10.1538V20V3.99998ZM7.25 13.75H10.7231C10.8679 13.4692 11.0307 13.2038 11.2115 12.9538C11.3923 12.7038 11.591 12.4692 11.8077 12.25H7.25V13.75ZM7.25 17.75H10.0173C9.98009 17.5 9.9615 17.2516 9.9615 17.0048C9.9615 16.758 9.97688 16.5064 10.0076 16.25H7.25V17.75ZM5.3077 21.5C4.80257 21.5 4.375 21.325 4.025 20.975C3.675 20.625 3.5 20.1974 3.5 19.6923V4.3077C3.5 3.80257 3.675 3.375 4.025 3.025C4.375 2.675 4.80257 2.5 5.3077 2.5H13.25L18.5 7.74995V10.425C18.2538 10.3506 18.0073 10.2933 17.7605 10.2529C17.5137 10.2125 17.2602 10.1891 17 10.1827V8.49995H12.5V3.99998H5.3077C5.23077 3.99998 5.16024 4.03203 5.09612 4.09613C5.03202 4.16024 4.99997 4.23077 4.99997 4.3077V19.6923C4.99997 19.7692 5.03202 19.8397 5.09612 19.9038C5.16024 19.9679 5.23077 20 5.3077 20H10.7615C10.9064 20.2871 11.0692 20.5557 11.25 20.8057C11.4307 21.0557 11.6327 21.2871 11.8557 21.5H5.3077ZM16.6538 12.3462C17.9025 12.3462 18.9647 12.784 19.8403 13.6596C20.7159 14.5352 21.1538 15.5974 21.1538 16.8461C21.1538 18.0948 20.7159 19.157 19.8403 20.0326C18.9647 20.9083 17.9025 21.3461 16.6538 21.3461C15.4051 21.3461 14.3429 20.9083 13.4673 20.0326C12.5916 19.157 12.1538 18.0948 12.1538 16.8461C12.1538 15.5974 12.5916 14.5352 13.4673 13.6596C14.3429 12.784 15.4051 12.3462 16.6538 12.3462Z%22 fill%3D%22%232C355D%22%2F%3E%3C%2Fsvg%3E\")}.webex-action-menu-row{padding:5px 15px;display:flex;justify-content:flex-start}.webex-action-menu-row .webex-action-menu-title{line-height:23px}.mat-menu-content:not(:empty){padding-top:0!important}.mat-menu-panel{min-height:auto!important}#siteUpgradeTable{font-family:Inter,sans-serif!important}.wrapper{display:flex;flex-direction:column;gap:1rem}.overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff6;z-index:200}.mat-progress-spinner{position:absolute;top:50%;left:50%;margin-top:-20px;margin-left:-25px;width:50px;height:40px;text-align:center;font-size:10px}.mat-progress-spinner-td{position:relative}.mat-progress-spinner-td .mat-progress-spinner{top:28%;left:0;margin:0;position:absolute}.progress-percents{font-weight:500;font-size:12px}:host ::ng-deep .mat-progress-spinner-td{position:relative}:host ::ng-deep #siteUpgradeTable .mat-progress-spinner-td .mat-progress-spinner{top:28%;left:0;margin:0}.site-upgrade-status-wrapper{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem;align-items:stretch}.site-upgrade-table{width:100%;background:white;border-radius:8px;overflow:hidden;font-size:14px}.site-upgrade-table .mat-header-row{font-size:12px;height:35px}.site-upgrade-table .mat-cell{border-bottom:1px solid #d6d6d6;font-family:Inter,sans-serif!important}.site-upgrade-table .mat-header-cell{border-bottom:1px solid #afafaf;font-family:Inter,sans-serif!important}.site-upgrade-table .site-info{display:flex;align-items:center;gap:8px}.site-upgrade-table .site-info .site-indicator{width:8px;height:8px;border-radius:50%;background-color:#1170cf}.site-upgrade-table .indicator-status-ready{color:#1170cf!important}.site-upgrade-table .device-info{display:flex;align-items:center;gap:12px}.site-upgrade-table .device-info .device-name-wrapper{display:flex;align-items:center;gap:4px}.site-upgrade-table .device-info .device-name-wrapper .device-name{font-weight:500;color:#212121}.site-upgrade-table .device-info .device-name-wrapper .device-indicator{width:8px;height:8px;border-radius:50%;background-color:#f8cd00}.site-upgrade-table .device-info .device-model{font-size:12px;color:#757575}.site-upgrade-table .status-info{display:flex;align-items:center;gap:8px}.site-upgrade-table .status-info .status-indicator{width:8px;height:8px;border-radius:50%}.site-upgrade-table .status-info .status-indicator.ready{background-color:#1170cf}.site-upgrade-table .status-info .status-indicator.partial-ready{background-color:#f8cd00}.site-upgrade-table .status-info .status-indicator.not-ready{background-color:#9e9e9e}.site-upgrade-table .status-info .status-indicator.completed{background-color:#1d805f}.site-upgrade-table .status-info .status-indicator.failed{background-color:#f23933}.site-upgrade-table .dependencies-text{font-size:12px;background-color:#ffe9e9;padding:.25rem .5rem;border-radius:3px;color:#000}.site-upgrade-table .upgrade-status-cell{display:flex;align-items:center;justify-content:flex-start}.site-upgrade-table .flex-container{display:flex}.site-upgrade-table .upgrade-button{font-weight:400!important;border:1px solid rgb(0,0,0)!important;color:#fff!important;background:rgb(0,0,0)!important;border-radius:20px!important;font-size:14px!important;font-style:normal!important;font-weight:500!important;height:32px!important;display:flex!important;align-items:center!important;justify-content:center!important}.site-upgrade-table .upgrade-button:hover{background-color:#000000b0!important}.site-upgrade-table .user-count-info .user-count{font-weight:500;color:#212121}.site-upgrade-table .user-count-info .user-label{font-size:12px;color:#757575}.site-upgrade-table .status-icon-cell,.site-upgrade-table .collect-icon-cell{display:flex;align-items:center}.site-upgrade-table .icon-play{width:24px;height:24px;background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2218%22 height%3D%2219%22 viewBox%3D%220 0 18 19%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M8.09567 11.7427L11.3625 9.64421C11.523 9.54226 11.6033 9.40067 11.6033 9.21945C11.6033 9.03821 11.523 8.89615 11.3625 8.79326L8.09567 6.69472C7.92739 6.57933 7.75479 6.5701 7.57787 6.66701C7.40096 6.76391 7.3125 6.91497 7.3125 7.12019V11.3173C7.3125 11.5225 7.40096 11.6736 7.57787 11.7705C7.75479 11.8674 7.92739 11.8581 8.09567 11.7427ZM9.00124 16.3437C8.01579 16.3437 7.08951 16.1567 6.22241 15.7827C5.3553 15.4087 4.60104 14.9012 3.95963 14.26C3.3182 13.6189 2.81041 12.865 2.43624 11.9982C2.06208 11.1315 1.875 10.2054 1.875 9.21999C1.875 8.23454 2.062 7.30826 2.436 6.44116C2.81 5.57405 3.31756 4.81979 3.95869 4.17838C4.59983 3.53695 5.35376 3.02916 6.22048 2.65499C7.08719 2.28083 8.01328 2.09375 8.99873 2.09375C9.98418 2.09375 10.9105 2.28075 11.7776 2.65475C12.6447 3.02875 13.3989 3.53631 14.0403 4.17744C14.6818 4.81858 15.1896 5.57251 15.5637 6.43923C15.9379 7.30594 16.125 8.23203 16.125 9.21748C16.125 10.2029 15.938 11.1292 15.564 11.9963C15.19 12.8634 14.6824 13.6177 14.0413 14.2591C13.4001 14.9005 12.6462 15.4083 11.7795 15.7825C10.9128 16.1566 9.98669 16.3437 9.00124 16.3437ZM8.99998 15.2187C10.675 15.2187 12.0937 14.6375 13.2562 13.475C14.4187 12.3125 15 10.8937 15 9.21873C15 7.54373 14.4187 6.12498 13.2562 4.96248C12.0937 3.79998 10.675 3.21873 8.99998 3.21873C7.32498 3.21873 5.90623 3.79998 4.74373 4.96248C3.58123 6.12498 2.99998 7.54373 2.99998 9.21873C2.99998 10.8937 3.58123 12.3125 4.74373 13.475C5.90623 14.6375 7.32498 15.2187 8.99998 15.2187Z%22 fill%3D%22%232C355D%22%2F%3E%3C%2Fsvg%3E\");background-repeat:no-repeat;background-position:center;background-size:contain}.site-upgrade-table .collect-icon-cell{cursor:pointer}:host ::ng-deep .action-wrapper{display:flex;align-items:center;flex:1;justify-content:space-between;gap:1rem;color:#555}.table-action-panel{width:100%;display:flex;justify-content:flex-start;align-items:center;gap:1rem}.pay-button-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:1px solid #2c355d;background-color:#fff;cursor:pointer;transition:all .3s ease;position:relative}.pay-button-icon:after{content:\"\";width:0;height:0;border-left:6px solid #2c355d;border-top:4px solid transparent;border-bottom:4px solid transparent;margin-left:2px}.pay-button-icon:hover{border-color:#2c355d;background-color:#f8fafc;transform:scale(1.05)}.pay-button-icon:hover:after{border-left-color:#2c355d}.pay-button-icon:active{transform:scale(.95);background-color:#e2e8f0}.pay-button-icon:disabled,.pay-button-icon.disabled{opacity:.5;cursor:not-allowed}.pay-button-icon:disabled:hover,.pay-button-icon.disabled:hover{transform:none;border-color:#d1d5db;background-color:#fff}.pay-button-icon:disabled:hover:after,.pay-button-icon.disabled:hover:after{border-left-color:#2c355d}.pay-button-icon.small{width:32px;height:32px;border-width:1.5px}.pay-button-icon.small:after{border-left-width:6px;border-top-width:5px;border-bottom-width:5px;margin-left:1px}.pay-button-icon.large{width:48px;height:48px;border-width:2.5px}.pay-button-icon.large:after{border-left-width:10px;border-top-width:7px;border-bottom-width:7px;margin-left:3px}.pay-button-icon.xl{width:56px;height:56px;border-width:3px}.pay-button-icon.xl:after{border-left-width:12px;border-top-width:8px;border-bottom-width:8px;margin-left:3px}.pay-button-icon.loading:after{display:none}.pay-button-icon.loading:before{content:\"\";width:16px;height:16px;border:2px solid #2c355d;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.pay-button{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;background:none;border:none;cursor:pointer;font-size:14px;font-weight:500;color:#2c355d;transition:color .3s ease}.pay-button .pay-button-icon{margin:0}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i2$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: SummaryCardComponent, selector: "tk-summary-card", inputs: ["value", "status", "description"] }, { kind: "component", type: TableFiltersComponent, selector: "tk-table-filters", inputs: ["filters"], outputs: ["filter"] }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "directive", type: i6$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: ProgressBarComponent, selector: "app-progress-bar", inputs: ["isAvailable", "progress"] }], encapsulation: i0.ViewEncapsulation.None });
1644
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeDataTableComponent, decorators: [{
1645
+ type: Component,
1646
+ args: [{ selector: 'tk-site-upgrade-data-table', encapsulation: ViewEncapsulation.None, template: "<div *ngIf=\"dataPending\" class=\"overlay\">\r\n <mat-progress-spinner\r\n class=\"page-spinner\"\r\n mode=\"indeterminate\"\r\n [diameter]=\"70\"\r\n strokeWidth=\"3\"></mat-progress-spinner>\r\n</div>\r\n\r\n<div id=\"siteUpgradeTable\" class=\"wrapper\">\r\n <div class=\"site-upgrade-status-wrapper\">\r\n <tk-summary-card [description]=\"'Sites are ready to upgrade'\" [value]=\"statusCounts['Ready']\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Sites are not ready'\" [value]=\"statusCounts['Not Ready']\"\r\n [status]=\"'Not Ready'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Sites failed to upgrade'\" [value]=\"statusCounts['Failed']\"\r\n [status]=\"'Failed'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Successfully upgraded'\" [value]=\"statusCounts['Completed']\"\r\n [status]=\"'Completed'\"></tk-summary-card>\r\n </div>\r\n <div class=\"table-action-panel\">\r\n <tk-table-filters *ngIf=\"filters.length > 0\" [filters]=\"filters\" (filter)=\"onFilter($event)\"></tk-table-filters>\r\n <div class=\"action-wrapper\">\r\n <span>{{ filteredDataCount }} Sites</span>\r\n </div>\r\n </div>\r\n <table mat-table [dataSource]=\"data\" class=\"site-upgrade-table\">\r\n\r\n <!-- Site Column -->\r\n <ng-container matColumnDef=\"site\">\r\n <th mat-header-cell *matHeaderCellDef>Site</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"site-info\">\r\n {{ element.siteName }}\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Ready Users Column -->\r\n <ng-container matColumnDef=\"ready users\">\r\n <th mat-header-cell *matHeaderCellDef>Ready Users</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"user-count-info\">\r\n <div class=\"user-count\">{{ element.totalReadyUsers }}/{{ element.totalUsers }}</div>\r\n <div class=\"user-label\">Ready/Total</div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Upgraded Users Column -->\r\n <ng-container matColumnDef=\"upgraded users\">\r\n <th mat-header-cell *matHeaderCellDef>Upgraded Users</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"user-count-info\">\r\n <div class=\"user-count\">{{ element.totalUpgradedUsers }}/{{ element.totalUsers }}</div>\r\n <div class=\"user-label\">Upgraded/Total</div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Location Mapping Column -->\r\n <ng-container matColumnDef=\"location mapping\">\r\n <th mat-header-cell *matHeaderCellDef>Location Mapping</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"status-icon-cell\">\r\n <img *ngIf=\"element.locationMapping\" src=\"assets/icons/check2_icon.png\" alt=\"Location Mapping Enabled\"/>\r\n <img *ngIf=\"!element.locationMapping\" src=\"assets/icons/issue_icon.png\" alt=\"Location Mapping Disabled\"/>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- PSTN Trunk Column -->\r\n <ng-container matColumnDef=\"pstn trunk\">\r\n <th mat-header-cell *matHeaderCellDef>PSTN Trunk</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"status-icon-cell\">\r\n <img *ngIf=\"element.PSTNTrunk\" src=\"assets/icons/check2_icon.png\" alt=\"PSTN Trunk Enabled\"/>\r\n <img *ngIf=\"!element.PSTNTrunk\" src=\"assets/icons/issue_icon.png\" alt=\"PSTN Trunk Disabled\"/>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Site Upgrade Status Column -->\r\n <ng-container matColumnDef=\"site upgrade status\">\r\n <th mat-header-cell *matHeaderCellDef>Site Upgrade Status</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"upgrade-status-cell\">\r\n <ng-container *ngIf=\"element.upgradeStatus === 'READY'; else statusBlock\">\r\n <button mat-button color=\"primary\" class=\"upgrade-button\" (click)=\"onSiteMigration(element)\">Upgrade</button>\r\n </ng-container>\r\n <ng-template #statusBlock>\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getSiteUpgradeStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{ STATUS_ENTRIES[element.upgradeStatus] }}</span>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"progressBar\">\r\n <th class=\"header\" mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"app-progress-bar-container\">\r\n <app-progress-bar\r\n [isAvailable]=\"element.isProgressBarAvailable\"\r\n [progress]=\"element.progress\"\r\n #progressBars>\r\n </app-progress-bar>\r\n </div>\r\n <span *ngIf=\"element.isProgressBarAvailable\" class=\"progress-percents\">\r\n {{ element.progress }} %\r\n </span>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Action Column -->\r\n <ng-container matColumnDef=\"actions\">\r\n <th mat-header-cell *matHeaderCellDef>Actions</th>\r\n <td mat-cell *matCellDef=\"let element\" class=\"progress-spinner-td\">\r\n <div class=\"flex-container\">\r\n <button mat-icon-button [matMenuTriggerFor]=\"defaultBatchMenu\">\r\n <span style=\"font-size: 17px;\">\u22EE</span>\r\n </button>\r\n </div>\r\n\r\n <mat-menu\r\n #defaultBatchMenu=\"matMenu\"\r\n xPosition=\"after\"\r\n class=\"webex-action-menu\">\r\n\r\n <div class=\"webex-action-menu-row\"\r\n [ngClass]=\"{ 'webex-action-menu-row-disabled': element.pending || element.migrationFormStatus === 'NOT_PREPARED' }\"\r\n (click)=\"element.pending || element.migrationFormStatus === 'NOT_PREPARED' ? $event.stopPropagation() : onCollect(element)\">\r\n <span\r\n class=\"webex-details-icon webex-icon\"\r\n [ngClass]=\"{ 'migration-action-disabled': element.pending || element.migrationFormStatus === 'NOT_PREPARED'}\">\r\n </span>\r\n <span class=\"webex-action-menu-title\">Collect</span>\r\n </div>\r\n </mat-menu>\r\n\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"userUpgradeLoader\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td class=\"mat-progress-spinner-td\" mat-cell *matCellDef=\"let element\">\r\n\r\n <mat-progress-spinner\r\n *ngIf=\"element.pending\"\r\n class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\">\r\n </mat-progress-spinner>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n </table>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap\";.webex-action-menu{box-shadow:0 4px 40px #0000001a!important;border-radius:0!important;width:258px;box-sizing:content-box;cursor:pointer}.webex-action-menu-row-disabled{cursor:default!important;opacity:.4}.webex-action-menu-row-disabled .webex-action-menu-title{color:#bababa!important;line-height:23px}.app-progress-bar-container{margin:7px 20px 0 0}.progress-bar-container{min-width:40px}.webex-action-menu-row:hover{background:#f5f5f5}.webex-icon{display:inline-block;height:25px;width:25px;margin:0 7px 0 0}.webex-details-icon{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M16.2115 19.5H17.0961V16H16.2115V19.5ZM16.6538 15.0865C16.7743 15.0929 16.8782 15.0509 16.9653 14.9606C17.0525 14.8702 17.0961 14.7647 17.0961 14.6442C17.0961 14.5237 17.0509 14.4199 16.9605 14.3327C16.8701 14.2455 16.7679 14.2019 16.6538 14.2019C16.5333 14.2019 16.4294 14.2455 16.3422 14.3327C16.2551 14.4199 16.2115 14.5237 16.2115 14.6442C16.2115 14.7583 16.2551 14.8606 16.3422 14.951C16.4294 15.0413 16.5333 15.0865 16.6538 15.0865ZM4.99997 3.99998V10.1827V10.1538V20V3.99998ZM7.25 13.75H10.7231C10.8679 13.4692 11.0307 13.2038 11.2115 12.9538C11.3923 12.7038 11.591 12.4692 11.8077 12.25H7.25V13.75ZM7.25 17.75H10.0173C9.98009 17.5 9.9615 17.2516 9.9615 17.0048C9.9615 16.758 9.97688 16.5064 10.0076 16.25H7.25V17.75ZM5.3077 21.5C4.80257 21.5 4.375 21.325 4.025 20.975C3.675 20.625 3.5 20.1974 3.5 19.6923V4.3077C3.5 3.80257 3.675 3.375 4.025 3.025C4.375 2.675 4.80257 2.5 5.3077 2.5H13.25L18.5 7.74995V10.425C18.2538 10.3506 18.0073 10.2933 17.7605 10.2529C17.5137 10.2125 17.2602 10.1891 17 10.1827V8.49995H12.5V3.99998H5.3077C5.23077 3.99998 5.16024 4.03203 5.09612 4.09613C5.03202 4.16024 4.99997 4.23077 4.99997 4.3077V19.6923C4.99997 19.7692 5.03202 19.8397 5.09612 19.9038C5.16024 19.9679 5.23077 20 5.3077 20H10.7615C10.9064 20.2871 11.0692 20.5557 11.25 20.8057C11.4307 21.0557 11.6327 21.2871 11.8557 21.5H5.3077ZM16.6538 12.3462C17.9025 12.3462 18.9647 12.784 19.8403 13.6596C20.7159 14.5352 21.1538 15.5974 21.1538 16.8461C21.1538 18.0948 20.7159 19.157 19.8403 20.0326C18.9647 20.9083 17.9025 21.3461 16.6538 21.3461C15.4051 21.3461 14.3429 20.9083 13.4673 20.0326C12.5916 19.157 12.1538 18.0948 12.1538 16.8461C12.1538 15.5974 12.5916 14.5352 13.4673 13.6596C14.3429 12.784 15.4051 12.3462 16.6538 12.3462Z%22 fill%3D%22%232C355D%22%2F%3E%3C%2Fsvg%3E\")}.webex-action-menu-row{padding:5px 15px;display:flex;justify-content:flex-start}.webex-action-menu-row .webex-action-menu-title{line-height:23px}.mat-menu-content:not(:empty){padding-top:0!important}.mat-menu-panel{min-height:auto!important}#siteUpgradeTable{font-family:Inter,sans-serif!important}.wrapper{display:flex;flex-direction:column;gap:1rem}.overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff6;z-index:200}.mat-progress-spinner{position:absolute;top:50%;left:50%;margin-top:-20px;margin-left:-25px;width:50px;height:40px;text-align:center;font-size:10px}.mat-progress-spinner-td{position:relative}.mat-progress-spinner-td .mat-progress-spinner{top:28%;left:0;margin:0;position:absolute}.progress-percents{font-weight:500;font-size:12px}:host ::ng-deep .mat-progress-spinner-td{position:relative}:host ::ng-deep #siteUpgradeTable .mat-progress-spinner-td .mat-progress-spinner{top:28%;left:0;margin:0}.site-upgrade-status-wrapper{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem;align-items:stretch}.site-upgrade-table{width:100%;background:white;border-radius:8px;overflow:hidden;font-size:14px}.site-upgrade-table .mat-header-row{font-size:12px;height:35px}.site-upgrade-table .mat-cell{border-bottom:1px solid #d6d6d6;font-family:Inter,sans-serif!important}.site-upgrade-table .mat-header-cell{border-bottom:1px solid #afafaf;font-family:Inter,sans-serif!important}.site-upgrade-table .site-info{display:flex;align-items:center;gap:8px}.site-upgrade-table .site-info .site-indicator{width:8px;height:8px;border-radius:50%;background-color:#1170cf}.site-upgrade-table .indicator-status-ready{color:#1170cf!important}.site-upgrade-table .device-info{display:flex;align-items:center;gap:12px}.site-upgrade-table .device-info .device-name-wrapper{display:flex;align-items:center;gap:4px}.site-upgrade-table .device-info .device-name-wrapper .device-name{font-weight:500;color:#212121}.site-upgrade-table .device-info .device-name-wrapper .device-indicator{width:8px;height:8px;border-radius:50%;background-color:#f8cd00}.site-upgrade-table .device-info .device-model{font-size:12px;color:#757575}.site-upgrade-table .status-info{display:flex;align-items:center;gap:8px}.site-upgrade-table .status-info .status-indicator{width:8px;height:8px;border-radius:50%}.site-upgrade-table .status-info .status-indicator.ready{background-color:#1170cf}.site-upgrade-table .status-info .status-indicator.partial-ready{background-color:#f8cd00}.site-upgrade-table .status-info .status-indicator.not-ready{background-color:#9e9e9e}.site-upgrade-table .status-info .status-indicator.completed{background-color:#1d805f}.site-upgrade-table .status-info .status-indicator.failed{background-color:#f23933}.site-upgrade-table .dependencies-text{font-size:12px;background-color:#ffe9e9;padding:.25rem .5rem;border-radius:3px;color:#000}.site-upgrade-table .upgrade-status-cell{display:flex;align-items:center;justify-content:flex-start}.site-upgrade-table .flex-container{display:flex}.site-upgrade-table .upgrade-button{font-weight:400!important;border:1px solid rgb(0,0,0)!important;color:#fff!important;background:rgb(0,0,0)!important;border-radius:20px!important;font-size:14px!important;font-style:normal!important;font-weight:500!important;height:32px!important;display:flex!important;align-items:center!important;justify-content:center!important}.site-upgrade-table .upgrade-button:hover{background-color:#000000b0!important}.site-upgrade-table .user-count-info .user-count{font-weight:500;color:#212121}.site-upgrade-table .user-count-info .user-label{font-size:12px;color:#757575}.site-upgrade-table .status-icon-cell,.site-upgrade-table .collect-icon-cell{display:flex;align-items:center}.site-upgrade-table .icon-play{width:24px;height:24px;background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2218%22 height%3D%2219%22 viewBox%3D%220 0 18 19%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M8.09567 11.7427L11.3625 9.64421C11.523 9.54226 11.6033 9.40067 11.6033 9.21945C11.6033 9.03821 11.523 8.89615 11.3625 8.79326L8.09567 6.69472C7.92739 6.57933 7.75479 6.5701 7.57787 6.66701C7.40096 6.76391 7.3125 6.91497 7.3125 7.12019V11.3173C7.3125 11.5225 7.40096 11.6736 7.57787 11.7705C7.75479 11.8674 7.92739 11.8581 8.09567 11.7427ZM9.00124 16.3437C8.01579 16.3437 7.08951 16.1567 6.22241 15.7827C5.3553 15.4087 4.60104 14.9012 3.95963 14.26C3.3182 13.6189 2.81041 12.865 2.43624 11.9982C2.06208 11.1315 1.875 10.2054 1.875 9.21999C1.875 8.23454 2.062 7.30826 2.436 6.44116C2.81 5.57405 3.31756 4.81979 3.95869 4.17838C4.59983 3.53695 5.35376 3.02916 6.22048 2.65499C7.08719 2.28083 8.01328 2.09375 8.99873 2.09375C9.98418 2.09375 10.9105 2.28075 11.7776 2.65475C12.6447 3.02875 13.3989 3.53631 14.0403 4.17744C14.6818 4.81858 15.1896 5.57251 15.5637 6.43923C15.9379 7.30594 16.125 8.23203 16.125 9.21748C16.125 10.2029 15.938 11.1292 15.564 11.9963C15.19 12.8634 14.6824 13.6177 14.0413 14.2591C13.4001 14.9005 12.6462 15.4083 11.7795 15.7825C10.9128 16.1566 9.98669 16.3437 9.00124 16.3437ZM8.99998 15.2187C10.675 15.2187 12.0937 14.6375 13.2562 13.475C14.4187 12.3125 15 10.8937 15 9.21873C15 7.54373 14.4187 6.12498 13.2562 4.96248C12.0937 3.79998 10.675 3.21873 8.99998 3.21873C7.32498 3.21873 5.90623 3.79998 4.74373 4.96248C3.58123 6.12498 2.99998 7.54373 2.99998 9.21873C2.99998 10.8937 3.58123 12.3125 4.74373 13.475C5.90623 14.6375 7.32498 15.2187 8.99998 15.2187Z%22 fill%3D%22%232C355D%22%2F%3E%3C%2Fsvg%3E\");background-repeat:no-repeat;background-position:center;background-size:contain}.site-upgrade-table .collect-icon-cell{cursor:pointer}:host ::ng-deep .action-wrapper{display:flex;align-items:center;flex:1;justify-content:space-between;gap:1rem;color:#555}.table-action-panel{width:100%;display:flex;justify-content:flex-start;align-items:center;gap:1rem}.pay-button-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:1px solid #2c355d;background-color:#fff;cursor:pointer;transition:all .3s ease;position:relative}.pay-button-icon:after{content:\"\";width:0;height:0;border-left:6px solid #2c355d;border-top:4px solid transparent;border-bottom:4px solid transparent;margin-left:2px}.pay-button-icon:hover{border-color:#2c355d;background-color:#f8fafc;transform:scale(1.05)}.pay-button-icon:hover:after{border-left-color:#2c355d}.pay-button-icon:active{transform:scale(.95);background-color:#e2e8f0}.pay-button-icon:disabled,.pay-button-icon.disabled{opacity:.5;cursor:not-allowed}.pay-button-icon:disabled:hover,.pay-button-icon.disabled:hover{transform:none;border-color:#d1d5db;background-color:#fff}.pay-button-icon:disabled:hover:after,.pay-button-icon.disabled:hover:after{border-left-color:#2c355d}.pay-button-icon.small{width:32px;height:32px;border-width:1.5px}.pay-button-icon.small:after{border-left-width:6px;border-top-width:5px;border-bottom-width:5px;margin-left:1px}.pay-button-icon.large{width:48px;height:48px;border-width:2.5px}.pay-button-icon.large:after{border-left-width:10px;border-top-width:7px;border-bottom-width:7px;margin-left:3px}.pay-button-icon.xl{width:56px;height:56px;border-width:3px}.pay-button-icon.xl:after{border-left-width:12px;border-top-width:8px;border-bottom-width:8px;margin-left:3px}.pay-button-icon.loading:after{display:none}.pay-button-icon.loading:before{content:\"\";width:16px;height:16px;border:2px solid #2c355d;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.pay-button{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;background:none;border:none;cursor:pointer;font-size:14px;font-weight:500;color:#2c355d;transition:color .3s ease}.pay-button .pay-button-icon{margin:0}\n"] }]
1647
+ }], ctorParameters: function () { return []; }, propDecorators: { host: [{
1648
+ type: Input
1649
+ }], token: [{
1650
+ type: Input
1651
+ }], customerId: [{
1652
+ type: Input
1653
+ }] } });
1654
+
1655
+ class SiteUpgradeModule {
1656
+ }
1657
+ SiteUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1658
+ SiteUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, declarations: [SiteUpgradeDataTableComponent,
1659
+ ProgressBarComponent], imports: [CommonModule,
1660
+ SharedModule,
1661
+ MatTableModule,
1662
+ MatIconModule,
1663
+ MatMenuModule,
1664
+ MatButtonModule,
1665
+ MatProgressSpinnerModule], exports: [SiteUpgradeDataTableComponent,
1666
+ ProgressBarComponent] });
1667
+ SiteUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, imports: [CommonModule,
1668
+ SharedModule,
1669
+ MatTableModule,
1670
+ MatIconModule,
1671
+ MatMenuModule,
1672
+ MatButtonModule,
1673
+ MatProgressSpinnerModule] });
1674
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, decorators: [{
1675
+ type: NgModule,
1676
+ args: [{
1677
+ declarations: [
1678
+ SiteUpgradeDataTableComponent,
1679
+ ProgressBarComponent
1680
+ ],
1681
+ imports: [
1682
+ CommonModule,
1683
+ SharedModule,
1684
+ MatTableModule,
1685
+ MatIconModule,
1686
+ MatMenuModule,
1687
+ MatButtonModule,
1688
+ MatProgressSpinnerModule
1689
+ ],
1690
+ exports: [
1691
+ SiteUpgradeDataTableComponent,
1692
+ ProgressBarComponent
1693
+ ]
1694
+ }]
1695
+ }] });
1696
+
1697
+ class UpgradeOverviewService {
1698
+ constructor(apiService) {
1699
+ this.apiService = apiService;
1700
+ }
1701
+ getUpgradePreconditions() {
1702
+ return this.apiService.fetch(API$1.OVERVIEW.GET_UPGRADE_PRECONDITIONS.replace(':customerId', this.customerId)).pipe(map((resp) => {
1703
+ return {
1704
+ id: resp.id,
1705
+ customerId: resp.customerId,
1706
+ controlHubIntegration: resp.controlHubIntegration,
1707
+ numberOfAvailableLicences: resp.availableLicences
1708
+ };
1709
+ }));
1710
+ }
1711
+ getSiteInfrastructureSummary() {
1712
+ return this.apiService.fetch(API$1.OVERVIEW.GET_SITE_INFRASTRUCTURE.replace(':customerId', this.customerId)).pipe(map((resp) => {
1713
+ return {
1714
+ id: resp.id,
1715
+ customerId: resp.customerId,
1716
+ totalSites: resp.totalSites,
1717
+ totalLocations: resp.totalLocations,
1718
+ totalPSTNs: resp.totalPSTNS
1719
+ };
1720
+ }));
1721
+ }
1722
+ getUsersUpgradeSummary() {
1723
+ return this.apiService.fetch(API$1.OVERVIEW.GET_USERS_UPGRADE_SUMMARY.replace(':customerId', this.customerId)).pipe(map((resp) => {
1724
+ return {
1725
+ id: resp.id,
1726
+ customerId: resp.customerId,
1727
+ totalUsers: resp.totalUsers,
1728
+ totalReadyUsers: resp.totalUsersReady,
1729
+ totalUpgradedUsers: resp.totalUsersUpgraded
1730
+ };
1731
+ }));
1732
+ }
1733
+ getPendingActivationCount() {
1734
+ return this.apiService.fetch(API$1.OVERVIEW.GET_PENDING_ACTIVATION_COUNT.replace(':customerId', this.customerId)).pipe(map((resp) => {
1735
+ var _a, _b, _c;
1736
+ if (typeof resp === "number") {
1737
+ return resp;
1738
+ }
1739
+ return (_c = (_b = (_a = resp === null || resp === void 0 ? void 0 : resp.count) !== null && _a !== void 0 ? _a : resp === null || resp === void 0 ? void 0 : resp.pendingActivation) !== null && _b !== void 0 ? _b : resp === null || resp === void 0 ? void 0 : resp.total) !== null && _c !== void 0 ? _c : 0;
1740
+ }));
1741
+ }
1742
+ getSitesUpgradeSummary() {
1743
+ return this.apiService.fetch(API$1.OVERVIEW.GET_SITES_UPGRADE_SUMMARY.replace(':customerId', this.customerId)).pipe(map((resp) => {
1744
+ return {
1745
+ id: resp.id,
1746
+ customerId: resp.customerId,
1747
+ totalSites: resp.totalSites,
1748
+ // totalReadySites: resp.totalSitesReady, // return after demo 22.03.26 and delete next line
1749
+ totalReadySites: 0,
1750
+ // totalUpgradedSites: resp.totalSitesUpgraded // return after demo 22.03.26 and delete next line
1751
+ totalUpgradedSites: 1
1752
+ };
1753
+ }));
1754
+ }
1755
+ getUsersUpgradeReadiness() {
1756
+ return this.apiService.fetch(API$1.OVERVIEW.GET_USERS_UPGRADE_READINESS.replace(':customerId', this.customerId)).pipe(map((resp) => {
1757
+ return {
1758
+ id: resp.id,
1759
+ customerId: resp.customerId,
1760
+ totalUsers: resp.totalUsers,
1761
+ totalReadyUsers: resp.totalUsersReady
1762
+ };
1763
+ }));
1764
+ }
1765
+ getSitesUpgradeReadiness() {
1766
+ return this.apiService.fetch(API$1.OVERVIEW.GET_SITES_UPGRADE_READINESS.replace(':customerId', this.customerId)).pipe(map((resp) => {
1767
+ return {
1768
+ id: resp.id,
1769
+ customerId: resp.customerId,
1770
+ totalSites: resp.totalSites,
1771
+ // totalReadySites: resp.totalSitesReady // return after demo 22.03.26 and delete next line
1772
+ totalReadySites: 0
1773
+ };
1774
+ }));
1775
+ }
1776
+ }
1777
+ UpgradeOverviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, deps: [{ token: APIService }], target: i0.ɵɵFactoryTarget.Injectable });
1778
+ UpgradeOverviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, providedIn: 'root' });
1779
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, decorators: [{
1780
+ type: Injectable,
1781
+ args: [{
1782
+ providedIn: 'root'
1783
+ }]
1784
+ }], ctorParameters: function () { return [{ type: APIService }]; } });
1785
+
1786
+ class ReadyToUpgradeUsersCardComponent {
1787
+ constructor() {
1788
+ this.apiService = inject(APIService);
1789
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
1790
+ this.destroy$ = new Subject();
1791
+ this.title = 'Ready Users';
1792
+ this.type = 'user';
1793
+ this.upgradeStatus = 'ready';
1794
+ this.loading = false;
1795
+ }
1796
+ ngOnInit() {
1797
+ this.apiService.token = this.token;
1798
+ this.apiService.apiUrl = this.host;
1799
+ this.upgradeOverviewService.customerId = this.customerId;
1800
+ this.loading = true;
1801
+ this.upgradeOverviewService.getUsersUpgradeReadiness()
1802
+ .pipe(takeUntil(this.destroy$))
1803
+ .subscribe((stats) => {
1804
+ this.readinessStats = stats;
1805
+ this.loading = false;
1806
+ });
1807
+ }
1808
+ ngOnDestroy() {
1809
+ this.destroy$.next();
1810
+ this.destroy$.complete();
1811
+ }
1812
+ }
1813
+ ReadyToUpgradeUsersCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeUsersCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1814
+ ReadyToUpgradeUsersCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ReadyToUpgradeUsersCardComponent, selector: "tk-ready-to-upgrade-users-card", inputs: { host: "host", token: "token", customerId: "customerId" }, ngImport: i0, template: " <tk-stat-card\r\n *ngIf=\"!loading\"\r\n [title]=\"title\"\r\n [type]=\"type\"\r\n [readinessStats]=\"readinessStats\"\r\n [upgradeStatus]=\"upgradeStatus\">\r\n </tk-stat-card>", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: StatCardComponent, selector: "tk-stat-card", inputs: ["title", "type", "readinessStats", "upgradeStatus"] }] });
1815
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeUsersCardComponent, decorators: [{
1816
+ type: Component,
1817
+ args: [{ selector: 'tk-ready-to-upgrade-users-card', template: " <tk-stat-card\r\n *ngIf=\"!loading\"\r\n [title]=\"title\"\r\n [type]=\"type\"\r\n [readinessStats]=\"readinessStats\"\r\n [upgradeStatus]=\"upgradeStatus\">\r\n </tk-stat-card>" }]
1818
+ }], propDecorators: { host: [{
1819
+ type: Input
1820
+ }], token: [{
1821
+ type: Input
1822
+ }], customerId: [{
1823
+ type: Input
1824
+ }] } });
1825
+
1826
+ class ReadyToUpgradeSitesCardComponent {
1827
+ constructor() {
1828
+ this.apiService = inject(APIService);
1829
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
1830
+ this.destroy$ = new Subject();
1831
+ this.title = 'Ready Sites';
1832
+ this.type = 'site';
1833
+ this.upgradeStatus = 'ready';
1834
+ this.loading = false;
1835
+ }
1836
+ ngOnInit() {
1837
+ this.apiService.token = this.token;
1838
+ this.apiService.apiUrl = this.host;
1839
+ this.upgradeOverviewService.customerId = this.customerId;
1840
+ this.loading = true;
1841
+ this.upgradeOverviewService.getSitesUpgradeReadiness()
1842
+ .pipe(takeUntil(this.destroy$))
1843
+ .subscribe((stats) => {
1844
+ this.readinessStats = stats;
1845
+ this.loading = false;
1846
+ });
1847
+ }
1848
+ ngOnDestroy() {
1849
+ this.destroy$.next();
1850
+ this.destroy$.complete();
1851
+ }
1852
+ }
1853
+ ReadyToUpgradeSitesCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeSitesCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1854
+ ReadyToUpgradeSitesCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ReadyToUpgradeSitesCardComponent, selector: "tk-ready-to-upgrade-sites-card", inputs: { host: "host", token: "token", customerId: "customerId" }, ngImport: i0, template: " <tk-stat-card\r\n *ngIf=\"!loading\"\r\n [title]=\"title\"\r\n [type]=\"type\"\r\n [readinessStats]=\"readinessStats\"\r\n [upgradeStatus]=\"upgradeStatus\">\r\n </tk-stat-card>", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: StatCardComponent, selector: "tk-stat-card", inputs: ["title", "type", "readinessStats", "upgradeStatus"] }] });
1855
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeSitesCardComponent, decorators: [{
1856
+ type: Component,
1857
+ args: [{ selector: 'tk-ready-to-upgrade-sites-card', template: " <tk-stat-card\r\n *ngIf=\"!loading\"\r\n [title]=\"title\"\r\n [type]=\"type\"\r\n [readinessStats]=\"readinessStats\"\r\n [upgradeStatus]=\"upgradeStatus\">\r\n </tk-stat-card>" }]
1858
+ }], propDecorators: { host: [{
1859
+ type: Input
1860
+ }], token: [{
1861
+ type: Input
1862
+ }], customerId: [{
1863
+ type: Input
1864
+ }] } });
1865
+
1866
+ class AlreadyUpgradedUsersCardComponent {
1867
+ constructor() {
1868
+ this.apiService = inject(APIService);
1869
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
1870
+ this.destroy$ = new Subject();
1871
+ this.title = 'Upgraded Users';
1872
+ this.type = 'user';
1873
+ this.upgradeStatus = 'already';
1874
+ this.loading = false;
1875
+ }
1876
+ ngOnInit() {
1877
+ this.apiService.token = this.token;
1878
+ this.apiService.apiUrl = this.host;
1879
+ this.upgradeOverviewService.customerId = this.customerId;
1880
+ this.loading = true;
1881
+ this.upgradeOverviewService.getUsersUpgradeSummary()
1882
+ .pipe(takeUntil(this.destroy$))
1883
+ .subscribe((stats) => {
1884
+ this.readinessStats = Object.assign(Object.assign({}, stats), { totalUpgradedUsers: 1, totalReadyUsers: 43 });
1885
+ this.loading = false;
1886
+ });
1887
+ }
1888
+ ngOnDestroy() {
1889
+ this.destroy$.next();
1890
+ this.destroy$.complete();
1891
+ }
1892
+ }
1893
+ AlreadyUpgradedUsersCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedUsersCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1894
+ AlreadyUpgradedUsersCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AlreadyUpgradedUsersCardComponent, selector: "tk-already-upgraded-users-card", inputs: { host: "host", token: "token", customerId: "customerId" }, ngImport: i0, template: `
1895
+ <tk-stat-card
1896
+ *ngIf="!loading"
1897
+ [title]="title"
1898
+ [type]="type"
1899
+ [readinessStats]="readinessStats"
1900
+ [upgradeStatus]="upgradeStatus"
1901
+ ></tk-stat-card>
1902
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: StatCardComponent, selector: "tk-stat-card", inputs: ["title", "type", "readinessStats", "upgradeStatus"] }] });
1903
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedUsersCardComponent, decorators: [{
1904
+ type: Component,
1905
+ args: [{
1906
+ selector: 'tk-already-upgraded-users-card',
1907
+ template: `
1908
+ <tk-stat-card
1909
+ *ngIf="!loading"
1910
+ [title]="title"
1911
+ [type]="type"
1912
+ [readinessStats]="readinessStats"
1913
+ [upgradeStatus]="upgradeStatus"
1914
+ ></tk-stat-card>
1915
+ `
1916
+ }]
1917
+ }], propDecorators: { host: [{
1918
+ type: Input
1919
+ }], token: [{
1920
+ type: Input
1921
+ }], customerId: [{
1922
+ type: Input
1923
+ }] } });
1924
+
1925
+ class AlreadyUpgradedSitesCardComponent {
1926
+ constructor() {
1927
+ this.apiService = inject(APIService);
1928
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
1929
+ this.destroy$ = new Subject();
1930
+ this.title = 'Upgraded Sites';
1931
+ this.type = 'site';
1932
+ this.upgradeStatus = 'already';
1933
+ this.loading = false;
1934
+ }
1935
+ ngOnInit() {
1936
+ this.apiService.token = this.token;
1937
+ this.apiService.apiUrl = this.host;
1938
+ this.upgradeOverviewService.customerId = this.customerId;
1939
+ this.loading = true;
1940
+ this.upgradeOverviewService.getSitesUpgradeSummary()
1941
+ .pipe(takeUntil(this.destroy$))
1942
+ .subscribe((stats) => {
1943
+ this.readinessStats = stats;
1944
+ this.loading = false;
1945
+ });
1946
+ }
1947
+ ngOnDestroy() {
1948
+ this.destroy$.next();
1949
+ this.destroy$.complete();
1950
+ }
1951
+ }
1952
+ AlreadyUpgradedSitesCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedSitesCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1953
+ AlreadyUpgradedSitesCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AlreadyUpgradedSitesCardComponent, selector: "tk-already-upgraded-sites-card", inputs: { host: "host", token: "token", customerId: "customerId" }, ngImport: i0, template: `
1954
+ <tk-stat-card
1955
+ *ngIf="!loading"
1956
+ [title]="title"
1957
+ [type]="type"
1958
+ [readinessStats]="readinessStats"
1959
+ [upgradeStatus]="upgradeStatus"
1960
+ ></tk-stat-card>
1961
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: StatCardComponent, selector: "tk-stat-card", inputs: ["title", "type", "readinessStats", "upgradeStatus"] }] });
1962
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedSitesCardComponent, decorators: [{
1963
+ type: Component,
1964
+ args: [{
1965
+ selector: 'tk-already-upgraded-sites-card',
1966
+ template: `
1967
+ <tk-stat-card
1968
+ *ngIf="!loading"
1969
+ [title]="title"
1970
+ [type]="type"
1971
+ [readinessStats]="readinessStats"
1972
+ [upgradeStatus]="upgradeStatus"
1973
+ ></tk-stat-card>
1974
+ `
1975
+ }]
1976
+ }], propDecorators: { host: [{
1977
+ type: Input
1978
+ }], token: [{
1979
+ type: Input
1980
+ }], customerId: [{
1981
+ type: Input
1982
+ }] } });
1983
+
1984
+ class PreconditionsStatusListCardComponent {
1985
+ constructor() {
1986
+ this.apiService = inject(APIService);
1987
+ this.destroy$ = new Subject();
1988
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
1989
+ this.title = 'Mandatory Preconditions for Upgrade';
1990
+ }
1991
+ ngOnInit() {
1992
+ this.apiService.token = this.token;
1993
+ this.apiService.apiUrl = this.host;
1994
+ this.upgradeOverviewService.customerId = this.customerId;
1995
+ this.upgradeOverviewService.getUpgradePreconditions()
1996
+ .pipe(takeUntil(this.destroy$))
1997
+ .subscribe((resp) => {
1998
+ this.preconditions = resp;
1999
+ this.init();
2000
+ });
2001
+ }
2002
+ ngOnDestroy() {
2003
+ this.destroy$.next();
2004
+ this.destroy$.complete();
2005
+ }
2006
+ init() {
2007
+ this.items = [
2008
+ {
2009
+ label: 'Control Hub Integration',
2010
+ description: 'Control Hub Connectivity',
2011
+ status: this.preconditions.controlHubIntegration === 'CONNECTED',
2012
+ tooltip: 'Your tenant must be connected to Webex Control Hub to enable and manage the upgrade process.',
2013
+ link: {
2014
+ href: `${this.host}`,
2015
+ tooltip: 'Click below to open the integration setup wizard in Tuki. If the tenant is not yet connected, you will be redirected to create the integration in Control Hub.'
2016
+ }
2017
+ },
2018
+ {
2019
+ label: 'SIP Trunk (Local Gateway)',
2020
+ description: 'CUCM trunk connectivity estabilished',
2021
+ status: true,
2022
+ tooltip: 'CUCM must have an active SIP trunk to the Local Gateway for tenant-wide external calling.',
2023
+ link: {
2024
+ href: `${this.host}`,
2025
+ tooltip: 'Confirm that the trunk is configured and connected in CUCM.'
2026
+ }
2027
+ },
2028
+ {
2029
+ label: `${this.preconditions.numberOfAvailableLicences} Available User Licences`,
2030
+ description: 'Webex calling licences provisioned and assgined',
2031
+ status: this.preconditions.numberOfAvailableLicences > 0,
2032
+ tooltip: 'Webex Calling licenses are required for users who are being upgraded.',
2033
+ link: {
2034
+ href: '',
2035
+ tooltip: ''
2036
+ }
2037
+ }
2038
+ ];
2039
+ }
2040
+ }
2041
+ PreconditionsStatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PreconditionsStatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2042
+ PreconditionsStatusListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PreconditionsStatusListCardComponent, selector: "tk-preconditions-status-list-card", inputs: { host: "host", token: "token", customerId: "customerId" }, ngImport: i0, template: `
2043
+ <tk-status-list-card
2044
+ [title]="title"
2045
+ [items]="items"
2046
+ ></tk-status-list-card>
2047
+ `, isInline: true, styles: [":host{width:100%}\n"], dependencies: [{ kind: "component", type: StatusListCardComponent, selector: "tk-status-list-card", inputs: ["title", "items"] }] });
2048
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PreconditionsStatusListCardComponent, decorators: [{
2049
+ type: Component,
2050
+ args: [{ selector: 'tk-preconditions-status-list-card', template: `
2051
+ <tk-status-list-card
2052
+ [title]="title"
2053
+ [items]="items"
2054
+ ></tk-status-list-card>
2055
+ `, styles: [":host{width:100%}\n"] }]
2056
+ }], propDecorators: { host: [{
2057
+ type: Input
2058
+ }], token: [{
2059
+ type: Input
2060
+ }], customerId: [{
2061
+ type: Input
2062
+ }] } });
2063
+
2064
+ class SiteInfrastructureStatusListCardComponent {
2065
+ constructor() {
2066
+ this.title = 'Site Preconditions';
2067
+ this.apiService = inject(APIService);
2068
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
2069
+ this.destroy$ = new Subject();
2070
+ }
2071
+ ngOnInit() {
2072
+ this.apiService.token = this.token;
2073
+ this.apiService.apiUrl = this.host;
2074
+ this.upgradeOverviewService.customerId = this.customerId;
2075
+ this.upgradeOverviewService.getSiteInfrastructureSummary()
2076
+ .pipe(takeUntil(this.destroy$))
2077
+ .subscribe((siteInfrastructure) => {
2078
+ this.items = [
2079
+ {
2080
+ label: 'PSTN Trunk',
2081
+ description: 'Public network connectivity',
2082
+ status: siteInfrastructure.totalPSTNs === siteInfrastructure.totalSites,
2083
+ totalSites: siteInfrastructure.totalSites,
2084
+ value: siteInfrastructure.totalPSTNs,
2085
+ tooltip: 'Public network connectivity is required for external calling.',
2086
+ link: {
2087
+ href: `${this.host}`,
2088
+ tooltip: 'Ensure that the site has a configured PSTN trunk in Control Hub and verify that the connection is established and active. If setup is incomplete, contact your administrator or PSTN provider.'
2089
+ }
2090
+ },
2091
+ {
2092
+ label: 'Location Mapping',
2093
+ description: 'Sites defined in Control Hub with proper configuration',
2094
+ status: siteInfrastructure.totalLocations === siteInfrastructure.totalSites,
2095
+ totalSites: siteInfrastructure.totalSites,
2096
+ value: siteInfrastructure.totalLocations,
2097
+ tooltip: 'Each site must be mapped to a Control Hub location.',
2098
+ link: {
2099
+ href: `${this.host}`,
2100
+ tooltip: 'Click below to open the Tuki mapping tool and complete the site-to-location mapping.'
2101
+ }
2102
+ },
2103
+ {
2104
+ label: 'Ready users',
2105
+ description: 'All users in the site are ready or already upgraded',
2106
+ status: false,
2107
+ totalSites: 12,
2108
+ value: siteInfrastructure.totalLocations,
2109
+ tooltip: 'All users in the site must be ready or already upgraded to ensure a successful migration.',
2110
+ link: {
2111
+ href: '',
2112
+ tooltip: ''
2113
+ }
2114
+ }
2115
+ ];
2116
+ });
2117
+ }
2118
+ ngOnDestroy() {
2119
+ this.destroy$.next();
2120
+ this.destroy$.complete();
2121
+ }
2122
+ }
2123
+ SiteInfrastructureStatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteInfrastructureStatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2124
+ SiteInfrastructureStatusListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SiteInfrastructureStatusListCardComponent, selector: "tk-site-infrastructure-status-list-card", inputs: { host: "host", token: "token", customerId: "customerId" }, ngImport: i0, template: `
2125
+ <tk-status-list-card
2126
+ [title]="title"
2127
+ [items]="items"
2128
+ ></tk-status-list-card>
2129
+ `, isInline: true, styles: [":host{width:100%}\n"], dependencies: [{ kind: "component", type: StatusListCardComponent, selector: "tk-status-list-card", inputs: ["title", "items"] }] });
2130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteInfrastructureStatusListCardComponent, decorators: [{
2131
+ type: Component,
2132
+ args: [{ selector: 'tk-site-infrastructure-status-list-card', template: `
2133
+ <tk-status-list-card
2134
+ [title]="title"
2135
+ [items]="items"
2136
+ ></tk-status-list-card>
2137
+ `, styles: [":host{width:100%}\n"] }]
2138
+ }], propDecorators: { host: [{
2139
+ type: Input
2140
+ }], token: [{
2141
+ type: Input
2142
+ }], customerId: [{
2143
+ type: Input
2144
+ }] } });
2145
+
2146
+ class UpgradeStateComparisonChartCardComponent {
2147
+ constructor() {
2148
+ this.apiService = inject(APIService);
2149
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
2150
+ this.destroy$ = new Subject();
2151
+ this.type = 'Users';
2152
+ this.loading = false;
2153
+ }
2154
+ ngOnInit() {
2155
+ this.apiService.token = this.token;
2156
+ this.apiService.apiUrl = this.host;
2157
+ this.upgradeOverviewService.customerId = this.customerId;
2158
+ this.totalUpgraded = 0;
2159
+ this.totalNotUpgraded = 0;
2160
+ this.loading = true;
2161
+ this.title = `${this.type} - Upgraded vs. Not Upgraded`;
2162
+ if (this.type === 'Sites') {
2163
+ this.upgradeOverviewService.getSitesUpgradeSummary()
2164
+ .pipe(takeUntil(this.destroy$))
2165
+ .subscribe((stats) => {
2166
+ this.totalUpgraded = parseInt(stats.totalUpgradedSites);
2167
+ this.totalNotUpgraded = parseInt(stats.totalReadySites);
2168
+ this.loading = false;
2169
+ });
2170
+ }
2171
+ else {
2172
+ this.upgradeOverviewService.getUsersUpgradeSummary()
2173
+ .pipe(takeUntil(this.destroy$))
2174
+ .subscribe((stats) => {
2175
+ this.totalUpgraded = parseInt(stats.totalUpgradedUsers);
2176
+ this.totalNotUpgraded = parseInt(stats.totalReadyUsers);
2177
+ this.loading = false;
2178
+ });
2179
+ }
2180
+ }
2181
+ ngOnDestroy() {
2182
+ this.destroy$.next();
2183
+ this.destroy$.complete();
2184
+ }
2185
+ }
2186
+ UpgradeStateComparisonChartCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeStateComparisonChartCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2187
+ UpgradeStateComparisonChartCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UpgradeStateComparisonChartCardComponent, selector: "tk-upgrade-state-comparison-chart-card", inputs: { host: "host", type: "type", token: "token", customerId: "customerId" }, ngImport: i0, template: `
2188
+ <tk-chart-card
2189
+ *ngIf="!loading"
2190
+ [title]="title"
2191
+ [totalUpgraded]="totalUpgraded"
2192
+ [totalNotUpgraded]="totalNotUpgraded"
2193
+ ></tk-chart-card>
2194
+ `, isInline: true, styles: [":host{width:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ChartCardComponent, selector: "tk-chart-card", inputs: ["title", "totalUpgraded", "totalNotUpgraded"] }] });
2195
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeStateComparisonChartCardComponent, decorators: [{
2196
+ type: Component,
2197
+ args: [{ selector: "tk-upgrade-state-comparison-chart-card", template: `
2198
+ <tk-chart-card
2199
+ *ngIf="!loading"
2200
+ [title]="title"
2201
+ [totalUpgraded]="totalUpgraded"
2202
+ [totalNotUpgraded]="totalNotUpgraded"
2203
+ ></tk-chart-card>
2204
+ `, styles: [":host{width:100%}\n"] }]
2205
+ }], propDecorators: { host: [{
2206
+ type: Input
2207
+ }], type: [{
2208
+ type: Input
2209
+ }], token: [{
2210
+ type: Input
2211
+ }], customerId: [{
2212
+ type: Input
2213
+ }] } });
2214
+
2215
+ class PendingActivationUsersCardComponent {
2216
+ constructor() {
2217
+ this.apiService = inject(APIService);
2218
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
2219
+ this.destroy$ = new Subject();
2220
+ this.title = 'Pending Activation Users';
2221
+ this.type = 'user';
2222
+ this.upgradeStatus = 'pending';
2223
+ this.loading = false;
2224
+ }
2225
+ ngOnInit() {
2226
+ this.apiService.token = this.token;
2227
+ this.apiService.apiUrl = this.host;
2228
+ this.upgradeOverviewService.customerId = this.customerId;
2229
+ this.loading = true;
2230
+ // this.upgradeOverviewService.getUsersUpgradeSummary()
2231
+ // .pipe(takeUntil(this.destroy$))
2232
+ // .subscribe((stats) => {
2233
+ // this.readinessStats = {
2234
+ // ...stats,
2235
+ // pendingActivation: 1,
2236
+ // totalUpgradedUsers: 1,
2237
+ // };
2238
+ // this.loading = false;
2239
+ // });
2240
+ // }
2241
+ forkJoin({
2242
+ summary: this.upgradeOverviewService.getUsersUpgradeSummary(),
2243
+ pendingActivation: this.upgradeOverviewService.getPendingActivationCount()
2244
+ }).pipe(takeUntil(this.destroy$))
2245
+ .subscribe(({ summary, pendingActivation }) => {
2246
+ this.readinessStats = Object.assign(Object.assign({}, summary), { pendingActivation });
2247
+ this.loading = false;
2248
+ });
2249
+ }
2250
+ ngOnDestroy() {
2251
+ this.destroy$.next();
2252
+ this.destroy$.complete();
2253
+ }
2254
+ }
2255
+ PendingActivationUsersCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PendingActivationUsersCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2256
+ PendingActivationUsersCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PendingActivationUsersCardComponent, selector: "tk-pending-activation-users-card", inputs: { host: "host", token: "token", customerId: "customerId" }, ngImport: i0, template: `
2257
+ <tk-stat-card
2258
+ *ngIf="!loading"
2259
+ [title]="title"
2260
+ [type]="type"
2261
+ [readinessStats]="readinessStats"
2262
+ [upgradeStatus]="upgradeStatus"
2263
+ ></tk-stat-card>
2264
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: StatCardComponent, selector: "tk-stat-card", inputs: ["title", "type", "readinessStats", "upgradeStatus"] }] });
2265
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PendingActivationUsersCardComponent, decorators: [{
2266
+ type: Component,
2267
+ args: [{
2268
+ selector: 'tk-pending-activation-users-card',
2269
+ template: `
2270
+ <tk-stat-card
2271
+ *ngIf="!loading"
2272
+ [title]="title"
2273
+ [type]="type"
2274
+ [readinessStats]="readinessStats"
2275
+ [upgradeStatus]="upgradeStatus"
2276
+ ></tk-stat-card>
2277
+ `
2278
+ }]
2279
+ }], propDecorators: { host: [{
2280
+ type: Input
2281
+ }], token: [{
2282
+ type: Input
2283
+ }], customerId: [{
2284
+ type: Input
2285
+ }] } });
2286
+
2287
+ class UpgradeOverviewModule {
2288
+ }
2289
+ UpgradeOverviewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2290
+ UpgradeOverviewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, declarations: [ReadyToUpgradeUsersCardComponent,
2291
+ ReadyToUpgradeSitesCardComponent,
2292
+ AlreadyUpgradedUsersCardComponent,
2293
+ AlreadyUpgradedSitesCardComponent,
2294
+ PreconditionsStatusListCardComponent,
2295
+ SiteInfrastructureStatusListCardComponent,
2296
+ UpgradeStateComparisonChartCardComponent,
2297
+ PendingActivationUsersCardComponent], imports: [CommonModule,
2298
+ SharedModule], exports: [ReadyToUpgradeUsersCardComponent,
2299
+ ReadyToUpgradeSitesCardComponent,
2300
+ AlreadyUpgradedUsersCardComponent,
2301
+ AlreadyUpgradedSitesCardComponent,
2302
+ PreconditionsStatusListCardComponent,
2303
+ SiteInfrastructureStatusListCardComponent,
2304
+ UpgradeStateComparisonChartCardComponent,
2305
+ PendingActivationUsersCardComponent] });
2306
+ UpgradeOverviewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, imports: [CommonModule,
2307
+ SharedModule] });
2308
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, decorators: [{
2309
+ type: NgModule,
2310
+ args: [{
2311
+ declarations: [
2312
+ ReadyToUpgradeUsersCardComponent,
2313
+ ReadyToUpgradeSitesCardComponent,
2314
+ AlreadyUpgradedUsersCardComponent,
2315
+ AlreadyUpgradedSitesCardComponent,
2316
+ PreconditionsStatusListCardComponent,
2317
+ SiteInfrastructureStatusListCardComponent,
2318
+ UpgradeStateComparisonChartCardComponent,
2319
+ PendingActivationUsersCardComponent,
2320
+ ],
2321
+ imports: [
2322
+ CommonModule,
2323
+ SharedModule
2324
+ ],
2325
+ exports: [
2326
+ ReadyToUpgradeUsersCardComponent,
2327
+ ReadyToUpgradeSitesCardComponent,
2328
+ AlreadyUpgradedUsersCardComponent,
2329
+ AlreadyUpgradedSitesCardComponent,
2330
+ PreconditionsStatusListCardComponent,
2331
+ SiteInfrastructureStatusListCardComponent,
2332
+ UpgradeStateComparisonChartCardComponent,
2333
+ PendingActivationUsersCardComponent,
2334
+ ],
2335
+ providers: []
2336
+ }]
2337
+ }] });
2338
+
2339
+ /*
2340
+ * Public API Surface of @tuki-io/tuki-widgets
2341
+ */
2342
+ // Shared Components
2343
+ // export * from './shared/shared.module';
2344
+ // Widget Modules
2345
+ // Types
2346
+ // export * from './shared/types/data-table';
2347
+
2348
+ /**
2349
+ * Generated bundle index. Do not edit.
2350
+ */
2351
+
2352
+ export { AlreadyUpgradedSitesCardComponent, AlreadyUpgradedUsersCardComponent, PendingActivationUsersCardComponent, PreconditionsStatusListCardComponent, ProgressBarComponent, ReadyToUpgradeSitesCardComponent, ReadyToUpgradeUsersCardComponent, SiteInfrastructureStatusListCardComponent, SiteUpgradeDataTableComponent, SiteUpgradeModule, UpgradeOverviewModule, UpgradeStateComparisonChartCardComponent, UserUpgradeDataTableComponent, UserUpgradeModule };
2353
+ //# sourceMappingURL=tuki-io-tuki-widgets-di2mt.mjs.map