@tuki-io/tuki-widgets 0.0.78 → 0.0.79

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