@tuki-io/tuki-widgets 0.0.77 → 0.0.78

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