@tuki-io/tuki-widgets 0.0.63 → 0.0.65

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 (588) hide show
  1. package/.editorconfig +16 -0
  2. package/.hintrc +14 -0
  3. package/.vscode/extensions.json +4 -0
  4. package/.vscode/launch.json +20 -0
  5. package/.vscode/tasks.json +42 -0
  6. package/README.md +10 -9
  7. package/angular.json +140 -0
  8. package/package.json +47 -57
  9. package/projects/tuki/widgets/README.md +24 -0
  10. package/projects/tuki/widgets/di2mt/README.md +42 -0
  11. package/projects/tuki/widgets/di2mt/api/api.endpoints.ts +20 -0
  12. package/projects/tuki/widgets/di2mt/assets/icons/already_upgraded.png +0 -0
  13. package/projects/tuki/widgets/di2mt/assets/icons/check2_icon.png +0 -0
  14. package/projects/tuki/widgets/di2mt/assets/icons/check_icon.png +0 -0
  15. package/projects/tuki/widgets/di2mt/assets/icons/expand_icon.png +0 -0
  16. package/projects/tuki/widgets/di2mt/assets/icons/issue_icon.png +0 -0
  17. package/projects/tuki/widgets/di2mt/assets/icons/menu_icon.png +0 -0
  18. package/projects/tuki/widgets/di2mt/assets/icons/ready_to_upgrade.png +0 -0
  19. package/projects/tuki/widgets/di2mt/assets/icons/search_icon.png +0 -0
  20. package/projects/tuki/widgets/di2mt/assets/icons/site.png +0 -0
  21. package/projects/tuki/widgets/di2mt/assets/icons/user.png +0 -0
  22. package/projects/tuki/widgets/di2mt/assets/icons/warning_icon.png +0 -0
  23. package/projects/tuki/widgets/di2mt/ng-package.json +7 -0
  24. package/projects/tuki/widgets/di2mt/public-api.ts +26 -0
  25. package/projects/tuki/widgets/di2mt/shared/components/card/card.component.html +11 -0
  26. package/projects/tuki/widgets/di2mt/shared/components/card/card.component.scss +48 -0
  27. package/projects/tuki/widgets/di2mt/shared/components/card/card.component.ts +10 -0
  28. package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.html +15 -0
  29. package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.scss +38 -0
  30. package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.ts +71 -0
  31. package/projects/tuki/widgets/di2mt/shared/components/index.ts +6 -0
  32. package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.html +57 -0
  33. package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.scss +74 -0
  34. package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.ts +44 -0
  35. package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.html +28 -0
  36. package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.scss +55 -0
  37. package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.ts +11 -0
  38. package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.html +12 -0
  39. package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.scss +76 -0
  40. package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.ts +27 -0
  41. package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.html +28 -0
  42. package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.scss +52 -0
  43. package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.ts +28 -0
  44. package/projects/tuki/widgets/di2mt/shared/material.module.ts +36 -0
  45. package/projects/tuki/widgets/di2mt/shared/services/api.service.ts +92 -0
  46. package/projects/tuki/widgets/di2mt/shared/shared.module.ts +38 -0
  47. package/projects/tuki/widgets/di2mt/shared/types/constants.ts +14 -0
  48. package/projects/tuki/widgets/di2mt/shared/types/data-table.ts +5 -0
  49. package/projects/tuki/widgets/di2mt/shared/types/table/filter.ts +14 -0
  50. package/projects/tuki/widgets/di2mt/styles/tuki-widgets-theme.scss +13 -0
  51. package/projects/tuki/widgets/di2mt/styles/variables.scss +92 -0
  52. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.html +92 -0
  53. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.scss +187 -0
  54. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.ts +205 -0
  55. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.module.ts +24 -0
  56. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.service.ts +45 -0
  57. package/projects/tuki/widgets/di2mt/widgets/site-upgrade/types/user-upgrade.ts +15 -0
  58. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.ts +52 -0
  59. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.ts +53 -0
  60. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.ts +67 -0
  61. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.html +7 -0
  62. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.scss +0 -0
  63. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.ts +45 -0
  64. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.html +7 -0
  65. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.scss +0 -0
  66. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.ts +45 -0
  67. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.ts +59 -0
  68. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.ts +70 -0
  69. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/types/upgrade-overview.ts +58 -0
  70. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/upgrade-overview.module.ts +42 -0
  71. package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/upgrade-overview.service.ts +95 -0
  72. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/types/user-upgrade.ts +18 -0
  73. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.html +131 -0
  74. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.scss +275 -0
  75. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.ts +218 -0
  76. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.module.ts +24 -0
  77. package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.service.ts +73 -0
  78. package/projects/tuki/widgets/karma.conf.js +44 -0
  79. package/projects/tuki/widgets/ng-package.json +7 -0
  80. package/projects/tuki/widgets/package.json +13 -0
  81. package/projects/tuki/widgets/src/lib/widgets.component.spec.ts +23 -0
  82. package/projects/tuki/widgets/src/lib/widgets.component.ts +20 -0
  83. package/projects/tuki/widgets/src/lib/widgets.module.ts +16 -0
  84. package/projects/tuki/widgets/src/lib/widgets.service.spec.ts +16 -0
  85. package/projects/tuki/widgets/src/lib/widgets.service.ts +9 -0
  86. package/{public-api.d.ts → projects/tuki/widgets/src/public-api.ts} +4 -0
  87. package/projects/tuki/widgets/src/test.ts +27 -0
  88. package/projects/tuki/widgets/styles.scss +572 -0
  89. package/projects/tuki/widgets/tsconfig.lib.json +36 -0
  90. package/projects/tuki/widgets/tsconfig.lib.prod.json +10 -0
  91. package/projects/tuki/widgets/tsconfig.spec.json +17 -0
  92. package/projects/tuki/widgets/user-device-manage/ng-package.json +7 -0
  93. package/projects/tuki/widgets/user-device-manage/src/app.constants.ts +96 -0
  94. package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-left.svg +5 -0
  95. package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-right.svg +5 -0
  96. package/projects/tuki/widgets/user-device-manage/src/assets/icons/close_icon_x.svg +3 -0
  97. package/projects/tuki/widgets/user-device-manage/src/assets/icons/delete_icon.svg +5 -0
  98. package/projects/tuki/widgets/user-device-manage/src/assets/icons/dragger-vertical-icon.svg +3 -0
  99. package/projects/tuki/widgets/user-device-manage/src/assets/icons/icon_user.svg +1 -0
  100. package/projects/tuki/widgets/user-device-manage/src/assets/icons/vartical_divider_icon.svg +3 -0
  101. package/projects/tuki/widgets/user-device-manage/src/classes/device.ts +292 -0
  102. package/projects/tuki/widgets/user-device-manage/src/classes/line-association-interface.ts +50 -0
  103. package/projects/tuki/widgets/user-device-manage/src/classes/line-association.ts +177 -0
  104. package/projects/tuki/widgets/user-device-manage/src/classes/line-call-info-display.ts +21 -0
  105. package/projects/tuki/widgets/user-device-manage/src/classes/line-directory.ts +41 -0
  106. package/projects/tuki/widgets/user-device-manage/src/classes/line.ts +144 -0
  107. package/projects/tuki/widgets/user-device-manage/src/classes/notification.ts +40 -0
  108. package/projects/tuki/widgets/user-device-manage/src/classes/recording-options.ts +6 -0
  109. package/projects/tuki/widgets/user-device-manage/src/classes/simplified-user.ts +169 -0
  110. package/projects/tuki/widgets/user-device-manage/src/classes/site-defaults.ts +167 -0
  111. package/projects/tuki/widgets/user-device-manage/src/classes/translation-pattern.ts +50 -0
  112. package/projects/tuki/widgets/user-device-manage/src/classes/types.ts +19 -0
  113. package/projects/tuki/widgets/user-device-manage/src/classes/user-interface.ts +225 -0
  114. package/projects/tuki/widgets/user-device-manage/src/classes/user.ts +8 -0
  115. package/projects/tuki/widgets/user-device-manage/src/common-functions.ts +16 -0
  116. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.html +14 -0
  117. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.scss +80 -0
  118. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.ts +35 -0
  119. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.html +21 -0
  120. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.scss +97 -0
  121. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.ts +28 -0
  122. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.html +6 -0
  123. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.scss +20 -0
  124. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.ts +13 -0
  125. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.html +6 -0
  126. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.scss +4 -0
  127. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.ts +63 -0
  128. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.html +241 -0
  129. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.scss +500 -0
  130. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.ts +194 -0
  131. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.html +27 -0
  132. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.scss +131 -0
  133. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.ts +25 -0
  134. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.html +209 -0
  135. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.scss +502 -0
  136. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.ts +354 -0
  137. package/projects/tuki/widgets/user-device-manage/src/environments/environment.prod.ts +9 -0
  138. package/projects/tuki/widgets/user-device-manage/src/environments/environment.ts +10 -0
  139. package/projects/tuki/widgets/user-device-manage/src/interseptors/auth.interceptor.ts +35 -0
  140. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.html +50 -0
  141. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.scss +8 -0
  142. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.ts +81 -0
  143. package/projects/tuki/widgets/user-device-manage/src/material.module.ts +87 -0
  144. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.html +33 -0
  145. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.scss +84 -0
  146. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.ts +46 -0
  147. package/projects/tuki/widgets/user-device-manage/src/removeKynFromIBM.service.ts +25 -0
  148. package/projects/tuki/widgets/user-device-manage/src/services/api.service.ts +87 -0
  149. package/projects/tuki/widgets/user-device-manage/src/services/common-functions.ts +17 -0
  150. package/projects/tuki/widgets/user-device-manage/src/services/device.service.ts +95 -0
  151. package/projects/tuki/widgets/user-device-manage/src/services/dns.service.ts +111 -0
  152. package/projects/tuki/widgets/user-device-manage/src/services/line.service.ts +89 -0
  153. package/projects/tuki/widgets/user-device-manage/src/services/notification.service.ts +68 -0
  154. package/projects/tuki/widgets/user-device-manage/src/services/removeKynFromIBM.service.ts +25 -0
  155. package/projects/tuki/widgets/user-device-manage/src/services/site-settings.service.ts +82 -0
  156. package/projects/tuki/widgets/user-device-manage/src/services/sorting-utils.service.ts +203 -0
  157. package/projects/tuki/widgets/user-device-manage/src/services/user.service.ts +283 -0
  158. package/projects/tuki/widgets/user-device-manage/src/services/utils.service.ts +87 -0
  159. package/projects/tuki/widgets/user-device-manage/src/services/validation.service.ts +829 -0
  160. package/projects/tuki/widgets/user-device-manage/src/styles/_variables.scss +90 -0
  161. package/projects/tuki/widgets/user-device-manage/src/styles/form.scss +231 -0
  162. package/projects/tuki/widgets/user-device-manage/src/styles/icons.scss +32 -0
  163. package/projects/tuki/widgets/user-device-manage/src/styles/styles.scss +110 -0
  164. package/projects/tuki/widgets/user-device-manage/src/styles/tables.scss +30 -0
  165. package/projects/tuki/widgets/user-device-manage/src/user-device-manage.module.ts +73 -0
  166. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.html +6 -0
  167. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.scss +11 -0
  168. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.ts +13 -0
  169. package/projects/tuki/widgets/user-manage/ng-package.json +7 -0
  170. package/projects/tuki/widgets/user-manage/src/app.constants.ts +50 -0
  171. package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-left.svg +5 -0
  172. package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-right.svg +5 -0
  173. package/projects/tuki/widgets/user-manage/src/assets/icons/delete_icon.svg +5 -0
  174. package/projects/tuki/widgets/user-manage/src/assets/icons/dragger-vertical-icon.svg +3 -0
  175. package/projects/tuki/widgets/user-manage/src/assets/icons/icon_user.svg +1 -0
  176. package/projects/tuki/widgets/user-manage/src/assets/icons/vartical_divider_icon.svg +3 -0
  177. package/projects/tuki/widgets/user-manage/src/classes/device.ts +232 -0
  178. package/projects/tuki/widgets/user-manage/src/classes/line-association-interface.ts +43 -0
  179. package/projects/tuki/widgets/user-manage/src/classes/line-association.ts +161 -0
  180. package/projects/tuki/widgets/user-manage/src/classes/line-call-info-display.ts +21 -0
  181. package/projects/tuki/widgets/user-manage/src/classes/line-directory.ts +42 -0
  182. package/projects/tuki/widgets/user-manage/src/classes/line.ts +144 -0
  183. package/projects/tuki/widgets/user-manage/src/classes/notification.ts +39 -0
  184. package/projects/tuki/widgets/user-manage/src/classes/pagination.ts +18 -0
  185. package/projects/tuki/widgets/user-manage/src/classes/recording-options.ts +6 -0
  186. package/projects/tuki/widgets/user-manage/src/classes/simplified-user.ts +165 -0
  187. package/projects/tuki/widgets/user-manage/src/classes/table-data.ts +6 -0
  188. package/projects/tuki/widgets/user-manage/src/classes/translation-pattern.ts +49 -0
  189. package/projects/tuki/widgets/user-manage/src/classes/user-interface.ts +225 -0
  190. package/projects/tuki/widgets/user-manage/src/classes/user-list.ts +42 -0
  191. package/projects/tuki/widgets/user-manage/src/classes/user.ts +8 -0
  192. package/projects/tuki/widgets/user-manage/src/common-functions.ts +16 -0
  193. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.html +27 -0
  194. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.scss +131 -0
  195. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.ts +25 -0
  196. package/projects/tuki/widgets/user-manage/src/environments/environment.prod.ts +9 -0
  197. package/projects/tuki/widgets/user-manage/src/environments/environment.ts +10 -0
  198. package/projects/tuki/widgets/user-manage/src/interseptors/auth.interceptor.ts +35 -0
  199. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.html +50 -0
  200. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.scss +8 -0
  201. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.ts +81 -0
  202. package/projects/tuki/widgets/user-manage/src/material.module.ts +85 -0
  203. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.html +33 -0
  204. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.scss +84 -0
  205. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.ts +46 -0
  206. package/projects/tuki/widgets/user-manage/src/removeKynFromIBM.service.ts +25 -0
  207. package/projects/tuki/widgets/user-manage/src/services/api.service.ts +90 -0
  208. package/projects/tuki/widgets/user-manage/src/services/dns.service.ts +116 -0
  209. package/projects/tuki/widgets/user-manage/src/services/line.service.ts +31 -0
  210. package/projects/tuki/widgets/user-manage/src/services/notification.service.ts +68 -0
  211. package/projects/tuki/widgets/user-manage/src/services/removeKynFromIBM.service.ts +25 -0
  212. package/projects/tuki/widgets/user-manage/src/services/site-settings.service.ts +35 -0
  213. package/projects/tuki/widgets/user-manage/src/services/sorting-utils.service.ts +203 -0
  214. package/projects/tuki/widgets/user-manage/src/services/user.service.ts +242 -0
  215. package/projects/tuki/widgets/user-manage/src/services/users-search.service.ts +59 -0
  216. package/projects/tuki/widgets/user-manage/src/services/utils.service.ts +71 -0
  217. package/projects/tuki/widgets/user-manage/src/styles/_variables.scss +90 -0
  218. package/projects/tuki/widgets/user-manage/src/styles/form.scss +231 -0
  219. package/projects/tuki/widgets/user-manage/src/styles/icons.scss +32 -0
  220. package/projects/tuki/widgets/user-manage/src/styles/styles.scss +110 -0
  221. package/projects/tuki/widgets/user-manage/src/styles/tables.scss +30 -0
  222. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.html +10 -0
  223. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.scss +429 -0
  224. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.ts +63 -0
  225. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.html +32 -0
  226. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.scss +444 -0
  227. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.ts +89 -0
  228. package/projects/tuki/widgets/user-manage/src/user-details/notification.service.ts +68 -0
  229. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.html +29 -0
  230. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.scss +64 -0
  231. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.ts +19 -0
  232. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.html +290 -0
  233. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.scss +463 -0
  234. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.ts +212 -0
  235. package/projects/tuki/widgets/user-manage/src/user-manage.module.ts +63 -0
  236. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.html +6 -0
  237. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.scss +11 -0
  238. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.ts +13 -0
  239. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.html +26 -0
  240. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.scss +41 -0
  241. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.ts +41 -0
  242. package/projects/tuki/widgets/users-list/ng-package.json +6 -0
  243. package/projects/tuki/widgets/users-list/src/app.constants.ts +54 -0
  244. package/projects/tuki/widgets/users-list/src/assets/icons/close_icon_modal.svg +3 -0
  245. package/projects/tuki/widgets/users-list/src/assets/icons/icon_user.svg +1 -0
  246. package/projects/tuki/widgets/users-list/src/assets/icons/move_user_to_another_location.svg +14 -0
  247. package/projects/tuki/widgets/users-list/src/assets/icons/white-close-icon.svg +3 -0
  248. package/projects/tuki/widgets/users-list/src/classes/app-location.ts +36 -0
  249. package/projects/tuki/widgets/users-list/src/classes/device.ts +225 -0
  250. package/projects/tuki/widgets/users-list/src/classes/line.ts +144 -0
  251. package/projects/tuki/widgets/users-list/src/classes/move-user.ts +225 -0
  252. package/projects/tuki/widgets/users-list/src/classes/notification.ts +38 -0
  253. package/projects/tuki/widgets/users-list/src/classes/pagination.ts +18 -0
  254. package/projects/tuki/widgets/users-list/src/classes/simlified-user.ts +74 -0
  255. package/projects/tuki/widgets/users-list/src/classes/table-data.ts +6 -0
  256. package/projects/tuki/widgets/users-list/src/classes/user-interface.ts +225 -0
  257. package/projects/tuki/widgets/users-list/src/classes/user-list.ts +47 -0
  258. package/projects/tuki/widgets/users-list/src/classes/user.ts +8 -0
  259. package/projects/tuki/widgets/users-list/src/material.module.ts +94 -0
  260. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.html +37 -0
  261. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.scss +129 -0
  262. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.ts +46 -0
  263. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.html +31 -0
  264. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.scss +20 -0
  265. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.ts +26 -0
  266. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.html +222 -0
  267. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.scss +239 -0
  268. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.ts +206 -0
  269. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.html +12 -0
  270. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.scss +41 -0
  271. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.ts +36 -0
  272. package/projects/tuki/widgets/users-list/src/services/api-webex.service.ts +14 -0
  273. package/projects/tuki/widgets/users-list/src/services/api.service.ts +90 -0
  274. package/projects/tuki/widgets/users-list/src/services/dns.service.ts +128 -0
  275. package/projects/tuki/widgets/users-list/src/services/events-communication.service.ts +11 -0
  276. package/projects/tuki/widgets/users-list/src/services/move-user.service.ts +59 -0
  277. package/projects/tuki/widgets/users-list/src/services/notification.service.ts +68 -0
  278. package/projects/tuki/widgets/users-list/src/services/removeKynFromIBM.service.ts +25 -0
  279. package/projects/tuki/widgets/users-list/src/services/site-settings.service.ts +26 -0
  280. package/projects/tuki/widgets/users-list/src/services/user.service.ts +159 -0
  281. package/projects/tuki/widgets/users-list/src/services/users-search.service.ts +137 -0
  282. package/projects/tuki/widgets/users-list/src/styles/styles.scss +572 -0
  283. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.html +15 -0
  284. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.scss +103 -0
  285. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.ts +35 -0
  286. package/projects/tuki/widgets/users-list/src/users-list.component.css +4 -0
  287. package/projects/tuki/widgets/users-list/src/users-list.component.css.map +1 -0
  288. package/projects/tuki/widgets/users-list/src/users-list.component.html +86 -0
  289. package/projects/tuki/widgets/users-list/src/users-list.component.scss +572 -0
  290. package/projects/tuki/widgets/users-list/src/users-list.component.ts +312 -0
  291. package/projects/tuki/widgets/users-list/src/users-list.module.ts +63 -0
  292. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css +11 -0
  293. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css.map +1 -0
  294. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.html +6 -0
  295. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.scss +11 -0
  296. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.ts +13 -0
  297. package/projects/tuki/widgets/users-list/src/utils/common-functions.ts +32 -0
  298. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.html +33 -0
  299. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.scss +84 -0
  300. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.ts +46 -0
  301. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css +45 -0
  302. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css.map +1 -0
  303. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.html +26 -0
  304. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.scss +41 -0
  305. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.ts +41 -0
  306. package/projects/tuki/widgets/users-list/src/utils/utils.service.ts +71 -0
  307. package/projects/widgets-playground/src/app/app.component.html +63 -0
  308. package/projects/widgets-playground/src/app/app.component.scss +15 -0
  309. package/projects/widgets-playground/src/app/app.component.spec.ts +31 -0
  310. package/projects/widgets-playground/src/app/app.component.ts +31 -0
  311. package/projects/widgets-playground/src/app/app.module.ts +37 -0
  312. package/projects/widgets-playground/src/assets/.gitkeep +0 -0
  313. package/projects/widgets-playground/src/assets/icons/already_upgraded.png +0 -0
  314. package/projects/widgets-playground/src/assets/icons/check2_icon.png +0 -0
  315. package/projects/widgets-playground/src/assets/icons/check_icon.png +0 -0
  316. package/projects/widgets-playground/src/assets/icons/expand_icon.png +0 -0
  317. package/projects/widgets-playground/src/assets/icons/issue_icon.png +0 -0
  318. package/projects/widgets-playground/src/assets/icons/menu_icon.png +0 -0
  319. package/projects/widgets-playground/src/assets/icons/ready_to_upgrade.png +0 -0
  320. package/projects/widgets-playground/src/assets/icons/search_icon.png +0 -0
  321. package/projects/widgets-playground/src/assets/icons/site.png +0 -0
  322. package/projects/widgets-playground/src/assets/icons/user.png +0 -0
  323. package/projects/widgets-playground/src/assets/icons/warning_icon.png +0 -0
  324. package/projects/widgets-playground/src/favicon.ico +0 -0
  325. package/projects/widgets-playground/src/index.html +13 -0
  326. package/projects/widgets-playground/src/main.ts +7 -0
  327. package/projects/widgets-playground/src/styles.scss +23 -0
  328. package/projects/widgets-playground/tsconfig.app.json +14 -0
  329. package/projects/widgets-playground/tsconfig.spec.json +14 -0
  330. package/proxy.conf.js +23 -0
  331. package/tsconfig.json +46 -0
  332. package/esm2020/lib/widgets.component.mjs +0 -22
  333. package/esm2020/lib/widgets.module.mjs +0 -21
  334. package/esm2020/lib/widgets.service.mjs +0 -14
  335. package/esm2020/public-api.mjs +0 -7
  336. package/esm2020/tuki-io-tuki-widgets.mjs +0 -5
  337. package/esm2020/user-device-manage/public-api.mjs +0 -9
  338. package/esm2020/user-device-manage/src/app.constants.mjs +0 -95
  339. package/esm2020/user-device-manage/src/classes/device.mjs +0 -85
  340. package/esm2020/user-device-manage/src/classes/line-association-interface.mjs +0 -2
  341. package/esm2020/user-device-manage/src/classes/line-association.mjs +0 -121
  342. package/esm2020/user-device-manage/src/classes/line-call-info-display.mjs +0 -10
  343. package/esm2020/user-device-manage/src/classes/line-directory.mjs +0 -27
  344. package/esm2020/user-device-manage/src/classes/line.mjs +0 -18
  345. package/esm2020/user-device-manage/src/classes/notification.mjs +0 -32
  346. package/esm2020/user-device-manage/src/classes/recording-options.mjs +0 -7
  347. package/esm2020/user-device-manage/src/classes/simplified-user.mjs +0 -111
  348. package/esm2020/user-device-manage/src/classes/site-defaults.mjs +0 -21
  349. package/esm2020/user-device-manage/src/classes/translation-pattern.mjs +0 -32
  350. package/esm2020/user-device-manage/src/classes/types.mjs +0 -24
  351. package/esm2020/user-device-manage/src/common-functions.mjs +0 -19
  352. package/esm2020/user-device-manage/src/confirm-dialog/info-dialog.component.mjs +0 -34
  353. package/esm2020/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.mjs +0 -31
  354. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.mjs +0 -16
  355. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.mjs +0 -64
  356. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line.component.mjs +0 -179
  357. package/esm2020/user-device-manage/src/device-list/device-list.component.mjs +0 -24
  358. package/esm2020/user-device-manage/src/device-manage-widget.component.mjs +0 -335
  359. package/esm2020/user-device-manage/src/environments/environment.mjs +0 -11
  360. package/esm2020/user-device-manage/src/interseptors/auth.interceptor.mjs +0 -36
  361. package/esm2020/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +0 -74
  362. package/esm2020/user-device-manage/src/material.module.mjs +0 -192
  363. package/esm2020/user-device-manage/src/notifications/notification.component.mjs +0 -35
  364. package/esm2020/user-device-manage/src/services/api.service.mjs +0 -79
  365. package/esm2020/user-device-manage/src/services/device.service.mjs +0 -83
  366. package/esm2020/user-device-manage/src/services/dns.service.mjs +0 -104
  367. package/esm2020/user-device-manage/src/services/line.service.mjs +0 -76
  368. package/esm2020/user-device-manage/src/services/notification.service.mjs +0 -62
  369. package/esm2020/user-device-manage/src/services/removeKynFromIBM.service.mjs +0 -25
  370. package/esm2020/user-device-manage/src/services/site-settings.service.mjs +0 -70
  371. package/esm2020/user-device-manage/src/services/sorting-utils.service.mjs +0 -197
  372. package/esm2020/user-device-manage/src/services/user.service.mjs +0 -243
  373. package/esm2020/user-device-manage/src/services/utils.service.mjs +0 -87
  374. package/esm2020/user-device-manage/src/services/validation.service.mjs +0 -760
  375. package/esm2020/user-device-manage/src/user-device-manage.module.mjs +0 -107
  376. package/esm2020/user-device-manage/src/utils/app-loader/app-loader.mjs +0 -14
  377. package/esm2020/user-device-manage/tuki-io-tuki-widgets-user-device-manage.mjs +0 -5
  378. package/esm2020/user-manage/public-api.mjs +0 -7
  379. package/esm2020/user-manage/src/app.constants.mjs +0 -50
  380. package/esm2020/user-manage/src/classes/device.mjs +0 -37
  381. package/esm2020/user-manage/src/classes/line-association-interface.mjs +0 -2
  382. package/esm2020/user-manage/src/classes/line-association.mjs +0 -110
  383. package/esm2020/user-manage/src/classes/line-call-info-display.mjs +0 -10
  384. package/esm2020/user-manage/src/classes/line-directory.mjs +0 -27
  385. package/esm2020/user-manage/src/classes/line.mjs +0 -18
  386. package/esm2020/user-manage/src/classes/notification.mjs +0 -32
  387. package/esm2020/user-manage/src/classes/pagination.mjs +0 -8
  388. package/esm2020/user-manage/src/classes/recording-options.mjs +0 -7
  389. package/esm2020/user-manage/src/classes/simplified-user.mjs +0 -109
  390. package/esm2020/user-manage/src/classes/table-data.mjs +0 -2
  391. package/esm2020/user-manage/src/classes/translation-pattern.mjs +0 -32
  392. package/esm2020/user-manage/src/classes/user-list.mjs +0 -10
  393. package/esm2020/user-manage/src/common-functions.mjs +0 -19
  394. package/esm2020/user-manage/src/device-list/device-list.component.mjs +0 -24
  395. package/esm2020/user-manage/src/environments/environment.mjs +0 -11
  396. package/esm2020/user-manage/src/interseptors/auth.interceptor.mjs +0 -36
  397. package/esm2020/user-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +0 -74
  398. package/esm2020/user-manage/src/material.module.mjs +0 -188
  399. package/esm2020/user-manage/src/notifications/notification.component.mjs +0 -35
  400. package/esm2020/user-manage/src/removeKynFromIBM.service.mjs +0 -25
  401. package/esm2020/user-manage/src/services/api.service.mjs +0 -79
  402. package/esm2020/user-manage/src/services/dns.service.mjs +0 -110
  403. package/esm2020/user-manage/src/services/line.service.mjs +0 -34
  404. package/esm2020/user-manage/src/services/notification.service.mjs +0 -62
  405. package/esm2020/user-manage/src/services/removeKynFromIBM.service.mjs +0 -25
  406. package/esm2020/user-manage/src/services/site-settings.service.mjs +0 -36
  407. package/esm2020/user-manage/src/services/sorting-utils.service.mjs +0 -197
  408. package/esm2020/user-manage/src/services/user.service.mjs +0 -207
  409. package/esm2020/user-manage/src/services/users-search.service.mjs +0 -50
  410. package/esm2020/user-manage/src/services/utils.service.mjs +0 -73
  411. package/esm2020/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.mjs +0 -65
  412. package/esm2020/user-manage/src/user-calling/user-calling.component.mjs +0 -78
  413. package/esm2020/user-manage/src/user-info/user-info.component.mjs +0 -20
  414. package/esm2020/user-manage/src/user-manage-widget.component.mjs +0 -208
  415. package/esm2020/user-manage/src/user-manage.module.mjs +0 -99
  416. package/esm2020/user-manage/src/utils/app-loader/app-loader.mjs +0 -14
  417. package/esm2020/user-manage/src/utils/pagination/pagination.component.mjs +0 -43
  418. package/esm2020/user-manage/tuki-io-tuki-widgets-user-manage.mjs +0 -5
  419. package/esm2020/users-list/public-api.mjs +0 -9
  420. package/esm2020/users-list/src/app.constants.mjs +0 -54
  421. package/esm2020/users-list/src/classes/app-location.mjs +0 -32
  422. package/esm2020/users-list/src/classes/device.mjs +0 -7
  423. package/esm2020/users-list/src/classes/line.mjs +0 -18
  424. package/esm2020/users-list/src/classes/move-user.mjs +0 -178
  425. package/esm2020/users-list/src/classes/notification.mjs +0 -31
  426. package/esm2020/users-list/src/classes/pagination.mjs +0 -8
  427. package/esm2020/users-list/src/classes/simlified-user.mjs +0 -50
  428. package/esm2020/users-list/src/classes/table-data.mjs +0 -2
  429. package/esm2020/users-list/src/classes/user-list.mjs +0 -14
  430. package/esm2020/users-list/src/material.module.mjs +0 -209
  431. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.mjs +0 -38
  432. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.mjs +0 -23
  433. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.mjs +0 -189
  434. package/esm2020/users-list/src/move-user-wizard/move-user-wizard.component.mjs +0 -38
  435. package/esm2020/users-list/src/services/api-webex.service.mjs +0 -18
  436. package/esm2020/users-list/src/services/api.service.mjs +0 -78
  437. package/esm2020/users-list/src/services/dns.service.mjs +0 -120
  438. package/esm2020/users-list/src/services/events-communication.service.mjs +0 -14
  439. package/esm2020/users-list/src/services/move-user.service.mjs +0 -53
  440. package/esm2020/users-list/src/services/notification.service.mjs +0 -62
  441. package/esm2020/users-list/src/services/removeKynFromIBM.service.mjs +0 -25
  442. package/esm2020/users-list/src/services/site-settings.service.mjs +0 -27
  443. package/esm2020/users-list/src/services/user.service.mjs +0 -142
  444. package/esm2020/users-list/src/services/users-search.service.mjs +0 -122
  445. package/esm2020/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.mjs +0 -34
  446. package/esm2020/users-list/src/users-list.component.mjs +0 -287
  447. package/esm2020/users-list/src/users-list.module.mjs +0 -92
  448. package/esm2020/users-list/src/utils/app-loader/app-loader.mjs +0 -14
  449. package/esm2020/users-list/src/utils/common-functions.mjs +0 -32
  450. package/esm2020/users-list/src/utils/pagination/pagination.component.mjs +0 -43
  451. package/esm2020/users-list/src/utils/utils.service.mjs +0 -73
  452. package/esm2020/users-list/tuki-io-tuki-widgets-users-list.mjs +0 -5
  453. package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs +0 -3402
  454. package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs.map +0 -1
  455. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +0 -2124
  456. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +0 -1
  457. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +0 -1994
  458. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +0 -1
  459. package/fesm2015/tuki-io-tuki-widgets.mjs +0 -63
  460. package/fesm2015/tuki-io-tuki-widgets.mjs.map +0 -1
  461. package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs +0 -3364
  462. package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs.map +0 -1
  463. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +0 -2107
  464. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +0 -1
  465. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +0 -1973
  466. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +0 -1
  467. package/fesm2020/tuki-io-tuki-widgets.mjs +0 -63
  468. package/fesm2020/tuki-io-tuki-widgets.mjs.map +0 -1
  469. package/index.d.ts +0 -5
  470. package/lib/widgets.component.d.ts +0 -8
  471. package/lib/widgets.module.d.ts +0 -7
  472. package/lib/widgets.service.d.ts +0 -6
  473. package/user-device-manage/index.d.ts +0 -5
  474. package/user-device-manage/src/app.constants.d.ts +0 -74
  475. package/user-device-manage/src/classes/device.d.ts +0 -233
  476. package/user-device-manage/src/classes/line-association-interface.d.ts +0 -45
  477. package/user-device-manage/src/classes/line-association.d.ts +0 -62
  478. package/user-device-manage/src/classes/line-call-info-display.d.ts +0 -11
  479. package/user-device-manage/src/classes/line-directory.d.ts +0 -15
  480. package/user-device-manage/src/classes/line.d.ts +0 -140
  481. package/user-device-manage/src/classes/notification.d.ts +0 -18
  482. package/user-device-manage/src/classes/recording-options.d.ts +0 -5
  483. package/user-device-manage/src/classes/simplified-user.d.ts +0 -52
  484. package/user-device-manage/src/classes/site-defaults.d.ts +0 -146
  485. package/user-device-manage/src/classes/translation-pattern.d.ts +0 -19
  486. package/user-device-manage/src/classes/types.d.ts +0 -19
  487. package/user-device-manage/src/common-functions.d.ts +0 -1
  488. package/user-device-manage/src/confirm-dialog/info-dialog.component.d.ts +0 -20
  489. package/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.d.ts +0 -15
  490. package/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.d.ts +0 -7
  491. package/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.d.ts +0 -24
  492. package/user-device-manage/src/device-associated-line/device-associated-line.component.d.ts +0 -89
  493. package/user-device-manage/src/device-list/device-list.component.d.ts +0 -11
  494. package/user-device-manage/src/device-manage-widget.component.d.ts +0 -71
  495. package/user-device-manage/src/environments/environment.d.ts +0 -9
  496. package/user-device-manage/src/interseptors/auth.interceptor.d.ts +0 -9
  497. package/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +0 -35
  498. package/user-device-manage/src/material.module.d.ts +0 -29
  499. package/user-device-manage/src/notifications/notification.component.d.ts +0 -19
  500. package/user-device-manage/src/services/api.service.d.ts +0 -20
  501. package/user-device-manage/src/services/device.service.d.ts +0 -21
  502. package/user-device-manage/src/services/dns.service.d.ts +0 -14
  503. package/user-device-manage/src/services/line.service.d.ts +0 -33
  504. package/user-device-manage/src/services/notification.service.d.ts +0 -18
  505. package/user-device-manage/src/services/removeKynFromIBM.service.d.ts +0 -8
  506. package/user-device-manage/src/services/site-settings.service.d.ts +0 -25
  507. package/user-device-manage/src/services/sorting-utils.service.d.ts +0 -26
  508. package/user-device-manage/src/services/user.service.d.ts +0 -51
  509. package/user-device-manage/src/services/utils.service.d.ts +0 -10
  510. package/user-device-manage/src/services/validation.service.d.ts +0 -165
  511. package/user-device-manage/src/user-device-manage.module.d.ts +0 -22
  512. package/user-device-manage/src/utils/app-loader/app-loader.d.ts +0 -6
  513. package/user-manage/index.d.ts +0 -5
  514. package/user-manage/src/app.constants.d.ts +0 -29
  515. package/user-manage/src/classes/device.d.ts +0 -203
  516. package/user-manage/src/classes/line-association-interface.d.ts +0 -40
  517. package/user-manage/src/classes/line-association.d.ts +0 -55
  518. package/user-manage/src/classes/line-call-info-display.d.ts +0 -11
  519. package/user-manage/src/classes/line-directory.d.ts +0 -16
  520. package/user-manage/src/classes/line.d.ts +0 -140
  521. package/user-manage/src/classes/notification.d.ts +0 -18
  522. package/user-manage/src/classes/pagination.d.ts +0 -13
  523. package/user-manage/src/classes/recording-options.d.ts +0 -5
  524. package/user-manage/src/classes/simplified-user.d.ts +0 -50
  525. package/user-manage/src/classes/table-data.d.ts +0 -5
  526. package/user-manage/src/classes/translation-pattern.d.ts +0 -18
  527. package/user-manage/src/classes/user-list.d.ts +0 -34
  528. package/user-manage/src/common-functions.d.ts +0 -1
  529. package/user-manage/src/device-list/device-list.component.d.ts +0 -11
  530. package/user-manage/src/environments/environment.d.ts +0 -9
  531. package/user-manage/src/interseptors/auth.interceptor.d.ts +0 -9
  532. package/user-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +0 -35
  533. package/user-manage/src/material.module.d.ts +0 -28
  534. package/user-manage/src/notifications/notification.component.d.ts +0 -19
  535. package/user-manage/src/removeKynFromIBM.service.d.ts +0 -8
  536. package/user-manage/src/services/api.service.d.ts +0 -21
  537. package/user-manage/src/services/dns.service.d.ts +0 -14
  538. package/user-manage/src/services/line.service.d.ts +0 -17
  539. package/user-manage/src/services/notification.service.d.ts +0 -18
  540. package/user-manage/src/services/removeKynFromIBM.service.d.ts +0 -8
  541. package/user-manage/src/services/site-settings.service.d.ts +0 -9
  542. package/user-manage/src/services/sorting-utils.service.d.ts +0 -26
  543. package/user-manage/src/services/user.service.d.ts +0 -43
  544. package/user-manage/src/services/users-search.service.d.ts +0 -25
  545. package/user-manage/src/services/utils.service.d.ts +0 -9
  546. package/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.d.ts +0 -24
  547. package/user-manage/src/user-calling/user-calling.component.d.ts +0 -30
  548. package/user-manage/src/user-info/user-info.component.d.ts +0 -9
  549. package/user-manage/src/user-manage-widget.component.d.ts +0 -45
  550. package/user-manage/src/user-manage.module.d.ts +0 -21
  551. package/user-manage/src/utils/app-loader/app-loader.d.ts +0 -6
  552. package/user-manage/src/utils/pagination/pagination.component.d.ts +0 -18
  553. package/users-list/index.d.ts +0 -5
  554. package/users-list/src/app.constants.d.ts +0 -36
  555. package/users-list/src/classes/app-location.d.ts +0 -17
  556. package/users-list/src/classes/device.d.ts +0 -224
  557. package/users-list/src/classes/line.d.ts +0 -140
  558. package/users-list/src/classes/move-user.d.ts +0 -85
  559. package/users-list/src/classes/notification.d.ts +0 -18
  560. package/users-list/src/classes/pagination.d.ts +0 -13
  561. package/users-list/src/classes/simlified-user.d.ts +0 -25
  562. package/users-list/src/classes/table-data.d.ts +0 -5
  563. package/users-list/src/classes/user-list.d.ts +0 -36
  564. package/users-list/src/material.module.d.ts +0 -31
  565. package/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.d.ts +0 -21
  566. package/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.d.ts +0 -12
  567. package/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.d.ts +0 -55
  568. package/users-list/src/move-user-wizard/move-user-wizard.component.d.ts +0 -17
  569. package/users-list/src/services/api-webex.service.d.ts +0 -8
  570. package/users-list/src/services/api.service.d.ts +0 -21
  571. package/users-list/src/services/dns.service.d.ts +0 -18
  572. package/users-list/src/services/events-communication.service.d.ts +0 -8
  573. package/users-list/src/services/move-user.service.d.ts +0 -17
  574. package/users-list/src/services/notification.service.d.ts +0 -18
  575. package/users-list/src/services/removeKynFromIBM.service.d.ts +0 -8
  576. package/users-list/src/services/site-settings.service.d.ts +0 -11
  577. package/users-list/src/services/user.service.d.ts +0 -35
  578. package/users-list/src/services/users-search.service.d.ts +0 -34
  579. package/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.d.ts +0 -20
  580. package/users-list/src/users-list.component.d.ts +0 -60
  581. package/users-list/src/users-list.module.d.ts +0 -18
  582. package/users-list/src/utils/app-loader/app-loader.d.ts +0 -6
  583. package/users-list/src/utils/common-functions.d.ts +0 -2
  584. package/users-list/src/utils/pagination/pagination.component.d.ts +0 -18
  585. package/users-list/src/utils/utils.service.d.ts +0 -9
  586. /package/{user-device-manage/public-api.d.ts → projects/tuki/widgets/user-device-manage/public-api.ts} +0 -0
  587. /package/{user-manage/public-api.d.ts → projects/tuki/widgets/user-manage/public-api.ts} +0 -0
  588. /package/{users-list/public-api.d.ts → projects/tuki/widgets/users-list/public-api.ts} +0 -0
@@ -0,0 +1,222 @@
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>
@@ -0,0 +1,239 @@
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
+
@@ -0,0 +1,206 @@
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 | undefined {
75
+ return location?.name || '';
76
+ }
77
+
78
+ onLocationAutocomplete(event: InputEvent): 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
+ }
@@ -0,0 +1,12 @@
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>