@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,222 +0,0 @@
1
- <app-loader *ngIf="prepareMigrationData.pending || moveUserPending || dataPending"></app-loader>
2
- <div id="move-user-stepper">
3
- <mat-stepper *ngIf="prepareMigrationData?.moveType" [linear]="isLinear" labelPosition="bottom" #stepper>
4
- <mat-step>
5
- <div class="step-title">Step 1: Select location</div>
6
- <!-- <form>-->
7
- <ng-template matStepLabel>Select location</ng-template>
8
- <form>
9
- <div class="move-user-tab-content-box">
10
- <mat-label class="mat-label">Select a new location</mat-label>
11
- <mat-form-field class="app-autocomplete-input" appearance="outline">
12
- <input placeholder="Select location" [matAutocomplete]="auto" matInput
13
- (input)="onLocationAutocomplete($event)"/>
14
- <mat-autocomplete #auto="matAutocomplete" [displayWith]="displayLocation"
15
- (optionSelected)="onLocationChange($event)">
16
- <mat-option *ngFor="let location of filteredLocations" [value]="location">
17
- {{ location.name }}
18
- </mat-option>
19
- </mat-autocomplete>
20
- </mat-form-field>
21
- <div *ngIf="!dataPending && !locations.length" class="mat-error">
22
- Locations are not available
23
- </div>
24
-
25
- <ng-container *ngIf="prepareMigrationData?.newLocation?.id">
26
- <mat-label class="mat-label">Phone number</mat-label>
27
- <mat-radio-group class="radio-group" name="moveTypePhoneNumber"
28
- [(ngModel)]="prepareMigrationData.moveType.phoneNumber" name="phoneNumber"
29
- (change)="selectPhoneNumberMigrationType($event)">
30
- <mat-radio-button
31
- class="radio-button"
32
- value="1"
33
- color="primary">
34
- Keep current number
35
- {{ prepareMigrationData.primaryPhoneNumber || currentNumber }}
36
- </mat-radio-button>
37
- <mat-radio-button
38
- class="radio-button"
39
- value="2"
40
- color="primary"
41
- [disabled]="!prepareMigrationData.newLocation?.id">
42
- Select a new number
43
- </mat-radio-button>
44
-
45
- <div *ngIf="prepareMigrationData.moveType.phoneNumber === '2'" class="select-container">
46
- <mat-progress-spinner *ngIf="phoneNumberPending" class="field-spinner" mode="indeterminate"
47
- [diameter]="30"></mat-progress-spinner>
48
-
49
- <mat-form-field class="app-autocomplete-input" appearance="outline">
50
- <input placeholder="Select number" [(ngModel)]="prepareMigrationData.newPhoneNumber"
51
- [matAutocomplete]="autoPh" matInput name="newPhoneNumber"
52
- (input)="onNumberAutocomplete()"/>
53
- <mat-autocomplete #autoPh="matAutocomplete" (optionSelected)="onPhoneNumberChange($event)">
54
- <mat-option *ngFor="let number of filteredPhoneNumbers" [value]="number">
55
- {{ number }}
56
- </mat-option>
57
- </mat-autocomplete>
58
- </mat-form-field>
59
- <div *ngIf="!phoneNumberPending && !dnsService.phoneNumbers?.length" class="mat-error">
60
- Phone numbers are not available for this location
61
- </div>
62
- </div>
63
- <mat-radio-button
64
- class="radio-button"
65
- value="3"
66
- color="primary"
67
- [disabled]="prepareMigrationData.removeExtension">
68
- Remove number
69
- </mat-radio-button>
70
- </mat-radio-group>
71
-
72
- <mat-label class="mat-label">Extension</mat-label>
73
- <mat-radio-group class="radio-group" name="moveTypeExtension"
74
- (change)="selectExtensionMigrationType($event)"
75
- [(ngModel)]="prepareMigrationData.moveType.extension">
76
- <mat-radio-button
77
- class="radio-button"
78
- value="1"
79
- color="primary">
80
- Keep current extension {{ prepareMigrationData.primaryExtension }}
81
- </mat-radio-button>
82
- <mat-radio-button
83
- class="radio-button"
84
- value="2"
85
- color="primary">
86
- Select a new extension
87
- </mat-radio-button>
88
-
89
- <div *ngIf="prepareMigrationData.moveType.extension === '2'" class="input-container">
90
- <mat-form-field appearance="outline">
91
- <input
92
- matInput
93
- type="text"
94
- name="newExtension"
95
- (change)="onExtensionChange($event)"
96
- [(ngModel)]="prepareMigrationData.newExtension"
97
- [placeholder]="'Enter extension'"
98
- />
99
- </mat-form-field>
100
- </div>
101
-
102
- <mat-radio-button
103
- class="radio-button"
104
- value="3"
105
- color="primary"
106
- [disabled]="prepareMigrationData.removePhoneNumber">Remove extension
107
- </mat-radio-button>
108
- </mat-radio-group>
109
- </ng-container>
110
- </div>
111
- </form>
112
-
113
- <div class="step-actions">
114
- <button mat-button class="webex-btn btn-next" matStepperNext
115
- [disabled]="isNextFromSelectLocationDisabled()" (click)="goNextStep(stepper)">
116
- Next
117
- </button>
118
- <button mat-button class="webex-btn btn-cancel" (click)="cancel.emit()">Cancel</button>
119
- </div>
120
- </mat-step>
121
- <mat-step [aria-labelledby]="'disabled_af'">
122
- <div class="step-title">Step 2: Device eligibility check</div>
123
- <ng-template matStepLabel>Device eligibility check</ng-template>
124
- <div class="move-user-tab-content-box">
125
- <app-devices-move-user-tab></app-devices-move-user-tab>
126
- </div>
127
- <div class="step-actions">
128
- <button mat-button class="webex-btn btn-next" matStepperNext (click)="goNextStep(stepper)">
129
- Next
130
- </button>
131
- <button mat-button class="webex-btn btn-cancel" matStepperPrevious>
132
- Previous
133
- </button>
134
- </div>
135
- </mat-step>
136
- <mat-step [aria-labelledby]="'disabled_af'">
137
- <div class="step-title">Step 3: Validation</div>
138
- <ng-template matStepLabel>Validation</ng-template>
139
-
140
- <div class="devices-move-user-box">
141
- <mat-label class="mat-label">Validation</mat-label>
142
- <div *ngIf="!prepareMigrationData.errors?.length">
143
- <ng-container *ngTemplateOutlet="validationSuccess">
144
- </ng-container>
145
- </div>
146
- <div *ngIf="prepareMigrationData.errors?.length">
147
- <ng-container *ngTemplateOutlet="validationFailed">
148
- </ng-container>
149
- </div>
150
- </div>
151
- <button #nextAfterMoveBtn mat-button class="invisible-next-btn" matStepperNext
152
- (click)="goNextStep(stepper)"></button>
153
- <div class="step-actions">
154
- <button mat-button class="webex-btn btn-next"
155
- [disabled]="prepareMigrationData.errors.length > 0 || !prepareMigrationData.isConfirm"
156
- (click)="startMigration()">
157
- Move
158
- </button>
159
- <button mat-button class="webex-btn btn-cancel" matStepperPrevious>
160
- Previous
161
- </button>
162
- </div>
163
- </mat-step>
164
- <mat-step>
165
- <div class="step-title">Step 4: Result</div>
166
- <ng-template matStepLabel>Result</ng-template>
167
-
168
- <div class="devices-move-user-box">
169
- <mat-label class="mat-label">Moving user has been successfully initiated!</mat-label>
170
- <p class="validation-text">
171
- The user will be moved to the new location {{prepareMigrationData.newLocation?.name}}
172
- <br/>
173
- For the progress of move, please visit the
174
- <a class="form-link" href="#">user details</a>.
175
- </p>
176
- </div>
177
-
178
- <div class="step-actions">
179
- <button mat-button class="webex-btn btn-done" (click)="done.emit(true)">
180
- Done
181
- </button>
182
- </div>
183
- </mat-step>
184
- </mat-stepper>
185
- </div>
186
-
187
- <ng-template #validationSuccess>
188
- <p class="validation-text">
189
- Validation has completed successfully. The user can be moved to the
190
- new location. Please be aware of the potential impact of the changes
191
- below.
192
- </p>
193
- <mat-label class="mat-label">Expected changes</mat-label>
194
- <ul>
195
- <li>Cisco 6941 device (SEP987987987987) will not be migrated</li>
196
- <li>
197
- The user will be removed from the Call Pickup Group:
198
- 1675090334-Paris_pickup
199
- </li>
200
- <li>
201
- If Webex App is currently in use, the user will to sign in again to
202
- update the service.
203
- </li>
204
- </ul>
205
- <form>
206
- <mat-checkbox class="checkbox" name="isConfirm" [(ngModel)]="prepareMigrationData.isConfirm"
207
- color="primary">
208
- I confirm that I understand these conditions. I acknowledge the
209
- changes.
210
- </mat-checkbox>
211
- </form>
212
-
213
- </ng-template>
214
-
215
- <ng-template #validationFailed>
216
- <p class="validation-text">
217
- Validation is failed. User migration is not available
218
- </p>
219
- <ul>
220
- <li *ngFor="let error of prepareMigrationData.errors">{{ error }}</li>
221
- </ul>
222
- </ng-template>
@@ -1,239 +0,0 @@
1
- .mat-stepper-horizontal {
2
- margin-top: 8px;
3
-
4
- height: fit-content;
5
- max-height: 750px;
6
-
7
- margin: 0 auto;
8
- width: 70%;
9
-
10
- background-color: transparent;
11
-
12
- .mat-horizontal-stepper-header-container {
13
- margin: 0 auto;
14
- width: 800px;
15
- };
16
- .mat-step-icon {
17
- width: 28px;
18
- height: 28px;
19
-
20
- border: 3px solid hsl(0deg 0% 50.2%);
21
- };
22
- .mat-step-icon-selected {
23
- background-color: hsl(0deg 0% 77.65%) !important;
24
- border-color: hsl(211.8deg 66.67% 29.41%);
25
- };
26
- .mat-step-icon-state-number {
27
- background-color: white;
28
- };
29
- .mat-step-icon-state-edit {
30
- background-color: hsl(210deg 84.82% 43.92%);
31
- border-color: hsl(210deg 84.82% 43.92%);
32
- };
33
- .mat-step-header .mat-step-icon-state-done {
34
- background-color: hsl(210deg 84.82% 43.92%);
35
- border-color: hsl(210deg 84.82% 43.92%);
36
- };
37
- .mat-step-icon-content {
38
- display: none;
39
- };
40
- .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,
41
- [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,
42
- .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,
43
- [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after {
44
- border-top-width: 3px !important;
45
- };
46
- .mat-horizontal-stepper-header::before,
47
- .mat-horizontal-stepper-header::after,
48
- .mat-stepper-horizontal-line {
49
- border-top-color: hsl(210deg 84.82% 43.92%) !important;
50
- border-top-width: 3px !important;
51
- border-top-style: solid !important;
52
- };
53
- .mat-horizontal-stepper-header[aria-selected='true'] ~ .mat-stepper-horizontal-line,
54
- .mat-horizontal-stepper-header[aria-selected='true'] ~ .mat-horizontal-stepper-header::before,
55
- .mat-horizontal-stepper-header[aria-selected='true'] ~ .mat-horizontal-stepper-header::after {
56
- border-top-width: 3px !important;
57
- background-color: hsl(0deg 0% 48.24%) !important;
58
- border-top-color: hsl(0deg 0% 48.24%) !important;
59
- }
60
- }
61
- ::ng-deep .mat-step-header[aria-labelledby="disabled_af"] {
62
- pointer-events: none !important;
63
- cursor: not-allowed;
64
- }
65
-
66
- ::ng-deep .mat-step-header[aria-labelledby="disabled_af"] .mat-step-icon,
67
- ::ng-deep .mat-step-header[aria-labelledby="disabled_af"] .mat-step-label {
68
- cursor: not-allowed;
69
- opacity: 0.6;
70
- }
71
- ::ng-deep .mat-form-field-infix {
72
- padding: 0 !important;
73
- width: 100%;
74
- }
75
- ::ng-deep .mat-form-field-appearance-outline {
76
- .mat-input-element {
77
- height: 35px;
78
- width: 100%;
79
- line-height: 35px;
80
- margin: 5px 0 0 0;
81
- }
82
- }
83
- ::ng-deep .mat-form-field {
84
- width: 350px;
85
- }
86
- ::ng-deep .mat-step-header[aria-labelledby="disabled_af"] {
87
- pointer-events: none !important;
88
- cursor: not-allowed;
89
- }
90
-
91
- ::ng-deep .mat-step-header[aria-labelledby="disabled_af"] .mat-step-icon,
92
- ::ng-deep .mat-step-header[aria-labelledby="disabled_af"] .mat-step-label {
93
- cursor: not-allowed;
94
- opacity: 0.6;
95
- }
96
-
97
- .mat-mdc-form-field {
98
- margin-top: 16px;
99
- }
100
-
101
- .mat-label {
102
- font-size: 16px;
103
- font-weight: 600;
104
- margin: 1rem 0;
105
- }
106
-
107
- .step-title {
108
- font-size: 28px;
109
- font-weight: bold;
110
-
111
- margin: .5rem 0 1.5rem 2rem;
112
- }
113
-
114
- .validation-text {
115
- margin-top: 0.5rem;
116
- margin-bottom: 2rem;
117
- }
118
-
119
- ul {
120
- padding: 0.5rem 2rem;
121
-
122
- margin-top: 0.5rem;
123
- margin-bottom: 2rem;
124
- }
125
-
126
- // .devices-move-user-box {
127
- // background-color: white;
128
- // padding: 2.5rem;
129
- // min-height: 350px;
130
- // border-radius: 0.5rem;
131
- // }
132
-
133
- .devices-move-user-box {
134
- background-color: white;
135
- padding: 2.5rem;
136
- padding: 1rem 2.5rem;
137
- min-height: 350px;
138
- border-radius: 0.5rem;
139
- }
140
- .user-select-location-box {
141
- background-color: white;
142
- padding: 2.5rem;
143
- height: 350px;
144
- border-radius: 0.5rem;
145
- }
146
- .form-link {
147
- text-decoration: none;
148
- color: rgb(0, 123, 255);
149
- }
150
- .radio-group {
151
- display: flex;
152
- flex-direction: column;
153
- margin: 15px 0;
154
- align-items: flex-start;
155
- }
156
- .radio-button {
157
- margin: 0.5rem 0;
158
- }
159
- .select {
160
- width: 350px;
161
-
162
- padding: 0.5rem;
163
- margin: 0.5rem 0;
164
-
165
- border: 1px solid #a0a0a0;
166
- border-radius: 0.5rem;
167
- }
168
- .step-actions {
169
- display: flex;
170
- flex-flow: row-reverse;
171
-
172
- margin-top: 2rem;
173
-
174
- gap: 1rem;
175
- }
176
- .webex-btn {
177
- border: 1px solid black;
178
- border-radius: 1rem;
179
-
180
- cursor: pointer;
181
-
182
- gap: 1rem;
183
- }
184
- .btn-next {
185
- background-color: black;
186
- color: white;
187
- }
188
- .btn-cancel,
189
- .btn-done {
190
- background-color: white;
191
- color: black;
192
- }
193
- .select-container {
194
- position: relative;
195
- width: 100%;
196
- max-width: 300px;
197
-
198
- .mat-progress-spinner {
199
- position: absolute;
200
- left: 45%;
201
- top: 35px;
202
- }
203
- }
204
- .invisible-next-btn {
205
- height: 1px;
206
- width: 1px;
207
- }
208
- .mat-error {
209
- margin: 0px 0 15px 0;
210
- }
211
- mat-label {
212
- display: block;
213
- }
214
- .btn-next {
215
- min-width: 80px;
216
- }
217
- .mat-button-disabled {
218
- background-color: #bbbbbb;
219
- color: white;
220
- border: 1px solid grey;
221
- cursor: default !important;
222
- }
223
- .move-user-tab-content-box {
224
- background-color: white;
225
- min-height: 350px;
226
- border-radius: 0.5rem;
227
- box-sizing: border-box;
228
- padding: 25px;
229
- }
230
- .input-container {
231
- display: flex;
232
- flex-direction: column;
233
- gap: 1rem;
234
-
235
- & input {
236
- height: fit-content !important;
237
- }
238
- }
239
-
@@ -1,206 +0,0 @@
1
- import { Component, EventEmitter, Input, OnInit, Output, ViewChild, ViewEncapsulation } from "@angular/core";
2
- import { FormBuilder, Validators } from "@angular/forms";
3
- import { DnsService } from '../../services/dns.service';
4
- import { MatStepper } from "@angular/material/stepper";
5
- import { UserService } from '../../services/user.service';
6
- import { AppLocation } from '../../classes/app-location';
7
- import { SiteSettingsService } from '../../services/site-settings.service';
8
- import { filterOptions } from '../../utils/common-functions';
9
- import { MigrationData, PrepareMigrationBody, PrepareMigrationData } from '../../classes/move-user';
10
- import { MoveUserService } from '../../services/move-user.service';
11
- import { NotificationService } from '../../services/notification.service';
12
- import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
13
- // for test only
14
- const LOCATION = 'Y2lzY29zcGFyazovL3VzL0xPQ0FUSU9OLzE2YjY0NjljLTBjZmQtNDJjMS1iOWJjLTUyN2FlZTNhN2RlOQ';
15
-
16
- @Component({
17
- selector: 'app-move-user-stepper',
18
- templateUrl: './move-user-stepper.component.html',
19
- styleUrls: ['./move-user-stepper.component.scss'],
20
- encapsulation: ViewEncapsulation.None
21
- })
22
- export class MoveUserStepperComponent implements OnInit {
23
- @ViewChild('nextAfterMoveBtn') nextAfterMoveBtn: any;
24
- @Output()
25
- done = new EventEmitter();
26
- @Input()
27
- user: any;
28
- @Input()
29
- customerId!: number;
30
- @Output()
31
- runMoveUser = new EventEmitter();
32
- @Output()
33
- cancel = new EventEmitter();
34
- isLinear = false;
35
- phoneNumberPending = false;
36
- stepper!: MatStepper;
37
- filteredLocations: AppLocation[] = [];
38
- filteredPhoneNumbers: any;
39
- dataPending = false;
40
-
41
- get moveUserPending(): boolean {
42
- return this.userService.moveUserPending;
43
- }
44
-
45
- get currentNumber(): string {
46
- if (this.user?.devices?.length && this.user.devices[0]?.lineAssociations && this.user.devices[0].lineAssociations[0]) {
47
- return this.user.devices[0].lineAssociations[0].directoryNumber.directoryNumber;
48
- }
49
- return '';
50
- }
51
-
52
- get locations(): AppLocation[] {
53
- return this.siteSettingsService.locations;
54
- }
55
-
56
- get prepareMigrationData(): PrepareMigrationData {
57
- return this.moveUserService.prepareMigrationData;
58
- }
59
-
60
- constructor(
61
- public dnsService: DnsService,
62
- public userService: UserService,
63
- public siteSettingsService: SiteSettingsService,
64
- private notificationService: NotificationService,
65
- public moveUserService: MoveUserService
66
- ) {
67
- }
68
-
69
- ngOnInit() {
70
- this.moveUserService.prepareMigrationData = new PrepareMigrationData();
71
- this.getData();
72
- }
73
-
74
- displayLocation(location?: AppLocation): string {
75
- return location?.name || '';
76
- }
77
-
78
- onLocationAutocomplete(event: any): void {
79
- const value = (event.target as HTMLInputElement).value;
80
-
81
- if (this.locations?.length) {
82
- this.filteredLocations = filterOptions(this.locations, value || '', '', 'name');
83
- }
84
- }
85
-
86
- onNumberAutocomplete(): void {
87
- if (this.dnsService.phoneNumbers?.length) {
88
- this.filteredPhoneNumbers = filterOptions(this.dnsService.phoneNumbers, this.prepareMigrationData.newPhoneNumber);
89
- }
90
- }
91
-
92
- onMoveUser(stepper: MatStepper): void {
93
- this.stepper = stepper;
94
- this.runMoveUser.emit();
95
- }
96
-
97
- onStepChange(event: any): void {
98
- }
99
-
100
- selectPhoneNumberMigrationType(event: any): void {
101
- if (event.value && event.value === '2') {
102
- this.getPhoneNumbers();
103
- }
104
- this.moveUserService.prepareMigrationData.removePhoneNumber = event.value && event.value === '3';
105
- }
106
-
107
- selectExtensionMigrationType(event: any): void {
108
- this.moveUserService.prepareMigrationData.removeExtension = event.value && event.value === '3';
109
- }
110
-
111
- onPhoneNumberChange(event: any): void {
112
- console.log('new phone number = ', this.prepareMigrationData.newPhoneNumber);
113
- }
114
-
115
- onLocationChange(event: MatAutocompleteSelectedEvent): void {
116
- this.moveUserService.prepareMigrationData.newLocation = event.option.value;
117
- this.moveUserService.resetMigrationDataForNewLocation();
118
-
119
- if (this.prepareMigrationData.moveType.phoneNumber === '2') {
120
- this.getPhoneNumbers();
121
- }
122
- this.getPrepareUserData();
123
- }
124
-
125
- onExtensionChange(event: any): void {
126
- console.log('new newExtension = ', this.prepareMigrationData.newExtension);
127
- }
128
-
129
- getPhoneNumbers(): void {
130
- if (!this.prepareMigrationData.newLocation?.id) {
131
- return;
132
- }
133
- this.phoneNumberPending = true;
134
- this.dnsService.fetchPhoneNumbers(this.customerId, this.prepareMigrationData.newLocation.id)
135
- .subscribe(() => {
136
- this.phoneNumberPending = false;
137
- this.filteredPhoneNumbers = this.dnsService.phoneNumbers.slice();
138
- }, () => this.phoneNumberPending = false);
139
- }
140
-
141
- isNextFromSelectLocationDisabled(): boolean {
142
- if (!this.prepareMigrationData?.newLocation?.id || !this.prepareMigrationData.entityId) {
143
- return true;
144
- }
145
- if (this.prepareMigrationData.moveType.phoneNumber === '2' && !this.prepareMigrationData.newPhoneNumber) {
146
- return true;
147
- }
148
- if (this.prepareMigrationData.moveType.extension === '2' && !this.prepareMigrationData.newExtension) {
149
- return true;
150
- }
151
- return false;
152
- }
153
-
154
- goNextStep(stepper: MatStepper) {
155
-
156
- }
157
-
158
- startMigration(): void {
159
- const migrationData = new MigrationData(this.prepareMigrationData);
160
- this.dataPending = true;
161
- this.moveUserService.startMigration(migrationData)
162
- .subscribe((result: any) => {
163
- this.dataPending = false;
164
- if (this.nextAfterMoveBtn?._elementRef?.nativeElement) {
165
- this.nextAfterMoveBtn._elementRef.nativeElement.click();
166
- }
167
- }, () => {
168
- this.dataPending = false;
169
- })
170
- }
171
-
172
- getData(): void {
173
- if (!this.user) {
174
- return;
175
- }
176
- this.dataPending = true;
177
- this.siteSettingsService.getLocations(this.customerId)
178
- .subscribe(() => {
179
- if (this.locations?.length) {
180
- this.filteredLocations = this.locations.slice();
181
- }
182
- this.dataPending = false;
183
- }, () => this.dataPending = false)
184
- }
185
-
186
- private getPrepareUserData() {
187
- if (this.prepareMigrationData?.newLocation?.id) {
188
- this.moveUserService.setOriginPrepareMigrationData();
189
- const prepareMigrationBody = new PrepareMigrationBody(this.user, this.customerId, this.prepareMigrationData.newLocation.id);
190
- this.moveUserService.prepareMigrationData.pending = true;
191
- this.moveUserService.fetchPrepareMigrationData(prepareMigrationBody)
192
- .subscribe(() => {
193
-
194
- }, () => {
195
- this.moveUserService.prepareMigrationData.pending = false;
196
- this.notificationService.error('Move user attempt is failed');
197
- });
198
- }
199
-
200
- }
201
-
202
- private resetMoveTypePhoneNUmber(): void {
203
- this.dnsService.phoneNumbers = [];
204
- }
205
-
206
- }
@@ -1,12 +0,0 @@
1
- <app-loader *ngIf="dataPending"></app-loader>
2
- <div class="move-user-stepper-container">
3
- <header class="move-user-header">
4
- <div class="move-user-header__title">Move User {{user.userid}}</div>
5
- <div class="move-user-header__close">
6
- <span class="app-icon icon-white-close" (click)="onClose()"></span>
7
- </div>
8
- </header>
9
- <app-move-user-stepper *ngIf="user" [customerId]="customerId"
10
- [user]="user" (cancel)="onClose()" (done)="done.emit()"
11
- (runMoveUser)="onRunMoveUser()"></app-move-user-stepper>
12
- </div>