@tuki-io/tuki-widgets 0.0.76 → 0.0.77
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/README.md +9 -10
- package/di2mt/api/api.endpoints.d.ts +26 -0
- package/di2mt/index.d.ts +5 -0
- package/{projects/tuki/widgets/di2mt/public-api.ts → di2mt/public-api.d.ts} +0 -14
- package/di2mt/shared/components/card/card.component.d.ts +6 -0
- package/di2mt/shared/components/chart-card/chart-card.component.d.ts +22 -0
- package/di2mt/shared/components/stat-card/stat-card.component.d.ts +14 -0
- package/di2mt/shared/components/status-list-card/status-list-card.component.d.ts +7 -0
- package/di2mt/shared/components/summary-card/summary-card.component.d.ts +9 -0
- package/di2mt/shared/components/table-filters/table-filters.component.d.ts +14 -0
- package/di2mt/shared/constants/app.constants.d.ts +74 -0
- package/di2mt/shared/material.module.d.ts +15 -0
- package/di2mt/shared/services/api.service.d.ts +20 -0
- package/di2mt/shared/shared.module.d.ts +16 -0
- package/di2mt/shared/types/constants.d.ts +8 -0
- package/di2mt/shared/types/data-table.d.ts +5 -0
- package/di2mt/shared/types/table/filter.d.ts +16 -0
- package/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.d.ts +13 -0
- package/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.d.ts +62 -0
- package/di2mt/widgets/site-upgrade/site-upgrade.module.d.ts +15 -0
- package/di2mt/widgets/site-upgrade/site-upgrade.service.d.ts +34 -0
- package/di2mt/widgets/site-upgrade/types/user-upgrade.d.ts +21 -0
- package/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.d.ts +19 -0
- package/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.d.ts +19 -0
- package/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.d.ts +18 -0
- package/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.d.ts +19 -0
- package/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.d.ts +19 -0
- package/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.d.ts +15 -0
- package/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.d.ts +18 -0
- package/{projects/tuki/widgets/di2mt/widgets/upgrade-overview/types/upgrade-overview.ts → di2mt/widgets/upgrade-overview/types/upgrade-overview.d.ts} +18 -20
- package/di2mt/widgets/upgrade-overview/upgrade-overview.module.d.ts +15 -0
- package/di2mt/widgets/upgrade-overview/upgrade-overview.service.d.ts +17 -0
- package/{projects/tuki/widgets/di2mt/widgets/user-upgrade/types/user-upgrade.ts → di2mt/widgets/user-upgrade/types/user-upgrade.d.ts} +1 -3
- package/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.d.ts +71 -0
- package/di2mt/widgets/user-upgrade/user-upgrade.module.d.ts +16 -0
- package/di2mt/widgets/user-upgrade/user-upgrade.service.d.ts +25 -0
- package/esm2020/di2mt/api/api.endpoints.mjs +27 -0
- package/esm2020/di2mt/public-api.mjs +24 -0
- package/esm2020/di2mt/shared/components/card/card.component.mjs +13 -0
- package/esm2020/di2mt/shared/components/chart-card/chart-card.component.mjs +62 -0
- package/esm2020/di2mt/shared/components/stat-card/stat-card.component.mjs +47 -0
- package/esm2020/di2mt/shared/components/status-list-card/status-list-card.component.mjs +17 -0
- package/esm2020/di2mt/shared/components/summary-card/summary-card.component.mjs +36 -0
- package/esm2020/di2mt/shared/components/table-filters/table-filters.component.mjs +37 -0
- package/esm2020/di2mt/shared/constants/app.constants.mjs +95 -0
- package/esm2020/di2mt/shared/material.module.mjs +76 -0
- package/esm2020/di2mt/shared/services/api.service.mjs +86 -0
- package/esm2020/di2mt/shared/shared.module.mjs +61 -0
- package/esm2020/di2mt/shared/types/constants.mjs +12 -0
- package/esm2020/di2mt/shared/types/data-table.mjs +2 -0
- package/esm2020/di2mt/shared/types/table/filter.mjs +2 -0
- package/esm2020/di2mt/tuki-io-tuki-widgets-di2mt.mjs +5 -0
- package/esm2020/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.mjs +44 -0
- package/esm2020/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.mjs +317 -0
- package/esm2020/di2mt/widgets/site-upgrade/site-upgrade.module.mjs +53 -0
- package/esm2020/di2mt/widgets/site-upgrade/site-upgrade.service.mjs +78 -0
- package/esm2020/di2mt/widgets/site-upgrade/types/user-upgrade.mjs +3 -0
- package/esm2020/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.mjs +64 -0
- package/esm2020/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.mjs +64 -0
- package/esm2020/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.mjs +68 -0
- package/esm2020/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.mjs +45 -0
- package/esm2020/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.mjs +45 -0
- package/esm2020/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.mjs +64 -0
- package/esm2020/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.mjs +74 -0
- package/esm2020/di2mt/widgets/upgrade-overview/types/upgrade-overview.mjs +2 -0
- package/esm2020/di2mt/widgets/upgrade-overview/upgrade-overview.module.mjs +59 -0
- package/esm2020/di2mt/widgets/upgrade-overview/upgrade-overview.service.mjs +82 -0
- package/esm2020/di2mt/widgets/user-upgrade/types/user-upgrade.mjs +3 -0
- package/esm2020/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.mjs +272 -0
- package/esm2020/di2mt/widgets/user-upgrade/user-upgrade.module.mjs +59 -0
- package/esm2020/di2mt/widgets/user-upgrade/user-upgrade.service.mjs +50 -0
- package/esm2020/lib/widgets.component.mjs +22 -0
- package/esm2020/lib/widgets.module.mjs +21 -0
- package/esm2020/lib/widgets.service.mjs +14 -0
- package/esm2020/public-api.mjs +7 -0
- package/esm2020/tuki-io-tuki-widgets.mjs +5 -0
- package/esm2020/user-device-manage/public-api.mjs +9 -0
- package/esm2020/user-device-manage/src/app.constants.mjs +95 -0
- package/esm2020/user-device-manage/src/classes/device.mjs +85 -0
- package/esm2020/user-device-manage/src/classes/line-association-interface.mjs +2 -0
- package/esm2020/user-device-manage/src/classes/line-association.mjs +121 -0
- package/esm2020/user-device-manage/src/classes/line-call-info-display.mjs +10 -0
- package/esm2020/user-device-manage/src/classes/line-directory.mjs +27 -0
- package/esm2020/user-device-manage/src/classes/line.mjs +18 -0
- package/esm2020/user-device-manage/src/classes/notification.mjs +32 -0
- package/esm2020/user-device-manage/src/classes/recording-options.mjs +7 -0
- package/esm2020/user-device-manage/src/classes/simplified-user.mjs +111 -0
- package/esm2020/user-device-manage/src/classes/site-defaults.mjs +21 -0
- package/esm2020/user-device-manage/src/classes/translation-pattern.mjs +32 -0
- package/esm2020/user-device-manage/src/classes/types.mjs +24 -0
- package/esm2020/user-device-manage/src/common-functions.mjs +19 -0
- package/esm2020/user-device-manage/src/confirm-dialog/info-dialog.component.mjs +34 -0
- package/esm2020/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.mjs +31 -0
- package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.mjs +16 -0
- package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.mjs +64 -0
- package/esm2020/user-device-manage/src/device-associated-line/device-associated-line.component.mjs +179 -0
- package/esm2020/user-device-manage/src/device-list/device-list.component.mjs +24 -0
- package/esm2020/user-device-manage/src/device-manage-widget.component.mjs +335 -0
- package/esm2020/user-device-manage/src/environments/environment.mjs +11 -0
- package/esm2020/user-device-manage/src/interseptors/auth.interceptor.mjs +36 -0
- package/esm2020/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +74 -0
- package/esm2020/user-device-manage/src/material.module.mjs +192 -0
- package/esm2020/user-device-manage/src/notifications/notification.component.mjs +35 -0
- package/esm2020/user-device-manage/src/services/api.service.mjs +79 -0
- package/esm2020/user-device-manage/src/services/device.service.mjs +83 -0
- package/esm2020/user-device-manage/src/services/dns.service.mjs +104 -0
- package/esm2020/user-device-manage/src/services/line.service.mjs +76 -0
- package/esm2020/user-device-manage/src/services/notification.service.mjs +62 -0
- package/esm2020/user-device-manage/src/services/removeKynFromIBM.service.mjs +25 -0
- package/esm2020/user-device-manage/src/services/site-settings.service.mjs +70 -0
- package/esm2020/user-device-manage/src/services/sorting-utils.service.mjs +197 -0
- package/esm2020/user-device-manage/src/services/user.service.mjs +243 -0
- package/esm2020/user-device-manage/src/services/utils.service.mjs +87 -0
- package/esm2020/user-device-manage/src/services/validation.service.mjs +760 -0
- package/esm2020/user-device-manage/src/user-device-manage.module.mjs +107 -0
- package/esm2020/user-device-manage/src/utils/app-loader/app-loader.mjs +14 -0
- package/esm2020/user-device-manage/tuki-io-tuki-widgets-user-device-manage.mjs +5 -0
- package/esm2020/user-manage/public-api.mjs +7 -0
- package/esm2020/user-manage/src/app.constants.mjs +50 -0
- package/esm2020/user-manage/src/classes/device.mjs +37 -0
- package/esm2020/user-manage/src/classes/line-association-interface.mjs +2 -0
- package/esm2020/user-manage/src/classes/line-association.mjs +110 -0
- package/esm2020/user-manage/src/classes/line-call-info-display.mjs +10 -0
- package/esm2020/user-manage/src/classes/line-directory.mjs +27 -0
- package/esm2020/user-manage/src/classes/line.mjs +18 -0
- package/esm2020/user-manage/src/classes/notification.mjs +32 -0
- package/esm2020/user-manage/src/classes/pagination.mjs +8 -0
- package/esm2020/user-manage/src/classes/recording-options.mjs +7 -0
- package/esm2020/user-manage/src/classes/simplified-user.mjs +109 -0
- package/esm2020/user-manage/src/classes/table-data.mjs +2 -0
- package/esm2020/user-manage/src/classes/translation-pattern.mjs +32 -0
- package/esm2020/user-manage/src/classes/user-list.mjs +10 -0
- package/esm2020/user-manage/src/common-functions.mjs +19 -0
- package/esm2020/user-manage/src/device-list/device-list.component.mjs +24 -0
- package/esm2020/user-manage/src/environments/environment.mjs +11 -0
- package/esm2020/user-manage/src/interseptors/auth.interceptor.mjs +36 -0
- package/esm2020/user-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +74 -0
- package/esm2020/user-manage/src/material.module.mjs +188 -0
- package/esm2020/user-manage/src/notifications/notification.component.mjs +35 -0
- package/esm2020/user-manage/src/removeKynFromIBM.service.mjs +25 -0
- package/esm2020/user-manage/src/services/api.service.mjs +79 -0
- package/esm2020/user-manage/src/services/dns.service.mjs +110 -0
- package/esm2020/user-manage/src/services/line.service.mjs +34 -0
- package/esm2020/user-manage/src/services/notification.service.mjs +62 -0
- package/esm2020/user-manage/src/services/removeKynFromIBM.service.mjs +25 -0
- package/esm2020/user-manage/src/services/site-settings.service.mjs +36 -0
- package/esm2020/user-manage/src/services/sorting-utils.service.mjs +197 -0
- package/esm2020/user-manage/src/services/user.service.mjs +207 -0
- package/esm2020/user-manage/src/services/users-search.service.mjs +50 -0
- package/esm2020/user-manage/src/services/utils.service.mjs +73 -0
- package/esm2020/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.mjs +65 -0
- package/esm2020/user-manage/src/user-calling/user-calling.component.mjs +78 -0
- package/esm2020/user-manage/src/user-info/user-info.component.mjs +20 -0
- package/esm2020/user-manage/src/user-manage-widget.component.mjs +208 -0
- package/esm2020/user-manage/src/user-manage.module.mjs +99 -0
- package/esm2020/user-manage/src/utils/app-loader/app-loader.mjs +14 -0
- package/esm2020/user-manage/src/utils/pagination/pagination.component.mjs +43 -0
- package/esm2020/user-manage/tuki-io-tuki-widgets-user-manage.mjs +5 -0
- package/esm2020/users-list/public-api.mjs +9 -0
- package/esm2020/users-list/src/app.constants.mjs +54 -0
- package/esm2020/users-list/src/classes/app-location.mjs +32 -0
- package/esm2020/users-list/src/classes/device.mjs +7 -0
- package/esm2020/users-list/src/classes/line.mjs +18 -0
- package/esm2020/users-list/src/classes/move-user.mjs +178 -0
- package/esm2020/users-list/src/classes/notification.mjs +31 -0
- package/esm2020/users-list/src/classes/pagination.mjs +8 -0
- package/esm2020/users-list/src/classes/simlified-user.mjs +50 -0
- package/esm2020/users-list/src/classes/table-data.mjs +2 -0
- package/esm2020/users-list/src/classes/user-list.mjs +14 -0
- package/esm2020/users-list/src/material.module.mjs +209 -0
- package/esm2020/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.mjs +38 -0
- package/esm2020/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.mjs +23 -0
- package/esm2020/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.mjs +189 -0
- package/esm2020/users-list/src/move-user-wizard/move-user-wizard.component.mjs +38 -0
- package/esm2020/users-list/src/services/api-webex.service.mjs +18 -0
- package/esm2020/users-list/src/services/api.service.mjs +78 -0
- package/esm2020/users-list/src/services/dns.service.mjs +120 -0
- package/esm2020/users-list/src/services/events-communication.service.mjs +14 -0
- package/esm2020/users-list/src/services/move-user.service.mjs +53 -0
- package/esm2020/users-list/src/services/notification.service.mjs +62 -0
- package/esm2020/users-list/src/services/removeKynFromIBM.service.mjs +25 -0
- package/esm2020/users-list/src/services/site-settings.service.mjs +27 -0
- package/esm2020/users-list/src/services/user.service.mjs +142 -0
- package/esm2020/users-list/src/services/users-search.service.mjs +124 -0
- package/esm2020/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.mjs +34 -0
- package/esm2020/users-list/src/users-list.component.mjs +287 -0
- package/esm2020/users-list/src/users-list.module.mjs +92 -0
- package/esm2020/users-list/src/utils/app-loader/app-loader.mjs +14 -0
- package/esm2020/users-list/src/utils/common-functions.mjs +32 -0
- package/esm2020/users-list/src/utils/pagination/pagination.component.mjs +43 -0
- package/esm2020/users-list/src/utils/utils.service.mjs +73 -0
- package/esm2020/users-list/tuki-io-tuki-widgets-users-list.mjs +5 -0
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs +1874 -0
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs +3402 -0
- package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +2124 -0
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +1996 -0
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets.mjs +63 -0
- package/fesm2015/tuki-io-tuki-widgets.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs +1865 -0
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs +3364 -0
- package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +2107 -0
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +1975 -0
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets.mjs +63 -0
- package/fesm2020/tuki-io-tuki-widgets.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/widgets.component.d.ts +8 -0
- package/lib/widgets.module.d.ts +7 -0
- package/lib/widgets.service.d.ts +6 -0
- package/package.json +65 -48
- package/{projects/tuki/widgets/src/public-api.ts → public-api.d.ts} +0 -4
- package/user-device-manage/index.d.ts +5 -0
- package/user-device-manage/src/app.constants.d.ts +74 -0
- package/user-device-manage/src/classes/device.d.ts +233 -0
- package/user-device-manage/src/classes/line-association-interface.d.ts +45 -0
- package/user-device-manage/src/classes/line-association.d.ts +62 -0
- package/user-device-manage/src/classes/line-call-info-display.d.ts +11 -0
- package/user-device-manage/src/classes/line-directory.d.ts +15 -0
- package/user-device-manage/src/classes/line.d.ts +140 -0
- package/user-device-manage/src/classes/notification.d.ts +18 -0
- package/user-device-manage/src/classes/recording-options.d.ts +5 -0
- package/user-device-manage/src/classes/simplified-user.d.ts +52 -0
- package/user-device-manage/src/classes/site-defaults.d.ts +146 -0
- package/user-device-manage/src/classes/translation-pattern.d.ts +19 -0
- package/user-device-manage/src/classes/types.d.ts +19 -0
- package/user-device-manage/src/common-functions.d.ts +1 -0
- package/user-device-manage/src/confirm-dialog/info-dialog.component.d.ts +20 -0
- package/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.d.ts +15 -0
- package/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.d.ts +7 -0
- package/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.d.ts +24 -0
- package/user-device-manage/src/device-associated-line/device-associated-line.component.d.ts +89 -0
- package/user-device-manage/src/device-list/device-list.component.d.ts +11 -0
- package/user-device-manage/src/device-manage-widget.component.d.ts +71 -0
- package/user-device-manage/src/environments/environment.d.ts +9 -0
- package/user-device-manage/src/interseptors/auth.interceptor.d.ts +9 -0
- package/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +35 -0
- package/user-device-manage/src/material.module.d.ts +29 -0
- package/user-device-manage/src/notifications/notification.component.d.ts +19 -0
- package/user-device-manage/src/services/api.service.d.ts +20 -0
- package/user-device-manage/src/services/device.service.d.ts +21 -0
- package/user-device-manage/src/services/dns.service.d.ts +14 -0
- package/user-device-manage/src/services/line.service.d.ts +33 -0
- package/user-device-manage/src/services/notification.service.d.ts +18 -0
- package/user-device-manage/src/services/removeKynFromIBM.service.d.ts +8 -0
- package/user-device-manage/src/services/site-settings.service.d.ts +25 -0
- package/user-device-manage/src/services/sorting-utils.service.d.ts +26 -0
- package/user-device-manage/src/services/user.service.d.ts +51 -0
- package/user-device-manage/src/services/utils.service.d.ts +10 -0
- package/user-device-manage/src/services/validation.service.d.ts +165 -0
- package/user-device-manage/src/user-device-manage.module.d.ts +22 -0
- package/user-device-manage/src/utils/app-loader/app-loader.d.ts +6 -0
- package/user-manage/index.d.ts +5 -0
- package/user-manage/src/app.constants.d.ts +29 -0
- package/user-manage/src/classes/device.d.ts +203 -0
- package/user-manage/src/classes/line-association-interface.d.ts +40 -0
- package/user-manage/src/classes/line-association.d.ts +55 -0
- package/user-manage/src/classes/line-call-info-display.d.ts +11 -0
- package/user-manage/src/classes/line-directory.d.ts +16 -0
- package/user-manage/src/classes/line.d.ts +140 -0
- package/user-manage/src/classes/notification.d.ts +18 -0
- package/user-manage/src/classes/pagination.d.ts +13 -0
- package/user-manage/src/classes/recording-options.d.ts +5 -0
- package/user-manage/src/classes/simplified-user.d.ts +50 -0
- package/user-manage/src/classes/table-data.d.ts +5 -0
- package/user-manage/src/classes/translation-pattern.d.ts +18 -0
- package/user-manage/src/classes/user-list.d.ts +34 -0
- package/user-manage/src/common-functions.d.ts +1 -0
- package/user-manage/src/device-list/device-list.component.d.ts +11 -0
- package/user-manage/src/environments/environment.d.ts +9 -0
- package/user-manage/src/interseptors/auth.interceptor.d.ts +9 -0
- package/user-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +35 -0
- package/user-manage/src/material.module.d.ts +28 -0
- package/user-manage/src/notifications/notification.component.d.ts +19 -0
- package/user-manage/src/removeKynFromIBM.service.d.ts +8 -0
- package/user-manage/src/services/api.service.d.ts +21 -0
- package/user-manage/src/services/dns.service.d.ts +14 -0
- package/user-manage/src/services/line.service.d.ts +17 -0
- package/user-manage/src/services/notification.service.d.ts +18 -0
- package/user-manage/src/services/removeKynFromIBM.service.d.ts +8 -0
- package/user-manage/src/services/site-settings.service.d.ts +9 -0
- package/user-manage/src/services/sorting-utils.service.d.ts +26 -0
- package/user-manage/src/services/user.service.d.ts +43 -0
- package/user-manage/src/services/users-search.service.d.ts +25 -0
- package/user-manage/src/services/utils.service.d.ts +9 -0
- package/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.d.ts +24 -0
- package/user-manage/src/user-calling/user-calling.component.d.ts +30 -0
- package/user-manage/src/user-info/user-info.component.d.ts +9 -0
- package/user-manage/src/user-manage-widget.component.d.ts +44 -0
- package/user-manage/src/user-manage.module.d.ts +21 -0
- package/user-manage/src/utils/app-loader/app-loader.d.ts +6 -0
- package/user-manage/src/utils/pagination/pagination.component.d.ts +18 -0
- package/users-list/index.d.ts +5 -0
- package/users-list/src/app.constants.d.ts +36 -0
- package/users-list/src/classes/app-location.d.ts +17 -0
- package/users-list/src/classes/device.d.ts +224 -0
- package/users-list/src/classes/line.d.ts +140 -0
- package/users-list/src/classes/move-user.d.ts +85 -0
- package/users-list/src/classes/notification.d.ts +18 -0
- package/users-list/src/classes/pagination.d.ts +13 -0
- package/users-list/src/classes/simlified-user.d.ts +25 -0
- package/users-list/src/classes/table-data.d.ts +5 -0
- package/users-list/src/classes/user-list.d.ts +36 -0
- package/users-list/src/material.module.d.ts +31 -0
- package/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.d.ts +21 -0
- package/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.d.ts +12 -0
- package/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.d.ts +55 -0
- package/users-list/src/move-user-wizard/move-user-wizard.component.d.ts +17 -0
- package/users-list/src/services/api-webex.service.d.ts +8 -0
- package/users-list/src/services/api.service.d.ts +21 -0
- package/users-list/src/services/dns.service.d.ts +18 -0
- package/users-list/src/services/events-communication.service.d.ts +8 -0
- package/users-list/src/services/move-user.service.d.ts +17 -0
- package/users-list/src/services/notification.service.d.ts +18 -0
- package/users-list/src/services/removeKynFromIBM.service.d.ts +8 -0
- package/users-list/src/services/site-settings.service.d.ts +11 -0
- package/users-list/src/services/user.service.d.ts +35 -0
- package/users-list/src/services/users-search.service.d.ts +34 -0
- package/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.d.ts +20 -0
- package/users-list/src/users-list.component.d.ts +60 -0
- package/users-list/src/users-list.module.d.ts +18 -0
- package/users-list/src/utils/app-loader/app-loader.d.ts +6 -0
- package/users-list/src/utils/common-functions.d.ts +2 -0
- package/users-list/src/utils/pagination/pagination.component.d.ts +18 -0
- package/users-list/src/utils/utils.service.d.ts +9 -0
- package/.editorconfig +0 -16
- package/.hintrc +0 -14
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -20
- package/.vscode/tasks.json +0 -42
- package/angular.json +0 -141
- package/projects/tuki/widgets/README.md +0 -24
- package/projects/tuki/widgets/di2mt/api/api.endpoints.ts +0 -26
- 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 +0 -3
- 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 +0 -7
- package/projects/tuki/widgets/di2mt/shared/components/card/card.component.html +0 -11
- package/projects/tuki/widgets/di2mt/shared/components/card/card.component.scss +0 -48
- package/projects/tuki/widgets/di2mt/shared/components/card/card.component.ts +0 -10
- package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.html +0 -15
- package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.scss +0 -38
- package/projects/tuki/widgets/di2mt/shared/components/chart-card/chart-card.component.ts +0 -71
- package/projects/tuki/widgets/di2mt/shared/components/index.ts +0 -6
- package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.html +0 -57
- package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.scss +0 -74
- package/projects/tuki/widgets/di2mt/shared/components/stat-card/stat-card.component.ts +0 -44
- package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.html +0 -28
- package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.scss +0 -55
- package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.ts +0 -11
- package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.html +0 -12
- package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.scss +0 -79
- package/projects/tuki/widgets/di2mt/shared/components/summary-card/summary-card.component.ts +0 -27
- package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.html +0 -28
- package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.scss +0 -244
- package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.ts +0 -28
- package/projects/tuki/widgets/di2mt/shared/constants/app.constants.ts +0 -96
- package/projects/tuki/widgets/di2mt/shared/material.module.ts +0 -36
- package/projects/tuki/widgets/di2mt/shared/services/api.service.ts +0 -92
- package/projects/tuki/widgets/di2mt/shared/shared.module.ts +0 -38
- package/projects/tuki/widgets/di2mt/shared/types/constants.ts +0 -15
- package/projects/tuki/widgets/di2mt/shared/types/data-table.ts +0 -5
- package/projects/tuki/widgets/di2mt/shared/types/table/filter.ts +0 -14
- package/projects/tuki/widgets/di2mt/styles/tuki-widgets-theme.scss +0 -13
- package/projects/tuki/widgets/di2mt/styles/variables.scss +0 -92
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.html +0 -3
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.scss +0 -37
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.ts +0 -40
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.html +0 -158
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.scss +0 -430
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.ts +0 -362
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.module.ts +0 -33
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.service.ts +0 -102
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/types/user-upgrade.ts +0 -22
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.ts +0 -52
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.ts +0 -53
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.ts +0 -67
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.html +0 -7
- 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 +0 -45
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.html +0 -7
- 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 +0 -45
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.ts +0 -59
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.ts +0 -70
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/upgrade-overview.module.ts +0 -42
- package/projects/tuki/widgets/di2mt/widgets/upgrade-overview/upgrade-overview.service.ts +0 -95
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.html +0 -186
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.scss +0 -345
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.ts +0 -313
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.module.ts +0 -34
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.service.ts +0 -79
- package/projects/tuki/widgets/karma.conf.js +0 -44
- package/projects/tuki/widgets/ng-package.json +0 -10
- package/projects/tuki/widgets/package.json +0 -13
- package/projects/tuki/widgets/src/lib/widgets.component.spec.ts +0 -23
- package/projects/tuki/widgets/src/lib/widgets.component.ts +0 -20
- package/projects/tuki/widgets/src/lib/widgets.module.ts +0 -16
- package/projects/tuki/widgets/src/lib/widgets.service.spec.ts +0 -16
- package/projects/tuki/widgets/src/lib/widgets.service.ts +0 -9
- package/projects/tuki/widgets/src/test.ts +0 -27
- package/projects/tuki/widgets/styles.scss +0 -572
- package/projects/tuki/widgets/tsconfig.lib.json +0 -36
- package/projects/tuki/widgets/tsconfig.lib.prod.json +0 -10
- package/projects/tuki/widgets/tsconfig.spec.json +0 -17
- package/projects/tuki/widgets/user-device-manage/ng-package.json +0 -7
- package/projects/tuki/widgets/user-device-manage/src/app.constants.ts +0 -96
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-left.svg +0 -5
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-right.svg +0 -5
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/close_icon_x.svg +0 -3
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/delete_icon.svg +0 -5
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/dragger-vertical-icon.svg +0 -3
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/icon_user.svg +0 -1
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/vartical_divider_icon.svg +0 -3
- package/projects/tuki/widgets/user-device-manage/src/classes/device.ts +0 -292
- package/projects/tuki/widgets/user-device-manage/src/classes/line-association-interface.ts +0 -50
- package/projects/tuki/widgets/user-device-manage/src/classes/line-association.ts +0 -177
- package/projects/tuki/widgets/user-device-manage/src/classes/line-call-info-display.ts +0 -21
- package/projects/tuki/widgets/user-device-manage/src/classes/line-directory.ts +0 -41
- package/projects/tuki/widgets/user-device-manage/src/classes/line.ts +0 -144
- package/projects/tuki/widgets/user-device-manage/src/classes/notification.ts +0 -40
- package/projects/tuki/widgets/user-device-manage/src/classes/recording-options.ts +0 -6
- package/projects/tuki/widgets/user-device-manage/src/classes/simplified-user.ts +0 -169
- package/projects/tuki/widgets/user-device-manage/src/classes/site-defaults.ts +0 -167
- package/projects/tuki/widgets/user-device-manage/src/classes/translation-pattern.ts +0 -50
- package/projects/tuki/widgets/user-device-manage/src/classes/types.ts +0 -19
- package/projects/tuki/widgets/user-device-manage/src/classes/user-interface.ts +0 -225
- package/projects/tuki/widgets/user-device-manage/src/classes/user.ts +0 -8
- package/projects/tuki/widgets/user-device-manage/src/common-functions.ts +0 -16
- package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.html +0 -14
- package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.scss +0 -80
- package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.ts +0 -35
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.html +0 -21
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.scss +0 -97
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.ts +0 -28
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.html +0 -6
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.scss +0 -20
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.ts +0 -13
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.html +0 -6
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.scss +0 -4
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.ts +0 -63
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.html +0 -241
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.scss +0 -500
- package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.ts +0 -194
- package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.html +0 -27
- package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.scss +0 -131
- package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.ts +0 -25
- package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.html +0 -209
- package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.scss +0 -502
- package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.ts +0 -354
- package/projects/tuki/widgets/user-device-manage/src/environments/environment.prod.ts +0 -9
- package/projects/tuki/widgets/user-device-manage/src/environments/environment.ts +0 -10
- package/projects/tuki/widgets/user-device-manage/src/interseptors/auth.interceptor.ts +0 -35
- package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.html +0 -50
- package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -8
- package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.ts +0 -81
- package/projects/tuki/widgets/user-device-manage/src/material.module.ts +0 -87
- package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.html +0 -33
- package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.scss +0 -84
- package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.ts +0 -46
- package/projects/tuki/widgets/user-device-manage/src/removeKynFromIBM.service.ts +0 -25
- package/projects/tuki/widgets/user-device-manage/src/services/api.service.ts +0 -87
- package/projects/tuki/widgets/user-device-manage/src/services/common-functions.ts +0 -17
- package/projects/tuki/widgets/user-device-manage/src/services/device.service.ts +0 -95
- package/projects/tuki/widgets/user-device-manage/src/services/dns.service.ts +0 -111
- package/projects/tuki/widgets/user-device-manage/src/services/line.service.ts +0 -89
- package/projects/tuki/widgets/user-device-manage/src/services/notification.service.ts +0 -68
- package/projects/tuki/widgets/user-device-manage/src/services/removeKynFromIBM.service.ts +0 -25
- package/projects/tuki/widgets/user-device-manage/src/services/site-settings.service.ts +0 -82
- package/projects/tuki/widgets/user-device-manage/src/services/sorting-utils.service.ts +0 -203
- package/projects/tuki/widgets/user-device-manage/src/services/user.service.ts +0 -283
- package/projects/tuki/widgets/user-device-manage/src/services/utils.service.ts +0 -87
- package/projects/tuki/widgets/user-device-manage/src/services/validation.service.ts +0 -829
- package/projects/tuki/widgets/user-device-manage/src/styles/_variables.scss +0 -90
- package/projects/tuki/widgets/user-device-manage/src/styles/form.scss +0 -231
- package/projects/tuki/widgets/user-device-manage/src/styles/icons.scss +0 -32
- package/projects/tuki/widgets/user-device-manage/src/styles/styles.scss +0 -110
- package/projects/tuki/widgets/user-device-manage/src/styles/tables.scss +0 -30
- package/projects/tuki/widgets/user-device-manage/src/user-device-manage.module.ts +0 -73
- package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.html +0 -6
- package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.scss +0 -11
- package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.ts +0 -13
- package/projects/tuki/widgets/user-manage/ng-package.json +0 -7
- package/projects/tuki/widgets/user-manage/src/app.constants.ts +0 -50
- package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-left.svg +0 -5
- package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-right.svg +0 -5
- package/projects/tuki/widgets/user-manage/src/assets/icons/delete_icon.svg +0 -5
- package/projects/tuki/widgets/user-manage/src/assets/icons/dragger-vertical-icon.svg +0 -3
- package/projects/tuki/widgets/user-manage/src/assets/icons/icon_user.svg +0 -1
- package/projects/tuki/widgets/user-manage/src/assets/icons/vartical_divider_icon.svg +0 -3
- package/projects/tuki/widgets/user-manage/src/classes/device.ts +0 -232
- package/projects/tuki/widgets/user-manage/src/classes/line-association-interface.ts +0 -43
- package/projects/tuki/widgets/user-manage/src/classes/line-association.ts +0 -161
- package/projects/tuki/widgets/user-manage/src/classes/line-call-info-display.ts +0 -21
- package/projects/tuki/widgets/user-manage/src/classes/line-directory.ts +0 -42
- package/projects/tuki/widgets/user-manage/src/classes/line.ts +0 -144
- package/projects/tuki/widgets/user-manage/src/classes/notification.ts +0 -39
- package/projects/tuki/widgets/user-manage/src/classes/pagination.ts +0 -18
- package/projects/tuki/widgets/user-manage/src/classes/recording-options.ts +0 -6
- package/projects/tuki/widgets/user-manage/src/classes/simplified-user.ts +0 -165
- package/projects/tuki/widgets/user-manage/src/classes/table-data.ts +0 -6
- package/projects/tuki/widgets/user-manage/src/classes/translation-pattern.ts +0 -49
- package/projects/tuki/widgets/user-manage/src/classes/user-interface.ts +0 -225
- package/projects/tuki/widgets/user-manage/src/classes/user-list.ts +0 -42
- package/projects/tuki/widgets/user-manage/src/classes/user.ts +0 -8
- package/projects/tuki/widgets/user-manage/src/common-functions.ts +0 -16
- package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.html +0 -27
- package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.scss +0 -131
- package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.ts +0 -25
- package/projects/tuki/widgets/user-manage/src/environments/environment.prod.ts +0 -9
- package/projects/tuki/widgets/user-manage/src/environments/environment.ts +0 -10
- package/projects/tuki/widgets/user-manage/src/interseptors/auth.interceptor.ts +0 -35
- package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.html +0 -50
- package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -8
- package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.ts +0 -81
- package/projects/tuki/widgets/user-manage/src/material.module.ts +0 -85
- package/projects/tuki/widgets/user-manage/src/notifications/notification.component.html +0 -33
- package/projects/tuki/widgets/user-manage/src/notifications/notification.component.scss +0 -84
- package/projects/tuki/widgets/user-manage/src/notifications/notification.component.ts +0 -46
- package/projects/tuki/widgets/user-manage/src/removeKynFromIBM.service.ts +0 -25
- package/projects/tuki/widgets/user-manage/src/services/api.service.ts +0 -90
- package/projects/tuki/widgets/user-manage/src/services/dns.service.ts +0 -116
- package/projects/tuki/widgets/user-manage/src/services/line.service.ts +0 -31
- package/projects/tuki/widgets/user-manage/src/services/notification.service.ts +0 -68
- package/projects/tuki/widgets/user-manage/src/services/removeKynFromIBM.service.ts +0 -25
- package/projects/tuki/widgets/user-manage/src/services/site-settings.service.ts +0 -35
- package/projects/tuki/widgets/user-manage/src/services/sorting-utils.service.ts +0 -203
- package/projects/tuki/widgets/user-manage/src/services/user.service.ts +0 -242
- package/projects/tuki/widgets/user-manage/src/services/users-search.service.ts +0 -59
- package/projects/tuki/widgets/user-manage/src/services/utils.service.ts +0 -71
- package/projects/tuki/widgets/user-manage/src/styles/_variables.scss +0 -90
- package/projects/tuki/widgets/user-manage/src/styles/form.scss +0 -231
- package/projects/tuki/widgets/user-manage/src/styles/icons.scss +0 -32
- package/projects/tuki/widgets/user-manage/src/styles/styles.scss +0 -110
- package/projects/tuki/widgets/user-manage/src/styles/tables.scss +0 -30
- package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.html +0 -10
- package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.scss +0 -429
- package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.ts +0 -63
- package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.html +0 -32
- package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.scss +0 -444
- package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.ts +0 -89
- package/projects/tuki/widgets/user-manage/src/user-details/notification.service.ts +0 -68
- package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.html +0 -29
- package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.scss +0 -64
- package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.ts +0 -19
- package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.html +0 -290
- package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.scss +0 -463
- package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.ts +0 -212
- package/projects/tuki/widgets/user-manage/src/user-manage.module.ts +0 -63
- package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.html +0 -6
- package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.scss +0 -11
- package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.ts +0 -13
- package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.html +0 -26
- package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.scss +0 -41
- package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.ts +0 -41
- package/projects/tuki/widgets/users-list/ng-package.json +0 -7
- package/projects/tuki/widgets/users-list/src/app.constants.ts +0 -54
- package/projects/tuki/widgets/users-list/src/assets/icons/close_icon_modal.svg +0 -3
- package/projects/tuki/widgets/users-list/src/assets/icons/icon_user.svg +0 -1
- package/projects/tuki/widgets/users-list/src/assets/icons/move_user_to_another_location.svg +0 -14
- package/projects/tuki/widgets/users-list/src/assets/icons/white-close-icon.svg +0 -3
- package/projects/tuki/widgets/users-list/src/classes/app-location.ts +0 -36
- package/projects/tuki/widgets/users-list/src/classes/device.ts +0 -225
- package/projects/tuki/widgets/users-list/src/classes/line.ts +0 -144
- package/projects/tuki/widgets/users-list/src/classes/move-user.ts +0 -225
- package/projects/tuki/widgets/users-list/src/classes/notification.ts +0 -38
- package/projects/tuki/widgets/users-list/src/classes/pagination.ts +0 -18
- package/projects/tuki/widgets/users-list/src/classes/simlified-user.ts +0 -74
- package/projects/tuki/widgets/users-list/src/classes/table-data.ts +0 -6
- package/projects/tuki/widgets/users-list/src/classes/user-interface.ts +0 -225
- package/projects/tuki/widgets/users-list/src/classes/user-list.ts +0 -47
- package/projects/tuki/widgets/users-list/src/classes/user.ts +0 -8
- package/projects/tuki/widgets/users-list/src/material.module.ts +0 -94
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.html +0 -37
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.scss +0 -129
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.ts +0 -46
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.html +0 -31
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.scss +0 -20
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.ts +0 -26
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.html +0 -222
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.scss +0 -239
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.ts +0 -206
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.html +0 -12
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.scss +0 -41
- package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.ts +0 -36
- package/projects/tuki/widgets/users-list/src/services/api-webex.service.ts +0 -14
- package/projects/tuki/widgets/users-list/src/services/api.service.ts +0 -90
- package/projects/tuki/widgets/users-list/src/services/dns.service.ts +0 -128
- package/projects/tuki/widgets/users-list/src/services/events-communication.service.ts +0 -11
- package/projects/tuki/widgets/users-list/src/services/move-user.service.ts +0 -59
- package/projects/tuki/widgets/users-list/src/services/notification.service.ts +0 -68
- package/projects/tuki/widgets/users-list/src/services/removeKynFromIBM.service.ts +0 -25
- package/projects/tuki/widgets/users-list/src/services/site-settings.service.ts +0 -26
- package/projects/tuki/widgets/users-list/src/services/user.service.ts +0 -159
- package/projects/tuki/widgets/users-list/src/services/users-search.service.ts +0 -139
- package/projects/tuki/widgets/users-list/src/styles/styles.scss +0 -572
- package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.html +0 -15
- package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.scss +0 -103
- package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.ts +0 -35
- package/projects/tuki/widgets/users-list/src/users-list.component.css +0 -4
- package/projects/tuki/widgets/users-list/src/users-list.component.css.map +0 -1
- package/projects/tuki/widgets/users-list/src/users-list.component.html +0 -86
- package/projects/tuki/widgets/users-list/src/users-list.component.scss +0 -572
- package/projects/tuki/widgets/users-list/src/users-list.component.ts +0 -312
- package/projects/tuki/widgets/users-list/src/users-list.module.ts +0 -63
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css +0 -11
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css.map +0 -1
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.html +0 -6
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.scss +0 -11
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.ts +0 -13
- package/projects/tuki/widgets/users-list/src/utils/common-functions.ts +0 -32
- package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.html +0 -33
- package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.scss +0 -84
- package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.ts +0 -46
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css +0 -45
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css.map +0 -1
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.html +0 -26
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.scss +0 -41
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.ts +0 -41
- package/projects/tuki/widgets/users-list/src/utils/utils.service.ts +0 -71
- package/projects/widgets-playground/src/app/app.component.html +0 -109
- package/projects/widgets-playground/src/app/app.component.scss +0 -15
- package/projects/widgets-playground/src/app/app.component.spec.ts +0 -31
- package/projects/widgets-playground/src/app/app.component.ts +0 -31
- package/projects/widgets-playground/src/app/app.module.ts +0 -43
- 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 +0 -13
- package/projects/widgets-playground/src/main.ts +0 -7
- package/projects/widgets-playground/src/styles.scss +0 -23
- package/projects/widgets-playground/tsconfig.app.json +0 -14
- package/projects/widgets-playground/tsconfig.spec.json +0 -14
- package/proxy.conf.js +0 -23
- package/tsconfig.json +0 -46
- /package/{projects/tuki/widgets/di2mt → di2mt}/README.md +0 -0
- /package/{projects/tuki/widgets/user-device-manage/public-api.ts → user-device-manage/public-api.d.ts} +0 -0
- /package/{projects/tuki/widgets/user-manage/public-api.ts → user-manage/public-api.d.ts} +0 -0
- /package/{projects/tuki/widgets/users-list/public-api.ts → users-list/public-api.d.ts} +0 -0
|
@@ -0,0 +1,1874 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, inject, Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation } 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, Subject, Subscription, takeUntil, map } 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 { MatOptionModule } from '@angular/material/core';
|
|
21
|
+
import * as i5$1 from '@angular/material/button';
|
|
22
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
23
|
+
import * as i6$1 from '@angular/material/checkbox';
|
|
24
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
25
|
+
import * as i7 from '@angular/material/progress-spinner';
|
|
26
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
27
|
+
import * as i8 from '@angular/material/paginator';
|
|
28
|
+
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
29
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
30
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
31
|
+
import * as i1$2 from 'ng-apexcharts';
|
|
32
|
+
import { NgApexchartsModule } from 'ng-apexcharts';
|
|
33
|
+
import { catchError as catchError$1 } from 'rxjs/operators';
|
|
34
|
+
import * as i5$2 from '@angular/material/menu';
|
|
35
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
36
|
+
|
|
37
|
+
const API$1 = {
|
|
38
|
+
OVERVIEW: {
|
|
39
|
+
GET_UPGRADE_PRECONDITIONS: '/api/webex-upgrade/customers/:customerId/preconditions/fetch',
|
|
40
|
+
GET_SITE_INFRASTRUCTURE: '/api/webex-upgrade/customers/:customerId/infra/fetch',
|
|
41
|
+
GET_USERS_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/users/upgrade/fetch',
|
|
42
|
+
GET_SITES_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/sites/upgrade/fetch',
|
|
43
|
+
GET_USERS_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/users/readiness/fetch',
|
|
44
|
+
GET_SITES_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/sites/readiness/fetch'
|
|
45
|
+
},
|
|
46
|
+
USER_UPGRADE: {
|
|
47
|
+
GET_USERS_UPGRADE_DATA: '/api/webex-upgrade/customers/:customerId/user-upgrade',
|
|
48
|
+
GET_USERS_UPGRADE_STATUS_COUNTS: '/api/webex-upgrade/customers/:customerId/user-upgrades/status-counts',
|
|
49
|
+
UPGRADE_USER: '/api/migration/webex/sites/:siteId/users/:userId',
|
|
50
|
+
SINGLE_COLLECT: '/api/migration/webex/singlecollect/features/:featureName',
|
|
51
|
+
SINGLE_MIGRATION: '/api/migration/webex/singlemigration/features/:featureName'
|
|
52
|
+
},
|
|
53
|
+
SITE_UPGRADE: {
|
|
54
|
+
GET_SITES_UPGRADE_DATA: '/api/webex-upgrade/customers/:customerId/site-upgrades',
|
|
55
|
+
GET_SITES_UPGRADE_STATUS_COUNTS: '/api/webex-upgrade/customers/:customerId/site-upgrades/status-counts',
|
|
56
|
+
WEBEX_CACHE_COLLECTION: '/api/migration/:migrationType/sites/:siteId/collectbuildwebexcache',
|
|
57
|
+
UPGRADE_SITE: '/api/migration/webex/sites/:siteId',
|
|
58
|
+
WEBEX_BATCH_STATUS: "/api/migration/webex/customer/:customerId/batchesstatus",
|
|
59
|
+
MIGRATE_SITE: "/api/migration/webex/sites/:siteId/migrate",
|
|
60
|
+
BATCH_STATUS: "/api/e2emigration/batches-status/:customerId"
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
class APIService {
|
|
65
|
+
constructor(httpClient) {
|
|
66
|
+
this.httpClient = httpClient;
|
|
67
|
+
this.apiUrl = window.location.protocol + '//' + window.location.hostname + '/dcp';
|
|
68
|
+
this.token = 'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBjb3JyZW5ldC5jb20iLCJyb2xlcyI6IlNVUEVSX1VTRVIiLCJpYXQiOjE3NTUwODUyMzgsImV4cCI6MTc1NTEwMzIzOH0.X1CKx-OBZvSs7Bzr_4SWW2ulBgHNkYZrmVuv6V7FZyo';
|
|
69
|
+
// this.apiUrl = window.location.protocol + '//' + window.location.host + '/dcp';
|
|
70
|
+
this.apiUrl = 'https://dev.tuki.io/webex';
|
|
71
|
+
// this.apiUrl = 'http://localhost:8088/dcp';
|
|
72
|
+
}
|
|
73
|
+
fetch(url, params, cache) {
|
|
74
|
+
const headers = this.getHeaders(cache);
|
|
75
|
+
params = params || {};
|
|
76
|
+
return this.httpClient.get(this.apiUrl + url, { params: this.prepareEncodedParams(params), headers });
|
|
77
|
+
}
|
|
78
|
+
post(url, body, params = {}) {
|
|
79
|
+
body = body || null;
|
|
80
|
+
const headers = this.getHeaders();
|
|
81
|
+
return this.httpClient.post(this.apiUrl + url, body, { params: this.prepareEncodedParams(params), headers });
|
|
82
|
+
}
|
|
83
|
+
// use when response extended data is necessary:
|
|
84
|
+
postExtended(url, body = null, params = {}, headers = {}) {
|
|
85
|
+
headers = headers || this.getHeaders();
|
|
86
|
+
return this.httpClient.post(this.apiUrl + url, body, {
|
|
87
|
+
headers,
|
|
88
|
+
observe: 'response',
|
|
89
|
+
params: this.prepareEncodedParams(params)
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
put(url, body = null, params = {}) {
|
|
93
|
+
const headers = this.getHeaders();
|
|
94
|
+
return this.httpClient.put(this.apiUrl + url, body, { headers, params: this.prepareEncodedParams(params) });
|
|
95
|
+
}
|
|
96
|
+
delete(url, params = {}) {
|
|
97
|
+
const headers = this.getHeaders();
|
|
98
|
+
return this.httpClient.delete(this.apiUrl + url, { headers, params: this.prepareEncodedParams(params) });
|
|
99
|
+
}
|
|
100
|
+
fetchPagination(url, pageSize, pageNumber, additionalParams = {}, cache) {
|
|
101
|
+
const copyAdditionalParams = JSON.parse(JSON.stringify(additionalParams));
|
|
102
|
+
const params = Object.assign(copyAdditionalParams, { size: pageSize.toString(), page: pageNumber.toString() });
|
|
103
|
+
return this.fetch(url, params, cache);
|
|
104
|
+
}
|
|
105
|
+
prepareEncodedParams(params) {
|
|
106
|
+
const result = {};
|
|
107
|
+
if (!params) {
|
|
108
|
+
return {};
|
|
109
|
+
}
|
|
110
|
+
for (const key of Object.keys(params)) {
|
|
111
|
+
if (params[key]) {
|
|
112
|
+
const stringParam = params[key].toString();
|
|
113
|
+
result[key] = stringParam.includes('+') ? encodeURIComponent(stringParam) : stringParam;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return result;
|
|
117
|
+
}
|
|
118
|
+
getHeaders(cache) {
|
|
119
|
+
let headers = new HttpHeaders();
|
|
120
|
+
if (cache) {
|
|
121
|
+
headers = headers.append('_Cache', 'true ');
|
|
122
|
+
}
|
|
123
|
+
const token = this.token || this.getParameterByName('token');
|
|
124
|
+
headers = headers.append('Authorization', 'Bearer ' + token);
|
|
125
|
+
return headers;
|
|
126
|
+
}
|
|
127
|
+
getParameterByName(name, url = window.location.href) {
|
|
128
|
+
name = name.replace(/[\[\]]/g, '\\$&');
|
|
129
|
+
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url);
|
|
130
|
+
if (!results)
|
|
131
|
+
return null;
|
|
132
|
+
if (!results[2])
|
|
133
|
+
return '';
|
|
134
|
+
return decodeURIComponent(results[2].replace(/\+/g, ' '));
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
APIService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
138
|
+
APIService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, providedIn: 'root' });
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, decorators: [{
|
|
140
|
+
type: Injectable,
|
|
141
|
+
args: [{
|
|
142
|
+
providedIn: 'root'
|
|
143
|
+
}]
|
|
144
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
145
|
+
|
|
146
|
+
class UserUpgradeService {
|
|
147
|
+
constructor() {
|
|
148
|
+
this.apiService = inject(APIService);
|
|
149
|
+
}
|
|
150
|
+
// TODO: Impl the user upgrade logic here
|
|
151
|
+
bulkUpgrade(users) {
|
|
152
|
+
const body = this.generateUserUpgradeBody(users);
|
|
153
|
+
console.log('bulkUpgrade', users);
|
|
154
|
+
console.log(body);
|
|
155
|
+
// This is not done yet...
|
|
156
|
+
return this.apiService.post(API$1.USER_UPGRADE.SINGLE_MIGRATION.replace(':featureName', "PERSON"), body, {}).pipe(catchError((err) => of(err)));
|
|
157
|
+
}
|
|
158
|
+
collectUsers(users) {
|
|
159
|
+
const body = this.generateUserUpgradeBody(users);
|
|
160
|
+
console.log('collectUsers', body);
|
|
161
|
+
// This is not done yet...
|
|
162
|
+
return this.apiService.post(API$1.USER_UPGRADE.SINGLE_COLLECT.replace(':featureName', 'PERSON'), body, {}).pipe(catchError((err) => of(err)));
|
|
163
|
+
}
|
|
164
|
+
generateUserUpgradeBody(users) {
|
|
165
|
+
const entities = users.map(record => ({ cucmId: record.cucmId, entityId: record.userId }));
|
|
166
|
+
const customerId = users[0].customerId;
|
|
167
|
+
// const siteId = users[0].siteId;
|
|
168
|
+
return {
|
|
169
|
+
customerId,
|
|
170
|
+
entities: {
|
|
171
|
+
'PERSON': entities
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
getUserUpgradeStatusCounts() {
|
|
176
|
+
return this.apiService.fetch(API$1.USER_UPGRADE.GET_USERS_UPGRADE_STATUS_COUNTS.replace(':customerId', this.customerId));
|
|
177
|
+
}
|
|
178
|
+
getUserUpgradeRecords(pageSize, pageIndex) {
|
|
179
|
+
return this.apiService.fetchPagination(API$1.USER_UPGRADE.GET_USERS_UPGRADE_DATA.replace(':customerId', this.customerId), pageSize, pageIndex);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
UserUpgradeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
183
|
+
UserUpgradeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, providedIn: 'root' });
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, decorators: [{
|
|
185
|
+
type: Injectable,
|
|
186
|
+
args: [{
|
|
187
|
+
providedIn: 'root'
|
|
188
|
+
}]
|
|
189
|
+
}] });
|
|
190
|
+
|
|
191
|
+
const STATUS_ENTRIES = {
|
|
192
|
+
READY: 'Ready',
|
|
193
|
+
NOT_READY: 'Not Ready',
|
|
194
|
+
PARTIAL_READY: 'Partial Ready',
|
|
195
|
+
FAILED: 'Failed',
|
|
196
|
+
COMPLETED: 'Completed'
|
|
197
|
+
};
|
|
198
|
+
const DEPENDENCIES_STATUS = {
|
|
199
|
+
DEPENDENCIES_FOUND: 'Dependencies found',
|
|
200
|
+
NO_DEPENDENCIES: 'No dependencies',
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
const API = {
|
|
204
|
+
USER_TOKEN: '/api/provision/:siteId/users/:userId/token',
|
|
205
|
+
UPDATE_USER_FIELDS: '/api/provision/:siteId/userFields/:token',
|
|
206
|
+
PERSIST_USER_CACHE: '/api/provision/:siteId/saveUser/:token',
|
|
207
|
+
USER_BY_ID: '/api/provision/:siteId/users/:userId',
|
|
208
|
+
QUICK_USERS_SEARCH: "/api/search/quickusers",
|
|
209
|
+
LOCATION: "/api/provision/options/:siteId/locations",
|
|
210
|
+
USER_LOCALES: "/api/provision/options/:siteId/userlocales",
|
|
211
|
+
USER_PROFILES: "/api/provision/options/:siteId/userprofiles",
|
|
212
|
+
RECORDING_PROFILE: "/api/provision/options/:siteId/recordingprofiles",
|
|
213
|
+
AVAILABLE_DN_IN_RANGES: "/api/sites/:siteId/available-dn-in-ranges",
|
|
214
|
+
DELETE_LINE: "/api/provision/:siteId/deleteLine/:pkid/:token",
|
|
215
|
+
DISASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/deleteLineAssociation/:linePkid/:token",
|
|
216
|
+
CHECK_DELETE_LINE: "/api/provision/:siteId/checklinedeletion",
|
|
217
|
+
ASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/createLineAssociation/:token",
|
|
218
|
+
CHECK_DESTINATION_NUMBER: "/api/provision/:siteId/check-dn",
|
|
219
|
+
UPDATE_LINE_FIELDS: "/api/provision/:siteId/lineFields/:pkid/:token",
|
|
220
|
+
UPDATE_DEVICE_FIELDS: "/api/provision/:siteId/deviceFields/:deviceName/:token",
|
|
221
|
+
SOFTKEY_TEMPLATES: "/api/provision/options/:siteId/softkeytemplates",
|
|
222
|
+
SITE_SETTINGS: "/api/sites/:siteId/settings",
|
|
223
|
+
LINE_SLOTS: "/api/provision/:siteId/buttontemplate",
|
|
224
|
+
LEAN_USER_CONVERSATION_START: "/api/provision/:siteId/leanUsers/:userId/leanUserDetailsToken",
|
|
225
|
+
LEAN_USER_DEVICES_CONVERSATION_START: "/api/provision/:siteId/leanUsers/:userId/leanUserDevicesToken",
|
|
226
|
+
LEAN_USER_LINES_CONVERSATION_START: "/api/provision/:siteId/leanUsers/:userId/:leanUserDevicesToken/leanUserLinesToken",
|
|
227
|
+
LEAN_USER_SNR_CONVERSATION_START: "/api/provision/:siteId/leanUsers/:userId/leanUserSNRToken",
|
|
228
|
+
DEVICE_LINE_MONITOR_CSS: "/api/provision/options/:siteId/callingSearchSpace"
|
|
229
|
+
};
|
|
230
|
+
const REGEX_PATTERN = {
|
|
231
|
+
EMAIL: '^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))' +
|
|
232
|
+
'@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])' +
|
|
233
|
+
'?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])?)*$'
|
|
234
|
+
};
|
|
235
|
+
const PAGINATION_DEFAULTS = {
|
|
236
|
+
SIZE: 10,
|
|
237
|
+
INDEX: 0
|
|
238
|
+
};
|
|
239
|
+
const PAGINATION_SIZE_OPTIONS = [
|
|
240
|
+
10,
|
|
241
|
+
50,
|
|
242
|
+
100,
|
|
243
|
+
500
|
|
244
|
+
];
|
|
245
|
+
const CUCS_TO_IGNORE = [
|
|
246
|
+
189,
|
|
247
|
+
194,
|
|
248
|
+
191,
|
|
249
|
+
190
|
|
250
|
+
];
|
|
251
|
+
const CUCMS_TO_IGNORE = [
|
|
252
|
+
249,
|
|
253
|
+
255,
|
|
254
|
+
251,
|
|
255
|
+
250
|
|
256
|
+
];
|
|
257
|
+
const RECORDING_MEDIA_SOURCE = [
|
|
258
|
+
"Gateway Preferred",
|
|
259
|
+
"Phone Preferred"
|
|
260
|
+
];
|
|
261
|
+
const STATIC_OPTIONS = {
|
|
262
|
+
CALL_PICKUP_GROUP_AUDIO_SETTING_PHONE_ACTIVE: ['Use System Default', 'Disable', 'Beep Only'],
|
|
263
|
+
CALL_PICKUP_GROUP_AUDIO_SETTING_PHONE_IDLE: ['Use System Default', 'Disable', 'Ring Once'],
|
|
264
|
+
CONF_ACCESS_MODE: ['Fixed', 'Variable'],
|
|
265
|
+
DEFAULT_ON_OFF: ['Default', 'On', 'Off'],
|
|
266
|
+
DEFAULT_EN_DIS: ['Default', 'Enabled', 'Disabled'],
|
|
267
|
+
DND: ['Use Common Phone Profile Setting', 'Call Reject', 'Ringer Off'],
|
|
268
|
+
DND_INCOMING_CALL_ALLERT: ['Disable', 'Flash Only', 'Beep Only'],
|
|
269
|
+
LATENT_CAPABILITY: ['Gateway Controlled', 'Modem Relay', 'Modem Passthrough', 'Modem Relay and Passthrough', 'None'],
|
|
270
|
+
LINE_MODE: ['Session Line mode', 'Enhanced Line mode'],
|
|
271
|
+
ACTIONABLE_ALERT: ['Disabled', 'Show for all Incoming Call', 'Show for Invisible Incoming Call'],
|
|
272
|
+
MLPP_PREEMPTION: ['Default', 'Forceful', 'Disabled'],
|
|
273
|
+
PACKET_CAPTURE_MODE: ['None', 'Batch Processing Mode'],
|
|
274
|
+
RING_VOLUME: ['0-Silent', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15'],
|
|
275
|
+
PORT_DIRECTION: ['Bothways', 'Inbound', 'Outbound'],
|
|
276
|
+
RING_SETTING_IDLE: ['Use System Default', 'Disable', 'Flash Only', 'Ring Once', 'Ring'],
|
|
277
|
+
RING_SETTING_ACTIVE: ['Use System Default', 'Disable', 'Flash Only', 'Ring Once', 'Ring', 'Beep Only'],
|
|
278
|
+
SERVICE_PROVISIONING: ['Default', 'Internal', 'External URL', 'Both'],
|
|
279
|
+
SETTINGS_ACCES: ['Enabled', 'Disabled', 'Restricted'],
|
|
280
|
+
VISUAL_MWI: ['Use System Policy', 'Light and Prompt', 'Prompt Only', 'Light Only', 'None'],
|
|
281
|
+
WEEKDAYS: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
282
|
+
BUILD_BRIDGE: ['None', 'On', 'Off', 'Default'],
|
|
283
|
+
TRANSFER_TYPES: ['Release to Switch', 'Supervise Transfer'],
|
|
284
|
+
EXTENSION_IS_BUSY_TYPES: ['Send Callers to Voicemail', 'Put Callers on Hold Without Asking', 'Ask Callers to Hold'],
|
|
285
|
+
CALL_ACTIONS: ['Hang Up', 'Restart Greeting', 'Route From Next Call Routing Rule', 'Take Message'],
|
|
286
|
+
AUTHENTICATION_802: ['User controlled', 'Disabled', 'Enabled'],
|
|
287
|
+
CERTIFICATE_OPERATION: ['No Pending Operation', 'Install/Upgrade', 'Delete', 'Troubleshoot'],
|
|
288
|
+
AUTHENTICATION_MODE: ['By Authentication String', 'By Null String', 'By Existing Certificate (precedence to LSC)', 'By Existing Certificate (precedence to MIC)'],
|
|
289
|
+
KEY_ORDER: ['RSA Only', 'EC Only', 'EC Preferred, RSA Backup'],
|
|
290
|
+
RSA_KEY_SIZE: ['512', '1024', '2048'],
|
|
291
|
+
RSA_KEY_SIZE_SPECIFIC_DEVICE: ['512', '1024', '2048', '3072', '4096']
|
|
292
|
+
};
|
|
293
|
+
const TOGGLE_TYPES = {
|
|
294
|
+
TABS: 'TABS',
|
|
295
|
+
ASSOCIATED_LINE_ONLY: 'ASSOCIATED_LINE_ONLY'
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
class SummaryCardComponent {
|
|
299
|
+
constructor() {
|
|
300
|
+
this.value = 41;
|
|
301
|
+
this.status = 'Ready';
|
|
302
|
+
}
|
|
303
|
+
getStatusClass(status) {
|
|
304
|
+
switch (status === null || status === void 0 ? void 0 : status.toLowerCase()) {
|
|
305
|
+
case 'ready':
|
|
306
|
+
return 'ready';
|
|
307
|
+
case 'not ready':
|
|
308
|
+
return 'not-ready';
|
|
309
|
+
case 'failed':
|
|
310
|
+
return 'failed';
|
|
311
|
+
case 'completed':
|
|
312
|
+
return 'completed';
|
|
313
|
+
default:
|
|
314
|
+
return 'not-ready';
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
SummaryCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SummaryCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
319
|
+
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 [ngClass]=\"{'status-ready': status === 'ready'}\">{{ status }}</span>\r\n </div>\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;flex:1}.summary-card{font-family:Inter,Inter,sans-serif;background-color:#fff;border-radius:1rem;padding:1rem;border:1px solid hsl(0,0%,20%);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}.status-ready{color:#1170cf}.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"] }] });
|
|
320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SummaryCardComponent, decorators: [{
|
|
321
|
+
type: Component,
|
|
322
|
+
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 [ngClass]=\"{'status-ready': status === 'ready'}\">{{ status }}</span>\r\n </div>\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;flex:1}.summary-card{font-family:Inter,Inter,sans-serif;background-color:#fff;border-radius:1rem;padding:1rem;border:1px solid hsl(0,0%,20%);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}.status-ready{color:#1170cf}.summary__card-description{font-size:14px;color:#333;display:flex;align-items:center;justify-content:space-between}\n"] }]
|
|
323
|
+
}], propDecorators: { value: [{
|
|
324
|
+
type: Input
|
|
325
|
+
}], status: [{
|
|
326
|
+
type: Input
|
|
327
|
+
}], description: [{
|
|
328
|
+
type: Input
|
|
329
|
+
}] } });
|
|
330
|
+
|
|
331
|
+
class TableFiltersComponent {
|
|
332
|
+
constructor() {
|
|
333
|
+
this.filter = new EventEmitter();
|
|
334
|
+
}
|
|
335
|
+
ngOnInit() {
|
|
336
|
+
if (this.filters) {
|
|
337
|
+
this.filters.forEach(filter => {
|
|
338
|
+
if (filter.type === 'select' && !filter.options.some(opt => opt.value === 'all')) {
|
|
339
|
+
filter.options.unshift({ label: 'All', value: 'all' });
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
onFilter(key, value) {
|
|
345
|
+
const val = { key, value };
|
|
346
|
+
this.filter.emit(val);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
TableFiltersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableFiltersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
350
|
+
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 custom-mat-form-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 custom-mat-form-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}::ng-deep .custom-mat-form-field{width:265px}::ng-deep .custom-mat-form-field .mat-form-field-wrapper{height:34px;padding-bottom:0}::ng-deep .custom-mat-form-field .mat-form-field-flex{height:34px;align-items:center;padding:0 12px}::ng-deep .custom-mat-form-field .mat-form-field-infix{padding:0;border:none;min-height:auto;display:flex;align-items:center;height:28px;margin:4px 0 0;font-size:14px}::ng-deep .custom-mat-form-field .mat-form-field-outline{color:#737480}::ng-deep .custom-mat-form-field .mat-form-field-outline-start,::ng-deep .custom-mat-form-field .mat-form-field-outline-gap,::ng-deep .custom-mat-form-field .mat-form-field-outline-end{border-color:#737480;border-width:1px}::ng-deep .custom-mat-form-field .mat-form-field-outline-start{border-radius:6px 0 0 6px;min-width:6px}::ng-deep .custom-mat-form-field .mat-form-field-outline-end{border-radius:0 6px 6px 0}::ng-deep .custom-mat-form-field .mat-form-field-outline-gap{border-radius:0}::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-start,::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-gap,::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-end{border-color:#737480;border-width:2px}::ng-deep .custom-mat-form-field .mat-form-field-subscript-wrapper{display:none}::ng-deep .custom-mat-form-field .mat-form-field-label{color:#555;top:71%;font-size:14px}::ng-deep .custom-mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,::ng-deep .custom-mat-form-field.mat-form-field-can-float .mat-form-field-label.mat-form-field-empty.mat-form-field-label{transform:translateY(-50%)}::ng-deep .custom-mat-form-field .mat-select-value{max-width:calc(100% - 20px)}::ng-deep .custom-mat-form-field .mat-select-arrow-wrapper{transform:none;display:flex;align-items:center;position:absolute;right:-10px;top:5px}::ng-deep .custom-mat-form-field input.mat-input-element{height:34px;line-height:34px}::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-start,::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-gap,::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-end{border-color:#ccc}::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-start,::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-gap,::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-end{border-color:#e70707}::ng-deep .custom-mat-form-field .mat-select-arrow{width:16px;height:16px;border:none;margin:0 4px;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center;background-size:contain}::ng-deep .custom-mat-form-field.use-css-arrow .mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #737480;margin:0 4px;background:none}::ng-deep .custom-mat-form-field .mat-form-field-label-wrapper{top:2px;padding-top:0;height:28px;display:flex;align-items:center}::ng-deep .custom-mat-form-field .mat-form-field-label{color:#555;position:relative;top:auto;transform:none;padding:0 4px;background:white}::ng-deep .custom-mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{position:absolute;top:-6px;left:12px;font-size:12px;color:#555;background:white;padding:0 4px}::ng-deep .custom-mat-form-field.mat-form-field-can-float .mat-form-field-label.mat-form-field-empty.mat-form-field-label{position:relative;top:auto;left:auto;transform:none;font-size:14px;background:transparent}::ng-deep .custom-mat-form-field .mat-select-placeholder{color:#555;line-height:34px}\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"] }] });
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableFiltersComponent, decorators: [{
|
|
352
|
+
type: Component,
|
|
353
|
+
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 custom-mat-form-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 custom-mat-form-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}::ng-deep .custom-mat-form-field{width:265px}::ng-deep .custom-mat-form-field .mat-form-field-wrapper{height:34px;padding-bottom:0}::ng-deep .custom-mat-form-field .mat-form-field-flex{height:34px;align-items:center;padding:0 12px}::ng-deep .custom-mat-form-field .mat-form-field-infix{padding:0;border:none;min-height:auto;display:flex;align-items:center;height:28px;margin:4px 0 0;font-size:14px}::ng-deep .custom-mat-form-field .mat-form-field-outline{color:#737480}::ng-deep .custom-mat-form-field .mat-form-field-outline-start,::ng-deep .custom-mat-form-field .mat-form-field-outline-gap,::ng-deep .custom-mat-form-field .mat-form-field-outline-end{border-color:#737480;border-width:1px}::ng-deep .custom-mat-form-field .mat-form-field-outline-start{border-radius:6px 0 0 6px;min-width:6px}::ng-deep .custom-mat-form-field .mat-form-field-outline-end{border-radius:0 6px 6px 0}::ng-deep .custom-mat-form-field .mat-form-field-outline-gap{border-radius:0}::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-start,::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-gap,::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-end{border-color:#737480;border-width:2px}::ng-deep .custom-mat-form-field .mat-form-field-subscript-wrapper{display:none}::ng-deep .custom-mat-form-field .mat-form-field-label{color:#555;top:71%;font-size:14px}::ng-deep .custom-mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,::ng-deep .custom-mat-form-field.mat-form-field-can-float .mat-form-field-label.mat-form-field-empty.mat-form-field-label{transform:translateY(-50%)}::ng-deep .custom-mat-form-field .mat-select-value{max-width:calc(100% - 20px)}::ng-deep .custom-mat-form-field .mat-select-arrow-wrapper{transform:none;display:flex;align-items:center;position:absolute;right:-10px;top:5px}::ng-deep .custom-mat-form-field input.mat-input-element{height:34px;line-height:34px}::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-start,::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-gap,::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-end{border-color:#ccc}::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-start,::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-gap,::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-end{border-color:#e70707}::ng-deep .custom-mat-form-field .mat-select-arrow{width:16px;height:16px;border:none;margin:0 4px;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center;background-size:contain}::ng-deep .custom-mat-form-field.use-css-arrow .mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #737480;margin:0 4px;background:none}::ng-deep .custom-mat-form-field .mat-form-field-label-wrapper{top:2px;padding-top:0;height:28px;display:flex;align-items:center}::ng-deep .custom-mat-form-field .mat-form-field-label{color:#555;position:relative;top:auto;transform:none;padding:0 4px;background:white}::ng-deep .custom-mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{position:absolute;top:-6px;left:12px;font-size:12px;color:#555;background:white;padding:0 4px}::ng-deep .custom-mat-form-field.mat-form-field-can-float .mat-form-field-label.mat-form-field-empty.mat-form-field-label{position:relative;top:auto;left:auto;transform:none;font-size:14px;background:transparent}::ng-deep .custom-mat-form-field .mat-select-placeholder{color:#555;line-height:34px}\n"] }]
|
|
354
|
+
}], propDecorators: { filters: [{
|
|
355
|
+
type: Input
|
|
356
|
+
}], filter: [{
|
|
357
|
+
type: Output
|
|
358
|
+
}] } });
|
|
359
|
+
|
|
360
|
+
class UserUpgradeDataTableComponent {
|
|
361
|
+
constructor() {
|
|
362
|
+
this.destroy$ = new Subject();
|
|
363
|
+
this.userUpgradeService = inject(UserUpgradeService);
|
|
364
|
+
this.apiService = inject(APIService);
|
|
365
|
+
this.STATUS_ENTRIES = STATUS_ENTRIES;
|
|
366
|
+
this.DEPENDENCIES_STATUS = DEPENDENCIES_STATUS;
|
|
367
|
+
this.dataPending = false;
|
|
368
|
+
this.displayedColumns = ['select', 'user', 'site', 'device', 'dialPlanStatus', 'dependencies', 'userUpgradeStatus', 'userUpgradeLoader'];
|
|
369
|
+
this.selection = new SelectionModel(true, []);
|
|
370
|
+
this.filters = [];
|
|
371
|
+
this.pagination = new PaginationDataDto();
|
|
372
|
+
this.subscriptions = new Subscription();
|
|
373
|
+
this.statusCounts = {};
|
|
374
|
+
this.activeFilters = {};
|
|
375
|
+
this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
|
|
376
|
+
}
|
|
377
|
+
ngOnInit() {
|
|
378
|
+
this.dataPending = true;
|
|
379
|
+
this.apiService.token = this.token;
|
|
380
|
+
this.userUpgradeService.customerId = this.customerId;
|
|
381
|
+
const subsc1 = this.userUpgradeService.getUserUpgradeRecords(this.pagination.pageSize, this.pagination.pageIndex)
|
|
382
|
+
.pipe(takeUntil(this.destroy$))
|
|
383
|
+
.subscribe((results) => {
|
|
384
|
+
const records = results.content;
|
|
385
|
+
this.data = new MatTableDataSource(records);
|
|
386
|
+
this.pagination.total = results.totalElements;
|
|
387
|
+
this.dataPending = false;
|
|
388
|
+
this.setupCustomFilter();
|
|
389
|
+
this.initializeFilters(records);
|
|
390
|
+
});
|
|
391
|
+
this.subscriptions.add(subsc1);
|
|
392
|
+
const subsc2 = this.userUpgradeService.getUserUpgradeStatusCounts()
|
|
393
|
+
.pipe(takeUntil(this.destroy$))
|
|
394
|
+
.subscribe((statusCounts) => {
|
|
395
|
+
this.statusCounts['Ready'] = statusCounts['READY'] || 0;
|
|
396
|
+
this.statusCounts['Not Ready'] = statusCounts['NOT_READY'] || 0;
|
|
397
|
+
this.statusCounts['Completed'] = statusCounts['COMPLETED'] || 0;
|
|
398
|
+
this.statusCounts['Failed'] = statusCounts['FAILED'] || 0;
|
|
399
|
+
});
|
|
400
|
+
this.subscriptions.add(subsc2);
|
|
401
|
+
}
|
|
402
|
+
ngOnDestroy() {
|
|
403
|
+
this.destroy$.next();
|
|
404
|
+
this.destroy$.complete();
|
|
405
|
+
this.dataPending = false;
|
|
406
|
+
if (this.subscriptions) {
|
|
407
|
+
this.subscriptions.unsubscribe();
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
pageEvent(event) {
|
|
411
|
+
this.pagination.pageIndex = event.pageIndex;
|
|
412
|
+
this.pagination.pageSize = event.pageSize;
|
|
413
|
+
this.getData();
|
|
414
|
+
}
|
|
415
|
+
changePerPageNumber(pageSizeEvent) {
|
|
416
|
+
this.pagination.pageSize = pageSizeEvent.value;
|
|
417
|
+
this.pagination.pageIndex = 0;
|
|
418
|
+
this.getData();
|
|
419
|
+
}
|
|
420
|
+
getData() {
|
|
421
|
+
this.dataPending = true;
|
|
422
|
+
const subsc1 = this.userUpgradeService.getUserUpgradeRecords(this.pagination.pageSize, this.pagination.pageIndex)
|
|
423
|
+
.pipe(takeUntil(this.destroy$))
|
|
424
|
+
.subscribe((result) => {
|
|
425
|
+
this.data = new MatTableDataSource(result.content);
|
|
426
|
+
this.pagination.total = result.totalElements;
|
|
427
|
+
this.dataPending = false;
|
|
428
|
+
});
|
|
429
|
+
this.subscriptions.add(subsc1);
|
|
430
|
+
}
|
|
431
|
+
initializeFilters(records) {
|
|
432
|
+
if (records === null || records === void 0 ? void 0 : records.length) {
|
|
433
|
+
// Extract unique sites from actual data
|
|
434
|
+
const uniqueSites = [...new Set(records.map(record => record.siteName))];
|
|
435
|
+
const siteOptions = uniqueSites.map(site => ({
|
|
436
|
+
label: site,
|
|
437
|
+
value: site.toLowerCase().replace(/\s+/g, '-')
|
|
438
|
+
}));
|
|
439
|
+
// Extract unique statuses from actual data
|
|
440
|
+
const uniqueStatuses = [...new Set(records.map(record => record.upgradeStatus))];
|
|
441
|
+
const statusOptions = uniqueStatuses.map(status => ({
|
|
442
|
+
label: STATUS_ENTRIES[status],
|
|
443
|
+
value: status.toLowerCase().replace(/\s+/g, '-')
|
|
444
|
+
}));
|
|
445
|
+
this.filters = [
|
|
446
|
+
{
|
|
447
|
+
id: 'userName',
|
|
448
|
+
type: 'search',
|
|
449
|
+
columnKey: 'User',
|
|
450
|
+
placeholder: 'Search users...',
|
|
451
|
+
options: []
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
id: 'sites',
|
|
455
|
+
type: 'select',
|
|
456
|
+
columnKey: 'Site',
|
|
457
|
+
placeholder: 'Sites',
|
|
458
|
+
options: siteOptions
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
id: 'status',
|
|
462
|
+
type: 'select',
|
|
463
|
+
columnKey: 'User Upgrade Status',
|
|
464
|
+
placeholder: 'Upgrade Status',
|
|
465
|
+
options: statusOptions
|
|
466
|
+
}
|
|
467
|
+
];
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
/** Whether the number of selected elements matches the total number of rows. */
|
|
471
|
+
isAllSelected() {
|
|
472
|
+
var _a, _b;
|
|
473
|
+
const numSelected = this.selection.selected.length;
|
|
474
|
+
const numRows = (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.data.length) !== null && _b !== void 0 ? _b : 0;
|
|
475
|
+
return numSelected === numRows;
|
|
476
|
+
}
|
|
477
|
+
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
478
|
+
masterToggle() {
|
|
479
|
+
var _a;
|
|
480
|
+
this.isAllSelected() ?
|
|
481
|
+
this.selection.clear() :
|
|
482
|
+
(_a = this.data) === null || _a === void 0 ? void 0 : _a.data.forEach(row => this.selection.select(row));
|
|
483
|
+
}
|
|
484
|
+
upgradeUser(user) {
|
|
485
|
+
if (user && STATUS_ENTRIES[user.upgradeStatus] && STATUS_ENTRIES[user.upgradeStatus] === 'Ready')
|
|
486
|
+
user.pending = true;
|
|
487
|
+
this.userUpgradeService.collectUsers([user])
|
|
488
|
+
.pipe(takeUntil(this.destroy$))
|
|
489
|
+
.subscribe(() => {
|
|
490
|
+
this.userUpgradeService.bulkUpgrade([user])
|
|
491
|
+
.pipe(takeUntil(this.destroy$))
|
|
492
|
+
.subscribe(() => {
|
|
493
|
+
user.pending = false;
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
upgradeSelectedUsers() {
|
|
498
|
+
if (this.selection.selected && this.selection.selected.length) {
|
|
499
|
+
this.dataPending = true;
|
|
500
|
+
this.userUpgradeService.collectUsers(this.selection.selected)
|
|
501
|
+
.pipe(takeUntil(this.destroy$))
|
|
502
|
+
.subscribe(() => {
|
|
503
|
+
this.userUpgradeService.bulkUpgrade(this.selection.selected)
|
|
504
|
+
.pipe(takeUntil(this.destroy$))
|
|
505
|
+
.subscribe(() => {
|
|
506
|
+
this.dataPending = false;
|
|
507
|
+
});
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
this.userUpgradeService.bulkUpgrade(this.selection.selected);
|
|
511
|
+
}
|
|
512
|
+
onFilter(filterEvent) {
|
|
513
|
+
const { key, value } = filterEvent;
|
|
514
|
+
let filterValue;
|
|
515
|
+
if (value && value.value !== undefined) {
|
|
516
|
+
filterValue = value.value;
|
|
517
|
+
}
|
|
518
|
+
else if (value && value.target) {
|
|
519
|
+
filterValue = value.target.value;
|
|
520
|
+
}
|
|
521
|
+
else {
|
|
522
|
+
filterValue = value;
|
|
523
|
+
}
|
|
524
|
+
// Handle "All" option or empty values - remove the filter
|
|
525
|
+
if (filterValue === 'all' || !filterValue || filterValue === '') {
|
|
526
|
+
delete this.activeFilters[key];
|
|
527
|
+
}
|
|
528
|
+
else {
|
|
529
|
+
this.activeFilters[key] = filterValue;
|
|
530
|
+
}
|
|
531
|
+
this.applyFilters();
|
|
532
|
+
}
|
|
533
|
+
setupCustomFilter() {
|
|
534
|
+
this.data.filterPredicate = (data, filter) => {
|
|
535
|
+
const filters = JSON.parse(filter || '{}');
|
|
536
|
+
for (const [key, value] of Object.entries(filters)) {
|
|
537
|
+
if (!value)
|
|
538
|
+
continue;
|
|
539
|
+
switch (key) {
|
|
540
|
+
case 'User':
|
|
541
|
+
const searchTerm = value.toLowerCase();
|
|
542
|
+
if (!data.userName.toLowerCase().includes(searchTerm)) {
|
|
543
|
+
return false;
|
|
544
|
+
}
|
|
545
|
+
break;
|
|
546
|
+
case 'Site':
|
|
547
|
+
if (data.siteName !== this.getSiteNameFromValue(value)) {
|
|
548
|
+
return false;
|
|
549
|
+
}
|
|
550
|
+
break;
|
|
551
|
+
case 'User Upgrade Status':
|
|
552
|
+
if (!this.matchesUpgradeStatus(data.upgradeStatus, value)) {
|
|
553
|
+
return false;
|
|
554
|
+
}
|
|
555
|
+
break;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
return true;
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
applyFilters() {
|
|
562
|
+
this.data.filter = JSON.stringify(this.activeFilters);
|
|
563
|
+
}
|
|
564
|
+
get filteredDataCount() {
|
|
565
|
+
var _a, _b;
|
|
566
|
+
return ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.filteredData) === null || _b === void 0 ? void 0 : _b.length) || 0;
|
|
567
|
+
}
|
|
568
|
+
getSiteNameFromValue(value) {
|
|
569
|
+
// Since we're now using actual site names, just convert back from slug format
|
|
570
|
+
return value.split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
|
|
571
|
+
}
|
|
572
|
+
matchesUpgradeStatus(status, filterValue) {
|
|
573
|
+
// Handle direct status matching for cleaner implementation
|
|
574
|
+
return status.toLowerCase().replace(/\s+/g, '-') === filterValue.toLowerCase();
|
|
575
|
+
}
|
|
576
|
+
getStatusClass(status) {
|
|
577
|
+
switch (status.toLowerCase()) {
|
|
578
|
+
case 'ready':
|
|
579
|
+
return 'ready';
|
|
580
|
+
case 'not ready':
|
|
581
|
+
return 'not-ready';
|
|
582
|
+
case 'partial ready':
|
|
583
|
+
return 'partial-ready';
|
|
584
|
+
case 'completed':
|
|
585
|
+
return 'completed';
|
|
586
|
+
case 'failed':
|
|
587
|
+
return 'failed';
|
|
588
|
+
default:
|
|
589
|
+
return 'not-ready';
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
UserUpgradeDataTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
594
|
+
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 *ngIf=\"dataPending\" class=\"overlay\">\r\n <mat-progress-spinner\r\n class=\"page-spinner\"\r\n mode=\"indeterminate\"\r\n [diameter]=\"120\"></mat-progress-spinner>\r\n</div>\r\n\r\n<div id=\"userUpgradeDataTable\" 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' || row.pending\"\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 <span [ngClass]=\"{'status-ready': element.dialPlanStatus === 'READY'}\">{{element.siteName}}</span>\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 [ngClass]=\"{'status-ready': element.dialPlanStatus === 'READY'}\">{{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\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"userUpgradeLoader\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td class=\"mat-progress-spinner-td\" mat-cell *matCellDef=\"let element\">\r\n\r\n <mat-progress-spinner\r\n *ngIf=\"element.pending\"\r\n class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\">\r\n </mat-progress-spinner>\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>\r\n\r\n<div class=\"app-pagination\">\r\n <mat-paginator\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pagination.pageSize\"\r\n [pageSizeOptions]=\"pagination.pageSizeOptions\"\r\n [pageIndex]=\"pagination.pageIndex\"\r\n (page)=\"pageEvent($event)\"\r\n showFirstLastButtons>\r\n </mat-paginator>\r\n\r\n <!--<div class=\"page-indexes-box\">\r\n <mat-paginator\r\n [id]=\"'commonPagination'\"\r\n [hidePageSize]=\"true\"\r\n [length]=\"pagination.total\"\r\n [pageIndex]=\"pagination.pageIndex\"\r\n [pageSize]=\"pagination.pageSize\"\r\n [pageSizeOptions]=\"pagination.pageSizeOptions\"\r\n (page)=\"pageEvent($event)\">\r\n </mat-paginator>\r\n </div>\r\n\r\n <div class=\"per-page-block\">\r\n <div class=\"item_per_page\">Items per page:</div>\r\n <div class=\"select-box select-page-size\">\r\n <mat-select (selectionChange)=\"changePerPageNumber($event)\" #page\r\n [id]=\"'commonPaginationSelect'\">\r\n <mat-option *ngFor=\"let option of pageSizeOptions; let i = index;\" [id]=\"'paginationSelectOpt_' + i\" [value]=\"option\">{{option}}</mat-option>\r\n </mat-select>\r\n </div>\r\n\r\n </div>-->\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;500;600;700&display=swap\";.app-pagination{display:flex;flex-direction:column;align-items:stretch}.app-pagination .page-indexes-box,.app-pagination .per-page-block{justify-self:center}.app-pagination mat-select{width:100px}.overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff6;z-index:200}.mat-progress-spinner{position:absolute;top:50%;left:50%;margin-top:-20px;margin-left:-25px;width:50px;height:40px;text-align:center;font-size:10px}.mat-progress-spinner-td{position:relative}.status-ready{color:#1170cf}::ng-deep .mat-cell{border-bottom:1px solid #d6d6d6;font-family:Inter,sans-serif!important}::ng-deep .mat-header-cell{border-bottom:1px solid #afafaf;font-family:Inter,sans-serif!important}::ng-deep .progress-spinner-td{position:relative}::ng-deep #userUpgradeDataTable .mat-progress-spinner-td .mat-progress-spinner{top:28%;left:0;margin:0}.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{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}::ng-deep .action-wrapper{display:flex;flex:1;align-items:center;justify-content:space-between;gap:1rem;color:#555}.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"] }, { kind: "component", type: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i8.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }] });
|
|
595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeDataTableComponent, decorators: [{
|
|
596
|
+
type: Component,
|
|
597
|
+
args: [{ selector: 'tk-user-upgrade-data-table', template: "<div *ngIf=\"dataPending\" class=\"overlay\">\r\n <mat-progress-spinner\r\n class=\"page-spinner\"\r\n mode=\"indeterminate\"\r\n [diameter]=\"120\"></mat-progress-spinner>\r\n</div>\r\n\r\n<div id=\"userUpgradeDataTable\" 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' || row.pending\"\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 <span [ngClass]=\"{'status-ready': element.dialPlanStatus === 'READY'}\">{{element.siteName}}</span>\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 [ngClass]=\"{'status-ready': element.dialPlanStatus === 'READY'}\">{{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\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"userUpgradeLoader\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td class=\"mat-progress-spinner-td\" mat-cell *matCellDef=\"let element\">\r\n\r\n <mat-progress-spinner\r\n *ngIf=\"element.pending\"\r\n class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\">\r\n </mat-progress-spinner>\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>\r\n\r\n<div class=\"app-pagination\">\r\n <mat-paginator\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pagination.pageSize\"\r\n [pageSizeOptions]=\"pagination.pageSizeOptions\"\r\n [pageIndex]=\"pagination.pageIndex\"\r\n (page)=\"pageEvent($event)\"\r\n showFirstLastButtons>\r\n </mat-paginator>\r\n\r\n <!--<div class=\"page-indexes-box\">\r\n <mat-paginator\r\n [id]=\"'commonPagination'\"\r\n [hidePageSize]=\"true\"\r\n [length]=\"pagination.total\"\r\n [pageIndex]=\"pagination.pageIndex\"\r\n [pageSize]=\"pagination.pageSize\"\r\n [pageSizeOptions]=\"pagination.pageSizeOptions\"\r\n (page)=\"pageEvent($event)\">\r\n </mat-paginator>\r\n </div>\r\n\r\n <div class=\"per-page-block\">\r\n <div class=\"item_per_page\">Items per page:</div>\r\n <div class=\"select-box select-page-size\">\r\n <mat-select (selectionChange)=\"changePerPageNumber($event)\" #page\r\n [id]=\"'commonPaginationSelect'\">\r\n <mat-option *ngFor=\"let option of pageSizeOptions; let i = index;\" [id]=\"'paginationSelectOpt_' + i\" [value]=\"option\">{{option}}</mat-option>\r\n </mat-select>\r\n </div>\r\n\r\n </div>-->\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;500;600;700&display=swap\";.app-pagination{display:flex;flex-direction:column;align-items:stretch}.app-pagination .page-indexes-box,.app-pagination .per-page-block{justify-self:center}.app-pagination mat-select{width:100px}.overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff6;z-index:200}.mat-progress-spinner{position:absolute;top:50%;left:50%;margin-top:-20px;margin-left:-25px;width:50px;height:40px;text-align:center;font-size:10px}.mat-progress-spinner-td{position:relative}.status-ready{color:#1170cf}::ng-deep .mat-cell{border-bottom:1px solid #d6d6d6;font-family:Inter,sans-serif!important}::ng-deep .mat-header-cell{border-bottom:1px solid #afafaf;font-family:Inter,sans-serif!important}::ng-deep .progress-spinner-td{position:relative}::ng-deep #userUpgradeDataTable .mat-progress-spinner-td .mat-progress-spinner{top:28%;left:0;margin:0}.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{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}::ng-deep .action-wrapper{display:flex;flex:1;align-items:center;justify-content:space-between;gap:1rem;color:#555}.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"] }]
|
|
598
|
+
}], propDecorators: { token: [{
|
|
599
|
+
type: Input
|
|
600
|
+
}], customerId: [{
|
|
601
|
+
type: Input
|
|
602
|
+
}] } });
|
|
603
|
+
class PaginationDataDto {
|
|
604
|
+
constructor(data) {
|
|
605
|
+
this.pageSizeOptions = (data === null || data === void 0 ? void 0 : data.pageSizeOptions) || PAGINATION_DATA_DEFAULTS.OPTIONS;
|
|
606
|
+
this.pageSize = (data === null || data === void 0 ? void 0 : data.pageSize) || PAGINATION_DATA_DEFAULTS.SIZE;
|
|
607
|
+
this.pageIndex = (data === null || data === void 0 ? void 0 : data.pageIndex) || PAGINATION_DATA_DEFAULTS.PAGE_INDEX;
|
|
608
|
+
this.total = (data === null || data === void 0 ? void 0 : data.total) || 0;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
const PAGINATION_DATA_DEFAULTS = {
|
|
612
|
+
OPTIONS: [10, 20, 50, 100],
|
|
613
|
+
SIZE: 10,
|
|
614
|
+
PAGE_INDEX: 0
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
class CardComponent {
|
|
618
|
+
}
|
|
619
|
+
CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
620
|
+
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"] });
|
|
621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardComponent, decorators: [{
|
|
622
|
+
type: Component,
|
|
623
|
+
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"] }]
|
|
624
|
+
}], propDecorators: { title: [{
|
|
625
|
+
type: Input
|
|
626
|
+
}] } });
|
|
627
|
+
|
|
628
|
+
class MaterialModule {
|
|
629
|
+
}
|
|
630
|
+
MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
631
|
+
MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [MatProgressBarModule,
|
|
632
|
+
MatTooltipModule,
|
|
633
|
+
MatTableModule,
|
|
634
|
+
MatCheckboxModule,
|
|
635
|
+
MatButtonModule,
|
|
636
|
+
MatIconModule,
|
|
637
|
+
MatFormFieldModule,
|
|
638
|
+
MatInputModule,
|
|
639
|
+
MatSelectModule], exports: [MatProgressBarModule,
|
|
640
|
+
MatTooltipModule,
|
|
641
|
+
MatTableModule,
|
|
642
|
+
MatCheckboxModule,
|
|
643
|
+
MatButtonModule,
|
|
644
|
+
MatIconModule,
|
|
645
|
+
MatFormFieldModule,
|
|
646
|
+
MatInputModule,
|
|
647
|
+
MatSelectModule] });
|
|
648
|
+
MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [MatProgressBarModule,
|
|
649
|
+
MatTooltipModule,
|
|
650
|
+
MatTableModule,
|
|
651
|
+
MatCheckboxModule,
|
|
652
|
+
MatButtonModule,
|
|
653
|
+
MatIconModule,
|
|
654
|
+
MatFormFieldModule,
|
|
655
|
+
MatInputModule,
|
|
656
|
+
MatSelectModule, MatProgressBarModule,
|
|
657
|
+
MatTooltipModule,
|
|
658
|
+
MatTableModule,
|
|
659
|
+
MatCheckboxModule,
|
|
660
|
+
MatButtonModule,
|
|
661
|
+
MatIconModule,
|
|
662
|
+
MatFormFieldModule,
|
|
663
|
+
MatInputModule,
|
|
664
|
+
MatSelectModule] });
|
|
665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, decorators: [{
|
|
666
|
+
type: NgModule,
|
|
667
|
+
args: [{
|
|
668
|
+
imports: [
|
|
669
|
+
MatProgressBarModule,
|
|
670
|
+
MatTooltipModule,
|
|
671
|
+
MatTableModule,
|
|
672
|
+
MatCheckboxModule,
|
|
673
|
+
MatButtonModule,
|
|
674
|
+
MatIconModule,
|
|
675
|
+
MatFormFieldModule,
|
|
676
|
+
MatInputModule,
|
|
677
|
+
MatSelectModule
|
|
678
|
+
],
|
|
679
|
+
exports: [
|
|
680
|
+
MatProgressBarModule,
|
|
681
|
+
MatTooltipModule,
|
|
682
|
+
MatTableModule,
|
|
683
|
+
MatCheckboxModule,
|
|
684
|
+
MatButtonModule,
|
|
685
|
+
MatIconModule,
|
|
686
|
+
MatFormFieldModule,
|
|
687
|
+
MatInputModule,
|
|
688
|
+
MatSelectModule
|
|
689
|
+
]
|
|
690
|
+
}]
|
|
691
|
+
}] });
|
|
692
|
+
|
|
693
|
+
class StatCardComponent {
|
|
694
|
+
ngOnInit() {
|
|
695
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
696
|
+
if (this.type === 'user') {
|
|
697
|
+
this.stats = {
|
|
698
|
+
id: (_a = this.readinessStats) === null || _a === void 0 ? void 0 : _a.id,
|
|
699
|
+
customerId: (_b = this.readinessStats) === null || _b === void 0 ? void 0 : _b.customerId,
|
|
700
|
+
total: (_c = this.readinessStats) === null || _c === void 0 ? void 0 : _c['totalUsers'],
|
|
701
|
+
totalReady: (_d = this.readinessStats) === null || _d === void 0 ? void 0 : _d['totalReadyUsers'],
|
|
702
|
+
totalUpgraded: (_e = this.readinessStats) === null || _e === void 0 ? void 0 : _e['totalUpgradedUsers'],
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
else {
|
|
706
|
+
this.stats = {
|
|
707
|
+
id: (_f = this.readinessStats) === null || _f === void 0 ? void 0 : _f.id,
|
|
708
|
+
customerId: (_g = this.readinessStats) === null || _g === void 0 ? void 0 : _g.customerId,
|
|
709
|
+
total: (_h = this.readinessStats) === null || _h === void 0 ? void 0 : _h['totalSites'],
|
|
710
|
+
totalReady: (_j = this.readinessStats) === null || _j === void 0 ? void 0 : _j['totalReadySites'],
|
|
711
|
+
totalUpgraded: (_k = this.readinessStats) === null || _k === void 0 ? void 0 : _k['totalUpgradedSites'],
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
get readyPercentage() {
|
|
716
|
+
var _a, _b;
|
|
717
|
+
return (((_a = this.stats) === null || _a === void 0 ? void 0 : _a.totalReady) / ((_b = this.stats) === null || _b === void 0 ? void 0 : _b.total) * 100) >> 0;
|
|
718
|
+
}
|
|
719
|
+
get upgradedPercentage() {
|
|
720
|
+
var _a, _b;
|
|
721
|
+
return (((_a = this.stats) === null || _a === void 0 ? void 0 : _a.totalUpgraded) / ((_b = this.stats) === null || _b === void 0 ? void 0 : _b.total) * 100) >> 0;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
StatCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
725
|
+
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"] }] });
|
|
726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatCardComponent, decorators: [{
|
|
727
|
+
type: Component,
|
|
728
|
+
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"] }]
|
|
729
|
+
}], propDecorators: { title: [{
|
|
730
|
+
type: Input
|
|
731
|
+
}], type: [{
|
|
732
|
+
type: Input
|
|
733
|
+
}], readinessStats: [{
|
|
734
|
+
type: Input
|
|
735
|
+
}], upgradeStatus: [{
|
|
736
|
+
type: Input
|
|
737
|
+
}] } });
|
|
738
|
+
|
|
739
|
+
class StatusListCardComponent {
|
|
740
|
+
}
|
|
741
|
+
StatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
742
|
+
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"] }] });
|
|
743
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatusListCardComponent, decorators: [{
|
|
744
|
+
type: Component,
|
|
745
|
+
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"] }]
|
|
746
|
+
}], propDecorators: { title: [{
|
|
747
|
+
type: Input
|
|
748
|
+
}], items: [{
|
|
749
|
+
type: Input
|
|
750
|
+
}] } });
|
|
751
|
+
|
|
752
|
+
class ChartCardComponent {
|
|
753
|
+
ngOnInit() {
|
|
754
|
+
this.initChartOptions();
|
|
755
|
+
}
|
|
756
|
+
initChartOptions() {
|
|
757
|
+
if (this.totalUpgraded === 0)
|
|
758
|
+
this.totalNotUpgraded = 100;
|
|
759
|
+
this.chartOptions = {
|
|
760
|
+
series: [this.totalUpgraded, this.totalNotUpgraded],
|
|
761
|
+
chart: {
|
|
762
|
+
type: "donut",
|
|
763
|
+
height: 250
|
|
764
|
+
},
|
|
765
|
+
labels: ["MT", "DI"],
|
|
766
|
+
colors: ["#808080", "#2E8B57"],
|
|
767
|
+
legend: {
|
|
768
|
+
position: "right",
|
|
769
|
+
offsetY: 0,
|
|
770
|
+
fontSize: "14px",
|
|
771
|
+
markers: {
|
|
772
|
+
width: 16,
|
|
773
|
+
height: 16,
|
|
774
|
+
radius: 2
|
|
775
|
+
},
|
|
776
|
+
itemMargin: {
|
|
777
|
+
horizontal: 20,
|
|
778
|
+
vertical: 2
|
|
779
|
+
},
|
|
780
|
+
formatter: function (seriesName, opts) {
|
|
781
|
+
return seriesName + " " + ((opts.w.globals.series[opts.seriesIndex] / (opts.w.globals.series[0] + opts.w.globals.series[1]) * 100) >> 0) + "%";
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
plotOptions: {
|
|
785
|
+
pie: {
|
|
786
|
+
donut: {
|
|
787
|
+
size: "75%"
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
dataLabels: {
|
|
792
|
+
enabled: false
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
ChartCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
798
|
+
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"] }] });
|
|
799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartCardComponent, decorators: [{
|
|
800
|
+
type: Component,
|
|
801
|
+
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"] }]
|
|
802
|
+
}], propDecorators: { title: [{
|
|
803
|
+
type: Input
|
|
804
|
+
}], totalUpgraded: [{
|
|
805
|
+
type: Input
|
|
806
|
+
}], totalNotUpgraded: [{
|
|
807
|
+
type: Input
|
|
808
|
+
}] } });
|
|
809
|
+
|
|
810
|
+
class SharedModule {
|
|
811
|
+
}
|
|
812
|
+
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
813
|
+
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, declarations: [CardComponent,
|
|
814
|
+
StatCardComponent,
|
|
815
|
+
StatusListCardComponent,
|
|
816
|
+
ChartCardComponent,
|
|
817
|
+
SummaryCardComponent,
|
|
818
|
+
TableFiltersComponent], imports: [CommonModule,
|
|
819
|
+
MaterialModule,
|
|
820
|
+
NgApexchartsModule,
|
|
821
|
+
HttpClientModule], exports: [CardComponent,
|
|
822
|
+
StatCardComponent,
|
|
823
|
+
StatusListCardComponent,
|
|
824
|
+
ChartCardComponent,
|
|
825
|
+
SummaryCardComponent,
|
|
826
|
+
TableFiltersComponent] });
|
|
827
|
+
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, imports: [CommonModule,
|
|
828
|
+
MaterialModule,
|
|
829
|
+
NgApexchartsModule,
|
|
830
|
+
HttpClientModule] });
|
|
831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, decorators: [{
|
|
832
|
+
type: NgModule,
|
|
833
|
+
args: [{
|
|
834
|
+
declarations: [
|
|
835
|
+
CardComponent,
|
|
836
|
+
StatCardComponent,
|
|
837
|
+
StatusListCardComponent,
|
|
838
|
+
ChartCardComponent,
|
|
839
|
+
SummaryCardComponent,
|
|
840
|
+
TableFiltersComponent
|
|
841
|
+
],
|
|
842
|
+
imports: [
|
|
843
|
+
CommonModule,
|
|
844
|
+
MaterialModule,
|
|
845
|
+
NgApexchartsModule,
|
|
846
|
+
HttpClientModule
|
|
847
|
+
],
|
|
848
|
+
exports: [
|
|
849
|
+
CardComponent,
|
|
850
|
+
StatCardComponent,
|
|
851
|
+
StatusListCardComponent,
|
|
852
|
+
ChartCardComponent,
|
|
853
|
+
SummaryCardComponent,
|
|
854
|
+
TableFiltersComponent
|
|
855
|
+
]
|
|
856
|
+
}]
|
|
857
|
+
}] });
|
|
858
|
+
|
|
859
|
+
class UserUpgradeModule {
|
|
860
|
+
}
|
|
861
|
+
UserUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
862
|
+
UserUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, declarations: [UserUpgradeDataTableComponent], imports: [CommonModule,
|
|
863
|
+
SharedModule,
|
|
864
|
+
MatTableModule,
|
|
865
|
+
MatButtonModule,
|
|
866
|
+
MatCheckboxModule,
|
|
867
|
+
MatSelectModule,
|
|
868
|
+
MatProgressSpinnerModule,
|
|
869
|
+
MatOptionModule,
|
|
870
|
+
MatPaginatorModule,
|
|
871
|
+
MatSelectModule], exports: [UserUpgradeDataTableComponent] });
|
|
872
|
+
UserUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, imports: [CommonModule,
|
|
873
|
+
SharedModule,
|
|
874
|
+
MatTableModule,
|
|
875
|
+
MatButtonModule,
|
|
876
|
+
MatCheckboxModule,
|
|
877
|
+
MatSelectModule,
|
|
878
|
+
MatProgressSpinnerModule,
|
|
879
|
+
MatOptionModule,
|
|
880
|
+
MatPaginatorModule,
|
|
881
|
+
MatSelectModule] });
|
|
882
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, decorators: [{
|
|
883
|
+
type: NgModule,
|
|
884
|
+
args: [{
|
|
885
|
+
declarations: [
|
|
886
|
+
UserUpgradeDataTableComponent
|
|
887
|
+
],
|
|
888
|
+
imports: [
|
|
889
|
+
CommonModule,
|
|
890
|
+
SharedModule,
|
|
891
|
+
MatTableModule,
|
|
892
|
+
MatButtonModule,
|
|
893
|
+
MatCheckboxModule,
|
|
894
|
+
MatSelectModule,
|
|
895
|
+
MatProgressSpinnerModule,
|
|
896
|
+
MatOptionModule,
|
|
897
|
+
MatPaginatorModule,
|
|
898
|
+
MatSelectModule
|
|
899
|
+
],
|
|
900
|
+
exports: [
|
|
901
|
+
UserUpgradeDataTableComponent
|
|
902
|
+
]
|
|
903
|
+
}]
|
|
904
|
+
}] });
|
|
905
|
+
|
|
906
|
+
class SiteUpgradeService {
|
|
907
|
+
constructor() {
|
|
908
|
+
this.siteUpdateStatusEvent = new Subject();
|
|
909
|
+
this.apiService = inject(APIService);
|
|
910
|
+
}
|
|
911
|
+
getSiteUpgradeStatusCounts() {
|
|
912
|
+
return this.apiService.fetch(API$1.SITE_UPGRADE.GET_SITES_UPGRADE_STATUS_COUNTS.replace(':customerId', this.customerId));
|
|
913
|
+
}
|
|
914
|
+
getSiteUpgradeRecords() {
|
|
915
|
+
return this.apiService.fetch(API$1.SITE_UPGRADE.GET_SITES_UPGRADE_DATA.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
916
|
+
return resp.content.map((record) => ({
|
|
917
|
+
siteId: record.siteId,
|
|
918
|
+
siteName: record.siteName,
|
|
919
|
+
totalUsers: record.totalUsers,
|
|
920
|
+
totalReadyUsers: record.readyUsers,
|
|
921
|
+
totalNotReadyUsers: record.notReadyUsers,
|
|
922
|
+
totalUpgradedUsers: record.totalUpgradedUsers,
|
|
923
|
+
totalFailedUsers: record.totalFailedToUpgradeUsers,
|
|
924
|
+
locationMapping: record.locationMappingStatus,
|
|
925
|
+
PSTNTrunk: record.pstnTrunkStatus,
|
|
926
|
+
upgradeStatus: record.siteUpgradeStatus
|
|
927
|
+
}));
|
|
928
|
+
}));
|
|
929
|
+
}
|
|
930
|
+
collectSiteCache(siteId, migrationType = 'webex') {
|
|
931
|
+
return this.apiService.post(API$1.SITE_UPGRADE.WEBEX_CACHE_COLLECTION
|
|
932
|
+
.replace(':siteId', String(siteId))
|
|
933
|
+
.replace(':migrationType', migrationType), {});
|
|
934
|
+
}
|
|
935
|
+
migrateSite(siteId) {
|
|
936
|
+
return this.apiService.post(API$1.SITE_UPGRADE.MIGRATE_SITE.replace(':siteId', String(siteId)), {});
|
|
937
|
+
}
|
|
938
|
+
getBatchesStatuses(batchIds) {
|
|
939
|
+
return this.apiService.post(API$1.SITE_UPGRADE.WEBEX_BATCH_STATUS
|
|
940
|
+
.replace(':customerId', this.customerId), batchIds, false)
|
|
941
|
+
.pipe(map((result) => {
|
|
942
|
+
this.siteUpdateStatusEvent.next(result);
|
|
943
|
+
return result;
|
|
944
|
+
}));
|
|
945
|
+
}
|
|
946
|
+
getMigrationBatchesStatuses() {
|
|
947
|
+
return this.apiService.fetch(API$1.SITE_UPGRADE.BATCH_STATUS.replace(':customerId', this.customerId));
|
|
948
|
+
/*.pipe(map((result: BatchStatusDTO[]) => {
|
|
949
|
+
this.siteUpdateStatusEvent.next(result);
|
|
950
|
+
return result;
|
|
951
|
+
}))*/
|
|
952
|
+
}
|
|
953
|
+
// TODO: Impl the site upgrade logic here
|
|
954
|
+
upgradeSite(site) {
|
|
955
|
+
const customerId = site.customerId;
|
|
956
|
+
const siteId = site.siteId;
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
SiteUpgradeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
960
|
+
SiteUpgradeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, providedIn: 'root' });
|
|
961
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, decorators: [{
|
|
962
|
+
type: Injectable,
|
|
963
|
+
args: [{
|
|
964
|
+
providedIn: 'root'
|
|
965
|
+
}]
|
|
966
|
+
}] });
|
|
967
|
+
const STATUSES = {
|
|
968
|
+
COMPLETED: 'Completed',
|
|
969
|
+
NEW: 'New',
|
|
970
|
+
IN_PROGRESS: 'In Progress',
|
|
971
|
+
FAILED_IN_ERROR: 'Failed-in error',
|
|
972
|
+
FAILED: 'Failed',
|
|
973
|
+
FAILED_WITH_RETRY: 'Failed with Retry',
|
|
974
|
+
COLLECTING: 'Collecting',
|
|
975
|
+
FAILED_COLLECTING: 'Failed on collecting',
|
|
976
|
+
WAITING_FOR_REVIEW: 'Waiting for review'
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
class ProgressBarComponent {
|
|
980
|
+
constructor() {
|
|
981
|
+
this.isAvailable = false;
|
|
982
|
+
this.progress = 0;
|
|
983
|
+
this.color = 'grey';
|
|
984
|
+
}
|
|
985
|
+
ngOnInit() {
|
|
986
|
+
}
|
|
987
|
+
updatedProgress(progress) {
|
|
988
|
+
this.progress = progress;
|
|
989
|
+
this.setColor(this.progress);
|
|
990
|
+
}
|
|
991
|
+
setColor(progress) {
|
|
992
|
+
if (progress <= 20) {
|
|
993
|
+
this.color = 'red';
|
|
994
|
+
}
|
|
995
|
+
else if (progress <= 40) {
|
|
996
|
+
this.color = 'yellow';
|
|
997
|
+
}
|
|
998
|
+
else if (progress <= 60) {
|
|
999
|
+
this.color = 'darkblue';
|
|
1000
|
+
}
|
|
1001
|
+
else if (progress <= 80) {
|
|
1002
|
+
this.color = 'lightblue';
|
|
1003
|
+
}
|
|
1004
|
+
else if (progress <= 100.0) {
|
|
1005
|
+
this.color = 'green';
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
ProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1010
|
+
ProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ProgressBarComponent, selector: "app-progress-bar", inputs: { isAvailable: "isAvailable", progress: "progress" }, ngImport: i0, template: "<div *ngIf=\"isAvailable\" class=\"progress-bar-container\">\n <div class=\"progress-bar {{color}}\" [ngStyle]=\"{'width': progress + '%'}\"></div>\n</div>\n", styles: [".progress-bar-container{background-color:#e5e5e5;border-radius:20px;width:100%}.progress-bar{height:7px;width:0;border-radius:15px;text-align:center}.progress-percent{font-weight:600}.progress-bar.green{background-color:#94d326}.progress-bar.red{background-color:#ed4364}.progress-bar.yellow{background-color:#fed200}.progress-bar.darkblue{background-color:#2c355d}.progress-bar.lightblue{background-color:#2299d9}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
1011
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
1012
|
+
type: Component,
|
|
1013
|
+
args: [{ selector: 'app-progress-bar', template: "<div *ngIf=\"isAvailable\" class=\"progress-bar-container\">\n <div class=\"progress-bar {{color}}\" [ngStyle]=\"{'width': progress + '%'}\"></div>\n</div>\n", styles: [".progress-bar-container{background-color:#e5e5e5;border-radius:20px;width:100%}.progress-bar{height:7px;width:0;border-radius:15px;text-align:center}.progress-percent{font-weight:600}.progress-bar.green{background-color:#94d326}.progress-bar.red{background-color:#ed4364}.progress-bar.yellow{background-color:#fed200}.progress-bar.darkblue{background-color:#2c355d}.progress-bar.lightblue{background-color:#2299d9}\n"] }]
|
|
1014
|
+
}], ctorParameters: function () { return []; }, propDecorators: { isAvailable: [{
|
|
1015
|
+
type: Input
|
|
1016
|
+
}], progress: [{
|
|
1017
|
+
type: Input
|
|
1018
|
+
}] } });
|
|
1019
|
+
|
|
1020
|
+
class SiteUpgradeDataTableComponent {
|
|
1021
|
+
constructor() {
|
|
1022
|
+
this.siteUpgradeService = inject(SiteUpgradeService);
|
|
1023
|
+
this.apiService = inject(APIService);
|
|
1024
|
+
this.sites = [];
|
|
1025
|
+
this.destroy$ = new Subject();
|
|
1026
|
+
this.STATUS_ENTRIES = STATUS_ENTRIES;
|
|
1027
|
+
this.dataPending = false;
|
|
1028
|
+
this.displayedColumns = ['site', 'ready users', 'upgraded users', 'location mapping', 'pstn trunk', 'site upgrade status', 'progressBar', 'actions', 'userUpgradeLoader'];
|
|
1029
|
+
this.selection = new SelectionModel(true, []);
|
|
1030
|
+
this.filters = [];
|
|
1031
|
+
this.activeFilters = {};
|
|
1032
|
+
this.subscriptions = new Subscription();
|
|
1033
|
+
this.statusCounts = {};
|
|
1034
|
+
}
|
|
1035
|
+
ngOnInit() {
|
|
1036
|
+
this.dataPending = true;
|
|
1037
|
+
this.apiService.token = this.token;
|
|
1038
|
+
this.siteUpgradeService.customerId = this.customerId;
|
|
1039
|
+
const subsc1 = this.siteUpgradeService.getSiteUpgradeRecords()
|
|
1040
|
+
.pipe(takeUntil(this.destroy$))
|
|
1041
|
+
.subscribe((records) => {
|
|
1042
|
+
this.data = new MatTableDataSource(records);
|
|
1043
|
+
this.sites = records.slice();
|
|
1044
|
+
this.dataPending = false;
|
|
1045
|
+
this.setupCustomFilter();
|
|
1046
|
+
this.initializeFilters(records);
|
|
1047
|
+
});
|
|
1048
|
+
this.subscriptions.add(subsc1);
|
|
1049
|
+
const subsc2 = this.siteUpgradeService.getSiteUpgradeStatusCounts()
|
|
1050
|
+
.pipe(takeUntil(this.destroy$))
|
|
1051
|
+
.subscribe((statusCounts) => {
|
|
1052
|
+
this.statusCounts['Ready'] = statusCounts['READY'] || 0;
|
|
1053
|
+
this.statusCounts['Not Ready'] = statusCounts['NOT_READY'] || 0;
|
|
1054
|
+
this.statusCounts['Completed'] = statusCounts['COMPLETED'] || 0;
|
|
1055
|
+
this.statusCounts['Failed'] = statusCounts['FAILED'] || 0;
|
|
1056
|
+
});
|
|
1057
|
+
this.subscriptions.add(subsc2);
|
|
1058
|
+
const subsc3 = this.siteUpgradeService.siteUpdateStatusEvent
|
|
1059
|
+
.subscribe((updatedStatuses) => {
|
|
1060
|
+
this.handleCheckBatchStatusResponse(updatedStatuses);
|
|
1061
|
+
});
|
|
1062
|
+
this.subscriptions.add(subsc3);
|
|
1063
|
+
}
|
|
1064
|
+
onSiteMigration(site) {
|
|
1065
|
+
site.pending = true;
|
|
1066
|
+
site.isProgressBarAvailable = true;
|
|
1067
|
+
site.isMigrationInProgress = true;
|
|
1068
|
+
const subsc = this.siteUpgradeService.migrateSite(site.siteId)
|
|
1069
|
+
.pipe(takeUntil(this.destroy$))
|
|
1070
|
+
.subscribe((records) => {
|
|
1071
|
+
this.runMigrationProgress(site);
|
|
1072
|
+
});
|
|
1073
|
+
this.subscriptions.add(subsc);
|
|
1074
|
+
}
|
|
1075
|
+
runMigrationProgress(site) {
|
|
1076
|
+
this.updateMigrationProgress(site);
|
|
1077
|
+
site.interval = setInterval(() => {
|
|
1078
|
+
this.updateMigrationProgress(site);
|
|
1079
|
+
}, 10000);
|
|
1080
|
+
}
|
|
1081
|
+
updateMigrationProgress(site) {
|
|
1082
|
+
if (!site || !site.isMigrationInProgress) {
|
|
1083
|
+
return;
|
|
1084
|
+
}
|
|
1085
|
+
this.siteUpgradeService.getMigrationBatchesStatuses()
|
|
1086
|
+
.subscribe(() => { }, () => {
|
|
1087
|
+
this.resetMigrationProgress(site, 'FAILED');
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
resetMigrationProgress(site, status) {
|
|
1091
|
+
site.isMigrationInProgress = false;
|
|
1092
|
+
site.pending = false;
|
|
1093
|
+
site.isProgressBarAvailable = false;
|
|
1094
|
+
if (site.interval) {
|
|
1095
|
+
clearInterval(site.interval);
|
|
1096
|
+
}
|
|
1097
|
+
if (status) {
|
|
1098
|
+
site.status = status;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
onCollect(site) {
|
|
1102
|
+
site.pending = true;
|
|
1103
|
+
site.status = STATUSES.COLLECTING;
|
|
1104
|
+
// const ind =
|
|
1105
|
+
const subscription = this.siteUpgradeService.collectSiteCache(Number(site.siteId), 'webex')
|
|
1106
|
+
.subscribe({
|
|
1107
|
+
error: () => site.pending = false
|
|
1108
|
+
});
|
|
1109
|
+
this.subscriptions.add(subscription);
|
|
1110
|
+
this.runBatchCheckStatus();
|
|
1111
|
+
/*setTimeout(() => {
|
|
1112
|
+
this.initCollectInterval(site);
|
|
1113
|
+
}, 500);*/
|
|
1114
|
+
}
|
|
1115
|
+
initCollectInterval(site) {
|
|
1116
|
+
if (!site.interval && !site.initPending) {
|
|
1117
|
+
const ind = this.getSiteIndex(site);
|
|
1118
|
+
if (this.sites[ind]) {
|
|
1119
|
+
this.sites[ind].pending = true;
|
|
1120
|
+
}
|
|
1121
|
+
/*this.getCUCMListAlreadyInCollectWebexCache(batch);
|
|
1122
|
+
this.getSiteListForCollectAndBuildWebexCache(batch);
|
|
1123
|
+
|
|
1124
|
+
site.interval = setInterval(() => {
|
|
1125
|
+
this.getCUCMListAlreadyInCollectWebexCache(batch);
|
|
1126
|
+
this.getSiteListForCollectAndBuildWebexCache(batch);
|
|
1127
|
+
|
|
1128
|
+
}, 10000);*/
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
runBatchCheckStatus() {
|
|
1132
|
+
if (this.sites && this.sites.length) {
|
|
1133
|
+
const collectingBatchesIds = this.sites
|
|
1134
|
+
.filter(site => site.status && site.status === STATUSES.COLLECTING)
|
|
1135
|
+
.map(site => site.siteId);
|
|
1136
|
+
if (collectingBatchesIds.length > 0) {
|
|
1137
|
+
this.checkBatchStatus(collectingBatchesIds);
|
|
1138
|
+
this.collectingBatchInterval = setInterval(() => {
|
|
1139
|
+
this.checkBatchStatus(collectingBatchesIds);
|
|
1140
|
+
}, 10000);
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
checkBatchStatus(batchIds) {
|
|
1145
|
+
const subsc = this.siteUpgradeService.getBatchesStatuses(batchIds)
|
|
1146
|
+
.pipe(takeUntil(this.destroy$), catchError$1(() => {
|
|
1147
|
+
clearInterval(this.collectingBatchInterval);
|
|
1148
|
+
return of([]);
|
|
1149
|
+
})).subscribe((updatedStatuses) => {
|
|
1150
|
+
this.handleCheckBatchStatusResponse(updatedStatuses);
|
|
1151
|
+
});
|
|
1152
|
+
this.subscriptions.add(subsc);
|
|
1153
|
+
}
|
|
1154
|
+
handleCheckBatchStatusResponse(updatedStatuses) {
|
|
1155
|
+
if (updatedStatuses && updatedStatuses.length && this.sites && this.sites.length) {
|
|
1156
|
+
updatedStatuses.forEach(updatedStatus => {
|
|
1157
|
+
const ind = this.sites.findIndex(batch => batch.siteId === updatedStatus.id);
|
|
1158
|
+
if (ind > -1 && this.sites[ind]) {
|
|
1159
|
+
this.sites[ind].status = updatedStatus.status;
|
|
1160
|
+
}
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
else {
|
|
1164
|
+
if (this.collectingBatchInterval) {
|
|
1165
|
+
clearInterval(this.collectingBatchInterval);
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
getSiteIndex(site) {
|
|
1170
|
+
if (this.sites && this.sites.length) {
|
|
1171
|
+
return this.sites.findIndex(siteItem => siteItem.siteId === site.siteId);
|
|
1172
|
+
}
|
|
1173
|
+
return -1;
|
|
1174
|
+
}
|
|
1175
|
+
initializeFilters(records) {
|
|
1176
|
+
// Extract unique sites from actual data
|
|
1177
|
+
const uniqueSites = [...new Set(records.map(record => record.siteName))];
|
|
1178
|
+
const siteOptions = uniqueSites.map(site => ({
|
|
1179
|
+
label: site,
|
|
1180
|
+
value: site.toLowerCase().replace(/\s+/g, '-')
|
|
1181
|
+
}));
|
|
1182
|
+
// Extract unique statuses from actual data
|
|
1183
|
+
const uniqueStatuses = [...new Set(records.map(record => record.upgradeStatus))];
|
|
1184
|
+
const statusOptions = uniqueStatuses.map(status => ({
|
|
1185
|
+
label: STATUS_ENTRIES[status],
|
|
1186
|
+
value: status.toLowerCase().replace(/\s+/g, '-')
|
|
1187
|
+
}));
|
|
1188
|
+
this.filters = [
|
|
1189
|
+
{
|
|
1190
|
+
id: 'sites',
|
|
1191
|
+
type: 'select',
|
|
1192
|
+
columnKey: 'Site',
|
|
1193
|
+
placeholder: 'Sites',
|
|
1194
|
+
options: siteOptions
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
id: 'status',
|
|
1198
|
+
type: 'select',
|
|
1199
|
+
columnKey: 'Site Upgrade Status',
|
|
1200
|
+
placeholder: 'Upgrade Status',
|
|
1201
|
+
options: statusOptions
|
|
1202
|
+
}
|
|
1203
|
+
];
|
|
1204
|
+
}
|
|
1205
|
+
onFilter(filterEvent) {
|
|
1206
|
+
const { key, value } = filterEvent;
|
|
1207
|
+
let filterValue;
|
|
1208
|
+
if (value && value.value !== undefined) {
|
|
1209
|
+
filterValue = value.value;
|
|
1210
|
+
}
|
|
1211
|
+
else if (value && value.target) {
|
|
1212
|
+
filterValue = value.target.value;
|
|
1213
|
+
}
|
|
1214
|
+
else {
|
|
1215
|
+
filterValue = value;
|
|
1216
|
+
}
|
|
1217
|
+
// Handle "All" option or empty values - remove the filter
|
|
1218
|
+
if (filterValue === 'all' || !filterValue || filterValue === '') {
|
|
1219
|
+
delete this.activeFilters[key];
|
|
1220
|
+
}
|
|
1221
|
+
else {
|
|
1222
|
+
this.activeFilters[key] = filterValue;
|
|
1223
|
+
}
|
|
1224
|
+
this.applyFilters();
|
|
1225
|
+
}
|
|
1226
|
+
setupCustomFilter() {
|
|
1227
|
+
this.data.filterPredicate = (data, filter) => {
|
|
1228
|
+
const filters = JSON.parse(filter || '{}');
|
|
1229
|
+
for (const [key, value] of Object.entries(filters)) {
|
|
1230
|
+
if (!value)
|
|
1231
|
+
continue;
|
|
1232
|
+
switch (key) {
|
|
1233
|
+
case 'Site':
|
|
1234
|
+
if (data.siteName !== this.getSiteNameFromValue(value)) {
|
|
1235
|
+
return false;
|
|
1236
|
+
}
|
|
1237
|
+
break;
|
|
1238
|
+
case 'Site Upgrade Status':
|
|
1239
|
+
if (!this.matchesUpgradeStatus(data.upgradeStatus, value)) {
|
|
1240
|
+
return false;
|
|
1241
|
+
}
|
|
1242
|
+
break;
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
return true;
|
|
1246
|
+
};
|
|
1247
|
+
}
|
|
1248
|
+
applyFilters() {
|
|
1249
|
+
this.data.filter = JSON.stringify(this.activeFilters);
|
|
1250
|
+
}
|
|
1251
|
+
getSiteNameFromValue(value) {
|
|
1252
|
+
// Since we're now using actual site names, just convert back from slug format
|
|
1253
|
+
return value.split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
|
|
1254
|
+
}
|
|
1255
|
+
matchesUpgradeStatus(status, filterValue) {
|
|
1256
|
+
// Handle direct status matching for cleaner implementation
|
|
1257
|
+
return status.toLowerCase().replace(/\s+/g, '-') === filterValue.toLowerCase();
|
|
1258
|
+
}
|
|
1259
|
+
get filteredDataCount() {
|
|
1260
|
+
var _a, _b;
|
|
1261
|
+
return ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.filteredData) === null || _b === void 0 ? void 0 : _b.length) || 0;
|
|
1262
|
+
}
|
|
1263
|
+
/** Whether the number of selected elements matches the total number of rows. */
|
|
1264
|
+
isAllSelected() {
|
|
1265
|
+
var _a;
|
|
1266
|
+
const numSelected = this.selection.selected.length;
|
|
1267
|
+
const numRows = ((_a = this.data) === null || _a === void 0 ? void 0 : _a.data.length) || 0;
|
|
1268
|
+
return numSelected === numRows;
|
|
1269
|
+
}
|
|
1270
|
+
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
1271
|
+
masterToggle() {
|
|
1272
|
+
var _a;
|
|
1273
|
+
this.isAllSelected() ?
|
|
1274
|
+
this.selection.clear() :
|
|
1275
|
+
(_a = this.data) === null || _a === void 0 ? void 0 : _a.data.forEach(row => this.selection.select(row));
|
|
1276
|
+
}
|
|
1277
|
+
getLocationMappingClass(locationMapping) {
|
|
1278
|
+
return locationMapping ? 'success' : 'error';
|
|
1279
|
+
}
|
|
1280
|
+
getSiteUpgradeStatusClass(status) {
|
|
1281
|
+
switch (status.toLowerCase()) {
|
|
1282
|
+
case 'ready':
|
|
1283
|
+
return 'ready';
|
|
1284
|
+
case 'partial ready':
|
|
1285
|
+
return 'partial-ready';
|
|
1286
|
+
case 'completed':
|
|
1287
|
+
return 'completed';
|
|
1288
|
+
case 'failed':
|
|
1289
|
+
return 'failed';
|
|
1290
|
+
case 'not ready':
|
|
1291
|
+
return 'not-ready';
|
|
1292
|
+
default:
|
|
1293
|
+
return 'not-ready';
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
upgradeSite(site) {
|
|
1297
|
+
this.siteUpgradeService.upgradeSite(site);
|
|
1298
|
+
}
|
|
1299
|
+
ngOnDestroy() {
|
|
1300
|
+
this.destroy$.next();
|
|
1301
|
+
this.destroy$.complete();
|
|
1302
|
+
this.dataPending = false;
|
|
1303
|
+
if (this.collectingBatchInterval) {
|
|
1304
|
+
clearInterval(this.collectingBatchInterval);
|
|
1305
|
+
}
|
|
1306
|
+
if (this.subscriptions) {
|
|
1307
|
+
this.subscriptions.unsubscribe();
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
SiteUpgradeDataTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1312
|
+
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 *ngIf=\"dataPending\" class=\"overlay\">\r\n <mat-progress-spinner\r\n class=\"page-spinner\"\r\n mode=\"indeterminate\"\r\n [diameter]=\"120\"></mat-progress-spinner>\r\n</div>\r\n\r\n<div id=\"siteUpgradeTable\" 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']\"\r\n [status]=\"'Not Ready'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Sites failed to upgrade'\" [value]=\"statusCounts['Failed']\"\r\n [status]=\"'Failed'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Successfully upgraded'\" [value]=\"statusCounts['Completed']\"\r\n [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 {{ 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=\"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 [ngClass]=\"{'status-ready': element.upgradeStatus === 'READY'}\">{{ 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 <ng-container matColumnDef=\"progressBar\">\r\n <th class=\"header\" mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"app-progress-bar-container\">\r\n <app-progress-bar\r\n [isAvailable]=\"element.isProgressBarAvailable\"\r\n [progress]=\"element.progress\"\r\n #progressBars>\r\n </app-progress-bar>\r\n </div>\r\n <span *ngIf=\"element.isProgressBarAvailable\" class=\"progress-percents\">\r\n {{ element.progress }} %\r\n </span>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Action Column -->\r\n <ng-container matColumnDef=\"actions\">\r\n <th mat-header-cell *matHeaderCellDef>Actions</th>\r\n <td mat-cell *matCellDef=\"let element\" class=\"progress-spinner-td\">\r\n <button mat-button color=\"primary\" class=\"upgrade-button\" (click)=\"onSiteMigration(element)\">Upgrade</button>\r\n<!-- <div class=\"pay-button-icon\"></div>-->\r\n <button mat-icon-button [matMenuTriggerFor]=\"defaultBatchMenu\">\r\n <span style=\"font-size: 17px;\">\u22EE</span>\r\n </button>\r\n <mat-menu\r\n #defaultBatchMenu=\"matMenu\"\r\n xPosition=\"after\"\r\n class=\"webex-action-menu\">\r\n\r\n <div class=\"webex-action-menu-row\"\r\n [ngClass]=\"{ 'webex-action-menu-row-disabled': element.pending }\"\r\n (click)=\"element.pending ? $event.stopPropagation() : onCollect(element)\">\r\n <span\r\n class=\"webex-details-icon webex-icon\"\r\n [ngClass]=\"{ 'migration-action-disabled': element.pending || STATUS_ENTRIES[element.upgradeStatus] !== 'Ready'}\">\r\n </span>\r\n <span class=\"webex-action-menu-title\">Collect</span>\r\n </div>\r\n </mat-menu>\r\n\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"userUpgradeLoader\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td class=\"mat-progress-spinner-td\" mat-cell *matCellDef=\"let element\">\r\n\r\n <mat-progress-spinner\r\n *ngIf=\"element.pending\"\r\n class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\">\r\n </mat-progress-spinner>\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;500;600;700&display=swap\";.webex-action-menu{box-shadow:0 4px 40px #0000001a!important;border-radius:0!important;width:258px;box-sizing:content-box;cursor:pointer}.webex-action-menu-row-disabled{cursor:default!important;opacity:.4}.webex-action-menu-row-disabled .webex-action-menu-title{color:#bababa!important;line-height:23px}.webex-action-menu-row:hover{background:#f5f5f5}.webex-icon{display:inline-block;height:25px;width:25px;margin:0 7px 0 0}.webex-details-icon{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M16.2115 19.5H17.0961V16H16.2115V19.5ZM16.6538 15.0865C16.7743 15.0929 16.8782 15.0509 16.9653 14.9606C17.0525 14.8702 17.0961 14.7647 17.0961 14.6442C17.0961 14.5237 17.0509 14.4199 16.9605 14.3327C16.8701 14.2455 16.7679 14.2019 16.6538 14.2019C16.5333 14.2019 16.4294 14.2455 16.3422 14.3327C16.2551 14.4199 16.2115 14.5237 16.2115 14.6442C16.2115 14.7583 16.2551 14.8606 16.3422 14.951C16.4294 15.0413 16.5333 15.0865 16.6538 15.0865ZM4.99997 3.99998V10.1827V10.1538V20V3.99998ZM7.25 13.75H10.7231C10.8679 13.4692 11.0307 13.2038 11.2115 12.9538C11.3923 12.7038 11.591 12.4692 11.8077 12.25H7.25V13.75ZM7.25 17.75H10.0173C9.98009 17.5 9.9615 17.2516 9.9615 17.0048C9.9615 16.758 9.97688 16.5064 10.0076 16.25H7.25V17.75ZM5.3077 21.5C4.80257 21.5 4.375 21.325 4.025 20.975C3.675 20.625 3.5 20.1974 3.5 19.6923V4.3077C3.5 3.80257 3.675 3.375 4.025 3.025C4.375 2.675 4.80257 2.5 5.3077 2.5H13.25L18.5 7.74995V10.425C18.2538 10.3506 18.0073 10.2933 17.7605 10.2529C17.5137 10.2125 17.2602 10.1891 17 10.1827V8.49995H12.5V3.99998H5.3077C5.23077 3.99998 5.16024 4.03203 5.09612 4.09613C5.03202 4.16024 4.99997 4.23077 4.99997 4.3077V19.6923C4.99997 19.7692 5.03202 19.8397 5.09612 19.9038C5.16024 19.9679 5.23077 20 5.3077 20H10.7615C10.9064 20.2871 11.0692 20.5557 11.25 20.8057C11.4307 21.0557 11.6327 21.2871 11.8557 21.5H5.3077ZM16.6538 12.3462C17.9025 12.3462 18.9647 12.784 19.8403 13.6596C20.7159 14.5352 21.1538 15.5974 21.1538 16.8461C21.1538 18.0948 20.7159 19.157 19.8403 20.0326C18.9647 20.9083 17.9025 21.3461 16.6538 21.3461C15.4051 21.3461 14.3429 20.9083 13.4673 20.0326C12.5916 19.157 12.1538 18.0948 12.1538 16.8461C12.1538 15.5974 12.5916 14.5352 13.4673 13.6596C14.3429 12.784 15.4051 12.3462 16.6538 12.3462Z%22 fill%3D%22%232C355D%22%2F%3E%3C%2Fsvg%3E\")}.webex-action-menu-row{padding:5px 15px;display:flex;justify-content:flex-start}.webex-action-menu-row .webex-action-menu-title{line-height:23px}.mat-menu-content:not(:empty){padding-top:0!important}.mat-menu-panel{min-height:auto!important}#siteUpgradeTable{font-family:Inter,sans-serif!important}.wrapper{display:flex;flex-direction:column;gap:1rem}.overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff6;z-index:200}.mat-progress-spinner{position:absolute;top:50%;left:50%;margin-top:-20px;margin-left:-25px;width:50px;height:40px;text-align:center;font-size:10px}::ng-deep .mat-progress-spinner-td{position:relative}::ng-deep #siteUpgradeTable .mat-progress-spinner-td .mat-progress-spinner{top:28%;left:0;margin:0}.site-upgrade-status-wrapper{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.site-upgrade-table{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;font-family:Inter,sans-serif!important}.site-upgrade-table .mat-header-cell{border-bottom:1px solid #afafaf;font-family:Inter,sans-serif!important}.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 .status-ready{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}::ng-deep .action-wrapper{display:flex;align-items:center;flex:1;justify-content:space-between;gap:1rem;color:#555}.table-action-panel{width:100%;display:flex;justify-content:flex-start;align-items:center;gap:1rem}.pay-button-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:1px solid #2c355d;background-color:#fff;cursor:pointer;transition:all .3s ease;position:relative}.pay-button-icon:after{content:\"\";width:0;height:0;border-left:6px solid #2c355d;border-top:4px solid transparent;border-bottom:4px solid transparent;margin-left:2px}.pay-button-icon:hover{border-color:#2c355d;background-color:#f8fafc;transform:scale(1.05)}.pay-button-icon:hover:after{border-left-color:#2c355d}.pay-button-icon:active{transform:scale(.95);background-color:#e2e8f0}.pay-button-icon:disabled,.pay-button-icon.disabled{opacity:.5;cursor:not-allowed}.pay-button-icon:disabled:hover,.pay-button-icon.disabled:hover{transform:none;border-color:#d1d5db;background-color:#fff}.pay-button-icon:disabled:hover:after,.pay-button-icon.disabled:hover:after{border-left-color:#2c355d}.pay-button-icon.small{width:32px;height:32px;border-width:1.5px}.pay-button-icon.small:after{border-left-width:6px;border-top-width:5px;border-bottom-width:5px;margin-left:1px}.pay-button-icon.large{width:48px;height:48px;border-width:2.5px}.pay-button-icon.large:after{border-left-width:10px;border-top-width:7px;border-bottom-width:7px;margin-left:3px}.pay-button-icon.xl{width:56px;height:56px;border-width:3px}.pay-button-icon.xl:after{border-left-width:12px;border-top-width:8px;border-bottom-width:8px;margin-left:3px}.pay-button-icon.loading:after{display:none}.pay-button-icon.loading:before{content:\"\";width:16px;height:16px;border:2px solid #2c355d;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.pay-button{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;background:none;border:none;cursor:pointer;font-size:14px;font-weight:500;color:#2c355d;transition:color .3s ease}.pay-button .pay-button-icon{margin:0}\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$2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "directive", type: i5$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { 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: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: ProgressBarComponent, selector: "app-progress-bar", inputs: ["isAvailable", "progress"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1313
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeDataTableComponent, decorators: [{
|
|
1314
|
+
type: Component,
|
|
1315
|
+
args: [{ selector: 'tk-site-upgrade-data-table', encapsulation: ViewEncapsulation.None, template: "<div *ngIf=\"dataPending\" class=\"overlay\">\r\n <mat-progress-spinner\r\n class=\"page-spinner\"\r\n mode=\"indeterminate\"\r\n [diameter]=\"120\"></mat-progress-spinner>\r\n</div>\r\n\r\n<div id=\"siteUpgradeTable\" 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']\"\r\n [status]=\"'Not Ready'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Sites failed to upgrade'\" [value]=\"statusCounts['Failed']\"\r\n [status]=\"'Failed'\"></tk-summary-card>\r\n <tk-summary-card [description]=\"'Successfully upgraded'\" [value]=\"statusCounts['Completed']\"\r\n [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 {{ 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=\"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 [ngClass]=\"{'status-ready': element.upgradeStatus === 'READY'}\">{{ 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 <ng-container matColumnDef=\"progressBar\">\r\n <th class=\"header\" mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <div class=\"app-progress-bar-container\">\r\n <app-progress-bar\r\n [isAvailable]=\"element.isProgressBarAvailable\"\r\n [progress]=\"element.progress\"\r\n #progressBars>\r\n </app-progress-bar>\r\n </div>\r\n <span *ngIf=\"element.isProgressBarAvailable\" class=\"progress-percents\">\r\n {{ element.progress }} %\r\n </span>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- Action Column -->\r\n <ng-container matColumnDef=\"actions\">\r\n <th mat-header-cell *matHeaderCellDef>Actions</th>\r\n <td mat-cell *matCellDef=\"let element\" class=\"progress-spinner-td\">\r\n <button mat-button color=\"primary\" class=\"upgrade-button\" (click)=\"onSiteMigration(element)\">Upgrade</button>\r\n<!-- <div class=\"pay-button-icon\"></div>-->\r\n <button mat-icon-button [matMenuTriggerFor]=\"defaultBatchMenu\">\r\n <span style=\"font-size: 17px;\">\u22EE</span>\r\n </button>\r\n <mat-menu\r\n #defaultBatchMenu=\"matMenu\"\r\n xPosition=\"after\"\r\n class=\"webex-action-menu\">\r\n\r\n <div class=\"webex-action-menu-row\"\r\n [ngClass]=\"{ 'webex-action-menu-row-disabled': element.pending }\"\r\n (click)=\"element.pending ? $event.stopPropagation() : onCollect(element)\">\r\n <span\r\n class=\"webex-details-icon webex-icon\"\r\n [ngClass]=\"{ 'migration-action-disabled': element.pending || STATUS_ENTRIES[element.upgradeStatus] !== 'Ready'}\">\r\n </span>\r\n <span class=\"webex-action-menu-title\">Collect</span>\r\n </div>\r\n </mat-menu>\r\n\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"userUpgradeLoader\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td class=\"mat-progress-spinner-td\" mat-cell *matCellDef=\"let element\">\r\n\r\n <mat-progress-spinner\r\n *ngIf=\"element.pending\"\r\n class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\">\r\n </mat-progress-spinner>\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;500;600;700&display=swap\";.webex-action-menu{box-shadow:0 4px 40px #0000001a!important;border-radius:0!important;width:258px;box-sizing:content-box;cursor:pointer}.webex-action-menu-row-disabled{cursor:default!important;opacity:.4}.webex-action-menu-row-disabled .webex-action-menu-title{color:#bababa!important;line-height:23px}.webex-action-menu-row:hover{background:#f5f5f5}.webex-icon{display:inline-block;height:25px;width:25px;margin:0 7px 0 0}.webex-details-icon{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M16.2115 19.5H17.0961V16H16.2115V19.5ZM16.6538 15.0865C16.7743 15.0929 16.8782 15.0509 16.9653 14.9606C17.0525 14.8702 17.0961 14.7647 17.0961 14.6442C17.0961 14.5237 17.0509 14.4199 16.9605 14.3327C16.8701 14.2455 16.7679 14.2019 16.6538 14.2019C16.5333 14.2019 16.4294 14.2455 16.3422 14.3327C16.2551 14.4199 16.2115 14.5237 16.2115 14.6442C16.2115 14.7583 16.2551 14.8606 16.3422 14.951C16.4294 15.0413 16.5333 15.0865 16.6538 15.0865ZM4.99997 3.99998V10.1827V10.1538V20V3.99998ZM7.25 13.75H10.7231C10.8679 13.4692 11.0307 13.2038 11.2115 12.9538C11.3923 12.7038 11.591 12.4692 11.8077 12.25H7.25V13.75ZM7.25 17.75H10.0173C9.98009 17.5 9.9615 17.2516 9.9615 17.0048C9.9615 16.758 9.97688 16.5064 10.0076 16.25H7.25V17.75ZM5.3077 21.5C4.80257 21.5 4.375 21.325 4.025 20.975C3.675 20.625 3.5 20.1974 3.5 19.6923V4.3077C3.5 3.80257 3.675 3.375 4.025 3.025C4.375 2.675 4.80257 2.5 5.3077 2.5H13.25L18.5 7.74995V10.425C18.2538 10.3506 18.0073 10.2933 17.7605 10.2529C17.5137 10.2125 17.2602 10.1891 17 10.1827V8.49995H12.5V3.99998H5.3077C5.23077 3.99998 5.16024 4.03203 5.09612 4.09613C5.03202 4.16024 4.99997 4.23077 4.99997 4.3077V19.6923C4.99997 19.7692 5.03202 19.8397 5.09612 19.9038C5.16024 19.9679 5.23077 20 5.3077 20H10.7615C10.9064 20.2871 11.0692 20.5557 11.25 20.8057C11.4307 21.0557 11.6327 21.2871 11.8557 21.5H5.3077ZM16.6538 12.3462C17.9025 12.3462 18.9647 12.784 19.8403 13.6596C20.7159 14.5352 21.1538 15.5974 21.1538 16.8461C21.1538 18.0948 20.7159 19.157 19.8403 20.0326C18.9647 20.9083 17.9025 21.3461 16.6538 21.3461C15.4051 21.3461 14.3429 20.9083 13.4673 20.0326C12.5916 19.157 12.1538 18.0948 12.1538 16.8461C12.1538 15.5974 12.5916 14.5352 13.4673 13.6596C14.3429 12.784 15.4051 12.3462 16.6538 12.3462Z%22 fill%3D%22%232C355D%22%2F%3E%3C%2Fsvg%3E\")}.webex-action-menu-row{padding:5px 15px;display:flex;justify-content:flex-start}.webex-action-menu-row .webex-action-menu-title{line-height:23px}.mat-menu-content:not(:empty){padding-top:0!important}.mat-menu-panel{min-height:auto!important}#siteUpgradeTable{font-family:Inter,sans-serif!important}.wrapper{display:flex;flex-direction:column;gap:1rem}.overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff6;z-index:200}.mat-progress-spinner{position:absolute;top:50%;left:50%;margin-top:-20px;margin-left:-25px;width:50px;height:40px;text-align:center;font-size:10px}::ng-deep .mat-progress-spinner-td{position:relative}::ng-deep #siteUpgradeTable .mat-progress-spinner-td .mat-progress-spinner{top:28%;left:0;margin:0}.site-upgrade-status-wrapper{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.site-upgrade-table{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;font-family:Inter,sans-serif!important}.site-upgrade-table .mat-header-cell{border-bottom:1px solid #afafaf;font-family:Inter,sans-serif!important}.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 .status-ready{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}::ng-deep .action-wrapper{display:flex;align-items:center;flex:1;justify-content:space-between;gap:1rem;color:#555}.table-action-panel{width:100%;display:flex;justify-content:flex-start;align-items:center;gap:1rem}.pay-button-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:1px solid #2c355d;background-color:#fff;cursor:pointer;transition:all .3s ease;position:relative}.pay-button-icon:after{content:\"\";width:0;height:0;border-left:6px solid #2c355d;border-top:4px solid transparent;border-bottom:4px solid transparent;margin-left:2px}.pay-button-icon:hover{border-color:#2c355d;background-color:#f8fafc;transform:scale(1.05)}.pay-button-icon:hover:after{border-left-color:#2c355d}.pay-button-icon:active{transform:scale(.95);background-color:#e2e8f0}.pay-button-icon:disabled,.pay-button-icon.disabled{opacity:.5;cursor:not-allowed}.pay-button-icon:disabled:hover,.pay-button-icon.disabled:hover{transform:none;border-color:#d1d5db;background-color:#fff}.pay-button-icon:disabled:hover:after,.pay-button-icon.disabled:hover:after{border-left-color:#2c355d}.pay-button-icon.small{width:32px;height:32px;border-width:1.5px}.pay-button-icon.small:after{border-left-width:6px;border-top-width:5px;border-bottom-width:5px;margin-left:1px}.pay-button-icon.large{width:48px;height:48px;border-width:2.5px}.pay-button-icon.large:after{border-left-width:10px;border-top-width:7px;border-bottom-width:7px;margin-left:3px}.pay-button-icon.xl{width:56px;height:56px;border-width:3px}.pay-button-icon.xl:after{border-left-width:12px;border-top-width:8px;border-bottom-width:8px;margin-left:3px}.pay-button-icon.loading:after{display:none}.pay-button-icon.loading:before{content:\"\";width:16px;height:16px;border:2px solid #2c355d;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.pay-button{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;background:none;border:none;cursor:pointer;font-size:14px;font-weight:500;color:#2c355d;transition:color .3s ease}.pay-button .pay-button-icon{margin:0}\n"] }]
|
|
1316
|
+
}], ctorParameters: function () { return []; }, propDecorators: { token: [{
|
|
1317
|
+
type: Input
|
|
1318
|
+
}], customerId: [{
|
|
1319
|
+
type: Input
|
|
1320
|
+
}] } });
|
|
1321
|
+
|
|
1322
|
+
class SiteUpgradeModule {
|
|
1323
|
+
}
|
|
1324
|
+
SiteUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1325
|
+
SiteUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, declarations: [SiteUpgradeDataTableComponent,
|
|
1326
|
+
ProgressBarComponent], imports: [CommonModule,
|
|
1327
|
+
SharedModule,
|
|
1328
|
+
MatTableModule,
|
|
1329
|
+
MatIconModule,
|
|
1330
|
+
MatMenuModule,
|
|
1331
|
+
MatButtonModule,
|
|
1332
|
+
MatProgressSpinnerModule], exports: [SiteUpgradeDataTableComponent,
|
|
1333
|
+
ProgressBarComponent] });
|
|
1334
|
+
SiteUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, imports: [CommonModule,
|
|
1335
|
+
SharedModule,
|
|
1336
|
+
MatTableModule,
|
|
1337
|
+
MatIconModule,
|
|
1338
|
+
MatMenuModule,
|
|
1339
|
+
MatButtonModule,
|
|
1340
|
+
MatProgressSpinnerModule] });
|
|
1341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, decorators: [{
|
|
1342
|
+
type: NgModule,
|
|
1343
|
+
args: [{
|
|
1344
|
+
declarations: [
|
|
1345
|
+
SiteUpgradeDataTableComponent,
|
|
1346
|
+
ProgressBarComponent
|
|
1347
|
+
],
|
|
1348
|
+
imports: [
|
|
1349
|
+
CommonModule,
|
|
1350
|
+
SharedModule,
|
|
1351
|
+
MatTableModule,
|
|
1352
|
+
MatIconModule,
|
|
1353
|
+
MatMenuModule,
|
|
1354
|
+
MatButtonModule,
|
|
1355
|
+
MatProgressSpinnerModule
|
|
1356
|
+
],
|
|
1357
|
+
exports: [
|
|
1358
|
+
SiteUpgradeDataTableComponent,
|
|
1359
|
+
ProgressBarComponent
|
|
1360
|
+
]
|
|
1361
|
+
}]
|
|
1362
|
+
}] });
|
|
1363
|
+
|
|
1364
|
+
class UpgradeOverviewService {
|
|
1365
|
+
constructor(apiService) {
|
|
1366
|
+
this.apiService = apiService;
|
|
1367
|
+
}
|
|
1368
|
+
getUpgradePreconditions() {
|
|
1369
|
+
return this.apiService.fetch(API$1.OVERVIEW.GET_UPGRADE_PRECONDITIONS.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1370
|
+
return {
|
|
1371
|
+
id: resp.id,
|
|
1372
|
+
customerId: resp.customerId,
|
|
1373
|
+
controlHubIntegration: resp.controlHubIntegration,
|
|
1374
|
+
numberOfAvailableLicences: resp.availableLicences
|
|
1375
|
+
};
|
|
1376
|
+
}));
|
|
1377
|
+
}
|
|
1378
|
+
getSiteInfrastructureSummary() {
|
|
1379
|
+
return this.apiService.fetch(API$1.OVERVIEW.GET_SITE_INFRASTRUCTURE.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1380
|
+
return {
|
|
1381
|
+
id: resp.id,
|
|
1382
|
+
customerId: resp.customerId,
|
|
1383
|
+
totalSites: resp.totalSites,
|
|
1384
|
+
totalLocations: resp.totalLocations,
|
|
1385
|
+
totalPSTNs: resp.totalPSTNS
|
|
1386
|
+
};
|
|
1387
|
+
}));
|
|
1388
|
+
}
|
|
1389
|
+
getUsersUpgradeSummary() {
|
|
1390
|
+
return this.apiService.fetch(API$1.OVERVIEW.GET_USERS_UPGRADE_SUMMARY.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1391
|
+
return {
|
|
1392
|
+
id: resp.id,
|
|
1393
|
+
customerId: resp.customerId,
|
|
1394
|
+
totalUsers: resp.totalUsers,
|
|
1395
|
+
totalReadyUsers: resp.totalUsersReady,
|
|
1396
|
+
totalUpgradedUsers: resp.totalUsersUpgraded
|
|
1397
|
+
};
|
|
1398
|
+
}));
|
|
1399
|
+
}
|
|
1400
|
+
getSitesUpgradeSummary() {
|
|
1401
|
+
return this.apiService.fetch(API$1.OVERVIEW.GET_SITES_UPGRADE_SUMMARY.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1402
|
+
return {
|
|
1403
|
+
id: resp.id,
|
|
1404
|
+
customerId: resp.customerId,
|
|
1405
|
+
totalSites: resp.totalSites,
|
|
1406
|
+
totalReadySites: resp.totalSitesReady,
|
|
1407
|
+
totalUpgradedSites: resp.totalSitesUpgraded
|
|
1408
|
+
};
|
|
1409
|
+
}));
|
|
1410
|
+
}
|
|
1411
|
+
getUsersUpgradeReadiness() {
|
|
1412
|
+
return this.apiService.fetch(API$1.OVERVIEW.GET_USERS_UPGRADE_READINESS.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1413
|
+
return {
|
|
1414
|
+
id: resp.id,
|
|
1415
|
+
customerId: resp.customerId,
|
|
1416
|
+
totalUsers: resp.totalUsers,
|
|
1417
|
+
totalReadyUsers: resp.totalUsersReady
|
|
1418
|
+
};
|
|
1419
|
+
}));
|
|
1420
|
+
}
|
|
1421
|
+
getSitesUpgradeReadiness() {
|
|
1422
|
+
return this.apiService.fetch(API$1.OVERVIEW.GET_SITES_UPGRADE_READINESS.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1423
|
+
return {
|
|
1424
|
+
id: resp.id,
|
|
1425
|
+
customerId: resp.customerId,
|
|
1426
|
+
totalSites: resp.totalSites,
|
|
1427
|
+
totalReadySites: resp.totalSitesReady
|
|
1428
|
+
};
|
|
1429
|
+
}));
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
UpgradeOverviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, deps: [{ token: APIService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1433
|
+
UpgradeOverviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, providedIn: 'root' });
|
|
1434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, decorators: [{
|
|
1435
|
+
type: Injectable,
|
|
1436
|
+
args: [{
|
|
1437
|
+
providedIn: 'root'
|
|
1438
|
+
}]
|
|
1439
|
+
}], ctorParameters: function () { return [{ type: APIService }]; } });
|
|
1440
|
+
|
|
1441
|
+
class ReadyToUpgradeUsersCardComponent {
|
|
1442
|
+
constructor() {
|
|
1443
|
+
this.apiService = inject(APIService);
|
|
1444
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1445
|
+
this.destroy$ = new Subject();
|
|
1446
|
+
this.title = 'Ready Users';
|
|
1447
|
+
this.type = 'user';
|
|
1448
|
+
this.upgradeStatus = 'ready';
|
|
1449
|
+
this.loading = false;
|
|
1450
|
+
}
|
|
1451
|
+
ngOnInit() {
|
|
1452
|
+
this.apiService.token = this.token;
|
|
1453
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
1454
|
+
this.loading = true;
|
|
1455
|
+
this.upgradeOverviewService.getUsersUpgradeReadiness()
|
|
1456
|
+
.pipe(takeUntil(this.destroy$))
|
|
1457
|
+
.subscribe((stats) => {
|
|
1458
|
+
this.readinessStats = stats;
|
|
1459
|
+
this.loading = false;
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1462
|
+
ngOnDestroy() {
|
|
1463
|
+
this.destroy$.next();
|
|
1464
|
+
this.destroy$.complete();
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
ReadyToUpgradeUsersCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeUsersCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1468
|
+
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"] }] });
|
|
1469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeUsersCardComponent, decorators: [{
|
|
1470
|
+
type: Component,
|
|
1471
|
+
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>" }]
|
|
1472
|
+
}], propDecorators: { token: [{
|
|
1473
|
+
type: Input
|
|
1474
|
+
}], customerId: [{
|
|
1475
|
+
type: Input
|
|
1476
|
+
}] } });
|
|
1477
|
+
|
|
1478
|
+
class ReadyToUpgradeSitesCardComponent {
|
|
1479
|
+
constructor() {
|
|
1480
|
+
this.apiService = inject(APIService);
|
|
1481
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1482
|
+
this.destroy$ = new Subject();
|
|
1483
|
+
this.title = 'Ready Sites';
|
|
1484
|
+
this.type = 'site';
|
|
1485
|
+
this.upgradeStatus = 'ready';
|
|
1486
|
+
this.loading = false;
|
|
1487
|
+
}
|
|
1488
|
+
ngOnInit() {
|
|
1489
|
+
this.apiService.token = this.token;
|
|
1490
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
1491
|
+
this.loading = true;
|
|
1492
|
+
this.upgradeOverviewService.getSitesUpgradeReadiness()
|
|
1493
|
+
.pipe(takeUntil(this.destroy$))
|
|
1494
|
+
.subscribe((stats) => {
|
|
1495
|
+
this.readinessStats = stats;
|
|
1496
|
+
this.loading = false;
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
ngOnDestroy() {
|
|
1500
|
+
this.destroy$.next();
|
|
1501
|
+
this.destroy$.complete();
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
ReadyToUpgradeSitesCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeSitesCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1505
|
+
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"] }] });
|
|
1506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeSitesCardComponent, decorators: [{
|
|
1507
|
+
type: Component,
|
|
1508
|
+
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>" }]
|
|
1509
|
+
}], propDecorators: { token: [{
|
|
1510
|
+
type: Input
|
|
1511
|
+
}], customerId: [{
|
|
1512
|
+
type: Input
|
|
1513
|
+
}] } });
|
|
1514
|
+
|
|
1515
|
+
class AlreadyUpgradedUsersCardComponent {
|
|
1516
|
+
constructor() {
|
|
1517
|
+
this.apiService = inject(APIService);
|
|
1518
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1519
|
+
this.destroy$ = new Subject();
|
|
1520
|
+
this.title = 'Upgraded Users';
|
|
1521
|
+
this.type = 'user';
|
|
1522
|
+
this.upgradeStatus = 'already';
|
|
1523
|
+
this.loading = false;
|
|
1524
|
+
}
|
|
1525
|
+
ngOnInit() {
|
|
1526
|
+
this.apiService.token = this.token;
|
|
1527
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
1528
|
+
this.loading = true;
|
|
1529
|
+
this.upgradeOverviewService.getUsersUpgradeSummary()
|
|
1530
|
+
.pipe(takeUntil(this.destroy$))
|
|
1531
|
+
.subscribe((stats) => {
|
|
1532
|
+
this.readinessStats = stats;
|
|
1533
|
+
this.loading = false;
|
|
1534
|
+
});
|
|
1535
|
+
}
|
|
1536
|
+
ngOnDestroy() {
|
|
1537
|
+
this.destroy$.next();
|
|
1538
|
+
this.destroy$.complete();
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
AlreadyUpgradedUsersCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedUsersCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1542
|
+
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: `
|
|
1543
|
+
<tk-stat-card
|
|
1544
|
+
*ngIf="!loading"
|
|
1545
|
+
[title]="title"
|
|
1546
|
+
[type]="type"
|
|
1547
|
+
[readinessStats]="readinessStats"
|
|
1548
|
+
[upgradeStatus]="upgradeStatus"
|
|
1549
|
+
></tk-stat-card>
|
|
1550
|
+
`, 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"] }] });
|
|
1551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedUsersCardComponent, decorators: [{
|
|
1552
|
+
type: Component,
|
|
1553
|
+
args: [{
|
|
1554
|
+
selector: 'tk-already-upgraded-users-card',
|
|
1555
|
+
template: `
|
|
1556
|
+
<tk-stat-card
|
|
1557
|
+
*ngIf="!loading"
|
|
1558
|
+
[title]="title"
|
|
1559
|
+
[type]="type"
|
|
1560
|
+
[readinessStats]="readinessStats"
|
|
1561
|
+
[upgradeStatus]="upgradeStatus"
|
|
1562
|
+
></tk-stat-card>
|
|
1563
|
+
`
|
|
1564
|
+
}]
|
|
1565
|
+
}], propDecorators: { token: [{
|
|
1566
|
+
type: Input
|
|
1567
|
+
}], customerId: [{
|
|
1568
|
+
type: Input
|
|
1569
|
+
}] } });
|
|
1570
|
+
|
|
1571
|
+
class AlreadyUpgradedSitesCardComponent {
|
|
1572
|
+
constructor() {
|
|
1573
|
+
this.apiService = inject(APIService);
|
|
1574
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1575
|
+
this.destroy$ = new Subject();
|
|
1576
|
+
this.title = 'Upgraded Sites';
|
|
1577
|
+
this.type = 'site';
|
|
1578
|
+
this.upgradeStatus = 'already';
|
|
1579
|
+
this.loading = false;
|
|
1580
|
+
}
|
|
1581
|
+
ngOnInit() {
|
|
1582
|
+
this.apiService.token = this.token;
|
|
1583
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
1584
|
+
this.loading = true;
|
|
1585
|
+
this.upgradeOverviewService.getSitesUpgradeSummary()
|
|
1586
|
+
.pipe(takeUntil(this.destroy$))
|
|
1587
|
+
.subscribe((stats) => {
|
|
1588
|
+
this.readinessStats = stats;
|
|
1589
|
+
this.loading = false;
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1592
|
+
ngOnDestroy() {
|
|
1593
|
+
this.destroy$.next();
|
|
1594
|
+
this.destroy$.complete();
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
AlreadyUpgradedSitesCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedSitesCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1598
|
+
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: `
|
|
1599
|
+
<tk-stat-card
|
|
1600
|
+
*ngIf="!loading"
|
|
1601
|
+
[title]="title"
|
|
1602
|
+
[type]="type"
|
|
1603
|
+
[readinessStats]="readinessStats"
|
|
1604
|
+
[upgradeStatus]="upgradeStatus"
|
|
1605
|
+
></tk-stat-card>
|
|
1606
|
+
`, 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"] }] });
|
|
1607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedSitesCardComponent, decorators: [{
|
|
1608
|
+
type: Component,
|
|
1609
|
+
args: [{
|
|
1610
|
+
selector: 'tk-already-upgraded-sites-card',
|
|
1611
|
+
template: `
|
|
1612
|
+
<tk-stat-card
|
|
1613
|
+
*ngIf="!loading"
|
|
1614
|
+
[title]="title"
|
|
1615
|
+
[type]="type"
|
|
1616
|
+
[readinessStats]="readinessStats"
|
|
1617
|
+
[upgradeStatus]="upgradeStatus"
|
|
1618
|
+
></tk-stat-card>
|
|
1619
|
+
`
|
|
1620
|
+
}]
|
|
1621
|
+
}], propDecorators: { token: [{
|
|
1622
|
+
type: Input
|
|
1623
|
+
}], customerId: [{
|
|
1624
|
+
type: Input
|
|
1625
|
+
}] } });
|
|
1626
|
+
|
|
1627
|
+
class PreconditionsStatusListCardComponent {
|
|
1628
|
+
constructor() {
|
|
1629
|
+
this.apiService = inject(APIService);
|
|
1630
|
+
this.destroy$ = new Subject();
|
|
1631
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1632
|
+
this.title = 'Preconditions';
|
|
1633
|
+
}
|
|
1634
|
+
ngOnInit() {
|
|
1635
|
+
this.apiService.token = this.token;
|
|
1636
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
1637
|
+
this.upgradeOverviewService.getUpgradePreconditions()
|
|
1638
|
+
.pipe(takeUntil(this.destroy$))
|
|
1639
|
+
.subscribe((resp) => {
|
|
1640
|
+
this.preconditions = resp;
|
|
1641
|
+
this.init();
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1644
|
+
ngOnDestroy() {
|
|
1645
|
+
this.destroy$.next();
|
|
1646
|
+
this.destroy$.complete();
|
|
1647
|
+
}
|
|
1648
|
+
init() {
|
|
1649
|
+
this.items = [
|
|
1650
|
+
{
|
|
1651
|
+
label: 'Control Hub Integration',
|
|
1652
|
+
description: 'Control Hub Connectivity',
|
|
1653
|
+
status: this.preconditions.controlHubIntegration === 'CONNECTED'
|
|
1654
|
+
},
|
|
1655
|
+
{
|
|
1656
|
+
label: 'SIP Trunk (Local Gateway)',
|
|
1657
|
+
description: 'CUCM trunk connectivity estabilished',
|
|
1658
|
+
status: false
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
label: `${this.preconditions.numberOfAvailableLicences} Available User Licences`,
|
|
1662
|
+
description: 'Webex calling licences provisioned and assgined',
|
|
1663
|
+
status: this.preconditions.numberOfAvailableLicences > 0
|
|
1664
|
+
}
|
|
1665
|
+
];
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
PreconditionsStatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PreconditionsStatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1669
|
+
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: `
|
|
1670
|
+
<tk-status-list-card
|
|
1671
|
+
[title]="title"
|
|
1672
|
+
[items]="items"
|
|
1673
|
+
></tk-status-list-card>
|
|
1674
|
+
`, isInline: true, styles: [":host{width:100%}\n"], dependencies: [{ kind: "component", type: StatusListCardComponent, selector: "tk-status-list-card", inputs: ["title", "items"] }] });
|
|
1675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PreconditionsStatusListCardComponent, decorators: [{
|
|
1676
|
+
type: Component,
|
|
1677
|
+
args: [{ selector: 'tk-preconditions-status-list-card', template: `
|
|
1678
|
+
<tk-status-list-card
|
|
1679
|
+
[title]="title"
|
|
1680
|
+
[items]="items"
|
|
1681
|
+
></tk-status-list-card>
|
|
1682
|
+
`, styles: [":host{width:100%}\n"] }]
|
|
1683
|
+
}], propDecorators: { token: [{
|
|
1684
|
+
type: Input
|
|
1685
|
+
}], customerId: [{
|
|
1686
|
+
type: Input
|
|
1687
|
+
}] } });
|
|
1688
|
+
|
|
1689
|
+
class SiteInfrastructureStatusListCardComponent {
|
|
1690
|
+
constructor() {
|
|
1691
|
+
this.title = 'Site Infrastructure';
|
|
1692
|
+
this.apiService = inject(APIService);
|
|
1693
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1694
|
+
this.destroy$ = new Subject();
|
|
1695
|
+
}
|
|
1696
|
+
ngOnInit() {
|
|
1697
|
+
this.apiService.token = this.token;
|
|
1698
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
1699
|
+
this.upgradeOverviewService.getSiteInfrastructureSummary()
|
|
1700
|
+
.pipe(takeUntil(this.destroy$))
|
|
1701
|
+
.subscribe((siteInfrastructure) => {
|
|
1702
|
+
this.items = [
|
|
1703
|
+
{
|
|
1704
|
+
label: 'PSTN Trunk',
|
|
1705
|
+
description: 'Public network connectivity',
|
|
1706
|
+
status: false,
|
|
1707
|
+
totalSites: siteInfrastructure.totalSites,
|
|
1708
|
+
value: siteInfrastructure.totalPSTNs
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
label: 'Location Mapping',
|
|
1712
|
+
description: 'Sites defined in Control Hub with proper configuration',
|
|
1713
|
+
status: false,
|
|
1714
|
+
totalSites: siteInfrastructure.totalSites,
|
|
1715
|
+
value: siteInfrastructure.totalLocations
|
|
1716
|
+
}
|
|
1717
|
+
];
|
|
1718
|
+
});
|
|
1719
|
+
}
|
|
1720
|
+
ngOnDestroy() {
|
|
1721
|
+
this.destroy$.next();
|
|
1722
|
+
this.destroy$.complete();
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
SiteInfrastructureStatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteInfrastructureStatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1726
|
+
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: `
|
|
1727
|
+
<tk-status-list-card
|
|
1728
|
+
[title]="title"
|
|
1729
|
+
[items]="items"
|
|
1730
|
+
></tk-status-list-card>
|
|
1731
|
+
`, isInline: true, styles: [":host{width:100%}\n"], dependencies: [{ kind: "component", type: StatusListCardComponent, selector: "tk-status-list-card", inputs: ["title", "items"] }] });
|
|
1732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteInfrastructureStatusListCardComponent, decorators: [{
|
|
1733
|
+
type: Component,
|
|
1734
|
+
args: [{ selector: 'tk-site-infrastructure-status-list-card', template: `
|
|
1735
|
+
<tk-status-list-card
|
|
1736
|
+
[title]="title"
|
|
1737
|
+
[items]="items"
|
|
1738
|
+
></tk-status-list-card>
|
|
1739
|
+
`, styles: [":host{width:100%}\n"] }]
|
|
1740
|
+
}], propDecorators: { token: [{
|
|
1741
|
+
type: Input
|
|
1742
|
+
}], customerId: [{
|
|
1743
|
+
type: Input
|
|
1744
|
+
}] } });
|
|
1745
|
+
|
|
1746
|
+
class UpgradeStateComparisonChartCardComponent {
|
|
1747
|
+
constructor() {
|
|
1748
|
+
this.apiService = inject(APIService);
|
|
1749
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1750
|
+
this.destroy$ = new Subject();
|
|
1751
|
+
this.type = 'Users';
|
|
1752
|
+
this.loading = false;
|
|
1753
|
+
}
|
|
1754
|
+
ngOnInit() {
|
|
1755
|
+
this.apiService.token = this.token;
|
|
1756
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
1757
|
+
this.totalUpgraded = 0;
|
|
1758
|
+
this.totalNotUpgraded = 0;
|
|
1759
|
+
this.loading = true;
|
|
1760
|
+
this.title = `Upgraded vs. Not Upgraded ${this.type}`;
|
|
1761
|
+
if (this.type === 'Sites') {
|
|
1762
|
+
this.upgradeOverviewService.getSitesUpgradeSummary()
|
|
1763
|
+
.pipe(takeUntil(this.destroy$))
|
|
1764
|
+
.subscribe((stats) => {
|
|
1765
|
+
this.totalUpgraded = parseInt(stats.totalUpgradedSites);
|
|
1766
|
+
this.totalNotUpgraded = parseInt(stats.totalReadySites);
|
|
1767
|
+
this.loading = false;
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1770
|
+
else {
|
|
1771
|
+
this.upgradeOverviewService.getUsersUpgradeSummary()
|
|
1772
|
+
.pipe(takeUntil(this.destroy$))
|
|
1773
|
+
.subscribe((stats) => {
|
|
1774
|
+
this.totalUpgraded = parseInt(stats.totalUpgradedUsers);
|
|
1775
|
+
this.totalNotUpgraded = parseInt(stats.totalReadyUsers);
|
|
1776
|
+
this.loading = false;
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
ngOnDestroy() {
|
|
1781
|
+
this.destroy$.next();
|
|
1782
|
+
this.destroy$.complete();
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
UpgradeStateComparisonChartCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeStateComparisonChartCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1786
|
+
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: `
|
|
1787
|
+
<tk-chart-card
|
|
1788
|
+
*ngIf="!loading"
|
|
1789
|
+
[title]="title"
|
|
1790
|
+
[totalUpgraded]="totalUpgraded"
|
|
1791
|
+
[totalNotUpgraded]="totalNotUpgraded"
|
|
1792
|
+
></tk-chart-card>
|
|
1793
|
+
`, 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"] }] });
|
|
1794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeStateComparisonChartCardComponent, decorators: [{
|
|
1795
|
+
type: Component,
|
|
1796
|
+
args: [{ selector: "tk-upgrade-state-comparison-chart-card", template: `
|
|
1797
|
+
<tk-chart-card
|
|
1798
|
+
*ngIf="!loading"
|
|
1799
|
+
[title]="title"
|
|
1800
|
+
[totalUpgraded]="totalUpgraded"
|
|
1801
|
+
[totalNotUpgraded]="totalNotUpgraded"
|
|
1802
|
+
></tk-chart-card>
|
|
1803
|
+
`, styles: [":host{width:100%}\n"] }]
|
|
1804
|
+
}], propDecorators: { type: [{
|
|
1805
|
+
type: Input
|
|
1806
|
+
}], token: [{
|
|
1807
|
+
type: Input
|
|
1808
|
+
}], customerId: [{
|
|
1809
|
+
type: Input
|
|
1810
|
+
}] } });
|
|
1811
|
+
|
|
1812
|
+
class UpgradeOverviewModule {
|
|
1813
|
+
}
|
|
1814
|
+
UpgradeOverviewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1815
|
+
UpgradeOverviewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, declarations: [ReadyToUpgradeUsersCardComponent,
|
|
1816
|
+
ReadyToUpgradeSitesCardComponent,
|
|
1817
|
+
AlreadyUpgradedUsersCardComponent,
|
|
1818
|
+
AlreadyUpgradedSitesCardComponent,
|
|
1819
|
+
PreconditionsStatusListCardComponent,
|
|
1820
|
+
SiteInfrastructureStatusListCardComponent,
|
|
1821
|
+
UpgradeStateComparisonChartCardComponent], imports: [CommonModule,
|
|
1822
|
+
SharedModule], exports: [ReadyToUpgradeUsersCardComponent,
|
|
1823
|
+
ReadyToUpgradeSitesCardComponent,
|
|
1824
|
+
AlreadyUpgradedUsersCardComponent,
|
|
1825
|
+
AlreadyUpgradedSitesCardComponent,
|
|
1826
|
+
PreconditionsStatusListCardComponent,
|
|
1827
|
+
SiteInfrastructureStatusListCardComponent,
|
|
1828
|
+
UpgradeStateComparisonChartCardComponent] });
|
|
1829
|
+
UpgradeOverviewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, imports: [CommonModule,
|
|
1830
|
+
SharedModule] });
|
|
1831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, decorators: [{
|
|
1832
|
+
type: NgModule,
|
|
1833
|
+
args: [{
|
|
1834
|
+
declarations: [
|
|
1835
|
+
ReadyToUpgradeUsersCardComponent,
|
|
1836
|
+
ReadyToUpgradeSitesCardComponent,
|
|
1837
|
+
AlreadyUpgradedUsersCardComponent,
|
|
1838
|
+
AlreadyUpgradedSitesCardComponent,
|
|
1839
|
+
PreconditionsStatusListCardComponent,
|
|
1840
|
+
SiteInfrastructureStatusListCardComponent,
|
|
1841
|
+
UpgradeStateComparisonChartCardComponent
|
|
1842
|
+
],
|
|
1843
|
+
imports: [
|
|
1844
|
+
CommonModule,
|
|
1845
|
+
SharedModule
|
|
1846
|
+
],
|
|
1847
|
+
exports: [
|
|
1848
|
+
ReadyToUpgradeUsersCardComponent,
|
|
1849
|
+
ReadyToUpgradeSitesCardComponent,
|
|
1850
|
+
AlreadyUpgradedUsersCardComponent,
|
|
1851
|
+
AlreadyUpgradedSitesCardComponent,
|
|
1852
|
+
PreconditionsStatusListCardComponent,
|
|
1853
|
+
SiteInfrastructureStatusListCardComponent,
|
|
1854
|
+
UpgradeStateComparisonChartCardComponent
|
|
1855
|
+
],
|
|
1856
|
+
providers: []
|
|
1857
|
+
}]
|
|
1858
|
+
}] });
|
|
1859
|
+
|
|
1860
|
+
/*
|
|
1861
|
+
* Public API Surface of @tuki-io/tuki-widgets
|
|
1862
|
+
*/
|
|
1863
|
+
// Shared Components
|
|
1864
|
+
// export * from './shared/shared.module';
|
|
1865
|
+
// Widget Modules
|
|
1866
|
+
// Types
|
|
1867
|
+
// export * from './shared/types/data-table';
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* Generated bundle index. Do not edit.
|
|
1871
|
+
*/
|
|
1872
|
+
|
|
1873
|
+
export { AlreadyUpgradedSitesCardComponent, AlreadyUpgradedUsersCardComponent, PreconditionsStatusListCardComponent, ProgressBarComponent, ReadyToUpgradeSitesCardComponent, ReadyToUpgradeUsersCardComponent, SiteInfrastructureStatusListCardComponent, SiteUpgradeDataTableComponent, SiteUpgradeModule, UpgradeOverviewModule, UpgradeStateComparisonChartCardComponent, UserUpgradeDataTableComponent, UserUpgradeModule };
|
|
1874
|
+
//# sourceMappingURL=tuki-io-tuki-widgets-di2mt.mjs.map
|