@tuki-io/tuki-widgets 0.0.76 → 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 (352) hide show
  1. package/README.md +9 -10
  2. package/esm2020/lib/widgets.component.mjs +22 -0
  3. package/esm2020/lib/widgets.module.mjs +21 -0
  4. package/esm2020/lib/widgets.service.mjs +14 -0
  5. package/esm2020/public-api.mjs +7 -0
  6. package/esm2020/tuki-io-tuki-widgets.mjs +5 -0
  7. package/fesm2015/tuki-io-tuki-widgets.mjs +63 -0
  8. package/fesm2015/tuki-io-tuki-widgets.mjs.map +1 -0
  9. package/fesm2020/tuki-io-tuki-widgets.mjs +63 -0
  10. package/fesm2020/tuki-io-tuki-widgets.mjs.map +1 -0
  11. package/index.d.ts +5 -0
  12. package/lib/widgets.component.d.ts +8 -0
  13. package/lib/widgets.module.d.ts +7 -0
  14. package/lib/widgets.service.d.ts +6 -0
  15. package/package.json +65 -48
  16. package/{projects/tuki/widgets/src/public-api.ts → public-api.d.ts} +0 -4
  17. package/.editorconfig +0 -16
  18. package/.hintrc +0 -14
  19. package/.vscode/extensions.json +0 -4
  20. package/.vscode/launch.json +0 -20
  21. package/.vscode/tasks.json +0 -42
  22. package/angular.json +0 -141
  23. package/projects/tuki/widgets/README.md +0 -24
  24. package/projects/tuki/widgets/di2mt/api/api.endpoints.ts +0 -26
  25. package/projects/tuki/widgets/di2mt/assets/icons/already_upgraded.png +0 -0
  26. package/projects/tuki/widgets/di2mt/assets/icons/check2_icon.png +0 -0
  27. package/projects/tuki/widgets/di2mt/assets/icons/check_icon.png +0 -0
  28. package/projects/tuki/widgets/di2mt/assets/icons/details_d_icon.svg +0 -3
  29. package/projects/tuki/widgets/di2mt/assets/icons/expand_icon.png +0 -0
  30. package/projects/tuki/widgets/di2mt/assets/icons/issue_icon.png +0 -0
  31. package/projects/tuki/widgets/di2mt/assets/icons/menu_icon.png +0 -0
  32. package/projects/tuki/widgets/di2mt/assets/icons/ready_to_upgrade.png +0 -0
  33. package/projects/tuki/widgets/di2mt/assets/icons/search_icon.png +0 -0
  34. package/projects/tuki/widgets/di2mt/assets/icons/site.png +0 -0
  35. package/projects/tuki/widgets/di2mt/assets/icons/user.png +0 -0
  36. package/projects/tuki/widgets/di2mt/assets/icons/warning_icon.png +0 -0
  37. package/projects/tuki/widgets/di2mt/ng-package.json +0 -7
  38. package/projects/tuki/widgets/di2mt/public-api.ts +0 -27
  39. package/projects/tuki/widgets/di2mt/shared/components/card/card.component.html +0 -11
  40. package/projects/tuki/widgets/di2mt/shared/components/card/card.component.scss +0 -48
  41. package/projects/tuki/widgets/di2mt/shared/components/card/card.component.ts +0 -10
  42. package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.html +0 -15
  43. package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.scss +0 -38
  44. package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.ts +0 -71
  45. package/projects/tuki/widgets/di2mt/shared/components/index.ts +0 -6
  46. package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.html +0 -57
  47. package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.scss +0 -74
  48. package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.ts +0 -44
  49. package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.html +0 -28
  50. package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.scss +0 -55
  51. package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.ts +0 -11
  52. package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.html +0 -12
  53. package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.scss +0 -79
  54. package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.ts +0 -27
  55. package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.html +0 -28
  56. package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.scss +0 -244
  57. package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.ts +0 -28
  58. package/projects/tuki/widgets/di2mt/shared/constants/app.constants.ts +0 -96
  59. package/projects/tuki/widgets/di2mt/shared/material.module.ts +0 -36
  60. package/projects/tuki/widgets/di2mt/shared/services/api.service.ts +0 -92
  61. package/projects/tuki/widgets/di2mt/shared/shared.module.ts +0 -38
  62. package/projects/tuki/widgets/di2mt/shared/types/constants.ts +0 -15
  63. package/projects/tuki/widgets/di2mt/shared/types/data-table.ts +0 -5
  64. package/projects/tuki/widgets/di2mt/shared/types/table/filter.ts +0 -14
  65. package/projects/tuki/widgets/di2mt/styles/tuki-widgets-theme.scss +0 -13
  66. package/projects/tuki/widgets/di2mt/styles/variables.scss +0 -92
  67. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.html +0 -3
  68. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.scss +0 -37
  69. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.ts +0 -40
  70. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.html +0 -158
  71. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.scss +0 -430
  72. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.ts +0 -362
  73. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.module.ts +0 -33
  74. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.service.ts +0 -102
  75. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/types/user-upgrade.ts +0 -22
  76. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.ts +0 -52
  77. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.ts +0 -53
  78. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.ts +0 -67
  79. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.html +0 -7
  80. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.scss +0 -0
  81. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.ts +0 -45
  82. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.html +0 -7
  83. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.scss +0 -0
  84. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.ts +0 -45
  85. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.ts +0 -59
  86. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.ts +0 -70
  87. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/types/upgrade-overview.ts +0 -58
  88. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/upgrade-overview.module.ts +0 -42
  89. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/upgrade-overview.service.ts +0 -95
  90. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/types/user-upgrade.ts +0 -19
  91. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.html +0 -186
  92. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.scss +0 -345
  93. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.ts +0 -313
  94. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.module.ts +0 -34
  95. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.service.ts +0 -79
  96. package/projects/tuki/widgets/karma.conf.js +0 -44
  97. package/projects/tuki/widgets/ng-package.json +0 -10
  98. package/projects/tuki/widgets/package.json +0 -13
  99. package/projects/tuki/widgets/src/lib/widgets.component.spec.ts +0 -23
  100. package/projects/tuki/widgets/src/lib/widgets.component.ts +0 -20
  101. package/projects/tuki/widgets/src/lib/widgets.module.ts +0 -16
  102. package/projects/tuki/widgets/src/lib/widgets.service.spec.ts +0 -16
  103. package/projects/tuki/widgets/src/lib/widgets.service.ts +0 -9
  104. package/projects/tuki/widgets/src/test.ts +0 -27
  105. package/projects/tuki/widgets/styles.scss +0 -572
  106. package/projects/tuki/widgets/tsconfig.lib.json +0 -36
  107. package/projects/tuki/widgets/tsconfig.lib.prod.json +0 -10
  108. package/projects/tuki/widgets/tsconfig.spec.json +0 -17
  109. package/projects/tuki/widgets/user-device-manage/ng-package.json +0 -7
  110. package/projects/tuki/widgets/user-device-manage/public-api.ts +0 -8
  111. package/projects/tuki/widgets/user-device-manage/src/app.constants.ts +0 -96
  112. package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-left.svg +0 -5
  113. package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-right.svg +0 -5
  114. package/projects/tuki/widgets/user-device-manage/src/assets/icons/close_icon_x.svg +0 -3
  115. package/projects/tuki/widgets/user-device-manage/src/assets/icons/delete_icon.svg +0 -5
  116. package/projects/tuki/widgets/user-device-manage/src/assets/icons/dragger-vertical-icon.svg +0 -3
  117. package/projects/tuki/widgets/user-device-manage/src/assets/icons/icon_user.svg +0 -1
  118. package/projects/tuki/widgets/user-device-manage/src/assets/icons/vartical_divider_icon.svg +0 -3
  119. package/projects/tuki/widgets/user-device-manage/src/classes/device.ts +0 -292
  120. package/projects/tuki/widgets/user-device-manage/src/classes/line-association-interface.ts +0 -50
  121. package/projects/tuki/widgets/user-device-manage/src/classes/line-association.ts +0 -177
  122. package/projects/tuki/widgets/user-device-manage/src/classes/line-call-info-display.ts +0 -21
  123. package/projects/tuki/widgets/user-device-manage/src/classes/line-directory.ts +0 -41
  124. package/projects/tuki/widgets/user-device-manage/src/classes/line.ts +0 -144
  125. package/projects/tuki/widgets/user-device-manage/src/classes/notification.ts +0 -40
  126. package/projects/tuki/widgets/user-device-manage/src/classes/recording-options.ts +0 -6
  127. package/projects/tuki/widgets/user-device-manage/src/classes/simplified-user.ts +0 -169
  128. package/projects/tuki/widgets/user-device-manage/src/classes/site-defaults.ts +0 -167
  129. package/projects/tuki/widgets/user-device-manage/src/classes/translation-pattern.ts +0 -50
  130. package/projects/tuki/widgets/user-device-manage/src/classes/types.ts +0 -19
  131. package/projects/tuki/widgets/user-device-manage/src/classes/user-interface.ts +0 -225
  132. package/projects/tuki/widgets/user-device-manage/src/classes/user.ts +0 -8
  133. package/projects/tuki/widgets/user-device-manage/src/common-functions.ts +0 -16
  134. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.html +0 -14
  135. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.scss +0 -80
  136. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.ts +0 -35
  137. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.html +0 -21
  138. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.scss +0 -97
  139. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.ts +0 -28
  140. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.html +0 -6
  141. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.scss +0 -20
  142. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.ts +0 -13
  143. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.html +0 -6
  144. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.scss +0 -4
  145. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.ts +0 -63
  146. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.html +0 -241
  147. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.scss +0 -500
  148. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.ts +0 -194
  149. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.html +0 -27
  150. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.scss +0 -131
  151. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.ts +0 -25
  152. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.html +0 -209
  153. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.scss +0 -502
  154. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.ts +0 -354
  155. package/projects/tuki/widgets/user-device-manage/src/environments/environment.prod.ts +0 -9
  156. package/projects/tuki/widgets/user-device-manage/src/environments/environment.ts +0 -10
  157. package/projects/tuki/widgets/user-device-manage/src/interseptors/auth.interceptor.ts +0 -35
  158. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.html +0 -50
  159. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -8
  160. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.ts +0 -81
  161. package/projects/tuki/widgets/user-device-manage/src/material.module.ts +0 -87
  162. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.html +0 -33
  163. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.scss +0 -84
  164. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.ts +0 -46
  165. package/projects/tuki/widgets/user-device-manage/src/removeKynFromIBM.service.ts +0 -25
  166. package/projects/tuki/widgets/user-device-manage/src/services/api.service.ts +0 -87
  167. package/projects/tuki/widgets/user-device-manage/src/services/common-functions.ts +0 -17
  168. package/projects/tuki/widgets/user-device-manage/src/services/device.service.ts +0 -95
  169. package/projects/tuki/widgets/user-device-manage/src/services/dns.service.ts +0 -111
  170. package/projects/tuki/widgets/user-device-manage/src/services/line.service.ts +0 -89
  171. package/projects/tuki/widgets/user-device-manage/src/services/notification.service.ts +0 -68
  172. package/projects/tuki/widgets/user-device-manage/src/services/removeKynFromIBM.service.ts +0 -25
  173. package/projects/tuki/widgets/user-device-manage/src/services/site-settings.service.ts +0 -82
  174. package/projects/tuki/widgets/user-device-manage/src/services/sorting-utils.service.ts +0 -203
  175. package/projects/tuki/widgets/user-device-manage/src/services/user.service.ts +0 -283
  176. package/projects/tuki/widgets/user-device-manage/src/services/utils.service.ts +0 -87
  177. package/projects/tuki/widgets/user-device-manage/src/services/validation.service.ts +0 -829
  178. package/projects/tuki/widgets/user-device-manage/src/styles/_variables.scss +0 -90
  179. package/projects/tuki/widgets/user-device-manage/src/styles/form.scss +0 -231
  180. package/projects/tuki/widgets/user-device-manage/src/styles/icons.scss +0 -32
  181. package/projects/tuki/widgets/user-device-manage/src/styles/styles.scss +0 -110
  182. package/projects/tuki/widgets/user-device-manage/src/styles/tables.scss +0 -30
  183. package/projects/tuki/widgets/user-device-manage/src/user-device-manage.module.ts +0 -73
  184. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.html +0 -6
  185. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.scss +0 -11
  186. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.ts +0 -13
  187. package/projects/tuki/widgets/user-manage/ng-package.json +0 -7
  188. package/projects/tuki/widgets/user-manage/public-api.ts +0 -6
  189. package/projects/tuki/widgets/user-manage/src/app.constants.ts +0 -50
  190. package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-left.svg +0 -5
  191. package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-right.svg +0 -5
  192. package/projects/tuki/widgets/user-manage/src/assets/icons/delete_icon.svg +0 -5
  193. package/projects/tuki/widgets/user-manage/src/assets/icons/dragger-vertical-icon.svg +0 -3
  194. package/projects/tuki/widgets/user-manage/src/assets/icons/icon_user.svg +0 -1
  195. package/projects/tuki/widgets/user-manage/src/assets/icons/vartical_divider_icon.svg +0 -3
  196. package/projects/tuki/widgets/user-manage/src/classes/device.ts +0 -232
  197. package/projects/tuki/widgets/user-manage/src/classes/line-association-interface.ts +0 -43
  198. package/projects/tuki/widgets/user-manage/src/classes/line-association.ts +0 -161
  199. package/projects/tuki/widgets/user-manage/src/classes/line-call-info-display.ts +0 -21
  200. package/projects/tuki/widgets/user-manage/src/classes/line-directory.ts +0 -42
  201. package/projects/tuki/widgets/user-manage/src/classes/line.ts +0 -144
  202. package/projects/tuki/widgets/user-manage/src/classes/notification.ts +0 -39
  203. package/projects/tuki/widgets/user-manage/src/classes/pagination.ts +0 -18
  204. package/projects/tuki/widgets/user-manage/src/classes/recording-options.ts +0 -6
  205. package/projects/tuki/widgets/user-manage/src/classes/simplified-user.ts +0 -165
  206. package/projects/tuki/widgets/user-manage/src/classes/table-data.ts +0 -6
  207. package/projects/tuki/widgets/user-manage/src/classes/translation-pattern.ts +0 -49
  208. package/projects/tuki/widgets/user-manage/src/classes/user-interface.ts +0 -225
  209. package/projects/tuki/widgets/user-manage/src/classes/user-list.ts +0 -42
  210. package/projects/tuki/widgets/user-manage/src/classes/user.ts +0 -8
  211. package/projects/tuki/widgets/user-manage/src/common-functions.ts +0 -16
  212. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.html +0 -27
  213. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.scss +0 -131
  214. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.ts +0 -25
  215. package/projects/tuki/widgets/user-manage/src/environments/environment.prod.ts +0 -9
  216. package/projects/tuki/widgets/user-manage/src/environments/environment.ts +0 -10
  217. package/projects/tuki/widgets/user-manage/src/interseptors/auth.interceptor.ts +0 -35
  218. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.html +0 -50
  219. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -8
  220. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.ts +0 -81
  221. package/projects/tuki/widgets/user-manage/src/material.module.ts +0 -85
  222. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.html +0 -33
  223. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.scss +0 -84
  224. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.ts +0 -46
  225. package/projects/tuki/widgets/user-manage/src/removeKynFromIBM.service.ts +0 -25
  226. package/projects/tuki/widgets/user-manage/src/services/api.service.ts +0 -90
  227. package/projects/tuki/widgets/user-manage/src/services/dns.service.ts +0 -116
  228. package/projects/tuki/widgets/user-manage/src/services/line.service.ts +0 -31
  229. package/projects/tuki/widgets/user-manage/src/services/notification.service.ts +0 -68
  230. package/projects/tuki/widgets/user-manage/src/services/removeKynFromIBM.service.ts +0 -25
  231. package/projects/tuki/widgets/user-manage/src/services/site-settings.service.ts +0 -35
  232. package/projects/tuki/widgets/user-manage/src/services/sorting-utils.service.ts +0 -203
  233. package/projects/tuki/widgets/user-manage/src/services/user.service.ts +0 -242
  234. package/projects/tuki/widgets/user-manage/src/services/users-search.service.ts +0 -59
  235. package/projects/tuki/widgets/user-manage/src/services/utils.service.ts +0 -71
  236. package/projects/tuki/widgets/user-manage/src/styles/_variables.scss +0 -90
  237. package/projects/tuki/widgets/user-manage/src/styles/form.scss +0 -231
  238. package/projects/tuki/widgets/user-manage/src/styles/icons.scss +0 -32
  239. package/projects/tuki/widgets/user-manage/src/styles/styles.scss +0 -110
  240. package/projects/tuki/widgets/user-manage/src/styles/tables.scss +0 -30
  241. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.html +0 -10
  242. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.scss +0 -429
  243. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.ts +0 -63
  244. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.html +0 -32
  245. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.scss +0 -444
  246. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.ts +0 -89
  247. package/projects/tuki/widgets/user-manage/src/user-details/notification.service.ts +0 -68
  248. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.html +0 -29
  249. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.scss +0 -64
  250. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.ts +0 -19
  251. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.html +0 -290
  252. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.scss +0 -463
  253. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.ts +0 -212
  254. package/projects/tuki/widgets/user-manage/src/user-manage.module.ts +0 -63
  255. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.html +0 -6
  256. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.scss +0 -11
  257. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.ts +0 -13
  258. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.html +0 -26
  259. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.scss +0 -41
  260. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.ts +0 -41
  261. package/projects/tuki/widgets/users-list/ng-package.json +0 -7
  262. package/projects/tuki/widgets/users-list/public-api.ts +0 -8
  263. package/projects/tuki/widgets/users-list/src/app.constants.ts +0 -54
  264. package/projects/tuki/widgets/users-list/src/assets/icons/close_icon_modal.svg +0 -3
  265. package/projects/tuki/widgets/users-list/src/assets/icons/icon_user.svg +0 -1
  266. package/projects/tuki/widgets/users-list/src/assets/icons/move_user_to_another_location.svg +0 -14
  267. package/projects/tuki/widgets/users-list/src/assets/icons/white-close-icon.svg +0 -3
  268. package/projects/tuki/widgets/users-list/src/classes/app-location.ts +0 -36
  269. package/projects/tuki/widgets/users-list/src/classes/device.ts +0 -225
  270. package/projects/tuki/widgets/users-list/src/classes/line.ts +0 -144
  271. package/projects/tuki/widgets/users-list/src/classes/move-user.ts +0 -225
  272. package/projects/tuki/widgets/users-list/src/classes/notification.ts +0 -38
  273. package/projects/tuki/widgets/users-list/src/classes/pagination.ts +0 -18
  274. package/projects/tuki/widgets/users-list/src/classes/simlified-user.ts +0 -74
  275. package/projects/tuki/widgets/users-list/src/classes/table-data.ts +0 -6
  276. package/projects/tuki/widgets/users-list/src/classes/user-interface.ts +0 -225
  277. package/projects/tuki/widgets/users-list/src/classes/user-list.ts +0 -47
  278. package/projects/tuki/widgets/users-list/src/classes/user.ts +0 -8
  279. package/projects/tuki/widgets/users-list/src/material.module.ts +0 -94
  280. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.html +0 -37
  281. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.scss +0 -129
  282. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.ts +0 -46
  283. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.html +0 -31
  284. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.scss +0 -20
  285. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.ts +0 -26
  286. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.html +0 -222
  287. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.scss +0 -239
  288. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.ts +0 -206
  289. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.html +0 -12
  290. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.scss +0 -41
  291. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.ts +0 -36
  292. package/projects/tuki/widgets/users-list/src/services/api-webex.service.ts +0 -14
  293. package/projects/tuki/widgets/users-list/src/services/api.service.ts +0 -90
  294. package/projects/tuki/widgets/users-list/src/services/dns.service.ts +0 -128
  295. package/projects/tuki/widgets/users-list/src/services/events-communication.service.ts +0 -11
  296. package/projects/tuki/widgets/users-list/src/services/move-user.service.ts +0 -59
  297. package/projects/tuki/widgets/users-list/src/services/notification.service.ts +0 -68
  298. package/projects/tuki/widgets/users-list/src/services/removeKynFromIBM.service.ts +0 -25
  299. package/projects/tuki/widgets/users-list/src/services/site-settings.service.ts +0 -26
  300. package/projects/tuki/widgets/users-list/src/services/user.service.ts +0 -159
  301. package/projects/tuki/widgets/users-list/src/services/users-search.service.ts +0 -139
  302. package/projects/tuki/widgets/users-list/src/styles/styles.scss +0 -572
  303. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.html +0 -15
  304. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.scss +0 -103
  305. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.ts +0 -35
  306. package/projects/tuki/widgets/users-list/src/users-list.component.css +0 -4
  307. package/projects/tuki/widgets/users-list/src/users-list.component.css.map +0 -1
  308. package/projects/tuki/widgets/users-list/src/users-list.component.html +0 -86
  309. package/projects/tuki/widgets/users-list/src/users-list.component.scss +0 -572
  310. package/projects/tuki/widgets/users-list/src/users-list.component.ts +0 -312
  311. package/projects/tuki/widgets/users-list/src/users-list.module.ts +0 -63
  312. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css +0 -11
  313. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css.map +0 -1
  314. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.html +0 -6
  315. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.scss +0 -11
  316. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.ts +0 -13
  317. package/projects/tuki/widgets/users-list/src/utils/common-functions.ts +0 -32
  318. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.html +0 -33
  319. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.scss +0 -84
  320. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.ts +0 -46
  321. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css +0 -45
  322. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css.map +0 -1
  323. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.html +0 -26
  324. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.scss +0 -41
  325. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.ts +0 -41
  326. package/projects/tuki/widgets/users-list/src/utils/utils.service.ts +0 -71
  327. package/projects/widgets-playground/src/app/app.component.html +0 -109
  328. package/projects/widgets-playground/src/app/app.component.scss +0 -15
  329. package/projects/widgets-playground/src/app/app.component.spec.ts +0 -31
  330. package/projects/widgets-playground/src/app/app.component.ts +0 -31
  331. package/projects/widgets-playground/src/app/app.module.ts +0 -43
  332. package/projects/widgets-playground/src/assets/.gitkeep +0 -0
  333. package/projects/widgets-playground/src/assets/icons/already_upgraded.png +0 -0
  334. package/projects/widgets-playground/src/assets/icons/check2_icon.png +0 -0
  335. package/projects/widgets-playground/src/assets/icons/check_icon.png +0 -0
  336. package/projects/widgets-playground/src/assets/icons/expand_icon.png +0 -0
  337. package/projects/widgets-playground/src/assets/icons/issue_icon.png +0 -0
  338. package/projects/widgets-playground/src/assets/icons/menu_icon.png +0 -0
  339. package/projects/widgets-playground/src/assets/icons/ready_to_upgrade.png +0 -0
  340. package/projects/widgets-playground/src/assets/icons/search_icon.png +0 -0
  341. package/projects/widgets-playground/src/assets/icons/site.png +0 -0
  342. package/projects/widgets-playground/src/assets/icons/user.png +0 -0
  343. package/projects/widgets-playground/src/assets/icons/warning_icon.png +0 -0
  344. package/projects/widgets-playground/src/favicon.ico +0 -0
  345. package/projects/widgets-playground/src/index.html +0 -13
  346. package/projects/widgets-playground/src/main.ts +0 -7
  347. package/projects/widgets-playground/src/styles.scss +0 -23
  348. package/projects/widgets-playground/tsconfig.app.json +0 -14
  349. package/projects/widgets-playground/tsconfig.spec.json +0 -14
  350. package/proxy.conf.js +0 -23
  351. package/tsconfig.json +0 -46
  352. /package/{projects/tuki/widgets/di2mt → di2mt}/README.md +0 -0
@@ -1,345 +0,0 @@
1
- @import url('https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900');
2
- //@import '../../../../node_modules/font-awesome/scss/font-awesome';
3
- @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
4
-
5
- .app-pagination {
6
- display: flex;
7
- flex-direction: column;
8
- align-items: stretch;
9
-
10
- .page-indexes-box,
11
- .per-page-block {
12
- justify-self: center;
13
- }
14
-
15
- mat-select {
16
- width: 100px;
17
- }
18
- }
19
-
20
- .overlay {
21
- position: fixed;
22
- width: 100%;
23
- height: 100%;
24
- top: 0;
25
- left: 0;
26
- right: 0;
27
- bottom: 0;
28
- background-color: rgba(255, 255, 255, 0.4);
29
- z-index: 200;
30
- }
31
- .mat-progress-spinner {
32
- position: absolute;
33
- top: 50%;
34
- left: 50%;
35
- margin-top: -20px;
36
- margin-left: -25px;
37
- width: 50px;
38
- height: 40px;
39
- text-align: center;
40
- font-size: 10px;
41
- }
42
- .mat-progress-spinner-td {
43
- position: relative;
44
- }
45
- .status-ready {
46
- color: #1170CF;
47
- }
48
-
49
-
50
- ::ng-deep {
51
- .mat-cell {
52
- border-bottom: 1px solid #d6d6d6;
53
- font-family: "Inter", sans-serif !important;
54
- }
55
- .mat-header-cell {
56
- border-bottom: 1px solid #afafaf;
57
- font-family: "Inter", sans-serif !important;
58
- }
59
- .progress-spinner-td {
60
- position: relative;
61
- }
62
- #userUpgradeDataTable .mat-progress-spinner-td {
63
-
64
- .mat-progress-spinner {
65
- top: 28%;
66
- left: 0;
67
- margin: 0;
68
- }
69
- }
70
-
71
- }
72
-
73
- .wrapper {
74
- display: flex;
75
- flex-direction: column;
76
- gap: 1rem;
77
- }
78
-
79
- .user-upgrade-status-wrapper {
80
- display: flex;
81
- align-items: center;
82
- gap: 1rem;
83
- flex-wrap: wrap;
84
- margin-bottom: 1rem;
85
- }
86
-
87
- .user-upgrade-table {
88
- width: 100%;
89
- background: white;
90
- border-radius: 8px;
91
- overflow: hidden;
92
- font-size: 14px;
93
-
94
- .mat-header-row {
95
- // background-color: #ededed;
96
- font-size: 12px;
97
- height: 35px;
98
- }
99
-
100
- .mat-cell {
101
- border-bottom: 1px solid #d6d6d6;
102
- }
103
- .mat-header-cell {
104
- border-bottom: 1px solid #afafaf;
105
- }
106
-
107
- .mat-row {
108
- transition: background-color 0.2s ease;
109
-
110
- &:hover {
111
- background-color: #f8f9fa;
112
- }
113
-
114
- &.selected-row {
115
- background-color: rgba(8, 89, 156, 0.1);
116
- }
117
- }
118
-
119
- // User info styling
120
- .user-info {
121
- .user-name {
122
- font-weight: 500;
123
- color: #212121;
124
- // margin-bottom: 2px;
125
- }
126
-
127
- .user-email {
128
- font-size: 12px;
129
- color: #757575;
130
- }
131
- }
132
-
133
- // Site info styling
134
- .site-info {
135
- display: flex;
136
- align-items: center;
137
- gap: 8px;
138
-
139
- .site-indicator {
140
- width: 8px;
141
- height: 8px;
142
- border-radius: 50%;
143
- background-color: #1170cf;
144
- }
145
- }
146
-
147
- // Device info styling
148
- .device-info {
149
- display: flex;
150
- align-items: center;
151
- gap: 12px;
152
-
153
- .device-name-wrapper {
154
- display: flex;
155
- align-items: center;
156
- gap: 8px;
157
- // margin-bottom: 2px;
158
-
159
- .device-name {
160
- font-weight: 500;
161
- color: #212121;
162
- }
163
-
164
- .device-indicator {
165
- width: 8px;
166
- height: 8px;
167
- border-radius: 50%;
168
- background-color: #f8cd00;
169
- }
170
- }
171
-
172
- .device-model {
173
- font-size: 12px;
174
- color: #757575;
175
- }
176
- }
177
-
178
- // Status indicators
179
- .status-info {
180
- display: flex;
181
- align-items: center;
182
- gap: 8px;
183
-
184
- .status-indicator {
185
- width: 8px;
186
- height: 8px;
187
- border-radius: 50%;
188
-
189
- &.ready {
190
- background-color: #1d805f;
191
- }
192
-
193
- &.partial-ready {
194
- background-color: #f8cd00;
195
- }
196
-
197
- &.not-ready {
198
- background-color: #9e9e9e;
199
- }
200
-
201
- &.completed {
202
- background-color: #1d805f;
203
- }
204
-
205
- &.failed {
206
- background-color: #f23933;
207
- }
208
- }
209
- }
210
-
211
- // Dependencies styling
212
- .dependencies-text {
213
- font-size: 12px;
214
- background-color: #ffe9e9;
215
- padding: 0.25rem 0.5rem;
216
- border-radius: 3px;
217
- color: #000;
218
- }
219
-
220
- // Upgrade status cell
221
- .upgrade-status-cell {
222
- display: flex;
223
- align-items: center;
224
- justify-content: flex-start;
225
- }
226
-
227
- // Upgrade button styling
228
- .upgrade-button {
229
- border: 1px solid #08599c !important;
230
- color: #08599c !important;
231
- background: white !important;
232
- // padding: 6px 16px;
233
- border-radius: 20px !important;
234
- font-size: 14px !important;
235
- font-style: normal !important;
236
- font-weight: 500 !important;
237
- height: 32px !important;
238
- display: flex !important;
239
- align-items: center !important;
240
- justify-content: center !important;
241
-
242
- &:hover {
243
- background-color: #e3f2fd !important;
244
- }
245
- }
246
-
247
- // Checkbox styling
248
- .custom-checkbox {
249
- .mdc-checkbox {
250
- padding: 8px;
251
- }
252
- }
253
- }
254
-
255
- .table-action-panel {
256
- width: 100%;
257
- display: flex;
258
- justify-content: flex-start;
259
- gap: 1rem;
260
- }
261
-
262
- ::ng-deep .action-wrapper {
263
- display: flex;
264
- flex: 1;
265
- align-items: center;
266
- justify-content: space-between;
267
- gap: 1rem;
268
- color: #555555;
269
- }
270
-
271
- .upgrade-bulk-button {
272
- border: 1px solid #000 !important;
273
- color: white !important;
274
- background: #000 !important;
275
- // padding: 6px 16px;
276
- border-radius: 20px !important;
277
- padding: 0 1rem !important;
278
- font-size: 14px !important;
279
- font-style: normal !important;
280
- font-weight: 400 !important;
281
- height: 36px !important;
282
- display: flex !important;
283
- align-items: center !important;
284
- justify-content: center !important;
285
-
286
- &:hover {
287
- background-color: #212121 !important;
288
- }
289
-
290
- &:disabled {
291
- background-color: #888 !important;
292
- color: #fff !important;
293
- cursor: not-allowed !important;
294
- border-color: #888 !important;
295
- opacity: 0.25 !important;
296
- }
297
- }
298
-
299
- // Target the specific Material checkbox classes that override colors
300
- :host ::ng-deep {
301
- .user-upgrade-table
302
- .mat-checkbox-checked.mat-accent
303
- .mat-checkbox-background {
304
- background-color: #08599c !important;
305
- border-color: #08599c !important;
306
- }
307
-
308
- .user-upgrade-table
309
- .mat-checkbox-indeterminate.mat-accent
310
- .mat-checkbox-background {
311
- background-color: #08599c !important;
312
- border-color: #08599c !important;
313
- }
314
-
315
- .user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-background {
316
- border-color: rgba(8, 89, 156, 0.6) !important;
317
- }
318
-
319
- // Fix the ripple effect and focus states - this removes the pink flash
320
- .user-upgrade-table .mat-checkbox.mat-accent .mat-ripple-element {
321
- background-color: rgba(8, 89, 156, 0.1) !important;
322
- }
323
-
324
- .user-upgrade-table .mat-checkbox.mat-accent:focus .mat-checkbox-background {
325
- background-color: rgba(8, 89, 156, 0.1) !important;
326
- }
327
-
328
- // Fix focus indicator and overlay colors
329
- .user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-frame {
330
- border-color: rgba(8, 89, 156, 0.6) !important;
331
- }
332
-
333
- // Ensure checkmarks are white
334
- .user-upgrade-table .mat-checkbox-checkmark {
335
- color: white !important;
336
- }
337
-
338
- .user-upgrade-table .mat-checkbox-checkmark-path {
339
- stroke: white !important;
340
- }
341
-
342
- .user-upgrade-table .mat-checkbox-mixedmark {
343
- border-color: white !important;
344
- }
345
- }
@@ -1,313 +0,0 @@
1
- import { SelectionModel } from "@angular/cdk/collections";
2
- import { Component, OnInit, OnDestroy, inject, Input, ViewEncapsulation } from "@angular/core";
3
- import { MatTableDataSource } from "@angular/material/table";
4
- import { TableColumn } from "../../../shared/types/data-table";
5
- import { TableFilter } from "../../../shared/types/table/filter";
6
- import { catchError, of, Subject, Subscription } from "rxjs";
7
- import { takeUntil } from "rxjs";
8
- import { UserUpgradeService } from "../user-upgrade.service";
9
- import { DEPENDENCIES_STATUS, Status, STATUS_ENTRIES } from "../../../shared/types/constants";
10
- import { UserUpgradeRecord } from "../types/user-upgrade";
11
- import { APIService } from "../../../shared/services/api.service";
12
- import { PAGINATION_SIZE_OPTIONS } from "../../../shared/constants/app.constants";
13
- import { PageEvent } from '@angular/material/paginator';
14
-
15
- @Component({
16
- selector: 'tk-user-upgrade-data-table',
17
- templateUrl: './user-upgrade-data-table.component.html',
18
- styleUrls: ['./user-upgrade-data-table.component.scss'],
19
- // encapsulation: ViewEncapsulation.ShadowDom
20
- })
21
- export class UserUpgradeDataTableComponent implements OnInit, OnDestroy {
22
- private destroy$ = new Subject<void>();
23
- private userUpgradeService = inject(UserUpgradeService);
24
- private apiService = inject(APIService);
25
- readonly STATUS_ENTRIES = STATUS_ENTRIES;
26
- readonly DEPENDENCIES_STATUS = DEPENDENCIES_STATUS;
27
-
28
- @Input() token!: string;
29
- @Input() customerId!: string;
30
-
31
- columns!: TableColumn[];
32
- dataPending = false;
33
- data!: MatTableDataSource<UserUpgradeRecord>;
34
- displayedColumns: string[] = ['select', 'user', 'site', 'device', 'dialPlanStatus', 'dependencies', 'userUpgradeStatus', 'userUpgradeLoader'];
35
- selection = new SelectionModel<UserUpgradeRecord>(true, []);
36
- filters: TableFilter[] = [];
37
- pagination = new PaginationDataDto();
38
- private subscriptions = new Subscription();
39
-
40
- statusCounts: any = {};
41
-
42
- private activeFilters: { [key: string]: any } = {};
43
-
44
- ngOnInit(): void {
45
- this.dataPending = true;
46
- this.apiService.token = this.token;
47
- this.userUpgradeService.customerId = this.customerId;
48
-
49
- const subsc1 = this.userUpgradeService.getUserUpgradeRecords(this.pagination.pageSize, this.pagination.pageIndex)
50
- .pipe(takeUntil(this.destroy$))
51
- .subscribe((results: any) => {
52
- const records = results.content as UserUpgradeRecord[]
53
- this.data = new MatTableDataSource(records);
54
- this.pagination.total = results.totalElements;
55
- this.dataPending = false;
56
- this.setupCustomFilter();
57
- this.initializeFilters(records);
58
- });
59
- this.subscriptions.add(subsc1);
60
-
61
- const subsc2 = this.userUpgradeService.getUserUpgradeStatusCounts()
62
- .pipe(takeUntil(this.destroy$))
63
- .subscribe((statusCounts) => {
64
- this.statusCounts['Ready'] = statusCounts['READY'] || 0;
65
- this.statusCounts['Not Ready'] = statusCounts['NOT_READY'] || 0;
66
- this.statusCounts['Completed'] = statusCounts['COMPLETED'] || 0;
67
- this.statusCounts['Failed'] = statusCounts['FAILED'] || 0;
68
- });
69
- this.subscriptions.add(subsc2);
70
- }
71
-
72
- ngOnDestroy(): void {
73
- this.destroy$.next();
74
- this.destroy$.complete();
75
- this.dataPending = false;
76
-
77
- if (this.subscriptions) {
78
- this.subscriptions.unsubscribe();
79
- }
80
- }
81
-
82
- pageEvent (event: PageEvent): void {
83
- this.pagination.pageIndex = event.pageIndex;
84
- this.pagination.pageSize = event.pageSize;
85
- this.getData();
86
- }
87
-
88
- changePerPageNumber(pageSizeEvent: any): void {
89
- this.pagination.pageSize = pageSizeEvent.value;
90
- this.pagination.pageIndex = 0;
91
- this.getData();
92
- }
93
-
94
- private getData(): void {
95
- this.dataPending = true;
96
- const subsc1 = this.userUpgradeService.getUserUpgradeRecords(this.pagination.pageSize, this.pagination.pageIndex)
97
- .pipe(takeUntil(this.destroy$))
98
- .subscribe((result) => {
99
-
100
- this.data = new MatTableDataSource(result.content);
101
- this.pagination.total = result.totalElements;
102
- this.dataPending = false;
103
- });
104
- this.subscriptions.add(subsc1);
105
- }
106
-
107
- private initializeFilters(records: any[]): void {
108
- if (records?.length) {
109
- // Extract unique sites from actual data
110
- const uniqueSites = [...new Set(records.map(record => record.siteName))];
111
- const siteOptions = uniqueSites.map(site => ({
112
- label: site,
113
- value: site.toLowerCase().replace(/\s+/g, '-')
114
- }));
115
-
116
- // Extract unique statuses from actual data
117
- const uniqueStatuses = [...new Set(records.map(record => record.upgradeStatus))];
118
- const statusOptions = uniqueStatuses.map(status => ({
119
- label: STATUS_ENTRIES[status],
120
- value: status.toLowerCase().replace(/\s+/g, '-')
121
- }));
122
-
123
- this.filters = [
124
- {
125
- id: 'userName',
126
- type: 'search',
127
- columnKey: 'User',
128
- placeholder: 'Search users...',
129
- options: []
130
- },
131
- {
132
- id: 'sites',
133
- type: 'select',
134
- columnKey: 'Site',
135
- placeholder: 'Sites',
136
- options: siteOptions
137
- },
138
- {
139
- id: 'status',
140
- type: 'select',
141
- columnKey: 'User Upgrade Status',
142
- placeholder: 'Upgrade Status',
143
- options: statusOptions
144
- }
145
- ];
146
- }
147
- }
148
-
149
- /** Whether the number of selected elements matches the total number of rows. */
150
- isAllSelected() {
151
- const numSelected = this.selection.selected.length;
152
- const numRows = this.data?.data.length ?? 0;
153
- return numSelected === numRows;
154
- }
155
-
156
- /** Selects all rows if they are not all selected; otherwise clear selection. */
157
- masterToggle() {
158
- this.isAllSelected() ?
159
- this.selection.clear() :
160
- this.data?.data.forEach(row => this.selection.select(row));
161
- }
162
-
163
- upgradeUser(user: UserUpgradeRecord): void {
164
- if (user && STATUS_ENTRIES[user.upgradeStatus] && STATUS_ENTRIES[user.upgradeStatus] === 'Ready')
165
- user.pending = true;
166
-
167
- this.userUpgradeService.collectUsers([user])
168
- .pipe(takeUntil(this.destroy$))
169
- .subscribe(() => {
170
- this.userUpgradeService.bulkUpgrade([user])
171
- .pipe(takeUntil(this.destroy$))
172
- .subscribe(() => {
173
- user.pending = false;
174
- })
175
- });
176
- }
177
-
178
- upgradeSelectedUsers(): void {
179
- if (this.selection.selected && this.selection.selected.length) {
180
- this.dataPending = true;
181
-
182
- this.userUpgradeService.collectUsers(this.selection.selected)
183
- .pipe(takeUntil(this.destroy$))
184
- .subscribe(() => {
185
- this.userUpgradeService.bulkUpgrade(this.selection.selected)
186
- .pipe(takeUntil(this.destroy$))
187
- .subscribe(() => {
188
- this.dataPending = false;
189
- })
190
- });
191
-
192
- }
193
- this.userUpgradeService.bulkUpgrade(this.selection.selected);
194
- }
195
-
196
- onFilter(filterEvent: { key: string, value: any }) {
197
- const {key, value} = filterEvent;
198
-
199
- let filterValue: any;
200
- if (value && value.value !== undefined) {
201
- filterValue = value.value;
202
- } else if (value && value.target) {
203
- filterValue = value.target.value;
204
- } else {
205
- filterValue = value;
206
- }
207
-
208
- // Handle "All" option or empty values - remove the filter
209
- if (filterValue === 'all' || !filterValue || filterValue === '') {
210
- delete this.activeFilters[key];
211
- } else {
212
- this.activeFilters[key] = filterValue;
213
- }
214
-
215
- this.applyFilters();
216
- }
217
-
218
- private setupCustomFilter() {
219
- this.data.filterPredicate = (data: any, filter: string) => {
220
- const filters = JSON.parse(filter || '{}');
221
-
222
- for (const [key, value] of Object.entries(filters)) {
223
- if (!value) continue;
224
-
225
- switch (key) {
226
- case 'User':
227
- const searchTerm = (value as string).toLowerCase();
228
- if (!data.userName.toLowerCase().includes(searchTerm)) {
229
- return false;
230
- }
231
- break;
232
- case 'Site':
233
- if (data.siteName !== this.getSiteNameFromValue(value as string)) {
234
- return false;
235
- }
236
- break;
237
- case 'User Upgrade Status':
238
- if (!this.matchesUpgradeStatus(data.upgradeStatus, value as string)) {
239
- return false;
240
- }
241
- break;
242
- }
243
- }
244
-
245
- return true;
246
- };
247
- }
248
-
249
- private applyFilters() {
250
- this.data.filter = JSON.stringify(this.activeFilters);
251
- }
252
-
253
- get filteredDataCount(): number {
254
- return this.data?.filteredData?.length || 0;
255
- }
256
-
257
- private getSiteNameFromValue(value: string): string {
258
- // Since we're now using actual site names, just convert back from slug format
259
- return value.split('-').map(word =>
260
- word.charAt(0).toUpperCase() + word.slice(1)
261
- ).join(' ');
262
- }
263
-
264
- private matchesUpgradeStatus(status: string, filterValue: string): boolean {
265
- // Handle direct status matching for cleaner implementation
266
- return status.toLowerCase().replace(/\s+/g, '-') === filterValue.toLowerCase();
267
- }
268
-
269
- getStatusClass(status: string): string {
270
- switch (status.toLowerCase()) {
271
- case 'ready':
272
- return 'ready';
273
- case 'not ready':
274
- return 'not-ready';
275
- case 'partial ready':
276
- return 'partial-ready';
277
- case 'completed':
278
- return 'completed';
279
- case 'failed':
280
- return 'failed';
281
- default:
282
- return 'not-ready';
283
- }
284
- }
285
-
286
- protected readonly pageSizeOptions = PAGINATION_SIZE_OPTIONS;
287
- }
288
-
289
- interface PaginationDataDtoInterface {
290
- total: number;
291
- pageSizeOptions: number[];
292
- pageSize: number;
293
- pageIndex: number;
294
- }
295
- class PaginationDataDto {
296
- total!: number;
297
- pageSizeOptions!: number[];
298
- pageSize!: number;
299
- pageIndex!: number;
300
-
301
- constructor(data?: PaginationDataDtoInterface) {
302
- this.pageSizeOptions = data?.pageSizeOptions || PAGINATION_DATA_DEFAULTS.OPTIONS;
303
- this.pageSize = data?.pageSize || PAGINATION_DATA_DEFAULTS.SIZE;
304
- this.pageIndex = data?.pageIndex || PAGINATION_DATA_DEFAULTS.PAGE_INDEX;
305
- this.total = data?.total || 0;
306
- }
307
- }
308
-
309
- const PAGINATION_DATA_DEFAULTS = {
310
- OPTIONS: [10, 20, 50, 100],
311
- SIZE: 10,
312
- PAGE_INDEX: 0
313
- };
@@ -1,34 +0,0 @@
1
- import { NgModule } from "@angular/core";
2
- import { UserUpgradeDataTableComponent } from "./user-upgrade-data-table/user-upgrade-data-table.component";
3
- import { CommonModule } from "@angular/common";
4
- import { MatButtonModule } from "@angular/material/button";
5
- import { MatTableModule } from "@angular/material/table";
6
- import { SharedModule } from "../../shared/shared.module";
7
- import { MatCheckboxModule } from "@angular/material/checkbox";
8
- import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
9
- import { MatOptionModule } from '@angular/material/core';
10
- import { MatPaginatorModule } from '@angular/material/paginator';
11
- import { MatSelectModule } from '@angular/material/select';
12
-
13
- @NgModule({
14
- declarations: [
15
- UserUpgradeDataTableComponent
16
- ],
17
- imports: [
18
- CommonModule,
19
- SharedModule,
20
- MatTableModule,
21
- MatButtonModule,
22
- MatCheckboxModule,
23
- MatSelectModule,
24
- MatProgressSpinnerModule,
25
- MatOptionModule,
26
- MatPaginatorModule,
27
- MatSelectModule
28
- ],
29
- exports: [
30
- UserUpgradeDataTableComponent
31
- ]
32
- })
33
- export class UserUpgradeModule {
34
- }