@tuki-io/tuki-widgets 0.0.70 → 0.0.71

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 (654) hide show
  1. package/README.md +9 -10
  2. package/di2mt/api/api.endpoints.d.ts +20 -0
  3. package/di2mt/index.d.ts +5 -0
  4. package/{projects/tuki/widgets/di2mt/public-api.ts → di2mt/public-api.d.ts} +12 -26
  5. package/di2mt/shared/components/card/card.component.d.ts +6 -0
  6. package/di2mt/shared/components/chart-card/chart-card.component.d.ts +22 -0
  7. package/di2mt/shared/components/stat-card/stat-card.component.d.ts +14 -0
  8. package/di2mt/shared/components/status-list-card/status-list-card.component.d.ts +7 -0
  9. package/di2mt/shared/components/summary-card/summary-card.component.d.ts +9 -0
  10. package/di2mt/shared/components/table-filters/table-filters.component.d.ts +14 -0
  11. package/di2mt/shared/material.module.d.ts +15 -0
  12. package/di2mt/shared/services/api.service.d.ts +20 -0
  13. package/di2mt/shared/shared.module.d.ts +16 -0
  14. package/di2mt/shared/types/constants.d.ts +7 -0
  15. package/di2mt/shared/types/data-table.d.ts +5 -0
  16. package/di2mt/shared/types/table/filter.d.ts +16 -0
  17. package/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.d.ts +48 -0
  18. package/di2mt/widgets/site-upgrade/site-upgrade.module.d.ts +12 -0
  19. package/di2mt/widgets/site-upgrade/site-upgrade.service.d.ts +12 -0
  20. package/{projects/tuki/widgets/di2mt/widgets/site-upgrade/types/user-upgrade.ts → di2mt/widgets/site-upgrade/types/user-upgrade.d.ts} +14 -15
  21. package/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.d.ts +19 -0
  22. package/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.d.ts +19 -0
  23. package/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.d.ts +18 -0
  24. package/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.d.ts +19 -0
  25. package/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.d.ts +19 -0
  26. package/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.d.ts +15 -0
  27. package/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.d.ts +18 -0
  28. package/{projects/tuki/widgets/di2mt/widgets/upgrade-overview/types/upgrade-overview.ts → di2mt/widgets/upgrade-overview/types/upgrade-overview.d.ts} +56 -58
  29. package/di2mt/widgets/upgrade-overview/upgrade-overview.module.d.ts +15 -0
  30. package/di2mt/widgets/upgrade-overview/upgrade-overview.service.d.ts +17 -0
  31. package/{projects/tuki/widgets/di2mt/widgets/user-upgrade/types/user-upgrade.ts → di2mt/widgets/user-upgrade/types/user-upgrade.d.ts} +16 -18
  32. package/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.d.ts +49 -0
  33. package/di2mt/widgets/user-upgrade/user-upgrade.module.d.ts +12 -0
  34. package/di2mt/widgets/user-upgrade/user-upgrade.service.d.ts +14 -0
  35. package/esm2020/di2mt/api/api.endpoints.mjs +21 -0
  36. package/esm2020/di2mt/public-api.mjs +23 -0
  37. package/esm2020/di2mt/shared/components/card/card.component.mjs +13 -0
  38. package/esm2020/di2mt/shared/components/chart-card/chart-card.component.mjs +62 -0
  39. package/esm2020/di2mt/shared/components/stat-card/stat-card.component.mjs +47 -0
  40. package/esm2020/di2mt/shared/components/status-list-card/status-list-card.component.mjs +17 -0
  41. package/esm2020/di2mt/shared/components/summary-card/summary-card.component.mjs +36 -0
  42. package/esm2020/di2mt/shared/components/table-filters/table-filters.component.mjs +37 -0
  43. package/esm2020/di2mt/shared/material.module.mjs +76 -0
  44. package/esm2020/di2mt/shared/services/api.service.mjs +86 -0
  45. package/esm2020/di2mt/shared/shared.module.mjs +61 -0
  46. package/esm2020/di2mt/shared/types/constants.mjs +12 -0
  47. package/esm2020/di2mt/shared/types/data-table.mjs +2 -0
  48. package/esm2020/di2mt/shared/types/table/filter.mjs +2 -0
  49. package/esm2020/di2mt/tuki-io-tuki-widgets-di2mt.mjs +5 -0
  50. package/esm2020/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.mjs +182 -0
  51. package/esm2020/di2mt/widgets/site-upgrade/site-upgrade.module.mjs +40 -0
  52. package/esm2020/di2mt/widgets/site-upgrade/site-upgrade.service.mjs +43 -0
  53. package/esm2020/di2mt/widgets/site-upgrade/types/user-upgrade.mjs +3 -0
  54. package/esm2020/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.mjs +64 -0
  55. package/esm2020/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.mjs +64 -0
  56. package/esm2020/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.mjs +68 -0
  57. package/esm2020/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.mjs +45 -0
  58. package/esm2020/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.mjs +45 -0
  59. package/esm2020/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.mjs +64 -0
  60. package/esm2020/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.mjs +74 -0
  61. package/esm2020/di2mt/widgets/upgrade-overview/types/upgrade-overview.mjs +2 -0
  62. package/esm2020/di2mt/widgets/upgrade-overview/upgrade-overview.module.mjs +59 -0
  63. package/esm2020/di2mt/widgets/upgrade-overview/upgrade-overview.service.mjs +82 -0
  64. package/esm2020/di2mt/widgets/user-upgrade/types/user-upgrade.mjs +3 -0
  65. package/esm2020/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.mjs +197 -0
  66. package/esm2020/di2mt/widgets/user-upgrade/user-upgrade.module.mjs +40 -0
  67. package/esm2020/di2mt/widgets/user-upgrade/user-upgrade.service.mjs +58 -0
  68. package/esm2020/lib/widgets.component.mjs +22 -0
  69. package/esm2020/lib/widgets.module.mjs +21 -0
  70. package/esm2020/lib/widgets.service.mjs +14 -0
  71. package/esm2020/public-api.mjs +7 -0
  72. package/esm2020/tuki-io-tuki-widgets.mjs +5 -0
  73. package/esm2020/user-device-manage/public-api.mjs +9 -0
  74. package/esm2020/user-device-manage/src/app.constants.mjs +95 -0
  75. package/esm2020/user-device-manage/src/classes/device.mjs +85 -0
  76. package/esm2020/user-device-manage/src/classes/line-association-interface.mjs +2 -0
  77. package/esm2020/user-device-manage/src/classes/line-association.mjs +121 -0
  78. package/esm2020/user-device-manage/src/classes/line-call-info-display.mjs +10 -0
  79. package/esm2020/user-device-manage/src/classes/line-directory.mjs +27 -0
  80. package/esm2020/user-device-manage/src/classes/line.mjs +18 -0
  81. package/esm2020/user-device-manage/src/classes/notification.mjs +32 -0
  82. package/esm2020/user-device-manage/src/classes/recording-options.mjs +7 -0
  83. package/esm2020/user-device-manage/src/classes/simplified-user.mjs +111 -0
  84. package/esm2020/user-device-manage/src/classes/site-defaults.mjs +21 -0
  85. package/esm2020/user-device-manage/src/classes/translation-pattern.mjs +32 -0
  86. package/esm2020/user-device-manage/src/classes/types.mjs +24 -0
  87. package/esm2020/user-device-manage/src/common-functions.mjs +19 -0
  88. package/esm2020/user-device-manage/src/confirm-dialog/info-dialog.component.mjs +34 -0
  89. package/esm2020/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.mjs +31 -0
  90. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.mjs +16 -0
  91. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.mjs +64 -0
  92. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line.component.mjs +179 -0
  93. package/esm2020/user-device-manage/src/device-list/device-list.component.mjs +24 -0
  94. package/esm2020/user-device-manage/src/device-manage-widget.component.mjs +335 -0
  95. package/esm2020/user-device-manage/src/environments/environment.mjs +11 -0
  96. package/esm2020/user-device-manage/src/interseptors/auth.interceptor.mjs +36 -0
  97. package/esm2020/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +74 -0
  98. package/esm2020/user-device-manage/src/material.module.mjs +192 -0
  99. package/esm2020/user-device-manage/src/notifications/notification.component.mjs +35 -0
  100. package/esm2020/user-device-manage/src/services/api.service.mjs +79 -0
  101. package/esm2020/user-device-manage/src/services/device.service.mjs +83 -0
  102. package/esm2020/user-device-manage/src/services/dns.service.mjs +104 -0
  103. package/esm2020/user-device-manage/src/services/line.service.mjs +76 -0
  104. package/esm2020/user-device-manage/src/services/notification.service.mjs +62 -0
  105. package/esm2020/user-device-manage/src/services/removeKynFromIBM.service.mjs +25 -0
  106. package/esm2020/user-device-manage/src/services/site-settings.service.mjs +70 -0
  107. package/esm2020/user-device-manage/src/services/sorting-utils.service.mjs +197 -0
  108. package/esm2020/user-device-manage/src/services/user.service.mjs +243 -0
  109. package/esm2020/user-device-manage/src/services/utils.service.mjs +87 -0
  110. package/esm2020/user-device-manage/src/services/validation.service.mjs +760 -0
  111. package/esm2020/user-device-manage/src/user-device-manage.module.mjs +107 -0
  112. package/esm2020/user-device-manage/src/utils/app-loader/app-loader.mjs +14 -0
  113. package/esm2020/user-device-manage/tuki-io-tuki-widgets-user-device-manage.mjs +5 -0
  114. package/esm2020/user-manage/public-api.mjs +7 -0
  115. package/esm2020/user-manage/src/app.constants.mjs +50 -0
  116. package/esm2020/user-manage/src/classes/device.mjs +37 -0
  117. package/esm2020/user-manage/src/classes/line-association-interface.mjs +2 -0
  118. package/esm2020/user-manage/src/classes/line-association.mjs +110 -0
  119. package/esm2020/user-manage/src/classes/line-call-info-display.mjs +10 -0
  120. package/esm2020/user-manage/src/classes/line-directory.mjs +27 -0
  121. package/esm2020/user-manage/src/classes/line.mjs +18 -0
  122. package/esm2020/user-manage/src/classes/notification.mjs +32 -0
  123. package/esm2020/user-manage/src/classes/pagination.mjs +8 -0
  124. package/esm2020/user-manage/src/classes/recording-options.mjs +7 -0
  125. package/esm2020/user-manage/src/classes/simplified-user.mjs +109 -0
  126. package/esm2020/user-manage/src/classes/table-data.mjs +2 -0
  127. package/esm2020/user-manage/src/classes/translation-pattern.mjs +32 -0
  128. package/esm2020/user-manage/src/classes/user-list.mjs +10 -0
  129. package/esm2020/user-manage/src/common-functions.mjs +19 -0
  130. package/esm2020/user-manage/src/device-list/device-list.component.mjs +24 -0
  131. package/esm2020/user-manage/src/environments/environment.mjs +11 -0
  132. package/esm2020/user-manage/src/interseptors/auth.interceptor.mjs +36 -0
  133. package/esm2020/user-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +74 -0
  134. package/esm2020/user-manage/src/material.module.mjs +188 -0
  135. package/esm2020/user-manage/src/notifications/notification.component.mjs +35 -0
  136. package/esm2020/user-manage/src/removeKynFromIBM.service.mjs +25 -0
  137. package/esm2020/user-manage/src/services/api.service.mjs +79 -0
  138. package/esm2020/user-manage/src/services/dns.service.mjs +110 -0
  139. package/esm2020/user-manage/src/services/line.service.mjs +34 -0
  140. package/esm2020/user-manage/src/services/notification.service.mjs +62 -0
  141. package/esm2020/user-manage/src/services/removeKynFromIBM.service.mjs +25 -0
  142. package/esm2020/user-manage/src/services/site-settings.service.mjs +36 -0
  143. package/esm2020/user-manage/src/services/sorting-utils.service.mjs +197 -0
  144. package/esm2020/user-manage/src/services/user.service.mjs +207 -0
  145. package/esm2020/user-manage/src/services/users-search.service.mjs +50 -0
  146. package/esm2020/user-manage/src/services/utils.service.mjs +73 -0
  147. package/esm2020/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.mjs +65 -0
  148. package/esm2020/user-manage/src/user-calling/user-calling.component.mjs +78 -0
  149. package/esm2020/user-manage/src/user-info/user-info.component.mjs +20 -0
  150. package/esm2020/user-manage/src/user-manage-widget.component.mjs +208 -0
  151. package/esm2020/user-manage/src/user-manage.module.mjs +99 -0
  152. package/esm2020/user-manage/src/utils/app-loader/app-loader.mjs +14 -0
  153. package/esm2020/user-manage/src/utils/pagination/pagination.component.mjs +43 -0
  154. package/esm2020/user-manage/tuki-io-tuki-widgets-user-manage.mjs +5 -0
  155. package/esm2020/users-list/public-api.mjs +9 -0
  156. package/esm2020/users-list/src/app.constants.mjs +54 -0
  157. package/esm2020/users-list/src/classes/app-location.mjs +32 -0
  158. package/esm2020/users-list/src/classes/device.mjs +7 -0
  159. package/esm2020/users-list/src/classes/line.mjs +18 -0
  160. package/esm2020/users-list/src/classes/move-user.mjs +178 -0
  161. package/esm2020/users-list/src/classes/notification.mjs +31 -0
  162. package/esm2020/users-list/src/classes/pagination.mjs +8 -0
  163. package/esm2020/users-list/src/classes/simlified-user.mjs +50 -0
  164. package/esm2020/users-list/src/classes/table-data.mjs +2 -0
  165. package/esm2020/users-list/src/classes/user-list.mjs +14 -0
  166. package/esm2020/users-list/src/material.module.mjs +209 -0
  167. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.mjs +38 -0
  168. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.mjs +23 -0
  169. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.mjs +189 -0
  170. package/esm2020/users-list/src/move-user-wizard/move-user-wizard.component.mjs +38 -0
  171. package/esm2020/users-list/src/services/api-webex.service.mjs +18 -0
  172. package/esm2020/users-list/src/services/api.service.mjs +78 -0
  173. package/esm2020/users-list/src/services/dns.service.mjs +120 -0
  174. package/esm2020/users-list/src/services/events-communication.service.mjs +14 -0
  175. package/esm2020/users-list/src/services/move-user.service.mjs +53 -0
  176. package/esm2020/users-list/src/services/notification.service.mjs +62 -0
  177. package/esm2020/users-list/src/services/removeKynFromIBM.service.mjs +25 -0
  178. package/esm2020/users-list/src/services/site-settings.service.mjs +27 -0
  179. package/esm2020/users-list/src/services/user.service.mjs +142 -0
  180. package/esm2020/users-list/src/services/users-search.service.mjs +122 -0
  181. package/esm2020/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.mjs +34 -0
  182. package/esm2020/users-list/src/users-list.component.mjs +287 -0
  183. package/esm2020/users-list/src/users-list.module.mjs +92 -0
  184. package/esm2020/users-list/src/utils/app-loader/app-loader.mjs +14 -0
  185. package/esm2020/users-list/src/utils/common-functions.mjs +32 -0
  186. package/esm2020/users-list/src/utils/pagination/pagination.component.mjs +43 -0
  187. package/esm2020/users-list/src/utils/utils.service.mjs +73 -0
  188. package/esm2020/users-list/tuki-io-tuki-widgets-users-list.mjs +5 -0
  189. package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs +1469 -0
  190. package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +1 -0
  191. package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs +3402 -0
  192. package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -0
  193. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +2124 -0
  194. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
  195. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +1994 -0
  196. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
  197. package/fesm2015/tuki-io-tuki-widgets.mjs +63 -0
  198. package/fesm2015/tuki-io-tuki-widgets.mjs.map +1 -0
  199. package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs +1460 -0
  200. package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs.map +1 -0
  201. package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs +3364 -0
  202. package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -0
  203. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +2107 -0
  204. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
  205. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +1973 -0
  206. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
  207. package/fesm2020/tuki-io-tuki-widgets.mjs +63 -0
  208. package/fesm2020/tuki-io-tuki-widgets.mjs.map +1 -0
  209. package/index.d.ts +5 -0
  210. package/lib/widgets.component.d.ts +8 -0
  211. package/lib/widgets.module.d.ts +7 -0
  212. package/lib/widgets.service.d.ts +6 -0
  213. package/package.json +65 -47
  214. package/{projects/tuki/widgets/src/public-api.ts → public-api.d.ts} +0 -4
  215. package/user-device-manage/index.d.ts +5 -0
  216. package/user-device-manage/src/app.constants.d.ts +74 -0
  217. package/user-device-manage/src/classes/device.d.ts +233 -0
  218. package/user-device-manage/src/classes/line-association-interface.d.ts +45 -0
  219. package/user-device-manage/src/classes/line-association.d.ts +62 -0
  220. package/user-device-manage/src/classes/line-call-info-display.d.ts +11 -0
  221. package/user-device-manage/src/classes/line-directory.d.ts +15 -0
  222. package/user-device-manage/src/classes/line.d.ts +140 -0
  223. package/user-device-manage/src/classes/notification.d.ts +18 -0
  224. package/user-device-manage/src/classes/recording-options.d.ts +5 -0
  225. package/user-device-manage/src/classes/simplified-user.d.ts +52 -0
  226. package/user-device-manage/src/classes/site-defaults.d.ts +146 -0
  227. package/user-device-manage/src/classes/translation-pattern.d.ts +19 -0
  228. package/user-device-manage/src/classes/types.d.ts +19 -0
  229. package/user-device-manage/src/common-functions.d.ts +1 -0
  230. package/user-device-manage/src/confirm-dialog/info-dialog.component.d.ts +20 -0
  231. package/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.d.ts +15 -0
  232. package/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.d.ts +7 -0
  233. package/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.d.ts +24 -0
  234. package/user-device-manage/src/device-associated-line/device-associated-line.component.d.ts +89 -0
  235. package/user-device-manage/src/device-list/device-list.component.d.ts +11 -0
  236. package/user-device-manage/src/device-manage-widget.component.d.ts +71 -0
  237. package/user-device-manage/src/environments/environment.d.ts +9 -0
  238. package/user-device-manage/src/interseptors/auth.interceptor.d.ts +9 -0
  239. package/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +35 -0
  240. package/user-device-manage/src/material.module.d.ts +29 -0
  241. package/user-device-manage/src/notifications/notification.component.d.ts +19 -0
  242. package/user-device-manage/src/services/api.service.d.ts +20 -0
  243. package/user-device-manage/src/services/device.service.d.ts +21 -0
  244. package/user-device-manage/src/services/dns.service.d.ts +14 -0
  245. package/user-device-manage/src/services/line.service.d.ts +33 -0
  246. package/user-device-manage/src/services/notification.service.d.ts +18 -0
  247. package/user-device-manage/src/services/removeKynFromIBM.service.d.ts +8 -0
  248. package/user-device-manage/src/services/site-settings.service.d.ts +25 -0
  249. package/user-device-manage/src/services/sorting-utils.service.d.ts +26 -0
  250. package/user-device-manage/src/services/user.service.d.ts +51 -0
  251. package/user-device-manage/src/services/utils.service.d.ts +10 -0
  252. package/user-device-manage/src/services/validation.service.d.ts +165 -0
  253. package/user-device-manage/src/user-device-manage.module.d.ts +22 -0
  254. package/user-device-manage/src/utils/app-loader/app-loader.d.ts +6 -0
  255. package/user-manage/index.d.ts +5 -0
  256. package/user-manage/src/app.constants.d.ts +29 -0
  257. package/user-manage/src/classes/device.d.ts +203 -0
  258. package/user-manage/src/classes/line-association-interface.d.ts +40 -0
  259. package/user-manage/src/classes/line-association.d.ts +55 -0
  260. package/user-manage/src/classes/line-call-info-display.d.ts +11 -0
  261. package/user-manage/src/classes/line-directory.d.ts +16 -0
  262. package/user-manage/src/classes/line.d.ts +140 -0
  263. package/user-manage/src/classes/notification.d.ts +18 -0
  264. package/user-manage/src/classes/pagination.d.ts +13 -0
  265. package/user-manage/src/classes/recording-options.d.ts +5 -0
  266. package/user-manage/src/classes/simplified-user.d.ts +50 -0
  267. package/user-manage/src/classes/table-data.d.ts +5 -0
  268. package/user-manage/src/classes/translation-pattern.d.ts +18 -0
  269. package/user-manage/src/classes/user-list.d.ts +34 -0
  270. package/user-manage/src/common-functions.d.ts +1 -0
  271. package/user-manage/src/device-list/device-list.component.d.ts +11 -0
  272. package/user-manage/src/environments/environment.d.ts +9 -0
  273. package/user-manage/src/interseptors/auth.interceptor.d.ts +9 -0
  274. package/user-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +35 -0
  275. package/user-manage/src/material.module.d.ts +28 -0
  276. package/user-manage/src/notifications/notification.component.d.ts +19 -0
  277. package/user-manage/src/removeKynFromIBM.service.d.ts +8 -0
  278. package/user-manage/src/services/api.service.d.ts +21 -0
  279. package/user-manage/src/services/dns.service.d.ts +14 -0
  280. package/user-manage/src/services/line.service.d.ts +17 -0
  281. package/user-manage/src/services/notification.service.d.ts +18 -0
  282. package/user-manage/src/services/removeKynFromIBM.service.d.ts +8 -0
  283. package/user-manage/src/services/site-settings.service.d.ts +9 -0
  284. package/user-manage/src/services/sorting-utils.service.d.ts +26 -0
  285. package/user-manage/src/services/user.service.d.ts +43 -0
  286. package/user-manage/src/services/users-search.service.d.ts +25 -0
  287. package/user-manage/src/services/utils.service.d.ts +9 -0
  288. package/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.d.ts +24 -0
  289. package/user-manage/src/user-calling/user-calling.component.d.ts +30 -0
  290. package/user-manage/src/user-info/user-info.component.d.ts +9 -0
  291. package/user-manage/src/user-manage-widget.component.d.ts +45 -0
  292. package/user-manage/src/user-manage.module.d.ts +21 -0
  293. package/user-manage/src/utils/app-loader/app-loader.d.ts +6 -0
  294. package/user-manage/src/utils/pagination/pagination.component.d.ts +18 -0
  295. package/users-list/index.d.ts +5 -0
  296. package/users-list/src/app.constants.d.ts +36 -0
  297. package/users-list/src/classes/app-location.d.ts +17 -0
  298. package/users-list/src/classes/device.d.ts +224 -0
  299. package/users-list/src/classes/line.d.ts +140 -0
  300. package/users-list/src/classes/move-user.d.ts +85 -0
  301. package/users-list/src/classes/notification.d.ts +18 -0
  302. package/users-list/src/classes/pagination.d.ts +13 -0
  303. package/users-list/src/classes/simlified-user.d.ts +25 -0
  304. package/users-list/src/classes/table-data.d.ts +5 -0
  305. package/users-list/src/classes/user-list.d.ts +36 -0
  306. package/users-list/src/material.module.d.ts +31 -0
  307. package/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.d.ts +21 -0
  308. package/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.d.ts +12 -0
  309. package/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.d.ts +55 -0
  310. package/users-list/src/move-user-wizard/move-user-wizard.component.d.ts +17 -0
  311. package/users-list/src/services/api-webex.service.d.ts +8 -0
  312. package/users-list/src/services/api.service.d.ts +21 -0
  313. package/users-list/src/services/dns.service.d.ts +18 -0
  314. package/users-list/src/services/events-communication.service.d.ts +8 -0
  315. package/users-list/src/services/move-user.service.d.ts +17 -0
  316. package/users-list/src/services/notification.service.d.ts +18 -0
  317. package/users-list/src/services/removeKynFromIBM.service.d.ts +8 -0
  318. package/users-list/src/services/site-settings.service.d.ts +11 -0
  319. package/users-list/src/services/user.service.d.ts +35 -0
  320. package/users-list/src/services/users-search.service.d.ts +34 -0
  321. package/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.d.ts +20 -0
  322. package/users-list/src/users-list.component.d.ts +60 -0
  323. package/users-list/src/users-list.module.d.ts +18 -0
  324. package/users-list/src/utils/app-loader/app-loader.d.ts +6 -0
  325. package/users-list/src/utils/common-functions.d.ts +2 -0
  326. package/users-list/src/utils/pagination/pagination.component.d.ts +18 -0
  327. package/users-list/src/utils/utils.service.d.ts +9 -0
  328. package/.editorconfig +0 -16
  329. package/.hintrc +0 -14
  330. package/.vscode/extensions.json +0 -4
  331. package/.vscode/launch.json +0 -20
  332. package/.vscode/tasks.json +0 -42
  333. package/angular.json +0 -140
  334. package/projects/tuki/widgets/README.md +0 -24
  335. package/projects/tuki/widgets/di2mt/api/api.endpoints.ts +0 -20
  336. package/projects/tuki/widgets/di2mt/ng-package.json +0 -7
  337. package/projects/tuki/widgets/di2mt/shared/components/card/card.component.html +0 -11
  338. package/projects/tuki/widgets/di2mt/shared/components/card/card.component.scss +0 -48
  339. package/projects/tuki/widgets/di2mt/shared/components/card/card.component.ts +0 -10
  340. package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.html +0 -15
  341. package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.scss +0 -38
  342. package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.ts +0 -71
  343. package/projects/tuki/widgets/di2mt/shared/components/index.ts +0 -6
  344. package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.html +0 -57
  345. package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.scss +0 -74
  346. package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.ts +0 -44
  347. package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.html +0 -28
  348. package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.scss +0 -55
  349. package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.ts +0 -11
  350. package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.html +0 -12
  351. package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.scss +0 -76
  352. package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.ts +0 -27
  353. package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.html +0 -28
  354. package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.scss +0 -52
  355. package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.ts +0 -28
  356. package/projects/tuki/widgets/di2mt/shared/material.module.ts +0 -36
  357. package/projects/tuki/widgets/di2mt/shared/services/api.service.ts +0 -92
  358. package/projects/tuki/widgets/di2mt/shared/shared.module.ts +0 -38
  359. package/projects/tuki/widgets/di2mt/shared/types/constants.ts +0 -14
  360. package/projects/tuki/widgets/di2mt/shared/types/data-table.ts +0 -5
  361. package/projects/tuki/widgets/di2mt/shared/types/table/filter.ts +0 -14
  362. package/projects/tuki/widgets/di2mt/styles/tuki-widgets-theme.scss +0 -13
  363. package/projects/tuki/widgets/di2mt/styles/variables.scss +0 -92
  364. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.html +0 -92
  365. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.scss +0 -187
  366. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.ts +0 -205
  367. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.module.ts +0 -24
  368. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.service.ts +0 -45
  369. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.ts +0 -52
  370. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.ts +0 -53
  371. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.ts +0 -67
  372. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.html +0 -7
  373. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.scss +0 -0
  374. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.ts +0 -45
  375. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.html +0 -7
  376. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.scss +0 -0
  377. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.ts +0 -45
  378. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.ts +0 -59
  379. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.ts +0 -70
  380. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/upgrade-overview.module.ts +0 -42
  381. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/upgrade-overview.service.ts +0 -95
  382. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.html +0 -131
  383. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.scss +0 -275
  384. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.ts +0 -218
  385. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.module.ts +0 -24
  386. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.service.ts +0 -73
  387. package/projects/tuki/widgets/karma.conf.js +0 -44
  388. package/projects/tuki/widgets/ng-package.json +0 -10
  389. package/projects/tuki/widgets/package.json +0 -13
  390. package/projects/tuki/widgets/src/lib/widgets.component.spec.ts +0 -23
  391. package/projects/tuki/widgets/src/lib/widgets.component.ts +0 -20
  392. package/projects/tuki/widgets/src/lib/widgets.module.ts +0 -16
  393. package/projects/tuki/widgets/src/lib/widgets.service.spec.ts +0 -16
  394. package/projects/tuki/widgets/src/lib/widgets.service.ts +0 -9
  395. package/projects/tuki/widgets/src/test.ts +0 -27
  396. package/projects/tuki/widgets/styles.scss +0 -572
  397. package/projects/tuki/widgets/tsconfig.lib.json +0 -36
  398. package/projects/tuki/widgets/tsconfig.lib.prod.json +0 -10
  399. package/projects/tuki/widgets/tsconfig.spec.json +0 -17
  400. package/projects/tuki/widgets/user-device-manage/ng-package.json +0 -7
  401. package/projects/tuki/widgets/user-device-manage/src/app.constants.ts +0 -96
  402. package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-left.svg +0 -5
  403. package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-right.svg +0 -5
  404. package/projects/tuki/widgets/user-device-manage/src/assets/icons/close_icon_x.svg +0 -3
  405. package/projects/tuki/widgets/user-device-manage/src/assets/icons/delete_icon.svg +0 -5
  406. package/projects/tuki/widgets/user-device-manage/src/assets/icons/dragger-vertical-icon.svg +0 -3
  407. package/projects/tuki/widgets/user-device-manage/src/assets/icons/icon_user.svg +0 -1
  408. package/projects/tuki/widgets/user-device-manage/src/assets/icons/vartical_divider_icon.svg +0 -3
  409. package/projects/tuki/widgets/user-device-manage/src/classes/device.ts +0 -292
  410. package/projects/tuki/widgets/user-device-manage/src/classes/line-association-interface.ts +0 -50
  411. package/projects/tuki/widgets/user-device-manage/src/classes/line-association.ts +0 -177
  412. package/projects/tuki/widgets/user-device-manage/src/classes/line-call-info-display.ts +0 -21
  413. package/projects/tuki/widgets/user-device-manage/src/classes/line-directory.ts +0 -41
  414. package/projects/tuki/widgets/user-device-manage/src/classes/line.ts +0 -144
  415. package/projects/tuki/widgets/user-device-manage/src/classes/notification.ts +0 -40
  416. package/projects/tuki/widgets/user-device-manage/src/classes/recording-options.ts +0 -6
  417. package/projects/tuki/widgets/user-device-manage/src/classes/simplified-user.ts +0 -169
  418. package/projects/tuki/widgets/user-device-manage/src/classes/site-defaults.ts +0 -167
  419. package/projects/tuki/widgets/user-device-manage/src/classes/translation-pattern.ts +0 -50
  420. package/projects/tuki/widgets/user-device-manage/src/classes/types.ts +0 -19
  421. package/projects/tuki/widgets/user-device-manage/src/classes/user-interface.ts +0 -225
  422. package/projects/tuki/widgets/user-device-manage/src/classes/user.ts +0 -8
  423. package/projects/tuki/widgets/user-device-manage/src/common-functions.ts +0 -16
  424. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.html +0 -14
  425. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.scss +0 -80
  426. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.ts +0 -35
  427. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.html +0 -21
  428. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.scss +0 -97
  429. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.ts +0 -28
  430. 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
  431. 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
  432. 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
  433. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.html +0 -6
  434. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.scss +0 -4
  435. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.ts +0 -63
  436. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.html +0 -241
  437. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.scss +0 -500
  438. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.ts +0 -194
  439. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.html +0 -27
  440. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.scss +0 -131
  441. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.ts +0 -25
  442. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.html +0 -209
  443. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.scss +0 -502
  444. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.ts +0 -354
  445. package/projects/tuki/widgets/user-device-manage/src/environments/environment.prod.ts +0 -9
  446. package/projects/tuki/widgets/user-device-manage/src/environments/environment.ts +0 -10
  447. package/projects/tuki/widgets/user-device-manage/src/interseptors/auth.interceptor.ts +0 -35
  448. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.html +0 -50
  449. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -8
  450. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.ts +0 -81
  451. package/projects/tuki/widgets/user-device-manage/src/material.module.ts +0 -87
  452. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.html +0 -33
  453. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.scss +0 -84
  454. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.ts +0 -46
  455. package/projects/tuki/widgets/user-device-manage/src/removeKynFromIBM.service.ts +0 -25
  456. package/projects/tuki/widgets/user-device-manage/src/services/api.service.ts +0 -87
  457. package/projects/tuki/widgets/user-device-manage/src/services/common-functions.ts +0 -17
  458. package/projects/tuki/widgets/user-device-manage/src/services/device.service.ts +0 -95
  459. package/projects/tuki/widgets/user-device-manage/src/services/dns.service.ts +0 -111
  460. package/projects/tuki/widgets/user-device-manage/src/services/line.service.ts +0 -89
  461. package/projects/tuki/widgets/user-device-manage/src/services/notification.service.ts +0 -68
  462. package/projects/tuki/widgets/user-device-manage/src/services/removeKynFromIBM.service.ts +0 -25
  463. package/projects/tuki/widgets/user-device-manage/src/services/site-settings.service.ts +0 -82
  464. package/projects/tuki/widgets/user-device-manage/src/services/sorting-utils.service.ts +0 -203
  465. package/projects/tuki/widgets/user-device-manage/src/services/user.service.ts +0 -283
  466. package/projects/tuki/widgets/user-device-manage/src/services/utils.service.ts +0 -87
  467. package/projects/tuki/widgets/user-device-manage/src/services/validation.service.ts +0 -829
  468. package/projects/tuki/widgets/user-device-manage/src/styles/_variables.scss +0 -90
  469. package/projects/tuki/widgets/user-device-manage/src/styles/form.scss +0 -231
  470. package/projects/tuki/widgets/user-device-manage/src/styles/icons.scss +0 -32
  471. package/projects/tuki/widgets/user-device-manage/src/styles/styles.scss +0 -110
  472. package/projects/tuki/widgets/user-device-manage/src/styles/tables.scss +0 -30
  473. package/projects/tuki/widgets/user-device-manage/src/user-device-manage.module.ts +0 -73
  474. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.html +0 -6
  475. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.scss +0 -11
  476. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.ts +0 -13
  477. package/projects/tuki/widgets/user-manage/ng-package.json +0 -7
  478. package/projects/tuki/widgets/user-manage/src/app.constants.ts +0 -50
  479. package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-left.svg +0 -5
  480. package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-right.svg +0 -5
  481. package/projects/tuki/widgets/user-manage/src/assets/icons/delete_icon.svg +0 -5
  482. package/projects/tuki/widgets/user-manage/src/assets/icons/dragger-vertical-icon.svg +0 -3
  483. package/projects/tuki/widgets/user-manage/src/assets/icons/icon_user.svg +0 -1
  484. package/projects/tuki/widgets/user-manage/src/assets/icons/vartical_divider_icon.svg +0 -3
  485. package/projects/tuki/widgets/user-manage/src/classes/device.ts +0 -232
  486. package/projects/tuki/widgets/user-manage/src/classes/line-association-interface.ts +0 -43
  487. package/projects/tuki/widgets/user-manage/src/classes/line-association.ts +0 -161
  488. package/projects/tuki/widgets/user-manage/src/classes/line-call-info-display.ts +0 -21
  489. package/projects/tuki/widgets/user-manage/src/classes/line-directory.ts +0 -42
  490. package/projects/tuki/widgets/user-manage/src/classes/line.ts +0 -144
  491. package/projects/tuki/widgets/user-manage/src/classes/notification.ts +0 -39
  492. package/projects/tuki/widgets/user-manage/src/classes/pagination.ts +0 -18
  493. package/projects/tuki/widgets/user-manage/src/classes/recording-options.ts +0 -6
  494. package/projects/tuki/widgets/user-manage/src/classes/simplified-user.ts +0 -165
  495. package/projects/tuki/widgets/user-manage/src/classes/table-data.ts +0 -6
  496. package/projects/tuki/widgets/user-manage/src/classes/translation-pattern.ts +0 -49
  497. package/projects/tuki/widgets/user-manage/src/classes/user-interface.ts +0 -225
  498. package/projects/tuki/widgets/user-manage/src/classes/user-list.ts +0 -42
  499. package/projects/tuki/widgets/user-manage/src/classes/user.ts +0 -8
  500. package/projects/tuki/widgets/user-manage/src/common-functions.ts +0 -16
  501. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.html +0 -27
  502. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.scss +0 -131
  503. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.ts +0 -25
  504. package/projects/tuki/widgets/user-manage/src/environments/environment.prod.ts +0 -9
  505. package/projects/tuki/widgets/user-manage/src/environments/environment.ts +0 -10
  506. package/projects/tuki/widgets/user-manage/src/interseptors/auth.interceptor.ts +0 -35
  507. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.html +0 -50
  508. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -8
  509. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.ts +0 -81
  510. package/projects/tuki/widgets/user-manage/src/material.module.ts +0 -85
  511. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.html +0 -33
  512. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.scss +0 -84
  513. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.ts +0 -46
  514. package/projects/tuki/widgets/user-manage/src/removeKynFromIBM.service.ts +0 -25
  515. package/projects/tuki/widgets/user-manage/src/services/api.service.ts +0 -90
  516. package/projects/tuki/widgets/user-manage/src/services/dns.service.ts +0 -116
  517. package/projects/tuki/widgets/user-manage/src/services/line.service.ts +0 -31
  518. package/projects/tuki/widgets/user-manage/src/services/notification.service.ts +0 -68
  519. package/projects/tuki/widgets/user-manage/src/services/removeKynFromIBM.service.ts +0 -25
  520. package/projects/tuki/widgets/user-manage/src/services/site-settings.service.ts +0 -35
  521. package/projects/tuki/widgets/user-manage/src/services/sorting-utils.service.ts +0 -203
  522. package/projects/tuki/widgets/user-manage/src/services/user.service.ts +0 -242
  523. package/projects/tuki/widgets/user-manage/src/services/users-search.service.ts +0 -59
  524. package/projects/tuki/widgets/user-manage/src/services/utils.service.ts +0 -71
  525. package/projects/tuki/widgets/user-manage/src/styles/_variables.scss +0 -90
  526. package/projects/tuki/widgets/user-manage/src/styles/form.scss +0 -231
  527. package/projects/tuki/widgets/user-manage/src/styles/icons.scss +0 -32
  528. package/projects/tuki/widgets/user-manage/src/styles/styles.scss +0 -110
  529. package/projects/tuki/widgets/user-manage/src/styles/tables.scss +0 -30
  530. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.html +0 -10
  531. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.scss +0 -429
  532. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.ts +0 -63
  533. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.html +0 -32
  534. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.scss +0 -444
  535. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.ts +0 -89
  536. package/projects/tuki/widgets/user-manage/src/user-details/notification.service.ts +0 -68
  537. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.html +0 -29
  538. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.scss +0 -64
  539. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.ts +0 -19
  540. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.html +0 -290
  541. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.scss +0 -463
  542. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.ts +0 -212
  543. package/projects/tuki/widgets/user-manage/src/user-manage.module.ts +0 -63
  544. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.html +0 -6
  545. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.scss +0 -11
  546. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.ts +0 -13
  547. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.html +0 -26
  548. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.scss +0 -41
  549. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.ts +0 -41
  550. package/projects/tuki/widgets/users-list/ng-package.json +0 -6
  551. package/projects/tuki/widgets/users-list/src/app.constants.ts +0 -54
  552. package/projects/tuki/widgets/users-list/src/assets/icons/close_icon_modal.svg +0 -3
  553. package/projects/tuki/widgets/users-list/src/assets/icons/icon_user.svg +0 -1
  554. package/projects/tuki/widgets/users-list/src/assets/icons/move_user_to_another_location.svg +0 -14
  555. package/projects/tuki/widgets/users-list/src/assets/icons/white-close-icon.svg +0 -3
  556. package/projects/tuki/widgets/users-list/src/classes/app-location.ts +0 -36
  557. package/projects/tuki/widgets/users-list/src/classes/device.ts +0 -225
  558. package/projects/tuki/widgets/users-list/src/classes/line.ts +0 -144
  559. package/projects/tuki/widgets/users-list/src/classes/move-user.ts +0 -225
  560. package/projects/tuki/widgets/users-list/src/classes/notification.ts +0 -38
  561. package/projects/tuki/widgets/users-list/src/classes/pagination.ts +0 -18
  562. package/projects/tuki/widgets/users-list/src/classes/simlified-user.ts +0 -74
  563. package/projects/tuki/widgets/users-list/src/classes/table-data.ts +0 -6
  564. package/projects/tuki/widgets/users-list/src/classes/user-interface.ts +0 -225
  565. package/projects/tuki/widgets/users-list/src/classes/user-list.ts +0 -47
  566. package/projects/tuki/widgets/users-list/src/classes/user.ts +0 -8
  567. package/projects/tuki/widgets/users-list/src/material.module.ts +0 -94
  568. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.html +0 -37
  569. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.scss +0 -129
  570. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.ts +0 -46
  571. 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
  572. 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
  573. 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
  574. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.html +0 -222
  575. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.scss +0 -239
  576. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.ts +0 -206
  577. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.html +0 -12
  578. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.scss +0 -41
  579. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.ts +0 -36
  580. package/projects/tuki/widgets/users-list/src/services/api-webex.service.ts +0 -14
  581. package/projects/tuki/widgets/users-list/src/services/api.service.ts +0 -90
  582. package/projects/tuki/widgets/users-list/src/services/dns.service.ts +0 -128
  583. package/projects/tuki/widgets/users-list/src/services/events-communication.service.ts +0 -11
  584. package/projects/tuki/widgets/users-list/src/services/move-user.service.ts +0 -59
  585. package/projects/tuki/widgets/users-list/src/services/notification.service.ts +0 -68
  586. package/projects/tuki/widgets/users-list/src/services/removeKynFromIBM.service.ts +0 -25
  587. package/projects/tuki/widgets/users-list/src/services/site-settings.service.ts +0 -26
  588. package/projects/tuki/widgets/users-list/src/services/user.service.ts +0 -159
  589. package/projects/tuki/widgets/users-list/src/services/users-search.service.ts +0 -137
  590. package/projects/tuki/widgets/users-list/src/styles/styles.scss +0 -572
  591. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.html +0 -15
  592. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.scss +0 -103
  593. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.ts +0 -35
  594. package/projects/tuki/widgets/users-list/src/users-list.component.css +0 -4
  595. package/projects/tuki/widgets/users-list/src/users-list.component.css.map +0 -1
  596. package/projects/tuki/widgets/users-list/src/users-list.component.html +0 -86
  597. package/projects/tuki/widgets/users-list/src/users-list.component.scss +0 -572
  598. package/projects/tuki/widgets/users-list/src/users-list.component.ts +0 -312
  599. package/projects/tuki/widgets/users-list/src/users-list.module.ts +0 -63
  600. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css +0 -11
  601. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css.map +0 -1
  602. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.html +0 -6
  603. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.scss +0 -11
  604. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.ts +0 -13
  605. package/projects/tuki/widgets/users-list/src/utils/common-functions.ts +0 -32
  606. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.html +0 -33
  607. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.scss +0 -84
  608. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.ts +0 -46
  609. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css +0 -45
  610. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css.map +0 -1
  611. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.html +0 -26
  612. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.scss +0 -41
  613. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.ts +0 -41
  614. package/projects/tuki/widgets/users-list/src/utils/utils.service.ts +0 -71
  615. package/projects/widgets-playground/src/app/app.component.html +0 -63
  616. package/projects/widgets-playground/src/app/app.component.scss +0 -15
  617. package/projects/widgets-playground/src/app/app.component.spec.ts +0 -31
  618. package/projects/widgets-playground/src/app/app.component.ts +0 -31
  619. package/projects/widgets-playground/src/app/app.module.ts +0 -37
  620. package/projects/widgets-playground/src/assets/.gitkeep +0 -0
  621. package/projects/widgets-playground/src/assets/icons/already_upgraded.png +0 -0
  622. package/projects/widgets-playground/src/assets/icons/check2_icon.png +0 -0
  623. package/projects/widgets-playground/src/assets/icons/check_icon.png +0 -0
  624. package/projects/widgets-playground/src/assets/icons/expand_icon.png +0 -0
  625. package/projects/widgets-playground/src/assets/icons/issue_icon.png +0 -0
  626. package/projects/widgets-playground/src/assets/icons/menu_icon.png +0 -0
  627. package/projects/widgets-playground/src/assets/icons/ready_to_upgrade.png +0 -0
  628. package/projects/widgets-playground/src/assets/icons/search_icon.png +0 -0
  629. package/projects/widgets-playground/src/assets/icons/site.png +0 -0
  630. package/projects/widgets-playground/src/assets/icons/user.png +0 -0
  631. package/projects/widgets-playground/src/assets/icons/warning_icon.png +0 -0
  632. package/projects/widgets-playground/src/favicon.ico +0 -0
  633. package/projects/widgets-playground/src/index.html +0 -13
  634. package/projects/widgets-playground/src/main.ts +0 -7
  635. package/projects/widgets-playground/src/styles.scss +0 -23
  636. package/projects/widgets-playground/tsconfig.app.json +0 -14
  637. package/projects/widgets-playground/tsconfig.spec.json +0 -14
  638. package/proxy.conf.js +0 -23
  639. package/tsconfig.json +0 -46
  640. /package/{projects/tuki/widgets/di2mt → di2mt}/README.md +0 -0
  641. /package/{projects/tuki/widgets/di2mt → src}/assets/icons/already_upgraded.png +0 -0
  642. /package/{projects/tuki/widgets/di2mt → src}/assets/icons/check2_icon.png +0 -0
  643. /package/{projects/tuki/widgets/di2mt → src}/assets/icons/check_icon.png +0 -0
  644. /package/{projects/tuki/widgets/di2mt → src}/assets/icons/expand_icon.png +0 -0
  645. /package/{projects/tuki/widgets/di2mt → src}/assets/icons/issue_icon.png +0 -0
  646. /package/{projects/tuki/widgets/di2mt → src}/assets/icons/menu_icon.png +0 -0
  647. /package/{projects/tuki/widgets/di2mt → src}/assets/icons/ready_to_upgrade.png +0 -0
  648. /package/{projects/tuki/widgets/di2mt → src}/assets/icons/search_icon.png +0 -0
  649. /package/{projects/tuki/widgets/di2mt → src}/assets/icons/site.png +0 -0
  650. /package/{projects/tuki/widgets/di2mt → src}/assets/icons/user.png +0 -0
  651. /package/{projects/tuki/widgets/di2mt → src}/assets/icons/warning_icon.png +0 -0
  652. /package/{projects/tuki/widgets/user-device-manage/public-api.ts → user-device-manage/public-api.d.ts} +0 -0
  653. /package/{projects/tuki/widgets/user-manage/public-api.ts → user-manage/public-api.d.ts} +0 -0
  654. /package/{projects/tuki/widgets/users-list/public-api.ts → users-list/public-api.d.ts} +0 -0
@@ -0,0 +1,1469 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, inject, Component, Input, EventEmitter, Output, NgModule } from '@angular/core';
3
+ import { SelectionModel } from '@angular/cdk/collections';
4
+ import * as i4$1 from '@angular/material/table';
5
+ import { MatTableDataSource, MatTableModule } from '@angular/material/table';
6
+ import { catchError, of, map, Subject, takeUntil } 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 i2 from '@angular/material/icon';
12
+ import { MatIconModule } from '@angular/material/icon';
13
+ import * as i3 from '@angular/material/form-field';
14
+ import { MatFormFieldModule } from '@angular/material/form-field';
15
+ import * as i4 from '@angular/material/input';
16
+ import { MatInputModule } from '@angular/material/input';
17
+ import * as i5 from '@angular/material/select';
18
+ import { MatSelectModule } from '@angular/material/select';
19
+ import * as i6 from '@angular/material/core';
20
+ import * as i5$1 from '@angular/material/button';
21
+ import { MatButtonModule } from '@angular/material/button';
22
+ import * as i6$1 from '@angular/material/checkbox';
23
+ import { MatCheckboxModule } from '@angular/material/checkbox';
24
+ import { MatProgressBarModule } from '@angular/material/progress-bar';
25
+ import { MatTooltipModule } from '@angular/material/tooltip';
26
+ import * as i1$2 from 'ng-apexcharts';
27
+ import { NgApexchartsModule } from 'ng-apexcharts';
28
+
29
+ const API = {
30
+ OVERVIEW: {
31
+ GET_UPGRADE_PRECONDITIONS: '/api/webex-upgrade/customers/:customerId/preconditions/fetch',
32
+ GET_SITE_INFRASTRUCTURE: '/api/webex-upgrade/customers/:customerId/infra/fetch',
33
+ GET_USERS_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/users/upgrade/fetch',
34
+ GET_SITES_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/sites/upgrade/fetch',
35
+ GET_USERS_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/users/readiness/fetch',
36
+ GET_SITES_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/sites/readiness/fetch'
37
+ },
38
+ USER_UPGRADE: {
39
+ GET_USERS_UPGRADE_DATA: '/api/webex-upgrade/customers/:customerId/user-upgrade',
40
+ GET_USERS_UPGRADE_STATUS_COUNTS: '/api/webex-upgrade/customers/:customerId/user-upgrades/status-counts',
41
+ UPGRADE_USER: '/api/migration/webex/sites/:siteId/users/:userId'
42
+ },
43
+ SITE_UPGRADE: {
44
+ GET_SITES_UPGRADE_DATA: '/api/webex-upgrade/customers/:customerId/site-upgrades',
45
+ GET_SITES_UPGRADE_STATUS_COUNTS: '/api/webex-upgrade/customers/:customerId/site-upgrades/status-counts',
46
+ UPGRADE_SITE: '/api/migration/webex/sites/:siteId'
47
+ }
48
+ };
49
+
50
+ class APIService {
51
+ constructor(httpClient) {
52
+ this.httpClient = httpClient;
53
+ this.apiUrl = window.location.protocol + '//' + window.location.hostname + '/dcp';
54
+ this.token = 'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBjb3JyZW5ldC5jb20iLCJyb2xlcyI6IlNVUEVSX1VTRVIiLCJpYXQiOjE3NTUwODUyMzgsImV4cCI6MTc1NTEwMzIzOH0.X1CKx-OBZvSs7Bzr_4SWW2ulBgHNkYZrmVuv6V7FZyo';
55
+ // this.apiUrl = window.location.protocol + '//' + window.location.host + '/dcp';
56
+ this.apiUrl = 'https://dev.tuki.io/webex';
57
+ // this.apiUrl = 'http://localhost:8088/dcp';
58
+ }
59
+ fetch(url, params, cache) {
60
+ const headers = this.getHeaders(cache);
61
+ params = params || {};
62
+ return this.httpClient.get(this.apiUrl + url, { params: this.prepareEncodedParams(params), headers });
63
+ }
64
+ post(url, body, params = {}) {
65
+ body = body || null;
66
+ const headers = this.getHeaders();
67
+ return this.httpClient.post(this.apiUrl + url, body, { params: this.prepareEncodedParams(params), headers });
68
+ }
69
+ // use when response extended data is necessary:
70
+ postExtended(url, body = null, params = {}, headers = {}) {
71
+ headers = headers || this.getHeaders();
72
+ return this.httpClient.post(this.apiUrl + url, body, {
73
+ headers,
74
+ observe: 'response',
75
+ params: this.prepareEncodedParams(params)
76
+ });
77
+ }
78
+ put(url, body = null, params = {}) {
79
+ const headers = this.getHeaders();
80
+ return this.httpClient.put(this.apiUrl + url, body, { headers, params: this.prepareEncodedParams(params) });
81
+ }
82
+ delete(url, params = {}) {
83
+ const headers = this.getHeaders();
84
+ return this.httpClient.delete(this.apiUrl + url, { headers, params: this.prepareEncodedParams(params) });
85
+ }
86
+ fetchPagination(url, pageSize, pageNumber, additionalParams = {}, cache) {
87
+ const copyAdditionalParams = JSON.parse(JSON.stringify(additionalParams));
88
+ const params = Object.assign(copyAdditionalParams, { size: pageSize.toString(), page: pageNumber.toString() });
89
+ return this.fetch(url, params, cache);
90
+ }
91
+ prepareEncodedParams(params) {
92
+ const result = {};
93
+ if (!params) {
94
+ return {};
95
+ }
96
+ for (const key of Object.keys(params)) {
97
+ if (params[key]) {
98
+ const stringParam = params[key].toString();
99
+ result[key] = stringParam.includes('+') ? encodeURIComponent(stringParam) : stringParam;
100
+ }
101
+ }
102
+ return result;
103
+ }
104
+ getHeaders(cache) {
105
+ let headers = new HttpHeaders();
106
+ if (cache) {
107
+ headers = headers.append('_Cache', 'true ');
108
+ }
109
+ const token = this.token || this.getParameterByName('token');
110
+ headers = headers.append('Authorization', 'Bearer ' + token);
111
+ return headers;
112
+ }
113
+ getParameterByName(name, url = window.location.href) {
114
+ name = name.replace(/[\[\]]/g, '\\$&');
115
+ var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url);
116
+ if (!results)
117
+ return null;
118
+ if (!results[2])
119
+ return '';
120
+ return decodeURIComponent(results[2].replace(/\+/g, ' '));
121
+ }
122
+ }
123
+ APIService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
124
+ APIService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, providedIn: 'root' });
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, decorators: [{
126
+ type: Injectable,
127
+ args: [{
128
+ providedIn: 'root'
129
+ }]
130
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
131
+
132
+ class UserUpgradeService {
133
+ constructor() {
134
+ this.apiService = inject(APIService);
135
+ }
136
+ // TODO: Impl the user upgrade logic here
137
+ bulkUpgrade(users) {
138
+ const entities = users.map(record => ({ cucmId: record.cucmId, entityId: record.userId }));
139
+ const customerId = users[0].customerId;
140
+ const siteId = users[0].siteId;
141
+ const body = {
142
+ customerId,
143
+ siteId,
144
+ entities: {
145
+ 'PERSON': entities
146
+ }
147
+ };
148
+ console.log(body);
149
+ // This is not done yet...
150
+ return this.apiService.post(API.USER_UPGRADE.UPGRADE_USER.replace(':siteId', siteId).replace(':userId', users[0].userId), body, {}).pipe(catchError((err) => of(err)));
151
+ }
152
+ getUserUpgradeStatusCounts() {
153
+ return this.apiService.fetch(API.USER_UPGRADE.GET_USERS_UPGRADE_STATUS_COUNTS.replace(':customerId', this.customerId));
154
+ }
155
+ getUserUpgradeRecords() {
156
+ return this.apiService.fetch(API.USER_UPGRADE.GET_USERS_UPGRADE_DATA.replace(':customerId', this.customerId)).pipe(map((resp) => {
157
+ return resp.content;
158
+ // This was added because of mapping issues with BE resp;
159
+ // return resp.content.map((record: UserUpgradeRecord) => ({
160
+ // userId: record.userId,
161
+ // userName: record.userName,
162
+ // customerId: record.customerId,
163
+ // siteId: record.siteId,
164
+ // siteName: record.siteName,
165
+ // devices: record.devices,
166
+ // cucmId: record.cucmId,
167
+ // primaryExtension: record.primaryExtension,
168
+ // deviceStatus: record.deviceStatus,
169
+ // dialPlanStatus: record.dialPlanStatus,
170
+ // dependenciesStatus: record.dependenciesStatus,
171
+ // upgradeStatus: record.upgradeStatus
172
+ // } as UserUpgradeRecord));
173
+ }));
174
+ }
175
+ }
176
+ UserUpgradeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
177
+ UserUpgradeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, providedIn: 'root' });
178
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, decorators: [{
179
+ type: Injectable,
180
+ args: [{
181
+ providedIn: 'root'
182
+ }]
183
+ }] });
184
+
185
+ const STATUS_ENTRIES = {
186
+ READY: 'Ready',
187
+ NOT_READY: 'Not Ready',
188
+ PARTIAL_READY: 'Partial Ready',
189
+ FAILED: 'Failed',
190
+ COMPLETED: 'Completed'
191
+ };
192
+ const DEPENDENCIES_STATUS = {
193
+ DEPENDENCIES_FOUND: 'Dependencies found',
194
+ NO_DEPENDENCIES: 'No dependencies',
195
+ };
196
+
197
+ class SummaryCardComponent {
198
+ constructor() {
199
+ this.value = 41;
200
+ this.status = 'Ready';
201
+ }
202
+ getStatusClass(status) {
203
+ switch (status === null || status === void 0 ? void 0 : status.toLowerCase()) {
204
+ case 'ready':
205
+ return 'ready';
206
+ case 'not ready':
207
+ return 'not-ready';
208
+ case 'failed':
209
+ return 'failed';
210
+ case 'completed':
211
+ return 'completed';
212
+ default:
213
+ return 'not-ready';
214
+ }
215
+ }
216
+ }
217
+ SummaryCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SummaryCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
218
+ 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>{{ status }}</span>\r\n </div>\r\n </div>\r\n</article>", 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;flex:1}.summary-card{font-family:Inter,Inter,sans-serif;background-color:#fff;border-radius:1rem;padding:1rem;border:1px solid hsl(0,0%,50%);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}.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"] }] });
219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SummaryCardComponent, decorators: [{
220
+ type: Component,
221
+ 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>{{ status }}</span>\r\n </div>\r\n </div>\r\n</article>", 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;flex:1}.summary-card{font-family:Inter,Inter,sans-serif;background-color:#fff;border-radius:1rem;padding:1rem;border:1px solid hsl(0,0%,50%);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}.summary__card-description{font-size:14px;color:#333;display:flex;align-items:center;justify-content:space-between}\n"] }]
222
+ }], propDecorators: { value: [{
223
+ type: Input
224
+ }], status: [{
225
+ type: Input
226
+ }], description: [{
227
+ type: Input
228
+ }] } });
229
+
230
+ class TableFiltersComponent {
231
+ constructor() {
232
+ this.filter = new EventEmitter();
233
+ }
234
+ ngOnInit() {
235
+ if (this.filters) {
236
+ this.filters.forEach(filter => {
237
+ if (filter.type === 'select' && !filter.options.some(opt => opt.value === 'all')) {
238
+ filter.options.unshift({ label: 'All', value: 'all' });
239
+ }
240
+ });
241
+ }
242
+ }
243
+ onFilter(key, value) {
244
+ const val = { key, value };
245
+ this.filter.emit(val);
246
+ }
247
+ }
248
+ TableFiltersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableFiltersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
249
+ 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\">\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\">\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 .filters-wrapper .filter ::ng-deep .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0!important;padding:0!important}:host .filters-wrapper .filter ::ng-deep .mat-form-field-infix{padding:.5rem 1rem!important}:host .filters-wrapper .filter ::ng-deep .mat-form-field-label-wrapper{top:-1.1rem!important}:host .filters-wrapper .filter ::ng-deep .mat-form-field-infix .mat-input-element{transform:translate(-16px) translateY(-4px)!important}:host .filters-wrapper .filter ::ng-deep .mat-select-value{transform:translateY(-4px)!important}\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"] }] });
250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableFiltersComponent, decorators: [{
251
+ type: Component,
252
+ 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\">\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\">\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 .filters-wrapper .filter ::ng-deep .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0!important;padding:0!important}:host .filters-wrapper .filter ::ng-deep .mat-form-field-infix{padding:.5rem 1rem!important}:host .filters-wrapper .filter ::ng-deep .mat-form-field-label-wrapper{top:-1.1rem!important}:host .filters-wrapper .filter ::ng-deep .mat-form-field-infix .mat-input-element{transform:translate(-16px) translateY(-4px)!important}:host .filters-wrapper .filter ::ng-deep .mat-select-value{transform:translateY(-4px)!important}\n"] }]
253
+ }], propDecorators: { filters: [{
254
+ type: Input
255
+ }], filter: [{
256
+ type: Output
257
+ }] } });
258
+
259
+ class UserUpgradeDataTableComponent {
260
+ constructor() {
261
+ this.destroy$ = new Subject();
262
+ this.userUpgradeService = inject(UserUpgradeService);
263
+ this.apiService = inject(APIService);
264
+ this.STATUS_ENTRIES = STATUS_ENTRIES;
265
+ this.DEPENDENCIES_STATUS = DEPENDENCIES_STATUS;
266
+ this.displayedColumns = ['select', 'user', 'site', 'device', 'dialPlanStatus', 'dependencies', 'userUpgradeStatus'];
267
+ this.selection = new SelectionModel(true, []);
268
+ this.filters = [];
269
+ this.statusCounts = {};
270
+ this.activeFilters = {};
271
+ }
272
+ ngOnInit() {
273
+ this.apiService.token = this.token;
274
+ this.userUpgradeService.customerId = this.customerId;
275
+ this.userUpgradeService.getUserUpgradeRecords()
276
+ .pipe(takeUntil(this.destroy$))
277
+ .subscribe((records) => {
278
+ this.data = new MatTableDataSource(records);
279
+ this.setupCustomFilter();
280
+ this.initializeFilters(records);
281
+ });
282
+ this.userUpgradeService.getUserUpgradeStatusCounts()
283
+ .pipe(takeUntil(this.destroy$))
284
+ .subscribe((statusCounts) => {
285
+ this.statusCounts['Ready'] = statusCounts['READY'] || 0;
286
+ this.statusCounts['Not Ready'] = statusCounts['NOT_READY'] || 0;
287
+ this.statusCounts['Completed'] = statusCounts['COMPLETED'] || 0;
288
+ this.statusCounts['Failed'] = statusCounts['FAILED'] || 0;
289
+ });
290
+ }
291
+ ngOnDestroy() {
292
+ this.destroy$.next();
293
+ this.destroy$.complete();
294
+ }
295
+ initializeFilters(records) {
296
+ // Extract unique sites from actual data
297
+ const uniqueSites = [...new Set(records.map(record => record.siteName))];
298
+ const siteOptions = uniqueSites.map(site => ({
299
+ label: site,
300
+ value: site.toLowerCase().replace(/\s+/g, '-')
301
+ }));
302
+ // Extract unique statuses from actual data
303
+ const uniqueStatuses = [...new Set(records.map(record => record.upgradeStatus))];
304
+ const statusOptions = uniqueStatuses.map(status => ({
305
+ label: STATUS_ENTRIES[status],
306
+ value: status.toLowerCase().replace(/\s+/g, '-')
307
+ }));
308
+ this.filters = [
309
+ {
310
+ id: 'userName',
311
+ type: 'search',
312
+ columnKey: 'User',
313
+ placeholder: 'Search users...',
314
+ options: []
315
+ },
316
+ {
317
+ id: 'sites',
318
+ type: 'select',
319
+ columnKey: 'Site',
320
+ placeholder: 'Sites',
321
+ options: siteOptions
322
+ },
323
+ {
324
+ id: 'status',
325
+ type: 'select',
326
+ columnKey: 'User Upgrade Status',
327
+ placeholder: 'Upgrade Status',
328
+ options: statusOptions
329
+ }
330
+ ];
331
+ }
332
+ /** Whether the number of selected elements matches the total number of rows. */
333
+ isAllSelected() {
334
+ var _a, _b;
335
+ const numSelected = this.selection.selected.length;
336
+ const numRows = (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.data.length) !== null && _b !== void 0 ? _b : 0;
337
+ return numSelected === numRows;
338
+ }
339
+ /** Selects all rows if they are not all selected; otherwise clear selection. */
340
+ masterToggle() {
341
+ var _a;
342
+ this.isAllSelected() ?
343
+ this.selection.clear() :
344
+ (_a = this.data) === null || _a === void 0 ? void 0 : _a.data.forEach(row => this.selection.select(row));
345
+ }
346
+ upgradeUser(user) {
347
+ this.userUpgradeService.bulkUpgrade([user]);
348
+ }
349
+ upgradeSelectedUsers() {
350
+ this.userUpgradeService.bulkUpgrade(this.selection.selected);
351
+ }
352
+ onFilter(filterEvent) {
353
+ const { key, value } = filterEvent;
354
+ let filterValue;
355
+ if (value && value.value !== undefined) {
356
+ filterValue = value.value;
357
+ }
358
+ else if (value && value.target) {
359
+ filterValue = value.target.value;
360
+ }
361
+ else {
362
+ filterValue = value;
363
+ }
364
+ // Handle "All" option or empty values - remove the filter
365
+ if (filterValue === 'all' || !filterValue || filterValue === '') {
366
+ delete this.activeFilters[key];
367
+ }
368
+ else {
369
+ this.activeFilters[key] = filterValue;
370
+ }
371
+ this.applyFilters();
372
+ }
373
+ setupCustomFilter() {
374
+ this.data.filterPredicate = (data, filter) => {
375
+ const filters = JSON.parse(filter || '{}');
376
+ for (const [key, value] of Object.entries(filters)) {
377
+ if (!value)
378
+ continue;
379
+ switch (key) {
380
+ case 'User':
381
+ const searchTerm = value.toLowerCase();
382
+ if (!data.userName.toLowerCase().includes(searchTerm)) {
383
+ return false;
384
+ }
385
+ break;
386
+ case 'Site':
387
+ if (data.siteName !== this.getSiteNameFromValue(value)) {
388
+ return false;
389
+ }
390
+ break;
391
+ case 'User Upgrade Status':
392
+ if (!this.matchesUpgradeStatus(data.upgradeStatus, value)) {
393
+ return false;
394
+ }
395
+ break;
396
+ }
397
+ }
398
+ return true;
399
+ };
400
+ }
401
+ applyFilters() {
402
+ this.data.filter = JSON.stringify(this.activeFilters);
403
+ }
404
+ get filteredDataCount() {
405
+ var _a, _b;
406
+ return ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.filteredData) === null || _b === void 0 ? void 0 : _b.length) || 0;
407
+ }
408
+ getSiteNameFromValue(value) {
409
+ // Since we're now using actual site names, just convert back from slug format
410
+ return value.split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
411
+ }
412
+ matchesUpgradeStatus(status, filterValue) {
413
+ // Handle direct status matching for cleaner implementation
414
+ return status.toLowerCase().replace(/\s+/g, '-') === filterValue.toLowerCase();
415
+ }
416
+ getStatusClass(status) {
417
+ switch (status.toLowerCase()) {
418
+ case 'ready':
419
+ return 'ready';
420
+ case 'not ready':
421
+ return 'not-ready';
422
+ case 'partial ready':
423
+ return 'partial-ready';
424
+ case 'completed':
425
+ return 'completed';
426
+ case 'failed':
427
+ return 'failed';
428
+ default:
429
+ return 'not-ready';
430
+ }
431
+ }
432
+ }
433
+ UserUpgradeDataTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
434
+ UserUpgradeDataTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UserUpgradeDataTableComponent, selector: "tk-user-upgrade-data-table", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: "<div 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 class=\"upgrade-bulk-button\" \r\n color=\"primary\" \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'\"\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=\"site-indicator\"></span>\r\n {{element.siteName}}\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 mat-header-cell *matHeaderCellDef>Device</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"device-info\">\r\n <div *ngIf=\"element.devices.length > 1\">\r\n <div class=\"device-name-wrapper\">\r\n <span class=\"device-indicator\"></span>\r\n <span class=\"device-name\">Multiple devices</span>\r\n </div>\r\n </div>\r\n <div *ngIf=\"element.devices.length === 1\">\r\n <div class=\"device-name-wrapper\">\r\n <span class=\"device-indicator\"></span>\r\n <span class=\"device-name\">{{element.devices[0]}}</span>\r\n </div>\r\n <span class=\"device-model\">{{ element.primaryExtension || 'No Extension' }}</span>\r\n </div>\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>{{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 </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>", 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\";.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}.user-upgrade-table{font-family:Inter,Inter,sans-serif;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:#1170cf}.user-upgrade-table .device-info{display:flex;align-items:center;gap:12px}.user-upgrade-table .device-info .device-name-wrapper{display:flex;align-items:center;gap:8px}.user-upgrade-table .device-info .device-name-wrapper .device-name{font-weight:500;color:#212121}.user-upgrade-table .device-info .device-name-wrapper .device-indicator{width:8px;height:8px;border-radius:50%;background-color:#f8cd00}.user-upgrade-table .device-info .device-model{font-size:12px;color:#757575}.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:#1d805f}.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:1px solid #08599c!important;color:#08599c!important;background:white!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}.user-upgrade-table .upgrade-button:hover{background-color:#e3f2fd!important}.user-upgrade-table .custom-checkbox .mdc-checkbox{padding:8px}.table-action-panel{width:100%;display:flex;justify-content:flex-start;gap:1rem}.action-wrapper{display:flex;flex:1;align-items:center;justify-content:space-between;gap:1rem}.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-checkbox-checked.mat-accent .mat-checkbox-background{background-color:#08599c!important;border-color:#08599c!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#08599c!important;border-color:#08599c!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-background{border-color:#08599c99!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent .mat-ripple-element{background-color:#08599c1a!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent:focus .mat-checkbox-background{background-color:#08599c1a!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-frame{border-color:#08599c99!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-checkmark{color:#fff!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-checkmark-path{stroke:#fff!important}:host ::ng-deep .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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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: i4$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i4$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i4$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i4$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i4$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i4$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i4$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i4$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i4$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i4$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i5$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: i6$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
435
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeDataTableComponent, decorators: [{
436
+ type: Component,
437
+ args: [{ selector: 'tk-user-upgrade-data-table', template: "<div 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 class=\"upgrade-bulk-button\" \r\n color=\"primary\" \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'\"\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=\"site-indicator\"></span>\r\n {{element.siteName}}\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 mat-header-cell *matHeaderCellDef>Device</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"device-info\">\r\n <div *ngIf=\"element.devices.length > 1\">\r\n <div class=\"device-name-wrapper\">\r\n <span class=\"device-indicator\"></span>\r\n <span class=\"device-name\">Multiple devices</span>\r\n </div>\r\n </div>\r\n <div *ngIf=\"element.devices.length === 1\">\r\n <div class=\"device-name-wrapper\">\r\n <span class=\"device-indicator\"></span>\r\n <span class=\"device-name\">{{element.devices[0]}}</span>\r\n </div>\r\n <span class=\"device-model\">{{ element.primaryExtension || 'No Extension' }}</span>\r\n </div>\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>{{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 </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>", 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\";.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}.user-upgrade-table{font-family:Inter,Inter,sans-serif;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:#1170cf}.user-upgrade-table .device-info{display:flex;align-items:center;gap:12px}.user-upgrade-table .device-info .device-name-wrapper{display:flex;align-items:center;gap:8px}.user-upgrade-table .device-info .device-name-wrapper .device-name{font-weight:500;color:#212121}.user-upgrade-table .device-info .device-name-wrapper .device-indicator{width:8px;height:8px;border-radius:50%;background-color:#f8cd00}.user-upgrade-table .device-info .device-model{font-size:12px;color:#757575}.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:#1d805f}.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:1px solid #08599c!important;color:#08599c!important;background:white!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}.user-upgrade-table .upgrade-button:hover{background-color:#e3f2fd!important}.user-upgrade-table .custom-checkbox .mdc-checkbox{padding:8px}.table-action-panel{width:100%;display:flex;justify-content:flex-start;gap:1rem}.action-wrapper{display:flex;flex:1;align-items:center;justify-content:space-between;gap:1rem}.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-checkbox-checked.mat-accent .mat-checkbox-background{background-color:#08599c!important;border-color:#08599c!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#08599c!important;border-color:#08599c!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-background{border-color:#08599c99!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent .mat-ripple-element{background-color:#08599c1a!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent:focus .mat-checkbox-background{background-color:#08599c1a!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-frame{border-color:#08599c99!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-checkmark{color:#fff!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-checkmark-path{stroke:#fff!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-mixedmark{border-color:#fff!important}\n"] }]
438
+ }], propDecorators: { token: [{
439
+ type: Input
440
+ }], customerId: [{
441
+ type: Input
442
+ }] } });
443
+
444
+ class CardComponent {
445
+ }
446
+ CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
447
+ 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 hsl(0,0%,50%);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"] });
448
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardComponent, decorators: [{
449
+ type: Component,
450
+ 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 hsl(0,0%,50%);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"] }]
451
+ }], propDecorators: { title: [{
452
+ type: Input
453
+ }] } });
454
+
455
+ class MaterialModule {
456
+ }
457
+ MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
458
+ MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [MatProgressBarModule,
459
+ MatTooltipModule,
460
+ MatTableModule,
461
+ MatCheckboxModule,
462
+ MatButtonModule,
463
+ MatIconModule,
464
+ MatFormFieldModule,
465
+ MatInputModule,
466
+ MatSelectModule], exports: [MatProgressBarModule,
467
+ MatTooltipModule,
468
+ MatTableModule,
469
+ MatCheckboxModule,
470
+ MatButtonModule,
471
+ MatIconModule,
472
+ MatFormFieldModule,
473
+ MatInputModule,
474
+ MatSelectModule] });
475
+ MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [MatProgressBarModule,
476
+ MatTooltipModule,
477
+ MatTableModule,
478
+ MatCheckboxModule,
479
+ MatButtonModule,
480
+ MatIconModule,
481
+ MatFormFieldModule,
482
+ MatInputModule,
483
+ MatSelectModule, MatProgressBarModule,
484
+ MatTooltipModule,
485
+ MatTableModule,
486
+ MatCheckboxModule,
487
+ MatButtonModule,
488
+ MatIconModule,
489
+ MatFormFieldModule,
490
+ MatInputModule,
491
+ MatSelectModule] });
492
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, decorators: [{
493
+ type: NgModule,
494
+ args: [{
495
+ imports: [
496
+ MatProgressBarModule,
497
+ MatTooltipModule,
498
+ MatTableModule,
499
+ MatCheckboxModule,
500
+ MatButtonModule,
501
+ MatIconModule,
502
+ MatFormFieldModule,
503
+ MatInputModule,
504
+ MatSelectModule
505
+ ],
506
+ exports: [
507
+ MatProgressBarModule,
508
+ MatTooltipModule,
509
+ MatTableModule,
510
+ MatCheckboxModule,
511
+ MatButtonModule,
512
+ MatIconModule,
513
+ MatFormFieldModule,
514
+ MatInputModule,
515
+ MatSelectModule
516
+ ]
517
+ }]
518
+ }] });
519
+
520
+ class StatCardComponent {
521
+ ngOnInit() {
522
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
523
+ if (this.type === 'user') {
524
+ this.stats = {
525
+ id: (_a = this.readinessStats) === null || _a === void 0 ? void 0 : _a.id,
526
+ customerId: (_b = this.readinessStats) === null || _b === void 0 ? void 0 : _b.customerId,
527
+ total: (_c = this.readinessStats) === null || _c === void 0 ? void 0 : _c['totalUsers'],
528
+ totalReady: (_d = this.readinessStats) === null || _d === void 0 ? void 0 : _d['totalReadyUsers'],
529
+ totalUpgraded: (_e = this.readinessStats) === null || _e === void 0 ? void 0 : _e['totalUpgradedUsers'],
530
+ };
531
+ }
532
+ else {
533
+ this.stats = {
534
+ id: (_f = this.readinessStats) === null || _f === void 0 ? void 0 : _f.id,
535
+ customerId: (_g = this.readinessStats) === null || _g === void 0 ? void 0 : _g.customerId,
536
+ total: (_h = this.readinessStats) === null || _h === void 0 ? void 0 : _h['totalSites'],
537
+ totalReady: (_j = this.readinessStats) === null || _j === void 0 ? void 0 : _j['totalReadySites'],
538
+ totalUpgraded: (_k = this.readinessStats) === null || _k === void 0 ? void 0 : _k['totalUpgradedSites'],
539
+ };
540
+ }
541
+ }
542
+ get readyPercentage() {
543
+ var _a, _b;
544
+ return (((_a = this.stats) === null || _a === void 0 ? void 0 : _a.totalReady) / ((_b = this.stats) === null || _b === void 0 ? void 0 : _b.total) * 100) >> 0;
545
+ }
546
+ get upgradedPercentage() {
547
+ var _a, _b;
548
+ return (((_a = this.stats) === null || _a === void 0 ? void 0 : _a.totalUpgraded) / ((_b = this.stats) === null || _b === void 0 ? void 0 : _b.total) * 100) >> 0;
549
+ }
550
+ }
551
+ StatCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
552
+ 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 <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 </div>\r\n </div>\r\n <div class=\"card__content-wrapper\">\r\n <img\r\n *ngIf=\"upgradeStatus === 'ready'\"\r\n height=\"48\"\r\n src=\"assets/icons/ready_to_upgrade.png\"\r\n alt=\"\"\r\n />\r\n <img\r\n *ngIf=\"upgradeStatus === 'already'\"\r\n height=\"48\"\r\n src=\"assets/icons/already_upgraded.png\"\r\n alt=\"\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"card__content-progress-wrapper\">\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 </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:#1170cf}.already{background-color:#1d805f}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CardComponent, selector: "tk-card", inputs: ["title"] }] });
553
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatCardComponent, decorators: [{
554
+ type: Component,
555
+ 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 <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 </div>\r\n </div>\r\n <div class=\"card__content-wrapper\">\r\n <img\r\n *ngIf=\"upgradeStatus === 'ready'\"\r\n height=\"48\"\r\n src=\"assets/icons/ready_to_upgrade.png\"\r\n alt=\"\"\r\n />\r\n <img\r\n *ngIf=\"upgradeStatus === 'already'\"\r\n height=\"48\"\r\n src=\"assets/icons/already_upgraded.png\"\r\n alt=\"\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"card__content-progress-wrapper\">\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 </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:#1170cf}.already{background-color:#1d805f}\n"] }]
556
+ }], propDecorators: { title: [{
557
+ type: Input
558
+ }], type: [{
559
+ type: Input
560
+ }], readinessStats: [{
561
+ type: Input
562
+ }], upgradeStatus: [{
563
+ type: Input
564
+ }] } });
565
+
566
+ class StatusListCardComponent {
567
+ }
568
+ StatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
569
+ 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\">\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 class=\"card__item-info\">\r\n <div class=\"card__item-text\">\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 *ngIf=\"title.includes('Site')\" class=\"card__item-stats\">\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 </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:1rem}.card__list-item{display:flex;align-items:center;gap:1rem}.card__item-info{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%}.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}.card__item-stats{right:0;position:absolute;text-align:right}.card__item-stats .card__item-numbers{font-size:28px}.card__item-stats .card__item-numbers-description{font-size:14px}\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: "component", type: CardComponent, selector: "tk-card", inputs: ["title"] }] });
570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatusListCardComponent, decorators: [{
571
+ type: Component,
572
+ 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\">\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 class=\"card__item-info\">\r\n <div class=\"card__item-text\">\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 *ngIf=\"title.includes('Site')\" class=\"card__item-stats\">\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 </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:1rem}.card__list-item{display:flex;align-items:center;gap:1rem}.card__item-info{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%}.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}.card__item-stats{right:0;position:absolute;text-align:right}.card__item-stats .card__item-numbers{font-size:28px}.card__item-stats .card__item-numbers-description{font-size:14px}\n"] }]
573
+ }], propDecorators: { title: [{
574
+ type: Input
575
+ }], items: [{
576
+ type: Input
577
+ }] } });
578
+
579
+ class ChartCardComponent {
580
+ ngOnInit() {
581
+ this.initChartOptions();
582
+ }
583
+ initChartOptions() {
584
+ if (this.totalUpgraded === 0)
585
+ this.totalNotUpgraded = 100;
586
+ this.chartOptions = {
587
+ series: [this.totalUpgraded, this.totalNotUpgraded],
588
+ chart: {
589
+ type: "donut",
590
+ height: 250
591
+ },
592
+ labels: ["MT", "DI"],
593
+ colors: ["#808080", "#2E8B57"],
594
+ legend: {
595
+ position: "right",
596
+ offsetY: 0,
597
+ fontSize: "14px",
598
+ markers: {
599
+ width: 16,
600
+ height: 16,
601
+ radius: 2
602
+ },
603
+ itemMargin: {
604
+ horizontal: 20,
605
+ vertical: 2
606
+ },
607
+ formatter: function (seriesName, opts) {
608
+ return seriesName + " " + ((opts.w.globals.series[opts.seriesIndex] / (opts.w.globals.series[0] + opts.w.globals.series[1]) * 100) >> 0) + "%";
609
+ }
610
+ },
611
+ plotOptions: {
612
+ pie: {
613
+ donut: {
614
+ size: "75%"
615
+ }
616
+ }
617
+ },
618
+ dataLabels: {
619
+ enabled: false
620
+ }
621
+ };
622
+ }
623
+ }
624
+ ChartCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
625
+ 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"] }] });
626
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartCardComponent, decorators: [{
627
+ type: Component,
628
+ 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"] }]
629
+ }], propDecorators: { title: [{
630
+ type: Input
631
+ }], totalUpgraded: [{
632
+ type: Input
633
+ }], totalNotUpgraded: [{
634
+ type: Input
635
+ }] } });
636
+
637
+ class SharedModule {
638
+ }
639
+ SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
640
+ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, declarations: [CardComponent,
641
+ StatCardComponent,
642
+ StatusListCardComponent,
643
+ ChartCardComponent,
644
+ SummaryCardComponent,
645
+ TableFiltersComponent], imports: [CommonModule,
646
+ MaterialModule,
647
+ NgApexchartsModule,
648
+ HttpClientModule], exports: [CardComponent,
649
+ StatCardComponent,
650
+ StatusListCardComponent,
651
+ ChartCardComponent,
652
+ SummaryCardComponent,
653
+ TableFiltersComponent] });
654
+ SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, imports: [CommonModule,
655
+ MaterialModule,
656
+ NgApexchartsModule,
657
+ HttpClientModule] });
658
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, decorators: [{
659
+ type: NgModule,
660
+ args: [{
661
+ declarations: [
662
+ CardComponent,
663
+ StatCardComponent,
664
+ StatusListCardComponent,
665
+ ChartCardComponent,
666
+ SummaryCardComponent,
667
+ TableFiltersComponent
668
+ ],
669
+ imports: [
670
+ CommonModule,
671
+ MaterialModule,
672
+ NgApexchartsModule,
673
+ HttpClientModule
674
+ ],
675
+ exports: [
676
+ CardComponent,
677
+ StatCardComponent,
678
+ StatusListCardComponent,
679
+ ChartCardComponent,
680
+ SummaryCardComponent,
681
+ TableFiltersComponent
682
+ ]
683
+ }]
684
+ }] });
685
+
686
+ class UserUpgradeModule {
687
+ }
688
+ UserUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
689
+ UserUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, declarations: [UserUpgradeDataTableComponent], imports: [CommonModule,
690
+ SharedModule,
691
+ MatTableModule,
692
+ MatButtonModule,
693
+ MatCheckboxModule], exports: [UserUpgradeDataTableComponent] });
694
+ UserUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, imports: [CommonModule,
695
+ SharedModule,
696
+ MatTableModule,
697
+ MatButtonModule,
698
+ MatCheckboxModule] });
699
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, decorators: [{
700
+ type: NgModule,
701
+ args: [{
702
+ declarations: [
703
+ UserUpgradeDataTableComponent
704
+ ],
705
+ imports: [
706
+ CommonModule,
707
+ SharedModule,
708
+ MatTableModule,
709
+ MatButtonModule,
710
+ MatCheckboxModule
711
+ ],
712
+ exports: [
713
+ UserUpgradeDataTableComponent
714
+ ]
715
+ }]
716
+ }] });
717
+
718
+ class SiteUpgradeService {
719
+ constructor() {
720
+ this.apiService = inject(APIService);
721
+ }
722
+ getSiteUpgradeStatusCounts() {
723
+ return this.apiService.fetch(API.SITE_UPGRADE.GET_SITES_UPGRADE_STATUS_COUNTS.replace(':customerId', this.customerId));
724
+ }
725
+ getSiteUpgradeRecords() {
726
+ return this.apiService.fetch(API.SITE_UPGRADE.GET_SITES_UPGRADE_DATA.replace(':customerId', this.customerId)).pipe(map((resp) => {
727
+ return resp.content.map((record) => ({
728
+ siteId: record.siteId,
729
+ siteName: record.siteName,
730
+ totalUsers: record.totalUsers,
731
+ totalReadyUsers: record.readyUsers,
732
+ totalNotReadyUsers: record.notReadyUsers,
733
+ totalUpgradedUsers: record.totalUpgradedUsers,
734
+ totalFailedUsers: record.totalFailedToUpgradeUsers,
735
+ locationMapping: record.locationMappingStatus,
736
+ PSTNTrunk: record.pstnTrunkStatus,
737
+ upgradeStatus: record.siteUpgradeStatus
738
+ }));
739
+ }));
740
+ }
741
+ // TODO: Impl the site upgrade logic here
742
+ upgradeSite(site) {
743
+ const customerId = site.customerId;
744
+ const siteId = site.siteId;
745
+ }
746
+ }
747
+ SiteUpgradeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
748
+ SiteUpgradeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, providedIn: 'root' });
749
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, decorators: [{
750
+ type: Injectable,
751
+ args: [{
752
+ providedIn: 'root'
753
+ }]
754
+ }] });
755
+
756
+ class SiteUpgradeDataTableComponent {
757
+ constructor() {
758
+ this.siteUpgradeService = inject(SiteUpgradeService);
759
+ this.apiService = inject(APIService);
760
+ this.destroy$ = new Subject();
761
+ this.STATUS_ENTRIES = STATUS_ENTRIES;
762
+ this.displayedColumns = ['site', 'ready users', 'upgraded users', 'location mapping', 'pstn trunk', 'site upgrade status'];
763
+ this.selection = new SelectionModel(true, []);
764
+ this.filters = [];
765
+ this.activeFilters = {};
766
+ this.statusCounts = {};
767
+ }
768
+ ngOnInit() {
769
+ this.apiService.token = this.token;
770
+ this.siteUpgradeService.customerId = this.customerId;
771
+ this.siteUpgradeService.getSiteUpgradeRecords()
772
+ .pipe(takeUntil(this.destroy$))
773
+ .subscribe((records) => {
774
+ this.data = new MatTableDataSource(records);
775
+ this.setupCustomFilter();
776
+ this.initializeFilters(records);
777
+ });
778
+ this.siteUpgradeService.getSiteUpgradeStatusCounts()
779
+ .pipe(takeUntil(this.destroy$))
780
+ .subscribe((statusCounts) => {
781
+ this.statusCounts['Ready'] = statusCounts['READY'] || 0;
782
+ this.statusCounts['Not Ready'] = statusCounts['NOT_READY'] || 0;
783
+ this.statusCounts['Completed'] = statusCounts['COMPLETED'] || 0;
784
+ this.statusCounts['Failed'] = statusCounts['FAILED'] || 0;
785
+ });
786
+ }
787
+ initializeFilters(records) {
788
+ // Extract unique sites from actual data
789
+ const uniqueSites = [...new Set(records.map(record => record.siteName))];
790
+ const siteOptions = uniqueSites.map(site => ({
791
+ label: site,
792
+ value: site.toLowerCase().replace(/\s+/g, '-')
793
+ }));
794
+ // Extract unique statuses from actual data
795
+ const uniqueStatuses = [...new Set(records.map(record => record.upgradeStatus))];
796
+ const statusOptions = uniqueStatuses.map(status => ({
797
+ label: STATUS_ENTRIES[status],
798
+ value: status.toLowerCase().replace(/\s+/g, '-')
799
+ }));
800
+ this.filters = [
801
+ {
802
+ id: 'sites',
803
+ type: 'select',
804
+ columnKey: 'Site',
805
+ placeholder: 'Sites',
806
+ options: siteOptions
807
+ },
808
+ {
809
+ id: 'status',
810
+ type: 'select',
811
+ columnKey: 'Site Upgrade Status',
812
+ placeholder: 'Upgrade Status',
813
+ options: statusOptions
814
+ }
815
+ ];
816
+ }
817
+ onFilter(filterEvent) {
818
+ const { key, value } = filterEvent;
819
+ let filterValue;
820
+ if (value && value.value !== undefined) {
821
+ filterValue = value.value;
822
+ }
823
+ else if (value && value.target) {
824
+ filterValue = value.target.value;
825
+ }
826
+ else {
827
+ filterValue = value;
828
+ }
829
+ // Handle "All" option or empty values - remove the filter
830
+ if (filterValue === 'all' || !filterValue || filterValue === '') {
831
+ delete this.activeFilters[key];
832
+ }
833
+ else {
834
+ this.activeFilters[key] = filterValue;
835
+ }
836
+ this.applyFilters();
837
+ }
838
+ setupCustomFilter() {
839
+ this.data.filterPredicate = (data, filter) => {
840
+ const filters = JSON.parse(filter || '{}');
841
+ for (const [key, value] of Object.entries(filters)) {
842
+ if (!value)
843
+ continue;
844
+ switch (key) {
845
+ case 'Site':
846
+ if (data.siteName !== this.getSiteNameFromValue(value)) {
847
+ return false;
848
+ }
849
+ break;
850
+ case 'Site Upgrade Status':
851
+ if (!this.matchesUpgradeStatus(data.upgradeStatus, value)) {
852
+ return false;
853
+ }
854
+ break;
855
+ }
856
+ }
857
+ return true;
858
+ };
859
+ }
860
+ applyFilters() {
861
+ this.data.filter = JSON.stringify(this.activeFilters);
862
+ }
863
+ getSiteNameFromValue(value) {
864
+ // Since we're now using actual site names, just convert back from slug format
865
+ return value.split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
866
+ }
867
+ matchesUpgradeStatus(status, filterValue) {
868
+ // Handle direct status matching for cleaner implementation
869
+ return status.toLowerCase().replace(/\s+/g, '-') === filterValue.toLowerCase();
870
+ }
871
+ get filteredDataCount() {
872
+ var _a, _b;
873
+ return ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.filteredData) === null || _b === void 0 ? void 0 : _b.length) || 0;
874
+ }
875
+ /** Whether the number of selected elements matches the total number of rows. */
876
+ isAllSelected() {
877
+ var _a;
878
+ const numSelected = this.selection.selected.length;
879
+ const numRows = ((_a = this.data) === null || _a === void 0 ? void 0 : _a.data.length) || 0;
880
+ return numSelected === numRows;
881
+ }
882
+ /** Selects all rows if they are not all selected; otherwise clear selection. */
883
+ masterToggle() {
884
+ var _a;
885
+ this.isAllSelected() ?
886
+ this.selection.clear() :
887
+ (_a = this.data) === null || _a === void 0 ? void 0 : _a.data.forEach(row => this.selection.select(row));
888
+ }
889
+ getLocationMappingClass(locationMapping) {
890
+ return locationMapping ? 'success' : 'error';
891
+ }
892
+ getSiteUpgradeStatusClass(status) {
893
+ switch (status.toLowerCase()) {
894
+ case 'ready':
895
+ return 'ready';
896
+ case 'partial ready':
897
+ return 'partial-ready';
898
+ case 'completed':
899
+ return 'completed';
900
+ case 'failed':
901
+ return 'failed';
902
+ case 'not ready':
903
+ return 'not-ready';
904
+ default:
905
+ return 'not-ready';
906
+ }
907
+ }
908
+ upgradeSite(site) {
909
+ this.siteUpgradeService.upgradeSite(site);
910
+ }
911
+ ngOnDestroy() {
912
+ this.destroy$.next();
913
+ this.destroy$.complete();
914
+ }
915
+ }
916
+ SiteUpgradeDataTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
917
+ SiteUpgradeDataTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SiteUpgradeDataTableComponent, selector: "tk-site-upgrade-data-table", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: "<div 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']\" [status]=\"'Not Ready'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Sites 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}} 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 <span class=\"site-indicator\"></span>\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=\"STATUS_ENTRIES[element.upgradeStatus] === 'Ready'; else statusBlock\">\r\n <button mat-button color=\"primary\" class=\"upgrade-button\" (click)=\"upgradeSite(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 <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&display=swap\";.wrapper{display:flex;flex-direction:column;gap:1rem}.site-upgrade-status-wrapper{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.site-upgrade-table{font-family:Inter,Inter,sans-serif;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}.site-upgrade-table .mat-header-cell{border-bottom:1px solid #afafaf}.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 .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:#1d805f}.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 .upgrade-button{border:1px solid #08599c;color:#08599c;background:white;border-radius:20px;font-size:14px;font-style:normal;font-weight:500;height:32px;display:flex;align-items:center;justify-content:center}.site-upgrade-table .upgrade-button:hover{background-color:#e3f2fd}.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{display:flex;align-items:center}.action-wrapper{display:flex;align-items:center;flex:1;justify-content:space-between;gap:1rem}.table-action-panel{width:100%;display:flex;justify-content:flex-start;align-items:center;gap:1rem}\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: SummaryCardComponent, selector: "tk-summary-card", inputs: ["value", "status", "description"] }, { kind: "component", type: TableFiltersComponent, selector: "tk-table-filters", inputs: ["filters"], outputs: ["filter"] }, { kind: "component", type: i4$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i4$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i4$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i4$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i4$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i4$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i4$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i4$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i4$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i4$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i5$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"] }] });
918
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeDataTableComponent, decorators: [{
919
+ type: Component,
920
+ args: [{ selector: 'tk-site-upgrade-data-table', template: "<div 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']\" [status]=\"'Not Ready'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Sites 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}} 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 <span class=\"site-indicator\"></span>\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=\"STATUS_ENTRIES[element.upgradeStatus] === 'Ready'; else statusBlock\">\r\n <button mat-button color=\"primary\" class=\"upgrade-button\" (click)=\"upgradeSite(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 <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&display=swap\";.wrapper{display:flex;flex-direction:column;gap:1rem}.site-upgrade-status-wrapper{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.site-upgrade-table{font-family:Inter,Inter,sans-serif;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}.site-upgrade-table .mat-header-cell{border-bottom:1px solid #afafaf}.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 .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:#1d805f}.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 .upgrade-button{border:1px solid #08599c;color:#08599c;background:white;border-radius:20px;font-size:14px;font-style:normal;font-weight:500;height:32px;display:flex;align-items:center;justify-content:center}.site-upgrade-table .upgrade-button:hover{background-color:#e3f2fd}.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{display:flex;align-items:center}.action-wrapper{display:flex;align-items:center;flex:1;justify-content:space-between;gap:1rem}.table-action-panel{width:100%;display:flex;justify-content:flex-start;align-items:center;gap:1rem}\n"] }]
921
+ }], ctorParameters: function () { return []; }, propDecorators: { token: [{
922
+ type: Input
923
+ }], customerId: [{
924
+ type: Input
925
+ }] } });
926
+
927
+ class SiteUpgradeModule {
928
+ }
929
+ SiteUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
930
+ SiteUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, declarations: [SiteUpgradeDataTableComponent], imports: [CommonModule,
931
+ SharedModule,
932
+ MatTableModule,
933
+ MatIconModule,
934
+ MatButtonModule], exports: [SiteUpgradeDataTableComponent] });
935
+ SiteUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, imports: [CommonModule,
936
+ SharedModule,
937
+ MatTableModule,
938
+ MatIconModule,
939
+ MatButtonModule] });
940
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, decorators: [{
941
+ type: NgModule,
942
+ args: [{
943
+ declarations: [
944
+ SiteUpgradeDataTableComponent
945
+ ],
946
+ imports: [
947
+ CommonModule,
948
+ SharedModule,
949
+ MatTableModule,
950
+ MatIconModule,
951
+ MatButtonModule
952
+ ],
953
+ exports: [
954
+ SiteUpgradeDataTableComponent
955
+ ]
956
+ }]
957
+ }] });
958
+
959
+ class UpgradeOverviewService {
960
+ constructor(apiService) {
961
+ this.apiService = apiService;
962
+ }
963
+ getUpgradePreconditions() {
964
+ return this.apiService.fetch(API.OVERVIEW.GET_UPGRADE_PRECONDITIONS.replace(':customerId', this.customerId)).pipe(map((resp) => {
965
+ return {
966
+ id: resp.id,
967
+ customerId: resp.customerId,
968
+ controlHubIntegration: resp.controlHubIntegration,
969
+ numberOfAvailableLicences: resp.availableLicences
970
+ };
971
+ }));
972
+ }
973
+ getSiteInfrastructureSummary() {
974
+ return this.apiService.fetch(API.OVERVIEW.GET_SITE_INFRASTRUCTURE.replace(':customerId', this.customerId)).pipe(map((resp) => {
975
+ return {
976
+ id: resp.id,
977
+ customerId: resp.customerId,
978
+ totalSites: resp.totalSites,
979
+ totalLocations: resp.totalLocations,
980
+ totalPSTNs: resp.totalPSTNS
981
+ };
982
+ }));
983
+ }
984
+ getUsersUpgradeSummary() {
985
+ return this.apiService.fetch(API.OVERVIEW.GET_USERS_UPGRADE_SUMMARY.replace(':customerId', this.customerId)).pipe(map((resp) => {
986
+ return {
987
+ id: resp.id,
988
+ customerId: resp.customerId,
989
+ totalUsers: resp.totalUsers,
990
+ totalReadyUsers: resp.totalUsersReady,
991
+ totalUpgradedUsers: resp.totalUsersUpgraded
992
+ };
993
+ }));
994
+ }
995
+ getSitesUpgradeSummary() {
996
+ return this.apiService.fetch(API.OVERVIEW.GET_SITES_UPGRADE_SUMMARY.replace(':customerId', this.customerId)).pipe(map((resp) => {
997
+ return {
998
+ id: resp.id,
999
+ customerId: resp.customerId,
1000
+ totalSites: resp.totalSites,
1001
+ totalReadySites: resp.totalSitesReady,
1002
+ totalUpgradedSites: resp.totalSitesUpgraded
1003
+ };
1004
+ }));
1005
+ }
1006
+ getUsersUpgradeReadiness() {
1007
+ return this.apiService.fetch(API.OVERVIEW.GET_USERS_UPGRADE_READINESS.replace(':customerId', this.customerId)).pipe(map((resp) => {
1008
+ return {
1009
+ id: resp.id,
1010
+ customerId: resp.customerId,
1011
+ totalUsers: resp.totalUsers,
1012
+ totalReadyUsers: resp.totalUsersReady
1013
+ };
1014
+ }));
1015
+ }
1016
+ getSitesUpgradeReadiness() {
1017
+ return this.apiService.fetch(API.OVERVIEW.GET_SITES_UPGRADE_READINESS.replace(':customerId', this.customerId)).pipe(map((resp) => {
1018
+ return {
1019
+ id: resp.id,
1020
+ customerId: resp.customerId,
1021
+ totalSites: resp.totalSites,
1022
+ totalReadySites: resp.totalSitesReady
1023
+ };
1024
+ }));
1025
+ }
1026
+ }
1027
+ UpgradeOverviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, deps: [{ token: APIService }], target: i0.ɵɵFactoryTarget.Injectable });
1028
+ UpgradeOverviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, providedIn: 'root' });
1029
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, decorators: [{
1030
+ type: Injectable,
1031
+ args: [{
1032
+ providedIn: 'root'
1033
+ }]
1034
+ }], ctorParameters: function () { return [{ type: APIService }]; } });
1035
+
1036
+ class ReadyToUpgradeUsersCardComponent {
1037
+ constructor() {
1038
+ this.apiService = inject(APIService);
1039
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
1040
+ this.destroy$ = new Subject();
1041
+ this.title = 'Ready Users';
1042
+ this.type = 'user';
1043
+ this.upgradeStatus = 'ready';
1044
+ this.loading = false;
1045
+ }
1046
+ ngOnInit() {
1047
+ this.apiService.token = this.token;
1048
+ this.upgradeOverviewService.customerId = this.customerId;
1049
+ this.loading = true;
1050
+ this.upgradeOverviewService.getUsersUpgradeReadiness()
1051
+ .pipe(takeUntil(this.destroy$))
1052
+ .subscribe((stats) => {
1053
+ this.readinessStats = stats;
1054
+ this.loading = false;
1055
+ });
1056
+ }
1057
+ ngOnDestroy() {
1058
+ this.destroy$.next();
1059
+ this.destroy$.complete();
1060
+ }
1061
+ }
1062
+ ReadyToUpgradeUsersCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeUsersCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1063
+ ReadyToUpgradeUsersCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ReadyToUpgradeUsersCardComponent, selector: "tk-ready-to-upgrade-users-card", inputs: { 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"] }] });
1064
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeUsersCardComponent, decorators: [{
1065
+ type: Component,
1066
+ 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>" }]
1067
+ }], propDecorators: { token: [{
1068
+ type: Input
1069
+ }], customerId: [{
1070
+ type: Input
1071
+ }] } });
1072
+
1073
+ class ReadyToUpgradeSitesCardComponent {
1074
+ constructor() {
1075
+ this.apiService = inject(APIService);
1076
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
1077
+ this.destroy$ = new Subject();
1078
+ this.title = 'Ready Sites';
1079
+ this.type = 'site';
1080
+ this.upgradeStatus = 'ready';
1081
+ this.loading = false;
1082
+ }
1083
+ ngOnInit() {
1084
+ this.apiService.token = this.token;
1085
+ this.upgradeOverviewService.customerId = this.customerId;
1086
+ this.loading = true;
1087
+ this.upgradeOverviewService.getSitesUpgradeReadiness()
1088
+ .pipe(takeUntil(this.destroy$))
1089
+ .subscribe((stats) => {
1090
+ this.readinessStats = stats;
1091
+ this.loading = false;
1092
+ });
1093
+ }
1094
+ ngOnDestroy() {
1095
+ this.destroy$.next();
1096
+ this.destroy$.complete();
1097
+ }
1098
+ }
1099
+ ReadyToUpgradeSitesCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeSitesCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1100
+ ReadyToUpgradeSitesCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ReadyToUpgradeSitesCardComponent, selector: "tk-ready-to-upgrade-sites-card", inputs: { 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"] }] });
1101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeSitesCardComponent, decorators: [{
1102
+ type: Component,
1103
+ 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>" }]
1104
+ }], propDecorators: { token: [{
1105
+ type: Input
1106
+ }], customerId: [{
1107
+ type: Input
1108
+ }] } });
1109
+
1110
+ class AlreadyUpgradedUsersCardComponent {
1111
+ constructor() {
1112
+ this.apiService = inject(APIService);
1113
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
1114
+ this.destroy$ = new Subject();
1115
+ this.title = 'Upgraded Users';
1116
+ this.type = 'user';
1117
+ this.upgradeStatus = 'already';
1118
+ this.loading = false;
1119
+ }
1120
+ ngOnInit() {
1121
+ this.apiService.token = this.token;
1122
+ this.upgradeOverviewService.customerId = this.customerId;
1123
+ this.loading = true;
1124
+ this.upgradeOverviewService.getUsersUpgradeSummary()
1125
+ .pipe(takeUntil(this.destroy$))
1126
+ .subscribe((stats) => {
1127
+ this.readinessStats = stats;
1128
+ this.loading = false;
1129
+ });
1130
+ }
1131
+ ngOnDestroy() {
1132
+ this.destroy$.next();
1133
+ this.destroy$.complete();
1134
+ }
1135
+ }
1136
+ AlreadyUpgradedUsersCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedUsersCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1137
+ AlreadyUpgradedUsersCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AlreadyUpgradedUsersCardComponent, selector: "tk-already-upgraded-users-card", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: `
1138
+ <tk-stat-card
1139
+ *ngIf="!loading"
1140
+ [title]="title"
1141
+ [type]="type"
1142
+ [readinessStats]="readinessStats"
1143
+ [upgradeStatus]="upgradeStatus"
1144
+ ></tk-stat-card>
1145
+ `, 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"] }] });
1146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedUsersCardComponent, decorators: [{
1147
+ type: Component,
1148
+ args: [{
1149
+ selector: 'tk-already-upgraded-users-card',
1150
+ template: `
1151
+ <tk-stat-card
1152
+ *ngIf="!loading"
1153
+ [title]="title"
1154
+ [type]="type"
1155
+ [readinessStats]="readinessStats"
1156
+ [upgradeStatus]="upgradeStatus"
1157
+ ></tk-stat-card>
1158
+ `
1159
+ }]
1160
+ }], propDecorators: { token: [{
1161
+ type: Input
1162
+ }], customerId: [{
1163
+ type: Input
1164
+ }] } });
1165
+
1166
+ class AlreadyUpgradedSitesCardComponent {
1167
+ constructor() {
1168
+ this.apiService = inject(APIService);
1169
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
1170
+ this.destroy$ = new Subject();
1171
+ this.title = 'Upgraded Sites';
1172
+ this.type = 'site';
1173
+ this.upgradeStatus = 'already';
1174
+ this.loading = false;
1175
+ }
1176
+ ngOnInit() {
1177
+ this.apiService.token = this.token;
1178
+ this.upgradeOverviewService.customerId = this.customerId;
1179
+ this.loading = true;
1180
+ this.upgradeOverviewService.getSitesUpgradeSummary()
1181
+ .pipe(takeUntil(this.destroy$))
1182
+ .subscribe((stats) => {
1183
+ this.readinessStats = stats;
1184
+ this.loading = false;
1185
+ });
1186
+ }
1187
+ ngOnDestroy() {
1188
+ this.destroy$.next();
1189
+ this.destroy$.complete();
1190
+ }
1191
+ }
1192
+ AlreadyUpgradedSitesCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedSitesCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1193
+ AlreadyUpgradedSitesCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AlreadyUpgradedSitesCardComponent, selector: "tk-already-upgraded-sites-card", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: `
1194
+ <tk-stat-card
1195
+ *ngIf="!loading"
1196
+ [title]="title"
1197
+ [type]="type"
1198
+ [readinessStats]="readinessStats"
1199
+ [upgradeStatus]="upgradeStatus"
1200
+ ></tk-stat-card>
1201
+ `, 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"] }] });
1202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedSitesCardComponent, decorators: [{
1203
+ type: Component,
1204
+ args: [{
1205
+ selector: 'tk-already-upgraded-sites-card',
1206
+ template: `
1207
+ <tk-stat-card
1208
+ *ngIf="!loading"
1209
+ [title]="title"
1210
+ [type]="type"
1211
+ [readinessStats]="readinessStats"
1212
+ [upgradeStatus]="upgradeStatus"
1213
+ ></tk-stat-card>
1214
+ `
1215
+ }]
1216
+ }], propDecorators: { token: [{
1217
+ type: Input
1218
+ }], customerId: [{
1219
+ type: Input
1220
+ }] } });
1221
+
1222
+ class PreconditionsStatusListCardComponent {
1223
+ constructor() {
1224
+ this.apiService = inject(APIService);
1225
+ this.destroy$ = new Subject();
1226
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
1227
+ this.title = 'Preconditions';
1228
+ }
1229
+ ngOnInit() {
1230
+ this.apiService.token = this.token;
1231
+ this.upgradeOverviewService.customerId = this.customerId;
1232
+ this.upgradeOverviewService.getUpgradePreconditions()
1233
+ .pipe(takeUntil(this.destroy$))
1234
+ .subscribe((resp) => {
1235
+ this.preconditions = resp;
1236
+ this.init();
1237
+ });
1238
+ }
1239
+ ngOnDestroy() {
1240
+ this.destroy$.next();
1241
+ this.destroy$.complete();
1242
+ }
1243
+ init() {
1244
+ this.items = [
1245
+ {
1246
+ label: 'Control Hub Integration',
1247
+ description: 'Control Hub Connectivity',
1248
+ status: this.preconditions.controlHubIntegration === 'CONNECTED'
1249
+ },
1250
+ {
1251
+ label: 'SIP Trunk (Local Gateway)',
1252
+ description: 'CUCM trunk connectivity estabilished',
1253
+ status: false
1254
+ },
1255
+ {
1256
+ label: `${this.preconditions.numberOfAvailableLicences} Available User Licences`,
1257
+ description: 'Webex calling licences provisioned and assgined',
1258
+ status: this.preconditions.numberOfAvailableLicences > 0
1259
+ }
1260
+ ];
1261
+ }
1262
+ }
1263
+ PreconditionsStatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PreconditionsStatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1264
+ PreconditionsStatusListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PreconditionsStatusListCardComponent, selector: "tk-preconditions-status-list-card", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: `
1265
+ <tk-status-list-card
1266
+ [title]="title"
1267
+ [items]="items"
1268
+ ></tk-status-list-card>
1269
+ `, isInline: true, styles: [":host{width:100%}\n"], dependencies: [{ kind: "component", type: StatusListCardComponent, selector: "tk-status-list-card", inputs: ["title", "items"] }] });
1270
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PreconditionsStatusListCardComponent, decorators: [{
1271
+ type: Component,
1272
+ args: [{ selector: 'tk-preconditions-status-list-card', template: `
1273
+ <tk-status-list-card
1274
+ [title]="title"
1275
+ [items]="items"
1276
+ ></tk-status-list-card>
1277
+ `, styles: [":host{width:100%}\n"] }]
1278
+ }], propDecorators: { token: [{
1279
+ type: Input
1280
+ }], customerId: [{
1281
+ type: Input
1282
+ }] } });
1283
+
1284
+ class SiteInfrastructureStatusListCardComponent {
1285
+ constructor() {
1286
+ this.title = 'Site Infrastructure';
1287
+ this.apiService = inject(APIService);
1288
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
1289
+ this.destroy$ = new Subject();
1290
+ }
1291
+ ngOnInit() {
1292
+ this.apiService.token = this.token;
1293
+ this.upgradeOverviewService.customerId = this.customerId;
1294
+ this.upgradeOverviewService.getSiteInfrastructureSummary()
1295
+ .pipe(takeUntil(this.destroy$))
1296
+ .subscribe((siteInfrastructure) => {
1297
+ this.items = [
1298
+ {
1299
+ label: 'PSTN Trunk',
1300
+ description: 'Public network connectivity',
1301
+ status: false,
1302
+ totalSites: siteInfrastructure.totalSites,
1303
+ value: siteInfrastructure.totalPSTNs
1304
+ },
1305
+ {
1306
+ label: 'Location Mapping',
1307
+ description: 'Sites defined in Control Hub with proper configuration',
1308
+ status: false,
1309
+ totalSites: siteInfrastructure.totalSites,
1310
+ value: siteInfrastructure.totalLocations
1311
+ }
1312
+ ];
1313
+ });
1314
+ }
1315
+ ngOnDestroy() {
1316
+ this.destroy$.next();
1317
+ this.destroy$.complete();
1318
+ }
1319
+ }
1320
+ SiteInfrastructureStatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteInfrastructureStatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1321
+ SiteInfrastructureStatusListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SiteInfrastructureStatusListCardComponent, selector: "tk-site-infrastructure-status-list-card", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: `
1322
+ <tk-status-list-card
1323
+ [title]="title"
1324
+ [items]="items"
1325
+ ></tk-status-list-card>
1326
+ `, isInline: true, styles: [":host{width:100%}\n"], dependencies: [{ kind: "component", type: StatusListCardComponent, selector: "tk-status-list-card", inputs: ["title", "items"] }] });
1327
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteInfrastructureStatusListCardComponent, decorators: [{
1328
+ type: Component,
1329
+ args: [{ selector: 'tk-site-infrastructure-status-list-card', template: `
1330
+ <tk-status-list-card
1331
+ [title]="title"
1332
+ [items]="items"
1333
+ ></tk-status-list-card>
1334
+ `, styles: [":host{width:100%}\n"] }]
1335
+ }], propDecorators: { token: [{
1336
+ type: Input
1337
+ }], customerId: [{
1338
+ type: Input
1339
+ }] } });
1340
+
1341
+ class UpgradeStateComparisonChartCardComponent {
1342
+ constructor() {
1343
+ this.apiService = inject(APIService);
1344
+ this.upgradeOverviewService = inject(UpgradeOverviewService);
1345
+ this.destroy$ = new Subject();
1346
+ this.type = 'Users';
1347
+ this.loading = false;
1348
+ }
1349
+ ngOnInit() {
1350
+ this.apiService.token = this.token;
1351
+ this.upgradeOverviewService.customerId = this.customerId;
1352
+ this.totalUpgraded = 0;
1353
+ this.totalNotUpgraded = 0;
1354
+ this.loading = true;
1355
+ this.title = `Upgraded vs. Not Upgraded ${this.type}`;
1356
+ if (this.type === 'Sites') {
1357
+ this.upgradeOverviewService.getSitesUpgradeSummary()
1358
+ .pipe(takeUntil(this.destroy$))
1359
+ .subscribe((stats) => {
1360
+ this.totalUpgraded = parseInt(stats.totalUpgradedSites);
1361
+ this.totalNotUpgraded = parseInt(stats.totalReadySites);
1362
+ this.loading = false;
1363
+ });
1364
+ }
1365
+ else {
1366
+ this.upgradeOverviewService.getUsersUpgradeSummary()
1367
+ .pipe(takeUntil(this.destroy$))
1368
+ .subscribe((stats) => {
1369
+ this.totalUpgraded = parseInt(stats.totalUpgradedUsers);
1370
+ this.totalNotUpgraded = parseInt(stats.totalReadyUsers);
1371
+ this.loading = false;
1372
+ });
1373
+ }
1374
+ }
1375
+ ngOnDestroy() {
1376
+ this.destroy$.next();
1377
+ this.destroy$.complete();
1378
+ }
1379
+ }
1380
+ UpgradeStateComparisonChartCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeStateComparisonChartCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1381
+ UpgradeStateComparisonChartCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UpgradeStateComparisonChartCardComponent, selector: "tk-upgrade-state-comparison-chart-card", inputs: { type: "type", token: "token", customerId: "customerId" }, ngImport: i0, template: `
1382
+ <tk-chart-card
1383
+ *ngIf="!loading"
1384
+ [title]="title"
1385
+ [totalUpgraded]="totalUpgraded"
1386
+ [totalNotUpgraded]="totalNotUpgraded"
1387
+ ></tk-chart-card>
1388
+ `, 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"] }] });
1389
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeStateComparisonChartCardComponent, decorators: [{
1390
+ type: Component,
1391
+ args: [{ selector: "tk-upgrade-state-comparison-chart-card", template: `
1392
+ <tk-chart-card
1393
+ *ngIf="!loading"
1394
+ [title]="title"
1395
+ [totalUpgraded]="totalUpgraded"
1396
+ [totalNotUpgraded]="totalNotUpgraded"
1397
+ ></tk-chart-card>
1398
+ `, styles: [":host{width:100%}\n"] }]
1399
+ }], propDecorators: { type: [{
1400
+ type: Input
1401
+ }], token: [{
1402
+ type: Input
1403
+ }], customerId: [{
1404
+ type: Input
1405
+ }] } });
1406
+
1407
+ class UpgradeOverviewModule {
1408
+ }
1409
+ UpgradeOverviewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1410
+ UpgradeOverviewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, declarations: [ReadyToUpgradeUsersCardComponent,
1411
+ ReadyToUpgradeSitesCardComponent,
1412
+ AlreadyUpgradedUsersCardComponent,
1413
+ AlreadyUpgradedSitesCardComponent,
1414
+ PreconditionsStatusListCardComponent,
1415
+ SiteInfrastructureStatusListCardComponent,
1416
+ UpgradeStateComparisonChartCardComponent], imports: [CommonModule,
1417
+ SharedModule], exports: [ReadyToUpgradeUsersCardComponent,
1418
+ ReadyToUpgradeSitesCardComponent,
1419
+ AlreadyUpgradedUsersCardComponent,
1420
+ AlreadyUpgradedSitesCardComponent,
1421
+ PreconditionsStatusListCardComponent,
1422
+ SiteInfrastructureStatusListCardComponent,
1423
+ UpgradeStateComparisonChartCardComponent] });
1424
+ UpgradeOverviewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, imports: [CommonModule,
1425
+ SharedModule] });
1426
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, decorators: [{
1427
+ type: NgModule,
1428
+ args: [{
1429
+ declarations: [
1430
+ ReadyToUpgradeUsersCardComponent,
1431
+ ReadyToUpgradeSitesCardComponent,
1432
+ AlreadyUpgradedUsersCardComponent,
1433
+ AlreadyUpgradedSitesCardComponent,
1434
+ PreconditionsStatusListCardComponent,
1435
+ SiteInfrastructureStatusListCardComponent,
1436
+ UpgradeStateComparisonChartCardComponent
1437
+ ],
1438
+ imports: [
1439
+ CommonModule,
1440
+ SharedModule
1441
+ ],
1442
+ exports: [
1443
+ ReadyToUpgradeUsersCardComponent,
1444
+ ReadyToUpgradeSitesCardComponent,
1445
+ AlreadyUpgradedUsersCardComponent,
1446
+ AlreadyUpgradedSitesCardComponent,
1447
+ PreconditionsStatusListCardComponent,
1448
+ SiteInfrastructureStatusListCardComponent,
1449
+ UpgradeStateComparisonChartCardComponent
1450
+ ],
1451
+ providers: []
1452
+ }]
1453
+ }] });
1454
+
1455
+ /*
1456
+ * Public API Surface of @tuki-io/tuki-widgets
1457
+ */
1458
+ // Shared Components
1459
+ // export * from './shared/shared.module';
1460
+ // Widget Modules
1461
+ // Types
1462
+ // export * from './shared/types/data-table';
1463
+
1464
+ /**
1465
+ * Generated bundle index. Do not edit.
1466
+ */
1467
+
1468
+ export { AlreadyUpgradedSitesCardComponent, AlreadyUpgradedUsersCardComponent, PreconditionsStatusListCardComponent, ReadyToUpgradeSitesCardComponent, ReadyToUpgradeUsersCardComponent, SiteInfrastructureStatusListCardComponent, SiteUpgradeDataTableComponent, SiteUpgradeModule, UpgradeOverviewModule, UpgradeStateComparisonChartCardComponent, UserUpgradeDataTableComponent, UserUpgradeModule };
1469
+ //# sourceMappingURL=tuki-io-tuki-widgets-di2mt.mjs.map