@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.
- package/.editorconfig +16 -0
- package/.hintrc +14 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +10 -9
- package/angular.json +140 -0
- package/package.json +47 -57
- package/projects/tuki/widgets/README.md +24 -0
- package/projects/tuki/widgets/di2mt/README.md +42 -0
- package/projects/tuki/widgets/di2mt/api/api.endpoints.ts +20 -0
- package/projects/tuki/widgets/di2mt/assets/icons/already_upgraded.png +0 -0
- package/projects/tuki/widgets/di2mt/assets/icons/check2_icon.png +0 -0
- package/projects/tuki/widgets/di2mt/assets/icons/check_icon.png +0 -0
- package/projects/tuki/widgets/di2mt/assets/icons/expand_icon.png +0 -0
- package/projects/tuki/widgets/di2mt/assets/icons/issue_icon.png +0 -0
- package/projects/tuki/widgets/di2mt/assets/icons/menu_icon.png +0 -0
- package/projects/tuki/widgets/di2mt/assets/icons/ready_to_upgrade.png +0 -0
- package/projects/tuki/widgets/di2mt/assets/icons/search_icon.png +0 -0
- package/projects/tuki/widgets/di2mt/assets/icons/site.png +0 -0
- package/projects/tuki/widgets/di2mt/assets/icons/user.png +0 -0
- package/projects/tuki/widgets/di2mt/assets/icons/warning_icon.png +0 -0
- package/projects/tuki/widgets/di2mt/ng-package.json +7 -0
- package/projects/tuki/widgets/di2mt/public-api.ts +26 -0
- package/projects/tuki/widgets/di2mt/shared/components/card/card.component.html +11 -0
- package/projects/tuki/widgets/di2mt/shared/components/card/card.component.scss +48 -0
- package/projects/tuki/widgets/di2mt/shared/components/card/card.component.ts +10 -0
- package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.html +15 -0
- package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.scss +38 -0
- package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.ts +71 -0
- package/projects/tuki/widgets/di2mt/shared/components/index.ts +6 -0
- package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.html +57 -0
- package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.scss +74 -0
- package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.ts +44 -0
- package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.html +28 -0
- package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.scss +55 -0
- package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.ts +11 -0
- package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.html +12 -0
- package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.scss +76 -0
- package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.ts +27 -0
- package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.html +28 -0
- package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.scss +52 -0
- package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.ts +28 -0
- package/projects/tuki/widgets/di2mt/shared/material.module.ts +36 -0
- package/projects/tuki/widgets/di2mt/shared/services/api.service.ts +92 -0
- package/projects/tuki/widgets/di2mt/shared/shared.module.ts +38 -0
- package/projects/tuki/widgets/di2mt/shared/types/constants.ts +14 -0
- package/projects/tuki/widgets/di2mt/shared/types/data-table.ts +5 -0
- package/projects/tuki/widgets/di2mt/shared/types/table/filter.ts +14 -0
- package/projects/tuki/widgets/di2mt/styles/tuki-widgets-theme.scss +13 -0
- package/projects/tuki/widgets/di2mt/styles/variables.scss +92 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.html +92 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.scss +187 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.ts +205 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.module.ts +24 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.service.ts +45 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/types/user-upgrade.ts +15 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.ts +52 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.ts +53 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.ts +67 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.html +7 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.scss +0 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.ts +45 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.html +7 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.scss +0 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.ts +45 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.ts +59 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.ts +70 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/types/upgrade-overview.ts +58 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/upgrade-overview.module.ts +42 -0
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/upgrade-overview.service.ts +95 -0
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/types/user-upgrade.ts +18 -0
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.html +131 -0
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.scss +275 -0
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.ts +218 -0
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.module.ts +24 -0
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.service.ts +73 -0
- package/projects/tuki/widgets/karma.conf.js +44 -0
- package/projects/tuki/widgets/ng-package.json +7 -0
- package/projects/tuki/widgets/package.json +13 -0
- package/projects/tuki/widgets/src/lib/widgets.component.spec.ts +23 -0
- package/projects/tuki/widgets/src/lib/widgets.component.ts +20 -0
- package/projects/tuki/widgets/src/lib/widgets.module.ts +16 -0
- package/projects/tuki/widgets/src/lib/widgets.service.spec.ts +16 -0
- package/projects/tuki/widgets/src/lib/widgets.service.ts +9 -0
- package/{public-api.d.ts → projects/tuki/widgets/src/public-api.ts} +4 -0
- package/projects/tuki/widgets/src/test.ts +27 -0
- package/projects/tuki/widgets/styles.scss +572 -0
- package/projects/tuki/widgets/tsconfig.lib.json +36 -0
- package/projects/tuki/widgets/tsconfig.lib.prod.json +10 -0
- package/projects/tuki/widgets/tsconfig.spec.json +17 -0
- package/projects/tuki/widgets/user-device-manage/ng-package.json +7 -0
- package/projects/tuki/widgets/user-device-manage/src/app.constants.ts +96 -0
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-left.svg +5 -0
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-right.svg +5 -0
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/close_icon_x.svg +3 -0
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/delete_icon.svg +5 -0
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/dragger-vertical-icon.svg +3 -0
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/icon_user.svg +1 -0
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/vartical_divider_icon.svg +3 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/device.ts +292 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/line-association-interface.ts +50 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/line-association.ts +177 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/line-call-info-display.ts +21 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/line-directory.ts +41 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/line.ts +144 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/notification.ts +40 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/recording-options.ts +6 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/simplified-user.ts +169 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/site-defaults.ts +167 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/translation-pattern.ts +50 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/types.ts +19 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/user-interface.ts +225 -0
- package/projects/tuki/widgets/user-device-manage/src/classes/user.ts +8 -0
- package/projects/tuki/widgets/user-device-manage/src/common-functions.ts +16 -0
- package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.html +14 -0
- package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.scss +80 -0
- package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.ts +35 -0
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.html +21 -0
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.scss +97 -0
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.ts +28 -0
- 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
- 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
- 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
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.html +6 -0
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.scss +4 -0
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.ts +63 -0
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.html +241 -0
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.scss +500 -0
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.ts +194 -0
- package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.html +27 -0
- package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.scss +131 -0
- package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.ts +25 -0
- package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.html +209 -0
- package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.scss +502 -0
- package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.ts +354 -0
- package/projects/tuki/widgets/user-device-manage/src/environments/environment.prod.ts +9 -0
- package/projects/tuki/widgets/user-device-manage/src/environments/environment.ts +10 -0
- package/projects/tuki/widgets/user-device-manage/src/interseptors/auth.interceptor.ts +35 -0
- package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.html +50 -0
- package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.scss +8 -0
- package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.ts +81 -0
- package/projects/tuki/widgets/user-device-manage/src/material.module.ts +87 -0
- package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.html +33 -0
- package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.scss +84 -0
- package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.ts +46 -0
- package/projects/tuki/widgets/user-device-manage/src/removeKynFromIBM.service.ts +25 -0
- package/projects/tuki/widgets/user-device-manage/src/services/api.service.ts +87 -0
- package/projects/tuki/widgets/user-device-manage/src/services/common-functions.ts +17 -0
- package/projects/tuki/widgets/user-device-manage/src/services/device.service.ts +95 -0
- package/projects/tuki/widgets/user-device-manage/src/services/dns.service.ts +111 -0
- package/projects/tuki/widgets/user-device-manage/src/services/line.service.ts +89 -0
- package/projects/tuki/widgets/user-device-manage/src/services/notification.service.ts +68 -0
- package/projects/tuki/widgets/user-device-manage/src/services/removeKynFromIBM.service.ts +25 -0
- package/projects/tuki/widgets/user-device-manage/src/services/site-settings.service.ts +82 -0
- package/projects/tuki/widgets/user-device-manage/src/services/sorting-utils.service.ts +203 -0
- package/projects/tuki/widgets/user-device-manage/src/services/user.service.ts +283 -0
- package/projects/tuki/widgets/user-device-manage/src/services/utils.service.ts +87 -0
- package/projects/tuki/widgets/user-device-manage/src/services/validation.service.ts +829 -0
- package/projects/tuki/widgets/user-device-manage/src/styles/_variables.scss +90 -0
- package/projects/tuki/widgets/user-device-manage/src/styles/form.scss +231 -0
- package/projects/tuki/widgets/user-device-manage/src/styles/icons.scss +32 -0
- package/projects/tuki/widgets/user-device-manage/src/styles/styles.scss +110 -0
- package/projects/tuki/widgets/user-device-manage/src/styles/tables.scss +30 -0
- package/projects/tuki/widgets/user-device-manage/src/user-device-manage.module.ts +73 -0
- package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.html +6 -0
- package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.scss +11 -0
- package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.ts +13 -0
- package/projects/tuki/widgets/user-manage/ng-package.json +7 -0
- package/projects/tuki/widgets/user-manage/src/app.constants.ts +50 -0
- package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-left.svg +5 -0
- package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-right.svg +5 -0
- package/projects/tuki/widgets/user-manage/src/assets/icons/delete_icon.svg +5 -0
- package/projects/tuki/widgets/user-manage/src/assets/icons/dragger-vertical-icon.svg +3 -0
- package/projects/tuki/widgets/user-manage/src/assets/icons/icon_user.svg +1 -0
- package/projects/tuki/widgets/user-manage/src/assets/icons/vartical_divider_icon.svg +3 -0
- package/projects/tuki/widgets/user-manage/src/classes/device.ts +232 -0
- package/projects/tuki/widgets/user-manage/src/classes/line-association-interface.ts +43 -0
- package/projects/tuki/widgets/user-manage/src/classes/line-association.ts +161 -0
- package/projects/tuki/widgets/user-manage/src/classes/line-call-info-display.ts +21 -0
- package/projects/tuki/widgets/user-manage/src/classes/line-directory.ts +42 -0
- package/projects/tuki/widgets/user-manage/src/classes/line.ts +144 -0
- package/projects/tuki/widgets/user-manage/src/classes/notification.ts +39 -0
- package/projects/tuki/widgets/user-manage/src/classes/pagination.ts +18 -0
- package/projects/tuki/widgets/user-manage/src/classes/recording-options.ts +6 -0
- package/projects/tuki/widgets/user-manage/src/classes/simplified-user.ts +165 -0
- package/projects/tuki/widgets/user-manage/src/classes/table-data.ts +6 -0
- package/projects/tuki/widgets/user-manage/src/classes/translation-pattern.ts +49 -0
- package/projects/tuki/widgets/user-manage/src/classes/user-interface.ts +225 -0
- package/projects/tuki/widgets/user-manage/src/classes/user-list.ts +42 -0
- package/projects/tuki/widgets/user-manage/src/classes/user.ts +8 -0
- package/projects/tuki/widgets/user-manage/src/common-functions.ts +16 -0
- package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.html +27 -0
- package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.scss +131 -0
- package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.ts +25 -0
- package/projects/tuki/widgets/user-manage/src/environments/environment.prod.ts +9 -0
- package/projects/tuki/widgets/user-manage/src/environments/environment.ts +10 -0
- package/projects/tuki/widgets/user-manage/src/interseptors/auth.interceptor.ts +35 -0
- package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.html +50 -0
- package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.scss +8 -0
- package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.ts +81 -0
- package/projects/tuki/widgets/user-manage/src/material.module.ts +85 -0
- package/projects/tuki/widgets/user-manage/src/notifications/notification.component.html +33 -0
- package/projects/tuki/widgets/user-manage/src/notifications/notification.component.scss +84 -0
- package/projects/tuki/widgets/user-manage/src/notifications/notification.component.ts +46 -0
- package/projects/tuki/widgets/user-manage/src/removeKynFromIBM.service.ts +25 -0
- package/projects/tuki/widgets/user-manage/src/services/api.service.ts +90 -0
- package/projects/tuki/widgets/user-manage/src/services/dns.service.ts +116 -0
- package/projects/tuki/widgets/user-manage/src/services/line.service.ts +31 -0
- package/projects/tuki/widgets/user-manage/src/services/notification.service.ts +68 -0
- package/projects/tuki/widgets/user-manage/src/services/removeKynFromIBM.service.ts +25 -0
- package/projects/tuki/widgets/user-manage/src/services/site-settings.service.ts +35 -0
- package/projects/tuki/widgets/user-manage/src/services/sorting-utils.service.ts +203 -0
- package/projects/tuki/widgets/user-manage/src/services/user.service.ts +242 -0
- package/projects/tuki/widgets/user-manage/src/services/users-search.service.ts +59 -0
- package/projects/tuki/widgets/user-manage/src/services/utils.service.ts +71 -0
- package/projects/tuki/widgets/user-manage/src/styles/_variables.scss +90 -0
- package/projects/tuki/widgets/user-manage/src/styles/form.scss +231 -0
- package/projects/tuki/widgets/user-manage/src/styles/icons.scss +32 -0
- package/projects/tuki/widgets/user-manage/src/styles/styles.scss +110 -0
- package/projects/tuki/widgets/user-manage/src/styles/tables.scss +30 -0
- package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.html +10 -0
- package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.scss +429 -0
- package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.ts +63 -0
- package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.html +32 -0
- package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.scss +444 -0
- package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.ts +89 -0
- package/projects/tuki/widgets/user-manage/src/user-details/notification.service.ts +68 -0
- package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.html +29 -0
- package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.scss +64 -0
- package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.ts +19 -0
- package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.html +290 -0
- package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.scss +463 -0
- package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.ts +212 -0
- package/projects/tuki/widgets/user-manage/src/user-manage.module.ts +63 -0
- package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.html +6 -0
- package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.scss +11 -0
- package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.ts +13 -0
- package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.html +26 -0
- package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.scss +41 -0
- package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.ts +41 -0
- package/projects/tuki/widgets/users-list/ng-package.json +6 -0
- package/projects/tuki/widgets/users-list/src/app.constants.ts +54 -0
- package/projects/tuki/widgets/users-list/src/assets/icons/close_icon_modal.svg +3 -0
- package/projects/tuki/widgets/users-list/src/assets/icons/icon_user.svg +1 -0
- package/projects/tuki/widgets/users-list/src/assets/icons/move_user_to_another_location.svg +14 -0
- package/projects/tuki/widgets/users-list/src/assets/icons/white-close-icon.svg +3 -0
- package/projects/tuki/widgets/users-list/src/classes/app-location.ts +36 -0
- package/projects/tuki/widgets/users-list/src/classes/device.ts +225 -0
- package/projects/tuki/widgets/users-list/src/classes/line.ts +144 -0
- package/projects/tuki/widgets/users-list/src/classes/move-user.ts +225 -0
- package/projects/tuki/widgets/users-list/src/classes/notification.ts +38 -0
- package/projects/tuki/widgets/users-list/src/classes/pagination.ts +18 -0
- package/projects/tuki/widgets/users-list/src/classes/simlified-user.ts +74 -0
- package/projects/tuki/widgets/users-list/src/classes/table-data.ts +6 -0
- package/projects/tuki/widgets/users-list/src/classes/user-interface.ts +225 -0
- package/projects/tuki/widgets/users-list/src/classes/user-list.ts +47 -0
- package/projects/tuki/widgets/users-list/src/classes/user.ts +8 -0
- package/projects/tuki/widgets/users-list/src/material.module.ts +94 -0
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.html +37 -0
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.scss +129 -0
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.ts +46 -0
- 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
- 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
- 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
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.html +222 -0
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.scss +239 -0
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.ts +206 -0
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.html +12 -0
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.scss +41 -0
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.ts +36 -0
- package/projects/tuki/widgets/users-list/src/services/api-webex.service.ts +14 -0
- package/projects/tuki/widgets/users-list/src/services/api.service.ts +90 -0
- package/projects/tuki/widgets/users-list/src/services/dns.service.ts +128 -0
- package/projects/tuki/widgets/users-list/src/services/events-communication.service.ts +11 -0
- package/projects/tuki/widgets/users-list/src/services/move-user.service.ts +59 -0
- package/projects/tuki/widgets/users-list/src/services/notification.service.ts +68 -0
- package/projects/tuki/widgets/users-list/src/services/removeKynFromIBM.service.ts +25 -0
- package/projects/tuki/widgets/users-list/src/services/site-settings.service.ts +26 -0
- package/projects/tuki/widgets/users-list/src/services/user.service.ts +159 -0
- package/projects/tuki/widgets/users-list/src/services/users-search.service.ts +137 -0
- package/projects/tuki/widgets/users-list/src/styles/styles.scss +572 -0
- package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.html +15 -0
- package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.scss +103 -0
- package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.ts +35 -0
- package/projects/tuki/widgets/users-list/src/users-list.component.css +4 -0
- package/projects/tuki/widgets/users-list/src/users-list.component.css.map +1 -0
- package/projects/tuki/widgets/users-list/src/users-list.component.html +86 -0
- package/projects/tuki/widgets/users-list/src/users-list.component.scss +572 -0
- package/projects/tuki/widgets/users-list/src/users-list.component.ts +312 -0
- package/projects/tuki/widgets/users-list/src/users-list.module.ts +63 -0
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css +11 -0
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css.map +1 -0
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.html +6 -0
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.scss +11 -0
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.ts +13 -0
- package/projects/tuki/widgets/users-list/src/utils/common-functions.ts +32 -0
- package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.html +33 -0
- package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.scss +84 -0
- package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.ts +46 -0
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css +45 -0
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css.map +1 -0
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.html +26 -0
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.scss +41 -0
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.ts +41 -0
- package/projects/tuki/widgets/users-list/src/utils/utils.service.ts +71 -0
- package/projects/widgets-playground/src/app/app.component.html +63 -0
- package/projects/widgets-playground/src/app/app.component.scss +15 -0
- package/projects/widgets-playground/src/app/app.component.spec.ts +31 -0
- package/projects/widgets-playground/src/app/app.component.ts +31 -0
- package/projects/widgets-playground/src/app/app.module.ts +37 -0
- package/projects/widgets-playground/src/assets/.gitkeep +0 -0
- package/projects/widgets-playground/src/assets/icons/already_upgraded.png +0 -0
- package/projects/widgets-playground/src/assets/icons/check2_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/check_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/expand_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/issue_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/menu_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/ready_to_upgrade.png +0 -0
- package/projects/widgets-playground/src/assets/icons/search_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/site.png +0 -0
- package/projects/widgets-playground/src/assets/icons/user.png +0 -0
- package/projects/widgets-playground/src/assets/icons/warning_icon.png +0 -0
- package/projects/widgets-playground/src/favicon.ico +0 -0
- package/projects/widgets-playground/src/index.html +13 -0
- package/projects/widgets-playground/src/main.ts +7 -0
- package/projects/widgets-playground/src/styles.scss +23 -0
- package/projects/widgets-playground/tsconfig.app.json +14 -0
- package/projects/widgets-playground/tsconfig.spec.json +14 -0
- package/proxy.conf.js +23 -0
- package/tsconfig.json +46 -0
- package/esm2020/lib/widgets.component.mjs +0 -22
- package/esm2020/lib/widgets.module.mjs +0 -21
- package/esm2020/lib/widgets.service.mjs +0 -14
- package/esm2020/public-api.mjs +0 -7
- package/esm2020/tuki-io-tuki-widgets.mjs +0 -5
- package/esm2020/user-device-manage/public-api.mjs +0 -9
- package/esm2020/user-device-manage/src/app.constants.mjs +0 -95
- package/esm2020/user-device-manage/src/classes/device.mjs +0 -85
- package/esm2020/user-device-manage/src/classes/line-association-interface.mjs +0 -2
- package/esm2020/user-device-manage/src/classes/line-association.mjs +0 -121
- package/esm2020/user-device-manage/src/classes/line-call-info-display.mjs +0 -10
- package/esm2020/user-device-manage/src/classes/line-directory.mjs +0 -27
- package/esm2020/user-device-manage/src/classes/line.mjs +0 -18
- package/esm2020/user-device-manage/src/classes/notification.mjs +0 -32
- package/esm2020/user-device-manage/src/classes/recording-options.mjs +0 -7
- package/esm2020/user-device-manage/src/classes/simplified-user.mjs +0 -111
- package/esm2020/user-device-manage/src/classes/site-defaults.mjs +0 -21
- package/esm2020/user-device-manage/src/classes/translation-pattern.mjs +0 -32
- package/esm2020/user-device-manage/src/classes/types.mjs +0 -24
- package/esm2020/user-device-manage/src/common-functions.mjs +0 -19
- package/esm2020/user-device-manage/src/confirm-dialog/info-dialog.component.mjs +0 -34
- package/esm2020/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.mjs +0 -31
- package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.mjs +0 -16
- package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.mjs +0 -64
- package/esm2020/user-device-manage/src/device-associated-line/device-associated-line.component.mjs +0 -179
- package/esm2020/user-device-manage/src/device-list/device-list.component.mjs +0 -24
- package/esm2020/user-device-manage/src/device-manage-widget.component.mjs +0 -335
- package/esm2020/user-device-manage/src/environments/environment.mjs +0 -11
- package/esm2020/user-device-manage/src/interseptors/auth.interceptor.mjs +0 -36
- package/esm2020/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +0 -74
- package/esm2020/user-device-manage/src/material.module.mjs +0 -192
- package/esm2020/user-device-manage/src/notifications/notification.component.mjs +0 -35
- package/esm2020/user-device-manage/src/services/api.service.mjs +0 -79
- package/esm2020/user-device-manage/src/services/device.service.mjs +0 -83
- package/esm2020/user-device-manage/src/services/dns.service.mjs +0 -104
- package/esm2020/user-device-manage/src/services/line.service.mjs +0 -76
- package/esm2020/user-device-manage/src/services/notification.service.mjs +0 -62
- package/esm2020/user-device-manage/src/services/removeKynFromIBM.service.mjs +0 -25
- package/esm2020/user-device-manage/src/services/site-settings.service.mjs +0 -70
- package/esm2020/user-device-manage/src/services/sorting-utils.service.mjs +0 -197
- package/esm2020/user-device-manage/src/services/user.service.mjs +0 -243
- package/esm2020/user-device-manage/src/services/utils.service.mjs +0 -87
- package/esm2020/user-device-manage/src/services/validation.service.mjs +0 -760
- package/esm2020/user-device-manage/src/user-device-manage.module.mjs +0 -107
- package/esm2020/user-device-manage/src/utils/app-loader/app-loader.mjs +0 -14
- package/esm2020/user-device-manage/tuki-io-tuki-widgets-user-device-manage.mjs +0 -5
- package/esm2020/user-manage/public-api.mjs +0 -7
- package/esm2020/user-manage/src/app.constants.mjs +0 -50
- package/esm2020/user-manage/src/classes/device.mjs +0 -37
- package/esm2020/user-manage/src/classes/line-association-interface.mjs +0 -2
- package/esm2020/user-manage/src/classes/line-association.mjs +0 -110
- package/esm2020/user-manage/src/classes/line-call-info-display.mjs +0 -10
- package/esm2020/user-manage/src/classes/line-directory.mjs +0 -27
- package/esm2020/user-manage/src/classes/line.mjs +0 -18
- package/esm2020/user-manage/src/classes/notification.mjs +0 -32
- package/esm2020/user-manage/src/classes/pagination.mjs +0 -8
- package/esm2020/user-manage/src/classes/recording-options.mjs +0 -7
- package/esm2020/user-manage/src/classes/simplified-user.mjs +0 -109
- package/esm2020/user-manage/src/classes/table-data.mjs +0 -2
- package/esm2020/user-manage/src/classes/translation-pattern.mjs +0 -32
- package/esm2020/user-manage/src/classes/user-list.mjs +0 -10
- package/esm2020/user-manage/src/common-functions.mjs +0 -19
- package/esm2020/user-manage/src/device-list/device-list.component.mjs +0 -24
- package/esm2020/user-manage/src/environments/environment.mjs +0 -11
- package/esm2020/user-manage/src/interseptors/auth.interceptor.mjs +0 -36
- package/esm2020/user-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +0 -74
- package/esm2020/user-manage/src/material.module.mjs +0 -188
- package/esm2020/user-manage/src/notifications/notification.component.mjs +0 -35
- package/esm2020/user-manage/src/removeKynFromIBM.service.mjs +0 -25
- package/esm2020/user-manage/src/services/api.service.mjs +0 -79
- package/esm2020/user-manage/src/services/dns.service.mjs +0 -110
- package/esm2020/user-manage/src/services/line.service.mjs +0 -34
- package/esm2020/user-manage/src/services/notification.service.mjs +0 -62
- package/esm2020/user-manage/src/services/removeKynFromIBM.service.mjs +0 -25
- package/esm2020/user-manage/src/services/site-settings.service.mjs +0 -36
- package/esm2020/user-manage/src/services/sorting-utils.service.mjs +0 -197
- package/esm2020/user-manage/src/services/user.service.mjs +0 -207
- package/esm2020/user-manage/src/services/users-search.service.mjs +0 -50
- package/esm2020/user-manage/src/services/utils.service.mjs +0 -73
- package/esm2020/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.mjs +0 -65
- package/esm2020/user-manage/src/user-calling/user-calling.component.mjs +0 -78
- package/esm2020/user-manage/src/user-info/user-info.component.mjs +0 -20
- package/esm2020/user-manage/src/user-manage-widget.component.mjs +0 -208
- package/esm2020/user-manage/src/user-manage.module.mjs +0 -99
- package/esm2020/user-manage/src/utils/app-loader/app-loader.mjs +0 -14
- package/esm2020/user-manage/src/utils/pagination/pagination.component.mjs +0 -43
- package/esm2020/user-manage/tuki-io-tuki-widgets-user-manage.mjs +0 -5
- package/esm2020/users-list/public-api.mjs +0 -9
- package/esm2020/users-list/src/app.constants.mjs +0 -54
- package/esm2020/users-list/src/classes/app-location.mjs +0 -32
- package/esm2020/users-list/src/classes/device.mjs +0 -7
- package/esm2020/users-list/src/classes/line.mjs +0 -18
- package/esm2020/users-list/src/classes/move-user.mjs +0 -178
- package/esm2020/users-list/src/classes/notification.mjs +0 -31
- package/esm2020/users-list/src/classes/pagination.mjs +0 -8
- package/esm2020/users-list/src/classes/simlified-user.mjs +0 -50
- package/esm2020/users-list/src/classes/table-data.mjs +0 -2
- package/esm2020/users-list/src/classes/user-list.mjs +0 -14
- package/esm2020/users-list/src/material.module.mjs +0 -209
- package/esm2020/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.mjs +0 -38
- package/esm2020/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.mjs +0 -23
- package/esm2020/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.mjs +0 -189
- package/esm2020/users-list/src/move-user-wizard/move-user-wizard.component.mjs +0 -38
- package/esm2020/users-list/src/services/api-webex.service.mjs +0 -18
- package/esm2020/users-list/src/services/api.service.mjs +0 -78
- package/esm2020/users-list/src/services/dns.service.mjs +0 -120
- package/esm2020/users-list/src/services/events-communication.service.mjs +0 -14
- package/esm2020/users-list/src/services/move-user.service.mjs +0 -53
- package/esm2020/users-list/src/services/notification.service.mjs +0 -62
- package/esm2020/users-list/src/services/removeKynFromIBM.service.mjs +0 -25
- package/esm2020/users-list/src/services/site-settings.service.mjs +0 -27
- package/esm2020/users-list/src/services/user.service.mjs +0 -142
- package/esm2020/users-list/src/services/users-search.service.mjs +0 -122
- package/esm2020/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.mjs +0 -34
- package/esm2020/users-list/src/users-list.component.mjs +0 -287
- package/esm2020/users-list/src/users-list.module.mjs +0 -92
- package/esm2020/users-list/src/utils/app-loader/app-loader.mjs +0 -14
- package/esm2020/users-list/src/utils/common-functions.mjs +0 -32
- package/esm2020/users-list/src/utils/pagination/pagination.component.mjs +0 -43
- package/esm2020/users-list/src/utils/utils.service.mjs +0 -73
- package/esm2020/users-list/tuki-io-tuki-widgets-users-list.mjs +0 -5
- package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs +0 -3402
- package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs.map +0 -1
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +0 -2124
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +0 -1
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +0 -1994
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +0 -1
- package/fesm2015/tuki-io-tuki-widgets.mjs +0 -63
- package/fesm2015/tuki-io-tuki-widgets.mjs.map +0 -1
- package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs +0 -3364
- package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs.map +0 -1
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +0 -2107
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +0 -1
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +0 -1973
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +0 -1
- package/fesm2020/tuki-io-tuki-widgets.mjs +0 -63
- package/fesm2020/tuki-io-tuki-widgets.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/widgets.component.d.ts +0 -8
- package/lib/widgets.module.d.ts +0 -7
- package/lib/widgets.service.d.ts +0 -6
- package/user-device-manage/index.d.ts +0 -5
- package/user-device-manage/src/app.constants.d.ts +0 -74
- package/user-device-manage/src/classes/device.d.ts +0 -233
- package/user-device-manage/src/classes/line-association-interface.d.ts +0 -45
- package/user-device-manage/src/classes/line-association.d.ts +0 -62
- package/user-device-manage/src/classes/line-call-info-display.d.ts +0 -11
- package/user-device-manage/src/classes/line-directory.d.ts +0 -15
- package/user-device-manage/src/classes/line.d.ts +0 -140
- package/user-device-manage/src/classes/notification.d.ts +0 -18
- package/user-device-manage/src/classes/recording-options.d.ts +0 -5
- package/user-device-manage/src/classes/simplified-user.d.ts +0 -52
- package/user-device-manage/src/classes/site-defaults.d.ts +0 -146
- package/user-device-manage/src/classes/translation-pattern.d.ts +0 -19
- package/user-device-manage/src/classes/types.d.ts +0 -19
- package/user-device-manage/src/common-functions.d.ts +0 -1
- package/user-device-manage/src/confirm-dialog/info-dialog.component.d.ts +0 -20
- package/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.d.ts +0 -15
- package/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.d.ts +0 -7
- package/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.d.ts +0 -24
- package/user-device-manage/src/device-associated-line/device-associated-line.component.d.ts +0 -89
- package/user-device-manage/src/device-list/device-list.component.d.ts +0 -11
- package/user-device-manage/src/device-manage-widget.component.d.ts +0 -71
- package/user-device-manage/src/environments/environment.d.ts +0 -9
- package/user-device-manage/src/interseptors/auth.interceptor.d.ts +0 -9
- package/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +0 -35
- package/user-device-manage/src/material.module.d.ts +0 -29
- package/user-device-manage/src/notifications/notification.component.d.ts +0 -19
- package/user-device-manage/src/services/api.service.d.ts +0 -20
- package/user-device-manage/src/services/device.service.d.ts +0 -21
- package/user-device-manage/src/services/dns.service.d.ts +0 -14
- package/user-device-manage/src/services/line.service.d.ts +0 -33
- package/user-device-manage/src/services/notification.service.d.ts +0 -18
- package/user-device-manage/src/services/removeKynFromIBM.service.d.ts +0 -8
- package/user-device-manage/src/services/site-settings.service.d.ts +0 -25
- package/user-device-manage/src/services/sorting-utils.service.d.ts +0 -26
- package/user-device-manage/src/services/user.service.d.ts +0 -51
- package/user-device-manage/src/services/utils.service.d.ts +0 -10
- package/user-device-manage/src/services/validation.service.d.ts +0 -165
- package/user-device-manage/src/user-device-manage.module.d.ts +0 -22
- package/user-device-manage/src/utils/app-loader/app-loader.d.ts +0 -6
- package/user-manage/index.d.ts +0 -5
- package/user-manage/src/app.constants.d.ts +0 -29
- package/user-manage/src/classes/device.d.ts +0 -203
- package/user-manage/src/classes/line-association-interface.d.ts +0 -40
- package/user-manage/src/classes/line-association.d.ts +0 -55
- package/user-manage/src/classes/line-call-info-display.d.ts +0 -11
- package/user-manage/src/classes/line-directory.d.ts +0 -16
- package/user-manage/src/classes/line.d.ts +0 -140
- package/user-manage/src/classes/notification.d.ts +0 -18
- package/user-manage/src/classes/pagination.d.ts +0 -13
- package/user-manage/src/classes/recording-options.d.ts +0 -5
- package/user-manage/src/classes/simplified-user.d.ts +0 -50
- package/user-manage/src/classes/table-data.d.ts +0 -5
- package/user-manage/src/classes/translation-pattern.d.ts +0 -18
- package/user-manage/src/classes/user-list.d.ts +0 -34
- package/user-manage/src/common-functions.d.ts +0 -1
- package/user-manage/src/device-list/device-list.component.d.ts +0 -11
- package/user-manage/src/environments/environment.d.ts +0 -9
- package/user-manage/src/interseptors/auth.interceptor.d.ts +0 -9
- package/user-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +0 -35
- package/user-manage/src/material.module.d.ts +0 -28
- package/user-manage/src/notifications/notification.component.d.ts +0 -19
- package/user-manage/src/removeKynFromIBM.service.d.ts +0 -8
- package/user-manage/src/services/api.service.d.ts +0 -21
- package/user-manage/src/services/dns.service.d.ts +0 -14
- package/user-manage/src/services/line.service.d.ts +0 -17
- package/user-manage/src/services/notification.service.d.ts +0 -18
- package/user-manage/src/services/removeKynFromIBM.service.d.ts +0 -8
- package/user-manage/src/services/site-settings.service.d.ts +0 -9
- package/user-manage/src/services/sorting-utils.service.d.ts +0 -26
- package/user-manage/src/services/user.service.d.ts +0 -43
- package/user-manage/src/services/users-search.service.d.ts +0 -25
- package/user-manage/src/services/utils.service.d.ts +0 -9
- package/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.d.ts +0 -24
- package/user-manage/src/user-calling/user-calling.component.d.ts +0 -30
- package/user-manage/src/user-info/user-info.component.d.ts +0 -9
- package/user-manage/src/user-manage-widget.component.d.ts +0 -45
- package/user-manage/src/user-manage.module.d.ts +0 -21
- package/user-manage/src/utils/app-loader/app-loader.d.ts +0 -6
- package/user-manage/src/utils/pagination/pagination.component.d.ts +0 -18
- package/users-list/index.d.ts +0 -5
- package/users-list/src/app.constants.d.ts +0 -36
- package/users-list/src/classes/app-location.d.ts +0 -17
- package/users-list/src/classes/device.d.ts +0 -224
- package/users-list/src/classes/line.d.ts +0 -140
- package/users-list/src/classes/move-user.d.ts +0 -85
- package/users-list/src/classes/notification.d.ts +0 -18
- package/users-list/src/classes/pagination.d.ts +0 -13
- package/users-list/src/classes/simlified-user.d.ts +0 -25
- package/users-list/src/classes/table-data.d.ts +0 -5
- package/users-list/src/classes/user-list.d.ts +0 -36
- package/users-list/src/material.module.d.ts +0 -31
- package/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.d.ts +0 -21
- package/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.d.ts +0 -12
- package/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.d.ts +0 -55
- package/users-list/src/move-user-wizard/move-user-wizard.component.d.ts +0 -17
- package/users-list/src/services/api-webex.service.d.ts +0 -8
- package/users-list/src/services/api.service.d.ts +0 -21
- package/users-list/src/services/dns.service.d.ts +0 -18
- package/users-list/src/services/events-communication.service.d.ts +0 -8
- package/users-list/src/services/move-user.service.d.ts +0 -17
- package/users-list/src/services/notification.service.d.ts +0 -18
- package/users-list/src/services/removeKynFromIBM.service.d.ts +0 -8
- package/users-list/src/services/site-settings.service.d.ts +0 -11
- package/users-list/src/services/user.service.d.ts +0 -35
- package/users-list/src/services/users-search.service.d.ts +0 -34
- package/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.d.ts +0 -20
- package/users-list/src/users-list.component.d.ts +0 -60
- package/users-list/src/users-list.module.d.ts +0 -18
- package/users-list/src/utils/app-loader/app-loader.d.ts +0 -6
- package/users-list/src/utils/common-functions.d.ts +0 -2
- package/users-list/src/utils/pagination/pagination.component.d.ts +0 -18
- package/users-list/src/utils/utils.service.d.ts +0 -9
- /package/{user-device-manage/public-api.d.ts → projects/tuki/widgets/user-device-manage/public-api.ts} +0 -0
- /package/{user-manage/public-api.d.ts → projects/tuki/widgets/user-manage/public-api.ts} +0 -0
- /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>
|