@tuki-io/tuki-widgets 0.0.73 → 0.0.75
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 +25 -24
- package/angular.json +141 -0
- package/package.json +48 -65
- package/projects/tuki/widgets/README.md +24 -0
- package/projects/tuki/widgets/di2mt/api/api.endpoints.ts +26 -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/details_d_icon.svg +3 -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/{di2mt/public-api.d.ts → projects/tuki/widgets/di2mt/public-api.ts} +27 -12
- 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 +79 -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 +244 -0
- package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.ts +28 -0
- package/projects/tuki/widgets/di2mt/shared/constants/app.constants.ts +96 -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 +15 -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/progress-bar/progress-bar.component.html +3 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.scss +37 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.ts +40 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.html +158 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.scss +430 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.ts +362 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.module.ts +33 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.service.ts +102 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/types/user-upgrade.ts +22 -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/{di2mt/widgets/upgrade-overview/types/upgrade-overview.d.ts → projects/tuki/widgets/di2mt/widgets/upgrade-overview/types/upgrade-overview.ts} +58 -56
- 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/{di2mt/widgets/user-upgrade/types/user-upgrade.d.ts → projects/tuki/widgets/di2mt/widgets/user-upgrade/types/user-upgrade.ts} +19 -16
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.html +186 -0
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.scss +345 -0
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.ts +313 -0
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.module.ts +34 -0
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.service.ts +79 -0
- package/projects/tuki/widgets/karma.conf.js +44 -0
- package/projects/tuki/widgets/ng-package.json +10 -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} +7 -3
- 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/{user-device-manage/public-api.d.ts → projects/tuki/widgets/user-device-manage/public-api.ts} +8 -8
- 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/{user-manage/public-api.d.ts → projects/tuki/widgets/user-manage/public-api.ts} +6 -6
- 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 +7 -0
- package/{users-list/public-api.d.ts → projects/tuki/widgets/users-list/public-api.ts} +8 -8
- 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 +139 -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 +109 -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 +43 -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/di2mt/api/api.endpoints.d.ts +0 -20
- package/di2mt/index.d.ts +0 -5
- package/di2mt/shared/components/card/card.component.d.ts +0 -6
- package/di2mt/shared/components/chart-card/chart-card.component.d.ts +0 -22
- package/di2mt/shared/components/stat-card/stat-card.component.d.ts +0 -14
- package/di2mt/shared/components/status-list-card/status-list-card.component.d.ts +0 -7
- package/di2mt/shared/components/summary-card/summary-card.component.d.ts +0 -9
- package/di2mt/shared/components/table-filters/table-filters.component.d.ts +0 -14
- package/di2mt/shared/material.module.d.ts +0 -15
- package/di2mt/shared/services/api.service.d.ts +0 -20
- package/di2mt/shared/shared.module.d.ts +0 -16
- package/di2mt/shared/types/constants.d.ts +0 -7
- package/di2mt/shared/types/data-table.d.ts +0 -5
- package/di2mt/shared/types/table/filter.d.ts +0 -16
- package/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.d.ts +0 -48
- package/di2mt/widgets/site-upgrade/site-upgrade.module.d.ts +0 -12
- package/di2mt/widgets/site-upgrade/site-upgrade.service.d.ts +0 -12
- package/di2mt/widgets/site-upgrade/types/user-upgrade.d.ts +0 -14
- package/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.d.ts +0 -19
- package/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.d.ts +0 -19
- package/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.d.ts +0 -18
- package/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.d.ts +0 -19
- package/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.d.ts +0 -19
- package/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.d.ts +0 -15
- package/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.d.ts +0 -18
- package/di2mt/widgets/upgrade-overview/upgrade-overview.module.d.ts +0 -15
- package/di2mt/widgets/upgrade-overview/upgrade-overview.service.d.ts +0 -17
- package/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.d.ts +0 -49
- package/di2mt/widgets/user-upgrade/user-upgrade.module.d.ts +0 -12
- package/di2mt/widgets/user-upgrade/user-upgrade.service.d.ts +0 -14
- package/esm2020/di2mt/api/api.endpoints.mjs +0 -21
- package/esm2020/di2mt/public-api.mjs +0 -23
- package/esm2020/di2mt/shared/components/card/card.component.mjs +0 -13
- package/esm2020/di2mt/shared/components/chart-card/chart-card.component.mjs +0 -62
- package/esm2020/di2mt/shared/components/stat-card/stat-card.component.mjs +0 -47
- package/esm2020/di2mt/shared/components/status-list-card/status-list-card.component.mjs +0 -17
- package/esm2020/di2mt/shared/components/summary-card/summary-card.component.mjs +0 -36
- package/esm2020/di2mt/shared/components/table-filters/table-filters.component.mjs +0 -37
- package/esm2020/di2mt/shared/material.module.mjs +0 -76
- package/esm2020/di2mt/shared/services/api.service.mjs +0 -86
- package/esm2020/di2mt/shared/shared.module.mjs +0 -61
- package/esm2020/di2mt/shared/types/constants.mjs +0 -12
- package/esm2020/di2mt/shared/types/data-table.mjs +0 -2
- package/esm2020/di2mt/shared/types/table/filter.mjs +0 -2
- package/esm2020/di2mt/tuki-io-tuki-widgets-di2mt.mjs +0 -5
- package/esm2020/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.mjs +0 -182
- package/esm2020/di2mt/widgets/site-upgrade/site-upgrade.module.mjs +0 -40
- package/esm2020/di2mt/widgets/site-upgrade/site-upgrade.service.mjs +0 -43
- package/esm2020/di2mt/widgets/site-upgrade/types/user-upgrade.mjs +0 -3
- package/esm2020/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.mjs +0 -64
- package/esm2020/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.mjs +0 -64
- package/esm2020/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.mjs +0 -68
- package/esm2020/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.mjs +0 -45
- package/esm2020/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.mjs +0 -45
- package/esm2020/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.mjs +0 -64
- package/esm2020/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.mjs +0 -74
- package/esm2020/di2mt/widgets/upgrade-overview/types/upgrade-overview.mjs +0 -2
- package/esm2020/di2mt/widgets/upgrade-overview/upgrade-overview.module.mjs +0 -59
- package/esm2020/di2mt/widgets/upgrade-overview/upgrade-overview.service.mjs +0 -82
- package/esm2020/di2mt/widgets/user-upgrade/types/user-upgrade.mjs +0 -3
- package/esm2020/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.mjs +0 -197
- package/esm2020/di2mt/widgets/user-upgrade/user-upgrade.module.mjs +0 -40
- package/esm2020/di2mt/widgets/user-upgrade/user-upgrade.service.mjs +0 -58
- 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-di2mt.mjs +0 -1469
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +0 -1
- 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-di2mt.mjs +0 -1460
- package/fesm2020/tuki-io-tuki-widgets-di2mt.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/{di2mt → projects/tuki/widgets/di2mt}/README.md +0 -0
|
@@ -1,1460 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, inject, Component, Input, EventEmitter, Output, NgModule } from '@angular/core';
|
|
3
|
-
import { SelectionModel } from '@angular/cdk/collections';
|
|
4
|
-
import * as i4$1 from '@angular/material/table';
|
|
5
|
-
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
|
6
|
-
import { catchError, of, map, Subject, takeUntil } from 'rxjs';
|
|
7
|
-
import * as i1 from '@angular/common/http';
|
|
8
|
-
import { HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
9
|
-
import * as i1$1 from '@angular/common';
|
|
10
|
-
import { CommonModule } from '@angular/common';
|
|
11
|
-
import * as i2 from '@angular/material/icon';
|
|
12
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
13
|
-
import * as i3 from '@angular/material/form-field';
|
|
14
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
15
|
-
import * as i4 from '@angular/material/input';
|
|
16
|
-
import { MatInputModule } from '@angular/material/input';
|
|
17
|
-
import * as i5 from '@angular/material/select';
|
|
18
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
19
|
-
import * as i6 from '@angular/material/core';
|
|
20
|
-
import * as i5$1 from '@angular/material/button';
|
|
21
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
22
|
-
import * as i6$1 from '@angular/material/checkbox';
|
|
23
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
24
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
25
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
26
|
-
import * as i1$2 from 'ng-apexcharts';
|
|
27
|
-
import { NgApexchartsModule } from 'ng-apexcharts';
|
|
28
|
-
|
|
29
|
-
const API = {
|
|
30
|
-
OVERVIEW: {
|
|
31
|
-
GET_UPGRADE_PRECONDITIONS: '/api/webex-upgrade/customers/:customerId/preconditions/fetch',
|
|
32
|
-
GET_SITE_INFRASTRUCTURE: '/api/webex-upgrade/customers/:customerId/infra/fetch',
|
|
33
|
-
GET_USERS_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/users/upgrade/fetch',
|
|
34
|
-
GET_SITES_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/sites/upgrade/fetch',
|
|
35
|
-
GET_USERS_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/users/readiness/fetch',
|
|
36
|
-
GET_SITES_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/sites/readiness/fetch'
|
|
37
|
-
},
|
|
38
|
-
USER_UPGRADE: {
|
|
39
|
-
GET_USERS_UPGRADE_DATA: '/api/webex-upgrade/customers/:customerId/user-upgrade',
|
|
40
|
-
GET_USERS_UPGRADE_STATUS_COUNTS: '/api/webex-upgrade/customers/:customerId/user-upgrades/status-counts',
|
|
41
|
-
UPGRADE_USER: '/api/migration/webex/sites/:siteId/users/:userId'
|
|
42
|
-
},
|
|
43
|
-
SITE_UPGRADE: {
|
|
44
|
-
GET_SITES_UPGRADE_DATA: '/api/webex-upgrade/customers/:customerId/site-upgrades',
|
|
45
|
-
GET_SITES_UPGRADE_STATUS_COUNTS: '/api/webex-upgrade/customers/:customerId/site-upgrades/status-counts',
|
|
46
|
-
UPGRADE_SITE: '/api/migration/webex/sites/:siteId'
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
class APIService {
|
|
51
|
-
constructor(httpClient) {
|
|
52
|
-
this.httpClient = httpClient;
|
|
53
|
-
this.apiUrl = window.location.protocol + '//' + window.location.hostname + '/dcp';
|
|
54
|
-
this.token = 'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBjb3JyZW5ldC5jb20iLCJyb2xlcyI6IlNVUEVSX1VTRVIiLCJpYXQiOjE3NTUwODUyMzgsImV4cCI6MTc1NTEwMzIzOH0.X1CKx-OBZvSs7Bzr_4SWW2ulBgHNkYZrmVuv6V7FZyo';
|
|
55
|
-
// this.apiUrl = window.location.protocol + '//' + window.location.host + '/dcp';
|
|
56
|
-
this.apiUrl = 'https://dev.tuki.io/webex';
|
|
57
|
-
// this.apiUrl = 'http://localhost:8088/dcp';
|
|
58
|
-
}
|
|
59
|
-
fetch(url, params, cache) {
|
|
60
|
-
const headers = this.getHeaders(cache);
|
|
61
|
-
params = params || {};
|
|
62
|
-
return this.httpClient.get(this.apiUrl + url, { params: this.prepareEncodedParams(params), headers });
|
|
63
|
-
}
|
|
64
|
-
post(url, body, params = {}) {
|
|
65
|
-
body = body || null;
|
|
66
|
-
const headers = this.getHeaders();
|
|
67
|
-
return this.httpClient.post(this.apiUrl + url, body, { params: this.prepareEncodedParams(params), headers });
|
|
68
|
-
}
|
|
69
|
-
// use when response extended data is necessary:
|
|
70
|
-
postExtended(url, body = null, params = {}, headers = {}) {
|
|
71
|
-
headers = headers || this.getHeaders();
|
|
72
|
-
return this.httpClient.post(this.apiUrl + url, body, {
|
|
73
|
-
headers,
|
|
74
|
-
observe: 'response',
|
|
75
|
-
params: this.prepareEncodedParams(params)
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
put(url, body = null, params = {}) {
|
|
79
|
-
const headers = this.getHeaders();
|
|
80
|
-
return this.httpClient.put(this.apiUrl + url, body, { headers, params: this.prepareEncodedParams(params) });
|
|
81
|
-
}
|
|
82
|
-
delete(url, params = {}) {
|
|
83
|
-
const headers = this.getHeaders();
|
|
84
|
-
return this.httpClient.delete(this.apiUrl + url, { headers, params: this.prepareEncodedParams(params) });
|
|
85
|
-
}
|
|
86
|
-
fetchPagination(url, pageSize, pageNumber, additionalParams = {}, cache) {
|
|
87
|
-
const copyAdditionalParams = JSON.parse(JSON.stringify(additionalParams));
|
|
88
|
-
const params = Object.assign(copyAdditionalParams, { size: pageSize.toString(), page: pageNumber.toString() });
|
|
89
|
-
return this.fetch(url, params, cache);
|
|
90
|
-
}
|
|
91
|
-
prepareEncodedParams(params) {
|
|
92
|
-
const result = {};
|
|
93
|
-
if (!params) {
|
|
94
|
-
return {};
|
|
95
|
-
}
|
|
96
|
-
for (const key of Object.keys(params)) {
|
|
97
|
-
if (params[key]) {
|
|
98
|
-
const stringParam = params[key].toString();
|
|
99
|
-
result[key] = stringParam.includes('+') ? encodeURIComponent(stringParam) : stringParam;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return result;
|
|
103
|
-
}
|
|
104
|
-
getHeaders(cache) {
|
|
105
|
-
let headers = new HttpHeaders();
|
|
106
|
-
if (cache) {
|
|
107
|
-
headers = headers.append('_Cache', 'true ');
|
|
108
|
-
}
|
|
109
|
-
const token = this.token || this.getParameterByName('token');
|
|
110
|
-
headers = headers.append('Authorization', 'Bearer ' + token);
|
|
111
|
-
return headers;
|
|
112
|
-
}
|
|
113
|
-
getParameterByName(name, url = window.location.href) {
|
|
114
|
-
name = name.replace(/[\[\]]/g, '\\$&');
|
|
115
|
-
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url);
|
|
116
|
-
if (!results)
|
|
117
|
-
return null;
|
|
118
|
-
if (!results[2])
|
|
119
|
-
return '';
|
|
120
|
-
return decodeURIComponent(results[2].replace(/\+/g, ' '));
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
APIService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
124
|
-
APIService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, providedIn: 'root' });
|
|
125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, decorators: [{
|
|
126
|
-
type: Injectable,
|
|
127
|
-
args: [{
|
|
128
|
-
providedIn: 'root'
|
|
129
|
-
}]
|
|
130
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
131
|
-
|
|
132
|
-
class UserUpgradeService {
|
|
133
|
-
constructor() {
|
|
134
|
-
this.apiService = inject(APIService);
|
|
135
|
-
}
|
|
136
|
-
// TODO: Impl the user upgrade logic here
|
|
137
|
-
bulkUpgrade(users) {
|
|
138
|
-
const entities = users.map(record => ({ cucmId: record.cucmId, entityId: record.userId }));
|
|
139
|
-
const customerId = users[0].customerId;
|
|
140
|
-
const siteId = users[0].siteId;
|
|
141
|
-
const body = {
|
|
142
|
-
customerId,
|
|
143
|
-
siteId,
|
|
144
|
-
entities: {
|
|
145
|
-
'PERSON': entities
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
console.log(body);
|
|
149
|
-
// This is not done yet...
|
|
150
|
-
return this.apiService.post(API.USER_UPGRADE.UPGRADE_USER.replace(':siteId', siteId).replace(':userId', users[0].userId), body, {}).pipe(catchError((err) => of(err)));
|
|
151
|
-
}
|
|
152
|
-
getUserUpgradeStatusCounts() {
|
|
153
|
-
return this.apiService.fetch(API.USER_UPGRADE.GET_USERS_UPGRADE_STATUS_COUNTS.replace(':customerId', this.customerId));
|
|
154
|
-
}
|
|
155
|
-
getUserUpgradeRecords() {
|
|
156
|
-
return this.apiService.fetch(API.USER_UPGRADE.GET_USERS_UPGRADE_DATA.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
157
|
-
return resp.content;
|
|
158
|
-
// This was added because of mapping issues with BE resp;
|
|
159
|
-
// return resp.content.map((record: UserUpgradeRecord) => ({
|
|
160
|
-
// userId: record.userId,
|
|
161
|
-
// userName: record.userName,
|
|
162
|
-
// customerId: record.customerId,
|
|
163
|
-
// siteId: record.siteId,
|
|
164
|
-
// siteName: record.siteName,
|
|
165
|
-
// devices: record.devices,
|
|
166
|
-
// cucmId: record.cucmId,
|
|
167
|
-
// primaryExtension: record.primaryExtension,
|
|
168
|
-
// deviceStatus: record.deviceStatus,
|
|
169
|
-
// dialPlanStatus: record.dialPlanStatus,
|
|
170
|
-
// dependenciesStatus: record.dependenciesStatus,
|
|
171
|
-
// upgradeStatus: record.upgradeStatus
|
|
172
|
-
// } as UserUpgradeRecord));
|
|
173
|
-
}));
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
UserUpgradeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
177
|
-
UserUpgradeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, providedIn: 'root' });
|
|
178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, decorators: [{
|
|
179
|
-
type: Injectable,
|
|
180
|
-
args: [{
|
|
181
|
-
providedIn: 'root'
|
|
182
|
-
}]
|
|
183
|
-
}] });
|
|
184
|
-
|
|
185
|
-
const STATUS_ENTRIES = {
|
|
186
|
-
READY: 'Ready',
|
|
187
|
-
NOT_READY: 'Not Ready',
|
|
188
|
-
PARTIAL_READY: 'Partial Ready',
|
|
189
|
-
FAILED: 'Failed',
|
|
190
|
-
COMPLETED: 'Completed'
|
|
191
|
-
};
|
|
192
|
-
const DEPENDENCIES_STATUS = {
|
|
193
|
-
DEPENDENCIES_FOUND: 'Dependencies found',
|
|
194
|
-
NO_DEPENDENCIES: 'No dependencies',
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
class SummaryCardComponent {
|
|
198
|
-
constructor() {
|
|
199
|
-
this.value = 41;
|
|
200
|
-
this.status = 'Ready';
|
|
201
|
-
}
|
|
202
|
-
getStatusClass(status) {
|
|
203
|
-
switch (status?.toLowerCase()) {
|
|
204
|
-
case 'ready':
|
|
205
|
-
return 'ready';
|
|
206
|
-
case 'not ready':
|
|
207
|
-
return 'not-ready';
|
|
208
|
-
case 'failed':
|
|
209
|
-
return 'failed';
|
|
210
|
-
case 'completed':
|
|
211
|
-
return 'completed';
|
|
212
|
-
default:
|
|
213
|
-
return 'not-ready';
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
SummaryCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SummaryCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
218
|
-
SummaryCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SummaryCardComponent, selector: "tk-summary-card", inputs: { value: "value", status: "status", description: "description" }, ngImport: i0, template: "<article class=\"summary-card\">\r\n <header class=\"summary-card__header\">\r\n <h2>{{ value }}</h2>\r\n </header>\r\n <div class=\"summary__card-description\">\r\n <span>{{ description }}</span>\r\n <div class=\"summary__card-status-wrapper\">\r\n <span class=\"summary__card-status-indicator\" [ngClass]=\"getStatusClass(status)\"></span>\r\n <span>{{ status }}</span>\r\n </div>\r\n </div>\r\n</article>", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";:host{display:block;height:100%;box-sizing:border-box;flex:1}.summary-card{font-family:Inter,Inter,sans-serif;background-color:#fff;border-radius:1rem;padding:1rem;border:1px solid hsl(0,0%,50%);max-width:100%;height:100%;display:flex;box-sizing:border-box;flex-direction:column;gap:.25rem}.summary-card__header{position:relative;display:flex;align-items:center;justify-content:space-between}.summary-card__header h2{font-size:28px;font-weight:500;margin:0}.summary__card-status-wrapper{display:flex;align-items:center;font-size:14px;gap:.5rem}.summary__card-status-wrapper .summary__card-status-indicator{width:8px;height:8px;border-radius:50%}.summary__card-status-wrapper .summary__card-status-indicator.ready{background-color:#1c3893}.summary__card-status-wrapper .summary__card-status-indicator.partial-ready{background-color:#f8cd00}.summary__card-status-wrapper .summary__card-status-indicator.not-ready{background-color:#9e9e9e}.summary__card-status-wrapper .summary__card-status-indicator.completed{background-color:#1d805f}.summary__card-status-wrapper .summary__card-status-indicator.failed{background-color:#f23933}.summary__card-description{font-size:14px;color:#333;display:flex;align-items:center;justify-content:space-between}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SummaryCardComponent, decorators: [{
|
|
220
|
-
type: Component,
|
|
221
|
-
args: [{ selector: 'tk-summary-card', template: "<article class=\"summary-card\">\r\n <header class=\"summary-card__header\">\r\n <h2>{{ value }}</h2>\r\n </header>\r\n <div class=\"summary__card-description\">\r\n <span>{{ description }}</span>\r\n <div class=\"summary__card-status-wrapper\">\r\n <span class=\"summary__card-status-indicator\" [ngClass]=\"getStatusClass(status)\"></span>\r\n <span>{{ status }}</span>\r\n </div>\r\n </div>\r\n</article>", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";:host{display:block;height:100%;box-sizing:border-box;flex:1}.summary-card{font-family:Inter,Inter,sans-serif;background-color:#fff;border-radius:1rem;padding:1rem;border:1px solid hsl(0,0%,50%);max-width:100%;height:100%;display:flex;box-sizing:border-box;flex-direction:column;gap:.25rem}.summary-card__header{position:relative;display:flex;align-items:center;justify-content:space-between}.summary-card__header h2{font-size:28px;font-weight:500;margin:0}.summary__card-status-wrapper{display:flex;align-items:center;font-size:14px;gap:.5rem}.summary__card-status-wrapper .summary__card-status-indicator{width:8px;height:8px;border-radius:50%}.summary__card-status-wrapper .summary__card-status-indicator.ready{background-color:#1c3893}.summary__card-status-wrapper .summary__card-status-indicator.partial-ready{background-color:#f8cd00}.summary__card-status-wrapper .summary__card-status-indicator.not-ready{background-color:#9e9e9e}.summary__card-status-wrapper .summary__card-status-indicator.completed{background-color:#1d805f}.summary__card-status-wrapper .summary__card-status-indicator.failed{background-color:#f23933}.summary__card-description{font-size:14px;color:#333;display:flex;align-items:center;justify-content:space-between}\n"] }]
|
|
222
|
-
}], propDecorators: { value: [{
|
|
223
|
-
type: Input
|
|
224
|
-
}], status: [{
|
|
225
|
-
type: Input
|
|
226
|
-
}], description: [{
|
|
227
|
-
type: Input
|
|
228
|
-
}] } });
|
|
229
|
-
|
|
230
|
-
class TableFiltersComponent {
|
|
231
|
-
constructor() {
|
|
232
|
-
this.filter = new EventEmitter();
|
|
233
|
-
}
|
|
234
|
-
ngOnInit() {
|
|
235
|
-
if (this.filters) {
|
|
236
|
-
this.filters.forEach(filter => {
|
|
237
|
-
if (filter.type === 'select' && !filter.options.some(opt => opt.value === 'all')) {
|
|
238
|
-
filter.options.unshift({ label: 'All', value: 'all' });
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
onFilter(key, value) {
|
|
244
|
-
const val = { key, value };
|
|
245
|
-
this.filter.emit(val);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
TableFiltersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableFiltersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
249
|
-
TableFiltersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TableFiltersComponent, selector: "tk-table-filters", inputs: { filters: "filters" }, outputs: { filter: "filter" }, ngImport: i0, template: "<div class=\"filters-wrapper\">\r\n <ng-container *ngFor=\"let filter of filters\">\r\n <div class=\"filter\">\r\n <ng-container [ngSwitch]=\"filter.type\">\r\n <!-- Search Input with Material Design -->\r\n <mat-form-field *ngSwitchCase=\"'search'\" appearance=\"outline\" class=\"search-field\">\r\n <mat-label>{{ filter.placeholder }}</mat-label>\r\n <input matInput\r\n [placeholder]=\"filter.placeholder\"\r\n (input)=\"onFilter(filter.columnKey, $event)\">\r\n <mat-icon matPrefix class=\"search-icon\">\r\n <img src=\"assets/icons/search_icon.png\" alt=\"Search\" />\r\n </mat-icon>\r\n </mat-form-field>\r\n\r\n <!-- Select Dropdown with Material Design -->\r\n <mat-form-field *ngSwitchCase=\"'select'\" appearance=\"outline\" class=\"select-field\">\r\n <mat-label>{{ filter.placeholder }}</mat-label>\r\n <mat-select (selectionChange)=\"onFilter(filter.columnKey, $event)\">\r\n <mat-option *ngFor=\"let option of filter.options\" [value]=\"option.value\">\r\n {{ option.label }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n</div>\r\n", styles: [":host .filters-wrapper{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;padding:0}:host .filters-wrapper .filter .search-field,:host .filters-wrapper .filter .select-field{width:100%}:host .filters-wrapper .filter .search-field .search-icon,:host .filters-wrapper .filter .select-field .search-icon{display:flex;align-items:center;justify-content:center;margin-right:.25rem;padding:0}:host .filters-wrapper .filter .search-field .search-icon img,:host .filters-wrapper .filter .select-field .search-icon img{width:24px;height:24px;object-fit:contain;opacity:.6;vertical-align:middle}:host .filters-wrapper .filter ::ng-deep .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0!important;padding:0!important}:host .filters-wrapper .filter ::ng-deep .mat-form-field-infix{padding:.5rem 1rem!important}:host .filters-wrapper .filter ::ng-deep .mat-form-field-label-wrapper{top:-1.1rem!important}:host .filters-wrapper .filter ::ng-deep .mat-form-field-infix .mat-input-element{transform:translate(-16px) translateY(-4px)!important}:host .filters-wrapper .filter ::ng-deep .mat-select-value{transform:translateY(-4px)!important}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i6.MatOption, selector: "mat-option", exportAs: ["matOption"] }] });
|
|
250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableFiltersComponent, decorators: [{
|
|
251
|
-
type: Component,
|
|
252
|
-
args: [{ selector: 'tk-table-filters', template: "<div class=\"filters-wrapper\">\r\n <ng-container *ngFor=\"let filter of filters\">\r\n <div class=\"filter\">\r\n <ng-container [ngSwitch]=\"filter.type\">\r\n <!-- Search Input with Material Design -->\r\n <mat-form-field *ngSwitchCase=\"'search'\" appearance=\"outline\" class=\"search-field\">\r\n <mat-label>{{ filter.placeholder }}</mat-label>\r\n <input matInput\r\n [placeholder]=\"filter.placeholder\"\r\n (input)=\"onFilter(filter.columnKey, $event)\">\r\n <mat-icon matPrefix class=\"search-icon\">\r\n <img src=\"assets/icons/search_icon.png\" alt=\"Search\" />\r\n </mat-icon>\r\n </mat-form-field>\r\n\r\n <!-- Select Dropdown with Material Design -->\r\n <mat-form-field *ngSwitchCase=\"'select'\" appearance=\"outline\" class=\"select-field\">\r\n <mat-label>{{ filter.placeholder }}</mat-label>\r\n <mat-select (selectionChange)=\"onFilter(filter.columnKey, $event)\">\r\n <mat-option *ngFor=\"let option of filter.options\" [value]=\"option.value\">\r\n {{ option.label }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n</div>\r\n", styles: [":host .filters-wrapper{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;padding:0}:host .filters-wrapper .filter .search-field,:host .filters-wrapper .filter .select-field{width:100%}:host .filters-wrapper .filter .search-field .search-icon,:host .filters-wrapper .filter .select-field .search-icon{display:flex;align-items:center;justify-content:center;margin-right:.25rem;padding:0}:host .filters-wrapper .filter .search-field .search-icon img,:host .filters-wrapper .filter .select-field .search-icon img{width:24px;height:24px;object-fit:contain;opacity:.6;vertical-align:middle}:host .filters-wrapper .filter ::ng-deep .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0!important;padding:0!important}:host .filters-wrapper .filter ::ng-deep .mat-form-field-infix{padding:.5rem 1rem!important}:host .filters-wrapper .filter ::ng-deep .mat-form-field-label-wrapper{top:-1.1rem!important}:host .filters-wrapper .filter ::ng-deep .mat-form-field-infix .mat-input-element{transform:translate(-16px) translateY(-4px)!important}:host .filters-wrapper .filter ::ng-deep .mat-select-value{transform:translateY(-4px)!important}\n"] }]
|
|
253
|
-
}], propDecorators: { filters: [{
|
|
254
|
-
type: Input
|
|
255
|
-
}], filter: [{
|
|
256
|
-
type: Output
|
|
257
|
-
}] } });
|
|
258
|
-
|
|
259
|
-
class UserUpgradeDataTableComponent {
|
|
260
|
-
constructor() {
|
|
261
|
-
this.destroy$ = new Subject();
|
|
262
|
-
this.userUpgradeService = inject(UserUpgradeService);
|
|
263
|
-
this.apiService = inject(APIService);
|
|
264
|
-
this.STATUS_ENTRIES = STATUS_ENTRIES;
|
|
265
|
-
this.DEPENDENCIES_STATUS = DEPENDENCIES_STATUS;
|
|
266
|
-
this.displayedColumns = ['select', 'user', 'site', 'device', 'dialPlanStatus', 'dependencies', 'userUpgradeStatus'];
|
|
267
|
-
this.selection = new SelectionModel(true, []);
|
|
268
|
-
this.filters = [];
|
|
269
|
-
this.statusCounts = {};
|
|
270
|
-
this.activeFilters = {};
|
|
271
|
-
}
|
|
272
|
-
ngOnInit() {
|
|
273
|
-
this.apiService.token = this.token;
|
|
274
|
-
this.userUpgradeService.customerId = this.customerId;
|
|
275
|
-
this.userUpgradeService.getUserUpgradeRecords()
|
|
276
|
-
.pipe(takeUntil(this.destroy$))
|
|
277
|
-
.subscribe((records) => {
|
|
278
|
-
this.data = new MatTableDataSource(records);
|
|
279
|
-
this.setupCustomFilter();
|
|
280
|
-
this.initializeFilters(records);
|
|
281
|
-
});
|
|
282
|
-
this.userUpgradeService.getUserUpgradeStatusCounts()
|
|
283
|
-
.pipe(takeUntil(this.destroy$))
|
|
284
|
-
.subscribe((statusCounts) => {
|
|
285
|
-
this.statusCounts['Ready'] = statusCounts['READY'] || 0;
|
|
286
|
-
this.statusCounts['Not Ready'] = statusCounts['NOT_READY'] || 0;
|
|
287
|
-
this.statusCounts['Completed'] = statusCounts['COMPLETED'] || 0;
|
|
288
|
-
this.statusCounts['Failed'] = statusCounts['FAILED'] || 0;
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
ngOnDestroy() {
|
|
292
|
-
this.destroy$.next();
|
|
293
|
-
this.destroy$.complete();
|
|
294
|
-
}
|
|
295
|
-
initializeFilters(records) {
|
|
296
|
-
// Extract unique sites from actual data
|
|
297
|
-
const uniqueSites = [...new Set(records.map(record => record.siteName))];
|
|
298
|
-
const siteOptions = uniqueSites.map(site => ({
|
|
299
|
-
label: site,
|
|
300
|
-
value: site.toLowerCase().replace(/\s+/g, '-')
|
|
301
|
-
}));
|
|
302
|
-
// Extract unique statuses from actual data
|
|
303
|
-
const uniqueStatuses = [...new Set(records.map(record => record.upgradeStatus))];
|
|
304
|
-
const statusOptions = uniqueStatuses.map(status => ({
|
|
305
|
-
label: STATUS_ENTRIES[status],
|
|
306
|
-
value: status.toLowerCase().replace(/\s+/g, '-')
|
|
307
|
-
}));
|
|
308
|
-
this.filters = [
|
|
309
|
-
{
|
|
310
|
-
id: 'userName',
|
|
311
|
-
type: 'search',
|
|
312
|
-
columnKey: 'User',
|
|
313
|
-
placeholder: 'Search users...',
|
|
314
|
-
options: []
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
id: 'sites',
|
|
318
|
-
type: 'select',
|
|
319
|
-
columnKey: 'Site',
|
|
320
|
-
placeholder: 'Sites',
|
|
321
|
-
options: siteOptions
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
id: 'status',
|
|
325
|
-
type: 'select',
|
|
326
|
-
columnKey: 'User Upgrade Status',
|
|
327
|
-
placeholder: 'Upgrade Status',
|
|
328
|
-
options: statusOptions
|
|
329
|
-
}
|
|
330
|
-
];
|
|
331
|
-
}
|
|
332
|
-
/** Whether the number of selected elements matches the total number of rows. */
|
|
333
|
-
isAllSelected() {
|
|
334
|
-
const numSelected = this.selection.selected.length;
|
|
335
|
-
const numRows = this.data?.data.length ?? 0;
|
|
336
|
-
return numSelected === numRows;
|
|
337
|
-
}
|
|
338
|
-
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
339
|
-
masterToggle() {
|
|
340
|
-
this.isAllSelected() ?
|
|
341
|
-
this.selection.clear() :
|
|
342
|
-
this.data?.data.forEach(row => this.selection.select(row));
|
|
343
|
-
}
|
|
344
|
-
upgradeUser(user) {
|
|
345
|
-
this.userUpgradeService.bulkUpgrade([user]);
|
|
346
|
-
}
|
|
347
|
-
upgradeSelectedUsers() {
|
|
348
|
-
this.userUpgradeService.bulkUpgrade(this.selection.selected);
|
|
349
|
-
}
|
|
350
|
-
onFilter(filterEvent) {
|
|
351
|
-
const { key, value } = filterEvent;
|
|
352
|
-
let filterValue;
|
|
353
|
-
if (value && value.value !== undefined) {
|
|
354
|
-
filterValue = value.value;
|
|
355
|
-
}
|
|
356
|
-
else if (value && value.target) {
|
|
357
|
-
filterValue = value.target.value;
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
filterValue = value;
|
|
361
|
-
}
|
|
362
|
-
// Handle "All" option or empty values - remove the filter
|
|
363
|
-
if (filterValue === 'all' || !filterValue || filterValue === '') {
|
|
364
|
-
delete this.activeFilters[key];
|
|
365
|
-
}
|
|
366
|
-
else {
|
|
367
|
-
this.activeFilters[key] = filterValue;
|
|
368
|
-
}
|
|
369
|
-
this.applyFilters();
|
|
370
|
-
}
|
|
371
|
-
setupCustomFilter() {
|
|
372
|
-
this.data.filterPredicate = (data, filter) => {
|
|
373
|
-
const filters = JSON.parse(filter || '{}');
|
|
374
|
-
for (const [key, value] of Object.entries(filters)) {
|
|
375
|
-
if (!value)
|
|
376
|
-
continue;
|
|
377
|
-
switch (key) {
|
|
378
|
-
case 'User':
|
|
379
|
-
const searchTerm = value.toLowerCase();
|
|
380
|
-
if (!data.userName.toLowerCase().includes(searchTerm)) {
|
|
381
|
-
return false;
|
|
382
|
-
}
|
|
383
|
-
break;
|
|
384
|
-
case 'Site':
|
|
385
|
-
if (data.siteName !== this.getSiteNameFromValue(value)) {
|
|
386
|
-
return false;
|
|
387
|
-
}
|
|
388
|
-
break;
|
|
389
|
-
case 'User Upgrade Status':
|
|
390
|
-
if (!this.matchesUpgradeStatus(data.upgradeStatus, value)) {
|
|
391
|
-
return false;
|
|
392
|
-
}
|
|
393
|
-
break;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
return true;
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
applyFilters() {
|
|
400
|
-
this.data.filter = JSON.stringify(this.activeFilters);
|
|
401
|
-
}
|
|
402
|
-
get filteredDataCount() {
|
|
403
|
-
return this.data?.filteredData?.length || 0;
|
|
404
|
-
}
|
|
405
|
-
getSiteNameFromValue(value) {
|
|
406
|
-
// Since we're now using actual site names, just convert back from slug format
|
|
407
|
-
return value.split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
|
|
408
|
-
}
|
|
409
|
-
matchesUpgradeStatus(status, filterValue) {
|
|
410
|
-
// Handle direct status matching for cleaner implementation
|
|
411
|
-
return status.toLowerCase().replace(/\s+/g, '-') === filterValue.toLowerCase();
|
|
412
|
-
}
|
|
413
|
-
getStatusClass(status) {
|
|
414
|
-
switch (status.toLowerCase()) {
|
|
415
|
-
case 'ready':
|
|
416
|
-
return 'ready';
|
|
417
|
-
case 'not ready':
|
|
418
|
-
return 'not-ready';
|
|
419
|
-
case 'partial ready':
|
|
420
|
-
return 'partial-ready';
|
|
421
|
-
case 'completed':
|
|
422
|
-
return 'completed';
|
|
423
|
-
case 'failed':
|
|
424
|
-
return 'failed';
|
|
425
|
-
default:
|
|
426
|
-
return 'not-ready';
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
UserUpgradeDataTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
431
|
-
UserUpgradeDataTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UserUpgradeDataTableComponent, selector: "tk-user-upgrade-data-table", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: "<div class=\"wrapper\">\r\n <div class=\"user-upgrade-status-wrapper\">\r\n <tk-summary-card [description]=\"'Users are ready to upgrade'\" [value]=\"statusCounts['Ready']\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Users are not ready'\" [value]=\"statusCounts['Not Ready']\" [status]=\"'Not Ready'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Users failed to upgrade'\" [value]=\"statusCounts['Failed']\" [status]=\"'Failed'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Successfully upgraded'\" [value]=\"statusCounts['Completed']\" [status]=\"'Completed'\"></tk-summary-card>\r\n </div>\r\n <div class=\"table-action-panel\">\r\n <tk-table-filters *ngIf=\"filters.length > 0\" [filters]=\"filters\" (filter)=\"onFilter($event)\"></tk-table-filters>\r\n <div class=\"action-wrapper\">\r\n <span>{{filteredDataCount}} Users</span>\r\n <button \r\n mat-button \r\n class=\"upgrade-bulk-button\" \r\n color=\"primary\" \r\n [disabled]=\"selection.selected.length === 0\" \r\n (click)=\"upgradeSelectedUsers()\">\r\n Upgrade {{ selection.selected.length === 0 ? '' : '(' + selection.selected.length + ')' }}\r\n </button>\r\n </div>\r\n </div>\r\n <table mat-table [dataSource]=\"data\" class=\"user-upgrade-table\">\r\n\r\n <!-- Checkbox Column -->\r\n <ng-container matColumnDef=\"select\">\r\n <th mat-header-cell *matHeaderCellDef>\r\n <mat-checkbox \r\n (change)=\"$event ? masterToggle() : null\"\r\n [checked]=\"selection.hasValue() && isAllSelected()\"\r\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\r\n class=\"custom-checkbox\">\r\n </mat-checkbox>\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <mat-checkbox \r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"$event ? selection.toggle(row) : null\"\r\n [checked]=\"selection.isSelected(row)\"\r\n [disabled]=\"STATUS_ENTRIES[row.upgradeStatus] !== 'Ready'\"\r\n class=\"custom-checkbox\">\r\n </mat-checkbox>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- User Column -->\r\n <ng-container matColumnDef=\"user\">\r\n <th mat-header-cell *matHeaderCellDef>User</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"user-info\">\r\n <div class=\"user-name\">{{element.userName}}</div>\r\n <div class=\"user-email\">{{element.userName}}</div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Site Column -->\r\n <ng-container matColumnDef=\"site\">\r\n <th mat-header-cell *matHeaderCellDef>Site</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"site-info\">\r\n <span class=\"site-indicator\"></span>\r\n {{element.siteName}}\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Device Column -->\r\n <ng-container matColumnDef=\"device\">\r\n <th mat-header-cell *matHeaderCellDef>Device</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"device-info\">\r\n <div *ngIf=\"element.devices.length > 1\">\r\n <div class=\"device-name-wrapper\">\r\n <span class=\"device-indicator\"></span>\r\n <span class=\"device-name\">Multiple devices</span>\r\n </div>\r\n </div>\r\n <div *ngIf=\"element.devices.length === 1\">\r\n <div class=\"device-name-wrapper\">\r\n <span class=\"device-indicator\"></span>\r\n <span class=\"device-name\">{{element.devices[0]}}</span>\r\n </div>\r\n <span class=\"device-model\">{{ element.primaryExtension || 'No Extension' }}</span>\r\n </div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Dial Plan Status Column -->\r\n <ng-container matColumnDef=\"dialPlanStatus\">\r\n <th mat-header-cell *matHeaderCellDef>Dial Plan Status</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getStatusClass(element.dialPlanStatus)\"></span>\r\n <span>{{STATUS_ENTRIES[element.dialPlanStatus]}}</span>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Dependencies Column -->\r\n <ng-container matColumnDef=\"dependencies\">\r\n <th mat-header-cell *matHeaderCellDef>Dependencies</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <span *ngIf=\"DEPENDENCIES_STATUS[element.dependenciesStatus] === 'Dependencies found'\" class=\"dependencies-text\">{{DEPENDENCIES_STATUS[element.dependenciesStatus]}}</span>\r\n <span *ngIf=\"DEPENDENCIES_STATUS[element.dependenciesStatus] === 'No dependencies'\">\u2014</span>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- User Upgrade Status Column -->\r\n <ng-container matColumnDef=\"userUpgradeStatus\">\r\n <th mat-header-cell *matHeaderCellDef>User Upgrade Status</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"upgrade-status-cell\">\r\n <ng-container *ngIf=\"STATUS_ENTRIES[element.upgradeStatus] === 'Ready'; else statusBlock\">\r\n <button mat-button color=\"primary\" class=\"upgrade-button\" (click)=\"upgradeUser(element)\">Upgrade</button>\r\n </ng-container>\r\n <ng-template #statusBlock>\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{STATUS_ENTRIES[element.upgradeStatus]}}</span>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\" \r\n [class.selected-row]=\"selection.isSelected(row)\"></tr>\r\n </table>\r\n</div>", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";.wrapper{display:flex;flex-direction:column;gap:1rem}.user-upgrade-status-wrapper{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.user-upgrade-table{font-family:Inter,Inter,sans-serif;width:100%;background:white;border-radius:8px;overflow:hidden;font-size:14px}.user-upgrade-table .mat-header-row{font-size:12px;height:35px}.user-upgrade-table .mat-cell{border-bottom:1px solid #d6d6d6}.user-upgrade-table .mat-header-cell{border-bottom:1px solid #afafaf}.user-upgrade-table .mat-row{transition:background-color .2s ease}.user-upgrade-table .mat-row:hover{background-color:#f8f9fa}.user-upgrade-table .mat-row.selected-row{background-color:#08599c1a}.user-upgrade-table .user-info .user-name{font-weight:500;color:#212121}.user-upgrade-table .user-info .user-email{font-size:12px;color:#757575}.user-upgrade-table .site-info{display:flex;align-items:center;gap:8px}.user-upgrade-table .site-info .site-indicator{width:8px;height:8px;border-radius:50%;background-color:#1170cf}.user-upgrade-table .device-info{display:flex;align-items:center;gap:12px}.user-upgrade-table .device-info .device-name-wrapper{display:flex;align-items:center;gap:8px}.user-upgrade-table .device-info .device-name-wrapper .device-name{font-weight:500;color:#212121}.user-upgrade-table .device-info .device-name-wrapper .device-indicator{width:8px;height:8px;border-radius:50%;background-color:#f8cd00}.user-upgrade-table .device-info .device-model{font-size:12px;color:#757575}.user-upgrade-table .status-info{display:flex;align-items:center;gap:8px}.user-upgrade-table .status-info .status-indicator{width:8px;height:8px;border-radius:50%}.user-upgrade-table .status-info .status-indicator.ready{background-color:#1d805f}.user-upgrade-table .status-info .status-indicator.partial-ready{background-color:#f8cd00}.user-upgrade-table .status-info .status-indicator.not-ready{background-color:#9e9e9e}.user-upgrade-table .status-info .status-indicator.completed{background-color:#1d805f}.user-upgrade-table .status-info .status-indicator.failed{background-color:#f23933}.user-upgrade-table .dependencies-text{font-size:12px;background-color:#ffe9e9;padding:.25rem .5rem;border-radius:3px;color:#000}.user-upgrade-table .upgrade-status-cell{display:flex;align-items:center;justify-content:flex-start}.user-upgrade-table .upgrade-button{border:1px solid #08599c!important;color:#08599c!important;background:white!important;border-radius:20px!important;font-size:14px!important;font-style:normal!important;font-weight:500!important;height:32px!important;display:flex!important;align-items:center!important;justify-content:center!important}.user-upgrade-table .upgrade-button:hover{background-color:#e3f2fd!important}.user-upgrade-table .custom-checkbox .mdc-checkbox{padding:8px}.table-action-panel{width:100%;display:flex;justify-content:flex-start;gap:1rem}.action-wrapper{display:flex;flex:1;align-items:center;justify-content:space-between;gap:1rem}.upgrade-bulk-button{border:1px solid #000!important;color:#fff!important;background:#000!important;border-radius:20px!important;padding:0 1rem!important;font-size:14px!important;font-style:normal!important;font-weight:400!important;height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important}.upgrade-bulk-button:hover{background-color:#212121!important}.upgrade-bulk-button:disabled{background-color:#888!important;color:#fff!important;cursor:not-allowed!important;border-color:#888!important;opacity:.25!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-checked.mat-accent .mat-checkbox-background{background-color:#08599c!important;border-color:#08599c!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#08599c!important;border-color:#08599c!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-background{border-color:#08599c99!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent .mat-ripple-element{background-color:#08599c1a!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent:focus .mat-checkbox-background{background-color:#08599c1a!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-frame{border-color:#08599c99!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-checkmark{color:#fff!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-checkmark-path{stroke:#fff!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-mixedmark{border-color:#fff!important}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SummaryCardComponent, selector: "tk-summary-card", inputs: ["value", "status", "description"] }, { kind: "component", type: TableFiltersComponent, selector: "tk-table-filters", inputs: ["filters"], outputs: ["filter"] }, { kind: "component", type: i4$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i4$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i4$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i4$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i4$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i4$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i4$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i4$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i4$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i4$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i5$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i6$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
|
|
432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeDataTableComponent, decorators: [{
|
|
433
|
-
type: Component,
|
|
434
|
-
args: [{ selector: 'tk-user-upgrade-data-table', template: "<div class=\"wrapper\">\r\n <div class=\"user-upgrade-status-wrapper\">\r\n <tk-summary-card [description]=\"'Users are ready to upgrade'\" [value]=\"statusCounts['Ready']\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Users are not ready'\" [value]=\"statusCounts['Not Ready']\" [status]=\"'Not Ready'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Users failed to upgrade'\" [value]=\"statusCounts['Failed']\" [status]=\"'Failed'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Successfully upgraded'\" [value]=\"statusCounts['Completed']\" [status]=\"'Completed'\"></tk-summary-card>\r\n </div>\r\n <div class=\"table-action-panel\">\r\n <tk-table-filters *ngIf=\"filters.length > 0\" [filters]=\"filters\" (filter)=\"onFilter($event)\"></tk-table-filters>\r\n <div class=\"action-wrapper\">\r\n <span>{{filteredDataCount}} Users</span>\r\n <button \r\n mat-button \r\n class=\"upgrade-bulk-button\" \r\n color=\"primary\" \r\n [disabled]=\"selection.selected.length === 0\" \r\n (click)=\"upgradeSelectedUsers()\">\r\n Upgrade {{ selection.selected.length === 0 ? '' : '(' + selection.selected.length + ')' }}\r\n </button>\r\n </div>\r\n </div>\r\n <table mat-table [dataSource]=\"data\" class=\"user-upgrade-table\">\r\n\r\n <!-- Checkbox Column -->\r\n <ng-container matColumnDef=\"select\">\r\n <th mat-header-cell *matHeaderCellDef>\r\n <mat-checkbox \r\n (change)=\"$event ? masterToggle() : null\"\r\n [checked]=\"selection.hasValue() && isAllSelected()\"\r\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\r\n class=\"custom-checkbox\">\r\n </mat-checkbox>\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <mat-checkbox \r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"$event ? selection.toggle(row) : null\"\r\n [checked]=\"selection.isSelected(row)\"\r\n [disabled]=\"STATUS_ENTRIES[row.upgradeStatus] !== 'Ready'\"\r\n class=\"custom-checkbox\">\r\n </mat-checkbox>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- User Column -->\r\n <ng-container matColumnDef=\"user\">\r\n <th mat-header-cell *matHeaderCellDef>User</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"user-info\">\r\n <div class=\"user-name\">{{element.userName}}</div>\r\n <div class=\"user-email\">{{element.userName}}</div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Site Column -->\r\n <ng-container matColumnDef=\"site\">\r\n <th mat-header-cell *matHeaderCellDef>Site</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"site-info\">\r\n <span class=\"site-indicator\"></span>\r\n {{element.siteName}}\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Device Column -->\r\n <ng-container matColumnDef=\"device\">\r\n <th mat-header-cell *matHeaderCellDef>Device</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"device-info\">\r\n <div *ngIf=\"element.devices.length > 1\">\r\n <div class=\"device-name-wrapper\">\r\n <span class=\"device-indicator\"></span>\r\n <span class=\"device-name\">Multiple devices</span>\r\n </div>\r\n </div>\r\n <div *ngIf=\"element.devices.length === 1\">\r\n <div class=\"device-name-wrapper\">\r\n <span class=\"device-indicator\"></span>\r\n <span class=\"device-name\">{{element.devices[0]}}</span>\r\n </div>\r\n <span class=\"device-model\">{{ element.primaryExtension || 'No Extension' }}</span>\r\n </div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Dial Plan Status Column -->\r\n <ng-container matColumnDef=\"dialPlanStatus\">\r\n <th mat-header-cell *matHeaderCellDef>Dial Plan Status</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getStatusClass(element.dialPlanStatus)\"></span>\r\n <span>{{STATUS_ENTRIES[element.dialPlanStatus]}}</span>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Dependencies Column -->\r\n <ng-container matColumnDef=\"dependencies\">\r\n <th mat-header-cell *matHeaderCellDef>Dependencies</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <span *ngIf=\"DEPENDENCIES_STATUS[element.dependenciesStatus] === 'Dependencies found'\" class=\"dependencies-text\">{{DEPENDENCIES_STATUS[element.dependenciesStatus]}}</span>\r\n <span *ngIf=\"DEPENDENCIES_STATUS[element.dependenciesStatus] === 'No dependencies'\">\u2014</span>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- User Upgrade Status Column -->\r\n <ng-container matColumnDef=\"userUpgradeStatus\">\r\n <th mat-header-cell *matHeaderCellDef>User Upgrade Status</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"upgrade-status-cell\">\r\n <ng-container *ngIf=\"STATUS_ENTRIES[element.upgradeStatus] === 'Ready'; else statusBlock\">\r\n <button mat-button color=\"primary\" class=\"upgrade-button\" (click)=\"upgradeUser(element)\">Upgrade</button>\r\n </ng-container>\r\n <ng-template #statusBlock>\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{STATUS_ENTRIES[element.upgradeStatus]}}</span>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\" \r\n [class.selected-row]=\"selection.isSelected(row)\"></tr>\r\n </table>\r\n</div>", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";.wrapper{display:flex;flex-direction:column;gap:1rem}.user-upgrade-status-wrapper{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.user-upgrade-table{font-family:Inter,Inter,sans-serif;width:100%;background:white;border-radius:8px;overflow:hidden;font-size:14px}.user-upgrade-table .mat-header-row{font-size:12px;height:35px}.user-upgrade-table .mat-cell{border-bottom:1px solid #d6d6d6}.user-upgrade-table .mat-header-cell{border-bottom:1px solid #afafaf}.user-upgrade-table .mat-row{transition:background-color .2s ease}.user-upgrade-table .mat-row:hover{background-color:#f8f9fa}.user-upgrade-table .mat-row.selected-row{background-color:#08599c1a}.user-upgrade-table .user-info .user-name{font-weight:500;color:#212121}.user-upgrade-table .user-info .user-email{font-size:12px;color:#757575}.user-upgrade-table .site-info{display:flex;align-items:center;gap:8px}.user-upgrade-table .site-info .site-indicator{width:8px;height:8px;border-radius:50%;background-color:#1170cf}.user-upgrade-table .device-info{display:flex;align-items:center;gap:12px}.user-upgrade-table .device-info .device-name-wrapper{display:flex;align-items:center;gap:8px}.user-upgrade-table .device-info .device-name-wrapper .device-name{font-weight:500;color:#212121}.user-upgrade-table .device-info .device-name-wrapper .device-indicator{width:8px;height:8px;border-radius:50%;background-color:#f8cd00}.user-upgrade-table .device-info .device-model{font-size:12px;color:#757575}.user-upgrade-table .status-info{display:flex;align-items:center;gap:8px}.user-upgrade-table .status-info .status-indicator{width:8px;height:8px;border-radius:50%}.user-upgrade-table .status-info .status-indicator.ready{background-color:#1d805f}.user-upgrade-table .status-info .status-indicator.partial-ready{background-color:#f8cd00}.user-upgrade-table .status-info .status-indicator.not-ready{background-color:#9e9e9e}.user-upgrade-table .status-info .status-indicator.completed{background-color:#1d805f}.user-upgrade-table .status-info .status-indicator.failed{background-color:#f23933}.user-upgrade-table .dependencies-text{font-size:12px;background-color:#ffe9e9;padding:.25rem .5rem;border-radius:3px;color:#000}.user-upgrade-table .upgrade-status-cell{display:flex;align-items:center;justify-content:flex-start}.user-upgrade-table .upgrade-button{border:1px solid #08599c!important;color:#08599c!important;background:white!important;border-radius:20px!important;font-size:14px!important;font-style:normal!important;font-weight:500!important;height:32px!important;display:flex!important;align-items:center!important;justify-content:center!important}.user-upgrade-table .upgrade-button:hover{background-color:#e3f2fd!important}.user-upgrade-table .custom-checkbox .mdc-checkbox{padding:8px}.table-action-panel{width:100%;display:flex;justify-content:flex-start;gap:1rem}.action-wrapper{display:flex;flex:1;align-items:center;justify-content:space-between;gap:1rem}.upgrade-bulk-button{border:1px solid #000!important;color:#fff!important;background:#000!important;border-radius:20px!important;padding:0 1rem!important;font-size:14px!important;font-style:normal!important;font-weight:400!important;height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important}.upgrade-bulk-button:hover{background-color:#212121!important}.upgrade-bulk-button:disabled{background-color:#888!important;color:#fff!important;cursor:not-allowed!important;border-color:#888!important;opacity:.25!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-checked.mat-accent .mat-checkbox-background{background-color:#08599c!important;border-color:#08599c!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#08599c!important;border-color:#08599c!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-background{border-color:#08599c99!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent .mat-ripple-element{background-color:#08599c1a!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent:focus .mat-checkbox-background{background-color:#08599c1a!important}:host ::ng-deep .user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-frame{border-color:#08599c99!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-checkmark{color:#fff!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-checkmark-path{stroke:#fff!important}:host ::ng-deep .user-upgrade-table .mat-checkbox-mixedmark{border-color:#fff!important}\n"] }]
|
|
435
|
-
}], propDecorators: { token: [{
|
|
436
|
-
type: Input
|
|
437
|
-
}], customerId: [{
|
|
438
|
-
type: Input
|
|
439
|
-
}] } });
|
|
440
|
-
|
|
441
|
-
class CardComponent {
|
|
442
|
-
}
|
|
443
|
-
CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
444
|
-
CardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CardComponent, selector: "tk-card", inputs: { title: "title" }, ngImport: i0, template: "<article class=\"card\">\r\n <header class=\"card__header\">\r\n <h2>{{ title }}</h2>\r\n <div class=\"card__menu-button\">\r\n <img width=\"18\" src=\"assets/icons/menu_icon.png\" alt=\"Menu Icon\">\r\n </div>\r\n </header>\r\n <div class=\"card__content\">\r\n <ng-content select=\"card-content\"></ng-content>\r\n </div>\r\n</article>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";:host{display:block;height:100%;box-sizing:border-box}.card{font-family:Inter,Inter,sans-serif;background-color:#fff;border-radius:1rem;padding:2rem;border:1px solid hsl(0,0%,50%);min-width:300px;max-width:100%;height:100%;display:flex;flex-direction:column;box-sizing:border-box;gap:2.5rem}.card__header{position:relative;display:flex;align-items:center;justify-content:space-between}.card__header h2{font-size:16px;margin:0}.card__header .card__menu-button{position:relative;display:flex;align-items:center}.card__content{display:flex;flex-direction:column;gap:2.5rem;flex-grow:1}\n"] });
|
|
445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardComponent, decorators: [{
|
|
446
|
-
type: Component,
|
|
447
|
-
args: [{ selector: 'tk-card', template: "<article class=\"card\">\r\n <header class=\"card__header\">\r\n <h2>{{ title }}</h2>\r\n <div class=\"card__menu-button\">\r\n <img width=\"18\" src=\"assets/icons/menu_icon.png\" alt=\"Menu Icon\">\r\n </div>\r\n </header>\r\n <div class=\"card__content\">\r\n <ng-content select=\"card-content\"></ng-content>\r\n </div>\r\n</article>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";:host{display:block;height:100%;box-sizing:border-box}.card{font-family:Inter,Inter,sans-serif;background-color:#fff;border-radius:1rem;padding:2rem;border:1px solid hsl(0,0%,50%);min-width:300px;max-width:100%;height:100%;display:flex;flex-direction:column;box-sizing:border-box;gap:2.5rem}.card__header{position:relative;display:flex;align-items:center;justify-content:space-between}.card__header h2{font-size:16px;margin:0}.card__header .card__menu-button{position:relative;display:flex;align-items:center}.card__content{display:flex;flex-direction:column;gap:2.5rem;flex-grow:1}\n"] }]
|
|
448
|
-
}], propDecorators: { title: [{
|
|
449
|
-
type: Input
|
|
450
|
-
}] } });
|
|
451
|
-
|
|
452
|
-
class MaterialModule {
|
|
453
|
-
}
|
|
454
|
-
MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
455
|
-
MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [MatProgressBarModule,
|
|
456
|
-
MatTooltipModule,
|
|
457
|
-
MatTableModule,
|
|
458
|
-
MatCheckboxModule,
|
|
459
|
-
MatButtonModule,
|
|
460
|
-
MatIconModule,
|
|
461
|
-
MatFormFieldModule,
|
|
462
|
-
MatInputModule,
|
|
463
|
-
MatSelectModule], exports: [MatProgressBarModule,
|
|
464
|
-
MatTooltipModule,
|
|
465
|
-
MatTableModule,
|
|
466
|
-
MatCheckboxModule,
|
|
467
|
-
MatButtonModule,
|
|
468
|
-
MatIconModule,
|
|
469
|
-
MatFormFieldModule,
|
|
470
|
-
MatInputModule,
|
|
471
|
-
MatSelectModule] });
|
|
472
|
-
MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [MatProgressBarModule,
|
|
473
|
-
MatTooltipModule,
|
|
474
|
-
MatTableModule,
|
|
475
|
-
MatCheckboxModule,
|
|
476
|
-
MatButtonModule,
|
|
477
|
-
MatIconModule,
|
|
478
|
-
MatFormFieldModule,
|
|
479
|
-
MatInputModule,
|
|
480
|
-
MatSelectModule, MatProgressBarModule,
|
|
481
|
-
MatTooltipModule,
|
|
482
|
-
MatTableModule,
|
|
483
|
-
MatCheckboxModule,
|
|
484
|
-
MatButtonModule,
|
|
485
|
-
MatIconModule,
|
|
486
|
-
MatFormFieldModule,
|
|
487
|
-
MatInputModule,
|
|
488
|
-
MatSelectModule] });
|
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, decorators: [{
|
|
490
|
-
type: NgModule,
|
|
491
|
-
args: [{
|
|
492
|
-
imports: [
|
|
493
|
-
MatProgressBarModule,
|
|
494
|
-
MatTooltipModule,
|
|
495
|
-
MatTableModule,
|
|
496
|
-
MatCheckboxModule,
|
|
497
|
-
MatButtonModule,
|
|
498
|
-
MatIconModule,
|
|
499
|
-
MatFormFieldModule,
|
|
500
|
-
MatInputModule,
|
|
501
|
-
MatSelectModule
|
|
502
|
-
],
|
|
503
|
-
exports: [
|
|
504
|
-
MatProgressBarModule,
|
|
505
|
-
MatTooltipModule,
|
|
506
|
-
MatTableModule,
|
|
507
|
-
MatCheckboxModule,
|
|
508
|
-
MatButtonModule,
|
|
509
|
-
MatIconModule,
|
|
510
|
-
MatFormFieldModule,
|
|
511
|
-
MatInputModule,
|
|
512
|
-
MatSelectModule
|
|
513
|
-
]
|
|
514
|
-
}]
|
|
515
|
-
}] });
|
|
516
|
-
|
|
517
|
-
class StatCardComponent {
|
|
518
|
-
ngOnInit() {
|
|
519
|
-
if (this.type === 'user') {
|
|
520
|
-
this.stats = {
|
|
521
|
-
id: this.readinessStats?.id,
|
|
522
|
-
customerId: this.readinessStats?.customerId,
|
|
523
|
-
total: this.readinessStats?.['totalUsers'],
|
|
524
|
-
totalReady: this.readinessStats?.['totalReadyUsers'],
|
|
525
|
-
totalUpgraded: this.readinessStats?.['totalUpgradedUsers'],
|
|
526
|
-
};
|
|
527
|
-
}
|
|
528
|
-
else {
|
|
529
|
-
this.stats = {
|
|
530
|
-
id: this.readinessStats?.id,
|
|
531
|
-
customerId: this.readinessStats?.customerId,
|
|
532
|
-
total: this.readinessStats?.['totalSites'],
|
|
533
|
-
totalReady: this.readinessStats?.['totalReadySites'],
|
|
534
|
-
totalUpgraded: this.readinessStats?.['totalUpgradedSites'],
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
get readyPercentage() {
|
|
539
|
-
return (this.stats?.totalReady / this.stats?.total * 100) >> 0;
|
|
540
|
-
}
|
|
541
|
-
get upgradedPercentage() {
|
|
542
|
-
return (this.stats?.totalUpgraded / this.stats?.total * 100) >> 0;
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
StatCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
546
|
-
StatCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: StatCardComponent, selector: "tk-stat-card", inputs: { title: "title", type: "type", readinessStats: "readinessStats", upgradeStatus: "upgradeStatus" }, ngImport: i0, template: "<tk-card [title]=\"title\">\r\n <ng-container ngProjectAs=\"card-content\">\r\n <div class=\"card__content-info\">\r\n <div class=\"card__content-wrapper\">\r\n <img width=\"42\" [src]=\"'assets/icons/' + type + '.png'\" alt=\"\" />\r\n <div class=\"card__content-text\">\r\n <div class=\"card__content-label\">\r\n {{ upgradeStatus === 'ready' ? stats?.totalReady : stats?.totalUpgraded }}\r\n {{ type === 'user' ? 'Users' : 'Sites' }}</div>\r\n <div class=\"card__content-description\">{{ upgradeStatus === 'ready' ? 'Ready to Upgrade' : 'Already Upgraded' }}</div>\r\n </div>\r\n </div>\r\n <div class=\"card__content-wrapper\">\r\n <img\r\n *ngIf=\"upgradeStatus === 'ready'\"\r\n height=\"48\"\r\n src=\"assets/icons/ready_to_upgrade.png\"\r\n alt=\"\"\r\n />\r\n <img\r\n *ngIf=\"upgradeStatus === 'already'\"\r\n height=\"48\"\r\n src=\"assets/icons/already_upgraded.png\"\r\n alt=\"\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"card__content-progress-wrapper\">\r\n <div class=\"card__content-progress\">\r\n <div class=\"card__content-progress-label\">\r\n <span>{{ readyPercentage }}%</span>\r\n <span>From all {{ stats?.total }} {{ type === 'user' ? 'users' : 'sites' }}</span>\r\n </div>\r\n <div class=\"card__content-progress-bar\">\r\n <div\r\n class=\"card__content-progress-bar-fill ready\"\r\n [class.already]=\"upgradeStatus === 'already'\"\r\n [style.width.%]=\"readyPercentage\"\r\n ></div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"upgradeStatus === 'already'\" class=\"card__content-progress\">\r\n <div class=\"card__content-progress-label\">\r\n <span>{{ upgradedPercentage }}%</span>\r\n <span>From all {{ stats?.totalReady }} ready {{ type === 'user' ? 'users' : 'sites' }}</span>\r\n </div>\r\n <div class=\"card__content-progress-bar\">\r\n <div\r\n class=\"card__content-progress-bar-fill ready\"\r\n [class.already]=\"upgradeStatus === 'already'\"\r\n [style.width.%]=\"upgradedPercentage\"\r\n ></div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</tk-card>\r\n", styles: [":host{display:block;height:100%;box-sizing:border-box}.card__content-info{display:flex;align-items:center;justify-content:space-between}.card__content-text{display:flex;flex-direction:column;gap:.25rem}.card__content-text .card__content-label{font-size:20px}.card__content-text .card__content-description{font-size:12px}.card__content-wrapper{display:flex;align-items:center;justify-content:center;gap:1rem}.card__content-wrapper:first-child{display:flex;gap:.5rem}.card__content-progress-wrapper{display:flex;flex-direction:column;gap:1rem}.card__content-progress{display:flex;flex-direction:column;gap:.25rem;font-size:14px}.card__content-progress .card__content-progress-label{display:flex;align-items:center;justify-content:space-between;padding:.05rem}.card__content-progress .card__content-progress-bar{background-color:#ededed;border-radius:10rem}.card__content-progress .card__content-progress-bar .card__content-progress-bar-fill{height:10px;border-radius:inherit}.ready{background-color:#1170cf}.already{background-color:#1d805f}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CardComponent, selector: "tk-card", inputs: ["title"] }] });
|
|
547
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatCardComponent, decorators: [{
|
|
548
|
-
type: Component,
|
|
549
|
-
args: [{ selector: 'tk-stat-card', template: "<tk-card [title]=\"title\">\r\n <ng-container ngProjectAs=\"card-content\">\r\n <div class=\"card__content-info\">\r\n <div class=\"card__content-wrapper\">\r\n <img width=\"42\" [src]=\"'assets/icons/' + type + '.png'\" alt=\"\" />\r\n <div class=\"card__content-text\">\r\n <div class=\"card__content-label\">\r\n {{ upgradeStatus === 'ready' ? stats?.totalReady : stats?.totalUpgraded }}\r\n {{ type === 'user' ? 'Users' : 'Sites' }}</div>\r\n <div class=\"card__content-description\">{{ upgradeStatus === 'ready' ? 'Ready to Upgrade' : 'Already Upgraded' }}</div>\r\n </div>\r\n </div>\r\n <div class=\"card__content-wrapper\">\r\n <img\r\n *ngIf=\"upgradeStatus === 'ready'\"\r\n height=\"48\"\r\n src=\"assets/icons/ready_to_upgrade.png\"\r\n alt=\"\"\r\n />\r\n <img\r\n *ngIf=\"upgradeStatus === 'already'\"\r\n height=\"48\"\r\n src=\"assets/icons/already_upgraded.png\"\r\n alt=\"\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"card__content-progress-wrapper\">\r\n <div class=\"card__content-progress\">\r\n <div class=\"card__content-progress-label\">\r\n <span>{{ readyPercentage }}%</span>\r\n <span>From all {{ stats?.total }} {{ type === 'user' ? 'users' : 'sites' }}</span>\r\n </div>\r\n <div class=\"card__content-progress-bar\">\r\n <div\r\n class=\"card__content-progress-bar-fill ready\"\r\n [class.already]=\"upgradeStatus === 'already'\"\r\n [style.width.%]=\"readyPercentage\"\r\n ></div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"upgradeStatus === 'already'\" class=\"card__content-progress\">\r\n <div class=\"card__content-progress-label\">\r\n <span>{{ upgradedPercentage }}%</span>\r\n <span>From all {{ stats?.totalReady }} ready {{ type === 'user' ? 'users' : 'sites' }}</span>\r\n </div>\r\n <div class=\"card__content-progress-bar\">\r\n <div\r\n class=\"card__content-progress-bar-fill ready\"\r\n [class.already]=\"upgradeStatus === 'already'\"\r\n [style.width.%]=\"upgradedPercentage\"\r\n ></div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</tk-card>\r\n", styles: [":host{display:block;height:100%;box-sizing:border-box}.card__content-info{display:flex;align-items:center;justify-content:space-between}.card__content-text{display:flex;flex-direction:column;gap:.25rem}.card__content-text .card__content-label{font-size:20px}.card__content-text .card__content-description{font-size:12px}.card__content-wrapper{display:flex;align-items:center;justify-content:center;gap:1rem}.card__content-wrapper:first-child{display:flex;gap:.5rem}.card__content-progress-wrapper{display:flex;flex-direction:column;gap:1rem}.card__content-progress{display:flex;flex-direction:column;gap:.25rem;font-size:14px}.card__content-progress .card__content-progress-label{display:flex;align-items:center;justify-content:space-between;padding:.05rem}.card__content-progress .card__content-progress-bar{background-color:#ededed;border-radius:10rem}.card__content-progress .card__content-progress-bar .card__content-progress-bar-fill{height:10px;border-radius:inherit}.ready{background-color:#1170cf}.already{background-color:#1d805f}\n"] }]
|
|
550
|
-
}], propDecorators: { title: [{
|
|
551
|
-
type: Input
|
|
552
|
-
}], type: [{
|
|
553
|
-
type: Input
|
|
554
|
-
}], readinessStats: [{
|
|
555
|
-
type: Input
|
|
556
|
-
}], upgradeStatus: [{
|
|
557
|
-
type: Input
|
|
558
|
-
}] } });
|
|
559
|
-
|
|
560
|
-
class StatusListCardComponent {
|
|
561
|
-
}
|
|
562
|
-
StatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
563
|
-
StatusListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: StatusListCardComponent, selector: "tk-status-list-card", inputs: { title: "title", items: "items" }, ngImport: i0, template: "<tk-card [title]=\"title\">\r\n <ng-container ngProjectAs=\"card-content\">\r\n <div class=\"card__list-wrapper\">\r\n <div class=\"card__list-item\" *ngFor=\"let item of items\">\r\n <img *ngIf=\"item.status\" src=\"{{ 'assets/icons/check_icon.png' }}\" alt=\"\">\r\n <img *ngIf=\"!item.status\" src=\"{{ 'assets/icons/warning_icon.png' }}\" alt=\"\">\r\n <div class=\"card__item-info\">\r\n <div class=\"card__item-text\">\r\n <div class=\"card__item-label\">\r\n {{ item.label }}\r\n </div>\r\n <div class=\"card__item-description\">\r\n {{ item.description }}\r\n </div>\r\n </div>\r\n <div *ngIf=\"title.includes('Site')\" class=\"card__item-stats\">\r\n <div class=\"card__item-numbers\">\r\n {{ item.value }}/{{ item.totalSites }}\r\n </div>\r\n <div class=\"card__item-numbers-description\">\r\n Ready/All\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</tk-card>", styles: [":host{color:#333;display:block;height:100%;box-sizing:border-box}.card__list-wrapper{display:flex;flex-direction:column;gap:1rem}.card__list-item{display:flex;align-items:center;gap:1rem}.card__item-info{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%}.card__item-text{display:flex;flex-direction:column;gap:.05rem}.card__item-text .card__item-label{font-size:18px}.card__item-text .card__item-description{font-size:14px}.card__item-stats{right:0;position:absolute;text-align:right}.card__item-stats .card__item-numbers{font-size:28px}.card__item-stats .card__item-numbers-description{font-size:14px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CardComponent, selector: "tk-card", inputs: ["title"] }] });
|
|
564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatusListCardComponent, decorators: [{
|
|
565
|
-
type: Component,
|
|
566
|
-
args: [{ selector: "tk-status-list-card", template: "<tk-card [title]=\"title\">\r\n <ng-container ngProjectAs=\"card-content\">\r\n <div class=\"card__list-wrapper\">\r\n <div class=\"card__list-item\" *ngFor=\"let item of items\">\r\n <img *ngIf=\"item.status\" src=\"{{ 'assets/icons/check_icon.png' }}\" alt=\"\">\r\n <img *ngIf=\"!item.status\" src=\"{{ 'assets/icons/warning_icon.png' }}\" alt=\"\">\r\n <div class=\"card__item-info\">\r\n <div class=\"card__item-text\">\r\n <div class=\"card__item-label\">\r\n {{ item.label }}\r\n </div>\r\n <div class=\"card__item-description\">\r\n {{ item.description }}\r\n </div>\r\n </div>\r\n <div *ngIf=\"title.includes('Site')\" class=\"card__item-stats\">\r\n <div class=\"card__item-numbers\">\r\n {{ item.value }}/{{ item.totalSites }}\r\n </div>\r\n <div class=\"card__item-numbers-description\">\r\n Ready/All\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</tk-card>", styles: [":host{color:#333;display:block;height:100%;box-sizing:border-box}.card__list-wrapper{display:flex;flex-direction:column;gap:1rem}.card__list-item{display:flex;align-items:center;gap:1rem}.card__item-info{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%}.card__item-text{display:flex;flex-direction:column;gap:.05rem}.card__item-text .card__item-label{font-size:18px}.card__item-text .card__item-description{font-size:14px}.card__item-stats{right:0;position:absolute;text-align:right}.card__item-stats .card__item-numbers{font-size:28px}.card__item-stats .card__item-numbers-description{font-size:14px}\n"] }]
|
|
567
|
-
}], propDecorators: { title: [{
|
|
568
|
-
type: Input
|
|
569
|
-
}], items: [{
|
|
570
|
-
type: Input
|
|
571
|
-
}] } });
|
|
572
|
-
|
|
573
|
-
class ChartCardComponent {
|
|
574
|
-
ngOnInit() {
|
|
575
|
-
this.initChartOptions();
|
|
576
|
-
}
|
|
577
|
-
initChartOptions() {
|
|
578
|
-
if (this.totalUpgraded === 0)
|
|
579
|
-
this.totalNotUpgraded = 100;
|
|
580
|
-
this.chartOptions = {
|
|
581
|
-
series: [this.totalUpgraded, this.totalNotUpgraded],
|
|
582
|
-
chart: {
|
|
583
|
-
type: "donut",
|
|
584
|
-
height: 250
|
|
585
|
-
},
|
|
586
|
-
labels: ["MT", "DI"],
|
|
587
|
-
colors: ["#808080", "#2E8B57"],
|
|
588
|
-
legend: {
|
|
589
|
-
position: "right",
|
|
590
|
-
offsetY: 0,
|
|
591
|
-
fontSize: "14px",
|
|
592
|
-
markers: {
|
|
593
|
-
width: 16,
|
|
594
|
-
height: 16,
|
|
595
|
-
radius: 2
|
|
596
|
-
},
|
|
597
|
-
itemMargin: {
|
|
598
|
-
horizontal: 20,
|
|
599
|
-
vertical: 2
|
|
600
|
-
},
|
|
601
|
-
formatter: function (seriesName, opts) {
|
|
602
|
-
return seriesName + " " + ((opts.w.globals.series[opts.seriesIndex] / (opts.w.globals.series[0] + opts.w.globals.series[1]) * 100) >> 0) + "%";
|
|
603
|
-
}
|
|
604
|
-
},
|
|
605
|
-
plotOptions: {
|
|
606
|
-
pie: {
|
|
607
|
-
donut: {
|
|
608
|
-
size: "75%"
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
},
|
|
612
|
-
dataLabels: {
|
|
613
|
-
enabled: false
|
|
614
|
-
}
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
ChartCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
619
|
-
ChartCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartCardComponent, selector: "tk-chart-card", inputs: { title: "title", totalUpgraded: "totalUpgraded", totalNotUpgraded: "totalNotUpgraded" }, ngImport: i0, template: "<tk-card [title]=\"title\">\r\n <ng-container ngProjectAs=\"card-content\">\r\n <div class=\"chart-container\">\r\n <apx-chart\r\n [series]=\"chartOptions.series\"\r\n [chart]=\"chartOptions.chart\"\r\n [labels]=\"chartOptions.labels\"\r\n [colors]=\"chartOptions.colors\"\r\n [legend]=\"chartOptions.legend\"\r\n [plotOptions]=\"chartOptions.plotOptions\"\r\n [dataLabels]=\"chartOptions.dataLabels\">\r\n </apx-chart>\r\n </div>\r\n </ng-container>\r\n</tk-card>", styles: [":host{width:100%;display:block;height:100%;box-sizing:border-box}.chart-container{width:100%;height:220px;display:flex;justify-content:flex-start;align-items:center;padding:0}.chart-container apx-chart{width:100%;max-width:400px}:host ::ng-deep .apexcharts-legend{display:flex!important;flex-direction:column!important;justify-content:center!important}:host ::ng-deep .apexcharts-legend .apexcharts-legend-marker{border-radius:2px!important}:host ::ng-deep .apexcharts-legend .apexcharts-legend-text{font-weight:500!important;color:#333!important}\n"], dependencies: [{ kind: "component", type: i1$2.ChartComponent, selector: "apx-chart", inputs: ["chart", "annotations", "colors", "dataLabels", "series", "stroke", "labels", "legend", "markers", "noData", "fill", "tooltip", "plotOptions", "responsive", "xaxis", "yaxis", "forecastDataPoints", "grid", "states", "title", "subtitle", "theme", "autoUpdateSeries"] }, { kind: "component", type: CardComponent, selector: "tk-card", inputs: ["title"] }] });
|
|
620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartCardComponent, decorators: [{
|
|
621
|
-
type: Component,
|
|
622
|
-
args: [{ selector: 'tk-chart-card', template: "<tk-card [title]=\"title\">\r\n <ng-container ngProjectAs=\"card-content\">\r\n <div class=\"chart-container\">\r\n <apx-chart\r\n [series]=\"chartOptions.series\"\r\n [chart]=\"chartOptions.chart\"\r\n [labels]=\"chartOptions.labels\"\r\n [colors]=\"chartOptions.colors\"\r\n [legend]=\"chartOptions.legend\"\r\n [plotOptions]=\"chartOptions.plotOptions\"\r\n [dataLabels]=\"chartOptions.dataLabels\">\r\n </apx-chart>\r\n </div>\r\n </ng-container>\r\n</tk-card>", styles: [":host{width:100%;display:block;height:100%;box-sizing:border-box}.chart-container{width:100%;height:220px;display:flex;justify-content:flex-start;align-items:center;padding:0}.chart-container apx-chart{width:100%;max-width:400px}:host ::ng-deep .apexcharts-legend{display:flex!important;flex-direction:column!important;justify-content:center!important}:host ::ng-deep .apexcharts-legend .apexcharts-legend-marker{border-radius:2px!important}:host ::ng-deep .apexcharts-legend .apexcharts-legend-text{font-weight:500!important;color:#333!important}\n"] }]
|
|
623
|
-
}], propDecorators: { title: [{
|
|
624
|
-
type: Input
|
|
625
|
-
}], totalUpgraded: [{
|
|
626
|
-
type: Input
|
|
627
|
-
}], totalNotUpgraded: [{
|
|
628
|
-
type: Input
|
|
629
|
-
}] } });
|
|
630
|
-
|
|
631
|
-
class SharedModule {
|
|
632
|
-
}
|
|
633
|
-
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
634
|
-
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, declarations: [CardComponent,
|
|
635
|
-
StatCardComponent,
|
|
636
|
-
StatusListCardComponent,
|
|
637
|
-
ChartCardComponent,
|
|
638
|
-
SummaryCardComponent,
|
|
639
|
-
TableFiltersComponent], imports: [CommonModule,
|
|
640
|
-
MaterialModule,
|
|
641
|
-
NgApexchartsModule,
|
|
642
|
-
HttpClientModule], exports: [CardComponent,
|
|
643
|
-
StatCardComponent,
|
|
644
|
-
StatusListCardComponent,
|
|
645
|
-
ChartCardComponent,
|
|
646
|
-
SummaryCardComponent,
|
|
647
|
-
TableFiltersComponent] });
|
|
648
|
-
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, imports: [CommonModule,
|
|
649
|
-
MaterialModule,
|
|
650
|
-
NgApexchartsModule,
|
|
651
|
-
HttpClientModule] });
|
|
652
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, decorators: [{
|
|
653
|
-
type: NgModule,
|
|
654
|
-
args: [{
|
|
655
|
-
declarations: [
|
|
656
|
-
CardComponent,
|
|
657
|
-
StatCardComponent,
|
|
658
|
-
StatusListCardComponent,
|
|
659
|
-
ChartCardComponent,
|
|
660
|
-
SummaryCardComponent,
|
|
661
|
-
TableFiltersComponent
|
|
662
|
-
],
|
|
663
|
-
imports: [
|
|
664
|
-
CommonModule,
|
|
665
|
-
MaterialModule,
|
|
666
|
-
NgApexchartsModule,
|
|
667
|
-
HttpClientModule
|
|
668
|
-
],
|
|
669
|
-
exports: [
|
|
670
|
-
CardComponent,
|
|
671
|
-
StatCardComponent,
|
|
672
|
-
StatusListCardComponent,
|
|
673
|
-
ChartCardComponent,
|
|
674
|
-
SummaryCardComponent,
|
|
675
|
-
TableFiltersComponent
|
|
676
|
-
]
|
|
677
|
-
}]
|
|
678
|
-
}] });
|
|
679
|
-
|
|
680
|
-
class UserUpgradeModule {
|
|
681
|
-
}
|
|
682
|
-
UserUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
683
|
-
UserUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, declarations: [UserUpgradeDataTableComponent], imports: [CommonModule,
|
|
684
|
-
SharedModule,
|
|
685
|
-
MatTableModule,
|
|
686
|
-
MatButtonModule,
|
|
687
|
-
MatCheckboxModule], exports: [UserUpgradeDataTableComponent] });
|
|
688
|
-
UserUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, imports: [CommonModule,
|
|
689
|
-
SharedModule,
|
|
690
|
-
MatTableModule,
|
|
691
|
-
MatButtonModule,
|
|
692
|
-
MatCheckboxModule] });
|
|
693
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, decorators: [{
|
|
694
|
-
type: NgModule,
|
|
695
|
-
args: [{
|
|
696
|
-
declarations: [
|
|
697
|
-
UserUpgradeDataTableComponent
|
|
698
|
-
],
|
|
699
|
-
imports: [
|
|
700
|
-
CommonModule,
|
|
701
|
-
SharedModule,
|
|
702
|
-
MatTableModule,
|
|
703
|
-
MatButtonModule,
|
|
704
|
-
MatCheckboxModule
|
|
705
|
-
],
|
|
706
|
-
exports: [
|
|
707
|
-
UserUpgradeDataTableComponent
|
|
708
|
-
]
|
|
709
|
-
}]
|
|
710
|
-
}] });
|
|
711
|
-
|
|
712
|
-
class SiteUpgradeService {
|
|
713
|
-
constructor() {
|
|
714
|
-
this.apiService = inject(APIService);
|
|
715
|
-
}
|
|
716
|
-
getSiteUpgradeStatusCounts() {
|
|
717
|
-
return this.apiService.fetch(API.SITE_UPGRADE.GET_SITES_UPGRADE_STATUS_COUNTS.replace(':customerId', this.customerId));
|
|
718
|
-
}
|
|
719
|
-
getSiteUpgradeRecords() {
|
|
720
|
-
return this.apiService.fetch(API.SITE_UPGRADE.GET_SITES_UPGRADE_DATA.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
721
|
-
return resp.content.map((record) => ({
|
|
722
|
-
siteId: record.siteId,
|
|
723
|
-
siteName: record.siteName,
|
|
724
|
-
totalUsers: record.totalUsers,
|
|
725
|
-
totalReadyUsers: record.readyUsers,
|
|
726
|
-
totalNotReadyUsers: record.notReadyUsers,
|
|
727
|
-
totalUpgradedUsers: record.totalUpgradedUsers,
|
|
728
|
-
totalFailedUsers: record.totalFailedToUpgradeUsers,
|
|
729
|
-
locationMapping: record.locationMappingStatus,
|
|
730
|
-
PSTNTrunk: record.pstnTrunkStatus,
|
|
731
|
-
upgradeStatus: record.siteUpgradeStatus
|
|
732
|
-
}));
|
|
733
|
-
}));
|
|
734
|
-
}
|
|
735
|
-
// TODO: Impl the site upgrade logic here
|
|
736
|
-
upgradeSite(site) {
|
|
737
|
-
const customerId = site.customerId;
|
|
738
|
-
const siteId = site.siteId;
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
SiteUpgradeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
742
|
-
SiteUpgradeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, providedIn: 'root' });
|
|
743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, decorators: [{
|
|
744
|
-
type: Injectable,
|
|
745
|
-
args: [{
|
|
746
|
-
providedIn: 'root'
|
|
747
|
-
}]
|
|
748
|
-
}] });
|
|
749
|
-
|
|
750
|
-
class SiteUpgradeDataTableComponent {
|
|
751
|
-
constructor() {
|
|
752
|
-
this.siteUpgradeService = inject(SiteUpgradeService);
|
|
753
|
-
this.apiService = inject(APIService);
|
|
754
|
-
this.destroy$ = new Subject();
|
|
755
|
-
this.STATUS_ENTRIES = STATUS_ENTRIES;
|
|
756
|
-
this.displayedColumns = ['site', 'ready users', 'upgraded users', 'location mapping', 'pstn trunk', 'site upgrade status'];
|
|
757
|
-
this.selection = new SelectionModel(true, []);
|
|
758
|
-
this.filters = [];
|
|
759
|
-
this.activeFilters = {};
|
|
760
|
-
this.statusCounts = {};
|
|
761
|
-
}
|
|
762
|
-
ngOnInit() {
|
|
763
|
-
this.apiService.token = this.token;
|
|
764
|
-
this.siteUpgradeService.customerId = this.customerId;
|
|
765
|
-
this.siteUpgradeService.getSiteUpgradeRecords()
|
|
766
|
-
.pipe(takeUntil(this.destroy$))
|
|
767
|
-
.subscribe((records) => {
|
|
768
|
-
this.data = new MatTableDataSource(records);
|
|
769
|
-
this.setupCustomFilter();
|
|
770
|
-
this.initializeFilters(records);
|
|
771
|
-
});
|
|
772
|
-
this.siteUpgradeService.getSiteUpgradeStatusCounts()
|
|
773
|
-
.pipe(takeUntil(this.destroy$))
|
|
774
|
-
.subscribe((statusCounts) => {
|
|
775
|
-
this.statusCounts['Ready'] = statusCounts['READY'] || 0;
|
|
776
|
-
this.statusCounts['Not Ready'] = statusCounts['NOT_READY'] || 0;
|
|
777
|
-
this.statusCounts['Completed'] = statusCounts['COMPLETED'] || 0;
|
|
778
|
-
this.statusCounts['Failed'] = statusCounts['FAILED'] || 0;
|
|
779
|
-
});
|
|
780
|
-
}
|
|
781
|
-
initializeFilters(records) {
|
|
782
|
-
// Extract unique sites from actual data
|
|
783
|
-
const uniqueSites = [...new Set(records.map(record => record.siteName))];
|
|
784
|
-
const siteOptions = uniqueSites.map(site => ({
|
|
785
|
-
label: site,
|
|
786
|
-
value: site.toLowerCase().replace(/\s+/g, '-')
|
|
787
|
-
}));
|
|
788
|
-
// Extract unique statuses from actual data
|
|
789
|
-
const uniqueStatuses = [...new Set(records.map(record => record.upgradeStatus))];
|
|
790
|
-
const statusOptions = uniqueStatuses.map(status => ({
|
|
791
|
-
label: STATUS_ENTRIES[status],
|
|
792
|
-
value: status.toLowerCase().replace(/\s+/g, '-')
|
|
793
|
-
}));
|
|
794
|
-
this.filters = [
|
|
795
|
-
{
|
|
796
|
-
id: 'sites',
|
|
797
|
-
type: 'select',
|
|
798
|
-
columnKey: 'Site',
|
|
799
|
-
placeholder: 'Sites',
|
|
800
|
-
options: siteOptions
|
|
801
|
-
},
|
|
802
|
-
{
|
|
803
|
-
id: 'status',
|
|
804
|
-
type: 'select',
|
|
805
|
-
columnKey: 'Site Upgrade Status',
|
|
806
|
-
placeholder: 'Upgrade Status',
|
|
807
|
-
options: statusOptions
|
|
808
|
-
}
|
|
809
|
-
];
|
|
810
|
-
}
|
|
811
|
-
onFilter(filterEvent) {
|
|
812
|
-
const { key, value } = filterEvent;
|
|
813
|
-
let filterValue;
|
|
814
|
-
if (value && value.value !== undefined) {
|
|
815
|
-
filterValue = value.value;
|
|
816
|
-
}
|
|
817
|
-
else if (value && value.target) {
|
|
818
|
-
filterValue = value.target.value;
|
|
819
|
-
}
|
|
820
|
-
else {
|
|
821
|
-
filterValue = value;
|
|
822
|
-
}
|
|
823
|
-
// Handle "All" option or empty values - remove the filter
|
|
824
|
-
if (filterValue === 'all' || !filterValue || filterValue === '') {
|
|
825
|
-
delete this.activeFilters[key];
|
|
826
|
-
}
|
|
827
|
-
else {
|
|
828
|
-
this.activeFilters[key] = filterValue;
|
|
829
|
-
}
|
|
830
|
-
this.applyFilters();
|
|
831
|
-
}
|
|
832
|
-
setupCustomFilter() {
|
|
833
|
-
this.data.filterPredicate = (data, filter) => {
|
|
834
|
-
const filters = JSON.parse(filter || '{}');
|
|
835
|
-
for (const [key, value] of Object.entries(filters)) {
|
|
836
|
-
if (!value)
|
|
837
|
-
continue;
|
|
838
|
-
switch (key) {
|
|
839
|
-
case 'Site':
|
|
840
|
-
if (data.siteName !== this.getSiteNameFromValue(value)) {
|
|
841
|
-
return false;
|
|
842
|
-
}
|
|
843
|
-
break;
|
|
844
|
-
case 'Site Upgrade Status':
|
|
845
|
-
if (!this.matchesUpgradeStatus(data.upgradeStatus, value)) {
|
|
846
|
-
return false;
|
|
847
|
-
}
|
|
848
|
-
break;
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
return true;
|
|
852
|
-
};
|
|
853
|
-
}
|
|
854
|
-
applyFilters() {
|
|
855
|
-
this.data.filter = JSON.stringify(this.activeFilters);
|
|
856
|
-
}
|
|
857
|
-
getSiteNameFromValue(value) {
|
|
858
|
-
// Since we're now using actual site names, just convert back from slug format
|
|
859
|
-
return value.split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
|
|
860
|
-
}
|
|
861
|
-
matchesUpgradeStatus(status, filterValue) {
|
|
862
|
-
// Handle direct status matching for cleaner implementation
|
|
863
|
-
return status.toLowerCase().replace(/\s+/g, '-') === filterValue.toLowerCase();
|
|
864
|
-
}
|
|
865
|
-
get filteredDataCount() {
|
|
866
|
-
return this.data?.filteredData?.length || 0;
|
|
867
|
-
}
|
|
868
|
-
/** Whether the number of selected elements matches the total number of rows. */
|
|
869
|
-
isAllSelected() {
|
|
870
|
-
const numSelected = this.selection.selected.length;
|
|
871
|
-
const numRows = this.data?.data.length || 0;
|
|
872
|
-
return numSelected === numRows;
|
|
873
|
-
}
|
|
874
|
-
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
875
|
-
masterToggle() {
|
|
876
|
-
this.isAllSelected() ?
|
|
877
|
-
this.selection.clear() :
|
|
878
|
-
this.data?.data.forEach(row => this.selection.select(row));
|
|
879
|
-
}
|
|
880
|
-
getLocationMappingClass(locationMapping) {
|
|
881
|
-
return locationMapping ? 'success' : 'error';
|
|
882
|
-
}
|
|
883
|
-
getSiteUpgradeStatusClass(status) {
|
|
884
|
-
switch (status.toLowerCase()) {
|
|
885
|
-
case 'ready':
|
|
886
|
-
return 'ready';
|
|
887
|
-
case 'partial ready':
|
|
888
|
-
return 'partial-ready';
|
|
889
|
-
case 'completed':
|
|
890
|
-
return 'completed';
|
|
891
|
-
case 'failed':
|
|
892
|
-
return 'failed';
|
|
893
|
-
case 'not ready':
|
|
894
|
-
return 'not-ready';
|
|
895
|
-
default:
|
|
896
|
-
return 'not-ready';
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
upgradeSite(site) {
|
|
900
|
-
this.siteUpgradeService.upgradeSite(site);
|
|
901
|
-
}
|
|
902
|
-
ngOnDestroy() {
|
|
903
|
-
this.destroy$.next();
|
|
904
|
-
this.destroy$.complete();
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
SiteUpgradeDataTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
908
|
-
SiteUpgradeDataTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SiteUpgradeDataTableComponent, selector: "tk-site-upgrade-data-table", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: "<div class=\"wrapper\">\r\n <div class=\"site-upgrade-status-wrapper\">\r\n <tk-summary-card [description]=\"'Sites are ready to upgrade'\" [value]=\"statusCounts['Ready']\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Sites are not ready'\" [value]=\"statusCounts['Not Ready']\" [status]=\"'Not Ready'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Sites failed to upgrade'\" [value]=\"statusCounts['Failed']\" [status]=\"'Failed'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Successfully upgraded'\" [value]=\"statusCounts['Completed']\" [status]=\"'Completed'\"></tk-summary-card>\r\n </div>\r\n <div class=\"table-action-panel\">\r\n <tk-table-filters *ngIf=\"filters.length > 0\" [filters]=\"filters\" (filter)=\"onFilter($event)\"></tk-table-filters>\r\n <div class=\"action-wrapper\">\r\n <span>{{filteredDataCount}} Sites</span>\r\n </div>\r\n </div>\r\n <table mat-table [dataSource]=\"data\" class=\"site-upgrade-table\">\r\n\r\n <!-- Site Column -->\r\n <ng-container matColumnDef=\"site\">\r\n <th mat-header-cell *matHeaderCellDef>Site</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"site-info\">\r\n <span class=\"site-indicator\"></span>\r\n {{element.siteName}}\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Ready Users Column -->\r\n <ng-container matColumnDef=\"ready users\">\r\n <th mat-header-cell *matHeaderCellDef>Ready Users</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"user-count-info\">\r\n <div class=\"user-count\">{{element.totalReadyUsers}}/{{element.totalUsers}}</div>\r\n <div class=\"user-label\">Ready/Total</div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Upgraded Users Column -->\r\n <ng-container matColumnDef=\"upgraded users\">\r\n <th mat-header-cell *matHeaderCellDef>Upgraded Users</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"user-count-info\">\r\n <div class=\"user-count\">{{element.totalUpgradedUsers}}/{{element.totalUsers}}</div>\r\n <div class=\"user-label\">Upgraded/Total</div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Location Mapping Column -->\r\n <ng-container matColumnDef=\"location mapping\">\r\n <th mat-header-cell *matHeaderCellDef>Location Mapping</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"status-icon-cell\">\r\n <img *ngIf=\"element.locationMapping\" src=\"assets/icons/check2_icon.png\" alt=\"Location Mapping Enabled\"/>\r\n <img *ngIf=\"!element.locationMapping\" src=\"assets/icons/issue_icon.png\" alt=\"Location Mapping Disabled\"/>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- PSTN Trunk Column -->\r\n <ng-container matColumnDef=\"pstn trunk\">\r\n <th mat-header-cell *matHeaderCellDef>PSTN Trunk</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"status-icon-cell\">\r\n <img *ngIf=\"element.PSTNTrunk\" src=\"assets/icons/check2_icon.png\" alt=\"PSTN Trunk Enabled\"/>\r\n <img *ngIf=\"!element.PSTNTrunk\" src=\"assets/icons/issue_icon.png\" alt=\"PSTN Trunk Disabled\"/>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Site Upgrade Status Column -->\r\n <ng-container matColumnDef=\"site upgrade status\">\r\n <th mat-header-cell *matHeaderCellDef>Site Upgrade Status</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"upgrade-status-cell\">\r\n <ng-container *ngIf=\"STATUS_ENTRIES[element.upgradeStatus] === 'Ready'; else statusBlock\">\r\n <button mat-button color=\"primary\" class=\"upgrade-button\" (click)=\"upgradeSite(element)\">Upgrade</button>\r\n </ng-container>\r\n <ng-template #statusBlock>\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getSiteUpgradeStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{ STATUS_ENTRIES[element.upgradeStatus] }}</span>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n</table>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";.wrapper{display:flex;flex-direction:column;gap:1rem}.site-upgrade-status-wrapper{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.site-upgrade-table{font-family:Inter,Inter,sans-serif;width:100%;background:white;border-radius:8px;overflow:hidden;font-size:14px}.site-upgrade-table .mat-header-row{font-size:12px;height:35px}.site-upgrade-table .mat-cell{border-bottom:1px solid #d6d6d6}.site-upgrade-table .mat-header-cell{border-bottom:1px solid #afafaf}.site-upgrade-table .site-info{display:flex;align-items:center;gap:8px}.site-upgrade-table .site-info .site-indicator{width:8px;height:8px;border-radius:50%;background-color:#1170cf}.site-upgrade-table .device-info{display:flex;align-items:center;gap:12px}.site-upgrade-table .device-info .device-name-wrapper{display:flex;align-items:center;gap:4px}.site-upgrade-table .device-info .device-name-wrapper .device-name{font-weight:500;color:#212121}.site-upgrade-table .device-info .device-name-wrapper .device-indicator{width:8px;height:8px;border-radius:50%;background-color:#f8cd00}.site-upgrade-table .device-info .device-model{font-size:12px;color:#757575}.site-upgrade-table .status-info{display:flex;align-items:center;gap:8px}.site-upgrade-table .status-info .status-indicator{width:8px;height:8px;border-radius:50%}.site-upgrade-table .status-info .status-indicator.ready{background-color:#1d805f}.site-upgrade-table .status-info .status-indicator.partial-ready{background-color:#f8cd00}.site-upgrade-table .status-info .status-indicator.not-ready{background-color:#9e9e9e}.site-upgrade-table .status-info .status-indicator.completed{background-color:#1d805f}.site-upgrade-table .status-info .status-indicator.failed{background-color:#f23933}.site-upgrade-table .dependencies-text{font-size:12px;background-color:#ffe9e9;padding:.25rem .5rem;border-radius:3px;color:#000}.site-upgrade-table .upgrade-status-cell{display:flex;align-items:center;justify-content:flex-start}.site-upgrade-table .upgrade-button{border:1px solid #08599c;color:#08599c;background:white;border-radius:20px;font-size:14px;font-style:normal;font-weight:500;height:32px;display:flex;align-items:center;justify-content:center}.site-upgrade-table .upgrade-button:hover{background-color:#e3f2fd}.site-upgrade-table .user-count-info .user-count{font-weight:500;color:#212121}.site-upgrade-table .user-count-info .user-label{font-size:12px;color:#757575}.site-upgrade-table .status-icon-cell{display:flex;align-items:center}.action-wrapper{display:flex;align-items:center;flex:1;justify-content:space-between;gap:1rem}.table-action-panel{width:100%;display:flex;justify-content:flex-start;align-items:center;gap:1rem}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SummaryCardComponent, selector: "tk-summary-card", inputs: ["value", "status", "description"] }, { kind: "component", type: TableFiltersComponent, selector: "tk-table-filters", inputs: ["filters"], outputs: ["filter"] }, { kind: "component", type: i4$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i4$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i4$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i4$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i4$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i4$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i4$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i4$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i4$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i4$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i5$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }] });
|
|
909
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeDataTableComponent, decorators: [{
|
|
910
|
-
type: Component,
|
|
911
|
-
args: [{ selector: 'tk-site-upgrade-data-table', template: "<div class=\"wrapper\">\r\n <div class=\"site-upgrade-status-wrapper\">\r\n <tk-summary-card [description]=\"'Sites are ready to upgrade'\" [value]=\"statusCounts['Ready']\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Sites are not ready'\" [value]=\"statusCounts['Not Ready']\" [status]=\"'Not Ready'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Sites failed to upgrade'\" [value]=\"statusCounts['Failed']\" [status]=\"'Failed'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Successfully upgraded'\" [value]=\"statusCounts['Completed']\" [status]=\"'Completed'\"></tk-summary-card>\r\n </div>\r\n <div class=\"table-action-panel\">\r\n <tk-table-filters *ngIf=\"filters.length > 0\" [filters]=\"filters\" (filter)=\"onFilter($event)\"></tk-table-filters>\r\n <div class=\"action-wrapper\">\r\n <span>{{filteredDataCount}} Sites</span>\r\n </div>\r\n </div>\r\n <table mat-table [dataSource]=\"data\" class=\"site-upgrade-table\">\r\n\r\n <!-- Site Column -->\r\n <ng-container matColumnDef=\"site\">\r\n <th mat-header-cell *matHeaderCellDef>Site</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"site-info\">\r\n <span class=\"site-indicator\"></span>\r\n {{element.siteName}}\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Ready Users Column -->\r\n <ng-container matColumnDef=\"ready users\">\r\n <th mat-header-cell *matHeaderCellDef>Ready Users</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"user-count-info\">\r\n <div class=\"user-count\">{{element.totalReadyUsers}}/{{element.totalUsers}}</div>\r\n <div class=\"user-label\">Ready/Total</div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Upgraded Users Column -->\r\n <ng-container matColumnDef=\"upgraded users\">\r\n <th mat-header-cell *matHeaderCellDef>Upgraded Users</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"user-count-info\">\r\n <div class=\"user-count\">{{element.totalUpgradedUsers}}/{{element.totalUsers}}</div>\r\n <div class=\"user-label\">Upgraded/Total</div>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Location Mapping Column -->\r\n <ng-container matColumnDef=\"location mapping\">\r\n <th mat-header-cell *matHeaderCellDef>Location Mapping</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"status-icon-cell\">\r\n <img *ngIf=\"element.locationMapping\" src=\"assets/icons/check2_icon.png\" alt=\"Location Mapping Enabled\"/>\r\n <img *ngIf=\"!element.locationMapping\" src=\"assets/icons/issue_icon.png\" alt=\"Location Mapping Disabled\"/>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- PSTN Trunk Column -->\r\n <ng-container matColumnDef=\"pstn trunk\">\r\n <th mat-header-cell *matHeaderCellDef>PSTN Trunk</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"status-icon-cell\">\r\n <img *ngIf=\"element.PSTNTrunk\" src=\"assets/icons/check2_icon.png\" alt=\"PSTN Trunk Enabled\"/>\r\n <img *ngIf=\"!element.PSTNTrunk\" src=\"assets/icons/issue_icon.png\" alt=\"PSTN Trunk Disabled\"/>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Site Upgrade Status Column -->\r\n <ng-container matColumnDef=\"site upgrade status\">\r\n <th mat-header-cell *matHeaderCellDef>Site Upgrade Status</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"upgrade-status-cell\">\r\n <ng-container *ngIf=\"STATUS_ENTRIES[element.upgradeStatus] === 'Ready'; else statusBlock\">\r\n <button mat-button color=\"primary\" class=\"upgrade-button\" (click)=\"upgradeSite(element)\">Upgrade</button>\r\n </ng-container>\r\n <ng-template #statusBlock>\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getSiteUpgradeStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{ STATUS_ENTRIES[element.upgradeStatus] }}</span>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n</table>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";.wrapper{display:flex;flex-direction:column;gap:1rem}.site-upgrade-status-wrapper{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.site-upgrade-table{font-family:Inter,Inter,sans-serif;width:100%;background:white;border-radius:8px;overflow:hidden;font-size:14px}.site-upgrade-table .mat-header-row{font-size:12px;height:35px}.site-upgrade-table .mat-cell{border-bottom:1px solid #d6d6d6}.site-upgrade-table .mat-header-cell{border-bottom:1px solid #afafaf}.site-upgrade-table .site-info{display:flex;align-items:center;gap:8px}.site-upgrade-table .site-info .site-indicator{width:8px;height:8px;border-radius:50%;background-color:#1170cf}.site-upgrade-table .device-info{display:flex;align-items:center;gap:12px}.site-upgrade-table .device-info .device-name-wrapper{display:flex;align-items:center;gap:4px}.site-upgrade-table .device-info .device-name-wrapper .device-name{font-weight:500;color:#212121}.site-upgrade-table .device-info .device-name-wrapper .device-indicator{width:8px;height:8px;border-radius:50%;background-color:#f8cd00}.site-upgrade-table .device-info .device-model{font-size:12px;color:#757575}.site-upgrade-table .status-info{display:flex;align-items:center;gap:8px}.site-upgrade-table .status-info .status-indicator{width:8px;height:8px;border-radius:50%}.site-upgrade-table .status-info .status-indicator.ready{background-color:#1d805f}.site-upgrade-table .status-info .status-indicator.partial-ready{background-color:#f8cd00}.site-upgrade-table .status-info .status-indicator.not-ready{background-color:#9e9e9e}.site-upgrade-table .status-info .status-indicator.completed{background-color:#1d805f}.site-upgrade-table .status-info .status-indicator.failed{background-color:#f23933}.site-upgrade-table .dependencies-text{font-size:12px;background-color:#ffe9e9;padding:.25rem .5rem;border-radius:3px;color:#000}.site-upgrade-table .upgrade-status-cell{display:flex;align-items:center;justify-content:flex-start}.site-upgrade-table .upgrade-button{border:1px solid #08599c;color:#08599c;background:white;border-radius:20px;font-size:14px;font-style:normal;font-weight:500;height:32px;display:flex;align-items:center;justify-content:center}.site-upgrade-table .upgrade-button:hover{background-color:#e3f2fd}.site-upgrade-table .user-count-info .user-count{font-weight:500;color:#212121}.site-upgrade-table .user-count-info .user-label{font-size:12px;color:#757575}.site-upgrade-table .status-icon-cell{display:flex;align-items:center}.action-wrapper{display:flex;align-items:center;flex:1;justify-content:space-between;gap:1rem}.table-action-panel{width:100%;display:flex;justify-content:flex-start;align-items:center;gap:1rem}\n"] }]
|
|
912
|
-
}], ctorParameters: function () { return []; }, propDecorators: { token: [{
|
|
913
|
-
type: Input
|
|
914
|
-
}], customerId: [{
|
|
915
|
-
type: Input
|
|
916
|
-
}] } });
|
|
917
|
-
|
|
918
|
-
class SiteUpgradeModule {
|
|
919
|
-
}
|
|
920
|
-
SiteUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
921
|
-
SiteUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, declarations: [SiteUpgradeDataTableComponent], imports: [CommonModule,
|
|
922
|
-
SharedModule,
|
|
923
|
-
MatTableModule,
|
|
924
|
-
MatIconModule,
|
|
925
|
-
MatButtonModule], exports: [SiteUpgradeDataTableComponent] });
|
|
926
|
-
SiteUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, imports: [CommonModule,
|
|
927
|
-
SharedModule,
|
|
928
|
-
MatTableModule,
|
|
929
|
-
MatIconModule,
|
|
930
|
-
MatButtonModule] });
|
|
931
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, decorators: [{
|
|
932
|
-
type: NgModule,
|
|
933
|
-
args: [{
|
|
934
|
-
declarations: [
|
|
935
|
-
SiteUpgradeDataTableComponent
|
|
936
|
-
],
|
|
937
|
-
imports: [
|
|
938
|
-
CommonModule,
|
|
939
|
-
SharedModule,
|
|
940
|
-
MatTableModule,
|
|
941
|
-
MatIconModule,
|
|
942
|
-
MatButtonModule
|
|
943
|
-
],
|
|
944
|
-
exports: [
|
|
945
|
-
SiteUpgradeDataTableComponent
|
|
946
|
-
]
|
|
947
|
-
}]
|
|
948
|
-
}] });
|
|
949
|
-
|
|
950
|
-
class UpgradeOverviewService {
|
|
951
|
-
constructor(apiService) {
|
|
952
|
-
this.apiService = apiService;
|
|
953
|
-
}
|
|
954
|
-
getUpgradePreconditions() {
|
|
955
|
-
return this.apiService.fetch(API.OVERVIEW.GET_UPGRADE_PRECONDITIONS.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
956
|
-
return {
|
|
957
|
-
id: resp.id,
|
|
958
|
-
customerId: resp.customerId,
|
|
959
|
-
controlHubIntegration: resp.controlHubIntegration,
|
|
960
|
-
numberOfAvailableLicences: resp.availableLicences
|
|
961
|
-
};
|
|
962
|
-
}));
|
|
963
|
-
}
|
|
964
|
-
getSiteInfrastructureSummary() {
|
|
965
|
-
return this.apiService.fetch(API.OVERVIEW.GET_SITE_INFRASTRUCTURE.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
966
|
-
return {
|
|
967
|
-
id: resp.id,
|
|
968
|
-
customerId: resp.customerId,
|
|
969
|
-
totalSites: resp.totalSites,
|
|
970
|
-
totalLocations: resp.totalLocations,
|
|
971
|
-
totalPSTNs: resp.totalPSTNS
|
|
972
|
-
};
|
|
973
|
-
}));
|
|
974
|
-
}
|
|
975
|
-
getUsersUpgradeSummary() {
|
|
976
|
-
return this.apiService.fetch(API.OVERVIEW.GET_USERS_UPGRADE_SUMMARY.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
977
|
-
return {
|
|
978
|
-
id: resp.id,
|
|
979
|
-
customerId: resp.customerId,
|
|
980
|
-
totalUsers: resp.totalUsers,
|
|
981
|
-
totalReadyUsers: resp.totalUsersReady,
|
|
982
|
-
totalUpgradedUsers: resp.totalUsersUpgraded
|
|
983
|
-
};
|
|
984
|
-
}));
|
|
985
|
-
}
|
|
986
|
-
getSitesUpgradeSummary() {
|
|
987
|
-
return this.apiService.fetch(API.OVERVIEW.GET_SITES_UPGRADE_SUMMARY.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
988
|
-
return {
|
|
989
|
-
id: resp.id,
|
|
990
|
-
customerId: resp.customerId,
|
|
991
|
-
totalSites: resp.totalSites,
|
|
992
|
-
totalReadySites: resp.totalSitesReady,
|
|
993
|
-
totalUpgradedSites: resp.totalSitesUpgraded
|
|
994
|
-
};
|
|
995
|
-
}));
|
|
996
|
-
}
|
|
997
|
-
getUsersUpgradeReadiness() {
|
|
998
|
-
return this.apiService.fetch(API.OVERVIEW.GET_USERS_UPGRADE_READINESS.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
999
|
-
return {
|
|
1000
|
-
id: resp.id,
|
|
1001
|
-
customerId: resp.customerId,
|
|
1002
|
-
totalUsers: resp.totalUsers,
|
|
1003
|
-
totalReadyUsers: resp.totalUsersReady
|
|
1004
|
-
};
|
|
1005
|
-
}));
|
|
1006
|
-
}
|
|
1007
|
-
getSitesUpgradeReadiness() {
|
|
1008
|
-
return this.apiService.fetch(API.OVERVIEW.GET_SITES_UPGRADE_READINESS.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1009
|
-
return {
|
|
1010
|
-
id: resp.id,
|
|
1011
|
-
customerId: resp.customerId,
|
|
1012
|
-
totalSites: resp.totalSites,
|
|
1013
|
-
totalReadySites: resp.totalSitesReady
|
|
1014
|
-
};
|
|
1015
|
-
}));
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
UpgradeOverviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, deps: [{ token: APIService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1019
|
-
UpgradeOverviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, providedIn: 'root' });
|
|
1020
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, decorators: [{
|
|
1021
|
-
type: Injectable,
|
|
1022
|
-
args: [{
|
|
1023
|
-
providedIn: 'root'
|
|
1024
|
-
}]
|
|
1025
|
-
}], ctorParameters: function () { return [{ type: APIService }]; } });
|
|
1026
|
-
|
|
1027
|
-
class ReadyToUpgradeUsersCardComponent {
|
|
1028
|
-
constructor() {
|
|
1029
|
-
this.apiService = inject(APIService);
|
|
1030
|
-
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1031
|
-
this.destroy$ = new Subject();
|
|
1032
|
-
this.title = 'Ready Users';
|
|
1033
|
-
this.type = 'user';
|
|
1034
|
-
this.upgradeStatus = 'ready';
|
|
1035
|
-
this.loading = false;
|
|
1036
|
-
}
|
|
1037
|
-
ngOnInit() {
|
|
1038
|
-
this.apiService.token = this.token;
|
|
1039
|
-
this.upgradeOverviewService.customerId = this.customerId;
|
|
1040
|
-
this.loading = true;
|
|
1041
|
-
this.upgradeOverviewService.getUsersUpgradeReadiness()
|
|
1042
|
-
.pipe(takeUntil(this.destroy$))
|
|
1043
|
-
.subscribe((stats) => {
|
|
1044
|
-
this.readinessStats = stats;
|
|
1045
|
-
this.loading = false;
|
|
1046
|
-
});
|
|
1047
|
-
}
|
|
1048
|
-
ngOnDestroy() {
|
|
1049
|
-
this.destroy$.next();
|
|
1050
|
-
this.destroy$.complete();
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
ReadyToUpgradeUsersCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeUsersCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1054
|
-
ReadyToUpgradeUsersCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ReadyToUpgradeUsersCardComponent, selector: "tk-ready-to-upgrade-users-card", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: " <tk-stat-card\r\n *ngIf=\"!loading\"\r\n [title]=\"title\"\r\n [type]=\"type\"\r\n [readinessStats]=\"readinessStats\"\r\n [upgradeStatus]=\"upgradeStatus\">\r\n </tk-stat-card>", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: StatCardComponent, selector: "tk-stat-card", inputs: ["title", "type", "readinessStats", "upgradeStatus"] }] });
|
|
1055
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeUsersCardComponent, decorators: [{
|
|
1056
|
-
type: Component,
|
|
1057
|
-
args: [{ selector: 'tk-ready-to-upgrade-users-card', template: " <tk-stat-card\r\n *ngIf=\"!loading\"\r\n [title]=\"title\"\r\n [type]=\"type\"\r\n [readinessStats]=\"readinessStats\"\r\n [upgradeStatus]=\"upgradeStatus\">\r\n </tk-stat-card>" }]
|
|
1058
|
-
}], propDecorators: { token: [{
|
|
1059
|
-
type: Input
|
|
1060
|
-
}], customerId: [{
|
|
1061
|
-
type: Input
|
|
1062
|
-
}] } });
|
|
1063
|
-
|
|
1064
|
-
class ReadyToUpgradeSitesCardComponent {
|
|
1065
|
-
constructor() {
|
|
1066
|
-
this.apiService = inject(APIService);
|
|
1067
|
-
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1068
|
-
this.destroy$ = new Subject();
|
|
1069
|
-
this.title = 'Ready Sites';
|
|
1070
|
-
this.type = 'site';
|
|
1071
|
-
this.upgradeStatus = 'ready';
|
|
1072
|
-
this.loading = false;
|
|
1073
|
-
}
|
|
1074
|
-
ngOnInit() {
|
|
1075
|
-
this.apiService.token = this.token;
|
|
1076
|
-
this.upgradeOverviewService.customerId = this.customerId;
|
|
1077
|
-
this.loading = true;
|
|
1078
|
-
this.upgradeOverviewService.getSitesUpgradeReadiness()
|
|
1079
|
-
.pipe(takeUntil(this.destroy$))
|
|
1080
|
-
.subscribe((stats) => {
|
|
1081
|
-
this.readinessStats = stats;
|
|
1082
|
-
this.loading = false;
|
|
1083
|
-
});
|
|
1084
|
-
}
|
|
1085
|
-
ngOnDestroy() {
|
|
1086
|
-
this.destroy$.next();
|
|
1087
|
-
this.destroy$.complete();
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
ReadyToUpgradeSitesCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeSitesCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1091
|
-
ReadyToUpgradeSitesCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ReadyToUpgradeSitesCardComponent, selector: "tk-ready-to-upgrade-sites-card", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: " <tk-stat-card\r\n *ngIf=\"!loading\"\r\n [title]=\"title\"\r\n [type]=\"type\"\r\n [readinessStats]=\"readinessStats\"\r\n [upgradeStatus]=\"upgradeStatus\">\r\n </tk-stat-card>", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: StatCardComponent, selector: "tk-stat-card", inputs: ["title", "type", "readinessStats", "upgradeStatus"] }] });
|
|
1092
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeSitesCardComponent, decorators: [{
|
|
1093
|
-
type: Component,
|
|
1094
|
-
args: [{ selector: 'tk-ready-to-upgrade-sites-card', template: " <tk-stat-card\r\n *ngIf=\"!loading\"\r\n [title]=\"title\"\r\n [type]=\"type\"\r\n [readinessStats]=\"readinessStats\"\r\n [upgradeStatus]=\"upgradeStatus\">\r\n </tk-stat-card>" }]
|
|
1095
|
-
}], propDecorators: { token: [{
|
|
1096
|
-
type: Input
|
|
1097
|
-
}], customerId: [{
|
|
1098
|
-
type: Input
|
|
1099
|
-
}] } });
|
|
1100
|
-
|
|
1101
|
-
class AlreadyUpgradedUsersCardComponent {
|
|
1102
|
-
constructor() {
|
|
1103
|
-
this.apiService = inject(APIService);
|
|
1104
|
-
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1105
|
-
this.destroy$ = new Subject();
|
|
1106
|
-
this.title = 'Upgraded Users';
|
|
1107
|
-
this.type = 'user';
|
|
1108
|
-
this.upgradeStatus = 'already';
|
|
1109
|
-
this.loading = false;
|
|
1110
|
-
}
|
|
1111
|
-
ngOnInit() {
|
|
1112
|
-
this.apiService.token = this.token;
|
|
1113
|
-
this.upgradeOverviewService.customerId = this.customerId;
|
|
1114
|
-
this.loading = true;
|
|
1115
|
-
this.upgradeOverviewService.getUsersUpgradeSummary()
|
|
1116
|
-
.pipe(takeUntil(this.destroy$))
|
|
1117
|
-
.subscribe((stats) => {
|
|
1118
|
-
this.readinessStats = stats;
|
|
1119
|
-
this.loading = false;
|
|
1120
|
-
});
|
|
1121
|
-
}
|
|
1122
|
-
ngOnDestroy() {
|
|
1123
|
-
this.destroy$.next();
|
|
1124
|
-
this.destroy$.complete();
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
AlreadyUpgradedUsersCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedUsersCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1128
|
-
AlreadyUpgradedUsersCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AlreadyUpgradedUsersCardComponent, selector: "tk-already-upgraded-users-card", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: `
|
|
1129
|
-
<tk-stat-card
|
|
1130
|
-
*ngIf="!loading"
|
|
1131
|
-
[title]="title"
|
|
1132
|
-
[type]="type"
|
|
1133
|
-
[readinessStats]="readinessStats"
|
|
1134
|
-
[upgradeStatus]="upgradeStatus"
|
|
1135
|
-
></tk-stat-card>
|
|
1136
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: StatCardComponent, selector: "tk-stat-card", inputs: ["title", "type", "readinessStats", "upgradeStatus"] }] });
|
|
1137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedUsersCardComponent, decorators: [{
|
|
1138
|
-
type: Component,
|
|
1139
|
-
args: [{
|
|
1140
|
-
selector: 'tk-already-upgraded-users-card',
|
|
1141
|
-
template: `
|
|
1142
|
-
<tk-stat-card
|
|
1143
|
-
*ngIf="!loading"
|
|
1144
|
-
[title]="title"
|
|
1145
|
-
[type]="type"
|
|
1146
|
-
[readinessStats]="readinessStats"
|
|
1147
|
-
[upgradeStatus]="upgradeStatus"
|
|
1148
|
-
></tk-stat-card>
|
|
1149
|
-
`
|
|
1150
|
-
}]
|
|
1151
|
-
}], propDecorators: { token: [{
|
|
1152
|
-
type: Input
|
|
1153
|
-
}], customerId: [{
|
|
1154
|
-
type: Input
|
|
1155
|
-
}] } });
|
|
1156
|
-
|
|
1157
|
-
class AlreadyUpgradedSitesCardComponent {
|
|
1158
|
-
constructor() {
|
|
1159
|
-
this.apiService = inject(APIService);
|
|
1160
|
-
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1161
|
-
this.destroy$ = new Subject();
|
|
1162
|
-
this.title = 'Upgraded Sites';
|
|
1163
|
-
this.type = 'site';
|
|
1164
|
-
this.upgradeStatus = 'already';
|
|
1165
|
-
this.loading = false;
|
|
1166
|
-
}
|
|
1167
|
-
ngOnInit() {
|
|
1168
|
-
this.apiService.token = this.token;
|
|
1169
|
-
this.upgradeOverviewService.customerId = this.customerId;
|
|
1170
|
-
this.loading = true;
|
|
1171
|
-
this.upgradeOverviewService.getSitesUpgradeSummary()
|
|
1172
|
-
.pipe(takeUntil(this.destroy$))
|
|
1173
|
-
.subscribe((stats) => {
|
|
1174
|
-
this.readinessStats = stats;
|
|
1175
|
-
this.loading = false;
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
ngOnDestroy() {
|
|
1179
|
-
this.destroy$.next();
|
|
1180
|
-
this.destroy$.complete();
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
AlreadyUpgradedSitesCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedSitesCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1184
|
-
AlreadyUpgradedSitesCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AlreadyUpgradedSitesCardComponent, selector: "tk-already-upgraded-sites-card", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: `
|
|
1185
|
-
<tk-stat-card
|
|
1186
|
-
*ngIf="!loading"
|
|
1187
|
-
[title]="title"
|
|
1188
|
-
[type]="type"
|
|
1189
|
-
[readinessStats]="readinessStats"
|
|
1190
|
-
[upgradeStatus]="upgradeStatus"
|
|
1191
|
-
></tk-stat-card>
|
|
1192
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: StatCardComponent, selector: "tk-stat-card", inputs: ["title", "type", "readinessStats", "upgradeStatus"] }] });
|
|
1193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedSitesCardComponent, decorators: [{
|
|
1194
|
-
type: Component,
|
|
1195
|
-
args: [{
|
|
1196
|
-
selector: 'tk-already-upgraded-sites-card',
|
|
1197
|
-
template: `
|
|
1198
|
-
<tk-stat-card
|
|
1199
|
-
*ngIf="!loading"
|
|
1200
|
-
[title]="title"
|
|
1201
|
-
[type]="type"
|
|
1202
|
-
[readinessStats]="readinessStats"
|
|
1203
|
-
[upgradeStatus]="upgradeStatus"
|
|
1204
|
-
></tk-stat-card>
|
|
1205
|
-
`
|
|
1206
|
-
}]
|
|
1207
|
-
}], propDecorators: { token: [{
|
|
1208
|
-
type: Input
|
|
1209
|
-
}], customerId: [{
|
|
1210
|
-
type: Input
|
|
1211
|
-
}] } });
|
|
1212
|
-
|
|
1213
|
-
class PreconditionsStatusListCardComponent {
|
|
1214
|
-
constructor() {
|
|
1215
|
-
this.apiService = inject(APIService);
|
|
1216
|
-
this.destroy$ = new Subject();
|
|
1217
|
-
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1218
|
-
this.title = 'Preconditions';
|
|
1219
|
-
}
|
|
1220
|
-
ngOnInit() {
|
|
1221
|
-
this.apiService.token = this.token;
|
|
1222
|
-
this.upgradeOverviewService.customerId = this.customerId;
|
|
1223
|
-
this.upgradeOverviewService.getUpgradePreconditions()
|
|
1224
|
-
.pipe(takeUntil(this.destroy$))
|
|
1225
|
-
.subscribe((resp) => {
|
|
1226
|
-
this.preconditions = resp;
|
|
1227
|
-
this.init();
|
|
1228
|
-
});
|
|
1229
|
-
}
|
|
1230
|
-
ngOnDestroy() {
|
|
1231
|
-
this.destroy$.next();
|
|
1232
|
-
this.destroy$.complete();
|
|
1233
|
-
}
|
|
1234
|
-
init() {
|
|
1235
|
-
this.items = [
|
|
1236
|
-
{
|
|
1237
|
-
label: 'Control Hub Integration',
|
|
1238
|
-
description: 'Control Hub Connectivity',
|
|
1239
|
-
status: this.preconditions.controlHubIntegration === 'CONNECTED'
|
|
1240
|
-
},
|
|
1241
|
-
{
|
|
1242
|
-
label: 'SIP Trunk (Local Gateway)',
|
|
1243
|
-
description: 'CUCM trunk connectivity estabilished',
|
|
1244
|
-
status: false
|
|
1245
|
-
},
|
|
1246
|
-
{
|
|
1247
|
-
label: `${this.preconditions.numberOfAvailableLicences} Available User Licences`,
|
|
1248
|
-
description: 'Webex calling licences provisioned and assgined',
|
|
1249
|
-
status: this.preconditions.numberOfAvailableLicences > 0
|
|
1250
|
-
}
|
|
1251
|
-
];
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
PreconditionsStatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PreconditionsStatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1255
|
-
PreconditionsStatusListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PreconditionsStatusListCardComponent, selector: "tk-preconditions-status-list-card", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: `
|
|
1256
|
-
<tk-status-list-card
|
|
1257
|
-
[title]="title"
|
|
1258
|
-
[items]="items"
|
|
1259
|
-
></tk-status-list-card>
|
|
1260
|
-
`, isInline: true, styles: [":host{width:100%}\n"], dependencies: [{ kind: "component", type: StatusListCardComponent, selector: "tk-status-list-card", inputs: ["title", "items"] }] });
|
|
1261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PreconditionsStatusListCardComponent, decorators: [{
|
|
1262
|
-
type: Component,
|
|
1263
|
-
args: [{ selector: 'tk-preconditions-status-list-card', template: `
|
|
1264
|
-
<tk-status-list-card
|
|
1265
|
-
[title]="title"
|
|
1266
|
-
[items]="items"
|
|
1267
|
-
></tk-status-list-card>
|
|
1268
|
-
`, styles: [":host{width:100%}\n"] }]
|
|
1269
|
-
}], propDecorators: { token: [{
|
|
1270
|
-
type: Input
|
|
1271
|
-
}], customerId: [{
|
|
1272
|
-
type: Input
|
|
1273
|
-
}] } });
|
|
1274
|
-
|
|
1275
|
-
class SiteInfrastructureStatusListCardComponent {
|
|
1276
|
-
constructor() {
|
|
1277
|
-
this.title = 'Site Infrastructure';
|
|
1278
|
-
this.apiService = inject(APIService);
|
|
1279
|
-
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1280
|
-
this.destroy$ = new Subject();
|
|
1281
|
-
}
|
|
1282
|
-
ngOnInit() {
|
|
1283
|
-
this.apiService.token = this.token;
|
|
1284
|
-
this.upgradeOverviewService.customerId = this.customerId;
|
|
1285
|
-
this.upgradeOverviewService.getSiteInfrastructureSummary()
|
|
1286
|
-
.pipe(takeUntil(this.destroy$))
|
|
1287
|
-
.subscribe((siteInfrastructure) => {
|
|
1288
|
-
this.items = [
|
|
1289
|
-
{
|
|
1290
|
-
label: 'PSTN Trunk',
|
|
1291
|
-
description: 'Public network connectivity',
|
|
1292
|
-
status: false,
|
|
1293
|
-
totalSites: siteInfrastructure.totalSites,
|
|
1294
|
-
value: siteInfrastructure.totalPSTNs
|
|
1295
|
-
},
|
|
1296
|
-
{
|
|
1297
|
-
label: 'Location Mapping',
|
|
1298
|
-
description: 'Sites defined in Control Hub with proper configuration',
|
|
1299
|
-
status: false,
|
|
1300
|
-
totalSites: siteInfrastructure.totalSites,
|
|
1301
|
-
value: siteInfrastructure.totalLocations
|
|
1302
|
-
}
|
|
1303
|
-
];
|
|
1304
|
-
});
|
|
1305
|
-
}
|
|
1306
|
-
ngOnDestroy() {
|
|
1307
|
-
this.destroy$.next();
|
|
1308
|
-
this.destroy$.complete();
|
|
1309
|
-
}
|
|
1310
|
-
}
|
|
1311
|
-
SiteInfrastructureStatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteInfrastructureStatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1312
|
-
SiteInfrastructureStatusListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SiteInfrastructureStatusListCardComponent, selector: "tk-site-infrastructure-status-list-card", inputs: { token: "token", customerId: "customerId" }, ngImport: i0, template: `
|
|
1313
|
-
<tk-status-list-card
|
|
1314
|
-
[title]="title"
|
|
1315
|
-
[items]="items"
|
|
1316
|
-
></tk-status-list-card>
|
|
1317
|
-
`, isInline: true, styles: [":host{width:100%}\n"], dependencies: [{ kind: "component", type: StatusListCardComponent, selector: "tk-status-list-card", inputs: ["title", "items"] }] });
|
|
1318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteInfrastructureStatusListCardComponent, decorators: [{
|
|
1319
|
-
type: Component,
|
|
1320
|
-
args: [{ selector: 'tk-site-infrastructure-status-list-card', template: `
|
|
1321
|
-
<tk-status-list-card
|
|
1322
|
-
[title]="title"
|
|
1323
|
-
[items]="items"
|
|
1324
|
-
></tk-status-list-card>
|
|
1325
|
-
`, styles: [":host{width:100%}\n"] }]
|
|
1326
|
-
}], propDecorators: { token: [{
|
|
1327
|
-
type: Input
|
|
1328
|
-
}], customerId: [{
|
|
1329
|
-
type: Input
|
|
1330
|
-
}] } });
|
|
1331
|
-
|
|
1332
|
-
class UpgradeStateComparisonChartCardComponent {
|
|
1333
|
-
constructor() {
|
|
1334
|
-
this.apiService = inject(APIService);
|
|
1335
|
-
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1336
|
-
this.destroy$ = new Subject();
|
|
1337
|
-
this.type = 'Users';
|
|
1338
|
-
this.loading = false;
|
|
1339
|
-
}
|
|
1340
|
-
ngOnInit() {
|
|
1341
|
-
this.apiService.token = this.token;
|
|
1342
|
-
this.upgradeOverviewService.customerId = this.customerId;
|
|
1343
|
-
this.totalUpgraded = 0;
|
|
1344
|
-
this.totalNotUpgraded = 0;
|
|
1345
|
-
this.loading = true;
|
|
1346
|
-
this.title = `Upgraded vs. Not Upgraded ${this.type}`;
|
|
1347
|
-
if (this.type === 'Sites') {
|
|
1348
|
-
this.upgradeOverviewService.getSitesUpgradeSummary()
|
|
1349
|
-
.pipe(takeUntil(this.destroy$))
|
|
1350
|
-
.subscribe((stats) => {
|
|
1351
|
-
this.totalUpgraded = parseInt(stats.totalUpgradedSites);
|
|
1352
|
-
this.totalNotUpgraded = parseInt(stats.totalReadySites);
|
|
1353
|
-
this.loading = false;
|
|
1354
|
-
});
|
|
1355
|
-
}
|
|
1356
|
-
else {
|
|
1357
|
-
this.upgradeOverviewService.getUsersUpgradeSummary()
|
|
1358
|
-
.pipe(takeUntil(this.destroy$))
|
|
1359
|
-
.subscribe((stats) => {
|
|
1360
|
-
this.totalUpgraded = parseInt(stats.totalUpgradedUsers);
|
|
1361
|
-
this.totalNotUpgraded = parseInt(stats.totalReadyUsers);
|
|
1362
|
-
this.loading = false;
|
|
1363
|
-
});
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
ngOnDestroy() {
|
|
1367
|
-
this.destroy$.next();
|
|
1368
|
-
this.destroy$.complete();
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
|
-
UpgradeStateComparisonChartCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeStateComparisonChartCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1372
|
-
UpgradeStateComparisonChartCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UpgradeStateComparisonChartCardComponent, selector: "tk-upgrade-state-comparison-chart-card", inputs: { type: "type", token: "token", customerId: "customerId" }, ngImport: i0, template: `
|
|
1373
|
-
<tk-chart-card
|
|
1374
|
-
*ngIf="!loading"
|
|
1375
|
-
[title]="title"
|
|
1376
|
-
[totalUpgraded]="totalUpgraded"
|
|
1377
|
-
[totalNotUpgraded]="totalNotUpgraded"
|
|
1378
|
-
></tk-chart-card>
|
|
1379
|
-
`, isInline: true, styles: [":host{width:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ChartCardComponent, selector: "tk-chart-card", inputs: ["title", "totalUpgraded", "totalNotUpgraded"] }] });
|
|
1380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeStateComparisonChartCardComponent, decorators: [{
|
|
1381
|
-
type: Component,
|
|
1382
|
-
args: [{ selector: "tk-upgrade-state-comparison-chart-card", template: `
|
|
1383
|
-
<tk-chart-card
|
|
1384
|
-
*ngIf="!loading"
|
|
1385
|
-
[title]="title"
|
|
1386
|
-
[totalUpgraded]="totalUpgraded"
|
|
1387
|
-
[totalNotUpgraded]="totalNotUpgraded"
|
|
1388
|
-
></tk-chart-card>
|
|
1389
|
-
`, styles: [":host{width:100%}\n"] }]
|
|
1390
|
-
}], propDecorators: { type: [{
|
|
1391
|
-
type: Input
|
|
1392
|
-
}], token: [{
|
|
1393
|
-
type: Input
|
|
1394
|
-
}], customerId: [{
|
|
1395
|
-
type: Input
|
|
1396
|
-
}] } });
|
|
1397
|
-
|
|
1398
|
-
class UpgradeOverviewModule {
|
|
1399
|
-
}
|
|
1400
|
-
UpgradeOverviewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1401
|
-
UpgradeOverviewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, declarations: [ReadyToUpgradeUsersCardComponent,
|
|
1402
|
-
ReadyToUpgradeSitesCardComponent,
|
|
1403
|
-
AlreadyUpgradedUsersCardComponent,
|
|
1404
|
-
AlreadyUpgradedSitesCardComponent,
|
|
1405
|
-
PreconditionsStatusListCardComponent,
|
|
1406
|
-
SiteInfrastructureStatusListCardComponent,
|
|
1407
|
-
UpgradeStateComparisonChartCardComponent], imports: [CommonModule,
|
|
1408
|
-
SharedModule], exports: [ReadyToUpgradeUsersCardComponent,
|
|
1409
|
-
ReadyToUpgradeSitesCardComponent,
|
|
1410
|
-
AlreadyUpgradedUsersCardComponent,
|
|
1411
|
-
AlreadyUpgradedSitesCardComponent,
|
|
1412
|
-
PreconditionsStatusListCardComponent,
|
|
1413
|
-
SiteInfrastructureStatusListCardComponent,
|
|
1414
|
-
UpgradeStateComparisonChartCardComponent] });
|
|
1415
|
-
UpgradeOverviewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, imports: [CommonModule,
|
|
1416
|
-
SharedModule] });
|
|
1417
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, decorators: [{
|
|
1418
|
-
type: NgModule,
|
|
1419
|
-
args: [{
|
|
1420
|
-
declarations: [
|
|
1421
|
-
ReadyToUpgradeUsersCardComponent,
|
|
1422
|
-
ReadyToUpgradeSitesCardComponent,
|
|
1423
|
-
AlreadyUpgradedUsersCardComponent,
|
|
1424
|
-
AlreadyUpgradedSitesCardComponent,
|
|
1425
|
-
PreconditionsStatusListCardComponent,
|
|
1426
|
-
SiteInfrastructureStatusListCardComponent,
|
|
1427
|
-
UpgradeStateComparisonChartCardComponent
|
|
1428
|
-
],
|
|
1429
|
-
imports: [
|
|
1430
|
-
CommonModule,
|
|
1431
|
-
SharedModule
|
|
1432
|
-
],
|
|
1433
|
-
exports: [
|
|
1434
|
-
ReadyToUpgradeUsersCardComponent,
|
|
1435
|
-
ReadyToUpgradeSitesCardComponent,
|
|
1436
|
-
AlreadyUpgradedUsersCardComponent,
|
|
1437
|
-
AlreadyUpgradedSitesCardComponent,
|
|
1438
|
-
PreconditionsStatusListCardComponent,
|
|
1439
|
-
SiteInfrastructureStatusListCardComponent,
|
|
1440
|
-
UpgradeStateComparisonChartCardComponent
|
|
1441
|
-
],
|
|
1442
|
-
providers: []
|
|
1443
|
-
}]
|
|
1444
|
-
}] });
|
|
1445
|
-
|
|
1446
|
-
/*
|
|
1447
|
-
* Public API Surface of @tuki-io/tuki-widgets
|
|
1448
|
-
*/
|
|
1449
|
-
// Shared Components
|
|
1450
|
-
// export * from './shared/shared.module';
|
|
1451
|
-
// Widget Modules
|
|
1452
|
-
// Types
|
|
1453
|
-
// export * from './shared/types/data-table';
|
|
1454
|
-
|
|
1455
|
-
/**
|
|
1456
|
-
* Generated bundle index. Do not edit.
|
|
1457
|
-
*/
|
|
1458
|
-
|
|
1459
|
-
export { AlreadyUpgradedSitesCardComponent, AlreadyUpgradedUsersCardComponent, PreconditionsStatusListCardComponent, ReadyToUpgradeSitesCardComponent, ReadyToUpgradeUsersCardComponent, SiteInfrastructureStatusListCardComponent, SiteUpgradeDataTableComponent, SiteUpgradeModule, UpgradeOverviewModule, UpgradeStateComparisonChartCardComponent, UserUpgradeDataTableComponent, UserUpgradeModule };
|
|
1460
|
-
//# sourceMappingURL=tuki-io-tuki-widgets-di2mt.mjs.map
|