@tuki-io/tuki-widgets 0.0.134 → 0.0.136
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/contact-center/cc-readiness/cc-readiness.module.d.ts +19 -0
- package/contact-center/cc-readiness/cc-readiness.service.d.ts +12 -0
- package/contact-center/cc-readiness/components/card/card.component.d.ts +6 -0
- package/contact-center/cc-readiness/types/cc-readiness.d.ts +20 -0
- package/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.d.ts +52 -0
- package/contact-center/cc-readiness/widgets/summary-grid/summary-grid.component.d.ts +26 -0
- package/contact-center/index.d.ts +5 -0
- package/contact-center/public-api.d.ts +3 -0
- package/contact-center/shared/api.endpoints.d.ts +6 -0
- package/contact-center/shared/api.service.d.ts +20 -0
- package/contact-center/shared/material.module.d.ts +15 -0
- package/contact-center/shared/shared.module.d.ts +10 -0
- package/di2mt/api/api.endpoints.d.ts +31 -0
- package/di2mt/index.d.ts +5 -0
- package/di2mt/public-api.d.ts +13 -0
- package/di2mt/shared/components/card/card.component.d.ts +6 -0
- package/di2mt/shared/components/chart-card/chart-card.component.d.ts +23 -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 +15 -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 +15 -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 +11 -0
- package/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.d.ts +69 -0
- package/di2mt/widgets/site-upgrade/site-upgrade.module.d.ts +15 -0
- package/di2mt/widgets/site-upgrade/site-upgrade.service.d.ts +84 -0
- package/di2mt/widgets/site-upgrade/types/user-upgrade.d.ts +26 -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/di2mt/widgets/upgrade-overview/types/upgrade-overview.d.ts +56 -0
- 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/di2mt/widgets/user-upgrade/types/user-upgrade.d.ts +32 -0
- package/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.d.ts +79 -0
- package/di2mt/widgets/user-upgrade/user-upgrade.module.d.ts +16 -0
- package/di2mt/widgets/user-upgrade/user-upgrade.service.d.ts +41 -0
- package/esm2020/contact-center/cc-readiness/cc-readiness.module.mjs +71 -0
- package/esm2020/contact-center/cc-readiness/cc-readiness.service.mjs +35 -0
- package/esm2020/contact-center/cc-readiness/components/card/card.component.mjs +13 -0
- package/esm2020/contact-center/cc-readiness/types/cc-readiness.mjs +5 -0
- package/esm2020/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.mjs +187 -0
- package/esm2020/contact-center/cc-readiness/widgets/summary-grid/summary-grid.component.mjs +47 -0
- package/esm2020/contact-center/public-api.mjs +4 -0
- package/esm2020/contact-center/shared/api.endpoints.mjs +7 -0
- package/esm2020/contact-center/shared/api.service.mjs +86 -0
- package/esm2020/contact-center/shared/material.module.mjs +76 -0
- package/esm2020/contact-center/shared/shared.module.mjs +33 -0
- package/esm2020/contact-center/tuki-io-tuki-widgets-contact-center.mjs +5 -0
- package/esm2020/di2mt/api/api.endpoints.mjs +32 -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 +66 -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 +43 -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 +63 -0
- package/esm2020/di2mt/shared/types/constants.mjs +20 -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 +38 -0
- package/esm2020/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.mjs +433 -0
- package/esm2020/di2mt/widgets/site-upgrade/site-upgrade.module.mjs +53 -0
- package/esm2020/di2mt/widgets/site-upgrade/site-upgrade.service.mjs +92 -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 +83 -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 +86 -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 +376 -0
- package/esm2020/di2mt/widgets/user-upgrade/user-upgrade.module.mjs +59 -0
- package/esm2020/di2mt/widgets/user-upgrade/user-upgrade.service.mjs +80 -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 +97 -0
- package/esm2020/user-device-manage/src/classes/device.mjs +85 -0
- package/esm2020/user-device-manage/src/classes/deviceProfile.mjs +34 -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-info/device-info.component.mjs +43 -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 +141 -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/pipes/mac-address.pipe.mjs +26 -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 +311 -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/shared/tk-page-section/page-section.component.mjs +13 -0
- package/esm2020/user-device-manage/src/user-device-manage.module.mjs +116 -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 +54 -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 +28 -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 +26 -0
- package/esm2020/user-manage/src/device-list/device-row/device-row.component.mjs +33 -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 +81 -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 +249 -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 +75 -0
- package/esm2020/user-manage/src/user-info/user-info.component.mjs +23 -0
- package/esm2020/user-manage/src/user-manage-widget.component.mjs +219 -0
- package/esm2020/user-manage/src/user-manage.module.mjs +102 -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/components/table-toolbar/table-toolbar.component.mjs +25 -0
- package/esm2020/users-list/src/material.module.mjs +216 -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 +141 -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 +339 -0
- package/esm2020/users-list/src/users-list.module.mjs +95 -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-contact-center.mjs +433 -0
- package/fesm2015/tuki-io-tuki-widgets-contact-center.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs +2220 -0
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs +3378 -0
- package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +2222 -0
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +2098 -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-contact-center.mjs +430 -0
- package/fesm2020/tuki-io-tuki-widgets-contact-center.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs +2204 -0
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs +3357 -0
- package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +2208 -0
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +2074 -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 +73 -49
- package/public-api.d.ts +3 -0
- package/user-device-manage/index.d.ts +5 -0
- package/user-device-manage/src/app.constants.d.ts +76 -0
- package/user-device-manage/src/classes/device.d.ts +233 -0
- package/user-device-manage/src/classes/deviceProfile.d.ts +24 -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-info/device-info.component.d.ts +15 -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 +54 -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/pipes/mac-address.pipe.d.ts +7 -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 +61 -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/shared/tk-page-section/page-section.component.d.ts +6 -0
- package/user-device-manage/src/user-device-manage.module.d.ts +25 -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 +33 -0
- package/user-manage/src/classes/device.d.ts +203 -0
- package/user-manage/src/classes/line-association-interface.d.ts +41 -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 +17 -0
- package/user-manage/src/classes/line.d.ts +141 -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/device-list/device-row/device-row.component.d.ts +12 -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 +37 -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 +45 -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 +10 -0
- package/user-manage/src/user-manage-widget.component.d.ts +45 -0
- package/user-manage/src/user-manage.module.d.ts +22 -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/components/table-toolbar/table-toolbar.component.d.ts +10 -0
- package/users-list/src/material.module.d.ts +32 -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 +37 -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 +62 -0
- package/users-list/src/users-list.module.d.ts +19 -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/contact-center/cc-readiness/cc-readiness.module.ts +0 -44
- package/projects/tuki/widgets/contact-center/cc-readiness/cc-readiness.service.spec.ts +0 -16
- package/projects/tuki/widgets/contact-center/cc-readiness/cc-readiness.service.ts +0 -33
- package/projects/tuki/widgets/contact-center/cc-readiness/components/card/card.component.html +0 -11
- package/projects/tuki/widgets/contact-center/cc-readiness/components/card/card.component.scss +0 -48
- package/projects/tuki/widgets/contact-center/cc-readiness/components/card/card.component.ts +0 -10
- package/projects/tuki/widgets/contact-center/cc-readiness/types/cc-readiness.ts +0 -34
- package/projects/tuki/widgets/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.html +0 -74
- package/projects/tuki/widgets/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.scss +0 -177
- package/projects/tuki/widgets/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.spec.ts +0 -35
- package/projects/tuki/widgets/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.ts +0 -237
- package/projects/tuki/widgets/contact-center/cc-readiness/widgets/summary-grid/summary-grid.component.html +0 -19
- package/projects/tuki/widgets/contact-center/cc-readiness/widgets/summary-grid/summary-grid.component.scss +0 -38
- package/projects/tuki/widgets/contact-center/cc-readiness/widgets/summary-grid/summary-grid.component.ts +0 -57
- package/projects/tuki/widgets/contact-center/ng-package.json +0 -7
- package/projects/tuki/widgets/contact-center/public-api.ts +0 -6
- package/projects/tuki/widgets/contact-center/shared/api.endpoints.ts +0 -6
- package/projects/tuki/widgets/contact-center/shared/api.service.ts +0 -91
- package/projects/tuki/widgets/contact-center/shared/assets/icons/applications.svg +0 -6
- package/projects/tuki/widgets/contact-center/shared/assets/icons/audioPrompts.svg +0 -4
- package/projects/tuki/widgets/contact-center/shared/assets/icons/contactServiceQueues.svg +0 -3
- package/projects/tuki/widgets/contact-center/shared/assets/icons/phonebooks.svg +0 -6
- package/projects/tuki/widgets/contact-center/shared/assets/icons/resourceGroups.svg +0 -6
- package/projects/tuki/widgets/contact-center/shared/assets/icons/resources.svg +0 -3
- package/projects/tuki/widgets/contact-center/shared/assets/icons/scripts.svg +0 -12
- package/projects/tuki/widgets/contact-center/shared/assets/icons/skills.svg +0 -3
- package/projects/tuki/widgets/contact-center/shared/assets/icons/teams.svg +0 -3
- package/projects/tuki/widgets/contact-center/shared/assets/icons/triggers.svg +0 -4
- package/projects/tuki/widgets/contact-center/shared/assets/icons/wrapUpCodes.svg +0 -3
- package/projects/tuki/widgets/contact-center/shared/assets/icons/xml.svg +0 -6
- package/projects/tuki/widgets/contact-center/shared/material.module.ts +0 -36
- package/projects/tuki/widgets/contact-center/shared/shared.module.ts +0 -20
- package/projects/tuki/widgets/contact-center/shared/styles/tuki-widgets-theme.scss +0 -13
- package/projects/tuki/widgets/contact-center/shared/styles/variables.scss +0 -94
- package/projects/tuki/widgets/di2mt/api/api.endpoints.ts +0 -31
- 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/icon_play.svg +0 -3
- 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/public-api.ts +0 -27
- 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 -76
- 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 -43
- 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 -57
- package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.scss +0 -187
- package/projects/tuki/widgets/di2mt/shared/components/status-list-card/status-list-card.component.ts +0 -41
- 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 -78
- 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 -245
- 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 -91
- package/projects/tuki/widgets/di2mt/shared/shared.module.ts +0 -39
- package/projects/tuki/widgets/di2mt/shared/types/constants.ts +0 -22
- 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 -94
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.html +0 -6
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.scss +0 -45
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.ts +0 -27
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.html +0 -160
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.scss +0 -460
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.ts +0 -506
- 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 -172
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/types/user-upgrade.ts +0 -27
- 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 -82
- 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 -81
- 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/types/upgrade-overview.ts +0 -58
- 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/types/user-upgrade.ts +0 -35
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.html +0 -204
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.scss +0 -462
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.ts +0 -438
- 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 -137
- 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/public-api.ts +0 -7
- package/projects/tuki/widgets/src/test.ts +0 -27
- package/projects/tuki/widgets/styles.scss +0 -558
- package/projects/tuki/widgets/tsconfig.lib.json +0 -37
- 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 -98
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-down-bold.svg +0 -1
- 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-regular.svg +0 -1
- 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/cancel-regular.svg +0 -1
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/check-circle-regular.svg +0 -1
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/cisco.svg +0 -8
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/cisco_7841.png +0 -0
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/cisco_8841.png +0 -0
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/cisco_8851.png +0 -0
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/cisco_9861.png +0 -0
- 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/info-circle-regular.svg +0 -1
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/people-regular.svg +0 -1
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/plus-regular.svg +0 -1
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/settings-light.svg +0 -1
- package/projects/tuki/widgets/user-device-manage/src/assets/icons/settings-regular.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/assets/icons/warning-regular.svg +0 -1
- package/projects/tuki/widgets/user-device-manage/src/assets/info-circle-bold.svg +0 -1
- package/projects/tuki/widgets/user-device-manage/src/classes/device.ts +0 -292
- package/projects/tuki/widgets/user-device-manage/src/classes/deviceProfile.ts +0 -60
- 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-info/device-info.component.html +0 -52
- package/projects/tuki/widgets/user-device-manage/src/device-info/device-info.component.scss +0 -219
- package/projects/tuki/widgets/user-device-manage/src/device-info/device-info.component.ts +0 -38
- 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 -281
- package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.scss +0 -766
- package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.ts +0 -142
- 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 -67
- package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -98
- 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/pipes/mac-address.pipe.ts +0 -24
- 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 -360
- 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/shared/tk-page-section/page-section.component.html +0 -13
- package/projects/tuki/widgets/user-device-manage/src/shared/tk-page-section/page-section.component.scss +0 -48
- package/projects/tuki/widgets/user-device-manage/src/shared/tk-page-section/page-section.component.spec.ts +0 -23
- package/projects/tuki/widgets/user-device-manage/src/shared/tk-page-section/page-section.component.ts +0 -10
- 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 -284
- package/projects/tuki/widgets/user-device-manage/src/styles/icons.scss +0 -33
- package/projects/tuki/widgets/user-device-manage/src/styles/styles.scss +0 -127
- 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 -79
- package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.html +0 -7
- 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 -54
- package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-down-bold.svg +0 -1
- 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-bold.svg +0 -1
- package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-right.svg +0 -5
- package/projects/tuki/widgets/user-manage/src/assets/icons/cisco_7841.png +0 -0
- package/projects/tuki/widgets/user-manage/src/assets/icons/cisco_8841.png +0 -0
- package/projects/tuki/widgets/user-manage/src/assets/icons/cisco_8851.png +0 -0
- package/projects/tuki/widgets/user-manage/src/assets/icons/cisco_9861.png +0 -0
- 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/info-circle-bold.svg +0 -1
- package/projects/tuki/widgets/user-manage/src/assets/icons/people-regular.svg +0 -1
- package/projects/tuki/widgets/user-manage/src/assets/icons/settings-light.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 -44
- 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 -44
- package/projects/tuki/widgets/user-manage/src/classes/line.ts +0 -145
- 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 -32
- package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.scss +0 -305
- package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.ts +0 -26
- package/projects/tuki/widgets/user-manage/src/device-list/device-row/device-row.component.html +0 -13
- package/projects/tuki/widgets/user-manage/src/device-list/device-row/device-row.component.scss +0 -154
- package/projects/tuki/widgets/user-manage/src/device-list/device-row/device-row.component.ts +0 -34
- 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 -68
- package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -125
- package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.ts +0 -93
- 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 -288
- 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 -93
- package/projects/tuki/widgets/user-manage/src/styles/form.scss +0 -231
- package/projects/tuki/widgets/user-manage/src/styles/icons.scss +0 -41
- package/projects/tuki/widgets/user-manage/src/styles/styles.scss +0 -128
- 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 -444
- 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 -97
- 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 -37
- package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.scss +0 -121
- 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 -313
- package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.scss +0 -638
- package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.ts +0 -222
- package/projects/tuki/widgets/user-manage/src/user-manage.module.ts +0 -65
- package/projects/tuki/widgets/user-manage/src/user-summary/user-summary.component.html +0 -64
- package/projects/tuki/widgets/user-manage/src/user-summary/user-summary.component.scss +0 -17
- package/projects/tuki/widgets/user-manage/src/user-summary/user-summary.component.ts +0 -8
- package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.html +0 -7
- 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/cogs.svg +0 -8
- package/projects/tuki/widgets/users-list/src/assets/icons/copy-regular.svg +0 -1
- package/projects/tuki/widgets/users-list/src/assets/icons/icon_user.svg +0 -1
- package/projects/tuki/widgets/users-list/src/assets/icons/info-circle-regular.svg +0 -1
- package/projects/tuki/widgets/users-list/src/assets/icons/info.svg +0 -5
- 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/mt.svg +0 -3
- package/projects/tuki/widgets/users-list/src/assets/icons/settings-regular.svg +0 -1
- package/projects/tuki/widgets/users-list/src/assets/icons/webex.svg +0 -7
- package/projects/tuki/widgets/users-list/src/assets/icons/webex_logo_icon.svg +0 -305
- 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/components/table-toolbar/table-toolbar.component.html +0 -39
- package/projects/tuki/widgets/users-list/src/components/table-toolbar/table-toolbar.component.scss +0 -41
- package/projects/tuki/widgets/users-list/src/components/table-toolbar/table-toolbar.component.ts +0 -21
- package/projects/tuki/widgets/users-list/src/material.module.ts +0 -97
- 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 -249
- 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 -160
- package/projects/tuki/widgets/users-list/src/styles/styles.scss +0 -639
- 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 -261
- package/projects/tuki/widgets/users-list/src/users-list.component.scss +0 -629
- package/projects/tuki/widgets/users-list/src/users-list.component.ts +0 -410
- package/projects/tuki/widgets/users-list/src/users-list.module.ts +0 -65
- 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 -7
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.scss +0 -17
- 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 -130
- package/projects/widgets-playground/src/app/app.component.scss +0 -16
- 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 -45
- 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/applications copy.svg +0 -6
- package/projects/widgets-playground/src/assets/icons/applications.svg +0 -6
- package/projects/widgets-playground/src/assets/icons/arrow-down-bold.svg +0 -1
- package/projects/widgets-playground/src/assets/icons/audio-prompts.svg +0 -4
- package/projects/widgets-playground/src/assets/icons/audioPrompts.svg +0 -4
- 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/contactServiceQueues.svg +0 -3
- package/projects/widgets-playground/src/assets/icons/copy-regular.svg +0 -1
- package/projects/widgets-playground/src/assets/icons/csqs.svg +0 -3
- package/projects/widgets-playground/src/assets/icons/expand_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/info-circle-regular.svg +0 -1
- 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/mt.svg +0 -3
- package/projects/widgets-playground/src/assets/icons/phone-books.svg +0 -6
- package/projects/widgets-playground/src/assets/icons/phonebooks.svg +0 -6
- package/projects/widgets-playground/src/assets/icons/ready_to_upgrade.png +0 -0
- package/projects/widgets-playground/src/assets/icons/resource-group.svg +0 -6
- package/projects/widgets-playground/src/assets/icons/resource.svg +0 -3
- package/projects/widgets-playground/src/assets/icons/resourceGroups.svg +0 -6
- package/projects/widgets-playground/src/assets/icons/resources.svg +0 -3
- package/projects/widgets-playground/src/assets/icons/scripts copy.svg +0 -12
- package/projects/widgets-playground/src/assets/icons/scripts.svg +0 -12
- package/projects/widgets-playground/src/assets/icons/search_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/settings-regular.svg +0 -1
- package/projects/widgets-playground/src/assets/icons/site.png +0 -0
- package/projects/widgets-playground/src/assets/icons/skills copy.svg +0 -3
- package/projects/widgets-playground/src/assets/icons/skills.svg +0 -3
- package/projects/widgets-playground/src/assets/icons/teams copy.svg +0 -3
- package/projects/widgets-playground/src/assets/icons/teams.svg +0 -3
- package/projects/widgets-playground/src/assets/icons/triggers copy.svg +0 -4
- package/projects/widgets-playground/src/assets/icons/triggers.svg +0 -4
- 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/assets/icons/webex.svg +0 -7
- package/projects/widgets-playground/src/assets/icons/webex_logo_icon.svg +0 -305
- package/projects/widgets-playground/src/assets/icons/wrapUpCodes.svg +0 -3
- package/projects/widgets-playground/src/assets/icons/wrapup-codes.svg +0 -3
- package/projects/widgets-playground/src/assets/icons/xml copy.svg +0 -6
- package/projects/widgets-playground/src/assets/icons/xml.svg +0 -6
- 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 -24
- 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,2204 @@
|
|
|
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 i2$1 from '@angular/material/table';
|
|
5
|
+
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
|
6
|
+
import { catchError, of, Subject, Subscription, takeUntil, map, forkJoin } 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 i3$1 from '@angular/material/checkbox';
|
|
12
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
13
|
+
import * as i4$1 from '@angular/material/button';
|
|
14
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
15
|
+
import * as i2 from '@angular/material/icon';
|
|
16
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
17
|
+
import * as i3 from '@angular/material/form-field';
|
|
18
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
19
|
+
import * as i4 from '@angular/material/input';
|
|
20
|
+
import { MatInputModule } from '@angular/material/input';
|
|
21
|
+
import * as i5 from '@angular/material/select';
|
|
22
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
23
|
+
import * as i6 from '@angular/material/core';
|
|
24
|
+
import { MatOptionModule } from '@angular/material/core';
|
|
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 * as i2$2 from '@angular/material/tooltip';
|
|
31
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
32
|
+
import * as i1$2 from 'ng-apexcharts';
|
|
33
|
+
import { NgApexchartsModule } from 'ng-apexcharts';
|
|
34
|
+
import { map as map$1, catchError as catchError$1 } from 'rxjs/operators';
|
|
35
|
+
import * as i6$1 from '@angular/material/menu';
|
|
36
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
37
|
+
|
|
38
|
+
const API$1 = {
|
|
39
|
+
OVERVIEW: {
|
|
40
|
+
GET_UPGRADE_PRECONDITIONS: '/api/webex-upgrade/customers/:customerId/preconditions/fetch',
|
|
41
|
+
GET_SITE_INFRASTRUCTURE: '/api/webex-upgrade/customers/:customerId/infra/fetch',
|
|
42
|
+
GET_USERS_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/users/upgrade/fetch',
|
|
43
|
+
GET_SITES_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/sites/upgrade/fetch',
|
|
44
|
+
GET_USERS_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/users/readiness/fetch',
|
|
45
|
+
GET_SITES_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/sites/readiness/fetch'
|
|
46
|
+
},
|
|
47
|
+
USER_UPGRADE: {
|
|
48
|
+
GET_USERS_UPGRADE_DATA: '/api/webex-upgrade/customers/:customerId/user-upgrade',
|
|
49
|
+
GET_USERS_UPGRADE_STATUS_COUNTS: '/api/webex-upgrade/customers/:customerId/user-upgrades/status-counts',
|
|
50
|
+
UPGRADE_USER: '/api/migration/webex/sites/:siteId/users/:userId',
|
|
51
|
+
SINGLE_COLLECT: '/api/migration/webex/singlecollect/features/:featureName',
|
|
52
|
+
SINGLE_MIGRATION: '/api/migration/webex/singlemigration/features/:featureName',
|
|
53
|
+
UPGRADE_STATUS: '/api/webex-upgrade/customers/:customerId/users/upgrade-status'
|
|
54
|
+
},
|
|
55
|
+
SITE_UPGRADE: {
|
|
56
|
+
GET_SITES_UPGRADE_DATA: '/api/webex-upgrade/customers/:customerId/site-upgrades',
|
|
57
|
+
GET_SITES_UPGRADE_STATUS_COUNTS: '/api/webex-upgrade/customers/:customerId/site-upgrades/status-counts',
|
|
58
|
+
WEBEX_CACHE_COLLECTION: '/api/migration/:migrationType/sites/:siteId/collectbuildwebexcache',
|
|
59
|
+
UPGRADE_SITE: '/api/migration/webex/sites/:siteId',
|
|
60
|
+
WEBEX_BATCH_STATUS: "/api/migration/webex/customer/:customerId/batchesstatus",
|
|
61
|
+
MIGRATE_SITE: "/api/migration/webex/sites/:siteId/migrate",
|
|
62
|
+
BATCH_STATUS: "/api/e2emigration/batches-status/:customerId",
|
|
63
|
+
GET_BATCH_SITES: "/api/e2emigration/batch/:customerId/Sites",
|
|
64
|
+
WEBEX_CACHE_COLLECTION_SITE_LIST: "/api/migration/webex/customers/:customerId/sitelistforcollectbuildwebexcache",
|
|
65
|
+
WEBEX_CACHE_COLLECTION_CUCM_LIST: "/api/migration/webex/customers/:customerId/cucmlistforcollectbuildwebexcache",
|
|
66
|
+
MIGRATION_STATUS: "/api/migration/state/webex/customers/:customerId/migrationstatus"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
class APIService {
|
|
71
|
+
constructor(httpClient) {
|
|
72
|
+
this.httpClient = httpClient;
|
|
73
|
+
this.apiUrl = window.location.protocol + '//' + window.location.hostname + '/dcp';
|
|
74
|
+
this.token = 'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBjb3JyZW5ldC5jb20iLCJyb2xlcyI6IlNVUEVSX1VTRVIiLCJpYXQiOjE3NTUwODUyMzgsImV4cCI6MTc1NTEwMzIzOH0.X1CKx-OBZvSs7Bzr_4SWW2ulBgHNkYZrmVuv6V7FZyo';
|
|
75
|
+
// this.apiUrl = window.location.protocol + '//' + window.location.host + '/dcp';
|
|
76
|
+
this.apiUrl = 'https://dev.tuki.io/webex';
|
|
77
|
+
// this.apiUrl = 'http://localhost:8088/dcp';
|
|
78
|
+
}
|
|
79
|
+
fetch(url, params, cache) {
|
|
80
|
+
const headers = this.getHeaders(cache);
|
|
81
|
+
params = params || {};
|
|
82
|
+
return this.httpClient.get(this.apiUrl + url, { params: this.prepareEncodedParams(params), headers });
|
|
83
|
+
}
|
|
84
|
+
post(url, body, params = {}) {
|
|
85
|
+
body = body || null;
|
|
86
|
+
const headers = this.getHeaders();
|
|
87
|
+
return this.httpClient.post(this.apiUrl + url, body, { params: this.prepareEncodedParams(params), headers });
|
|
88
|
+
}
|
|
89
|
+
// use when response extended data is necessary:
|
|
90
|
+
postExtended(url, body = null, params = {}, headers = {}) {
|
|
91
|
+
headers = headers || this.getHeaders();
|
|
92
|
+
return this.httpClient.post(this.apiUrl + url, body, {
|
|
93
|
+
headers,
|
|
94
|
+
observe: 'response',
|
|
95
|
+
params: this.prepareEncodedParams(params)
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
put(url, body = null, params = {}) {
|
|
99
|
+
const headers = this.getHeaders();
|
|
100
|
+
return this.httpClient.put(this.apiUrl + url, body, { headers, params: this.prepareEncodedParams(params) });
|
|
101
|
+
}
|
|
102
|
+
delete(url, params = {}) {
|
|
103
|
+
const headers = this.getHeaders();
|
|
104
|
+
return this.httpClient.delete(this.apiUrl + url, { headers, params: this.prepareEncodedParams(params) });
|
|
105
|
+
}
|
|
106
|
+
fetchPagination(url, pageSize, pageNumber, additionalParams = {}, cache) {
|
|
107
|
+
const copyAdditionalParams = JSON.parse(JSON.stringify(additionalParams));
|
|
108
|
+
const params = Object.assign(copyAdditionalParams, { size: pageSize.toString(), page: pageNumber.toString() });
|
|
109
|
+
return this.fetch(url, params, cache);
|
|
110
|
+
}
|
|
111
|
+
prepareEncodedParams(params) {
|
|
112
|
+
const result = {};
|
|
113
|
+
if (!params) {
|
|
114
|
+
return {};
|
|
115
|
+
}
|
|
116
|
+
for (const key of Object.keys(params)) {
|
|
117
|
+
if (params[key]) {
|
|
118
|
+
const stringParam = params[key].toString();
|
|
119
|
+
result[key] = stringParam.includes('+') ? encodeURIComponent(stringParam) : stringParam;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return result;
|
|
123
|
+
}
|
|
124
|
+
getHeaders(cache) {
|
|
125
|
+
let headers = new HttpHeaders();
|
|
126
|
+
if (cache) {
|
|
127
|
+
headers = headers.append('_Cache', 'true ');
|
|
128
|
+
}
|
|
129
|
+
const token = this.token || this.getParameterByName('token');
|
|
130
|
+
headers = headers.append('Authorization', 'Bearer ' + token);
|
|
131
|
+
return headers;
|
|
132
|
+
}
|
|
133
|
+
getParameterByName(name, url = window.location.href) {
|
|
134
|
+
name = name.replace(/[\[\]]/g, '\\$&');
|
|
135
|
+
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url);
|
|
136
|
+
if (!results)
|
|
137
|
+
return null;
|
|
138
|
+
if (!results[2])
|
|
139
|
+
return '';
|
|
140
|
+
return decodeURIComponent(results[2].replace(/\+/g, ' '));
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
APIService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
144
|
+
APIService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, providedIn: 'root' });
|
|
145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, decorators: [{
|
|
146
|
+
type: Injectable,
|
|
147
|
+
args: [{
|
|
148
|
+
providedIn: 'root'
|
|
149
|
+
}]
|
|
150
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
151
|
+
|
|
152
|
+
class UserUpgradeService {
|
|
153
|
+
constructor() {
|
|
154
|
+
this.apiService = inject(APIService);
|
|
155
|
+
}
|
|
156
|
+
// TODO: Impl the user upgrade logic here
|
|
157
|
+
bulkUpgrade(users) {
|
|
158
|
+
const body = this.generateUserUpgradeBody(users);
|
|
159
|
+
console.log('bulkUpgrade', users);
|
|
160
|
+
console.log(body);
|
|
161
|
+
// This is not done yet...
|
|
162
|
+
return this.apiService.post(API$1.USER_UPGRADE.SINGLE_MIGRATION.replace(':featureName', "PERSON"), body, {}).pipe(catchError((err) => of(err)));
|
|
163
|
+
}
|
|
164
|
+
collectUsers(users) {
|
|
165
|
+
const body = this.generateUserUpgradeBody(users);
|
|
166
|
+
console.log('collectUsers', body);
|
|
167
|
+
// This is not done yet...
|
|
168
|
+
return this.apiService.post(API$1.USER_UPGRADE.SINGLE_COLLECT.replace(':featureName', 'PERSON'), body, {}).pipe(catchError((err) => of(err)));
|
|
169
|
+
}
|
|
170
|
+
getUsersUpgradeStatuses(users) {
|
|
171
|
+
const body = this.generateUserUpgradeStatusBody(users);
|
|
172
|
+
console.log('getUsersUpgradeStatuses', body);
|
|
173
|
+
// This is not done yet...
|
|
174
|
+
return this.apiService.post(API$1.USER_UPGRADE.UPGRADE_STATUS.replace(':customerId', this.customerId), body, {}).pipe(catchError((err) => of(err)));
|
|
175
|
+
}
|
|
176
|
+
generateUserUpgradeBody(users) {
|
|
177
|
+
const entities = users.map(record => ({ cucmId: record.cucmId, entityId: record.userId }));
|
|
178
|
+
const customerId = users[0].customerId;
|
|
179
|
+
return {
|
|
180
|
+
customerId,
|
|
181
|
+
entities: {
|
|
182
|
+
PERSON: entities
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
generateUserUpgradeStatusBody(users) {
|
|
187
|
+
const body = {};
|
|
188
|
+
body[String(users[0].cucmId)] = users.map(user => String(user.userId));
|
|
189
|
+
return body;
|
|
190
|
+
}
|
|
191
|
+
getUserUpgradeStatusCounts() {
|
|
192
|
+
return this.apiService.fetch(API$1.USER_UPGRADE.GET_USERS_UPGRADE_STATUS_COUNTS.replace(':customerId', this.customerId));
|
|
193
|
+
}
|
|
194
|
+
getUserUpgradeRecords(pageSize, pageIndex, params) {
|
|
195
|
+
return this.apiService.fetchPagination(API$1.USER_UPGRADE.GET_USERS_UPGRADE_DATA.replace(':customerId', this.customerId), pageSize, pageIndex, params);
|
|
196
|
+
}
|
|
197
|
+
mapDevicesWithExtensions(devices, deviceDetails) {
|
|
198
|
+
if (!devices?.length) {
|
|
199
|
+
return [];
|
|
200
|
+
}
|
|
201
|
+
return devices.map(deviceName => {
|
|
202
|
+
const found = deviceDetails.find(d => d.name === deviceName);
|
|
203
|
+
return {
|
|
204
|
+
deviceName,
|
|
205
|
+
extensions: found?.extensions ?? []
|
|
206
|
+
};
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
UserUpgradeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
211
|
+
UserUpgradeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, providedIn: 'root' });
|
|
212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeService, decorators: [{
|
|
213
|
+
type: Injectable,
|
|
214
|
+
args: [{
|
|
215
|
+
providedIn: 'root'
|
|
216
|
+
}]
|
|
217
|
+
}] });
|
|
218
|
+
class User2UpgradeStatusDTO {
|
|
219
|
+
}
|
|
220
|
+
// map UI keys -> server keys
|
|
221
|
+
const FILTER_KEY_MAP = {
|
|
222
|
+
'Site': 'siteName',
|
|
223
|
+
'User Upgrade Status': 'upgradeStatus',
|
|
224
|
+
'User': 'userId',
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
const STATUS_ENTRIES = {
|
|
228
|
+
READY: 'Ready',
|
|
229
|
+
NOT_READY: 'Not Ready',
|
|
230
|
+
PARTIAL_READY: 'Partial Ready',
|
|
231
|
+
FAILED: 'Failed',
|
|
232
|
+
COMPLETED: 'Completed'
|
|
233
|
+
};
|
|
234
|
+
const DEPENDENCIES_STATUS = {
|
|
235
|
+
DEPENDENCIES_FOUND: 'Dependencies found',
|
|
236
|
+
NO_DEPENDENCIES: 'No dependencies',
|
|
237
|
+
};
|
|
238
|
+
var UPGRADE_STATUS;
|
|
239
|
+
(function (UPGRADE_STATUS) {
|
|
240
|
+
UPGRADE_STATUS["NOT_READY"] = "not_ready";
|
|
241
|
+
UPGRADE_STATUS["READY"] = "ready";
|
|
242
|
+
UPGRADE_STATUS["COMPLETED"] = "completed";
|
|
243
|
+
UPGRADE_STATUS["IN_PROGRESS"] = "in progress";
|
|
244
|
+
UPGRADE_STATUS["FAILED"] = "failed";
|
|
245
|
+
})(UPGRADE_STATUS || (UPGRADE_STATUS = {}));
|
|
246
|
+
|
|
247
|
+
const API = {
|
|
248
|
+
USER_TOKEN: '/api/provision/:siteId/users/:userId/token',
|
|
249
|
+
UPDATE_USER_FIELDS: '/api/provision/:siteId/userFields/:token',
|
|
250
|
+
PERSIST_USER_CACHE: '/api/provision/:siteId/saveUser/:token',
|
|
251
|
+
USER_BY_ID: '/api/provision/:siteId/users/:userId',
|
|
252
|
+
QUICK_USERS_SEARCH: "/api/search/quickusers",
|
|
253
|
+
LOCATION: "/api/provision/options/:siteId/locations",
|
|
254
|
+
USER_LOCALES: "/api/provision/options/:siteId/userlocales",
|
|
255
|
+
USER_PROFILES: "/api/provision/options/:siteId/userprofiles",
|
|
256
|
+
RECORDING_PROFILE: "/api/provision/options/:siteId/recordingprofiles",
|
|
257
|
+
AVAILABLE_DN_IN_RANGES: "/api/sites/:siteId/available-dn-in-ranges",
|
|
258
|
+
DELETE_LINE: "/api/provision/:siteId/deleteLine/:pkid/:token",
|
|
259
|
+
DISASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/deleteLineAssociation/:linePkid/:token",
|
|
260
|
+
CHECK_DELETE_LINE: "/api/provision/:siteId/checklinedeletion",
|
|
261
|
+
ASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/createLineAssociation/:token",
|
|
262
|
+
CHECK_DESTINATION_NUMBER: "/api/provision/:siteId/check-dn",
|
|
263
|
+
UPDATE_LINE_FIELDS: "/api/provision/:siteId/lineFields/:pkid/:token",
|
|
264
|
+
UPDATE_DEVICE_FIELDS: "/api/provision/:siteId/deviceFields/:deviceName/:token",
|
|
265
|
+
SOFTKEY_TEMPLATES: "/api/provision/options/:siteId/softkeytemplates",
|
|
266
|
+
SITE_SETTINGS: "/api/sites/:siteId/settings",
|
|
267
|
+
LINE_SLOTS: "/api/provision/:siteId/buttontemplate",
|
|
268
|
+
LEAN_USER_CONVERSATION_START: "/api/provision/:siteId/leanUsers/:userId/leanUserDetailsToken",
|
|
269
|
+
LEAN_USER_DEVICES_CONVERSATION_START: "/api/provision/:siteId/leanUsers/:userId/leanUserDevicesToken",
|
|
270
|
+
LEAN_USER_LINES_CONVERSATION_START: "/api/provision/:siteId/leanUsers/:userId/:leanUserDevicesToken/leanUserLinesToken",
|
|
271
|
+
LEAN_USER_SNR_CONVERSATION_START: "/api/provision/:siteId/leanUsers/:userId/leanUserSNRToken",
|
|
272
|
+
DEVICE_LINE_MONITOR_CSS: "/api/provision/options/:siteId/callingSearchSpace"
|
|
273
|
+
};
|
|
274
|
+
const REGEX_PATTERN = {
|
|
275
|
+
EMAIL: '^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))' +
|
|
276
|
+
'@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])' +
|
|
277
|
+
'?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])?)*$'
|
|
278
|
+
};
|
|
279
|
+
const PAGINATION_DEFAULTS = {
|
|
280
|
+
SIZE: 10,
|
|
281
|
+
INDEX: 0
|
|
282
|
+
};
|
|
283
|
+
const PAGINATION_SIZE_OPTIONS = [
|
|
284
|
+
10,
|
|
285
|
+
50,
|
|
286
|
+
100,
|
|
287
|
+
500
|
|
288
|
+
];
|
|
289
|
+
const CUCS_TO_IGNORE = [
|
|
290
|
+
189,
|
|
291
|
+
194,
|
|
292
|
+
191,
|
|
293
|
+
190
|
|
294
|
+
];
|
|
295
|
+
const CUCMS_TO_IGNORE = [
|
|
296
|
+
249,
|
|
297
|
+
255,
|
|
298
|
+
251,
|
|
299
|
+
250
|
|
300
|
+
];
|
|
301
|
+
const RECORDING_MEDIA_SOURCE = [
|
|
302
|
+
"Gateway Preferred",
|
|
303
|
+
"Phone Preferred"
|
|
304
|
+
];
|
|
305
|
+
const STATIC_OPTIONS = {
|
|
306
|
+
CALL_PICKUP_GROUP_AUDIO_SETTING_PHONE_ACTIVE: ['Use System Default', 'Disable', 'Beep Only'],
|
|
307
|
+
CALL_PICKUP_GROUP_AUDIO_SETTING_PHONE_IDLE: ['Use System Default', 'Disable', 'Ring Once'],
|
|
308
|
+
CONF_ACCESS_MODE: ['Fixed', 'Variable'],
|
|
309
|
+
DEFAULT_ON_OFF: ['Default', 'On', 'Off'],
|
|
310
|
+
DEFAULT_EN_DIS: ['Default', 'Enabled', 'Disabled'],
|
|
311
|
+
DND: ['Use Common Phone Profile Setting', 'Call Reject', 'Ringer Off'],
|
|
312
|
+
DND_INCOMING_CALL_ALLERT: ['Disable', 'Flash Only', 'Beep Only'],
|
|
313
|
+
LATENT_CAPABILITY: ['Gateway Controlled', 'Modem Relay', 'Modem Passthrough', 'Modem Relay and Passthrough', 'None'],
|
|
314
|
+
LINE_MODE: ['Session Line mode', 'Enhanced Line mode'],
|
|
315
|
+
ACTIONABLE_ALERT: ['Disabled', 'Show for all Incoming Call', 'Show for Invisible Incoming Call'],
|
|
316
|
+
MLPP_PREEMPTION: ['Default', 'Forceful', 'Disabled'],
|
|
317
|
+
PACKET_CAPTURE_MODE: ['None', 'Batch Processing Mode'],
|
|
318
|
+
RING_VOLUME: ['0-Silent', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15'],
|
|
319
|
+
PORT_DIRECTION: ['Bothways', 'Inbound', 'Outbound'],
|
|
320
|
+
RING_SETTING_IDLE: ['Use System Default', 'Disable', 'Flash Only', 'Ring Once', 'Ring'],
|
|
321
|
+
RING_SETTING_ACTIVE: ['Use System Default', 'Disable', 'Flash Only', 'Ring Once', 'Ring', 'Beep Only'],
|
|
322
|
+
SERVICE_PROVISIONING: ['Default', 'Internal', 'External URL', 'Both'],
|
|
323
|
+
SETTINGS_ACCES: ['Enabled', 'Disabled', 'Restricted'],
|
|
324
|
+
VISUAL_MWI: ['Use System Policy', 'Light and Prompt', 'Prompt Only', 'Light Only', 'None'],
|
|
325
|
+
WEEKDAYS: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
326
|
+
BUILD_BRIDGE: ['None', 'On', 'Off', 'Default'],
|
|
327
|
+
TRANSFER_TYPES: ['Release to Switch', 'Supervise Transfer'],
|
|
328
|
+
EXTENSION_IS_BUSY_TYPES: ['Send Callers to Voicemail', 'Put Callers on Hold Without Asking', 'Ask Callers to Hold'],
|
|
329
|
+
CALL_ACTIONS: ['Hang Up', 'Restart Greeting', 'Route From Next Call Routing Rule', 'Take Message'],
|
|
330
|
+
AUTHENTICATION_802: ['User controlled', 'Disabled', 'Enabled'],
|
|
331
|
+
CERTIFICATE_OPERATION: ['No Pending Operation', 'Install/Upgrade', 'Delete', 'Troubleshoot'],
|
|
332
|
+
AUTHENTICATION_MODE: ['By Authentication String', 'By Null String', 'By Existing Certificate (precedence to LSC)', 'By Existing Certificate (precedence to MIC)'],
|
|
333
|
+
KEY_ORDER: ['RSA Only', 'EC Only', 'EC Preferred, RSA Backup'],
|
|
334
|
+
RSA_KEY_SIZE: ['512', '1024', '2048'],
|
|
335
|
+
RSA_KEY_SIZE_SPECIFIC_DEVICE: ['512', '1024', '2048', '3072', '4096']
|
|
336
|
+
};
|
|
337
|
+
const TOGGLE_TYPES = {
|
|
338
|
+
TABS: 'TABS',
|
|
339
|
+
ASSOCIATED_LINE_ONLY: 'ASSOCIATED_LINE_ONLY'
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
class SummaryCardComponent {
|
|
343
|
+
constructor() {
|
|
344
|
+
this.value = 41;
|
|
345
|
+
this.status = 'Ready';
|
|
346
|
+
}
|
|
347
|
+
getStatusClass(status) {
|
|
348
|
+
switch (status?.toLowerCase()) {
|
|
349
|
+
case 'ready':
|
|
350
|
+
return 'ready';
|
|
351
|
+
case 'not ready':
|
|
352
|
+
return 'not-ready';
|
|
353
|
+
case 'failed':
|
|
354
|
+
return 'failed';
|
|
355
|
+
case 'completed':
|
|
356
|
+
return 'completed';
|
|
357
|
+
default:
|
|
358
|
+
return 'not-ready';
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
SummaryCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SummaryCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
363
|
+
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;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}.indicator-status-ready{color:#1170cf!important}.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"] }] });
|
|
364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SummaryCardComponent, decorators: [{
|
|
365
|
+
type: Component,
|
|
366
|
+
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;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}.indicator-status-ready{color:#1170cf!important}.summary__card-description{font-size:14px;color:#333;display:flex;align-items:center;justify-content:space-between}\n"] }]
|
|
367
|
+
}], propDecorators: { value: [{
|
|
368
|
+
type: Input
|
|
369
|
+
}], status: [{
|
|
370
|
+
type: Input
|
|
371
|
+
}], description: [{
|
|
372
|
+
type: Input
|
|
373
|
+
}] } });
|
|
374
|
+
|
|
375
|
+
class TableFiltersComponent {
|
|
376
|
+
constructor() {
|
|
377
|
+
this.filter = new EventEmitter();
|
|
378
|
+
}
|
|
379
|
+
ngOnInit() {
|
|
380
|
+
if (this.filters) {
|
|
381
|
+
this.filters.forEach(filter => {
|
|
382
|
+
if (filter.type === 'select' && !filter.options.some(opt => opt.value === 'all')) {
|
|
383
|
+
filter.options.unshift({ label: 'All', value: 'all' });
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
onFilter(key, value) {
|
|
389
|
+
const val = { key, value };
|
|
390
|
+
this.filter.emit(val);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
TableFiltersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableFiltersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
394
|
+
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}:host ::ng-deep .custom-mat-form-field{width:265px}:host ::ng-deep .custom-mat-form-field .mat-form-field-wrapper{height:24px;padding-bottom:0}:host ::ng-deep .custom-mat-form-field .mat-form-field-flex{height:34px;align-items:center;padding:0 12px}:host ::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}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline{color:#737480}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-end{border-color:#737480;border-width:1px}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-start{border-radius:6px 0 0 6px;min-width:6px}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-end{border-radius:0 6px 6px 0}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-gap{border-radius:0}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-end{border-color:#737480;border-width:2px}:host ::ng-deep .custom-mat-form-field .mat-form-field-subscript-wrapper{display:none}:host ::ng-deep .custom-mat-form-field .mat-form-field-label{color:#555;font-size:14px}:host ::ng-deep .custom-mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,:host ::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%)}:host ::ng-deep .custom-mat-form-field .mat-select-value{max-width:calc(100% - 20px)}:host ::ng-deep .custom-mat-form-field .mat-select-arrow-wrapper{transform:none;display:flex;align-items:center;position:absolute;right:-10px;top:5px}:host ::ng-deep .custom-mat-form-field input.mat-input-element{height:24px;line-height:24px;margin:3px 0 0}:host ::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-end{border-color:#ccc}:host ::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-end{border-color:#e70707}:host ::ng-deep .custom-mat-form-field .mat-select-arrow{width:16px;height:16px;border:none;margin:-6px 4px 0 0;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}:host ::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:-6px 4px 0 0;background:none}:host ::ng-deep .custom-mat-form-field .mat-form-field-label-wrapper{top:2px;padding-top:0;height:28px;display:flex;overflow:visible!important;align-items:center}:host ::ng-deep .custom-mat-form-field .mat-form-field-label{color:#555;position:relative;top:auto;transform:none;padding:0 4px;background:white}:host ::ng-deep .custom-mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{position:absolute;top:-5px;width:-moz-fit-content;width:fit-content;font-size:12px;color:#555;background:white;padding:0 4px}:host ::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}:host ::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"] }] });
|
|
395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableFiltersComponent, decorators: [{
|
|
396
|
+
type: Component,
|
|
397
|
+
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}:host ::ng-deep .custom-mat-form-field{width:265px}:host ::ng-deep .custom-mat-form-field .mat-form-field-wrapper{height:24px;padding-bottom:0}:host ::ng-deep .custom-mat-form-field .mat-form-field-flex{height:34px;align-items:center;padding:0 12px}:host ::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}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline{color:#737480}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-end{border-color:#737480;border-width:1px}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-start{border-radius:6px 0 0 6px;min-width:6px}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-end{border-radius:0 6px 6px 0}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-gap{border-radius:0}:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field .mat-form-field-outline-thick .mat-form-field-outline-end{border-color:#737480;border-width:2px}:host ::ng-deep .custom-mat-form-field .mat-form-field-subscript-wrapper{display:none}:host ::ng-deep .custom-mat-form-field .mat-form-field-label{color:#555;font-size:14px}:host ::ng-deep .custom-mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,:host ::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%)}:host ::ng-deep .custom-mat-form-field .mat-select-value{max-width:calc(100% - 20px)}:host ::ng-deep .custom-mat-form-field .mat-select-arrow-wrapper{transform:none;display:flex;align-items:center;position:absolute;right:-10px;top:5px}:host ::ng-deep .custom-mat-form-field input.mat-input-element{height:24px;line-height:24px;margin:3px 0 0}:host ::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field.mat-form-field-disabled .mat-form-field-outline-end{border-color:#ccc}:host ::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-start,:host ::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-gap,:host ::ng-deep .custom-mat-form-field.mat-form-field-invalid .mat-form-field-outline-end{border-color:#e70707}:host ::ng-deep .custom-mat-form-field .mat-select-arrow{width:16px;height:16px;border:none;margin:-6px 4px 0 0;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}:host ::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:-6px 4px 0 0;background:none}:host ::ng-deep .custom-mat-form-field .mat-form-field-label-wrapper{top:2px;padding-top:0;height:28px;display:flex;overflow:visible!important;align-items:center}:host ::ng-deep .custom-mat-form-field .mat-form-field-label{color:#555;position:relative;top:auto;transform:none;padding:0 4px;background:white}:host ::ng-deep .custom-mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{position:absolute;top:-5px;width:-moz-fit-content;width:fit-content;font-size:12px;color:#555;background:white;padding:0 4px}:host ::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}:host ::ng-deep .custom-mat-form-field .mat-select-placeholder{color:#555;line-height:34px}\n"] }]
|
|
398
|
+
}], propDecorators: { filters: [{
|
|
399
|
+
type: Input
|
|
400
|
+
}], filter: [{
|
|
401
|
+
type: Output
|
|
402
|
+
}] } });
|
|
403
|
+
|
|
404
|
+
class UserUpgradeDataTableComponent {
|
|
405
|
+
constructor() {
|
|
406
|
+
this.destroy$ = new Subject();
|
|
407
|
+
this.userUpgradeService = inject(UserUpgradeService);
|
|
408
|
+
this.apiService = inject(APIService);
|
|
409
|
+
this.STATUS_ENTRIES = STATUS_ENTRIES;
|
|
410
|
+
this.DEPENDENCIES_STATUS = DEPENDENCIES_STATUS;
|
|
411
|
+
this.dataPending = false;
|
|
412
|
+
this.displayedColumns = ['select', 'user', 'site', 'device', 'dialPlanStatus', 'dependencies', 'userUpgradeStatus', 'userUpgradeLoader'];
|
|
413
|
+
this.selection = new SelectionModel(true, []);
|
|
414
|
+
this.filters = [];
|
|
415
|
+
this.pagination = new PaginationDataDto();
|
|
416
|
+
this.users = [];
|
|
417
|
+
this.subscriptions = new Subscription();
|
|
418
|
+
this.statusCounts = {};
|
|
419
|
+
this.activeFilters = {};
|
|
420
|
+
this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
|
|
421
|
+
}
|
|
422
|
+
ngOnInit() {
|
|
423
|
+
this.dataPending = true;
|
|
424
|
+
this.apiService.token = this.token;
|
|
425
|
+
this.userUpgradeService.customerId = this.customerId;
|
|
426
|
+
const subsc1 = this.userUpgradeService.getUserUpgradeRecords(this.pagination.pageSize, this.pagination.pageIndex, this.activeFilters)
|
|
427
|
+
.pipe(takeUntil(this.destroy$))
|
|
428
|
+
.subscribe((results) => {
|
|
429
|
+
const records = results.content;
|
|
430
|
+
records.forEach(record => {
|
|
431
|
+
record.devicesWithExtensions = this.userUpgradeService.mapDevicesWithExtensions(record.devices, record.deviceDetails);
|
|
432
|
+
});
|
|
433
|
+
this.data = new MatTableDataSource(records);
|
|
434
|
+
this.pagination.total = results.totalElements;
|
|
435
|
+
this.dataPending = false;
|
|
436
|
+
this.setupCustomFilter();
|
|
437
|
+
this.initializeFilters(records);
|
|
438
|
+
});
|
|
439
|
+
this.subscriptions.add(subsc1);
|
|
440
|
+
const subsc2 = this.userUpgradeService.getUserUpgradeStatusCounts()
|
|
441
|
+
.pipe(takeUntil(this.destroy$))
|
|
442
|
+
.subscribe((statusCounts) => {
|
|
443
|
+
this.statusCounts['Ready'] = statusCounts['READY'] || 0;
|
|
444
|
+
this.statusCounts['Not Ready'] = statusCounts['NOT_READY'] || 0;
|
|
445
|
+
this.statusCounts['Completed'] = statusCounts['COMPLETED'] || 0;
|
|
446
|
+
this.statusCounts['Failed'] = statusCounts['FAILED'] || 0;
|
|
447
|
+
});
|
|
448
|
+
this.subscriptions.add(subsc2);
|
|
449
|
+
}
|
|
450
|
+
ngOnDestroy() {
|
|
451
|
+
this.destroy$.next();
|
|
452
|
+
this.destroy$.complete();
|
|
453
|
+
this.dataPending = false;
|
|
454
|
+
if (this.subscriptions) {
|
|
455
|
+
this.subscriptions.unsubscribe();
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
onMultipleDevices(user) {
|
|
459
|
+
user.showDevices = !user.showDevices;
|
|
460
|
+
}
|
|
461
|
+
pageEvent(event) {
|
|
462
|
+
this.pagination.pageIndex = event.pageIndex;
|
|
463
|
+
this.pagination.pageSize = event.pageSize;
|
|
464
|
+
this.getData();
|
|
465
|
+
}
|
|
466
|
+
getSiteUpgradeStatusClass(status) {
|
|
467
|
+
switch (status.toLowerCase()) {
|
|
468
|
+
case 'ready':
|
|
469
|
+
return 'status-ready';
|
|
470
|
+
case 'partial ready':
|
|
471
|
+
return 'partial-ready';
|
|
472
|
+
case 'completed':
|
|
473
|
+
return 'completed';
|
|
474
|
+
case 'failed':
|
|
475
|
+
return 'failed';
|
|
476
|
+
case 'not ready':
|
|
477
|
+
return 'not-ready';
|
|
478
|
+
default:
|
|
479
|
+
return 'not-ready';
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
changePerPageNumber(pageSizeEvent) {
|
|
483
|
+
this.pagination.pageSize = pageSizeEvent.value;
|
|
484
|
+
this.pagination.pageIndex = 0;
|
|
485
|
+
this.getData();
|
|
486
|
+
}
|
|
487
|
+
getData(params) {
|
|
488
|
+
this.dataPending = true;
|
|
489
|
+
const subsc1 = this.userUpgradeService.getUserUpgradeRecords(this.pagination.pageSize, this.pagination.pageIndex, params || {})
|
|
490
|
+
.pipe(takeUntil(this.destroy$))
|
|
491
|
+
.subscribe((result) => {
|
|
492
|
+
const records = result.content;
|
|
493
|
+
records.forEach(record => {
|
|
494
|
+
record.devicesWithExtensions = this.userUpgradeService.mapDevicesWithExtensions(record.devices, record.deviceDetails);
|
|
495
|
+
});
|
|
496
|
+
this.data = new MatTableDataSource(records);
|
|
497
|
+
this.pagination.total = result.totalElements;
|
|
498
|
+
this.dataPending = false;
|
|
499
|
+
});
|
|
500
|
+
this.subscriptions.add(subsc1);
|
|
501
|
+
}
|
|
502
|
+
initializeFilters(records) {
|
|
503
|
+
if (!records?.length) {
|
|
504
|
+
this.filters = [];
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
// Extract unique sites (skip empty/null)
|
|
508
|
+
const uniqueSites = [
|
|
509
|
+
...new Set(records
|
|
510
|
+
.map(record => record.siteName?.trim())
|
|
511
|
+
.filter((site) => !!site))
|
|
512
|
+
];
|
|
513
|
+
const siteOptions = uniqueSites.map(site => ({
|
|
514
|
+
label: site,
|
|
515
|
+
value: site.toLowerCase().replace(/\s+/g, '-')
|
|
516
|
+
}));
|
|
517
|
+
// Extract unique statuses (skip empty/null)
|
|
518
|
+
const uniqueStatuses = [
|
|
519
|
+
...new Set(records
|
|
520
|
+
.map(record => record.upgradeStatus?.trim())
|
|
521
|
+
.filter((status) => !!status))
|
|
522
|
+
];
|
|
523
|
+
const statusOptions = uniqueStatuses.map(status => ({
|
|
524
|
+
label: STATUS_ENTRIES[status],
|
|
525
|
+
value: status.toLowerCase().replace(/\s+/g, '-')
|
|
526
|
+
}));
|
|
527
|
+
this.filters = [
|
|
528
|
+
{
|
|
529
|
+
id: 'userName',
|
|
530
|
+
type: 'search',
|
|
531
|
+
columnKey: 'User',
|
|
532
|
+
placeholder: 'Search users...',
|
|
533
|
+
options: []
|
|
534
|
+
}
|
|
535
|
+
];
|
|
536
|
+
if (siteOptions.length) {
|
|
537
|
+
this.filters.push({
|
|
538
|
+
id: 'sites',
|
|
539
|
+
type: 'select',
|
|
540
|
+
columnKey: 'Site',
|
|
541
|
+
placeholder: 'Sites',
|
|
542
|
+
options: siteOptions
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
if (statusOptions.length) {
|
|
546
|
+
this.filters.push({
|
|
547
|
+
id: 'status',
|
|
548
|
+
type: 'select',
|
|
549
|
+
columnKey: 'User Upgrade Status',
|
|
550
|
+
placeholder: 'Upgrade Status',
|
|
551
|
+
options: statusOptions
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
/** Whether the number of selected elements matches the total number of rows. */
|
|
556
|
+
isAllSelected() {
|
|
557
|
+
const numSelected = this.selection.selected.length;
|
|
558
|
+
const numRows = this.data?.data.length ?? 0;
|
|
559
|
+
return numSelected === numRows;
|
|
560
|
+
}
|
|
561
|
+
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
562
|
+
masterToggle() {
|
|
563
|
+
// this.isAllSelected() ?
|
|
564
|
+
// this.selection.clear() :
|
|
565
|
+
// this.data?.data.forEach(row => this.selection.select(row));
|
|
566
|
+
if (this.isAllSelected()) {
|
|
567
|
+
this.selection.clear();
|
|
568
|
+
}
|
|
569
|
+
else {
|
|
570
|
+
this.data?.data.forEach(row => {
|
|
571
|
+
if (row.upgradeStatus === 'READY') {
|
|
572
|
+
this.selection.select(row);
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
upgradeUser(user) {
|
|
578
|
+
if (user?.upgradeStatus === 'READY')
|
|
579
|
+
user.pending = true;
|
|
580
|
+
this.userUpgradeService.collectUsers([user])
|
|
581
|
+
.pipe(takeUntil(this.destroy$))
|
|
582
|
+
.subscribe(() => {
|
|
583
|
+
this.userUpgradeService.bulkUpgrade([user])
|
|
584
|
+
.pipe(takeUntil(this.destroy$))
|
|
585
|
+
.subscribe(() => {
|
|
586
|
+
this.updateUsersStatusAfterUpgrade([user]);
|
|
587
|
+
});
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
updateUsersStatusAfterUpgrade(users) {
|
|
591
|
+
this.userUpgradeService.getUsersUpgradeStatuses(users)
|
|
592
|
+
.pipe(takeUntil(this.destroy$))
|
|
593
|
+
.subscribe((upgradedStatuses) => {
|
|
594
|
+
upgradedStatuses.forEach(statusItem => {
|
|
595
|
+
const ind = this.getUserIndex(statusItem.userId);
|
|
596
|
+
if (ind > -1) {
|
|
597
|
+
this.data.data[ind].upgradeStatus = statusItem.upgradeStatus;
|
|
598
|
+
this.data.data[ind].pending = false;
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
this.dataPending = false;
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
getUserIndex(userId) {
|
|
605
|
+
return this.data.data.findIndex((record) => record.userId === userId);
|
|
606
|
+
}
|
|
607
|
+
upgradeSelectedUsers() {
|
|
608
|
+
if (this.selection.selected && this.selection.selected.length) {
|
|
609
|
+
this.dataPending = true;
|
|
610
|
+
this.userUpgradeService.collectUsers(this.selection.selected)
|
|
611
|
+
.pipe(takeUntil(this.destroy$))
|
|
612
|
+
.subscribe(() => {
|
|
613
|
+
this.userUpgradeService.bulkUpgrade(this.selection.selected)
|
|
614
|
+
.pipe(takeUntil(this.destroy$))
|
|
615
|
+
.subscribe(() => {
|
|
616
|
+
this.updateUsersStatusAfterUpgrade(this.selection.selected);
|
|
617
|
+
});
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
this.userUpgradeService.bulkUpgrade(this.selection.selected);
|
|
621
|
+
}
|
|
622
|
+
getFilterValue(input) {
|
|
623
|
+
if (input && input.value !== undefined)
|
|
624
|
+
return input.value; // e.g. {value,label}
|
|
625
|
+
if (input && input.target)
|
|
626
|
+
return input.target.value; // DOM event
|
|
627
|
+
return input; // plain value
|
|
628
|
+
}
|
|
629
|
+
isEmptyFilter(v) {
|
|
630
|
+
if (v === undefined || v === null)
|
|
631
|
+
return true;
|
|
632
|
+
if (typeof v === 'string') {
|
|
633
|
+
const s = v.trim().toLowerCase();
|
|
634
|
+
return s === '' || s === 'all';
|
|
635
|
+
}
|
|
636
|
+
return false;
|
|
637
|
+
}
|
|
638
|
+
onFilter(filterEvent) {
|
|
639
|
+
const rawKey = filterEvent.key;
|
|
640
|
+
const serverKey = FILTER_KEY_MAP[rawKey];
|
|
641
|
+
const value = this.getFilterValue(filterEvent.value);
|
|
642
|
+
const next = { ...this.activeFilters };
|
|
643
|
+
if (this.isEmptyFilter(value)) {
|
|
644
|
+
delete next[serverKey];
|
|
645
|
+
}
|
|
646
|
+
else {
|
|
647
|
+
// normalize to string for API (trim)
|
|
648
|
+
next[serverKey] = typeof value === 'string' ? value.trim() : String(value);
|
|
649
|
+
}
|
|
650
|
+
this.activeFilters = next;
|
|
651
|
+
this.pagination.pageIndex = 0;
|
|
652
|
+
// quick fix for demo
|
|
653
|
+
if (this.activeFilters['upgradeStatus']) {
|
|
654
|
+
this.activeFilters['upgradeStatus'] = this.activeFilters['upgradeStatus']?.toUpperCase();
|
|
655
|
+
}
|
|
656
|
+
this.getData(this.activeFilters);
|
|
657
|
+
}
|
|
658
|
+
/*onFilter(filterEvent: { key: string, value: any }) {
|
|
659
|
+
const {key, value} = filterEvent;
|
|
660
|
+
|
|
661
|
+
let filterValue: any;
|
|
662
|
+
if (value && value.value !== undefined) {
|
|
663
|
+
filterValue = value.value;
|
|
664
|
+
} else if (value && value.target) {
|
|
665
|
+
filterValue = value.target.value;
|
|
666
|
+
} else {
|
|
667
|
+
filterValue = value;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
// Handle "All" option or empty values - remove the filter
|
|
671
|
+
if (filterValue === 'all' || !filterValue || filterValue === '') {
|
|
672
|
+
delete this.activeFilters[key];
|
|
673
|
+
} else {
|
|
674
|
+
this.activeFilters[key] = filterValue;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
this.applyFilters();
|
|
678
|
+
}*/
|
|
679
|
+
setupCustomFilter() {
|
|
680
|
+
this.data.filterPredicate = (data, filter) => {
|
|
681
|
+
const filters = JSON.parse(filter || '{}');
|
|
682
|
+
for (const [key, value] of Object.entries(filters)) {
|
|
683
|
+
if (!value)
|
|
684
|
+
continue;
|
|
685
|
+
switch (key) {
|
|
686
|
+
case 'User':
|
|
687
|
+
const searchTerm = value.toLowerCase();
|
|
688
|
+
if (!data.userName.toLowerCase().includes(searchTerm)) {
|
|
689
|
+
return false;
|
|
690
|
+
}
|
|
691
|
+
break;
|
|
692
|
+
case 'Site':
|
|
693
|
+
if (data.siteName !== this.getSiteNameFromValue(value)) {
|
|
694
|
+
return false;
|
|
695
|
+
}
|
|
696
|
+
break;
|
|
697
|
+
case 'User Upgrade Status':
|
|
698
|
+
if (!this.matchesUpgradeStatus(data.upgradeStatus, value)) {
|
|
699
|
+
return false;
|
|
700
|
+
}
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
return true;
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
applyFilters() {
|
|
708
|
+
this.data.filter = JSON.stringify(this.activeFilters);
|
|
709
|
+
}
|
|
710
|
+
get filteredDataCount() {
|
|
711
|
+
return this.data?.filteredData?.length || 0;
|
|
712
|
+
}
|
|
713
|
+
getSiteNameFromValue(value) {
|
|
714
|
+
// Since we're now using actual site names, just convert back from slug format
|
|
715
|
+
return value.split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
|
|
716
|
+
}
|
|
717
|
+
matchesUpgradeStatus(status, filterValue) {
|
|
718
|
+
// Handle direct status matching for cleaner implementation
|
|
719
|
+
return status.toLowerCase().replace(/\s+/g, '-') === filterValue.toLowerCase();
|
|
720
|
+
}
|
|
721
|
+
getStatusClass(status) {
|
|
722
|
+
switch (status.toLowerCase()) {
|
|
723
|
+
case 'ready':
|
|
724
|
+
return 'ready';
|
|
725
|
+
case 'not ready':
|
|
726
|
+
return 'not-ready';
|
|
727
|
+
case 'partial ready':
|
|
728
|
+
return 'partial-ready';
|
|
729
|
+
case 'completed':
|
|
730
|
+
return 'completed';
|
|
731
|
+
case 'failed':
|
|
732
|
+
return 'failed';
|
|
733
|
+
default:
|
|
734
|
+
return 'not-ready';
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
UserUpgradeDataTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
739
|
+
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]=\"70\"\r\n strokeWidth=\"3\"\r\n ></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=\"status-indicator\" [ngClass]=\"getSiteUpgradeStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{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 class=\"device-td\" mat-header-cell *matHeaderCellDef>Device</th>\r\n <td mat-cell *matCellDef=\"let element\" class=\"multi-dev-box\">\r\n <div *ngIf=\"element.showDevices\" class=\"device-list show-dev-list\">\r\n <div *ngFor=\"let device of element.devicesWithExtensions; let last = last\"\r\n class=\"device-item\"\r\n [class.no-border]=\"last\">\r\n <span class=\"device-indicator\" [ngClass]=\"{'device-indicator-ready': element.deviceStatus === 'READY'}\"></span>\r\n <span class=\"device-name\">{{ device.deviceName || device }}</span>\r\n <span class=\"device-model\">\r\n {{ device.extensions?.length ? 'Ext: ' + device.extensions.join(\", \") : 'No Extension' }}\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"device-info\">\r\n <div class=\"multiple-dev-link\" *ngIf=\"element.devicesWithExtensions?.length > 1; else oneDevice\">\r\n <div class=\"device-name-wrapper clickable\"\r\n (mouseenter)=\"onMultipleDevices(element)\"\r\n (mouseleave)=\"onMultipleDevices(element)\">\r\n\r\n <span class=\"device-name\">Multiple devices ></span>\r\n </div>\r\n </div>\r\n <ng-template #oneDevice>\r\n <div class=\"device-name-wrapper\">\r\n <span class=\"device-indicator\"></span>\r\n <span class=\"device-name\">{{element.devicesWithExtensions[0].deviceName}}</span>\r\n </div>\r\n <div class=\"device-model one-dev-extensions\">\r\n {{ element.devicesWithExtensions[0].extensions?.length ?\r\n 'Ext: ' + element.devicesWithExtensions[0].extensions?.join(\", \") : 'No Extension' }}\r\n </div>\r\n </ng-template>\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}#userUpgradeDataTable .flex-container{padding:0!important}.multiple-dev-link{margin:0 0 0 13px}:host ::ng-deep .mat-cell{border-bottom:1px solid #d6d6d6;font-family:Inter,sans-serif!important}:host ::ng-deep .mat-header-cell{border-bottom:1px solid #afafaf;font-family:Inter,sans-serif!important}:host ::ng-deep .progress-spinner-td{position:relative}:host ::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;align-items:stretch}.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:#737480}.user-upgrade-table .device-info .device-name-wrapper{display:flex;align-items:center;gap:5px}.user-upgrade-table .device-info .device-name-wrapper .device-name{font-weight:500;color:#212121}.user-upgrade-table .device-model{font-size:12px;color:#757575;display:block}.user-upgrade-table .one-dev-extensions{margin:0 0 0 13px}.user-upgrade-table .device-indicator{width:8px;height:8px;border-radius:50%;background-color:#f8cd00}.user-upgrade-table .device-indicator-ready{background-color:#1d805f}.user-upgrade-table .device-td{padding:0 0 0 13px}.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:#1170cf}.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-radius:20px!important;font-size:14px!important;font-style:normal!important;font-weight:400!important;height:32px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:2px solid black;border-radius:.5rem;color:#000}.user-upgrade-table .upgrade-button:hover{background-color:#000000ce!important;color:#fff!important}.user-upgrade-table .custom-checkbox .mdc-checkbox{padding:8px}.mat-checkbox-disabled{opacity:.5}.multi-dev-box{position:relative}.device-list{position:absolute;top:65%;left:0;min-width:200px;background:white;box-shadow:0 2px 8px #0000001a;padding:8px 0;margin-top:4px;border-radius:2px;opacity:0;transform:translateY(-10px);visibility:hidden;transition:all .3s ease;z-index:1000}.device-list.show-dev-list{opacity:1;transform:translateY(0);visibility:visible;pointer-events:auto}.clickable{cursor:pointer}.device-item{padding:12px 16px;border-bottom:1px solid #f5f5f5;cursor:pointer;transition:background-color .2s ease}.device-item:hover{background-color:#f9f9f9}.device-item.no-border{border-bottom:none}.device-item .device-name{font-size:14px;color:#333}.table-action-panel{width:100%;display:flex;justify-content:flex-start;gap:1rem}:host ::ng-deep .action-wrapper{display:flex;flex:1;align-items:center;justify-content:space-between;gap:1rem;color:#555}:host ::ng-deep .action-wrapper .mat-button .mat-button-wrapper{margin:0}.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-accent:not(.mat-checkbox-disabled).mat-checkbox-checked .mat-checkbox-background{background-color:#1170cf!important;border-color:#00000080!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled):hover:not(.mat-checkbox-checked) .mat-checkbox-background{background-color:#0000004d!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-indeterminate .mat-checkbox-background{background-color:#1170cf!important;border-color:#00000080!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-indeterminate .mat-checkbox-background .mat-checkbox-checkmark{transform:scale(.75)}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-indeterminate .mat-checkbox-background .mat-checkbox-mixedmark{transform:scale(.75)}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox .mat-checkbox-background{border-color:#00000080!important;transition:background-color .2s,border-color .2s,box-shadow .2s}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox .mat-checkbox-background .mat-checkbox-checkmark{transform:scale(.75)}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled) .mat-checkbox-ripple .mat-ripple-element{background-color:#1170cf40}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).cdk-focused .mat-checkbox-ripple .mat-ripple-element{background-color:#1170cf59}.user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-background{border-color:#00000080!important;transition:background-color .2s,border-color .2s,box-shadow .2s;background-color:#1170cf!important}.user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-background .mat-checkbox-checkmark{transform:scale(.75)}.user-upgrade-table .mat-checkbox.mat-accent .mat-ripple-element{background-color:#08599c1a!important}.user-upgrade-table .mat-checkbox.mat-accent:focus .mat-checkbox-background{background-color:#08599c1a!important}.user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-frame{border-color:#00000080!important}.user-upgrade-table .mat-checkbox-checkmark{color:#fff!important;transform:scale(.75)}.user-upgrade-table .mat-checkbox-checkmark-path{stroke:#fff!important}.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.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i2$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i4$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: SummaryCardComponent, selector: "tk-summary-card", inputs: ["value", "status", "description"] }, { kind: "component", type: TableFiltersComponent, selector: "tk-table-filters", inputs: ["filters"], outputs: ["filter"] }, { 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"] }] });
|
|
740
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeDataTableComponent, decorators: [{
|
|
741
|
+
type: Component,
|
|
742
|
+
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]=\"70\"\r\n strokeWidth=\"3\"\r\n ></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=\"status-indicator\" [ngClass]=\"getSiteUpgradeStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{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 class=\"device-td\" mat-header-cell *matHeaderCellDef>Device</th>\r\n <td mat-cell *matCellDef=\"let element\" class=\"multi-dev-box\">\r\n <div *ngIf=\"element.showDevices\" class=\"device-list show-dev-list\">\r\n <div *ngFor=\"let device of element.devicesWithExtensions; let last = last\"\r\n class=\"device-item\"\r\n [class.no-border]=\"last\">\r\n <span class=\"device-indicator\" [ngClass]=\"{'device-indicator-ready': element.deviceStatus === 'READY'}\"></span>\r\n <span class=\"device-name\">{{ device.deviceName || device }}</span>\r\n <span class=\"device-model\">\r\n {{ device.extensions?.length ? 'Ext: ' + device.extensions.join(\", \") : 'No Extension' }}\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"device-info\">\r\n <div class=\"multiple-dev-link\" *ngIf=\"element.devicesWithExtensions?.length > 1; else oneDevice\">\r\n <div class=\"device-name-wrapper clickable\"\r\n (mouseenter)=\"onMultipleDevices(element)\"\r\n (mouseleave)=\"onMultipleDevices(element)\">\r\n\r\n <span class=\"device-name\">Multiple devices ></span>\r\n </div>\r\n </div>\r\n <ng-template #oneDevice>\r\n <div class=\"device-name-wrapper\">\r\n <span class=\"device-indicator\"></span>\r\n <span class=\"device-name\">{{element.devicesWithExtensions[0].deviceName}}</span>\r\n </div>\r\n <div class=\"device-model one-dev-extensions\">\r\n {{ element.devicesWithExtensions[0].extensions?.length ?\r\n 'Ext: ' + element.devicesWithExtensions[0].extensions?.join(\", \") : 'No Extension' }}\r\n </div>\r\n </ng-template>\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}#userUpgradeDataTable .flex-container{padding:0!important}.multiple-dev-link{margin:0 0 0 13px}:host ::ng-deep .mat-cell{border-bottom:1px solid #d6d6d6;font-family:Inter,sans-serif!important}:host ::ng-deep .mat-header-cell{border-bottom:1px solid #afafaf;font-family:Inter,sans-serif!important}:host ::ng-deep .progress-spinner-td{position:relative}:host ::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;align-items:stretch}.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:#737480}.user-upgrade-table .device-info .device-name-wrapper{display:flex;align-items:center;gap:5px}.user-upgrade-table .device-info .device-name-wrapper .device-name{font-weight:500;color:#212121}.user-upgrade-table .device-model{font-size:12px;color:#757575;display:block}.user-upgrade-table .one-dev-extensions{margin:0 0 0 13px}.user-upgrade-table .device-indicator{width:8px;height:8px;border-radius:50%;background-color:#f8cd00}.user-upgrade-table .device-indicator-ready{background-color:#1d805f}.user-upgrade-table .device-td{padding:0 0 0 13px}.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:#1170cf}.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-radius:20px!important;font-size:14px!important;font-style:normal!important;font-weight:400!important;height:32px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:2px solid black;border-radius:.5rem;color:#000}.user-upgrade-table .upgrade-button:hover{background-color:#000000ce!important;color:#fff!important}.user-upgrade-table .custom-checkbox .mdc-checkbox{padding:8px}.mat-checkbox-disabled{opacity:.5}.multi-dev-box{position:relative}.device-list{position:absolute;top:65%;left:0;min-width:200px;background:white;box-shadow:0 2px 8px #0000001a;padding:8px 0;margin-top:4px;border-radius:2px;opacity:0;transform:translateY(-10px);visibility:hidden;transition:all .3s ease;z-index:1000}.device-list.show-dev-list{opacity:1;transform:translateY(0);visibility:visible;pointer-events:auto}.clickable{cursor:pointer}.device-item{padding:12px 16px;border-bottom:1px solid #f5f5f5;cursor:pointer;transition:background-color .2s ease}.device-item:hover{background-color:#f9f9f9}.device-item.no-border{border-bottom:none}.device-item .device-name{font-size:14px;color:#333}.table-action-panel{width:100%;display:flex;justify-content:flex-start;gap:1rem}:host ::ng-deep .action-wrapper{display:flex;flex:1;align-items:center;justify-content:space-between;gap:1rem;color:#555}:host ::ng-deep .action-wrapper .mat-button .mat-button-wrapper{margin:0}.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-accent:not(.mat-checkbox-disabled).mat-checkbox-checked .mat-checkbox-background{background-color:#1170cf!important;border-color:#00000080!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled):hover:not(.mat-checkbox-checked) .mat-checkbox-background{background-color:#0000004d!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-indeterminate .mat-checkbox-background{background-color:#1170cf!important;border-color:#00000080!important}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-indeterminate .mat-checkbox-background .mat-checkbox-checkmark{transform:scale(.75)}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox-indeterminate .mat-checkbox-background .mat-checkbox-mixedmark{transform:scale(.75)}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox .mat-checkbox-background{border-color:#00000080!important;transition:background-color .2s,border-color .2s,box-shadow .2s}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).mat-checkbox .mat-checkbox-background .mat-checkbox-checkmark{transform:scale(.75)}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled) .mat-checkbox-ripple .mat-ripple-element{background-color:#1170cf40}:host ::ng-deep .user-upgrade-table .mat-accent:not(.mat-checkbox-disabled).cdk-focused .mat-checkbox-ripple .mat-ripple-element{background-color:#1170cf59}.user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-background{border-color:#00000080!important;transition:background-color .2s,border-color .2s,box-shadow .2s;background-color:#1170cf!important}.user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-background .mat-checkbox-checkmark{transform:scale(.75)}.user-upgrade-table .mat-checkbox.mat-accent .mat-ripple-element{background-color:#08599c1a!important}.user-upgrade-table .mat-checkbox.mat-accent:focus .mat-checkbox-background{background-color:#08599c1a!important}.user-upgrade-table .mat-checkbox.mat-accent .mat-checkbox-frame{border-color:#00000080!important}.user-upgrade-table .mat-checkbox-checkmark{color:#fff!important;transform:scale(.75)}.user-upgrade-table .mat-checkbox-checkmark-path{stroke:#fff!important}.user-upgrade-table .mat-checkbox-mixedmark{border-color:#fff!important}\n"] }]
|
|
743
|
+
}], propDecorators: { token: [{
|
|
744
|
+
type: Input
|
|
745
|
+
}], customerId: [{
|
|
746
|
+
type: Input
|
|
747
|
+
}] } });
|
|
748
|
+
class PaginationDataDto {
|
|
749
|
+
constructor(data) {
|
|
750
|
+
this.pageSizeOptions = data?.pageSizeOptions || PAGINATION_DATA_DEFAULTS.OPTIONS;
|
|
751
|
+
this.pageSize = data?.pageSize || PAGINATION_DATA_DEFAULTS.SIZE;
|
|
752
|
+
this.pageIndex = data?.pageIndex || PAGINATION_DATA_DEFAULTS.PAGE_INDEX;
|
|
753
|
+
this.total = data?.total || 0;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
const PAGINATION_DATA_DEFAULTS = {
|
|
757
|
+
OPTIONS: [10, 20, 50, 100],
|
|
758
|
+
SIZE: 10,
|
|
759
|
+
PAGE_INDEX: 0
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
class CardComponent {
|
|
763
|
+
}
|
|
764
|
+
CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
765
|
+
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 hsla(0,0%,0%,.2);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"] });
|
|
766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardComponent, decorators: [{
|
|
767
|
+
type: Component,
|
|
768
|
+
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 hsla(0,0%,0%,.2);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"] }]
|
|
769
|
+
}], propDecorators: { title: [{
|
|
770
|
+
type: Input
|
|
771
|
+
}] } });
|
|
772
|
+
|
|
773
|
+
class MaterialModule {
|
|
774
|
+
}
|
|
775
|
+
MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
776
|
+
MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [MatProgressBarModule,
|
|
777
|
+
MatTooltipModule,
|
|
778
|
+
MatTableModule,
|
|
779
|
+
MatCheckboxModule,
|
|
780
|
+
MatButtonModule,
|
|
781
|
+
MatIconModule,
|
|
782
|
+
MatFormFieldModule,
|
|
783
|
+
MatInputModule,
|
|
784
|
+
MatSelectModule], exports: [MatProgressBarModule,
|
|
785
|
+
MatTooltipModule,
|
|
786
|
+
MatTableModule,
|
|
787
|
+
MatCheckboxModule,
|
|
788
|
+
MatButtonModule,
|
|
789
|
+
MatIconModule,
|
|
790
|
+
MatFormFieldModule,
|
|
791
|
+
MatInputModule,
|
|
792
|
+
MatSelectModule] });
|
|
793
|
+
MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [MatProgressBarModule,
|
|
794
|
+
MatTooltipModule,
|
|
795
|
+
MatTableModule,
|
|
796
|
+
MatCheckboxModule,
|
|
797
|
+
MatButtonModule,
|
|
798
|
+
MatIconModule,
|
|
799
|
+
MatFormFieldModule,
|
|
800
|
+
MatInputModule,
|
|
801
|
+
MatSelectModule, MatProgressBarModule,
|
|
802
|
+
MatTooltipModule,
|
|
803
|
+
MatTableModule,
|
|
804
|
+
MatCheckboxModule,
|
|
805
|
+
MatButtonModule,
|
|
806
|
+
MatIconModule,
|
|
807
|
+
MatFormFieldModule,
|
|
808
|
+
MatInputModule,
|
|
809
|
+
MatSelectModule] });
|
|
810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, decorators: [{
|
|
811
|
+
type: NgModule,
|
|
812
|
+
args: [{
|
|
813
|
+
imports: [
|
|
814
|
+
MatProgressBarModule,
|
|
815
|
+
MatTooltipModule,
|
|
816
|
+
MatTableModule,
|
|
817
|
+
MatCheckboxModule,
|
|
818
|
+
MatButtonModule,
|
|
819
|
+
MatIconModule,
|
|
820
|
+
MatFormFieldModule,
|
|
821
|
+
MatInputModule,
|
|
822
|
+
MatSelectModule
|
|
823
|
+
],
|
|
824
|
+
exports: [
|
|
825
|
+
MatProgressBarModule,
|
|
826
|
+
MatTooltipModule,
|
|
827
|
+
MatTableModule,
|
|
828
|
+
MatCheckboxModule,
|
|
829
|
+
MatButtonModule,
|
|
830
|
+
MatIconModule,
|
|
831
|
+
MatFormFieldModule,
|
|
832
|
+
MatInputModule,
|
|
833
|
+
MatSelectModule
|
|
834
|
+
]
|
|
835
|
+
}]
|
|
836
|
+
}] });
|
|
837
|
+
|
|
838
|
+
class StatCardComponent {
|
|
839
|
+
ngOnInit() {
|
|
840
|
+
if (this.type === 'user') {
|
|
841
|
+
this.stats = {
|
|
842
|
+
id: this.readinessStats?.id,
|
|
843
|
+
customerId: this.readinessStats?.customerId,
|
|
844
|
+
total: this.readinessStats?.['totalUsers'],
|
|
845
|
+
totalReady: this.readinessStats?.['totalReadyUsers'],
|
|
846
|
+
totalUpgraded: this.readinessStats?.['totalUpgradedUsers'],
|
|
847
|
+
};
|
|
848
|
+
}
|
|
849
|
+
else {
|
|
850
|
+
this.stats = {
|
|
851
|
+
id: this.readinessStats?.id,
|
|
852
|
+
customerId: this.readinessStats?.customerId,
|
|
853
|
+
total: this.readinessStats?.['totalSites'],
|
|
854
|
+
totalReady: this.readinessStats?.['totalReadySites'],
|
|
855
|
+
totalUpgraded: this.readinessStats?.['totalUpgradedSites'],
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
get readyPercentage() {
|
|
860
|
+
return (this.stats?.totalReady / this.stats?.total * 100) >> 0;
|
|
861
|
+
}
|
|
862
|
+
get upgradedPercentage() {
|
|
863
|
+
return (this.stats?.totalUpgraded / this.stats?.total * 100) >> 0;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
StatCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
867
|
+
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>\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:#0a78cc}.already{background-color:#16a693}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CardComponent, selector: "tk-card", inputs: ["title"] }] });
|
|
868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatCardComponent, decorators: [{
|
|
869
|
+
type: Component,
|
|
870
|
+
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>\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:#0a78cc}.already{background-color:#16a693}\n"] }]
|
|
871
|
+
}], propDecorators: { title: [{
|
|
872
|
+
type: Input
|
|
873
|
+
}], type: [{
|
|
874
|
+
type: Input
|
|
875
|
+
}], readinessStats: [{
|
|
876
|
+
type: Input
|
|
877
|
+
}], upgradeStatus: [{
|
|
878
|
+
type: Input
|
|
879
|
+
}] } });
|
|
880
|
+
|
|
881
|
+
class StatusListCardComponent {
|
|
882
|
+
constructor() {
|
|
883
|
+
this.displayLink = false;
|
|
884
|
+
this.displayStatsDialog = false;
|
|
885
|
+
}
|
|
886
|
+
onMouseOverItemText(event, label) {
|
|
887
|
+
this.hoveredItemLabel = label;
|
|
888
|
+
this.displayLink = true;
|
|
889
|
+
}
|
|
890
|
+
onMouseLeaveItemText(event, label) {
|
|
891
|
+
this.hoveredItemLabel = label;
|
|
892
|
+
this.displayLink = false;
|
|
893
|
+
}
|
|
894
|
+
onMouseOverItemStats(event, label) {
|
|
895
|
+
event.stopPropagation();
|
|
896
|
+
this.hoveredItemLabel = label;
|
|
897
|
+
this.displayStatsDialog = true;
|
|
898
|
+
}
|
|
899
|
+
onMouseLeaveItemStats(event, label) {
|
|
900
|
+
this.hoveredItemLabel = label;
|
|
901
|
+
this.displayStatsDialog = false;
|
|
902
|
+
}
|
|
903
|
+
trackByFn(index) {
|
|
904
|
+
return index;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
StatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
908
|
+
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; trackBy: trackByFn\">\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 \r\n class=\"card__item-info\"\r\n (mouseover)=\"onMouseOverItemText($event, item.label)\"\r\n (mouseleave)=\"onMouseLeaveItemText($event, item.label)\">\r\n <div \r\n class=\"card__item-text-wrapper\">\r\n <div class=\"card__item-text\"\r\n [matTooltip]=\"item.tooltip\"\r\n [matTooltipPosition]=\"'above'\">\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\r\n class=\"card__item-link-wrapper\"\r\n *ngIf=\"item.link.href && hoveredItemLabel === item.label && displayLink\"\r\n [matTooltip]=\"item.link.tooltip\"\r\n [matTooltipPosition]=\"'right'\">\r\n <mat-icon>open_in_new</mat-icon>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"title.includes('Site')\"\r\n class=\"card__item-stats\"\r\n (mouseover)=\"onMouseOverItemStats($event, item.label)\"\r\n (mouseleave)=\"onMouseLeaveItemStats($event, item.label)\">\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\r\n <div class=\"card__item-stats-dialog\" [class.fade-in]=\"hoveredItemLabel === item.label && displayStatsDialog\">\r\n <div class=\"card__item-stats-dialog-item\">\r\n <span class=\"name\">Atlanta</span>\r\n <div class=\"status\">\r\n <span class=\"indicator\"></span>\r\n <span class=\"status-text\">Ready</span>\r\n </div>\r\n </div>\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:.5rem}.card__list-item{display:flex;align-items:center;gap:1rem;transition:background-color .3s ease-in-out;padding:.75rem;border-radius:1rem}.card__list-item:hover{background-color:#f9f9f9}.card__item-info{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%}.card__item-text-wrapper{display:flex;align-items:center;justify-content:center;gap:1rem;cursor:help}.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}::ng-deep .mat-tooltip{background:linear-gradient(90deg,rgb(0,0,0) 0%,rgb(73,73,73) 100%)!important;color:#fff!important;font-size:14px!important;border-radius:1rem!important;padding:.75rem!important;line-height:1.25rem}.card__item-link-wrapper{display:flex;align-items:center;justify-content:center;padding:.4rem;border-radius:.45rem;background-color:#eefaff;background:linear-gradient(90deg,#41a5cc,#95ea8b);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;color:transparent;cursor:pointer;transition:all .3s ease-in-out}.card__item-link-wrapper:hover{background:linear-gradient(90deg,#41a5cc,#95ea8b);color:#fff;-webkit-background-clip:unset;-webkit-text-fill-color:unset;background-clip:unset;transform:scale(.95)}.card__item-stats{right:0;position:absolute;text-align:right;cursor:pointer}.card__item-stats .card__item-numbers{font-size:28px}.card__item-stats .card__item-numbers-description{font-size:14px}.card__item-stats-dialog{pointer-events:none;z-index:9999;display:flex;flex-direction:column;gap:.5rem;position:absolute;top:50%;background-color:#fff;padding:1rem;border-radius:.5rem;box-shadow:0 4px 6px #0000001a;min-width:200px;max-width:300px;border:1px solid #ddd;opacity:0;transform:translate(-100%) translateY(-50%) scale(.95);transition:opacity .3s ease-in-out}.card__item-stats-dialog-item{display:flex;justify-content:space-between;align-items:center;gap:2.5rem}.card__item-stats-dialog-item span{font-size:18px;color:#555}.card__item-stats-dialog-item .status{display:flex;align-items:center;gap:8px}.card__item-stats-dialog-item .status-text{font-weight:600;color:#777;font-size:14px}.card__item-stats-dialog-item .indicator{display:inline-block;width:8px;height:8px;border-radius:50%;background-color:#1170cf}.fade-in{animation:fadeIn .3s forwards}@keyframes fadeIn{to{opacity:1;transform:translate(calc(-100% - 1.5rem)) translateY(-50%) scale(1)}}\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: "directive", type: i2$2.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: CardComponent, selector: "tk-card", inputs: ["title"] }] });
|
|
909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatusListCardComponent, decorators: [{
|
|
910
|
+
type: Component,
|
|
911
|
+
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; trackBy: trackByFn\">\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 \r\n class=\"card__item-info\"\r\n (mouseover)=\"onMouseOverItemText($event, item.label)\"\r\n (mouseleave)=\"onMouseLeaveItemText($event, item.label)\">\r\n <div \r\n class=\"card__item-text-wrapper\">\r\n <div class=\"card__item-text\"\r\n [matTooltip]=\"item.tooltip\"\r\n [matTooltipPosition]=\"'above'\">\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\r\n class=\"card__item-link-wrapper\"\r\n *ngIf=\"item.link.href && hoveredItemLabel === item.label && displayLink\"\r\n [matTooltip]=\"item.link.tooltip\"\r\n [matTooltipPosition]=\"'right'\">\r\n <mat-icon>open_in_new</mat-icon>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"title.includes('Site')\"\r\n class=\"card__item-stats\"\r\n (mouseover)=\"onMouseOverItemStats($event, item.label)\"\r\n (mouseleave)=\"onMouseLeaveItemStats($event, item.label)\">\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\r\n <div class=\"card__item-stats-dialog\" [class.fade-in]=\"hoveredItemLabel === item.label && displayStatsDialog\">\r\n <div class=\"card__item-stats-dialog-item\">\r\n <span class=\"name\">Atlanta</span>\r\n <div class=\"status\">\r\n <span class=\"indicator\"></span>\r\n <span class=\"status-text\">Ready</span>\r\n </div>\r\n </div>\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:.5rem}.card__list-item{display:flex;align-items:center;gap:1rem;transition:background-color .3s ease-in-out;padding:.75rem;border-radius:1rem}.card__list-item:hover{background-color:#f9f9f9}.card__item-info{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%}.card__item-text-wrapper{display:flex;align-items:center;justify-content:center;gap:1rem;cursor:help}.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}::ng-deep .mat-tooltip{background:linear-gradient(90deg,rgb(0,0,0) 0%,rgb(73,73,73) 100%)!important;color:#fff!important;font-size:14px!important;border-radius:1rem!important;padding:.75rem!important;line-height:1.25rem}.card__item-link-wrapper{display:flex;align-items:center;justify-content:center;padding:.4rem;border-radius:.45rem;background-color:#eefaff;background:linear-gradient(90deg,#41a5cc,#95ea8b);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;color:transparent;cursor:pointer;transition:all .3s ease-in-out}.card__item-link-wrapper:hover{background:linear-gradient(90deg,#41a5cc,#95ea8b);color:#fff;-webkit-background-clip:unset;-webkit-text-fill-color:unset;background-clip:unset;transform:scale(.95)}.card__item-stats{right:0;position:absolute;text-align:right;cursor:pointer}.card__item-stats .card__item-numbers{font-size:28px}.card__item-stats .card__item-numbers-description{font-size:14px}.card__item-stats-dialog{pointer-events:none;z-index:9999;display:flex;flex-direction:column;gap:.5rem;position:absolute;top:50%;background-color:#fff;padding:1rem;border-radius:.5rem;box-shadow:0 4px 6px #0000001a;min-width:200px;max-width:300px;border:1px solid #ddd;opacity:0;transform:translate(-100%) translateY(-50%) scale(.95);transition:opacity .3s ease-in-out}.card__item-stats-dialog-item{display:flex;justify-content:space-between;align-items:center;gap:2.5rem}.card__item-stats-dialog-item span{font-size:18px;color:#555}.card__item-stats-dialog-item .status{display:flex;align-items:center;gap:8px}.card__item-stats-dialog-item .status-text{font-weight:600;color:#777;font-size:14px}.card__item-stats-dialog-item .indicator{display:inline-block;width:8px;height:8px;border-radius:50%;background-color:#1170cf}.fade-in{animation:fadeIn .3s forwards}@keyframes fadeIn{to{opacity:1;transform:translate(calc(-100% - 1.5rem)) translateY(-50%) scale(1)}}\n"] }]
|
|
912
|
+
}], propDecorators: { title: [{
|
|
913
|
+
type: Input
|
|
914
|
+
}], items: [{
|
|
915
|
+
type: Input
|
|
916
|
+
}] } });
|
|
917
|
+
|
|
918
|
+
class ChartCardComponent {
|
|
919
|
+
ngOnInit() {
|
|
920
|
+
this.initChartOptions();
|
|
921
|
+
}
|
|
922
|
+
initChartOptions() {
|
|
923
|
+
if (this.totalUpgraded === 0)
|
|
924
|
+
this.totalNotUpgraded = 100;
|
|
925
|
+
this.chartOptions = {
|
|
926
|
+
series: [this.totalUpgraded, this.totalNotUpgraded],
|
|
927
|
+
chart: {
|
|
928
|
+
type: "donut",
|
|
929
|
+
height: 250
|
|
930
|
+
},
|
|
931
|
+
labels: ["MT", "DI"],
|
|
932
|
+
colors: ["#808080", "#16A693"],
|
|
933
|
+
legend: {
|
|
934
|
+
position: "right",
|
|
935
|
+
offsetY: 0,
|
|
936
|
+
fontSize: "14px",
|
|
937
|
+
// markers: {
|
|
938
|
+
// size: 16,
|
|
939
|
+
// strokeWidth: 0,
|
|
940
|
+
// shape: 'circle'
|
|
941
|
+
// },
|
|
942
|
+
itemMargin: {
|
|
943
|
+
horizontal: 20,
|
|
944
|
+
vertical: 2
|
|
945
|
+
},
|
|
946
|
+
formatter: (seriesName, opts) => {
|
|
947
|
+
const percentage = this.roundPercentage((opts.w.globals.series[opts.seriesIndex] / (opts.w.globals.series[0] + opts.w.globals.series[1])) * 100);
|
|
948
|
+
return seriesName + " " + percentage + "%";
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
plotOptions: {
|
|
952
|
+
pie: {
|
|
953
|
+
donut: {
|
|
954
|
+
size: "75%"
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
},
|
|
958
|
+
dataLabels: {
|
|
959
|
+
enabled: false
|
|
960
|
+
}
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
roundPercentage(value) {
|
|
964
|
+
return Number((Math.round(value * 100) / 100).toFixed(1));
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
ChartCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
968
|
+
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"] }] });
|
|
969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartCardComponent, decorators: [{
|
|
970
|
+
type: Component,
|
|
971
|
+
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"] }]
|
|
972
|
+
}], propDecorators: { title: [{
|
|
973
|
+
type: Input
|
|
974
|
+
}], totalUpgraded: [{
|
|
975
|
+
type: Input
|
|
976
|
+
}], totalNotUpgraded: [{
|
|
977
|
+
type: Input
|
|
978
|
+
}] } });
|
|
979
|
+
|
|
980
|
+
class SharedModule {
|
|
981
|
+
}
|
|
982
|
+
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
983
|
+
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, declarations: [CardComponent,
|
|
984
|
+
StatCardComponent,
|
|
985
|
+
StatusListCardComponent,
|
|
986
|
+
ChartCardComponent,
|
|
987
|
+
SummaryCardComponent,
|
|
988
|
+
TableFiltersComponent], imports: [CommonModule,
|
|
989
|
+
MaterialModule,
|
|
990
|
+
NgApexchartsModule,
|
|
991
|
+
HttpClientModule], exports: [MaterialModule,
|
|
992
|
+
CardComponent,
|
|
993
|
+
StatCardComponent,
|
|
994
|
+
StatusListCardComponent,
|
|
995
|
+
ChartCardComponent,
|
|
996
|
+
SummaryCardComponent,
|
|
997
|
+
TableFiltersComponent] });
|
|
998
|
+
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, imports: [CommonModule,
|
|
999
|
+
MaterialModule,
|
|
1000
|
+
NgApexchartsModule,
|
|
1001
|
+
HttpClientModule, MaterialModule] });
|
|
1002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, decorators: [{
|
|
1003
|
+
type: NgModule,
|
|
1004
|
+
args: [{
|
|
1005
|
+
declarations: [
|
|
1006
|
+
CardComponent,
|
|
1007
|
+
StatCardComponent,
|
|
1008
|
+
StatusListCardComponent,
|
|
1009
|
+
ChartCardComponent,
|
|
1010
|
+
SummaryCardComponent,
|
|
1011
|
+
TableFiltersComponent
|
|
1012
|
+
],
|
|
1013
|
+
imports: [
|
|
1014
|
+
CommonModule,
|
|
1015
|
+
MaterialModule,
|
|
1016
|
+
NgApexchartsModule,
|
|
1017
|
+
HttpClientModule
|
|
1018
|
+
],
|
|
1019
|
+
exports: [
|
|
1020
|
+
MaterialModule,
|
|
1021
|
+
CardComponent,
|
|
1022
|
+
StatCardComponent,
|
|
1023
|
+
StatusListCardComponent,
|
|
1024
|
+
ChartCardComponent,
|
|
1025
|
+
SummaryCardComponent,
|
|
1026
|
+
TableFiltersComponent
|
|
1027
|
+
]
|
|
1028
|
+
}]
|
|
1029
|
+
}] });
|
|
1030
|
+
|
|
1031
|
+
class UserUpgradeModule {
|
|
1032
|
+
}
|
|
1033
|
+
UserUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1034
|
+
UserUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, declarations: [UserUpgradeDataTableComponent], imports: [CommonModule,
|
|
1035
|
+
SharedModule,
|
|
1036
|
+
MatTableModule,
|
|
1037
|
+
MatButtonModule,
|
|
1038
|
+
MatCheckboxModule,
|
|
1039
|
+
MatSelectModule,
|
|
1040
|
+
MatProgressSpinnerModule,
|
|
1041
|
+
MatOptionModule,
|
|
1042
|
+
MatPaginatorModule,
|
|
1043
|
+
MatSelectModule], exports: [UserUpgradeDataTableComponent] });
|
|
1044
|
+
UserUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, imports: [CommonModule,
|
|
1045
|
+
SharedModule,
|
|
1046
|
+
MatTableModule,
|
|
1047
|
+
MatButtonModule,
|
|
1048
|
+
MatCheckboxModule,
|
|
1049
|
+
MatSelectModule,
|
|
1050
|
+
MatProgressSpinnerModule,
|
|
1051
|
+
MatOptionModule,
|
|
1052
|
+
MatPaginatorModule,
|
|
1053
|
+
MatSelectModule] });
|
|
1054
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserUpgradeModule, decorators: [{
|
|
1055
|
+
type: NgModule,
|
|
1056
|
+
args: [{
|
|
1057
|
+
declarations: [
|
|
1058
|
+
UserUpgradeDataTableComponent
|
|
1059
|
+
],
|
|
1060
|
+
imports: [
|
|
1061
|
+
CommonModule,
|
|
1062
|
+
SharedModule,
|
|
1063
|
+
MatTableModule,
|
|
1064
|
+
MatButtonModule,
|
|
1065
|
+
MatCheckboxModule,
|
|
1066
|
+
MatSelectModule,
|
|
1067
|
+
MatProgressSpinnerModule,
|
|
1068
|
+
MatOptionModule,
|
|
1069
|
+
MatPaginatorModule,
|
|
1070
|
+
MatSelectModule
|
|
1071
|
+
],
|
|
1072
|
+
exports: [
|
|
1073
|
+
UserUpgradeDataTableComponent
|
|
1074
|
+
]
|
|
1075
|
+
}]
|
|
1076
|
+
}] });
|
|
1077
|
+
|
|
1078
|
+
class SiteUpgradeService {
|
|
1079
|
+
constructor() {
|
|
1080
|
+
this.siteUpdateStatusEvent = new Subject();
|
|
1081
|
+
this.apiService = inject(APIService);
|
|
1082
|
+
}
|
|
1083
|
+
getSiteUpgradeStatusCounts() {
|
|
1084
|
+
return this.apiService.fetch(API$1.SITE_UPGRADE.GET_SITES_UPGRADE_STATUS_COUNTS.replace(':customerId', this.customerId));
|
|
1085
|
+
}
|
|
1086
|
+
getSiteUpgradeRecords() {
|
|
1087
|
+
return this.apiService.fetch(API$1.SITE_UPGRADE.GET_SITES_UPGRADE_DATA.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1088
|
+
return resp.content.map((record) => ({
|
|
1089
|
+
siteId: record.siteId,
|
|
1090
|
+
siteName: record.siteName,
|
|
1091
|
+
totalUsers: record.totalUsers,
|
|
1092
|
+
totalReadyUsers: record.readyUsers,
|
|
1093
|
+
totalNotReadyUsers: record.notReadyUsers,
|
|
1094
|
+
totalUpgradedUsers: record.totalUpgradedUsers,
|
|
1095
|
+
totalFailedUsers: record.totalFailedToUpgradeUsers,
|
|
1096
|
+
locationMapping: record.locationMappingStatus,
|
|
1097
|
+
PSTNTrunk: record.pstnTrunkStatus,
|
|
1098
|
+
upgradeStatus: record.siteUpgradeStatus
|
|
1099
|
+
}));
|
|
1100
|
+
}));
|
|
1101
|
+
}
|
|
1102
|
+
getBatchSites() {
|
|
1103
|
+
return this.apiService.fetch(API$1.SITE_UPGRADE.GET_BATCH_SITES.replace(':customerId', this.customerId));
|
|
1104
|
+
}
|
|
1105
|
+
collectSiteCache(siteId, migrationType = 'webex') {
|
|
1106
|
+
return this.apiService.post(API$1.SITE_UPGRADE.WEBEX_CACHE_COLLECTION
|
|
1107
|
+
.replace(':siteId', String(siteId))
|
|
1108
|
+
.replace(':migrationType', migrationType), {});
|
|
1109
|
+
}
|
|
1110
|
+
migrateSite(siteId, batchId) {
|
|
1111
|
+
return this.apiService.post(API$1.SITE_UPGRADE.MIGRATE_SITE.replace(':siteId', String(siteId)), {}, { batchId: batchId || '' });
|
|
1112
|
+
}
|
|
1113
|
+
getBatchesStatuses(batchIds) {
|
|
1114
|
+
return this.apiService.post(API$1.SITE_UPGRADE.WEBEX_BATCH_STATUS
|
|
1115
|
+
.replace(':customerId', this.customerId), batchIds, false)
|
|
1116
|
+
.pipe(map((result) => {
|
|
1117
|
+
this.siteUpdateStatusEvent.next(result);
|
|
1118
|
+
return result;
|
|
1119
|
+
}));
|
|
1120
|
+
}
|
|
1121
|
+
getSiteListForCollectAndBuildWebexCache() {
|
|
1122
|
+
return this.apiService.fetch(API$1.SITE_UPGRADE.WEBEX_CACHE_COLLECTION_SITE_LIST.replace(':customerId', this.customerId))
|
|
1123
|
+
.pipe(map((siteSet) => this.siteSetForCollectAndBuildWebexCache = siteSet));
|
|
1124
|
+
}
|
|
1125
|
+
getCUCMListCurrentlyInCollectAndBuildWebexCache() {
|
|
1126
|
+
return this.apiService.fetch(API$1.SITE_UPGRADE.WEBEX_CACHE_COLLECTION_CUCM_LIST.replace(':customerId', this.customerId))
|
|
1127
|
+
.pipe(map((cucmSet) => this.cucmSetInCollectAndBuildWebexCache = cucmSet));
|
|
1128
|
+
}
|
|
1129
|
+
getMigrationBatchesStatuses() {
|
|
1130
|
+
return this.apiService.fetch(API$1.SITE_UPGRADE.BATCH_STATUS.replace(':customerId', this.customerId));
|
|
1131
|
+
/*.pipe(map((result: BatchStatusDTO[]) => {
|
|
1132
|
+
this.siteUpdateStatusEvent.next(result);
|
|
1133
|
+
return result;
|
|
1134
|
+
}))*/
|
|
1135
|
+
}
|
|
1136
|
+
getMigratedSiteStatus(pageSize, page) {
|
|
1137
|
+
return this.apiService.fetchPagination(API$1.SITE_UPGRADE.MIGRATION_STATUS.replace(':customerId', this.customerId), pageSize, page, {}, false);
|
|
1138
|
+
}
|
|
1139
|
+
// TODO: Impl the site upgrade logic here
|
|
1140
|
+
upgradeSite(site) {
|
|
1141
|
+
const customerId = site.customerId;
|
|
1142
|
+
const siteId = site.siteId;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
SiteUpgradeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1146
|
+
SiteUpgradeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, providedIn: 'root' });
|
|
1147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeService, decorators: [{
|
|
1148
|
+
type: Injectable,
|
|
1149
|
+
args: [{
|
|
1150
|
+
providedIn: 'root'
|
|
1151
|
+
}]
|
|
1152
|
+
}] });
|
|
1153
|
+
const STATUSES = {
|
|
1154
|
+
COMPLETED: 'Completed',
|
|
1155
|
+
NEW: 'New',
|
|
1156
|
+
IN_PROGRESS: 'In Progress',
|
|
1157
|
+
FAILED_IN_ERROR: 'Failed-in error',
|
|
1158
|
+
FAILED: 'Failed',
|
|
1159
|
+
FAILED_WITH_RETRY: 'Failed with Retry',
|
|
1160
|
+
COLLECTING: 'Collecting',
|
|
1161
|
+
FAILED_COLLECTING: 'Failed on collecting',
|
|
1162
|
+
WAITING_FOR_REVIEW: 'Waiting for review'
|
|
1163
|
+
};
|
|
1164
|
+
|
|
1165
|
+
class ProgressBarComponent {
|
|
1166
|
+
constructor() {
|
|
1167
|
+
this.isAvailable = false;
|
|
1168
|
+
this._progress = 0;
|
|
1169
|
+
this.color = 'grey';
|
|
1170
|
+
}
|
|
1171
|
+
set progress(value) {
|
|
1172
|
+
this._progress = Math.max(0, Math.min(100, Number(value) || 0));
|
|
1173
|
+
this.setColor(this._progress);
|
|
1174
|
+
}
|
|
1175
|
+
get progress() { return this._progress; }
|
|
1176
|
+
setColor(p) {
|
|
1177
|
+
if (p <= 20)
|
|
1178
|
+
this.color = 'red';
|
|
1179
|
+
else if (p <= 40)
|
|
1180
|
+
this.color = 'yellow';
|
|
1181
|
+
else if (p <= 60)
|
|
1182
|
+
this.color = 'darkblue';
|
|
1183
|
+
else if (p <= 80)
|
|
1184
|
+
this.color = 'lightblue';
|
|
1185
|
+
else
|
|
1186
|
+
this.color = 'green';
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
ProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1190
|
+
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<div *ngIf=\"isAvailable\" class=\"progress-bar-container\">\n <div class=\"progress-bar\" [ngClass]=\"color\" [style.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{height:8px;border-radius:4px;transition:width .25s ease,background-color .25s ease}.progress-bar.red{background-color:#e53935}.progress-bar.yellow{background-color:#fbc02d}.progress-bar.darkblue{background-color:#1e3a8a}.progress-bar.lightblue{background-color:#60a5fa}.progress-bar.green{background-color:#22c55e}.progress-bar.grey{background-color:#9ca3af}.progress-bar.darkblue{background-color:#2c355d}.progress-bar.lightblue{background-color:#2299d9}\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"] }] });
|
|
1191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
1192
|
+
type: Component,
|
|
1193
|
+
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<div *ngIf=\"isAvailable\" class=\"progress-bar-container\">\n <div class=\"progress-bar\" [ngClass]=\"color\" [style.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{height:8px;border-radius:4px;transition:width .25s ease,background-color .25s ease}.progress-bar.red{background-color:#e53935}.progress-bar.yellow{background-color:#fbc02d}.progress-bar.darkblue{background-color:#1e3a8a}.progress-bar.lightblue{background-color:#60a5fa}.progress-bar.green{background-color:#22c55e}.progress-bar.grey{background-color:#9ca3af}.progress-bar.darkblue{background-color:#2c355d}.progress-bar.lightblue{background-color:#2299d9}\n"] }]
|
|
1194
|
+
}], propDecorators: { isAvailable: [{
|
|
1195
|
+
type: Input
|
|
1196
|
+
}], progress: [{
|
|
1197
|
+
type: Input
|
|
1198
|
+
}] } });
|
|
1199
|
+
|
|
1200
|
+
const MAX_INTEGER = 2147483647;
|
|
1201
|
+
class SiteUpgradeDataTableComponent {
|
|
1202
|
+
constructor() {
|
|
1203
|
+
this.siteUpgradeService = inject(SiteUpgradeService);
|
|
1204
|
+
this.apiService = inject(APIService);
|
|
1205
|
+
this.destroy$ = new Subject();
|
|
1206
|
+
this.STATUS_ENTRIES = STATUS_ENTRIES;
|
|
1207
|
+
this.dataPending = false;
|
|
1208
|
+
this.displayedColumns = ['site', 'ready users', 'upgraded users', 'location mapping', 'pstn trunk', 'site upgrade status', 'progressBar', 'actions', 'userUpgradeLoader'];
|
|
1209
|
+
this.selection = new SelectionModel(true, []);
|
|
1210
|
+
this.filters = [];
|
|
1211
|
+
this.activeFilters = {};
|
|
1212
|
+
this.subscriptions = new Subscription();
|
|
1213
|
+
this.statusCounts = {};
|
|
1214
|
+
}
|
|
1215
|
+
ngOnInit() {
|
|
1216
|
+
this.dataPending = true;
|
|
1217
|
+
this.apiService.token = this.token;
|
|
1218
|
+
this.siteUpgradeService.customerId = this.customerId;
|
|
1219
|
+
const subsc1 = forkJoin([
|
|
1220
|
+
this.siteUpgradeService.getSiteUpgradeRecords(),
|
|
1221
|
+
this.siteUpgradeService.getMigratedSiteStatus(MAX_INTEGER, 0),
|
|
1222
|
+
this.siteUpgradeService.getSiteListForCollectAndBuildWebexCache(),
|
|
1223
|
+
this.siteUpgradeService.getCUCMListCurrentlyInCollectAndBuildWebexCache(),
|
|
1224
|
+
this.siteUpgradeService.getBatchSites()
|
|
1225
|
+
]).pipe(takeUntil(this.destroy$))
|
|
1226
|
+
.subscribe((results) => {
|
|
1227
|
+
const records = results[0].map(site => ({
|
|
1228
|
+
...site,
|
|
1229
|
+
siteId: Number(site.siteId)
|
|
1230
|
+
}));
|
|
1231
|
+
this.data = new MatTableDataSource(records);
|
|
1232
|
+
this.dataPending = false;
|
|
1233
|
+
this.setupCustomFilter();
|
|
1234
|
+
this.initializeFilters(records);
|
|
1235
|
+
this.setMigratedStatus(results[1]);
|
|
1236
|
+
if (this.data?.data.length && results[2]?.length) {
|
|
1237
|
+
this.initCollectProgress(results[2]);
|
|
1238
|
+
}
|
|
1239
|
+
if (this.data?.data.length && results[4]?.length) {
|
|
1240
|
+
this.setBatchIdToSites(results[4]);
|
|
1241
|
+
}
|
|
1242
|
+
});
|
|
1243
|
+
this.subscriptions.add(subsc1);
|
|
1244
|
+
const subsc2 = this.siteUpgradeService.getSiteUpgradeStatusCounts()
|
|
1245
|
+
.pipe(takeUntil(this.destroy$))
|
|
1246
|
+
.subscribe((statusCounts) => {
|
|
1247
|
+
this.statusCounts['Ready'] = statusCounts['READY'] || 0;
|
|
1248
|
+
this.statusCounts['Not Ready'] = statusCounts['NOT_READY'] || 0;
|
|
1249
|
+
this.statusCounts['Completed'] = statusCounts['COMPLETED'] || 0;
|
|
1250
|
+
this.statusCounts['Failed'] = statusCounts['FAILED'] || 0;
|
|
1251
|
+
});
|
|
1252
|
+
this.subscriptions.add(subsc2);
|
|
1253
|
+
const subsc3 = this.siteUpgradeService.siteUpdateStatusEvent
|
|
1254
|
+
.subscribe((updatedStatuses) => {
|
|
1255
|
+
this.handleCheckBatchStatusResponse(updatedStatuses);
|
|
1256
|
+
});
|
|
1257
|
+
this.subscriptions.add(subsc3);
|
|
1258
|
+
}
|
|
1259
|
+
onSiteMigration(site) {
|
|
1260
|
+
site.pending = true;
|
|
1261
|
+
site.isProgressBarAvailable = true;
|
|
1262
|
+
site.isMigrationInProgress = true;
|
|
1263
|
+
const subsc = this.siteUpgradeService.migrateSite(String(site.siteId), String(site.batchId))
|
|
1264
|
+
.pipe(takeUntil(this.destroy$))
|
|
1265
|
+
.subscribe((migrationFormId) => {
|
|
1266
|
+
site.migrationFormId = migrationFormId;
|
|
1267
|
+
site.progress = 1;
|
|
1268
|
+
this.runMigrationProgress(site);
|
|
1269
|
+
});
|
|
1270
|
+
this.subscriptions.add(subsc);
|
|
1271
|
+
}
|
|
1272
|
+
runMigrationProgress(site) {
|
|
1273
|
+
this.updateMigrationProgress(site);
|
|
1274
|
+
site.interval = setInterval(() => {
|
|
1275
|
+
this.updateMigrationProgress(site);
|
|
1276
|
+
}, 10000);
|
|
1277
|
+
}
|
|
1278
|
+
updateMigrationProgress(site) {
|
|
1279
|
+
if (!site || !site.isMigrationInProgress) {
|
|
1280
|
+
return;
|
|
1281
|
+
}
|
|
1282
|
+
this.siteUpgradeService.getMigrationBatchesStatuses()
|
|
1283
|
+
.subscribe((statuses) => {
|
|
1284
|
+
if (statuses?.length) {
|
|
1285
|
+
statuses.forEach((statusItem) => {
|
|
1286
|
+
const ind = this.getSiteIndex(statusItem.id);
|
|
1287
|
+
if (ind > -1) {
|
|
1288
|
+
this.data.data[ind].progress = statusItem.progress;
|
|
1289
|
+
this.data.data[ind].status = statusItem.status;
|
|
1290
|
+
if (statusItem.status !== 'In Progress') {
|
|
1291
|
+
this.data.data[ind].pending = false;
|
|
1292
|
+
this.data.data[ind].isMigrationInProgress = false;
|
|
1293
|
+
this.data.data[ind].isProgressBarAvailable = false;
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
});
|
|
1297
|
+
if (statuses.filter(statusItem => statusItem.status === 'In Progress').length < 1) {
|
|
1298
|
+
this.data.data.forEach(site => {
|
|
1299
|
+
site.pending = false;
|
|
1300
|
+
site.isMigrationInProgress = false;
|
|
1301
|
+
site.isProgressBarAvailable = false;
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}, () => {
|
|
1306
|
+
this.resetMigrationProgress(site, 'FAILED');
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
resetMigrationProgress(site, status) {
|
|
1310
|
+
site.isMigrationInProgress = false;
|
|
1311
|
+
site.pending = false;
|
|
1312
|
+
site.isProgressBarAvailable = false;
|
|
1313
|
+
if (site.interval) {
|
|
1314
|
+
clearInterval(site.interval);
|
|
1315
|
+
}
|
|
1316
|
+
if (status) {
|
|
1317
|
+
site.status = status;
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
onCollect(site) {
|
|
1321
|
+
site.pending = true;
|
|
1322
|
+
site.status = STATUSES.COLLECTING;
|
|
1323
|
+
// const ind =
|
|
1324
|
+
const subscription = this.siteUpgradeService.collectSiteCache(Number(site.siteId), 'webex')
|
|
1325
|
+
.subscribe({
|
|
1326
|
+
error: () => site.pending = false
|
|
1327
|
+
});
|
|
1328
|
+
this.subscriptions.add(subscription);
|
|
1329
|
+
/*setTimeout(() => {
|
|
1330
|
+
this.runBatchCheckStatus();
|
|
1331
|
+
}, 700);*/
|
|
1332
|
+
setTimeout(() => {
|
|
1333
|
+
this.initCollectInterval(site);
|
|
1334
|
+
}, 700);
|
|
1335
|
+
}
|
|
1336
|
+
initCollectInterval(site) {
|
|
1337
|
+
if (!site.interval && !site.initPending) {
|
|
1338
|
+
site.initPending = true;
|
|
1339
|
+
this.getCUCMListAlreadyInCollectWebexCache(site);
|
|
1340
|
+
this.getSiteListForCollectAndBuildWebexCache(site);
|
|
1341
|
+
site.interval = setInterval(() => {
|
|
1342
|
+
this.getCUCMListAlreadyInCollectWebexCache(site);
|
|
1343
|
+
this.getSiteListForCollectAndBuildWebexCache(site);
|
|
1344
|
+
}, 10000);
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
getSiteListForCollectAndBuildWebexCache(site) {
|
|
1348
|
+
this.siteUpgradeService.getSiteListForCollectAndBuildWebexCache()
|
|
1349
|
+
.pipe(takeUntil(this.destroy$))
|
|
1350
|
+
.subscribe((siteSet) => {
|
|
1351
|
+
if (!siteSet || !siteSet.length) {
|
|
1352
|
+
site.pending = false;
|
|
1353
|
+
this.removeInterval(site);
|
|
1354
|
+
site.isCollected = true;
|
|
1355
|
+
}
|
|
1356
|
+
}, () => {
|
|
1357
|
+
site.pending = false;
|
|
1358
|
+
this.removeInterval(site);
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
removeInterval(site) {
|
|
1362
|
+
if (site.interval) {
|
|
1363
|
+
clearInterval(site.interval);
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
handleBatchCUCMAlreadyInCollectCache() {
|
|
1367
|
+
this.data.data.forEach(site => {
|
|
1368
|
+
site.isCUCMInCollectCache =
|
|
1369
|
+
this.siteUpgradeService?.cucmSetInCollectAndBuildWebexCache?.includes(Number(site.sourceId));
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
getCUCMListAlreadyInCollectWebexCache(site) {
|
|
1373
|
+
this.siteUpgradeService.getCUCMListCurrentlyInCollectAndBuildWebexCache()
|
|
1374
|
+
.pipe(takeUntil(this.destroy$))
|
|
1375
|
+
.pipe(map$1((cucmList) => {
|
|
1376
|
+
this.handleBatchCUCMAlreadyInCollectCache();
|
|
1377
|
+
if (!cucmList || !cucmList.length) {
|
|
1378
|
+
site.pending = false;
|
|
1379
|
+
this.removeInterval(site);
|
|
1380
|
+
site.isCollected = true;
|
|
1381
|
+
}
|
|
1382
|
+
return cucmList;
|
|
1383
|
+
})).subscribe({
|
|
1384
|
+
error: () => {
|
|
1385
|
+
site.pending = false;
|
|
1386
|
+
site.initPending = true;
|
|
1387
|
+
this.removeInterval(site);
|
|
1388
|
+
}
|
|
1389
|
+
});
|
|
1390
|
+
}
|
|
1391
|
+
checkBatchStatus(batchIds) {
|
|
1392
|
+
const subsc = this.siteUpgradeService.getBatchesStatuses(batchIds)
|
|
1393
|
+
.pipe(takeUntil(this.destroy$), catchError$1(() => {
|
|
1394
|
+
clearInterval(this.collectingBatchInterval);
|
|
1395
|
+
return of([]);
|
|
1396
|
+
})).subscribe((updatedStatuses) => {
|
|
1397
|
+
this.handleCheckBatchStatusResponse(updatedStatuses);
|
|
1398
|
+
});
|
|
1399
|
+
this.subscriptions.add(subsc);
|
|
1400
|
+
}
|
|
1401
|
+
handleCheckBatchStatusResponse(updatedStatuses) {
|
|
1402
|
+
if (updatedStatuses && updatedStatuses.length && this.data?.data?.length) {
|
|
1403
|
+
updatedStatuses.forEach(updatedStatus => {
|
|
1404
|
+
const ind = this.data?.data.findIndex(batch => batch.siteId === updatedStatus.id);
|
|
1405
|
+
if (ind > -1 && this.data?.data[ind] && updatedStatus.status) {
|
|
1406
|
+
this.data.data[ind].upgradeStatus = updatedStatus.status;
|
|
1407
|
+
}
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
else {
|
|
1411
|
+
if (this.collectingBatchInterval) {
|
|
1412
|
+
clearInterval(this.collectingBatchInterval);
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
getSiteIndex(batchId) {
|
|
1417
|
+
if (this.data.data.length) {
|
|
1418
|
+
return this.data.data.findIndex(siteItem => siteItem.batchId === batchId);
|
|
1419
|
+
}
|
|
1420
|
+
return -1;
|
|
1421
|
+
}
|
|
1422
|
+
initializeFilters(records) {
|
|
1423
|
+
if (!records?.length) {
|
|
1424
|
+
this.filters = [];
|
|
1425
|
+
return;
|
|
1426
|
+
}
|
|
1427
|
+
// Extract unique sites (skip empty/null)
|
|
1428
|
+
const uniqueSites = [
|
|
1429
|
+
...new Set(records
|
|
1430
|
+
.map(record => record.siteName?.trim())
|
|
1431
|
+
.filter((site) => !!site))
|
|
1432
|
+
];
|
|
1433
|
+
const siteOptions = uniqueSites.map(site => ({
|
|
1434
|
+
label: site,
|
|
1435
|
+
value: site.toLowerCase().replace(/\s+/g, '-')
|
|
1436
|
+
}));
|
|
1437
|
+
// Extract unique statuses (skip empty/null)
|
|
1438
|
+
const uniqueStatuses = [
|
|
1439
|
+
...new Set(records
|
|
1440
|
+
.map(record => record.upgradeStatus?.trim())
|
|
1441
|
+
.filter((status) => !!status))
|
|
1442
|
+
];
|
|
1443
|
+
const statusOptions = uniqueStatuses.map(status => ({
|
|
1444
|
+
label: STATUS_ENTRIES[status],
|
|
1445
|
+
value: status.toLowerCase().replace(/\s+/g, '-')
|
|
1446
|
+
}));
|
|
1447
|
+
this.filters = [];
|
|
1448
|
+
if (siteOptions.length) {
|
|
1449
|
+
this.filters.push({
|
|
1450
|
+
id: 'sites',
|
|
1451
|
+
type: 'select',
|
|
1452
|
+
columnKey: 'Site',
|
|
1453
|
+
placeholder: 'Sites',
|
|
1454
|
+
options: siteOptions
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
if (statusOptions.length) {
|
|
1458
|
+
this.filters.push({
|
|
1459
|
+
id: 'status',
|
|
1460
|
+
type: 'select',
|
|
1461
|
+
columnKey: 'Site Upgrade Status',
|
|
1462
|
+
placeholder: 'Upgrade Status',
|
|
1463
|
+
options: statusOptions
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
onFilter(filterEvent) {
|
|
1468
|
+
const { key, value } = filterEvent;
|
|
1469
|
+
let filterValue;
|
|
1470
|
+
if (value && value.value !== undefined) {
|
|
1471
|
+
filterValue = value.value;
|
|
1472
|
+
}
|
|
1473
|
+
else if (value && value.target) {
|
|
1474
|
+
filterValue = value.target.value;
|
|
1475
|
+
}
|
|
1476
|
+
else {
|
|
1477
|
+
filterValue = value;
|
|
1478
|
+
}
|
|
1479
|
+
// Handle "All" option or empty values - remove the filter
|
|
1480
|
+
if (filterValue === 'all' || !filterValue || filterValue === '') {
|
|
1481
|
+
delete this.activeFilters[key];
|
|
1482
|
+
}
|
|
1483
|
+
else {
|
|
1484
|
+
this.activeFilters[key] = filterValue;
|
|
1485
|
+
}
|
|
1486
|
+
this.applyFilters();
|
|
1487
|
+
}
|
|
1488
|
+
setupCustomFilter() {
|
|
1489
|
+
this.data.filterPredicate = (data, filter) => {
|
|
1490
|
+
const filters = JSON.parse(filter || '{}');
|
|
1491
|
+
for (const [key, value] of Object.entries(filters)) {
|
|
1492
|
+
if (!value)
|
|
1493
|
+
continue;
|
|
1494
|
+
switch (key) {
|
|
1495
|
+
case 'Site':
|
|
1496
|
+
if (data.siteName !== this.getSiteNameFromValue(value)) {
|
|
1497
|
+
return false;
|
|
1498
|
+
}
|
|
1499
|
+
break;
|
|
1500
|
+
case 'Site Upgrade Status':
|
|
1501
|
+
if (!this.matchesUpgradeStatus(data.upgradeStatus, value)) {
|
|
1502
|
+
return false;
|
|
1503
|
+
}
|
|
1504
|
+
break;
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
return true;
|
|
1508
|
+
};
|
|
1509
|
+
}
|
|
1510
|
+
applyFilters() {
|
|
1511
|
+
this.data.filter = JSON.stringify(this.activeFilters);
|
|
1512
|
+
}
|
|
1513
|
+
getSiteNameFromValue(value) {
|
|
1514
|
+
// Since we're now using actual site names, just convert back from slug format
|
|
1515
|
+
return value.split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
|
|
1516
|
+
}
|
|
1517
|
+
matchesUpgradeStatus(status, filterValue) {
|
|
1518
|
+
// Handle direct status matching for cleaner implementation
|
|
1519
|
+
return status.toLowerCase().replace(/\s+/g, '-') === filterValue.toLowerCase();
|
|
1520
|
+
}
|
|
1521
|
+
get filteredDataCount() {
|
|
1522
|
+
return this.data?.filteredData?.length || 0;
|
|
1523
|
+
}
|
|
1524
|
+
/** Whether the number of selected elements matches the total number of rows. */
|
|
1525
|
+
isAllSelected() {
|
|
1526
|
+
const numSelected = this.selection.selected.length;
|
|
1527
|
+
const numRows = this.data?.data.length || 0;
|
|
1528
|
+
return numSelected === numRows;
|
|
1529
|
+
}
|
|
1530
|
+
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
1531
|
+
masterToggle() {
|
|
1532
|
+
this.isAllSelected() ?
|
|
1533
|
+
this.selection.clear() :
|
|
1534
|
+
this.data?.data.forEach(row => this.selection.select(row));
|
|
1535
|
+
}
|
|
1536
|
+
getLocationMappingClass(locationMapping) {
|
|
1537
|
+
return locationMapping ? 'success' : 'error';
|
|
1538
|
+
}
|
|
1539
|
+
getSiteUpgradeStatusClass(status) {
|
|
1540
|
+
switch (status.toLowerCase()) {
|
|
1541
|
+
case 'ready':
|
|
1542
|
+
return 'status-ready';
|
|
1543
|
+
case 'partial ready':
|
|
1544
|
+
return 'partial-ready';
|
|
1545
|
+
case 'completed':
|
|
1546
|
+
return 'completed';
|
|
1547
|
+
case 'failed':
|
|
1548
|
+
return 'failed';
|
|
1549
|
+
case 'not ready':
|
|
1550
|
+
return 'not-ready';
|
|
1551
|
+
default:
|
|
1552
|
+
return 'not-ready';
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
upgradeSite(site) {
|
|
1556
|
+
this.siteUpgradeService.upgradeSite(site);
|
|
1557
|
+
}
|
|
1558
|
+
setMigratedStatus(webexMigratedSites) {
|
|
1559
|
+
if (webexMigratedSites && webexMigratedSites.length && this.data?.data?.length) {
|
|
1560
|
+
const statusObj = this.getSiteStatusMappingObj(webexMigratedSites);
|
|
1561
|
+
this.data.data.forEach(site => site.migrationFormStatus = statusObj[site.siteId] || '');
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
getSiteStatusMappingObj(webexMigratedSites) {
|
|
1565
|
+
const statusObj = {};
|
|
1566
|
+
webexMigratedSites.forEach(item => {
|
|
1567
|
+
if (item.site?.id) {
|
|
1568
|
+
statusObj[String(item.site.id)] = item.migrationFormStatus;
|
|
1569
|
+
}
|
|
1570
|
+
});
|
|
1571
|
+
return statusObj;
|
|
1572
|
+
}
|
|
1573
|
+
setBatchIdToSites(batches) {
|
|
1574
|
+
if (this.data?.data?.length) {
|
|
1575
|
+
this.data.data.forEach(site => {
|
|
1576
|
+
site.batchId = this.getBatchId(batches, site.siteId);
|
|
1577
|
+
});
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
getBatchId(batches, siteId) {
|
|
1581
|
+
const ind = batches.findIndex(batch => batch.siteId === siteId);
|
|
1582
|
+
return ind > -1 ? batches[ind].id : null;
|
|
1583
|
+
}
|
|
1584
|
+
initCollectProgress(sitesInProgress) {
|
|
1585
|
+
this.data?.data.forEach(site => {
|
|
1586
|
+
if (sitesInProgress.includes(site.siteId)) {
|
|
1587
|
+
site.pending = true;
|
|
1588
|
+
this.initCollectInterval(site);
|
|
1589
|
+
}
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1592
|
+
ngOnDestroy() {
|
|
1593
|
+
this.destroy$.next();
|
|
1594
|
+
this.destroy$.complete();
|
|
1595
|
+
this.dataPending = false;
|
|
1596
|
+
if (this.collectingBatchInterval) {
|
|
1597
|
+
clearInterval(this.collectingBatchInterval);
|
|
1598
|
+
}
|
|
1599
|
+
if (this.subscriptions) {
|
|
1600
|
+
this.subscriptions.unsubscribe();
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
SiteUpgradeDataTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1605
|
+
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]=\"70\"\r\n strokeWidth=\"3\"></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)=\"onSiteMigration(element)\">Upgrade</button>\r\n </ng-container>\r\n <ng-template #statusBlock>\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getSiteUpgradeStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{ STATUS_ENTRIES[element.upgradeStatus] }}</span>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <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 <div class=\"flex-container\">\r\n <button mat-icon-button [matMenuTriggerFor]=\"defaultBatchMenu\">\r\n <span style=\"font-size: 17px;\">\u22EE</span>\r\n </button>\r\n </div>\r\n\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 || element.migrationFormStatus === 'NOT_PREPARED' }\"\r\n (click)=\"element.pending || element.migrationFormStatus === 'NOT_PREPARED' ? $event.stopPropagation() : onCollect(element)\">\r\n <span\r\n class=\"webex-details-icon webex-icon\"\r\n [ngClass]=\"{ 'migration-action-disabled': element.pending || element.migrationFormStatus === 'NOT_PREPARED'}\">\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}.app-progress-bar-container{margin:7px 20px 0 0}.progress-bar-container{min-width:40px}.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}.mat-progress-spinner-td{position:relative}.mat-progress-spinner-td .mat-progress-spinner{top:28%;left:0;margin:0;position:absolute}.progress-percents{font-weight:500;font-size:12px}:host ::ng-deep .mat-progress-spinner-td{position:relative}:host ::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;align-items:stretch}.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 .indicator-status-ready{color:#1170cf!important}.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:#1170cf}.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 .flex-container{display:flex}.site-upgrade-table .upgrade-button{border:1px solid rgb(0,0,0)!important;color:#fff!important;background:rgb(0,0,0)!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}.site-upgrade-table .upgrade-button:hover{background-color:#000000b0!important}.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,.site-upgrade-table .collect-icon-cell{display:flex;align-items:center}.site-upgrade-table .icon-play{width:24px;height:24px;background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2218%22 height%3D%2219%22 viewBox%3D%220 0 18 19%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M8.09567 11.7427L11.3625 9.64421C11.523 9.54226 11.6033 9.40067 11.6033 9.21945C11.6033 9.03821 11.523 8.89615 11.3625 8.79326L8.09567 6.69472C7.92739 6.57933 7.75479 6.5701 7.57787 6.66701C7.40096 6.76391 7.3125 6.91497 7.3125 7.12019V11.3173C7.3125 11.5225 7.40096 11.6736 7.57787 11.7705C7.75479 11.8674 7.92739 11.8581 8.09567 11.7427ZM9.00124 16.3437C8.01579 16.3437 7.08951 16.1567 6.22241 15.7827C5.3553 15.4087 4.60104 14.9012 3.95963 14.26C3.3182 13.6189 2.81041 12.865 2.43624 11.9982C2.06208 11.1315 1.875 10.2054 1.875 9.21999C1.875 8.23454 2.062 7.30826 2.436 6.44116C2.81 5.57405 3.31756 4.81979 3.95869 4.17838C4.59983 3.53695 5.35376 3.02916 6.22048 2.65499C7.08719 2.28083 8.01328 2.09375 8.99873 2.09375C9.98418 2.09375 10.9105 2.28075 11.7776 2.65475C12.6447 3.02875 13.3989 3.53631 14.0403 4.17744C14.6818 4.81858 15.1896 5.57251 15.5637 6.43923C15.9379 7.30594 16.125 8.23203 16.125 9.21748C16.125 10.2029 15.938 11.1292 15.564 11.9963C15.19 12.8634 14.6824 13.6177 14.0413 14.2591C13.4001 14.9005 12.6462 15.4083 11.7795 15.7825C10.9128 16.1566 9.98669 16.3437 9.00124 16.3437ZM8.99998 15.2187C10.675 15.2187 12.0937 14.6375 13.2562 13.475C14.4187 12.3125 15 10.8937 15 9.21873C15 7.54373 14.4187 6.12498 13.2562 4.96248C12.0937 3.79998 10.675 3.21873 8.99998 3.21873C7.32498 3.21873 5.90623 3.79998 4.74373 4.96248C3.58123 6.12498 2.99998 7.54373 2.99998 9.21873C2.99998 10.8937 3.58123 12.3125 4.74373 13.475C5.90623 14.6375 7.32498 15.2187 8.99998 15.2187Z%22 fill%3D%22%232C355D%22%2F%3E%3C%2Fsvg%3E\");background-repeat:no-repeat;background-position:center;background-size:contain}.site-upgrade-table .collect-icon-cell{cursor:pointer}:host ::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: i2$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i2$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$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: SummaryCardComponent, selector: "tk-summary-card", inputs: ["value", "status", "description"] }, { kind: "component", type: TableFiltersComponent, selector: "tk-table-filters", inputs: ["filters"], outputs: ["filter"] }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "directive", type: i6$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { 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 });
|
|
1606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeDataTableComponent, decorators: [{
|
|
1607
|
+
type: Component,
|
|
1608
|
+
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]=\"70\"\r\n strokeWidth=\"3\"></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)=\"onSiteMigration(element)\">Upgrade</button>\r\n </ng-container>\r\n <ng-template #statusBlock>\r\n <div class=\"status-info\">\r\n <span class=\"status-indicator\" [ngClass]=\"getSiteUpgradeStatusClass(element.upgradeStatus)\"></span>\r\n <span>{{ STATUS_ENTRIES[element.upgradeStatus] }}</span>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <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 <div class=\"flex-container\">\r\n <button mat-icon-button [matMenuTriggerFor]=\"defaultBatchMenu\">\r\n <span style=\"font-size: 17px;\">\u22EE</span>\r\n </button>\r\n </div>\r\n\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 || element.migrationFormStatus === 'NOT_PREPARED' }\"\r\n (click)=\"element.pending || element.migrationFormStatus === 'NOT_PREPARED' ? $event.stopPropagation() : onCollect(element)\">\r\n <span\r\n class=\"webex-details-icon webex-icon\"\r\n [ngClass]=\"{ 'migration-action-disabled': element.pending || element.migrationFormStatus === 'NOT_PREPARED'}\">\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}.app-progress-bar-container{margin:7px 20px 0 0}.progress-bar-container{min-width:40px}.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}.mat-progress-spinner-td{position:relative}.mat-progress-spinner-td .mat-progress-spinner{top:28%;left:0;margin:0;position:absolute}.progress-percents{font-weight:500;font-size:12px}:host ::ng-deep .mat-progress-spinner-td{position:relative}:host ::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;align-items:stretch}.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 .indicator-status-ready{color:#1170cf!important}.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:#1170cf}.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 .flex-container{display:flex}.site-upgrade-table .upgrade-button{border:1px solid rgb(0,0,0)!important;color:#fff!important;background:rgb(0,0,0)!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}.site-upgrade-table .upgrade-button:hover{background-color:#000000b0!important}.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,.site-upgrade-table .collect-icon-cell{display:flex;align-items:center}.site-upgrade-table .icon-play{width:24px;height:24px;background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2218%22 height%3D%2219%22 viewBox%3D%220 0 18 19%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M8.09567 11.7427L11.3625 9.64421C11.523 9.54226 11.6033 9.40067 11.6033 9.21945C11.6033 9.03821 11.523 8.89615 11.3625 8.79326L8.09567 6.69472C7.92739 6.57933 7.75479 6.5701 7.57787 6.66701C7.40096 6.76391 7.3125 6.91497 7.3125 7.12019V11.3173C7.3125 11.5225 7.40096 11.6736 7.57787 11.7705C7.75479 11.8674 7.92739 11.8581 8.09567 11.7427ZM9.00124 16.3437C8.01579 16.3437 7.08951 16.1567 6.22241 15.7827C5.3553 15.4087 4.60104 14.9012 3.95963 14.26C3.3182 13.6189 2.81041 12.865 2.43624 11.9982C2.06208 11.1315 1.875 10.2054 1.875 9.21999C1.875 8.23454 2.062 7.30826 2.436 6.44116C2.81 5.57405 3.31756 4.81979 3.95869 4.17838C4.59983 3.53695 5.35376 3.02916 6.22048 2.65499C7.08719 2.28083 8.01328 2.09375 8.99873 2.09375C9.98418 2.09375 10.9105 2.28075 11.7776 2.65475C12.6447 3.02875 13.3989 3.53631 14.0403 4.17744C14.6818 4.81858 15.1896 5.57251 15.5637 6.43923C15.9379 7.30594 16.125 8.23203 16.125 9.21748C16.125 10.2029 15.938 11.1292 15.564 11.9963C15.19 12.8634 14.6824 13.6177 14.0413 14.2591C13.4001 14.9005 12.6462 15.4083 11.7795 15.7825C10.9128 16.1566 9.98669 16.3437 9.00124 16.3437ZM8.99998 15.2187C10.675 15.2187 12.0937 14.6375 13.2562 13.475C14.4187 12.3125 15 10.8937 15 9.21873C15 7.54373 14.4187 6.12498 13.2562 4.96248C12.0937 3.79998 10.675 3.21873 8.99998 3.21873C7.32498 3.21873 5.90623 3.79998 4.74373 4.96248C3.58123 6.12498 2.99998 7.54373 2.99998 9.21873C2.99998 10.8937 3.58123 12.3125 4.74373 13.475C5.90623 14.6375 7.32498 15.2187 8.99998 15.2187Z%22 fill%3D%22%232C355D%22%2F%3E%3C%2Fsvg%3E\");background-repeat:no-repeat;background-position:center;background-size:contain}.site-upgrade-table .collect-icon-cell{cursor:pointer}:host ::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"] }]
|
|
1609
|
+
}], ctorParameters: function () { return []; }, propDecorators: { token: [{
|
|
1610
|
+
type: Input
|
|
1611
|
+
}], customerId: [{
|
|
1612
|
+
type: Input
|
|
1613
|
+
}] } });
|
|
1614
|
+
|
|
1615
|
+
class SiteUpgradeModule {
|
|
1616
|
+
}
|
|
1617
|
+
SiteUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1618
|
+
SiteUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, declarations: [SiteUpgradeDataTableComponent,
|
|
1619
|
+
ProgressBarComponent], imports: [CommonModule,
|
|
1620
|
+
SharedModule,
|
|
1621
|
+
MatTableModule,
|
|
1622
|
+
MatIconModule,
|
|
1623
|
+
MatMenuModule,
|
|
1624
|
+
MatButtonModule,
|
|
1625
|
+
MatProgressSpinnerModule], exports: [SiteUpgradeDataTableComponent,
|
|
1626
|
+
ProgressBarComponent] });
|
|
1627
|
+
SiteUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, imports: [CommonModule,
|
|
1628
|
+
SharedModule,
|
|
1629
|
+
MatTableModule,
|
|
1630
|
+
MatIconModule,
|
|
1631
|
+
MatMenuModule,
|
|
1632
|
+
MatButtonModule,
|
|
1633
|
+
MatProgressSpinnerModule] });
|
|
1634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteUpgradeModule, decorators: [{
|
|
1635
|
+
type: NgModule,
|
|
1636
|
+
args: [{
|
|
1637
|
+
declarations: [
|
|
1638
|
+
SiteUpgradeDataTableComponent,
|
|
1639
|
+
ProgressBarComponent
|
|
1640
|
+
],
|
|
1641
|
+
imports: [
|
|
1642
|
+
CommonModule,
|
|
1643
|
+
SharedModule,
|
|
1644
|
+
MatTableModule,
|
|
1645
|
+
MatIconModule,
|
|
1646
|
+
MatMenuModule,
|
|
1647
|
+
MatButtonModule,
|
|
1648
|
+
MatProgressSpinnerModule
|
|
1649
|
+
],
|
|
1650
|
+
exports: [
|
|
1651
|
+
SiteUpgradeDataTableComponent,
|
|
1652
|
+
ProgressBarComponent
|
|
1653
|
+
]
|
|
1654
|
+
}]
|
|
1655
|
+
}] });
|
|
1656
|
+
|
|
1657
|
+
class UpgradeOverviewService {
|
|
1658
|
+
constructor(apiService) {
|
|
1659
|
+
this.apiService = apiService;
|
|
1660
|
+
}
|
|
1661
|
+
getUpgradePreconditions() {
|
|
1662
|
+
return this.apiService.fetch(API$1.OVERVIEW.GET_UPGRADE_PRECONDITIONS.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1663
|
+
return {
|
|
1664
|
+
id: resp.id,
|
|
1665
|
+
customerId: resp.customerId,
|
|
1666
|
+
controlHubIntegration: resp.controlHubIntegration,
|
|
1667
|
+
numberOfAvailableLicences: resp.availableLicences
|
|
1668
|
+
};
|
|
1669
|
+
}));
|
|
1670
|
+
}
|
|
1671
|
+
getSiteInfrastructureSummary() {
|
|
1672
|
+
return this.apiService.fetch(API$1.OVERVIEW.GET_SITE_INFRASTRUCTURE.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1673
|
+
return {
|
|
1674
|
+
id: resp.id,
|
|
1675
|
+
customerId: resp.customerId,
|
|
1676
|
+
totalSites: resp.totalSites,
|
|
1677
|
+
totalLocations: resp.totalLocations,
|
|
1678
|
+
totalPSTNs: resp.totalPSTNS
|
|
1679
|
+
};
|
|
1680
|
+
}));
|
|
1681
|
+
}
|
|
1682
|
+
getUsersUpgradeSummary() {
|
|
1683
|
+
return this.apiService.fetch(API$1.OVERVIEW.GET_USERS_UPGRADE_SUMMARY.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1684
|
+
return {
|
|
1685
|
+
id: resp.id,
|
|
1686
|
+
customerId: resp.customerId,
|
|
1687
|
+
totalUsers: resp.totalUsers,
|
|
1688
|
+
totalReadyUsers: resp.totalUsersReady,
|
|
1689
|
+
totalUpgradedUsers: resp.totalUsersUpgraded
|
|
1690
|
+
};
|
|
1691
|
+
}));
|
|
1692
|
+
}
|
|
1693
|
+
getSitesUpgradeSummary() {
|
|
1694
|
+
return this.apiService.fetch(API$1.OVERVIEW.GET_SITES_UPGRADE_SUMMARY.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1695
|
+
return {
|
|
1696
|
+
id: resp.id,
|
|
1697
|
+
customerId: resp.customerId,
|
|
1698
|
+
totalSites: resp.totalSites,
|
|
1699
|
+
totalReadySites: resp.totalSitesReady,
|
|
1700
|
+
totalUpgradedSites: resp.totalSitesUpgraded
|
|
1701
|
+
};
|
|
1702
|
+
}));
|
|
1703
|
+
}
|
|
1704
|
+
getUsersUpgradeReadiness() {
|
|
1705
|
+
return this.apiService.fetch(API$1.OVERVIEW.GET_USERS_UPGRADE_READINESS.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1706
|
+
return {
|
|
1707
|
+
id: resp.id,
|
|
1708
|
+
customerId: resp.customerId,
|
|
1709
|
+
totalUsers: resp.totalUsers,
|
|
1710
|
+
totalReadyUsers: resp.totalUsersReady
|
|
1711
|
+
};
|
|
1712
|
+
}));
|
|
1713
|
+
}
|
|
1714
|
+
getSitesUpgradeReadiness() {
|
|
1715
|
+
return this.apiService.fetch(API$1.OVERVIEW.GET_SITES_UPGRADE_READINESS.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1716
|
+
return {
|
|
1717
|
+
id: resp.id,
|
|
1718
|
+
customerId: resp.customerId,
|
|
1719
|
+
totalSites: resp.totalSites,
|
|
1720
|
+
totalReadySites: resp.totalSitesReady
|
|
1721
|
+
};
|
|
1722
|
+
}));
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
UpgradeOverviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, deps: [{ token: APIService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1726
|
+
UpgradeOverviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, providedIn: 'root' });
|
|
1727
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewService, decorators: [{
|
|
1728
|
+
type: Injectable,
|
|
1729
|
+
args: [{
|
|
1730
|
+
providedIn: 'root'
|
|
1731
|
+
}]
|
|
1732
|
+
}], ctorParameters: function () { return [{ type: APIService }]; } });
|
|
1733
|
+
|
|
1734
|
+
class ReadyToUpgradeUsersCardComponent {
|
|
1735
|
+
constructor() {
|
|
1736
|
+
this.apiService = inject(APIService);
|
|
1737
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1738
|
+
this.destroy$ = new Subject();
|
|
1739
|
+
this.title = 'Ready Users';
|
|
1740
|
+
this.type = 'user';
|
|
1741
|
+
this.upgradeStatus = 'ready';
|
|
1742
|
+
this.loading = false;
|
|
1743
|
+
}
|
|
1744
|
+
ngOnInit() {
|
|
1745
|
+
this.apiService.token = this.token;
|
|
1746
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
1747
|
+
this.loading = true;
|
|
1748
|
+
this.upgradeOverviewService.getUsersUpgradeReadiness()
|
|
1749
|
+
.pipe(takeUntil(this.destroy$))
|
|
1750
|
+
.subscribe((stats) => {
|
|
1751
|
+
this.readinessStats = stats;
|
|
1752
|
+
this.loading = false;
|
|
1753
|
+
});
|
|
1754
|
+
}
|
|
1755
|
+
ngOnDestroy() {
|
|
1756
|
+
this.destroy$.next();
|
|
1757
|
+
this.destroy$.complete();
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
ReadyToUpgradeUsersCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeUsersCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1761
|
+
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"] }] });
|
|
1762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeUsersCardComponent, decorators: [{
|
|
1763
|
+
type: Component,
|
|
1764
|
+
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>" }]
|
|
1765
|
+
}], propDecorators: { token: [{
|
|
1766
|
+
type: Input
|
|
1767
|
+
}], customerId: [{
|
|
1768
|
+
type: Input
|
|
1769
|
+
}] } });
|
|
1770
|
+
|
|
1771
|
+
class ReadyToUpgradeSitesCardComponent {
|
|
1772
|
+
constructor() {
|
|
1773
|
+
this.apiService = inject(APIService);
|
|
1774
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1775
|
+
this.destroy$ = new Subject();
|
|
1776
|
+
this.title = 'Ready Sites';
|
|
1777
|
+
this.type = 'site';
|
|
1778
|
+
this.upgradeStatus = 'ready';
|
|
1779
|
+
this.loading = false;
|
|
1780
|
+
}
|
|
1781
|
+
ngOnInit() {
|
|
1782
|
+
this.apiService.token = this.token;
|
|
1783
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
1784
|
+
this.loading = true;
|
|
1785
|
+
this.upgradeOverviewService.getSitesUpgradeReadiness()
|
|
1786
|
+
.pipe(takeUntil(this.destroy$))
|
|
1787
|
+
.subscribe((stats) => {
|
|
1788
|
+
this.readinessStats = stats;
|
|
1789
|
+
this.loading = false;
|
|
1790
|
+
});
|
|
1791
|
+
}
|
|
1792
|
+
ngOnDestroy() {
|
|
1793
|
+
this.destroy$.next();
|
|
1794
|
+
this.destroy$.complete();
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
ReadyToUpgradeSitesCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeSitesCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1798
|
+
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"] }] });
|
|
1799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReadyToUpgradeSitesCardComponent, decorators: [{
|
|
1800
|
+
type: Component,
|
|
1801
|
+
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>" }]
|
|
1802
|
+
}], propDecorators: { token: [{
|
|
1803
|
+
type: Input
|
|
1804
|
+
}], customerId: [{
|
|
1805
|
+
type: Input
|
|
1806
|
+
}] } });
|
|
1807
|
+
|
|
1808
|
+
class AlreadyUpgradedUsersCardComponent {
|
|
1809
|
+
constructor() {
|
|
1810
|
+
this.apiService = inject(APIService);
|
|
1811
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1812
|
+
this.destroy$ = new Subject();
|
|
1813
|
+
this.title = 'Upgraded Users';
|
|
1814
|
+
this.type = 'user';
|
|
1815
|
+
this.upgradeStatus = 'already';
|
|
1816
|
+
this.loading = false;
|
|
1817
|
+
}
|
|
1818
|
+
ngOnInit() {
|
|
1819
|
+
this.apiService.token = this.token;
|
|
1820
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
1821
|
+
this.loading = true;
|
|
1822
|
+
this.upgradeOverviewService.getUsersUpgradeSummary()
|
|
1823
|
+
.pipe(takeUntil(this.destroy$))
|
|
1824
|
+
.subscribe((stats) => {
|
|
1825
|
+
this.readinessStats = stats;
|
|
1826
|
+
this.loading = false;
|
|
1827
|
+
});
|
|
1828
|
+
}
|
|
1829
|
+
ngOnDestroy() {
|
|
1830
|
+
this.destroy$.next();
|
|
1831
|
+
this.destroy$.complete();
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
AlreadyUpgradedUsersCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedUsersCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1835
|
+
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: `
|
|
1836
|
+
<tk-stat-card
|
|
1837
|
+
*ngIf="!loading"
|
|
1838
|
+
[title]="title"
|
|
1839
|
+
[type]="type"
|
|
1840
|
+
[readinessStats]="readinessStats"
|
|
1841
|
+
[upgradeStatus]="upgradeStatus"
|
|
1842
|
+
></tk-stat-card>
|
|
1843
|
+
`, 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"] }] });
|
|
1844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedUsersCardComponent, decorators: [{
|
|
1845
|
+
type: Component,
|
|
1846
|
+
args: [{
|
|
1847
|
+
selector: 'tk-already-upgraded-users-card',
|
|
1848
|
+
template: `
|
|
1849
|
+
<tk-stat-card
|
|
1850
|
+
*ngIf="!loading"
|
|
1851
|
+
[title]="title"
|
|
1852
|
+
[type]="type"
|
|
1853
|
+
[readinessStats]="readinessStats"
|
|
1854
|
+
[upgradeStatus]="upgradeStatus"
|
|
1855
|
+
></tk-stat-card>
|
|
1856
|
+
`
|
|
1857
|
+
}]
|
|
1858
|
+
}], propDecorators: { token: [{
|
|
1859
|
+
type: Input
|
|
1860
|
+
}], customerId: [{
|
|
1861
|
+
type: Input
|
|
1862
|
+
}] } });
|
|
1863
|
+
|
|
1864
|
+
class AlreadyUpgradedSitesCardComponent {
|
|
1865
|
+
constructor() {
|
|
1866
|
+
this.apiService = inject(APIService);
|
|
1867
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1868
|
+
this.destroy$ = new Subject();
|
|
1869
|
+
this.title = 'Upgraded Sites';
|
|
1870
|
+
this.type = 'site';
|
|
1871
|
+
this.upgradeStatus = 'already';
|
|
1872
|
+
this.loading = false;
|
|
1873
|
+
}
|
|
1874
|
+
ngOnInit() {
|
|
1875
|
+
this.apiService.token = this.token;
|
|
1876
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
1877
|
+
this.loading = true;
|
|
1878
|
+
this.upgradeOverviewService.getSitesUpgradeSummary()
|
|
1879
|
+
.pipe(takeUntil(this.destroy$))
|
|
1880
|
+
.subscribe((stats) => {
|
|
1881
|
+
this.readinessStats = stats;
|
|
1882
|
+
this.loading = false;
|
|
1883
|
+
});
|
|
1884
|
+
}
|
|
1885
|
+
ngOnDestroy() {
|
|
1886
|
+
this.destroy$.next();
|
|
1887
|
+
this.destroy$.complete();
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
AlreadyUpgradedSitesCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedSitesCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1891
|
+
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: `
|
|
1892
|
+
<tk-stat-card
|
|
1893
|
+
*ngIf="!loading"
|
|
1894
|
+
[title]="title"
|
|
1895
|
+
[type]="type"
|
|
1896
|
+
[readinessStats]="readinessStats"
|
|
1897
|
+
[upgradeStatus]="upgradeStatus"
|
|
1898
|
+
></tk-stat-card>
|
|
1899
|
+
`, 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"] }] });
|
|
1900
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AlreadyUpgradedSitesCardComponent, decorators: [{
|
|
1901
|
+
type: Component,
|
|
1902
|
+
args: [{
|
|
1903
|
+
selector: 'tk-already-upgraded-sites-card',
|
|
1904
|
+
template: `
|
|
1905
|
+
<tk-stat-card
|
|
1906
|
+
*ngIf="!loading"
|
|
1907
|
+
[title]="title"
|
|
1908
|
+
[type]="type"
|
|
1909
|
+
[readinessStats]="readinessStats"
|
|
1910
|
+
[upgradeStatus]="upgradeStatus"
|
|
1911
|
+
></tk-stat-card>
|
|
1912
|
+
`
|
|
1913
|
+
}]
|
|
1914
|
+
}], propDecorators: { token: [{
|
|
1915
|
+
type: Input
|
|
1916
|
+
}], customerId: [{
|
|
1917
|
+
type: Input
|
|
1918
|
+
}] } });
|
|
1919
|
+
|
|
1920
|
+
class PreconditionsStatusListCardComponent {
|
|
1921
|
+
constructor() {
|
|
1922
|
+
this.apiService = inject(APIService);
|
|
1923
|
+
this.destroy$ = new Subject();
|
|
1924
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
1925
|
+
this.title = 'Mandatory Preconditions for Upgrade';
|
|
1926
|
+
}
|
|
1927
|
+
ngOnInit() {
|
|
1928
|
+
this.apiService.token = this.token;
|
|
1929
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
1930
|
+
this.upgradeOverviewService.getUpgradePreconditions()
|
|
1931
|
+
.pipe(takeUntil(this.destroy$))
|
|
1932
|
+
.subscribe((resp) => {
|
|
1933
|
+
this.preconditions = resp;
|
|
1934
|
+
this.init();
|
|
1935
|
+
});
|
|
1936
|
+
}
|
|
1937
|
+
ngOnDestroy() {
|
|
1938
|
+
this.destroy$.next();
|
|
1939
|
+
this.destroy$.complete();
|
|
1940
|
+
}
|
|
1941
|
+
init() {
|
|
1942
|
+
this.items = [
|
|
1943
|
+
{
|
|
1944
|
+
label: 'Control Hub Integration',
|
|
1945
|
+
description: 'Control Hub Connectivity',
|
|
1946
|
+
status: this.preconditions.controlHubIntegration === 'CONNECTED',
|
|
1947
|
+
tooltip: 'Your tenant must be connected to Webex Control Hub to enable and manage the upgrade process.',
|
|
1948
|
+
link: {
|
|
1949
|
+
href: 'https://dev.tuki.io/',
|
|
1950
|
+
tooltip: 'Click below to open the integration setup wizard in Tuki. If the tenant is not yet connected, you will be redirected to create the integration in Control Hub.'
|
|
1951
|
+
}
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
label: 'SIP Trunk (Local Gateway)',
|
|
1955
|
+
description: 'CUCM trunk connectivity estabilished',
|
|
1956
|
+
status: true,
|
|
1957
|
+
tooltip: 'CUCM must have an active SIP trunk to the Local Gateway for tenant-wide external calling.',
|
|
1958
|
+
link: {
|
|
1959
|
+
href: 'https://dev.tuki.io/',
|
|
1960
|
+
tooltip: 'Confirm that the trunk is configured and connected in CUCM.'
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
{
|
|
1964
|
+
label: `${this.preconditions.numberOfAvailableLicences} Available User Licences`,
|
|
1965
|
+
description: 'Webex calling licences provisioned and assgined',
|
|
1966
|
+
status: this.preconditions.numberOfAvailableLicences > 0,
|
|
1967
|
+
tooltip: 'Webex Calling licenses are required for users who are being upgraded.',
|
|
1968
|
+
link: {
|
|
1969
|
+
href: '',
|
|
1970
|
+
tooltip: ''
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
];
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
PreconditionsStatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PreconditionsStatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1977
|
+
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: `
|
|
1978
|
+
<tk-status-list-card
|
|
1979
|
+
[title]="title"
|
|
1980
|
+
[items]="items"
|
|
1981
|
+
></tk-status-list-card>
|
|
1982
|
+
`, isInline: true, styles: [":host{width:100%}\n"], dependencies: [{ kind: "component", type: StatusListCardComponent, selector: "tk-status-list-card", inputs: ["title", "items"] }] });
|
|
1983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PreconditionsStatusListCardComponent, decorators: [{
|
|
1984
|
+
type: Component,
|
|
1985
|
+
args: [{ selector: 'tk-preconditions-status-list-card', template: `
|
|
1986
|
+
<tk-status-list-card
|
|
1987
|
+
[title]="title"
|
|
1988
|
+
[items]="items"
|
|
1989
|
+
></tk-status-list-card>
|
|
1990
|
+
`, styles: [":host{width:100%}\n"] }]
|
|
1991
|
+
}], propDecorators: { token: [{
|
|
1992
|
+
type: Input
|
|
1993
|
+
}], customerId: [{
|
|
1994
|
+
type: Input
|
|
1995
|
+
}] } });
|
|
1996
|
+
|
|
1997
|
+
class SiteInfrastructureStatusListCardComponent {
|
|
1998
|
+
constructor() {
|
|
1999
|
+
this.title = 'Site Preconditions';
|
|
2000
|
+
this.apiService = inject(APIService);
|
|
2001
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
2002
|
+
this.destroy$ = new Subject();
|
|
2003
|
+
}
|
|
2004
|
+
ngOnInit() {
|
|
2005
|
+
this.apiService.token = this.token;
|
|
2006
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
2007
|
+
this.upgradeOverviewService.getSiteInfrastructureSummary()
|
|
2008
|
+
.pipe(takeUntil(this.destroy$))
|
|
2009
|
+
.subscribe((siteInfrastructure) => {
|
|
2010
|
+
this.items = [
|
|
2011
|
+
{
|
|
2012
|
+
label: 'PSTN Trunk',
|
|
2013
|
+
description: 'Public network connectivity',
|
|
2014
|
+
status: siteInfrastructure.totalPSTNs === siteInfrastructure.totalSites,
|
|
2015
|
+
totalSites: siteInfrastructure.totalSites,
|
|
2016
|
+
value: siteInfrastructure.totalPSTNs,
|
|
2017
|
+
tooltip: 'Public network connectivity is required for external calling.',
|
|
2018
|
+
link: {
|
|
2019
|
+
href: 'https://dev.tuki.io/',
|
|
2020
|
+
tooltip: 'Ensure that the site has a configured PSTN trunk in Control Hub and verify that the connection is established and active. If setup is incomplete, contact your administrator or PSTN provider.'
|
|
2021
|
+
}
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
label: 'Location Mapping',
|
|
2025
|
+
description: 'Sites defined in Control Hub with proper configuration',
|
|
2026
|
+
status: siteInfrastructure.totalLocations === siteInfrastructure.totalSites,
|
|
2027
|
+
totalSites: siteInfrastructure.totalSites,
|
|
2028
|
+
value: siteInfrastructure.totalLocations,
|
|
2029
|
+
tooltip: 'Each site must be mapped to a Control Hub location.',
|
|
2030
|
+
link: {
|
|
2031
|
+
href: 'https://dev.tuki.io/',
|
|
2032
|
+
tooltip: 'Click below to open the Tuki mapping tool and complete the site-to-location mapping.'
|
|
2033
|
+
}
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
label: 'Ready users',
|
|
2037
|
+
description: 'All users in the site are ready or already upgraded',
|
|
2038
|
+
status: false,
|
|
2039
|
+
totalSites: 12,
|
|
2040
|
+
value: siteInfrastructure.totalLocations,
|
|
2041
|
+
tooltip: 'All users in the site must be ready or already upgraded to ensure a successful migration.',
|
|
2042
|
+
link: {
|
|
2043
|
+
href: '',
|
|
2044
|
+
tooltip: ''
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2047
|
+
];
|
|
2048
|
+
});
|
|
2049
|
+
}
|
|
2050
|
+
ngOnDestroy() {
|
|
2051
|
+
this.destroy$.next();
|
|
2052
|
+
this.destroy$.complete();
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
SiteInfrastructureStatusListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteInfrastructureStatusListCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2056
|
+
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: `
|
|
2057
|
+
<tk-status-list-card
|
|
2058
|
+
[title]="title"
|
|
2059
|
+
[items]="items"
|
|
2060
|
+
></tk-status-list-card>
|
|
2061
|
+
`, isInline: true, styles: [":host{width:100%}\n"], dependencies: [{ kind: "component", type: StatusListCardComponent, selector: "tk-status-list-card", inputs: ["title", "items"] }] });
|
|
2062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteInfrastructureStatusListCardComponent, decorators: [{
|
|
2063
|
+
type: Component,
|
|
2064
|
+
args: [{ selector: 'tk-site-infrastructure-status-list-card', template: `
|
|
2065
|
+
<tk-status-list-card
|
|
2066
|
+
[title]="title"
|
|
2067
|
+
[items]="items"
|
|
2068
|
+
></tk-status-list-card>
|
|
2069
|
+
`, styles: [":host{width:100%}\n"] }]
|
|
2070
|
+
}], propDecorators: { token: [{
|
|
2071
|
+
type: Input
|
|
2072
|
+
}], customerId: [{
|
|
2073
|
+
type: Input
|
|
2074
|
+
}] } });
|
|
2075
|
+
|
|
2076
|
+
class UpgradeStateComparisonChartCardComponent {
|
|
2077
|
+
constructor() {
|
|
2078
|
+
this.apiService = inject(APIService);
|
|
2079
|
+
this.upgradeOverviewService = inject(UpgradeOverviewService);
|
|
2080
|
+
this.destroy$ = new Subject();
|
|
2081
|
+
this.type = 'Users';
|
|
2082
|
+
this.loading = false;
|
|
2083
|
+
}
|
|
2084
|
+
ngOnInit() {
|
|
2085
|
+
this.apiService.token = this.token;
|
|
2086
|
+
this.upgradeOverviewService.customerId = this.customerId;
|
|
2087
|
+
this.totalUpgraded = 0;
|
|
2088
|
+
this.totalNotUpgraded = 0;
|
|
2089
|
+
this.loading = true;
|
|
2090
|
+
this.title = `${this.type} - Upgraded vs. Not Upgraded`;
|
|
2091
|
+
if (this.type === 'Sites') {
|
|
2092
|
+
this.upgradeOverviewService.getSitesUpgradeSummary()
|
|
2093
|
+
.pipe(takeUntil(this.destroy$))
|
|
2094
|
+
.subscribe((stats) => {
|
|
2095
|
+
this.totalUpgraded = parseInt(stats.totalUpgradedSites);
|
|
2096
|
+
this.totalNotUpgraded = parseInt(stats.totalReadySites);
|
|
2097
|
+
this.loading = false;
|
|
2098
|
+
});
|
|
2099
|
+
}
|
|
2100
|
+
else {
|
|
2101
|
+
this.upgradeOverviewService.getUsersUpgradeSummary()
|
|
2102
|
+
.pipe(takeUntil(this.destroy$))
|
|
2103
|
+
.subscribe((stats) => {
|
|
2104
|
+
this.totalUpgraded = parseInt(stats.totalUpgradedUsers);
|
|
2105
|
+
this.totalNotUpgraded = parseInt(stats.totalReadyUsers);
|
|
2106
|
+
this.loading = false;
|
|
2107
|
+
});
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
ngOnDestroy() {
|
|
2111
|
+
this.destroy$.next();
|
|
2112
|
+
this.destroy$.complete();
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
UpgradeStateComparisonChartCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeStateComparisonChartCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2116
|
+
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: `
|
|
2117
|
+
<tk-chart-card
|
|
2118
|
+
*ngIf="!loading"
|
|
2119
|
+
[title]="title"
|
|
2120
|
+
[totalUpgraded]="totalUpgraded"
|
|
2121
|
+
[totalNotUpgraded]="totalNotUpgraded"
|
|
2122
|
+
></tk-chart-card>
|
|
2123
|
+
`, 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"] }] });
|
|
2124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeStateComparisonChartCardComponent, decorators: [{
|
|
2125
|
+
type: Component,
|
|
2126
|
+
args: [{ selector: "tk-upgrade-state-comparison-chart-card", template: `
|
|
2127
|
+
<tk-chart-card
|
|
2128
|
+
*ngIf="!loading"
|
|
2129
|
+
[title]="title"
|
|
2130
|
+
[totalUpgraded]="totalUpgraded"
|
|
2131
|
+
[totalNotUpgraded]="totalNotUpgraded"
|
|
2132
|
+
></tk-chart-card>
|
|
2133
|
+
`, styles: [":host{width:100%}\n"] }]
|
|
2134
|
+
}], propDecorators: { type: [{
|
|
2135
|
+
type: Input
|
|
2136
|
+
}], token: [{
|
|
2137
|
+
type: Input
|
|
2138
|
+
}], customerId: [{
|
|
2139
|
+
type: Input
|
|
2140
|
+
}] } });
|
|
2141
|
+
|
|
2142
|
+
class UpgradeOverviewModule {
|
|
2143
|
+
}
|
|
2144
|
+
UpgradeOverviewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2145
|
+
UpgradeOverviewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, declarations: [ReadyToUpgradeUsersCardComponent,
|
|
2146
|
+
ReadyToUpgradeSitesCardComponent,
|
|
2147
|
+
AlreadyUpgradedUsersCardComponent,
|
|
2148
|
+
AlreadyUpgradedSitesCardComponent,
|
|
2149
|
+
PreconditionsStatusListCardComponent,
|
|
2150
|
+
SiteInfrastructureStatusListCardComponent,
|
|
2151
|
+
UpgradeStateComparisonChartCardComponent], imports: [CommonModule,
|
|
2152
|
+
SharedModule], exports: [ReadyToUpgradeUsersCardComponent,
|
|
2153
|
+
ReadyToUpgradeSitesCardComponent,
|
|
2154
|
+
AlreadyUpgradedUsersCardComponent,
|
|
2155
|
+
AlreadyUpgradedSitesCardComponent,
|
|
2156
|
+
PreconditionsStatusListCardComponent,
|
|
2157
|
+
SiteInfrastructureStatusListCardComponent,
|
|
2158
|
+
UpgradeStateComparisonChartCardComponent] });
|
|
2159
|
+
UpgradeOverviewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, imports: [CommonModule,
|
|
2160
|
+
SharedModule] });
|
|
2161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UpgradeOverviewModule, decorators: [{
|
|
2162
|
+
type: NgModule,
|
|
2163
|
+
args: [{
|
|
2164
|
+
declarations: [
|
|
2165
|
+
ReadyToUpgradeUsersCardComponent,
|
|
2166
|
+
ReadyToUpgradeSitesCardComponent,
|
|
2167
|
+
AlreadyUpgradedUsersCardComponent,
|
|
2168
|
+
AlreadyUpgradedSitesCardComponent,
|
|
2169
|
+
PreconditionsStatusListCardComponent,
|
|
2170
|
+
SiteInfrastructureStatusListCardComponent,
|
|
2171
|
+
UpgradeStateComparisonChartCardComponent
|
|
2172
|
+
],
|
|
2173
|
+
imports: [
|
|
2174
|
+
CommonModule,
|
|
2175
|
+
SharedModule
|
|
2176
|
+
],
|
|
2177
|
+
exports: [
|
|
2178
|
+
ReadyToUpgradeUsersCardComponent,
|
|
2179
|
+
ReadyToUpgradeSitesCardComponent,
|
|
2180
|
+
AlreadyUpgradedUsersCardComponent,
|
|
2181
|
+
AlreadyUpgradedSitesCardComponent,
|
|
2182
|
+
PreconditionsStatusListCardComponent,
|
|
2183
|
+
SiteInfrastructureStatusListCardComponent,
|
|
2184
|
+
UpgradeStateComparisonChartCardComponent
|
|
2185
|
+
],
|
|
2186
|
+
providers: []
|
|
2187
|
+
}]
|
|
2188
|
+
}] });
|
|
2189
|
+
|
|
2190
|
+
/*
|
|
2191
|
+
* Public API Surface of @tuki-io/tuki-widgets
|
|
2192
|
+
*/
|
|
2193
|
+
// Shared Components
|
|
2194
|
+
// export * from './shared/shared.module';
|
|
2195
|
+
// Widget Modules
|
|
2196
|
+
// Types
|
|
2197
|
+
// export * from './shared/types/data-table';
|
|
2198
|
+
|
|
2199
|
+
/**
|
|
2200
|
+
* Generated bundle index. Do not edit.
|
|
2201
|
+
*/
|
|
2202
|
+
|
|
2203
|
+
export { AlreadyUpgradedSitesCardComponent, AlreadyUpgradedUsersCardComponent, PreconditionsStatusListCardComponent, ProgressBarComponent, ReadyToUpgradeSitesCardComponent, ReadyToUpgradeUsersCardComponent, SiteInfrastructureStatusListCardComponent, SiteUpgradeDataTableComponent, SiteUpgradeModule, UpgradeOverviewModule, UpgradeStateComparisonChartCardComponent, UserUpgradeDataTableComponent, UserUpgradeModule };
|
|
2204
|
+
//# sourceMappingURL=tuki-io-tuki-widgets-di2mt.mjs.map
|