@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,2098 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ViewEncapsulation, Inject, Injectable, EventEmitter, Input, Output, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i11$1 from '@angular/material/table';
|
|
4
|
+
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
|
5
|
+
import * as i1 from '@angular/material/dialog';
|
|
6
|
+
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
7
|
+
import * as i2 from '@angular/common';
|
|
8
|
+
import { Subject, of, forkJoin, BehaviorSubject, Observable } from 'rxjs';
|
|
9
|
+
import * as i7 from '@angular/forms';
|
|
10
|
+
import { FormBuilder, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
11
|
+
import { map } from 'rxjs/operators';
|
|
12
|
+
import * as i1$1 from '@angular/common/http';
|
|
13
|
+
import { HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
14
|
+
import * as i8 from '@angular/material/button';
|
|
15
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
16
|
+
import * as i9 from '@angular/material/progress-spinner';
|
|
17
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
18
|
+
import * as i10$1 from '@angular/material/tooltip';
|
|
19
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
20
|
+
import * as i12$1 from '@angular/material/menu';
|
|
21
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
22
|
+
import * as i4 from '@angular/material/core';
|
|
23
|
+
import { MatNativeDateModule } from '@angular/material/core';
|
|
24
|
+
import * as i5 from '@angular/material/select';
|
|
25
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
26
|
+
import * as i6 from '@angular/material/paginator';
|
|
27
|
+
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
28
|
+
import * as Big from 'big.js';
|
|
29
|
+
import * as i10 from '@angular/material/form-field';
|
|
30
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
31
|
+
import * as i11 from '@angular/material/input';
|
|
32
|
+
import { MatInputModule } from '@angular/material/input';
|
|
33
|
+
import * as i12 from '@angular/material/autocomplete';
|
|
34
|
+
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
35
|
+
import * as i14 from '@angular/material/stepper';
|
|
36
|
+
import { MatStepperModule } from '@angular/material/stepper';
|
|
37
|
+
import * as i7$1 from '@angular/material/checkbox';
|
|
38
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
39
|
+
import * as i16 from '@angular/material/radio';
|
|
40
|
+
import { MatRadioModule } from '@angular/material/radio';
|
|
41
|
+
import * as i6$1 from '@angular/material/divider';
|
|
42
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
43
|
+
import { MatExpansionModule } from '@angular/material/expansion';
|
|
44
|
+
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
45
|
+
import { MatChipsModule } from '@angular/material/chips';
|
|
46
|
+
import { MatListModule } from '@angular/material/list';
|
|
47
|
+
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
48
|
+
import { MatTreeModule } from '@angular/material/tree';
|
|
49
|
+
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
50
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
51
|
+
import { MatCardModule } from '@angular/material/card';
|
|
52
|
+
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
53
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
54
|
+
|
|
55
|
+
class UserListConfirmDialogComponent {
|
|
56
|
+
constructor(dialogRef, data) {
|
|
57
|
+
this.dialogRef = dialogRef;
|
|
58
|
+
this.data = data;
|
|
59
|
+
this.confirmButtonText = 'OK';
|
|
60
|
+
this.message = '';
|
|
61
|
+
this.title = '';
|
|
62
|
+
}
|
|
63
|
+
ngOnInit() {
|
|
64
|
+
this.confirmButtonText = this.data.confirmButtonText || '';
|
|
65
|
+
this.message = this.data.message || '';
|
|
66
|
+
this.title = this.data.title || '';
|
|
67
|
+
}
|
|
68
|
+
onClose(val) {
|
|
69
|
+
this.dialogRef.close(val);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
UserListConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserListConfirmDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
73
|
+
UserListConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UserListConfirmDialogComponent, selector: "app-info-dialog", ngImport: i0, template: "<div id=\"info-dialog\" class=\"app-dialog\" aria-labelledby=\"info-dialog-label\" role=\"dialog\">\r\n <h3 *ngIf=\"title\" class=\"app-dialog-title\">{{title}}</h3>\r\n <div mat-dialog-content *ngIf=\"message\" class=\"app-dialog-content\">\r\n <div class=\"move_user_popup_icon\"></div>\r\n <div class=\"dialog-content-message\" [innerHTML]=\"message\"></div>\r\n </div>\r\n <div mat-dialog-actions class=\"flex-gap-container\">\r\n <button class=\"app-dialog-button app-dialog-cancel-button\" (click)=\"onClose(false)\">\r\n Cancel\r\n </button>\r\n <button class=\"app-dialog-button app-dialog-confirm-button\" (click)=\"onClose(true)\">\r\n {{confirmButtonText}}\r\n </button>\r\n </div>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap\";#info-dialog{min-height:150px;width:400px;box-sizing:border-box;position:relative;padding:0 0 30px}#info-dialog .fa{font-size:35px;margin:0 auto 20px;display:block;text-align:center;color:#009fdb;cursor:default}.scroll-content{overflow-y:auto;margin:auto;max-height:150px;width:100%}.app-dialog{font-family:Inter,Inter,sans-serif}.app-dialog .app-dialog-title{text-align:center;font-weight:600;font-size:16px;font-family:Inter,Inter,sans-serif;margin:0 0 24px}.app-dialog .flex-gap-container{gap:16px;position:absolute;right:0;gap:15px;display:flex}.app-dialog .app-dialog-content{color:#000000b3;font-size:14px;margin:0 auto 15px}.move_user_popup_icon{display:block;height:30xp;margin:auto}.mat-dialog-actions{margin:0;bottom:-20px}.dialog-content-message{font-weight:500}.dialog-content-message p{padding:15px 0 0}.mat-dialog-content{padding:0}.app-dialog-button{height:32px;padding:10px 12px;text-align:center;border-radius:50px;box-shadow:none;line-height:11px;border:none;font-size:14px;font-family:Inter,Inter,sans-serif;cursor:pointer}.app-dialog-cancel-button{border:1px solid rgba(0,0,0,.5);color:#000;background:white}.app-dialog-confirm-button{background:black;color:#fff}.move_user_popup_icon{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%22170%22 height%3D%2292%22 viewBox%3D%220 0 170 92%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cg clip-path%3D%22url(%23clip0_1542_78221)%22%3E%0D%3Cpath d%3D%22M110.843 14.284C112.49 18.534 116.58 23.8465 122.052 23.8465C133.74 23.8465 141.177 6.31523 144.737 2.96836M103.99 17.6309C104.096 18.1621 104.521 18.534 105.052 18.534H107.337C107.868 18.534 108.293 18.1621 108.399 17.6309L108.718 15.8246C109.568 15.4527 110.312 14.9215 110.896 14.2309C111.321 13.7527 111.693 13.1684 111.958 12.5309L113.765 12.2121C114.296 12.1059 114.668 11.6809 114.668 11.1496V8.70586C114.668 8.17461 114.296 7.74961 113.765 7.64336L111.958 7.32461C111.321 5.89023 110.152 4.72148 108.718 4.08398L108.399 2.27773C108.293 1.74648 107.868 1.37461 107.337 1.37461H104.893C104.362 1.37461 103.937 1.74648 103.83 2.27773L103.512 4.08398C102.077 4.72148 100.908 5.89023 100.271 7.32461L98.4646 7.64336C97.9334 7.74961 97.5615 8.17461 97.5615 8.70586V11.6809C97.5615 12.2121 97.9334 12.6371 98.4646 12.7434L99.899 12.9559C100.43 13.0621 100.802 13.4871 100.802 14.0184V16.4621C100.802 16.9934 100.43 17.4184 99.899 17.5246L97.349 17.9496C96.9772 18.0027 96.6584 18.2684 96.499 18.6402C96.0209 20.1809 95.1709 21.5621 94.1084 22.7309C93.8428 22.9965 93.7897 23.4215 93.8959 23.7934L94.799 26.184C94.9584 26.6621 94.799 27.1934 94.3209 27.459L92.1959 28.6809C91.7709 28.9465 91.1865 28.8402 90.8678 28.4152L89.2209 26.4496C88.9553 26.1309 88.5834 26.0246 88.2115 26.0777C87.4678 26.2371 86.6709 26.3434 85.874 26.3434C85.0771 26.3434 84.2803 26.2371 83.5365 26.0777C83.1647 25.9715 82.7396 26.1309 82.5271 26.4496L80.8803 28.4152C80.5615 28.8402 79.9772 28.8934 79.5522 28.6809L77.4272 27.459C77.0022 27.1934 76.7897 26.6621 76.949 26.184L77.8522 23.7934C78.0115 23.4215 77.9053 22.9965 77.6396 22.7309C76.5771 21.5621 75.7803 20.1809 75.249 18.6402C75.1428 18.2684 74.824 18.0027 74.399 17.9496L71.849 17.5246C71.3178 17.4184 70.9459 16.9934 70.9459 16.4621V14.0184C70.9459 13.4871 71.3178 13.0621 71.849 12.9559L74.399 12.5309C74.7709 12.4777 75.0896 12.2121 75.249 11.8402C75.7271 10.2996 76.5771 8.91836 77.6396 7.74961C77.9053 7.48398 77.9584 7.05898 77.8522 6.68711L76.949 4.29648C76.7897 3.81836 76.949 3.28711 77.4272 3.02148L79.5522 1.79961C79.9772 1.53398 80.5615 1.64023 80.8803 2.06523L82.5271 4.03086C82.7928 4.34961 83.1647 4.45586 83.5365 4.40273C84.2803 4.24336 85.0771 4.13711 85.874 4.13711C86.6709 4.13711 87.4678 4.24336 88.2115 4.40273C88.5834 4.50898 89.0084 4.34961 89.2209 4.03086L90.8678 2.06523C91.1865 1.64023 91.7709 1.58711 92.1959 1.79961L94.3209 3.02148C94.7459 3.28711 94.9584 3.81836 94.799 4.29648L94.0022 6.68711C93.8959 7.05898 94.0022 7.48398 94.2678 7.74961M38.0615 85.4184H31.6865V55.6684C29.5084 55.6684 27.3303 54.8184 25.6834 53.1715C24.0365 51.5246 23.1865 49.3465 23.1865 47.1684H10.4365L18.9365 30.1684L25.6834 41.1652C28.9771 37.8715 34.3959 37.8715 37.6896 41.1652C40.8771 44.3527 40.9834 49.4527 38.0615 52.7996C37.849 53.0121 37.849 53.3309 38.0615 53.5434L47.5178 62.9996C46.0303 65.4434 46.349 68.684 48.474 70.809C49.2709 71.6059 50.2803 72.1902 51.3428 72.4559L51.9803 74.9527C52.2459 76.0152 53.7865 76.0152 54.0522 74.9527L54.6897 72.4559C55.9115 72.1371 57.0272 71.4465 57.8772 70.4371C59.8428 68.0996 59.8959 64.5934 57.9303 62.2559C55.8584 59.759 52.299 59.2809 49.6959 60.8746L42.1521 53.3309M59.3115 82.2309H57.1865V80.1059C57.1865 79.5215 56.7084 79.0434 56.124 79.0434H49.749C49.1646 79.0434 48.6865 79.5215 48.6865 80.1059V82.2309H47.624C47.0396 82.2309 46.5615 82.709 46.5615 83.2934V84.3559C46.5615 84.9402 47.0396 85.4184 47.624 85.4184H82.6865C84.4396 85.4184 85.874 86.8527 85.874 88.6059C85.874 90.4121 84.2272 91.7934 82.3678 91.7934C75.4615 91.634 69.9365 86.0027 69.9365 79.0434C69.9365 74.2621 69.9365 72.6684 69.9365 72.6684H66.749C66.1646 72.6684 65.6865 72.1902 65.6865 71.6059V56.7309C65.6865 56.1465 66.1646 55.6684 66.749 55.6684H69.9365C69.9365 53.0121 68.874 52.4809 68.874 50.3559C68.874 48.6027 70.3084 47.1684 72.0615 47.1684C73.8146 47.1684 75.249 48.6027 75.249 50.3559C75.249 52.4809 74.1865 53.0121 74.1865 55.6684H92.249C92.8334 55.6684 93.3115 56.1465 93.3115 56.7309V71.6059C93.3115 72.1902 92.8334 72.6684 92.249 72.6684H89.0615C89.0615 74.4215 87.6271 75.8559 85.874 75.8559C84.1209 75.8559 82.6865 74.4215 82.6865 72.6684C82.6865 70.9152 84.1209 69.4809 85.874 69.4809V26.4496M60.374 78.5121L62.499 76.9184M58.249 75.8559L59.3115 73.1996M68.874 59.9184H75.249M68.874 63.1059H75.249M68.874 66.2934H75.249M135.333 77.4496L127.683 85.0996C127.471 85.3121 127.205 85.4184 126.94 85.4184H100.802C100.218 85.4184 99.7397 84.9402 99.7397 84.3559V35.4809C99.7397 34.8965 100.218 34.4184 100.802 34.4184H136.927C137.512 34.4184 137.99 34.8965 137.99 35.4809V62.0434H132.943C132.199 62.0434 131.615 62.6277 131.615 63.3715C131.615 64.1152 132.199 64.6996 132.943 64.6996H149.412C150.155 64.6996 150.74 64.1152 150.74 63.3715C150.74 62.6277 150.155 62.0434 149.412 62.0434H142.24M126.249 81.6996V74.7934C126.249 74.209 126.727 73.7309 127.312 73.7309H136.874C137.458 73.7309 137.937 73.2527 137.937 72.6684V68.4184M103.937 44.9902L105.371 43.5559C106.646 42.2809 108.877 43.184 108.877 44.9902C108.877 46.7965 111.108 47.7527 112.383 46.4246L115.305 43.5027C116.58 42.2277 118.812 43.1309 118.812 44.9371C118.812 46.7434 121.043 47.6996 122.318 46.3715L125.24 43.4496C126.515 42.1746 128.746 43.0777 128.746 44.884C128.746 46.6902 130.977 47.6465 132.252 46.3184L133.687 44.884M103.937 54.5527L105.371 53.1184C106.646 51.8434 108.877 52.7465 108.877 54.5527C108.877 56.359 111.108 57.3152 112.383 55.9871L115.305 53.0652C116.58 51.7902 118.812 52.6934 118.812 54.4996C118.812 56.3059 121.043 57.2621 122.318 55.934L125.24 53.0121C126.515 51.7371 128.746 52.6402 128.746 54.4465C128.746 56.2527 130.977 57.209 132.252 55.8809L133.687 54.4465M103.937 64.1152L105.371 62.6809C106.646 61.4059 108.877 62.309 108.877 64.1152C108.877 65.9215 111.108 66.8777 112.383 65.5496L115.305 62.6277C116.58 61.3527 118.812 62.2559 118.812 64.0621C118.812 65.8684 121.043 66.8246 122.318 65.4965L123.699 64.1152M148.562 64.6996V66.2934C148.562 66.8777 148.083 67.3559 147.499 67.3559H143.249M131.562 63.4246H129.437M150.687 8.91836L142.505 17.0996C142.293 17.3121 142.187 17.5777 142.187 17.8434V62.0434M148.03 17.0465C148.88 17.3121 149.783 17.4715 150.687 17.4715C152.865 17.4715 155.043 16.6215 156.69 14.9746C159.983 11.6809 159.983 6.26211 156.69 2.96836C153.396 -0.325391 147.977 -0.325391 144.683 2.96836C143.037 4.61523 142.187 6.79336 142.187 8.97148C142.187 11.1496 143.037 13.3277 144.683 14.9746M92.249 15.2934C92.249 18.8142 89.3948 21.6684 85.874 21.6684C82.3532 21.6684 79.499 18.8142 79.499 15.2934C79.499 11.7725 82.3532 8.91836 85.874 8.91836C89.3948 8.91836 92.249 11.7725 92.249 15.2934ZM108.187 9.98086C108.187 11.1545 107.235 12.1059 106.062 12.1059C104.888 12.1059 103.937 11.1545 103.937 9.98086C103.937 8.80725 104.888 7.85586 106.062 7.85586C107.235 7.85586 108.187 8.80725 108.187 9.98086Z%22 stroke%3D%22url(%23paint0_linear_1542_78221)%22 stroke-width%3D%221.5%22 stroke-miterlimit%3D%2210%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%0D%3C%2Fg%3E%0D%3Cdefs%3E%0D%3ClinearGradient id%3D%22paint0_linear_1542_78221%22 x1%3D%2284.7982%22 y1%3D%220.498047%22 x2%3D%2284.7982%22 y2%3D%2291.7934%22 gradientUnits%3D%22userSpaceOnUse%22%3E%0D%3Cstop stop-color%3D%22%2393C437%22%2F%3E%0D%3Cstop offset%3D%221%22 stop-color%3D%22%23279BE8%22%2F%3E%0D%3C%2FlinearGradient%3E%0D%3CclipPath id%3D%22clip0_1542_78221%22%3E%0D%3Crect width%3D%22170%22 height%3D%2292%22 fill%3D%22white%22%2F%3E%0D%3C%2FclipPath%3E%0D%3C%2Fdefs%3E%0D%3C%2Fsvg%3E%0D\");display:block;height:100px;margin:auto;background-repeat:no-repeat;background-position:center}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserListConfirmDialogComponent, decorators: [{
|
|
75
|
+
type: Component,
|
|
76
|
+
args: [{ selector: 'app-info-dialog', encapsulation: ViewEncapsulation.None, template: "<div id=\"info-dialog\" class=\"app-dialog\" aria-labelledby=\"info-dialog-label\" role=\"dialog\">\r\n <h3 *ngIf=\"title\" class=\"app-dialog-title\">{{title}}</h3>\r\n <div mat-dialog-content *ngIf=\"message\" class=\"app-dialog-content\">\r\n <div class=\"move_user_popup_icon\"></div>\r\n <div class=\"dialog-content-message\" [innerHTML]=\"message\"></div>\r\n </div>\r\n <div mat-dialog-actions class=\"flex-gap-container\">\r\n <button class=\"app-dialog-button app-dialog-cancel-button\" (click)=\"onClose(false)\">\r\n Cancel\r\n </button>\r\n <button class=\"app-dialog-button app-dialog-confirm-button\" (click)=\"onClose(true)\">\r\n {{confirmButtonText}}\r\n </button>\r\n </div>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap\";#info-dialog{min-height:150px;width:400px;box-sizing:border-box;position:relative;padding:0 0 30px}#info-dialog .fa{font-size:35px;margin:0 auto 20px;display:block;text-align:center;color:#009fdb;cursor:default}.scroll-content{overflow-y:auto;margin:auto;max-height:150px;width:100%}.app-dialog{font-family:Inter,Inter,sans-serif}.app-dialog .app-dialog-title{text-align:center;font-weight:600;font-size:16px;font-family:Inter,Inter,sans-serif;margin:0 0 24px}.app-dialog .flex-gap-container{gap:16px;position:absolute;right:0;gap:15px;display:flex}.app-dialog .app-dialog-content{color:#000000b3;font-size:14px;margin:0 auto 15px}.move_user_popup_icon{display:block;height:30xp;margin:auto}.mat-dialog-actions{margin:0;bottom:-20px}.dialog-content-message{font-weight:500}.dialog-content-message p{padding:15px 0 0}.mat-dialog-content{padding:0}.app-dialog-button{height:32px;padding:10px 12px;text-align:center;border-radius:50px;box-shadow:none;line-height:11px;border:none;font-size:14px;font-family:Inter,Inter,sans-serif;cursor:pointer}.app-dialog-cancel-button{border:1px solid rgba(0,0,0,.5);color:#000;background:white}.app-dialog-confirm-button{background:black;color:#fff}.move_user_popup_icon{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%22170%22 height%3D%2292%22 viewBox%3D%220 0 170 92%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cg clip-path%3D%22url(%23clip0_1542_78221)%22%3E%0D%3Cpath d%3D%22M110.843 14.284C112.49 18.534 116.58 23.8465 122.052 23.8465C133.74 23.8465 141.177 6.31523 144.737 2.96836M103.99 17.6309C104.096 18.1621 104.521 18.534 105.052 18.534H107.337C107.868 18.534 108.293 18.1621 108.399 17.6309L108.718 15.8246C109.568 15.4527 110.312 14.9215 110.896 14.2309C111.321 13.7527 111.693 13.1684 111.958 12.5309L113.765 12.2121C114.296 12.1059 114.668 11.6809 114.668 11.1496V8.70586C114.668 8.17461 114.296 7.74961 113.765 7.64336L111.958 7.32461C111.321 5.89023 110.152 4.72148 108.718 4.08398L108.399 2.27773C108.293 1.74648 107.868 1.37461 107.337 1.37461H104.893C104.362 1.37461 103.937 1.74648 103.83 2.27773L103.512 4.08398C102.077 4.72148 100.908 5.89023 100.271 7.32461L98.4646 7.64336C97.9334 7.74961 97.5615 8.17461 97.5615 8.70586V11.6809C97.5615 12.2121 97.9334 12.6371 98.4646 12.7434L99.899 12.9559C100.43 13.0621 100.802 13.4871 100.802 14.0184V16.4621C100.802 16.9934 100.43 17.4184 99.899 17.5246L97.349 17.9496C96.9772 18.0027 96.6584 18.2684 96.499 18.6402C96.0209 20.1809 95.1709 21.5621 94.1084 22.7309C93.8428 22.9965 93.7897 23.4215 93.8959 23.7934L94.799 26.184C94.9584 26.6621 94.799 27.1934 94.3209 27.459L92.1959 28.6809C91.7709 28.9465 91.1865 28.8402 90.8678 28.4152L89.2209 26.4496C88.9553 26.1309 88.5834 26.0246 88.2115 26.0777C87.4678 26.2371 86.6709 26.3434 85.874 26.3434C85.0771 26.3434 84.2803 26.2371 83.5365 26.0777C83.1647 25.9715 82.7396 26.1309 82.5271 26.4496L80.8803 28.4152C80.5615 28.8402 79.9772 28.8934 79.5522 28.6809L77.4272 27.459C77.0022 27.1934 76.7897 26.6621 76.949 26.184L77.8522 23.7934C78.0115 23.4215 77.9053 22.9965 77.6396 22.7309C76.5771 21.5621 75.7803 20.1809 75.249 18.6402C75.1428 18.2684 74.824 18.0027 74.399 17.9496L71.849 17.5246C71.3178 17.4184 70.9459 16.9934 70.9459 16.4621V14.0184C70.9459 13.4871 71.3178 13.0621 71.849 12.9559L74.399 12.5309C74.7709 12.4777 75.0896 12.2121 75.249 11.8402C75.7271 10.2996 76.5771 8.91836 77.6396 7.74961C77.9053 7.48398 77.9584 7.05898 77.8522 6.68711L76.949 4.29648C76.7897 3.81836 76.949 3.28711 77.4272 3.02148L79.5522 1.79961C79.9772 1.53398 80.5615 1.64023 80.8803 2.06523L82.5271 4.03086C82.7928 4.34961 83.1647 4.45586 83.5365 4.40273C84.2803 4.24336 85.0771 4.13711 85.874 4.13711C86.6709 4.13711 87.4678 4.24336 88.2115 4.40273C88.5834 4.50898 89.0084 4.34961 89.2209 4.03086L90.8678 2.06523C91.1865 1.64023 91.7709 1.58711 92.1959 1.79961L94.3209 3.02148C94.7459 3.28711 94.9584 3.81836 94.799 4.29648L94.0022 6.68711C93.8959 7.05898 94.0022 7.48398 94.2678 7.74961M38.0615 85.4184H31.6865V55.6684C29.5084 55.6684 27.3303 54.8184 25.6834 53.1715C24.0365 51.5246 23.1865 49.3465 23.1865 47.1684H10.4365L18.9365 30.1684L25.6834 41.1652C28.9771 37.8715 34.3959 37.8715 37.6896 41.1652C40.8771 44.3527 40.9834 49.4527 38.0615 52.7996C37.849 53.0121 37.849 53.3309 38.0615 53.5434L47.5178 62.9996C46.0303 65.4434 46.349 68.684 48.474 70.809C49.2709 71.6059 50.2803 72.1902 51.3428 72.4559L51.9803 74.9527C52.2459 76.0152 53.7865 76.0152 54.0522 74.9527L54.6897 72.4559C55.9115 72.1371 57.0272 71.4465 57.8772 70.4371C59.8428 68.0996 59.8959 64.5934 57.9303 62.2559C55.8584 59.759 52.299 59.2809 49.6959 60.8746L42.1521 53.3309M59.3115 82.2309H57.1865V80.1059C57.1865 79.5215 56.7084 79.0434 56.124 79.0434H49.749C49.1646 79.0434 48.6865 79.5215 48.6865 80.1059V82.2309H47.624C47.0396 82.2309 46.5615 82.709 46.5615 83.2934V84.3559C46.5615 84.9402 47.0396 85.4184 47.624 85.4184H82.6865C84.4396 85.4184 85.874 86.8527 85.874 88.6059C85.874 90.4121 84.2272 91.7934 82.3678 91.7934C75.4615 91.634 69.9365 86.0027 69.9365 79.0434C69.9365 74.2621 69.9365 72.6684 69.9365 72.6684H66.749C66.1646 72.6684 65.6865 72.1902 65.6865 71.6059V56.7309C65.6865 56.1465 66.1646 55.6684 66.749 55.6684H69.9365C69.9365 53.0121 68.874 52.4809 68.874 50.3559C68.874 48.6027 70.3084 47.1684 72.0615 47.1684C73.8146 47.1684 75.249 48.6027 75.249 50.3559C75.249 52.4809 74.1865 53.0121 74.1865 55.6684H92.249C92.8334 55.6684 93.3115 56.1465 93.3115 56.7309V71.6059C93.3115 72.1902 92.8334 72.6684 92.249 72.6684H89.0615C89.0615 74.4215 87.6271 75.8559 85.874 75.8559C84.1209 75.8559 82.6865 74.4215 82.6865 72.6684C82.6865 70.9152 84.1209 69.4809 85.874 69.4809V26.4496M60.374 78.5121L62.499 76.9184M58.249 75.8559L59.3115 73.1996M68.874 59.9184H75.249M68.874 63.1059H75.249M68.874 66.2934H75.249M135.333 77.4496L127.683 85.0996C127.471 85.3121 127.205 85.4184 126.94 85.4184H100.802C100.218 85.4184 99.7397 84.9402 99.7397 84.3559V35.4809C99.7397 34.8965 100.218 34.4184 100.802 34.4184H136.927C137.512 34.4184 137.99 34.8965 137.99 35.4809V62.0434H132.943C132.199 62.0434 131.615 62.6277 131.615 63.3715C131.615 64.1152 132.199 64.6996 132.943 64.6996H149.412C150.155 64.6996 150.74 64.1152 150.74 63.3715C150.74 62.6277 150.155 62.0434 149.412 62.0434H142.24M126.249 81.6996V74.7934C126.249 74.209 126.727 73.7309 127.312 73.7309H136.874C137.458 73.7309 137.937 73.2527 137.937 72.6684V68.4184M103.937 44.9902L105.371 43.5559C106.646 42.2809 108.877 43.184 108.877 44.9902C108.877 46.7965 111.108 47.7527 112.383 46.4246L115.305 43.5027C116.58 42.2277 118.812 43.1309 118.812 44.9371C118.812 46.7434 121.043 47.6996 122.318 46.3715L125.24 43.4496C126.515 42.1746 128.746 43.0777 128.746 44.884C128.746 46.6902 130.977 47.6465 132.252 46.3184L133.687 44.884M103.937 54.5527L105.371 53.1184C106.646 51.8434 108.877 52.7465 108.877 54.5527C108.877 56.359 111.108 57.3152 112.383 55.9871L115.305 53.0652C116.58 51.7902 118.812 52.6934 118.812 54.4996C118.812 56.3059 121.043 57.2621 122.318 55.934L125.24 53.0121C126.515 51.7371 128.746 52.6402 128.746 54.4465C128.746 56.2527 130.977 57.209 132.252 55.8809L133.687 54.4465M103.937 64.1152L105.371 62.6809C106.646 61.4059 108.877 62.309 108.877 64.1152C108.877 65.9215 111.108 66.8777 112.383 65.5496L115.305 62.6277C116.58 61.3527 118.812 62.2559 118.812 64.0621C118.812 65.8684 121.043 66.8246 122.318 65.4965L123.699 64.1152M148.562 64.6996V66.2934C148.562 66.8777 148.083 67.3559 147.499 67.3559H143.249M131.562 63.4246H129.437M150.687 8.91836L142.505 17.0996C142.293 17.3121 142.187 17.5777 142.187 17.8434V62.0434M148.03 17.0465C148.88 17.3121 149.783 17.4715 150.687 17.4715C152.865 17.4715 155.043 16.6215 156.69 14.9746C159.983 11.6809 159.983 6.26211 156.69 2.96836C153.396 -0.325391 147.977 -0.325391 144.683 2.96836C143.037 4.61523 142.187 6.79336 142.187 8.97148C142.187 11.1496 143.037 13.3277 144.683 14.9746M92.249 15.2934C92.249 18.8142 89.3948 21.6684 85.874 21.6684C82.3532 21.6684 79.499 18.8142 79.499 15.2934C79.499 11.7725 82.3532 8.91836 85.874 8.91836C89.3948 8.91836 92.249 11.7725 92.249 15.2934ZM108.187 9.98086C108.187 11.1545 107.235 12.1059 106.062 12.1059C104.888 12.1059 103.937 11.1545 103.937 9.98086C103.937 8.80725 104.888 7.85586 106.062 7.85586C107.235 7.85586 108.187 8.80725 108.187 9.98086Z%22 stroke%3D%22url(%23paint0_linear_1542_78221)%22 stroke-width%3D%221.5%22 stroke-miterlimit%3D%2210%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%0D%3C%2Fg%3E%0D%3Cdefs%3E%0D%3ClinearGradient id%3D%22paint0_linear_1542_78221%22 x1%3D%2284.7982%22 y1%3D%220.498047%22 x2%3D%2284.7982%22 y2%3D%2291.7934%22 gradientUnits%3D%22userSpaceOnUse%22%3E%0D%3Cstop stop-color%3D%22%2393C437%22%2F%3E%0D%3Cstop offset%3D%221%22 stop-color%3D%22%23279BE8%22%2F%3E%0D%3C%2FlinearGradient%3E%0D%3CclipPath id%3D%22clip0_1542_78221%22%3E%0D%3Crect width%3D%22170%22 height%3D%2292%22 fill%3D%22white%22%2F%3E%0D%3C%2FclipPath%3E%0D%3C%2Fdefs%3E%0D%3C%2Fsvg%3E%0D\");display:block;height:100px;margin:auto;background-repeat:no-repeat;background-position:center}\n"] }]
|
|
77
|
+
}], ctorParameters: function () {
|
|
78
|
+
return [{ type: i1.MatDialogRef }, { type: InfoDialogConfig, decorators: [{
|
|
79
|
+
type: Inject,
|
|
80
|
+
args: [MAT_DIALOG_DATA]
|
|
81
|
+
}] }];
|
|
82
|
+
} });
|
|
83
|
+
class InfoDialogConfig {
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const getSavableData = (model, exclude) => {
|
|
87
|
+
let result = Object.keys(model);
|
|
88
|
+
if (exclude && exclude.length) {
|
|
89
|
+
result = result.filter(key => !exclude.some(item => item === key));
|
|
90
|
+
}
|
|
91
|
+
return result.reduce((result, key) => {
|
|
92
|
+
if (model[key] instanceof Array && model[key].length && model[key][0].getSavableData) {
|
|
93
|
+
result[key] = model[key].map((item) => item.getSavableData());
|
|
94
|
+
}
|
|
95
|
+
else if (model[key] instanceof Object && model[key].getSavableData) {
|
|
96
|
+
result[key] = model[key].getSavableData();
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
result[key] = model[key];
|
|
100
|
+
}
|
|
101
|
+
return result;
|
|
102
|
+
}, {});
|
|
103
|
+
};
|
|
104
|
+
const filterOptions = (options, query, shownValue, field) => {
|
|
105
|
+
if (!options) {
|
|
106
|
+
return [];
|
|
107
|
+
}
|
|
108
|
+
if (!query) {
|
|
109
|
+
return options;
|
|
110
|
+
}
|
|
111
|
+
return options.filter(option => {
|
|
112
|
+
return (field ? String(option[field]).toLowerCase().includes(String(query).toLowerCase()) :
|
|
113
|
+
String(option).toLowerCase().includes(String(query).toLowerCase()) ||
|
|
114
|
+
(shownValue && shownValue === option));
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const API = {
|
|
119
|
+
USER_TOKEN: '/api/provision/:siteId/users/:userId/token',
|
|
120
|
+
UPDATE_USER_FIELDS: '/api/provision/:siteId/userFields/:token',
|
|
121
|
+
PERSIST_USER_CACHE: '/api/provision/:siteId/saveUser/:token',
|
|
122
|
+
USER_BY_ID: '/api/provision/:siteId/users/:userId',
|
|
123
|
+
QUICK_USERS_SEARCH: "/api/search/quickusers",
|
|
124
|
+
DELETE_USER: "/api/search/quickusers",
|
|
125
|
+
MOVE_USER: "/api/migration/webex/singlemigration/features/PERSON",
|
|
126
|
+
AVAILABLE_DN_IN_RANGES: "/api/sites/:siteId/available-dn-in-ranges",
|
|
127
|
+
DELETE_LINE: "/api/provision/:siteId/deleteLine/:pkid/:token",
|
|
128
|
+
DISASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/deleteLineAssociation/:linePkid/:token",
|
|
129
|
+
CHECK_DELETE_LINE: "/api/provision/:siteId/checklinedeletion",
|
|
130
|
+
ASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/createLineAssociation/:token",
|
|
131
|
+
CHECK_DESTINATION_NUMBER: "/api/provision/:siteId/check-dn",
|
|
132
|
+
UPDATE_LINE_FIELDS: "/api/provision/:siteId/lineFields/:pkid/:token",
|
|
133
|
+
UPDATE_DEVICE_FIELDS: "/api/provision/:siteId/deviceFields/:deviceName/:token",
|
|
134
|
+
WEBEX_USERS: "/api/webex/provisioning/customers/:customerId/users",
|
|
135
|
+
MIGRATED_USERS: "/api/search/migratedusers",
|
|
136
|
+
REVERT_WEBEX_USER: "/api/webex/provisioning/customers/:customerId/persons/:webexUUID/revertmigration",
|
|
137
|
+
PHONE_NUMBERS: "/api/search/webex/customers/:customerId/locations/:locationId/phonenumbers",
|
|
138
|
+
GET_LOCATIONS: "/api/search/webex/customers/:customerId/locations",
|
|
139
|
+
PREPARE_PERSON_MIGRATION: "/api/migration/webex/preparepersonmigration",
|
|
140
|
+
MIGRATION_FORM: "/api/search/webex/customers/:customerId/migrationforms/:formId",
|
|
141
|
+
START_MIGRATION: "/api/migration/webex/startpersonmigration"
|
|
142
|
+
};
|
|
143
|
+
const REGEX_PATTERN = {
|
|
144
|
+
EMAIL: '^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))' +
|
|
145
|
+
'@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])' +
|
|
146
|
+
'?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])?)*$'
|
|
147
|
+
};
|
|
148
|
+
const PAGINATION_DEFAULTS = {
|
|
149
|
+
SIZE: 10,
|
|
150
|
+
INDEX: 0
|
|
151
|
+
};
|
|
152
|
+
const PAGINATION_SIZE_OPTIONS = [
|
|
153
|
+
10,
|
|
154
|
+
50,
|
|
155
|
+
100,
|
|
156
|
+
500
|
|
157
|
+
];
|
|
158
|
+
const CUCS_TO_IGNORE = [
|
|
159
|
+
189,
|
|
160
|
+
194,
|
|
161
|
+
191,
|
|
162
|
+
190
|
|
163
|
+
];
|
|
164
|
+
const CUCMS_TO_IGNORE = [
|
|
165
|
+
249,
|
|
166
|
+
255,
|
|
167
|
+
251,
|
|
168
|
+
250
|
|
169
|
+
];
|
|
170
|
+
const MAX_INTEGER = 2147483647;
|
|
171
|
+
|
|
172
|
+
class SimplifiedUser {
|
|
173
|
+
constructor(user) {
|
|
174
|
+
if (user) {
|
|
175
|
+
this.userid = user.userid;
|
|
176
|
+
this.email = user.email;
|
|
177
|
+
this.firstName = user.firstName;
|
|
178
|
+
this.lastName = user.lastName;
|
|
179
|
+
this.token = user.token;
|
|
180
|
+
}
|
|
181
|
+
this.initForm();
|
|
182
|
+
}
|
|
183
|
+
initForm() {
|
|
184
|
+
const formBuilder = new FormBuilder();
|
|
185
|
+
const formSettings = {
|
|
186
|
+
userid: [{ value: this.userid || '', disabled: true }, [Validators.required, Validators.maxLength(128)]],
|
|
187
|
+
email: [{ value: this.email || '', disabled: true }, [
|
|
188
|
+
Validators.pattern(REGEX_PATTERN.EMAIL),
|
|
189
|
+
Validators.required
|
|
190
|
+
]],
|
|
191
|
+
firstName: [{ value: this.firstName || '', disabled: true }],
|
|
192
|
+
lastName: [{ value: this.lastName || '', disabled: true }, Validators.required],
|
|
193
|
+
};
|
|
194
|
+
this.form = formBuilder.group(formSettings);
|
|
195
|
+
}
|
|
196
|
+
toggleEditMode() {
|
|
197
|
+
this.editMode = !this.editMode;
|
|
198
|
+
['userid', 'email', 'firstName', 'lastName'].forEach(token => {
|
|
199
|
+
var _a, _b;
|
|
200
|
+
if (this.editMode) {
|
|
201
|
+
(_a = this.form.get(token)) === null || _a === void 0 ? void 0 : _a.enable();
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
(_b = this.form.get(token)) === null || _b === void 0 ? void 0 : _b.disable();
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
getSavableData() {
|
|
209
|
+
const excludedFields = ['form', 'editMode', 'viewMode', 'token', 'hasModifiedCache'];
|
|
210
|
+
return getSavableData(this, excludedFields);
|
|
211
|
+
}
|
|
212
|
+
equal(userToCompare) {
|
|
213
|
+
if (!userToCompare) {
|
|
214
|
+
return false;
|
|
215
|
+
}
|
|
216
|
+
return JSON.stringify(this.getSavableData()) === JSON.stringify(userToCompare.getSavableData());
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
class UtilsService {
|
|
221
|
+
static sortSortArrayByProperty(array, sortBy) {
|
|
222
|
+
if (!array) {
|
|
223
|
+
return null;
|
|
224
|
+
}
|
|
225
|
+
return array.sort((a, b) => {
|
|
226
|
+
if (!a[sortBy] && !b[sortBy]) {
|
|
227
|
+
return 0;
|
|
228
|
+
}
|
|
229
|
+
if (a[sortBy] && !b[sortBy]) {
|
|
230
|
+
return 1;
|
|
231
|
+
}
|
|
232
|
+
if (!a[sortBy] && b[sortBy]) {
|
|
233
|
+
return -1;
|
|
234
|
+
}
|
|
235
|
+
const positionA = a[sortBy];
|
|
236
|
+
const positionB = b[sortBy];
|
|
237
|
+
return (positionA < positionB) ? -1 : (positionA > positionB) ? 1 : 0;
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
static diff(origObject, updatedObj, path, keysToIgnore) {
|
|
241
|
+
let result = [];
|
|
242
|
+
if (Object.is(origObject, updatedObj)) {
|
|
243
|
+
return undefined;
|
|
244
|
+
}
|
|
245
|
+
if (!updatedObj || typeof updatedObj !== 'object') {
|
|
246
|
+
return updatedObj;
|
|
247
|
+
}
|
|
248
|
+
const concat = Array.from(new Set([...Object.keys(origObject || {}), ...Object.keys(updatedObj || {})]));
|
|
249
|
+
const filter = keysToIgnore ? concat.filter(key => !keysToIgnore.includes(key)) : concat;
|
|
250
|
+
filter
|
|
251
|
+
.forEach(key => {
|
|
252
|
+
if (typeof updatedObj[key] === 'object' && typeof origObject[key] === 'object') {
|
|
253
|
+
if (UtilsService.differs(updatedObj[key], origObject[key])) {
|
|
254
|
+
const newPath = `${path}${path ? '.' : ''}${key}`;
|
|
255
|
+
const values = UtilsService.diff(origObject[key], updatedObj[key], newPath, keysToIgnore);
|
|
256
|
+
if (values !== undefined) {
|
|
257
|
+
result = [...result, ...values];
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
else if (updatedObj && !origObject || updatedObj[key] !== origObject[key] && !Object.is(origObject[key], updatedObj[key])) {
|
|
262
|
+
const value = updatedObj ? UtilsService.formatIfEmpty(updatedObj[key]) : null;
|
|
263
|
+
result.push(`${path}${path ? '.' : ''}${key}=${value}`);
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
return result;
|
|
267
|
+
}
|
|
268
|
+
static formatIfEmpty(value) {
|
|
269
|
+
if (value) {
|
|
270
|
+
return value;
|
|
271
|
+
}
|
|
272
|
+
switch (typeof value) {
|
|
273
|
+
case 'boolean':
|
|
274
|
+
return value;
|
|
275
|
+
case 'string':
|
|
276
|
+
return '';
|
|
277
|
+
default:
|
|
278
|
+
return null;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
static differs(obj1, obj2) {
|
|
282
|
+
return JSON.stringify(obj1) !== JSON.stringify(obj2);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
UtilsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
286
|
+
UtilsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsService });
|
|
287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsService, decorators: [{
|
|
288
|
+
type: Injectable
|
|
289
|
+
}] });
|
|
290
|
+
|
|
291
|
+
class APIService {
|
|
292
|
+
constructor(httpClient) {
|
|
293
|
+
this.httpClient = httpClient;
|
|
294
|
+
this.apiUrl = window.location.protocol + '//' + window.location.hostname + '/dcp';
|
|
295
|
+
}
|
|
296
|
+
fetch(url, params = {}, cache) {
|
|
297
|
+
const headers = this.getHeaders(cache);
|
|
298
|
+
return this.httpClient.get(this.apiUrl + url, { params: this.prepareEncodedParams(params), headers });
|
|
299
|
+
}
|
|
300
|
+
post(url, body, params = {}) {
|
|
301
|
+
body = body || null;
|
|
302
|
+
const headers = this.getHeaders();
|
|
303
|
+
return this.httpClient.post(this.apiUrl + url, body, { params: this.prepareEncodedParams(params), headers });
|
|
304
|
+
}
|
|
305
|
+
// use when response extended data is necessary:
|
|
306
|
+
postExtended(url, body = null, params = {}, headers = {}) {
|
|
307
|
+
headers = headers || this.getHeaders();
|
|
308
|
+
return this.httpClient.post(this.apiUrl + url, body, {
|
|
309
|
+
headers,
|
|
310
|
+
observe: 'response',
|
|
311
|
+
params: this.prepareEncodedParams(params)
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
put(url, body = null, params = {}) {
|
|
315
|
+
const headers = this.getHeaders();
|
|
316
|
+
return this.httpClient.put(this.apiUrl + url, body, { headers, params: this.prepareEncodedParams(params) });
|
|
317
|
+
}
|
|
318
|
+
delete(url, params = {}) {
|
|
319
|
+
const headers = this.getHeaders();
|
|
320
|
+
return this.httpClient.delete(this.apiUrl + url, { headers, params: this.prepareEncodedParams(params) });
|
|
321
|
+
}
|
|
322
|
+
fetchPagination(url, pageSize, pageNumber, additionalParams = {}, cache) {
|
|
323
|
+
const copyAdditionalParams = JSON.parse(JSON.stringify(additionalParams));
|
|
324
|
+
const params = Object.assign(copyAdditionalParams, { size: pageSize.toString(), page: pageNumber.toString() });
|
|
325
|
+
return this.fetch(url, params, cache);
|
|
326
|
+
}
|
|
327
|
+
prepareEncodedParams(params) {
|
|
328
|
+
const result = {};
|
|
329
|
+
if (!params) {
|
|
330
|
+
return {};
|
|
331
|
+
}
|
|
332
|
+
for (const key of Object.keys(params)) {
|
|
333
|
+
if (params[key]) {
|
|
334
|
+
const stringParam = params[key].toString();
|
|
335
|
+
result[key] = stringParam.includes('+') ? encodeURIComponent(stringParam) : stringParam;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return result;
|
|
339
|
+
}
|
|
340
|
+
getHeaders(cache) {
|
|
341
|
+
let headers = new HttpHeaders();
|
|
342
|
+
if (cache) {
|
|
343
|
+
headers = headers.append('_Cache', 'true ');
|
|
344
|
+
}
|
|
345
|
+
const token = this.token || this.getParameterByName('token');
|
|
346
|
+
headers = headers.append('Authorization', 'Bearer ' + token);
|
|
347
|
+
return headers;
|
|
348
|
+
}
|
|
349
|
+
getParameterByName(name, url = window.location.href) {
|
|
350
|
+
name = name.replace(/[\[\]]/g, '\\$&');
|
|
351
|
+
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url);
|
|
352
|
+
if (!results)
|
|
353
|
+
return null;
|
|
354
|
+
if (!results[2])
|
|
355
|
+
return '';
|
|
356
|
+
return decodeURIComponent(results[2].replace(/\+/g, ' '));
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
APIService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
360
|
+
APIService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService });
|
|
361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, decorators: [{
|
|
362
|
+
type: Injectable
|
|
363
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
|
364
|
+
|
|
365
|
+
class ApiWebexService extends APIService {
|
|
366
|
+
constructor(httpClient) {
|
|
367
|
+
super(httpClient);
|
|
368
|
+
//this.apiUrl = window.location.protocol + "//"+ window.location.hostname + environment.apiAuthUrl;
|
|
369
|
+
this.apiUrl = 'https://webex.car-west.net/webex';
|
|
370
|
+
// this.apiUrl = 'https://staging.tuki.io/webex';
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
ApiWebexService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiWebexService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
374
|
+
ApiWebexService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiWebexService });
|
|
375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiWebexService, decorators: [{
|
|
376
|
+
type: Injectable
|
|
377
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
|
378
|
+
|
|
379
|
+
class UserService {
|
|
380
|
+
constructor(apiService, apiWebexService) {
|
|
381
|
+
this.apiService = apiService;
|
|
382
|
+
this.apiWebexService = apiWebexService;
|
|
383
|
+
this.siteId = -1;
|
|
384
|
+
this.userId = '';
|
|
385
|
+
this.userIdExistPending = false;
|
|
386
|
+
this.hasExistedUserId = false;
|
|
387
|
+
this.moveUserPending = false;
|
|
388
|
+
this.userMoved$ = new Subject();
|
|
389
|
+
}
|
|
390
|
+
ngOnInit() {
|
|
391
|
+
console.log(this.siteId);
|
|
392
|
+
}
|
|
393
|
+
fetchUserToken(siteId, userId) {
|
|
394
|
+
this.siteId = siteId;
|
|
395
|
+
this.userId = userId;
|
|
396
|
+
return this.apiService.fetch(API.USER_TOKEN.replace(':siteId', String(this.siteId)).replace(':userId', encodeURIComponent(encodeURIComponent(userId))))
|
|
397
|
+
.pipe(map((result) => {
|
|
398
|
+
const token = Object.keys(result)[0];
|
|
399
|
+
this.setSimplifiedUser(Object.values(result)[0], token);
|
|
400
|
+
}));
|
|
401
|
+
// .pipe(this.handleError(false, true));
|
|
402
|
+
}
|
|
403
|
+
updateUserFields(body) {
|
|
404
|
+
var _a;
|
|
405
|
+
if (!this.userId || !this.siteId || !((_a = this.user) === null || _a === void 0 ? void 0 : _a.token)) {
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
return this.apiService.post(API.UPDATE_USER_FIELDS.replace(':siteId', String(this.siteId)).replace(':token', this.user.token), body);
|
|
409
|
+
// .pipe(this.handleError(false, true));
|
|
410
|
+
}
|
|
411
|
+
moveUserToMT(customerId, user) {
|
|
412
|
+
// return new Observable<boolean>(observer => {
|
|
413
|
+
// setTimeout(() => {
|
|
414
|
+
// observer.next(true);
|
|
415
|
+
//
|
|
416
|
+
// }, 1000);
|
|
417
|
+
// });
|
|
418
|
+
return this.apiWebexService.post(API.MOVE_USER, this.getMoveUserBody(customerId, user));
|
|
419
|
+
// .pipe(this.handleError(true, true));
|
|
420
|
+
}
|
|
421
|
+
moveUserToDI(customerId, user) {
|
|
422
|
+
// return new Observable<boolean>(observer => {
|
|
423
|
+
// setTimeout(() => {
|
|
424
|
+
// observer.next(true);
|
|
425
|
+
//
|
|
426
|
+
// }, 1000);
|
|
427
|
+
// });
|
|
428
|
+
const URL = API.REVERT_WEBEX_USER.replace(':customerId', customerId).replace(':webexUUID', String(user.webexUUID));
|
|
429
|
+
return this.apiWebexService.post(URL, this.getMoveUserBody(customerId, user));
|
|
430
|
+
// .pipe(this.handleError(true, true));
|
|
431
|
+
}
|
|
432
|
+
getMoveUserBody(customerId, user) {
|
|
433
|
+
return {
|
|
434
|
+
customerId: customerId,
|
|
435
|
+
entities: {
|
|
436
|
+
PERSON: [{ cucmId: user.cucmId, entityId: user.userid }]
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
deleteUser(siteId, userId) {
|
|
441
|
+
return this.apiService.delete(API.DELETE_USER.replace(':siteId', String(siteId)).replace(':userId', encodeURIComponent(encodeURIComponent(userId))));
|
|
442
|
+
// .pipe(this.handleError(true, true));
|
|
443
|
+
}
|
|
444
|
+
fetchUserById(id) {
|
|
445
|
+
this.userIdExistPending = true;
|
|
446
|
+
return this.apiService.fetch(API.USER_BY_ID.replace(':siteId', String(this.siteId)).replace(':userId', encodeURIComponent(encodeURIComponent(id))))
|
|
447
|
+
.pipe(map(result => {
|
|
448
|
+
this.userIdExistPending = false;
|
|
449
|
+
return result;
|
|
450
|
+
}));
|
|
451
|
+
}
|
|
452
|
+
persistCacheChanges() {
|
|
453
|
+
const params = {
|
|
454
|
+
excludeDeviceExtraOptions: true
|
|
455
|
+
};
|
|
456
|
+
return this.processUserChangesToCache()
|
|
457
|
+
.pipe(map((result) => {
|
|
458
|
+
return this.apiService.post(API.PERSIST_USER_CACHE.replace(':siteId', String(this.siteId)).replace(':token', this.user.token), {}, params)
|
|
459
|
+
.subscribe(() => {
|
|
460
|
+
});
|
|
461
|
+
// .pipe(map((user) => {
|
|
462
|
+
// // this.setUser(user, false, this.user.token);
|
|
463
|
+
// this.user.hasModifiedCache = false;
|
|
464
|
+
// }))
|
|
465
|
+
// .pipe(this.handleError(true, true));
|
|
466
|
+
}));
|
|
467
|
+
}
|
|
468
|
+
processUserChangesToCache() {
|
|
469
|
+
const calls = [];
|
|
470
|
+
const body = UtilsService.diff(this.originUser.getSavableData(), this.user.getSavableData(), 'user');
|
|
471
|
+
if (body) {
|
|
472
|
+
calls.push(this.updateUserFields(body));
|
|
473
|
+
}
|
|
474
|
+
if (!(calls === null || calls === void 0 ? void 0 : calls.length)) {
|
|
475
|
+
return of(this.user);
|
|
476
|
+
}
|
|
477
|
+
return forkJoin(calls)
|
|
478
|
+
.pipe(map((responses) => {
|
|
479
|
+
// ApiUserResponse
|
|
480
|
+
this.handleSaveUserResponse(responses);
|
|
481
|
+
}));
|
|
482
|
+
// .pipe(this.handleError(false, true));
|
|
483
|
+
}
|
|
484
|
+
hasUnsavedChanges() {
|
|
485
|
+
return !this.user.equal(this.originUser);
|
|
486
|
+
}
|
|
487
|
+
setSimplifiedUser(user, token) {
|
|
488
|
+
this.user = new SimplifiedUser(user);
|
|
489
|
+
const copiedUser = JSON.parse(JSON.stringify(user));
|
|
490
|
+
this.originUser = new SimplifiedUser(copiedUser);
|
|
491
|
+
this.user.token = this.user.token || token;
|
|
492
|
+
this.originUser.token = this.originUser.token || token;
|
|
493
|
+
}
|
|
494
|
+
handleSaveUserResponse(responses) {
|
|
495
|
+
if (!(responses === null || responses === void 0 ? void 0 : responses.length)) {
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
for (let len = responses.length, i = len - 1; i >= 0; i--) {
|
|
499
|
+
if (responses[i] && responses[i].currentUpdatedUser) {
|
|
500
|
+
// this.setUser(responses[i].currentUpdatedUser, false, this.user.token);
|
|
501
|
+
this.user.hasModifiedCache = true;
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserService, deps: [{ token: APIService }, { token: ApiWebexService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
508
|
+
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserService });
|
|
509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserService, decorators: [{
|
|
510
|
+
type: Injectable
|
|
511
|
+
}], ctorParameters: function () { return [{ type: APIService }, { type: ApiWebexService }]; } });
|
|
512
|
+
|
|
513
|
+
const TTL_DEFAULT = 30000;
|
|
514
|
+
const TTL_LONG_DEFAULT = 45000;
|
|
515
|
+
var NotificationType;
|
|
516
|
+
(function (NotificationType) {
|
|
517
|
+
NotificationType["info"] = "info";
|
|
518
|
+
NotificationType["error"] = "error";
|
|
519
|
+
NotificationType["success"] = "success";
|
|
520
|
+
NotificationType["warning"] = "warning";
|
|
521
|
+
})(NotificationType || (NotificationType = {}));
|
|
522
|
+
class Notification {
|
|
523
|
+
constructor(data) {
|
|
524
|
+
this.ttl = TTL_DEFAULT;
|
|
525
|
+
Object.assign(this, data || {});
|
|
526
|
+
if (this.ttl === undefined) {
|
|
527
|
+
this.ttl = this.message && this.message.length && this.message.length < 80 ? TTL_DEFAULT : TTL_LONG_DEFAULT;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
isInfo() {
|
|
531
|
+
return this.type === NotificationType.info;
|
|
532
|
+
}
|
|
533
|
+
isError() {
|
|
534
|
+
return this.type === NotificationType.error;
|
|
535
|
+
}
|
|
536
|
+
isSuccess() {
|
|
537
|
+
return this.type === NotificationType.success;
|
|
538
|
+
}
|
|
539
|
+
isWarning() {
|
|
540
|
+
return this.type === NotificationType.warning;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
const SUCCESS_TIME = 5000;
|
|
545
|
+
const INACTIVE_SESSION_MESSAGE = 'Your session was lost due to inactivity. Please login again';
|
|
546
|
+
const INACTIVE_SESSION = 'SESSION_INACTIVE';
|
|
547
|
+
class NotificationService {
|
|
548
|
+
constructor() {
|
|
549
|
+
this.listChange = new Subject();
|
|
550
|
+
this.max = 0;
|
|
551
|
+
this.list = [];
|
|
552
|
+
}
|
|
553
|
+
error(message, ttl) {
|
|
554
|
+
this.notify('error', message, ttl);
|
|
555
|
+
}
|
|
556
|
+
success(message, ttl) {
|
|
557
|
+
this.notify('success', message, (!ttl) ? SUCCESS_TIME : ttl);
|
|
558
|
+
}
|
|
559
|
+
warning(message, ttl) {
|
|
560
|
+
this.notify('warning', message, ttl);
|
|
561
|
+
}
|
|
562
|
+
info(message, ttl) {
|
|
563
|
+
this.notify('info', message, ttl);
|
|
564
|
+
}
|
|
565
|
+
notify(type, message, ttl) {
|
|
566
|
+
const found = this.list.find((n) => n.message === message);
|
|
567
|
+
if (found) {
|
|
568
|
+
this.remove(found);
|
|
569
|
+
}
|
|
570
|
+
const notification = new Notification({
|
|
571
|
+
id: ++this.max,
|
|
572
|
+
type, message, ttl
|
|
573
|
+
});
|
|
574
|
+
if (notification.ttl > 0) {
|
|
575
|
+
notification.timerId = setTimeout(() => this.remove(notification, true), notification.ttl);
|
|
576
|
+
}
|
|
577
|
+
this.list.push(notification);
|
|
578
|
+
this.listChange.next(this.list);
|
|
579
|
+
}
|
|
580
|
+
remove(notification, auto) {
|
|
581
|
+
if (!auto && notification.timerId) {
|
|
582
|
+
// clear timeout in case of manual remove
|
|
583
|
+
clearInterval(notification.timerId);
|
|
584
|
+
}
|
|
585
|
+
this.list = this.list.filter(n => n.id !== notification.id);
|
|
586
|
+
this.listChange.next(this.list);
|
|
587
|
+
}
|
|
588
|
+
removeInactiveSessionError() {
|
|
589
|
+
if (!this.list || !this.list.length) {
|
|
590
|
+
return;
|
|
591
|
+
}
|
|
592
|
+
this.list = this.list.filter(n => n.message !== INACTIVE_SESSION_MESSAGE && n.message !== INACTIVE_SESSION);
|
|
593
|
+
this.listChange.next(this.list);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
597
|
+
NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService });
|
|
598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService, decorators: [{
|
|
599
|
+
type: Injectable
|
|
600
|
+
}], ctorParameters: function () { return []; } });
|
|
601
|
+
|
|
602
|
+
class ListUser {
|
|
603
|
+
constructor(user, roleName) {
|
|
604
|
+
this.devices = [];
|
|
605
|
+
this.deviceProfiles = [];
|
|
606
|
+
this.isMigrated = false;
|
|
607
|
+
if (user) {
|
|
608
|
+
Object.assign(this, user);
|
|
609
|
+
}
|
|
610
|
+
if (roleName) {
|
|
611
|
+
this.roleName = roleName;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
class RemoveKynFromIBMService {
|
|
617
|
+
constructor() {
|
|
618
|
+
}
|
|
619
|
+
removeCUCMS(date, customerId) {
|
|
620
|
+
if (customerId === 8) {
|
|
621
|
+
return date.filter((val) => !CUCMS_TO_IGNORE.includes(Math.round(val.cucmId)));
|
|
622
|
+
}
|
|
623
|
+
return date;
|
|
624
|
+
}
|
|
625
|
+
removeCUCS(date, customerId) {
|
|
626
|
+
if (customerId === 8) {
|
|
627
|
+
return date.filter((val) => !CUCS_TO_IGNORE.includes(Math.round(val.cucId)));
|
|
628
|
+
}
|
|
629
|
+
return date;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
RemoveKynFromIBMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
633
|
+
RemoveKynFromIBMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService });
|
|
634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService, decorators: [{
|
|
635
|
+
type: Injectable
|
|
636
|
+
}], ctorParameters: function () { return []; } });
|
|
637
|
+
|
|
638
|
+
class UsersSearchService {
|
|
639
|
+
constructor(apiService, webexApiService, removeKynFromIBMService) {
|
|
640
|
+
this.apiService = apiService;
|
|
641
|
+
this.webexApiService = webexApiService;
|
|
642
|
+
this.removeKynFromIBMService = removeKynFromIBMService;
|
|
643
|
+
this.siteId = -1;
|
|
644
|
+
this.userId = '';
|
|
645
|
+
this.userIdExistPending = false;
|
|
646
|
+
this.hasExistedUserId = false;
|
|
647
|
+
this.pageSize = PAGINATION_DEFAULTS.SIZE;
|
|
648
|
+
this.pageIndex = PAGINATION_DEFAULTS.SIZE;
|
|
649
|
+
this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
|
|
650
|
+
this.foundUsers$ = new BehaviorSubject(null);
|
|
651
|
+
}
|
|
652
|
+
getAllRegularUsers(searchParams) {
|
|
653
|
+
const params = searchParams || { customerid: this.customerId, siteid: this.siteId };
|
|
654
|
+
return this.apiService.fetchPagination(API.QUICK_USERS_SEARCH, MAX_INTEGER, 0, params)
|
|
655
|
+
.pipe(map((res) => {
|
|
656
|
+
var _a;
|
|
657
|
+
const users = res.pageData && res.pageData.length ? res.pageData
|
|
658
|
+
.map(user => new ListUser(user, user.webexUUID ? '' : 'Dedicated Instance Calling User')) : [];
|
|
659
|
+
if ((_a = this.migratedUsersIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
660
|
+
this.setMigratedPropToUsers(users);
|
|
661
|
+
}
|
|
662
|
+
return users;
|
|
663
|
+
}));
|
|
664
|
+
}
|
|
665
|
+
getPagination() {
|
|
666
|
+
return {
|
|
667
|
+
total: this.total,
|
|
668
|
+
pageSizeOptions: this.pageSizeOptions,
|
|
669
|
+
pageSize: this.pageSize,
|
|
670
|
+
pageIndex: this.pageIndex
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
setDefaultValues() {
|
|
674
|
+
this.total = 0;
|
|
675
|
+
this.pageSize = PAGINATION_DEFAULTS.SIZE;
|
|
676
|
+
this.pageIndex = PAGINATION_DEFAULTS.INDEX;
|
|
677
|
+
this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
|
|
678
|
+
}
|
|
679
|
+
quickRegularUsersSearch(searchParams, isMigratedUsersOnly, pageSize) {
|
|
680
|
+
console.log('searchParams = ', searchParams);
|
|
681
|
+
this.searchParams = searchParams || { customerid: this.customerId, siteid: this.siteId };
|
|
682
|
+
// this.searchParams['provisionType'] = 'CUCM';
|
|
683
|
+
return this.apiService.fetchPagination(API.QUICK_USERS_SEARCH, this.pageSize, pageSize || this.pageIndex, this.searchParams)
|
|
684
|
+
.pipe(map((res) => {
|
|
685
|
+
var _a;
|
|
686
|
+
// this.totals = this.totals || {};
|
|
687
|
+
// this.totals['users'] = res.total;
|
|
688
|
+
// this.foundUsers$.next(this.removeKynFromIBMService.removeCUCMS(users, this.customerId));
|
|
689
|
+
if (!isMigratedUsersOnly) {
|
|
690
|
+
const users = res.pageData && res.pageData.length ? res.pageData
|
|
691
|
+
.map(user => new ListUser(user)) : [];
|
|
692
|
+
if ((_a = this.migratedUsersIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
693
|
+
this.setMigratedPropToUsers(users);
|
|
694
|
+
}
|
|
695
|
+
this.total = res.total;
|
|
696
|
+
this.foundUsers$.next(users);
|
|
697
|
+
}
|
|
698
|
+
else {
|
|
699
|
+
this.migratedUsersIds = res.pageData && res.pageData.length ? res.pageData
|
|
700
|
+
.map(user => user.userid) : [];
|
|
701
|
+
}
|
|
702
|
+
}));
|
|
703
|
+
// .pipe(this.handleError(true));
|
|
704
|
+
}
|
|
705
|
+
quickWebexUsersSearch(searchParams, isMigratedUsersOnly, pageSize) {
|
|
706
|
+
this.searchParams = searchParams || { customerid: this.customerId, siteid: this.siteId };
|
|
707
|
+
// this.searchParams['provisionType'] = 'CUCM';
|
|
708
|
+
return this.webexApiService.fetchPagination(API.QUICK_USERS_SEARCH, this.pageSize, pageSize || this.pageIndex, this.searchParams)
|
|
709
|
+
.pipe(map((res) => {
|
|
710
|
+
var _a;
|
|
711
|
+
console.log('data: ', res);
|
|
712
|
+
if (!isMigratedUsersOnly) {
|
|
713
|
+
const users = res.pageData && res.pageData.length ? res.pageData
|
|
714
|
+
.map(user => new ListUser(user)) : [];
|
|
715
|
+
if ((_a = this.migratedUsersIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
716
|
+
this.setMigratedPropToUsers(users);
|
|
717
|
+
}
|
|
718
|
+
this.total = res.total;
|
|
719
|
+
this.foundUsers$.next(users);
|
|
720
|
+
}
|
|
721
|
+
else {
|
|
722
|
+
this.migratedUsersIds = res.pageData && res.pageData.length ? res.pageData
|
|
723
|
+
.map(user => user.userid) : [];
|
|
724
|
+
}
|
|
725
|
+
}));
|
|
726
|
+
// .pipe(this.handleError(true));
|
|
727
|
+
}
|
|
728
|
+
getMigratedUsers(customerId) {
|
|
729
|
+
this.migratedUsers = [];
|
|
730
|
+
return of(this.migratedUsers);
|
|
731
|
+
// return this.webexApiService.fetch(API.WEBEX_USERS.replace(':customerId', String(customerId)), {})
|
|
732
|
+
// .pipe(map((result: any) => {
|
|
733
|
+
// if (result && result.length) {
|
|
734
|
+
// this.migratedUsers = result.filter((user: any) => user.webexUUID && user.devices && user.devices.length);
|
|
735
|
+
// }
|
|
736
|
+
// }))
|
|
737
|
+
}
|
|
738
|
+
getMigratedWebexUsers(customerId) {
|
|
739
|
+
const params = { customerid: customerId, type: 'PERSON' };
|
|
740
|
+
return this.webexApiService.fetch(API.MIGRATED_USERS.replace(':customerId', String(customerId)), params, true)
|
|
741
|
+
.pipe(map((result) => {
|
|
742
|
+
}));
|
|
743
|
+
}
|
|
744
|
+
setMigratedPropToUsers(users) {
|
|
745
|
+
// users.forEach((user: any) => {
|
|
746
|
+
// const migratedUser = this.migratedUsers.filter((migratedUser: any) => migratedUser.userid === user.email);
|
|
747
|
+
// if (migratedUser && migratedUser[0]) {
|
|
748
|
+
// user.roleName = '';
|
|
749
|
+
// user.isMigrated = true;
|
|
750
|
+
// user.status = 'Migrated';
|
|
751
|
+
// user.webexUUID = migratedUser[0].webexUUID;
|
|
752
|
+
// } else {
|
|
753
|
+
// user.roleName = 'Dedicated Instance Calling user';
|
|
754
|
+
// user.isMigrated = false;
|
|
755
|
+
// user.status = 'Active';
|
|
756
|
+
// user.webexUUID = null;
|
|
757
|
+
// }
|
|
758
|
+
// if (user.webexUUID) {
|
|
759
|
+
// user.roleName = 'Dedicated Instance Calling user';
|
|
760
|
+
// } else {
|
|
761
|
+
// user.roleName = '';
|
|
762
|
+
// }
|
|
763
|
+
// })
|
|
764
|
+
// console.log('users ttt', users);
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
UsersSearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersSearchService, deps: [{ token: APIService }, { token: ApiWebexService }, { token: RemoveKynFromIBMService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
768
|
+
UsersSearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersSearchService });
|
|
769
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersSearchService, decorators: [{
|
|
770
|
+
type: Injectable
|
|
771
|
+
}], ctorParameters: function () { return [{ type: APIService }, { type: ApiWebexService }, { type: RemoveKynFromIBMService }]; } });
|
|
772
|
+
|
|
773
|
+
class PaginationComponent {
|
|
774
|
+
constructor() {
|
|
775
|
+
this.pageEmitter = new EventEmitter();
|
|
776
|
+
this.pageNumberChangeEmitter = new EventEmitter();
|
|
777
|
+
this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
|
|
778
|
+
}
|
|
779
|
+
ngOnInit() {
|
|
780
|
+
}
|
|
781
|
+
pageEvent(event) {
|
|
782
|
+
this.pageEmitter.emit(event);
|
|
783
|
+
}
|
|
784
|
+
changePerPageNumber(event) {
|
|
785
|
+
this.pageNumberChangeEmitter.emit(event.value);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
789
|
+
PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PaginationComponent, selector: "app-pagination", inputs: { pagination: "pagination", showPageSizeOptions: "showPageSizeOptions", showRefreshButton: "showRefreshButton", lengthPending: "lengthPending" }, outputs: { pageEmitter: "pageEmitter", pageNumberChangeEmitter: "pageNumberChangeEmitter" }, ngImport: i0, template: "<div class=\"flex-box pagination\">\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 || [5, 10, 25, 100]\"\r\n (page)=\"pageEvent($event)\">\r\n </mat-paginator>\r\n <mat-spinner class=\"length-spinner\" [diameter]=\"20\" mode=\"indeterminate\" *ngIf=\"lengthPending\">\r\n </mat-spinner>\r\n </div>\r\n\r\n <div class=\"flex-box per-page-block\" style=\"justify-content: left;\" *ngIf=\"showPageSizeOptions\">\r\n <div class=\"item_per_page\">Items per page:</div>\r\n <div class=\"select-box select-page-size\">\r\n <mat-select [(ngModel)]=\"pagination.pageSize\" (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: [".search-header-refresh-icon{align-items:center;line-height:54px;margin-left:10px}button[mat-icon-button] i{font-size:18px}mat-spinner.length-spinner{position:absolute;right:120px}h3,.search-header-refresh-icon{float:left}.page-options,.mat-paginator{float:right}.per-page-block mat-form-field{width:70px!important}.per-page-block span{margin-right:20px}.pagination{display:flex;justify-content:flex-end}.select-page-size{width:60px;margin:0 0 0 15px;padding:0 10px}.item_per_page{line-height:35px}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i9.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i6.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }] });
|
|
790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
791
|
+
type: Component,
|
|
792
|
+
args: [{ selector: 'app-pagination', template: "<div class=\"flex-box pagination\">\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 || [5, 10, 25, 100]\"\r\n (page)=\"pageEvent($event)\">\r\n </mat-paginator>\r\n <mat-spinner class=\"length-spinner\" [diameter]=\"20\" mode=\"indeterminate\" *ngIf=\"lengthPending\">\r\n </mat-spinner>\r\n </div>\r\n\r\n <div class=\"flex-box per-page-block\" style=\"justify-content: left;\" *ngIf=\"showPageSizeOptions\">\r\n <div class=\"item_per_page\">Items per page:</div>\r\n <div class=\"select-box select-page-size\">\r\n <mat-select [(ngModel)]=\"pagination.pageSize\" (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: [".search-header-refresh-icon{align-items:center;line-height:54px;margin-left:10px}button[mat-icon-button] i{font-size:18px}mat-spinner.length-spinner{position:absolute;right:120px}h3,.search-header-refresh-icon{float:left}.page-options,.mat-paginator{float:right}.per-page-block mat-form-field{width:70px!important}.per-page-block span{margin-right:20px}.pagination{display:flex;justify-content:flex-end}.select-page-size{width:60px;margin:0 0 0 15px;padding:0 10px}.item_per_page{line-height:35px}\n"] }]
|
|
793
|
+
}], ctorParameters: function () { return []; }, propDecorators: { pagination: [{
|
|
794
|
+
type: Input
|
|
795
|
+
}], showPageSizeOptions: [{
|
|
796
|
+
type: Input
|
|
797
|
+
}], showRefreshButton: [{
|
|
798
|
+
type: Input
|
|
799
|
+
}], lengthPending: [{
|
|
800
|
+
type: Input
|
|
801
|
+
}], pageEmitter: [{
|
|
802
|
+
type: Output
|
|
803
|
+
}], pageNumberChangeEmitter: [{
|
|
804
|
+
type: Output
|
|
805
|
+
}] } });
|
|
806
|
+
|
|
807
|
+
class AppLoaderComponent {
|
|
808
|
+
constructor() {
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
AppLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
812
|
+
AppLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AppLoaderComponent, selector: "app-loader", ngImport: i0, template: "<div class=\"overlay\">\n <mat-progress-spinner\n class=\"page-spinner\"\n mode=\"indeterminate\"\n [diameter]=\"70\"\n strokeWidth=\"3\"></mat-progress-spinner>\n</div>\n", styles: [".overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff3;z-index:200}.mat-progress-spinner circle,.mat-spinner circle{stroke:#000!important}\n"], dependencies: [{ kind: "component", type: i9.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppLoaderComponent, decorators: [{
|
|
814
|
+
type: Component,
|
|
815
|
+
args: [{ selector: 'app-loader', encapsulation: ViewEncapsulation.None, template: "<div class=\"overlay\">\n <mat-progress-spinner\n class=\"page-spinner\"\n mode=\"indeterminate\"\n [diameter]=\"70\"\n strokeWidth=\"3\"></mat-progress-spinner>\n</div>\n", styles: [".overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff3;z-index:200}.mat-progress-spinner circle,.mat-spinner circle{stroke:#000!important}\n"] }]
|
|
816
|
+
}], ctorParameters: function () { return []; } });
|
|
817
|
+
|
|
818
|
+
var EntityChangeType;
|
|
819
|
+
(function (EntityChangeType) {
|
|
820
|
+
EntityChangeType["added"] = "added";
|
|
821
|
+
EntityChangeType["updated"] = "updated";
|
|
822
|
+
EntityChangeType["existing"] = "existing";
|
|
823
|
+
EntityChangeType["removed"] = "removed";
|
|
824
|
+
EntityChangeType["unassociated"] = "unassociated";
|
|
825
|
+
})(EntityChangeType || (EntityChangeType = {}));
|
|
826
|
+
var DnRangeType;
|
|
827
|
+
(function (DnRangeType) {
|
|
828
|
+
DnRangeType["extension"] = "EXTENSION";
|
|
829
|
+
DnRangeType["cpg"] = "CPG";
|
|
830
|
+
DnRangeType["callpark"] = "CALLPARK";
|
|
831
|
+
DnRangeType["huntgroup"] = "HUNTGROUP";
|
|
832
|
+
DnRangeType["meetme"] = "MEETME";
|
|
833
|
+
DnRangeType["did"] = "DID";
|
|
834
|
+
})(DnRangeType || (DnRangeType = {}));
|
|
835
|
+
|
|
836
|
+
class DnsService {
|
|
837
|
+
constructor(apiService, apiWebexService) {
|
|
838
|
+
this.apiService = apiService;
|
|
839
|
+
this.apiWebexService = apiWebexService;
|
|
840
|
+
this.availableNumbers = {};
|
|
841
|
+
this.phoneNumbers = [];
|
|
842
|
+
}
|
|
843
|
+
getNumberRange(siteId, routePartition, withdids, from, pageSize) {
|
|
844
|
+
var _a;
|
|
845
|
+
// @ts-ignore
|
|
846
|
+
if ((_a = this.availableNumbers[routePartition]) === null || _a === void 0 ? void 0 : _a.length) {
|
|
847
|
+
return new Observable(observer => {
|
|
848
|
+
// @ts-ignore
|
|
849
|
+
observer.next(this.availableNumbers[routePartition]);
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
this.availableDidPatternsMappedToDn = {};
|
|
853
|
+
pageSize = pageSize ? pageSize : 20;
|
|
854
|
+
const params = { dntype: DnRangeType.extension, routepartition: routePartition, size: pageSize, page: 0 };
|
|
855
|
+
if (withdids) {
|
|
856
|
+
// @ts-ignore
|
|
857
|
+
params['withdids'] = 'true';
|
|
858
|
+
}
|
|
859
|
+
if (from) {
|
|
860
|
+
// @ts-ignore
|
|
861
|
+
params['from'] = from;
|
|
862
|
+
}
|
|
863
|
+
// @ts-ignore
|
|
864
|
+
this.availableNumbers[routePartition] = this.availableNumbers[routePartition] || [];
|
|
865
|
+
return this.apiService.fetch(API.AVAILABLE_DN_IN_RANGES.replace(':siteId', siteId), params)
|
|
866
|
+
.pipe(map((res) => {
|
|
867
|
+
res.availableNumberList.forEach((availableNumber) => {
|
|
868
|
+
this.setAvailableDidMappedToDn(availableNumber);
|
|
869
|
+
// @ts-ignore
|
|
870
|
+
this.availableNumbers[routePartition] = [...this.availableNumbers[routePartition], ...this.getUnwrapNumberRange(availableNumber)];
|
|
871
|
+
});
|
|
872
|
+
}));
|
|
873
|
+
// .pipe(this.handleError(true, false));
|
|
874
|
+
}
|
|
875
|
+
setAvailableDidMappedToDn(availableNumber) {
|
|
876
|
+
if (availableNumber.unUsedNumbersWithDids && availableNumber.unUsedNumbersWithDids.length) {
|
|
877
|
+
availableNumber.unUsedNumbersWithDids.forEach((numberWithDids) => {
|
|
878
|
+
const dn = numberWithDids['unUsedNumber'];
|
|
879
|
+
this.availableDidPatternsMappedToDn[dn] = [{}];
|
|
880
|
+
if (numberWithDids['translationPatternList'] && numberWithDids['translationPatternList'].length > 0) {
|
|
881
|
+
this.availableDidPatternsMappedToDn[dn] = numberWithDids['translationPatternList'];
|
|
882
|
+
this.availableDidPatternsMappedToDn[dn][0]['mappedDids'] = [{}];
|
|
883
|
+
if (numberWithDids['mappedDids'] && numberWithDids['mappedDids'].length > 0) {
|
|
884
|
+
this.availableDidPatternsMappedToDn[dn][0]['mappedDids'] = numberWithDids['mappedDids'];
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
this.availableDidPatternsMappedToDn[dn][0]['vm'] = numberWithDids['vm'];
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
getUnwrapNumberRange(availableNumber) {
|
|
892
|
+
let unwrapNumberRange = this.unwrapNumberRange(availableNumber.phoneNumberRange.from, availableNumber.phoneNumberRange.to)
|
|
893
|
+
.map((unwrappedNumber) => {
|
|
894
|
+
const dn = availableNumber.phoneNumberRange.prefix + unwrappedNumber;
|
|
895
|
+
let str = dn;
|
|
896
|
+
if (this.availableDidPatternsMappedToDn[dn] && this.availableDidPatternsMappedToDn[dn].length > 0) {
|
|
897
|
+
if (this.availableDidPatternsMappedToDn[dn][0]['mappedDids'] && this.availableDidPatternsMappedToDn[dn][0]['mappedDids'].length > 0) {
|
|
898
|
+
str += ' DID: ' + (this.availableDidPatternsMappedToDn[dn][0]['mappedDids'].length > 1 ? 'multiple' :
|
|
899
|
+
this.availableDidPatternsMappedToDn[dn][0]['mappedDids'][0]);
|
|
900
|
+
}
|
|
901
|
+
if (this.availableDidPatternsMappedToDn[dn][0]['vm']) {
|
|
902
|
+
str += ' In Use - VM';
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
return str;
|
|
906
|
+
});
|
|
907
|
+
unwrapNumberRange = unwrapNumberRange.filter((unwrappedNumber) => !availableNumber.usedNumbers.includes(unwrappedNumber));
|
|
908
|
+
return unwrapNumberRange;
|
|
909
|
+
}
|
|
910
|
+
unwrapNumberRange(start, end) {
|
|
911
|
+
const regExp = /(^0+)/;
|
|
912
|
+
let leadingZeros = '';
|
|
913
|
+
const matches = start.match(regExp);
|
|
914
|
+
if (matches) {
|
|
915
|
+
leadingZeros = matches[1];
|
|
916
|
+
}
|
|
917
|
+
const startNumeric = new Big(start);
|
|
918
|
+
const endNumeric = new Big(end);
|
|
919
|
+
// @ts-ignore
|
|
920
|
+
return Array.from({ length: (endNumeric.minus(startNumeric).plus(new Big(1)).toFixed(0)) }, (v, k) => {
|
|
921
|
+
const number = String(startNumeric.plus(new Big(k)).toFixed(0));
|
|
922
|
+
if ((leadingZeros + number).length > start.length) {
|
|
923
|
+
leadingZeros = leadingZeros.substr(1);
|
|
924
|
+
}
|
|
925
|
+
return leadingZeros + number;
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
fetchPhoneNumbers(customerId, locationId) {
|
|
929
|
+
const params = {
|
|
930
|
+
available: true,
|
|
931
|
+
numberType: 'NUMBER'
|
|
932
|
+
};
|
|
933
|
+
return this.apiWebexService.fetch(API.PHONE_NUMBERS.replace(':customerId', String(customerId)).replace(':locationId', locationId), params)
|
|
934
|
+
.pipe(map((result) => {
|
|
935
|
+
if (result === null || result === void 0 ? void 0 : result.length) {
|
|
936
|
+
this.phoneNumbers = result.map((item) => item.phoneNumber);
|
|
937
|
+
}
|
|
938
|
+
return result;
|
|
939
|
+
}));
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
DnsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DnsService, deps: [{ token: APIService }, { token: ApiWebexService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
943
|
+
DnsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DnsService });
|
|
944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DnsService, decorators: [{
|
|
945
|
+
type: Injectable
|
|
946
|
+
}], ctorParameters: function () { return [{ type: APIService }, { type: ApiWebexService }]; } });
|
|
947
|
+
|
|
948
|
+
class AppLocation {
|
|
949
|
+
constructor(props) {
|
|
950
|
+
this.id = '';
|
|
951
|
+
this.name = '';
|
|
952
|
+
this.timeZone = '';
|
|
953
|
+
this.address = new LocationAddress();
|
|
954
|
+
if (props) {
|
|
955
|
+
this.id = props.id || '';
|
|
956
|
+
this.name = props.name || '';
|
|
957
|
+
this.timeZone = props.timeZone || '';
|
|
958
|
+
this.address = new LocationAddress(props.address);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
class LocationAddress {
|
|
963
|
+
constructor(props) {
|
|
964
|
+
this.country = '';
|
|
965
|
+
this.countryName = '';
|
|
966
|
+
this.state = '';
|
|
967
|
+
this.city = '';
|
|
968
|
+
this.postalCode = '';
|
|
969
|
+
this.address1 = '';
|
|
970
|
+
this.address2 = '';
|
|
971
|
+
if (props) {
|
|
972
|
+
['country', 'countryName', 'state', 'city', 'postalCode', 'address1', 'address2'].forEach(token => {
|
|
973
|
+
// @ts-ignore
|
|
974
|
+
this[token] = props[token] || '';
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
class PrepareMigrationData {
|
|
981
|
+
constructor(data, originData) {
|
|
982
|
+
var _a, _b, _c, _d;
|
|
983
|
+
this.customerId = 0;
|
|
984
|
+
this.siteId = 0;
|
|
985
|
+
this.cucmId = 0;
|
|
986
|
+
this.entityId = '';
|
|
987
|
+
this.devices = [];
|
|
988
|
+
this.softDevices = [];
|
|
989
|
+
this.notSupportedDevices = [];
|
|
990
|
+
this.primaryExtension = '';
|
|
991
|
+
this.newExtension = '';
|
|
992
|
+
this.removeExtension = false;
|
|
993
|
+
this.primaryPhoneNumber = '';
|
|
994
|
+
this.newPhoneNumber = '';
|
|
995
|
+
this.removePhoneNumber = false;
|
|
996
|
+
this.newLocation = null;
|
|
997
|
+
this.newLocationName = '';
|
|
998
|
+
this.phoneNumberWithExtension = [];
|
|
999
|
+
this.moveType = new MoveType();
|
|
1000
|
+
this.errors = [];
|
|
1001
|
+
this.pending = false;
|
|
1002
|
+
this.isConfirm = false;
|
|
1003
|
+
if (data) {
|
|
1004
|
+
this.customerId = data.customerId;
|
|
1005
|
+
this.siteId = data.siteId;
|
|
1006
|
+
this.cucmId = data.cucmId;
|
|
1007
|
+
this.entityId = data.entityId;
|
|
1008
|
+
this.primaryExtension = data.primaryExtension || '';
|
|
1009
|
+
this.primaryPhoneNumber = data.primaryPhoneNumber || '';
|
|
1010
|
+
this.newLocation = (originData === null || originData === void 0 ? void 0 : originData.newLocation) || new AppLocation(data.newLocation) || this.newLocation;
|
|
1011
|
+
this.errors = data.errors;
|
|
1012
|
+
this.phoneNumberWithExtension = ((_a = data.phoneNumberWithExtension) === null || _a === void 0 ? void 0 : _a.length) ? data.phoneNumberWithExtension.map((item) => new PhoneNumberWithExtension(item)) : [];
|
|
1013
|
+
this.devices = ((_b = data.devices) === null || _b === void 0 ? void 0 : _b.length) ? data.devices.map((deviceData) => new PrepareMigrationDevice(deviceData, true, false, true)) : [];
|
|
1014
|
+
this.softDevices = ((_c = data.softDevices) === null || _c === void 0 ? void 0 : _c.length) ? data.softDevices.map((deviceData) => new PrepareMigrationDevice(deviceData, true, true, true)) : [];
|
|
1015
|
+
this.notSupportedDevices = ((_d = data.notSupportedDevices) === null || _d === void 0 ? void 0 : _d.length) ? data.notSupportedDevices.map((deviceData) => new PrepareMigrationDevice(deviceData, false, true, false)) : [];
|
|
1016
|
+
}
|
|
1017
|
+
if (originData) {
|
|
1018
|
+
this.moveType = originData.moveType;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
eligibleDevicesSize() {
|
|
1022
|
+
return this.devices.length + this.softDevices.length;
|
|
1023
|
+
}
|
|
1024
|
+
getSavableData() {
|
|
1025
|
+
return getSavableData(this, ['pending', 'isConfirm']);
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
class PrepareMigrationDevice {
|
|
1029
|
+
constructor(data, toMigrate, isToMigrateDisabled, isEligible) {
|
|
1030
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1031
|
+
this.toMigrate = false;
|
|
1032
|
+
this.isToMigrateDisabled = false;
|
|
1033
|
+
this.isEligible = false;
|
|
1034
|
+
this.name = '';
|
|
1035
|
+
if (data) {
|
|
1036
|
+
this.id = (_a = data.id) !== null && _a !== void 0 ? _a : null;
|
|
1037
|
+
this.mac = data.mac;
|
|
1038
|
+
this.name = data.name;
|
|
1039
|
+
this.product = data.product;
|
|
1040
|
+
this.model = data.model;
|
|
1041
|
+
this.cisUuid = (_b = data.cisUuid) !== null && _b !== void 0 ? _b : null;
|
|
1042
|
+
this.deviceId = (_c = data.deviceId) !== null && _c !== void 0 ? _c : null;
|
|
1043
|
+
this.personId = (_d = data.personId) !== null && _d !== void 0 ? _d : null;
|
|
1044
|
+
this.workspaceId = (_e = data.workspaceId) !== null && _e !== void 0 ? _e : null;
|
|
1045
|
+
this.locationId = (_f = data.locationId) !== null && _f !== void 0 ? _f : null;
|
|
1046
|
+
}
|
|
1047
|
+
this.toMigrate = toMigrate || this.toMigrate;
|
|
1048
|
+
this.isToMigrateDisabled = isToMigrateDisabled || this.isToMigrateDisabled;
|
|
1049
|
+
this.isEligible = isEligible || this.isEligible;
|
|
1050
|
+
}
|
|
1051
|
+
getSavableData() {
|
|
1052
|
+
const excludedFields = ['toMigrate', 'isToMigrateDisabled'];
|
|
1053
|
+
return getSavableData(this, excludedFields);
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
class PhoneNumberWithExtension {
|
|
1057
|
+
constructor(item) {
|
|
1058
|
+
this.extension = '';
|
|
1059
|
+
this.phoneNumber = '';
|
|
1060
|
+
this.extension = item.extension;
|
|
1061
|
+
this.phoneNumber = item.phoneNumber;
|
|
1062
|
+
}
|
|
1063
|
+
getSavableData() {
|
|
1064
|
+
const excludedFields = ['form'];
|
|
1065
|
+
return getSavableData(this, excludedFields);
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
class PrepareMigrationBody {
|
|
1069
|
+
constructor(userList, customerId, locationId) {
|
|
1070
|
+
this.customerId = 0;
|
|
1071
|
+
this.locationId = '';
|
|
1072
|
+
this.customerId = customerId || this.customerId;
|
|
1073
|
+
this.locationId = locationId || this.locationId;
|
|
1074
|
+
this.entities = new PrepareMigrationEntity(userList.cucmId, userList.userid);
|
|
1075
|
+
}
|
|
1076
|
+
getSavableData() {
|
|
1077
|
+
return getSavableData(this);
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
class PrepareMigrationEntity {
|
|
1081
|
+
constructor(cucmId, entityId) {
|
|
1082
|
+
this.PERSON = [];
|
|
1083
|
+
this.PERSON.push(new PersonMigrationEntity(cucmId, entityId));
|
|
1084
|
+
}
|
|
1085
|
+
getSavableData() {
|
|
1086
|
+
const excludedFields = ['form'];
|
|
1087
|
+
return getSavableData(this, excludedFields);
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
class PersonMigrationEntity {
|
|
1091
|
+
constructor(cucmId, entityId) {
|
|
1092
|
+
this.entityId = '';
|
|
1093
|
+
this.cucmId = cucmId;
|
|
1094
|
+
this.entityId = entityId || this.entityId;
|
|
1095
|
+
}
|
|
1096
|
+
getSavableData() {
|
|
1097
|
+
const excludedFields = ['form'];
|
|
1098
|
+
return getSavableData(this, excludedFields);
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
class MigrationData {
|
|
1102
|
+
constructor(data) {
|
|
1103
|
+
var _a;
|
|
1104
|
+
this.customerId = 0;
|
|
1105
|
+
this.siteId = 0;
|
|
1106
|
+
this.cucmId = 0;
|
|
1107
|
+
this.entityId = '';
|
|
1108
|
+
this.primaryExtension = '';
|
|
1109
|
+
this.primaryPhoneNumber = '';
|
|
1110
|
+
this.devices = [];
|
|
1111
|
+
this.phoneNumberWithExtension = [];
|
|
1112
|
+
this.customerId = data.customerId;
|
|
1113
|
+
this.siteId = data.siteId;
|
|
1114
|
+
this.cucmId = data.cucmId;
|
|
1115
|
+
this.entityId = data.entityId;
|
|
1116
|
+
if (data.newExtension) {
|
|
1117
|
+
this.primaryExtension = data.newExtension;
|
|
1118
|
+
}
|
|
1119
|
+
else if (data.removeExtension) {
|
|
1120
|
+
this.primaryExtension = null;
|
|
1121
|
+
}
|
|
1122
|
+
else {
|
|
1123
|
+
this.primaryExtension = data.primaryExtension;
|
|
1124
|
+
}
|
|
1125
|
+
if (data.newPhoneNumber) {
|
|
1126
|
+
this.primaryPhoneNumber = data.newPhoneNumber;
|
|
1127
|
+
}
|
|
1128
|
+
else if (data.removePhoneNumber) {
|
|
1129
|
+
this.primaryPhoneNumber = null;
|
|
1130
|
+
}
|
|
1131
|
+
else {
|
|
1132
|
+
this.primaryPhoneNumber = data.primaryPhoneNumber;
|
|
1133
|
+
}
|
|
1134
|
+
this.phoneNumberWithExtension = data.phoneNumberWithExtension;
|
|
1135
|
+
if ((_a = data.devices) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1136
|
+
data.devices.map(device => {
|
|
1137
|
+
if (device.toMigrate && device.mac) {
|
|
1138
|
+
this.devices.push(device.mac);
|
|
1139
|
+
}
|
|
1140
|
+
});
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
getSavableData() {
|
|
1144
|
+
const excludedFields = ['form'];
|
|
1145
|
+
return getSavableData(this, excludedFields);
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
class MoveType {
|
|
1149
|
+
constructor(data) {
|
|
1150
|
+
this.phoneNumber = '1';
|
|
1151
|
+
this.extension = '1';
|
|
1152
|
+
if (data) {
|
|
1153
|
+
this.phoneNumber = data.phoneNumber;
|
|
1154
|
+
this.extension = data.extension;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
class SiteSettingsService {
|
|
1160
|
+
constructor(apiWebexService) {
|
|
1161
|
+
this.apiWebexService = apiWebexService;
|
|
1162
|
+
this.locations = [];
|
|
1163
|
+
}
|
|
1164
|
+
getLocations(customerId) {
|
|
1165
|
+
return this.apiWebexService.fetch(API.GET_LOCATIONS.replace(':customerId', String(customerId)), {})
|
|
1166
|
+
.pipe(map((result) => {
|
|
1167
|
+
if (result && result.length) {
|
|
1168
|
+
this.locations = result.map((location) => new AppLocation(location));
|
|
1169
|
+
}
|
|
1170
|
+
return result;
|
|
1171
|
+
}));
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
SiteSettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteSettingsService, deps: [{ token: ApiWebexService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1175
|
+
SiteSettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteSettingsService });
|
|
1176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteSettingsService, decorators: [{
|
|
1177
|
+
type: Injectable
|
|
1178
|
+
}], ctorParameters: function () { return [{ type: ApiWebexService }]; } });
|
|
1179
|
+
|
|
1180
|
+
class MoveUserService {
|
|
1181
|
+
constructor(apiService, apiWebexService) {
|
|
1182
|
+
this.apiService = apiService;
|
|
1183
|
+
this.apiWebexService = apiWebexService;
|
|
1184
|
+
}
|
|
1185
|
+
resetMigrationDataForNewLocation() {
|
|
1186
|
+
this.prepareMigrationData.newExtension = '';
|
|
1187
|
+
this.prepareMigrationData.newPhoneNumber = '';
|
|
1188
|
+
this.prepareMigrationData.newExtension = '';
|
|
1189
|
+
}
|
|
1190
|
+
setOriginPrepareMigrationData() {
|
|
1191
|
+
const data = JSON.parse(JSON.stringify(this.prepareMigrationData.getSavableData()));
|
|
1192
|
+
this.originPrepareMigrationData = new PrepareMigrationData(data);
|
|
1193
|
+
}
|
|
1194
|
+
fetchPrepareMigrationData(data) {
|
|
1195
|
+
return this.apiWebexService.post(API.PREPARE_PERSON_MIGRATION, data.getSavableData())
|
|
1196
|
+
.pipe(map((result) => {
|
|
1197
|
+
if (result) {
|
|
1198
|
+
this.prepareMigrationData = new PrepareMigrationData(result, this.originPrepareMigrationData);
|
|
1199
|
+
}
|
|
1200
|
+
return result;
|
|
1201
|
+
}));
|
|
1202
|
+
// .pipe(this.handleError(false, true));
|
|
1203
|
+
}
|
|
1204
|
+
startMigration(data) {
|
|
1205
|
+
/* return new Observable<boolean>(observer => {
|
|
1206
|
+
setTimeout(() => {
|
|
1207
|
+
observer.next(true);
|
|
1208
|
+
|
|
1209
|
+
}, 2000);
|
|
1210
|
+
});*/
|
|
1211
|
+
return this.apiWebexService.post(API.START_MIGRATION, data.getSavableData())
|
|
1212
|
+
.pipe(map((result) => {
|
|
1213
|
+
if (data) {
|
|
1214
|
+
this.prepareMigrationData = new PrepareMigrationData(data);
|
|
1215
|
+
}
|
|
1216
|
+
}));
|
|
1217
|
+
// .pipe(this.handleError(false, true));
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
MoveUserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserService, deps: [{ token: APIService }, { token: ApiWebexService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1221
|
+
MoveUserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserService });
|
|
1222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserService, decorators: [{
|
|
1223
|
+
type: Injectable
|
|
1224
|
+
}], ctorParameters: function () { return [{ type: APIService }, { type: ApiWebexService }]; } });
|
|
1225
|
+
|
|
1226
|
+
class DeviceMoveUserWizardComponent {
|
|
1227
|
+
get moveUserPending() {
|
|
1228
|
+
return this.userService.moveUserPending;
|
|
1229
|
+
}
|
|
1230
|
+
get locations() {
|
|
1231
|
+
return this.siteSettingsService.locations;
|
|
1232
|
+
}
|
|
1233
|
+
constructor(dnsService, userService, siteSettingsService) {
|
|
1234
|
+
this.dnsService = dnsService;
|
|
1235
|
+
this.userService = userService;
|
|
1236
|
+
this.siteSettingsService = siteSettingsService;
|
|
1237
|
+
}
|
|
1238
|
+
ngOnInit() {
|
|
1239
|
+
}
|
|
1240
|
+
onMigrateDeviceChecked(event) {
|
|
1241
|
+
}
|
|
1242
|
+
resetMoveTypePhoneNUmber() {
|
|
1243
|
+
this.dnsService.phoneNumbers = [];
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
DeviceMoveUserWizardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DeviceMoveUserWizardComponent, deps: [{ token: DnsService }, { token: UserService }, { token: SiteSettingsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1247
|
+
DeviceMoveUserWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DeviceMoveUserWizardComponent, selector: "app-device-move-user-wizard", inputs: { device: "device" }, ngImport: i0, template: "<form>\r\n <div class=\"device-item-panel-container\">\r\n <div class=\"device-left\">\r\n <div\r\n class=\"device-migration-status\"\r\n [ngClass]=\"{'--checked': device.toMigrate}\"\r\n >\r\n <mat-checkbox\r\n class=\"rounded\"\r\n [checked]=\"device.toMigrate\"\r\n ></mat-checkbox>\r\n </div>\r\n </div>\r\n <div class=\"device-right\">\r\n <div class=\"device-header\">\r\n <div class=\"device-name\">{{ device.name }}</div>\r\n <div class=\"device-migrate\" *ngIf=\"device.isEligible\">\r\n <mat-checkbox name=\"toMigrate\"\r\n [(ngModel)]=\"device.toMigrate\"\r\n >Migrate this device</mat-checkbox>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"device-info\">\r\n <div *ngIf=\"device.product\" class=\"device-info__item\">\r\n <div class=\"key\">Device type</div>\r\n <div class=\"value\">{{ device.product }}</div>\r\n </div>\r\n <div *ngIf=\"device.mac\" class=\"device-info__item\">\r\n <div class=\"key\">MAC address</div>\r\n <div class=\"value\">{{ device.mac }}</div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n", styles: [".device-item-panel-container{display:flex;border:1px solid gray;border-radius:.5rem;margin-bottom:1.5rem;overflow:hidden}.device-migration-status{height:100%;padding:1rem;background-color:#ffebc2}.device-right{width:100%;display:flex;flex-direction:column;justify-content:space-between;padding:1rem 2rem}.device-header{display:flex;justify-content:space-between;align-items:center;padding:0 0 7px}.device-header .device-name{font-size:18px;font-weight:700}.device-header .device-migrate{font-weight:700}.device-header .device-migrate .mat-checkbox ::ng-deep .mat-checkbox-label{margin-left:.4rem}.device-header .device-migrate ::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:#05f!important}.device-header .device-migrate ::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-background,.device-header .device-migrate ::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#05f!important}.device-header .device-migrate ::ng-deep .mat-checkbox.mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:#05f!important}.device-info{display:grid;grid-template-columns:auto auto;gap:2.5rem}.device-info__item{font-size:16px;font-weight:700}.device-info__item .key{margin:10px 0 0}.device-info__item .value{color:#a0a0a0}.--checked{background-color:#cef5eb}.mat-checkbox ::ng-deep .mat-checkbox-inner-container{width:20px;height:20px}::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:#185e46!important}::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-background,::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#185e46}::ng-deep .mat-checkbox.mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:#185e46!important}::ng-deep .rounded{pointer-events:none}::ng-deep .rounded .mat-checkbox-background,::ng-deep .rounded .mat-checkbox-frame{border-radius:50%!important}::ng-deep .mat-divider{display:block;margin:0;border-top-width:2px;border-top-style:solid}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i7.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i6$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i7$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
|
|
1248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DeviceMoveUserWizardComponent, decorators: [{
|
|
1249
|
+
type: Component,
|
|
1250
|
+
args: [{ selector: 'app-device-move-user-wizard', template: "<form>\r\n <div class=\"device-item-panel-container\">\r\n <div class=\"device-left\">\r\n <div\r\n class=\"device-migration-status\"\r\n [ngClass]=\"{'--checked': device.toMigrate}\"\r\n >\r\n <mat-checkbox\r\n class=\"rounded\"\r\n [checked]=\"device.toMigrate\"\r\n ></mat-checkbox>\r\n </div>\r\n </div>\r\n <div class=\"device-right\">\r\n <div class=\"device-header\">\r\n <div class=\"device-name\">{{ device.name }}</div>\r\n <div class=\"device-migrate\" *ngIf=\"device.isEligible\">\r\n <mat-checkbox name=\"toMigrate\"\r\n [(ngModel)]=\"device.toMigrate\"\r\n >Migrate this device</mat-checkbox>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"device-info\">\r\n <div *ngIf=\"device.product\" class=\"device-info__item\">\r\n <div class=\"key\">Device type</div>\r\n <div class=\"value\">{{ device.product }}</div>\r\n </div>\r\n <div *ngIf=\"device.mac\" class=\"device-info__item\">\r\n <div class=\"key\">MAC address</div>\r\n <div class=\"value\">{{ device.mac }}</div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n", styles: [".device-item-panel-container{display:flex;border:1px solid gray;border-radius:.5rem;margin-bottom:1.5rem;overflow:hidden}.device-migration-status{height:100%;padding:1rem;background-color:#ffebc2}.device-right{width:100%;display:flex;flex-direction:column;justify-content:space-between;padding:1rem 2rem}.device-header{display:flex;justify-content:space-between;align-items:center;padding:0 0 7px}.device-header .device-name{font-size:18px;font-weight:700}.device-header .device-migrate{font-weight:700}.device-header .device-migrate .mat-checkbox ::ng-deep .mat-checkbox-label{margin-left:.4rem}.device-header .device-migrate ::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:#05f!important}.device-header .device-migrate ::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-background,.device-header .device-migrate ::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#05f!important}.device-header .device-migrate ::ng-deep .mat-checkbox.mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:#05f!important}.device-info{display:grid;grid-template-columns:auto auto;gap:2.5rem}.device-info__item{font-size:16px;font-weight:700}.device-info__item .key{margin:10px 0 0}.device-info__item .value{color:#a0a0a0}.--checked{background-color:#cef5eb}.mat-checkbox ::ng-deep .mat-checkbox-inner-container{width:20px;height:20px}::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:#185e46!important}::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-background,::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#185e46}::ng-deep .mat-checkbox.mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:#185e46!important}::ng-deep .rounded{pointer-events:none}::ng-deep .rounded .mat-checkbox-background,::ng-deep .rounded .mat-checkbox-frame{border-radius:50%!important}::ng-deep .mat-divider{display:block;margin:0;border-top-width:2px;border-top-style:solid}\n"] }]
|
|
1251
|
+
}], ctorParameters: function () { return [{ type: DnsService }, { type: UserService }, { type: SiteSettingsService }]; }, propDecorators: { device: [{
|
|
1252
|
+
type: Input
|
|
1253
|
+
}] } });
|
|
1254
|
+
|
|
1255
|
+
class DevicesMoveUserWizardTabComponent {
|
|
1256
|
+
get prepareMigrationData() {
|
|
1257
|
+
return this.moveUserService.prepareMigrationData;
|
|
1258
|
+
}
|
|
1259
|
+
constructor(moveUserService) {
|
|
1260
|
+
this.moveUserService = moveUserService;
|
|
1261
|
+
}
|
|
1262
|
+
ngOnInit() {
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
DevicesMoveUserWizardTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DevicesMoveUserWizardTabComponent, deps: [{ token: MoveUserService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1266
|
+
DevicesMoveUserWizardTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DevicesMoveUserWizardTabComponent, selector: "app-devices-move-user-tab", ngImport: i0, template: "<div *ngIf=\"prepareMigrationData.eligibleDevicesSize\"\r\n class=\"devices-move-user-box eligible-devices-section\" >\r\n <div class=\"section-title\">Eligible devices ({{ prepareMigrationData.eligibleDevicesSize() }})</div>\r\n <div class=\"section-content\">\r\n <div *ngIf=\"prepareMigrationData.devices?.length\" class=\"device-group\">\r\n <div class=\"group-title\">IP Phones</div>\r\n <ng-container *ngFor=\"let device of prepareMigrationData.devices\">\r\n <app-device-move-user-wizard [device]=\"device\"></app-device-move-user-wizard>\r\n </ng-container>\r\n </div>\r\n\r\n <div *ngIf=\"prepareMigrationData.softDevices?.length\" class=\"device-group\">\r\n <div class=\"group-title\">Soft Devices</div>\r\n <ng-container *ngFor=\"let device of prepareMigrationData.softDevices\">\r\n <app-device-move-user-wizard [device]=\"device\"></app-device-move-user-wizard>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n<mat-divider *ngIf=\"prepareMigrationData.notSupportedDevices.length\"></mat-divider>\r\n<div *ngIf=\"prepareMigrationData.notSupportedDevices.length\" class=\"ineligible-devices-section\">\r\n <div class=\"section-title\">Ineligible devices ({{ prepareMigrationData.notSupportedDevices.length }})</div>\r\n <div class=\"section-content\">\r\n <div class=\"device-group\">\r\n <ng-container *ngFor=\"let device of prepareMigrationData.notSupportedDevices\">\r\n <app-device-move-user-wizard [device]=\"device\"></app-device-move-user-wizard>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n", styles: [".eligible-devices-section,.ineligible-devices-section{display:flex;padding:1.5rem}.eligible-devices-section .section-title,.ineligible-devices-section .section-title{font-size:18px;font-weight:700;padding:0 .5rem;width:300px}.eligible-devices-section .section-content,.ineligible-devices-section .section-content{width:100%}.group-title{font-size:18px;font-weight:700;margin-bottom:1rem}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: DeviceMoveUserWizardComponent, selector: "app-device-move-user-wizard", inputs: ["device"] }] });
|
|
1267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DevicesMoveUserWizardTabComponent, decorators: [{
|
|
1268
|
+
type: Component,
|
|
1269
|
+
args: [{ selector: 'app-devices-move-user-tab', template: "<div *ngIf=\"prepareMigrationData.eligibleDevicesSize\"\r\n class=\"devices-move-user-box eligible-devices-section\" >\r\n <div class=\"section-title\">Eligible devices ({{ prepareMigrationData.eligibleDevicesSize() }})</div>\r\n <div class=\"section-content\">\r\n <div *ngIf=\"prepareMigrationData.devices?.length\" class=\"device-group\">\r\n <div class=\"group-title\">IP Phones</div>\r\n <ng-container *ngFor=\"let device of prepareMigrationData.devices\">\r\n <app-device-move-user-wizard [device]=\"device\"></app-device-move-user-wizard>\r\n </ng-container>\r\n </div>\r\n\r\n <div *ngIf=\"prepareMigrationData.softDevices?.length\" class=\"device-group\">\r\n <div class=\"group-title\">Soft Devices</div>\r\n <ng-container *ngFor=\"let device of prepareMigrationData.softDevices\">\r\n <app-device-move-user-wizard [device]=\"device\"></app-device-move-user-wizard>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n<mat-divider *ngIf=\"prepareMigrationData.notSupportedDevices.length\"></mat-divider>\r\n<div *ngIf=\"prepareMigrationData.notSupportedDevices.length\" class=\"ineligible-devices-section\">\r\n <div class=\"section-title\">Ineligible devices ({{ prepareMigrationData.notSupportedDevices.length }})</div>\r\n <div class=\"section-content\">\r\n <div class=\"device-group\">\r\n <ng-container *ngFor=\"let device of prepareMigrationData.notSupportedDevices\">\r\n <app-device-move-user-wizard [device]=\"device\"></app-device-move-user-wizard>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n", styles: [".eligible-devices-section,.ineligible-devices-section{display:flex;padding:1.5rem}.eligible-devices-section .section-title,.ineligible-devices-section .section-title{font-size:18px;font-weight:700;padding:0 .5rem;width:300px}.eligible-devices-section .section-content,.ineligible-devices-section .section-content{width:100%}.group-title{font-size:18px;font-weight:700;margin-bottom:1rem}\n"] }]
|
|
1270
|
+
}], ctorParameters: function () { return [{ type: MoveUserService }]; } });
|
|
1271
|
+
|
|
1272
|
+
// for test only
|
|
1273
|
+
const LOCATION = 'Y2lzY29zcGFyazovL3VzL0xPQ0FUSU9OLzE2YjY0NjljLTBjZmQtNDJjMS1iOWJjLTUyN2FlZTNhN2RlOQ';
|
|
1274
|
+
class MoveUserStepperComponent {
|
|
1275
|
+
get moveUserPending() {
|
|
1276
|
+
return this.userService.moveUserPending;
|
|
1277
|
+
}
|
|
1278
|
+
get currentNumber() {
|
|
1279
|
+
var _a, _b, _c;
|
|
1280
|
+
if (((_b = (_a = this.user) === null || _a === void 0 ? void 0 : _a.devices) === null || _b === void 0 ? void 0 : _b.length) && ((_c = this.user.devices[0]) === null || _c === void 0 ? void 0 : _c.lineAssociations) && this.user.devices[0].lineAssociations[0]) {
|
|
1281
|
+
return this.user.devices[0].lineAssociations[0].directoryNumber.directoryNumber;
|
|
1282
|
+
}
|
|
1283
|
+
return '';
|
|
1284
|
+
}
|
|
1285
|
+
get locations() {
|
|
1286
|
+
return this.siteSettingsService.locations;
|
|
1287
|
+
}
|
|
1288
|
+
get prepareMigrationData() {
|
|
1289
|
+
return this.moveUserService.prepareMigrationData;
|
|
1290
|
+
}
|
|
1291
|
+
constructor(dnsService, userService, siteSettingsService, notificationService, moveUserService) {
|
|
1292
|
+
this.dnsService = dnsService;
|
|
1293
|
+
this.userService = userService;
|
|
1294
|
+
this.siteSettingsService = siteSettingsService;
|
|
1295
|
+
this.notificationService = notificationService;
|
|
1296
|
+
this.moveUserService = moveUserService;
|
|
1297
|
+
this.done = new EventEmitter();
|
|
1298
|
+
this.runMoveUser = new EventEmitter();
|
|
1299
|
+
this.cancel = new EventEmitter();
|
|
1300
|
+
this.isLinear = false;
|
|
1301
|
+
this.phoneNumberPending = false;
|
|
1302
|
+
this.filteredLocations = [];
|
|
1303
|
+
this.dataPending = false;
|
|
1304
|
+
}
|
|
1305
|
+
ngOnInit() {
|
|
1306
|
+
this.moveUserService.prepareMigrationData = new PrepareMigrationData();
|
|
1307
|
+
this.getData();
|
|
1308
|
+
}
|
|
1309
|
+
displayLocation(location) {
|
|
1310
|
+
return (location === null || location === void 0 ? void 0 : location.name) || '';
|
|
1311
|
+
}
|
|
1312
|
+
onLocationAutocomplete(event) {
|
|
1313
|
+
var _a;
|
|
1314
|
+
const value = event.target.value;
|
|
1315
|
+
if ((_a = this.locations) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1316
|
+
this.filteredLocations = filterOptions(this.locations, value || '', '', 'name');
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
onNumberAutocomplete() {
|
|
1320
|
+
var _a;
|
|
1321
|
+
if ((_a = this.dnsService.phoneNumbers) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1322
|
+
this.filteredPhoneNumbers = filterOptions(this.dnsService.phoneNumbers, this.prepareMigrationData.newPhoneNumber);
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
onMoveUser(stepper) {
|
|
1326
|
+
this.stepper = stepper;
|
|
1327
|
+
this.runMoveUser.emit();
|
|
1328
|
+
}
|
|
1329
|
+
onStepChange(event) {
|
|
1330
|
+
}
|
|
1331
|
+
selectPhoneNumberMigrationType(event) {
|
|
1332
|
+
if (event.value && event.value === '2') {
|
|
1333
|
+
this.getPhoneNumbers();
|
|
1334
|
+
}
|
|
1335
|
+
this.moveUserService.prepareMigrationData.removePhoneNumber = event.value && event.value === '3';
|
|
1336
|
+
}
|
|
1337
|
+
selectExtensionMigrationType(event) {
|
|
1338
|
+
this.moveUserService.prepareMigrationData.removeExtension = event.value && event.value === '3';
|
|
1339
|
+
}
|
|
1340
|
+
onPhoneNumberChange(event) {
|
|
1341
|
+
console.log('new phone number = ', this.prepareMigrationData.newPhoneNumber);
|
|
1342
|
+
}
|
|
1343
|
+
onLocationChange(event) {
|
|
1344
|
+
this.moveUserService.prepareMigrationData.newLocation = event.option.value;
|
|
1345
|
+
this.moveUserService.resetMigrationDataForNewLocation();
|
|
1346
|
+
if (this.prepareMigrationData.moveType.phoneNumber === '2') {
|
|
1347
|
+
this.getPhoneNumbers();
|
|
1348
|
+
}
|
|
1349
|
+
this.getPrepareUserData();
|
|
1350
|
+
}
|
|
1351
|
+
onExtensionChange(event) {
|
|
1352
|
+
console.log('new newExtension = ', this.prepareMigrationData.newExtension);
|
|
1353
|
+
}
|
|
1354
|
+
getPhoneNumbers() {
|
|
1355
|
+
var _a;
|
|
1356
|
+
if (!((_a = this.prepareMigrationData.newLocation) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
1357
|
+
return;
|
|
1358
|
+
}
|
|
1359
|
+
this.phoneNumberPending = true;
|
|
1360
|
+
this.dnsService.fetchPhoneNumbers(this.customerId, this.prepareMigrationData.newLocation.id)
|
|
1361
|
+
.subscribe(() => {
|
|
1362
|
+
this.phoneNumberPending = false;
|
|
1363
|
+
this.filteredPhoneNumbers = this.dnsService.phoneNumbers.slice();
|
|
1364
|
+
}, () => this.phoneNumberPending = false);
|
|
1365
|
+
}
|
|
1366
|
+
isNextFromSelectLocationDisabled() {
|
|
1367
|
+
var _a, _b;
|
|
1368
|
+
if (!((_b = (_a = this.prepareMigrationData) === null || _a === void 0 ? void 0 : _a.newLocation) === null || _b === void 0 ? void 0 : _b.id) || !this.prepareMigrationData.entityId) {
|
|
1369
|
+
return true;
|
|
1370
|
+
}
|
|
1371
|
+
if (this.prepareMigrationData.moveType.phoneNumber === '2' && !this.prepareMigrationData.newPhoneNumber) {
|
|
1372
|
+
return true;
|
|
1373
|
+
}
|
|
1374
|
+
if (this.prepareMigrationData.moveType.extension === '2' && !this.prepareMigrationData.newExtension) {
|
|
1375
|
+
return true;
|
|
1376
|
+
}
|
|
1377
|
+
return false;
|
|
1378
|
+
}
|
|
1379
|
+
goNextStep(stepper) {
|
|
1380
|
+
}
|
|
1381
|
+
startMigration() {
|
|
1382
|
+
const migrationData = new MigrationData(this.prepareMigrationData);
|
|
1383
|
+
this.dataPending = true;
|
|
1384
|
+
this.moveUserService.startMigration(migrationData)
|
|
1385
|
+
.subscribe((result) => {
|
|
1386
|
+
var _a, _b;
|
|
1387
|
+
this.dataPending = false;
|
|
1388
|
+
if ((_b = (_a = this.nextAfterMoveBtn) === null || _a === void 0 ? void 0 : _a._elementRef) === null || _b === void 0 ? void 0 : _b.nativeElement) {
|
|
1389
|
+
this.nextAfterMoveBtn._elementRef.nativeElement.click();
|
|
1390
|
+
}
|
|
1391
|
+
}, () => {
|
|
1392
|
+
this.dataPending = false;
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
getData() {
|
|
1396
|
+
if (!this.user) {
|
|
1397
|
+
return;
|
|
1398
|
+
}
|
|
1399
|
+
this.dataPending = true;
|
|
1400
|
+
this.siteSettingsService.getLocations(this.customerId)
|
|
1401
|
+
.subscribe(() => {
|
|
1402
|
+
var _a;
|
|
1403
|
+
if ((_a = this.locations) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1404
|
+
this.filteredLocations = this.locations.slice();
|
|
1405
|
+
}
|
|
1406
|
+
this.dataPending = false;
|
|
1407
|
+
}, () => this.dataPending = false);
|
|
1408
|
+
}
|
|
1409
|
+
getPrepareUserData() {
|
|
1410
|
+
var _a, _b;
|
|
1411
|
+
if ((_b = (_a = this.prepareMigrationData) === null || _a === void 0 ? void 0 : _a.newLocation) === null || _b === void 0 ? void 0 : _b.id) {
|
|
1412
|
+
this.moveUserService.setOriginPrepareMigrationData();
|
|
1413
|
+
const prepareMigrationBody = new PrepareMigrationBody(this.user, this.customerId, this.prepareMigrationData.newLocation.id);
|
|
1414
|
+
this.moveUserService.prepareMigrationData.pending = true;
|
|
1415
|
+
this.moveUserService.fetchPrepareMigrationData(prepareMigrationBody)
|
|
1416
|
+
.subscribe(() => {
|
|
1417
|
+
}, () => {
|
|
1418
|
+
this.moveUserService.prepareMigrationData.pending = false;
|
|
1419
|
+
this.notificationService.error('Move user attempt is failed');
|
|
1420
|
+
});
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
resetMoveTypePhoneNUmber() {
|
|
1424
|
+
this.dnsService.phoneNumbers = [];
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
MoveUserStepperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserStepperComponent, deps: [{ token: DnsService }, { token: UserService }, { token: SiteSettingsService }, { token: NotificationService }, { token: MoveUserService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1428
|
+
MoveUserStepperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MoveUserStepperComponent, selector: "app-move-user-stepper", inputs: { user: "user", customerId: "customerId" }, outputs: { done: "done", runMoveUser: "runMoveUser", cancel: "cancel" }, viewQueries: [{ propertyName: "nextAfterMoveBtn", first: true, predicate: ["nextAfterMoveBtn"], descendants: true }], ngImport: i0, template: "<app-loader *ngIf=\"prepareMigrationData.pending || moveUserPending || dataPending\"></app-loader>\r\n<div id=\"move-user-stepper\">\r\n <mat-stepper *ngIf=\"prepareMigrationData?.moveType\" [linear]=\"isLinear\" labelPosition=\"bottom\" #stepper>\r\n <mat-step>\r\n <div class=\"step-title\">Step 1: Select location</div>\r\n <!-- <form>-->\r\n <ng-template matStepLabel>Select location</ng-template>\r\n <form>\r\n <div class=\"move-user-tab-content-box\">\r\n <mat-label class=\"mat-label\">Select a new location</mat-label>\r\n <mat-form-field class=\"app-autocomplete-input\" appearance=\"outline\">\r\n <input placeholder=\"Select location\" [matAutocomplete]=\"auto\" matInput\r\n (input)=\"onLocationAutocomplete($event)\"/>\r\n <mat-autocomplete #auto=\"matAutocomplete\" [displayWith]=\"displayLocation\"\r\n (optionSelected)=\"onLocationChange($event)\">\r\n <mat-option *ngFor=\"let location of filteredLocations\" [value]=\"location\">\r\n {{ location.name }}\r\n </mat-option>\r\n </mat-autocomplete>\r\n </mat-form-field>\r\n <div *ngIf=\"!dataPending && !locations.length\" class=\"mat-error\">\r\n Locations are not available\r\n </div>\r\n\r\n <ng-container *ngIf=\"prepareMigrationData?.newLocation?.id\">\r\n <mat-label class=\"mat-label\">Phone number</mat-label>\r\n <mat-radio-group class=\"radio-group\" name=\"moveTypePhoneNumber\"\r\n [(ngModel)]=\"prepareMigrationData.moveType.phoneNumber\" name=\"phoneNumber\"\r\n (change)=\"selectPhoneNumberMigrationType($event)\">\r\n <mat-radio-button\r\n class=\"radio-button\"\r\n value=\"1\"\r\n color=\"primary\">\r\n Keep current number\r\n {{ prepareMigrationData.primaryPhoneNumber || currentNumber }}\r\n </mat-radio-button>\r\n <mat-radio-button\r\n class=\"radio-button\"\r\n value=\"2\"\r\n color=\"primary\"\r\n [disabled]=\"!prepareMigrationData.newLocation?.id\">\r\n Select a new number\r\n </mat-radio-button>\r\n\r\n <div *ngIf=\"prepareMigrationData.moveType.phoneNumber === '2'\" class=\"select-container\">\r\n <mat-progress-spinner *ngIf=\"phoneNumberPending\" class=\"field-spinner\" mode=\"indeterminate\"\r\n [diameter]=\"70\" strokeWidth=\"3\"></mat-progress-spinner>\r\n\r\n <mat-form-field class=\"app-autocomplete-input\" appearance=\"outline\">\r\n <input placeholder=\"Select number\" [(ngModel)]=\"prepareMigrationData.newPhoneNumber\"\r\n [matAutocomplete]=\"autoPh\" matInput name=\"newPhoneNumber\"\r\n (input)=\"onNumberAutocomplete()\"/>\r\n <mat-autocomplete #autoPh=\"matAutocomplete\" (optionSelected)=\"onPhoneNumberChange($event)\">\r\n <mat-option *ngFor=\"let number of filteredPhoneNumbers\" [value]=\"number\">\r\n {{ number }}\r\n </mat-option>\r\n </mat-autocomplete>\r\n </mat-form-field>\r\n <div *ngIf=\"!phoneNumberPending && !dnsService.phoneNumbers?.length\" class=\"mat-error\">\r\n Phone numbers are not available for this location\r\n </div>\r\n </div>\r\n <mat-radio-button\r\n class=\"radio-button\"\r\n value=\"3\"\r\n color=\"primary\"\r\n [disabled]=\"prepareMigrationData.removeExtension\">\r\n Remove number\r\n </mat-radio-button>\r\n </mat-radio-group>\r\n\r\n <mat-label class=\"mat-label\">Extension</mat-label>\r\n <mat-radio-group class=\"radio-group\" name=\"moveTypeExtension\"\r\n (change)=\"selectExtensionMigrationType($event)\"\r\n [(ngModel)]=\"prepareMigrationData.moveType.extension\">\r\n <mat-radio-button\r\n class=\"radio-button\"\r\n value=\"1\"\r\n color=\"primary\">\r\n Keep current extension {{ prepareMigrationData.primaryExtension }}\r\n </mat-radio-button>\r\n <mat-radio-button\r\n class=\"radio-button\"\r\n value=\"2\"\r\n color=\"primary\">\r\n Select a new extension\r\n </mat-radio-button>\r\n\r\n <div *ngIf=\"prepareMigrationData.moveType.extension === '2'\" class=\"input-container\">\r\n <mat-form-field appearance=\"outline\">\r\n <input\r\n matInput\r\n type=\"text\"\r\n name=\"newExtension\"\r\n (change)=\"onExtensionChange($event)\"\r\n [(ngModel)]=\"prepareMigrationData.newExtension\"\r\n [placeholder]=\"'Enter extension'\"\r\n />\r\n </mat-form-field>\r\n </div>\r\n\r\n <mat-radio-button\r\n class=\"radio-button\"\r\n value=\"3\"\r\n color=\"primary\"\r\n [disabled]=\"prepareMigrationData.removePhoneNumber\">Remove extension\r\n </mat-radio-button>\r\n </mat-radio-group>\r\n </ng-container>\r\n </div>\r\n </form>\r\n\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-next\" matStepperNext\r\n [disabled]=\"isNextFromSelectLocationDisabled()\" (click)=\"goNextStep(stepper)\">\r\n Next\r\n </button>\r\n <button mat-button class=\"webex-btn btn-cancel\" (click)=\"cancel.emit()\">Cancel</button>\r\n </div>\r\n </mat-step>\r\n <mat-step [aria-labelledby]=\"'disabled_af'\">\r\n <div class=\"step-title\">Step 2: Device eligibility check</div>\r\n <ng-template matStepLabel>Device eligibility check</ng-template>\r\n <div class=\"move-user-tab-content-box\">\r\n <app-devices-move-user-tab></app-devices-move-user-tab>\r\n </div>\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-next\" matStepperNext (click)=\"goNextStep(stepper)\">\r\n Next\r\n </button>\r\n <button mat-button class=\"webex-btn btn-cancel\" matStepperPrevious>\r\n Previous\r\n </button>\r\n </div>\r\n </mat-step>\r\n <mat-step [aria-labelledby]=\"'disabled_af'\">\r\n <div class=\"step-title\">Step 3: Validation</div>\r\n <ng-template matStepLabel>Validation</ng-template>\r\n\r\n <div class=\"devices-move-user-box\">\r\n <mat-label class=\"mat-label\">Validation</mat-label>\r\n <div *ngIf=\"!prepareMigrationData.errors?.length\">\r\n <ng-container *ngTemplateOutlet=\"validationSuccess\">\r\n </ng-container>\r\n </div>\r\n <div *ngIf=\"prepareMigrationData.errors?.length\">\r\n <ng-container *ngTemplateOutlet=\"validationFailed\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n <button #nextAfterMoveBtn mat-button class=\"invisible-next-btn\" matStepperNext\r\n (click)=\"goNextStep(stepper)\"></button>\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-next\"\r\n [disabled]=\"prepareMigrationData.errors.length > 0 || !prepareMigrationData.isConfirm\"\r\n (click)=\"startMigration()\">\r\n Upgrade\r\n </button>\r\n <button mat-button class=\"webex-btn btn-cancel\" matStepperPrevious>\r\n Previous\r\n </button>\r\n </div>\r\n </mat-step>\r\n <mat-step>\r\n <div class=\"step-title\">Step 4: Result</div>\r\n <ng-template matStepLabel>Result</ng-template>\r\n\r\n <div class=\"devices-move-user-box\">\r\n <mat-label class=\"mat-label\">Moving user has been successfully initiated!</mat-label>\r\n <p class=\"validation-text\">\r\n The user will be moved to the new location {{prepareMigrationData.newLocation?.name}}\r\n <br/>\r\n For the progress of move, please visit the\r\n <a class=\"form-link\" href=\"#\">user details</a>.\r\n </p>\r\n </div>\r\n\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-done\" (click)=\"done.emit(true)\">\r\n Done\r\n </button>\r\n </div>\r\n </mat-step>\r\n </mat-stepper>\r\n</div>\r\n\r\n<ng-template #validationSuccess>\r\n <p class=\"validation-text\">\r\n Validation has completed successfully. The user can be moved to the\r\n new location. Please be aware of the potential impact of the changes\r\n below.\r\n </p>\r\n <mat-label class=\"mat-label\">Expected changes</mat-label>\r\n <ul>\r\n <li>Cisco 6941 device (SEP987987987987) will not be migrated</li>\r\n <li>\r\n The user will be removed from the Call Pickup Group:\r\n 1675090334-Paris_pickup\r\n </li>\r\n <li>\r\n If Webex App is currently in use, the user will to sign in again to\r\n update the service.\r\n </li>\r\n </ul>\r\n <form>\r\n <mat-checkbox class=\"checkbox\" name=\"isConfirm\" [(ngModel)]=\"prepareMigrationData.isConfirm\"\r\n color=\"primary\">\r\n I confirm that I understand these conditions. I acknowledge the\r\n changes.\r\n </mat-checkbox>\r\n </form>\r\n\r\n</ng-template>\r\n\r\n<ng-template #validationFailed>\r\n <p class=\"validation-text\">\r\n Validation is failed. User migration is not available\r\n </p>\r\n <ul>\r\n <li *ngFor=\"let error of prepareMigrationData.errors\">{{ error }}</li>\r\n </ul>\r\n</ng-template>\r\n", styles: [".mat-stepper-horizontal{height:-moz-fit-content;height:fit-content;max-height:750px;margin:0 auto;width:70%;background-color:transparent}.mat-stepper-horizontal .mat-horizontal-stepper-header-container{margin:0 auto;width:800px}.mat-stepper-horizontal .mat-step-icon{width:28px;height:28px;border:3px solid hsl(0,0%,50.2%)}.mat-stepper-horizontal .mat-step-icon-selected{background-color:#c6c6c6!important;border-color:#19487d}.mat-stepper-horizontal .mat-step-icon-state-number{background-color:#fff}.mat-stepper-horizontal .mat-step-icon-state-edit,.mat-stepper-horizontal .mat-step-header .mat-step-icon-state-done{background-color:#1170cf;border-color:#1170cf}.mat-stepper-horizontal .mat-step-icon-content{display:none}.mat-stepper-horizontal .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child):before,.mat-stepper-horizontal [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child):before,.mat-stepper-horizontal .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child):after,.mat-stepper-horizontal [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child):after{border-top-width:3px!important}.mat-stepper-horizontal .mat-horizontal-stepper-header:before,.mat-stepper-horizontal .mat-horizontal-stepper-header:after,.mat-stepper-horizontal .mat-stepper-horizontal-line{border-top-color:#1170cf!important;border-top-width:3px!important;border-top-style:solid!important}.mat-stepper-horizontal .mat-horizontal-stepper-header[aria-selected=true]~.mat-stepper-horizontal-line,.mat-stepper-horizontal .mat-horizontal-stepper-header[aria-selected=true]~.mat-horizontal-stepper-header:before,.mat-stepper-horizontal .mat-horizontal-stepper-header[aria-selected=true]~.mat-horizontal-stepper-header:after{border-top-width:3px!important;background-color:#7b7b7b!important;border-top-color:#7b7b7b!important}::ng-deep .mat-form-field-infix{padding:0!important;width:100%}::ng-deep .mat-form-field-appearance-outline .mat-input-element{height:35px;width:100%;line-height:35px;margin:5px 0 0}::ng-deep .mat-form-field{width:350px}::ng-deep .mat-step-header[aria-labelledby=disabled_af]{pointer-events:none!important;cursor:not-allowed}::ng-deep .mat-step-header[aria-labelledby=disabled_af] .mat-step-icon,::ng-deep .mat-step-header[aria-labelledby=disabled_af] .mat-step-label{cursor:not-allowed;opacity:.6}.mat-mdc-form-field{margin-top:16px}.mat-label{font-size:16px;font-weight:600;margin:1rem 0}.step-title{font-size:28px;font-weight:700;margin:.5rem 0 1.5rem 2rem}.validation-text{margin-top:.5rem;margin-bottom:2rem}ul{padding:.5rem 2rem;margin-top:.5rem;margin-bottom:2rem}.devices-move-user-box{background-color:#fff;padding:2.5rem;padding:1rem 2.5rem;min-height:350px;border-radius:.5rem}.user-select-location-box{background-color:#fff;padding:2.5rem;height:350px;border-radius:.5rem}.form-link{text-decoration:none;color:#007bff}.radio-group{display:flex;flex-direction:column;margin:15px 0;align-items:flex-start}.radio-button{margin:.5rem 0}.select{width:350px;padding:.5rem;margin:.5rem 0;border:1px solid #a0a0a0;border-radius:.5rem}.step-actions{display:flex;flex-flow:row-reverse;margin-top:2rem;gap:1rem}.webex-btn{border:1px solid black;border-radius:1rem;cursor:pointer;gap:1rem}.btn-next{background-color:#000;color:#fff}.btn-cancel,.btn-done{background-color:#fff;color:#000}.select-container{position:relative;width:100%;max-width:300px}.select-container .mat-progress-spinner{position:absolute;left:45%;top:35px}.invisible-next-btn{height:1px;width:1px}.mat-error{margin:0 0 15px}mat-label{display:block}.btn-next{min-width:80px}.mat-button-disabled{background-color:#bbb;color:#fff;border:1px solid grey;cursor:default!important}.move-user-tab-content-box{background-color:#fff;min-height:350px;border-radius:.5rem;box-sizing:border-box;padding:25px}.input-container{display:flex;flex-direction:column;gap:1rem}.input-container input{height:-moz-fit-content!important;height:fit-content!important}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i7.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i7.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i8.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: i9.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i10.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i10.MatLabel, selector: "mat-label" }, { kind: "directive", type: i11.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: i12.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i12.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i14.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i14.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i14.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["selectedIndex", "disableRipple", "color", "labelPosition", "headerPosition", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "directive", type: i14.MatStepperNext, selector: "button[matStepperNext]", inputs: ["type"] }, { kind: "directive", type: i14.MatStepperPrevious, selector: "button[matStepperPrevious]", inputs: ["type"] }, { kind: "component", type: i7$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i16.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i16.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { kind: "component", type: AppLoaderComponent, selector: "app-loader" }, { kind: "component", type: DevicesMoveUserWizardTabComponent, selector: "app-devices-move-user-tab" }], encapsulation: i0.ViewEncapsulation.None });
|
|
1429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserStepperComponent, decorators: [{
|
|
1430
|
+
type: Component,
|
|
1431
|
+
args: [{ selector: 'app-move-user-stepper', encapsulation: ViewEncapsulation.None, template: "<app-loader *ngIf=\"prepareMigrationData.pending || moveUserPending || dataPending\"></app-loader>\r\n<div id=\"move-user-stepper\">\r\n <mat-stepper *ngIf=\"prepareMigrationData?.moveType\" [linear]=\"isLinear\" labelPosition=\"bottom\" #stepper>\r\n <mat-step>\r\n <div class=\"step-title\">Step 1: Select location</div>\r\n <!-- <form>-->\r\n <ng-template matStepLabel>Select location</ng-template>\r\n <form>\r\n <div class=\"move-user-tab-content-box\">\r\n <mat-label class=\"mat-label\">Select a new location</mat-label>\r\n <mat-form-field class=\"app-autocomplete-input\" appearance=\"outline\">\r\n <input placeholder=\"Select location\" [matAutocomplete]=\"auto\" matInput\r\n (input)=\"onLocationAutocomplete($event)\"/>\r\n <mat-autocomplete #auto=\"matAutocomplete\" [displayWith]=\"displayLocation\"\r\n (optionSelected)=\"onLocationChange($event)\">\r\n <mat-option *ngFor=\"let location of filteredLocations\" [value]=\"location\">\r\n {{ location.name }}\r\n </mat-option>\r\n </mat-autocomplete>\r\n </mat-form-field>\r\n <div *ngIf=\"!dataPending && !locations.length\" class=\"mat-error\">\r\n Locations are not available\r\n </div>\r\n\r\n <ng-container *ngIf=\"prepareMigrationData?.newLocation?.id\">\r\n <mat-label class=\"mat-label\">Phone number</mat-label>\r\n <mat-radio-group class=\"radio-group\" name=\"moveTypePhoneNumber\"\r\n [(ngModel)]=\"prepareMigrationData.moveType.phoneNumber\" name=\"phoneNumber\"\r\n (change)=\"selectPhoneNumberMigrationType($event)\">\r\n <mat-radio-button\r\n class=\"radio-button\"\r\n value=\"1\"\r\n color=\"primary\">\r\n Keep current number\r\n {{ prepareMigrationData.primaryPhoneNumber || currentNumber }}\r\n </mat-radio-button>\r\n <mat-radio-button\r\n class=\"radio-button\"\r\n value=\"2\"\r\n color=\"primary\"\r\n [disabled]=\"!prepareMigrationData.newLocation?.id\">\r\n Select a new number\r\n </mat-radio-button>\r\n\r\n <div *ngIf=\"prepareMigrationData.moveType.phoneNumber === '2'\" class=\"select-container\">\r\n <mat-progress-spinner *ngIf=\"phoneNumberPending\" class=\"field-spinner\" mode=\"indeterminate\"\r\n [diameter]=\"70\" strokeWidth=\"3\"></mat-progress-spinner>\r\n\r\n <mat-form-field class=\"app-autocomplete-input\" appearance=\"outline\">\r\n <input placeholder=\"Select number\" [(ngModel)]=\"prepareMigrationData.newPhoneNumber\"\r\n [matAutocomplete]=\"autoPh\" matInput name=\"newPhoneNumber\"\r\n (input)=\"onNumberAutocomplete()\"/>\r\n <mat-autocomplete #autoPh=\"matAutocomplete\" (optionSelected)=\"onPhoneNumberChange($event)\">\r\n <mat-option *ngFor=\"let number of filteredPhoneNumbers\" [value]=\"number\">\r\n {{ number }}\r\n </mat-option>\r\n </mat-autocomplete>\r\n </mat-form-field>\r\n <div *ngIf=\"!phoneNumberPending && !dnsService.phoneNumbers?.length\" class=\"mat-error\">\r\n Phone numbers are not available for this location\r\n </div>\r\n </div>\r\n <mat-radio-button\r\n class=\"radio-button\"\r\n value=\"3\"\r\n color=\"primary\"\r\n [disabled]=\"prepareMigrationData.removeExtension\">\r\n Remove number\r\n </mat-radio-button>\r\n </mat-radio-group>\r\n\r\n <mat-label class=\"mat-label\">Extension</mat-label>\r\n <mat-radio-group class=\"radio-group\" name=\"moveTypeExtension\"\r\n (change)=\"selectExtensionMigrationType($event)\"\r\n [(ngModel)]=\"prepareMigrationData.moveType.extension\">\r\n <mat-radio-button\r\n class=\"radio-button\"\r\n value=\"1\"\r\n color=\"primary\">\r\n Keep current extension {{ prepareMigrationData.primaryExtension }}\r\n </mat-radio-button>\r\n <mat-radio-button\r\n class=\"radio-button\"\r\n value=\"2\"\r\n color=\"primary\">\r\n Select a new extension\r\n </mat-radio-button>\r\n\r\n <div *ngIf=\"prepareMigrationData.moveType.extension === '2'\" class=\"input-container\">\r\n <mat-form-field appearance=\"outline\">\r\n <input\r\n matInput\r\n type=\"text\"\r\n name=\"newExtension\"\r\n (change)=\"onExtensionChange($event)\"\r\n [(ngModel)]=\"prepareMigrationData.newExtension\"\r\n [placeholder]=\"'Enter extension'\"\r\n />\r\n </mat-form-field>\r\n </div>\r\n\r\n <mat-radio-button\r\n class=\"radio-button\"\r\n value=\"3\"\r\n color=\"primary\"\r\n [disabled]=\"prepareMigrationData.removePhoneNumber\">Remove extension\r\n </mat-radio-button>\r\n </mat-radio-group>\r\n </ng-container>\r\n </div>\r\n </form>\r\n\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-next\" matStepperNext\r\n [disabled]=\"isNextFromSelectLocationDisabled()\" (click)=\"goNextStep(stepper)\">\r\n Next\r\n </button>\r\n <button mat-button class=\"webex-btn btn-cancel\" (click)=\"cancel.emit()\">Cancel</button>\r\n </div>\r\n </mat-step>\r\n <mat-step [aria-labelledby]=\"'disabled_af'\">\r\n <div class=\"step-title\">Step 2: Device eligibility check</div>\r\n <ng-template matStepLabel>Device eligibility check</ng-template>\r\n <div class=\"move-user-tab-content-box\">\r\n <app-devices-move-user-tab></app-devices-move-user-tab>\r\n </div>\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-next\" matStepperNext (click)=\"goNextStep(stepper)\">\r\n Next\r\n </button>\r\n <button mat-button class=\"webex-btn btn-cancel\" matStepperPrevious>\r\n Previous\r\n </button>\r\n </div>\r\n </mat-step>\r\n <mat-step [aria-labelledby]=\"'disabled_af'\">\r\n <div class=\"step-title\">Step 3: Validation</div>\r\n <ng-template matStepLabel>Validation</ng-template>\r\n\r\n <div class=\"devices-move-user-box\">\r\n <mat-label class=\"mat-label\">Validation</mat-label>\r\n <div *ngIf=\"!prepareMigrationData.errors?.length\">\r\n <ng-container *ngTemplateOutlet=\"validationSuccess\">\r\n </ng-container>\r\n </div>\r\n <div *ngIf=\"prepareMigrationData.errors?.length\">\r\n <ng-container *ngTemplateOutlet=\"validationFailed\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n <button #nextAfterMoveBtn mat-button class=\"invisible-next-btn\" matStepperNext\r\n (click)=\"goNextStep(stepper)\"></button>\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-next\"\r\n [disabled]=\"prepareMigrationData.errors.length > 0 || !prepareMigrationData.isConfirm\"\r\n (click)=\"startMigration()\">\r\n Upgrade\r\n </button>\r\n <button mat-button class=\"webex-btn btn-cancel\" matStepperPrevious>\r\n Previous\r\n </button>\r\n </div>\r\n </mat-step>\r\n <mat-step>\r\n <div class=\"step-title\">Step 4: Result</div>\r\n <ng-template matStepLabel>Result</ng-template>\r\n\r\n <div class=\"devices-move-user-box\">\r\n <mat-label class=\"mat-label\">Moving user has been successfully initiated!</mat-label>\r\n <p class=\"validation-text\">\r\n The user will be moved to the new location {{prepareMigrationData.newLocation?.name}}\r\n <br/>\r\n For the progress of move, please visit the\r\n <a class=\"form-link\" href=\"#\">user details</a>.\r\n </p>\r\n </div>\r\n\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-done\" (click)=\"done.emit(true)\">\r\n Done\r\n </button>\r\n </div>\r\n </mat-step>\r\n </mat-stepper>\r\n</div>\r\n\r\n<ng-template #validationSuccess>\r\n <p class=\"validation-text\">\r\n Validation has completed successfully. The user can be moved to the\r\n new location. Please be aware of the potential impact of the changes\r\n below.\r\n </p>\r\n <mat-label class=\"mat-label\">Expected changes</mat-label>\r\n <ul>\r\n <li>Cisco 6941 device (SEP987987987987) will not be migrated</li>\r\n <li>\r\n The user will be removed from the Call Pickup Group:\r\n 1675090334-Paris_pickup\r\n </li>\r\n <li>\r\n If Webex App is currently in use, the user will to sign in again to\r\n update the service.\r\n </li>\r\n </ul>\r\n <form>\r\n <mat-checkbox class=\"checkbox\" name=\"isConfirm\" [(ngModel)]=\"prepareMigrationData.isConfirm\"\r\n color=\"primary\">\r\n I confirm that I understand these conditions. I acknowledge the\r\n changes.\r\n </mat-checkbox>\r\n </form>\r\n\r\n</ng-template>\r\n\r\n<ng-template #validationFailed>\r\n <p class=\"validation-text\">\r\n Validation is failed. User migration is not available\r\n </p>\r\n <ul>\r\n <li *ngFor=\"let error of prepareMigrationData.errors\">{{ error }}</li>\r\n </ul>\r\n</ng-template>\r\n", styles: [".mat-stepper-horizontal{height:-moz-fit-content;height:fit-content;max-height:750px;margin:0 auto;width:70%;background-color:transparent}.mat-stepper-horizontal .mat-horizontal-stepper-header-container{margin:0 auto;width:800px}.mat-stepper-horizontal .mat-step-icon{width:28px;height:28px;border:3px solid hsl(0,0%,50.2%)}.mat-stepper-horizontal .mat-step-icon-selected{background-color:#c6c6c6!important;border-color:#19487d}.mat-stepper-horizontal .mat-step-icon-state-number{background-color:#fff}.mat-stepper-horizontal .mat-step-icon-state-edit,.mat-stepper-horizontal .mat-step-header .mat-step-icon-state-done{background-color:#1170cf;border-color:#1170cf}.mat-stepper-horizontal .mat-step-icon-content{display:none}.mat-stepper-horizontal .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child):before,.mat-stepper-horizontal [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child):before,.mat-stepper-horizontal .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child):after,.mat-stepper-horizontal [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child):after{border-top-width:3px!important}.mat-stepper-horizontal .mat-horizontal-stepper-header:before,.mat-stepper-horizontal .mat-horizontal-stepper-header:after,.mat-stepper-horizontal .mat-stepper-horizontal-line{border-top-color:#1170cf!important;border-top-width:3px!important;border-top-style:solid!important}.mat-stepper-horizontal .mat-horizontal-stepper-header[aria-selected=true]~.mat-stepper-horizontal-line,.mat-stepper-horizontal .mat-horizontal-stepper-header[aria-selected=true]~.mat-horizontal-stepper-header:before,.mat-stepper-horizontal .mat-horizontal-stepper-header[aria-selected=true]~.mat-horizontal-stepper-header:after{border-top-width:3px!important;background-color:#7b7b7b!important;border-top-color:#7b7b7b!important}::ng-deep .mat-form-field-infix{padding:0!important;width:100%}::ng-deep .mat-form-field-appearance-outline .mat-input-element{height:35px;width:100%;line-height:35px;margin:5px 0 0}::ng-deep .mat-form-field{width:350px}::ng-deep .mat-step-header[aria-labelledby=disabled_af]{pointer-events:none!important;cursor:not-allowed}::ng-deep .mat-step-header[aria-labelledby=disabled_af] .mat-step-icon,::ng-deep .mat-step-header[aria-labelledby=disabled_af] .mat-step-label{cursor:not-allowed;opacity:.6}.mat-mdc-form-field{margin-top:16px}.mat-label{font-size:16px;font-weight:600;margin:1rem 0}.step-title{font-size:28px;font-weight:700;margin:.5rem 0 1.5rem 2rem}.validation-text{margin-top:.5rem;margin-bottom:2rem}ul{padding:.5rem 2rem;margin-top:.5rem;margin-bottom:2rem}.devices-move-user-box{background-color:#fff;padding:2.5rem;padding:1rem 2.5rem;min-height:350px;border-radius:.5rem}.user-select-location-box{background-color:#fff;padding:2.5rem;height:350px;border-radius:.5rem}.form-link{text-decoration:none;color:#007bff}.radio-group{display:flex;flex-direction:column;margin:15px 0;align-items:flex-start}.radio-button{margin:.5rem 0}.select{width:350px;padding:.5rem;margin:.5rem 0;border:1px solid #a0a0a0;border-radius:.5rem}.step-actions{display:flex;flex-flow:row-reverse;margin-top:2rem;gap:1rem}.webex-btn{border:1px solid black;border-radius:1rem;cursor:pointer;gap:1rem}.btn-next{background-color:#000;color:#fff}.btn-cancel,.btn-done{background-color:#fff;color:#000}.select-container{position:relative;width:100%;max-width:300px}.select-container .mat-progress-spinner{position:absolute;left:45%;top:35px}.invisible-next-btn{height:1px;width:1px}.mat-error{margin:0 0 15px}mat-label{display:block}.btn-next{min-width:80px}.mat-button-disabled{background-color:#bbb;color:#fff;border:1px solid grey;cursor:default!important}.move-user-tab-content-box{background-color:#fff;min-height:350px;border-radius:.5rem;box-sizing:border-box;padding:25px}.input-container{display:flex;flex-direction:column;gap:1rem}.input-container input{height:-moz-fit-content!important;height:fit-content!important}\n"] }]
|
|
1432
|
+
}], ctorParameters: function () { return [{ type: DnsService }, { type: UserService }, { type: SiteSettingsService }, { type: NotificationService }, { type: MoveUserService }]; }, propDecorators: { nextAfterMoveBtn: [{
|
|
1433
|
+
type: ViewChild,
|
|
1434
|
+
args: ['nextAfterMoveBtn']
|
|
1435
|
+
}], done: [{
|
|
1436
|
+
type: Output
|
|
1437
|
+
}], user: [{
|
|
1438
|
+
type: Input
|
|
1439
|
+
}], customerId: [{
|
|
1440
|
+
type: Input
|
|
1441
|
+
}], runMoveUser: [{
|
|
1442
|
+
type: Output
|
|
1443
|
+
}], cancel: [{
|
|
1444
|
+
type: Output
|
|
1445
|
+
}] } });
|
|
1446
|
+
|
|
1447
|
+
class MoveUserWizardComponent {
|
|
1448
|
+
constructor(dnsService) {
|
|
1449
|
+
this.dnsService = dnsService;
|
|
1450
|
+
this.closeMoveUserWizard = new EventEmitter();
|
|
1451
|
+
this.done = new EventEmitter();
|
|
1452
|
+
this.runMoveUser = new EventEmitter();
|
|
1453
|
+
this.dataPending = false;
|
|
1454
|
+
}
|
|
1455
|
+
onClose() {
|
|
1456
|
+
this.closeMoveUserWizard.emit();
|
|
1457
|
+
}
|
|
1458
|
+
onRunMoveUser() {
|
|
1459
|
+
this.runMoveUser.emit();
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
MoveUserWizardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserWizardComponent, deps: [{ token: DnsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1463
|
+
MoveUserWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MoveUserWizardComponent, selector: "app-move-user-wizard", inputs: { user: "user", customerId: "customerId" }, outputs: { closeMoveUserWizard: "closeMoveUserWizard", done: "done", runMoveUser: "runMoveUser" }, ngImport: i0, template: "<app-loader *ngIf=\"dataPending\"></app-loader>\r\n<div class=\"move-user-stepper-container\">\r\n <header class=\"move-user-header\">\r\n <div class=\"move-user-header__title\">Upgrade User {{user.userid}}</div>\r\n <div class=\"move-user-header__close\">\r\n <span class=\"app-icon icon-white-close\" (click)=\"onClose()\"></span>\r\n </div>\r\n </header>\r\n <app-move-user-stepper *ngIf=\"user\" [customerId]=\"customerId\"\r\n [user]=\"user\" (cancel)=\"onClose()\" (done)=\"done.emit()\"\r\n (runMoveUser)=\"onRunMoveUser()\"></app-move-user-stepper>\r\n</div>\r\n", styles: [".move-user-header{background-color:#1170cf;height:45px;padding:1rem 1.5rem;display:flex;align-items:center;justify-content:space-between;color:#fff;font-size:18px;font-weight:500}.move-user-header__close{cursor:pointer}.move-user-header__close i{font-size:25px;font-weight:100}.app-icon{height:20px;width:20px;display:inline-block;cursor:pointer;background-repeat:no-repeat;background-position:center}.icon-close{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%0D%3Cpath d%3D%22M12.0005 13.0538L6.92737 18.1269C6.78892 18.2654 6.61489 18.3362 6.40527 18.3394C6.19567 18.3426 6.01844 18.2718 5.87357 18.1269C5.72869 17.982 5.65625 17.8064 5.65625 17.6C5.65625 17.3936 5.72869 17.218 5.87357 17.0731L10.9466 12L5.87357 6.92689C5.73511 6.78844 5.66427 6.6144 5.66107 6.40479C5.65786 6.19519 5.72869 6.01795 5.87357 5.87309C6.01844 5.7282 6.19407 5.65576 6.40047 5.65576C6.60687 5.65576 6.78251 5.7282 6.92737 5.87309L12.0005 10.9462L17.0736 5.87309C17.212 5.73462 17.3861 5.66379 17.5957 5.66059C17.8053 5.65737 17.9825 5.7282 18.1274 5.87309C18.2723 6.01795 18.3447 6.19359 18.3447 6.39999C18.3447 6.60639 18.2723 6.78202 18.1274 6.92689L13.0543 12L18.1274 17.0731C18.2658 17.2115 18.3367 17.3856 18.3399 17.5952C18.3431 17.8048 18.2723 17.982 18.1274 18.1269C17.9825 18.2718 17.8069 18.3442 17.6005 18.3442C17.3941 18.3442 17.2184 18.2718 17.0736 18.1269L12.0005 13.0538Z%22 fill%3D%22%23333333%22%2F%3E%0D%3C%2Fsvg%3E%0D\")}.icon-white-close{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%0D%3Cpath d%3D%22M13.0606 11.9998L19.2803 5.78001C19.35 5.71038 19.4052 5.6277 19.4429 5.53672C19.4806 5.44573 19.5 5.34822 19.5 5.24974C19.5 5.15126 19.4806 5.05374 19.4429 4.96276C19.4052 4.87177 19.3499 4.7891 19.2803 4.71947C19.2107 4.64983 19.128 4.5946 19.037 4.55691C18.946 4.51923 18.8485 4.49983 18.75 4.49983C18.6515 4.49984 18.554 4.51924 18.463 4.55692C18.3721 4.59461 18.2894 4.64985 18.2198 4.71949L12 10.9392L5.78026 4.71949C5.71077 4.64921 5.62807 4.59335 5.53691 4.55514C5.44576 4.51692 5.34795 4.49711 5.24911 4.49683C5.15027 4.49655 5.05235 4.51581 4.96098 4.55351C4.86961 4.59121 4.78659 4.64659 4.7167 4.71648C4.64681 4.78638 4.59143 4.8694 4.55374 4.96077C4.51605 5.05214 4.49679 5.15006 4.49707 5.2489C4.49736 5.34774 4.51718 5.44555 4.5554 5.5367C4.59361 5.62786 4.64947 5.71055 4.71976 5.78004L10.9395 11.9998L4.71976 18.2195C4.65013 18.2892 4.59489 18.3718 4.5572 18.4628C4.51951 18.5538 4.50011 18.6513 4.50011 18.7498C4.50011 18.8483 4.51951 18.9458 4.5572 19.0368C4.59488 19.1278 4.65012 19.2105 4.71976 19.2801C4.7894 19.3497 4.87207 19.405 4.96305 19.4427C5.05403 19.4803 5.15155 19.4997 5.25003 19.4997C5.34851 19.4997 5.44603 19.4803 5.53701 19.4427C5.628 19.405 5.71067 19.3497 5.78031 19.2801L12.0001 13.0603L18.2198 19.2801C18.3604 19.4207 18.5512 19.4997 18.7501 19.4997C18.949 19.4997 19.1397 19.4207 19.2804 19.2801C19.421 19.1395 19.5 18.9487 19.5 18.7498C19.5 18.5509 19.421 18.3602 19.2804 18.2195L13.0606 11.9998Z%22 fill%3D%22white%22 fill-opacity%3D%220.95%22%2F%3E%0D%3C%2Fsvg%3E%0D\")}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AppLoaderComponent, selector: "app-loader" }, { kind: "component", type: MoveUserStepperComponent, selector: "app-move-user-stepper", inputs: ["user", "customerId"], outputs: ["done", "runMoveUser", "cancel"] }] });
|
|
1464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserWizardComponent, decorators: [{
|
|
1465
|
+
type: Component,
|
|
1466
|
+
args: [{ selector: 'app-move-user-wizard', template: "<app-loader *ngIf=\"dataPending\"></app-loader>\r\n<div class=\"move-user-stepper-container\">\r\n <header class=\"move-user-header\">\r\n <div class=\"move-user-header__title\">Upgrade User {{user.userid}}</div>\r\n <div class=\"move-user-header__close\">\r\n <span class=\"app-icon icon-white-close\" (click)=\"onClose()\"></span>\r\n </div>\r\n </header>\r\n <app-move-user-stepper *ngIf=\"user\" [customerId]=\"customerId\"\r\n [user]=\"user\" (cancel)=\"onClose()\" (done)=\"done.emit()\"\r\n (runMoveUser)=\"onRunMoveUser()\"></app-move-user-stepper>\r\n</div>\r\n", styles: [".move-user-header{background-color:#1170cf;height:45px;padding:1rem 1.5rem;display:flex;align-items:center;justify-content:space-between;color:#fff;font-size:18px;font-weight:500}.move-user-header__close{cursor:pointer}.move-user-header__close i{font-size:25px;font-weight:100}.app-icon{height:20px;width:20px;display:inline-block;cursor:pointer;background-repeat:no-repeat;background-position:center}.icon-close{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%0D%3Cpath d%3D%22M12.0005 13.0538L6.92737 18.1269C6.78892 18.2654 6.61489 18.3362 6.40527 18.3394C6.19567 18.3426 6.01844 18.2718 5.87357 18.1269C5.72869 17.982 5.65625 17.8064 5.65625 17.6C5.65625 17.3936 5.72869 17.218 5.87357 17.0731L10.9466 12L5.87357 6.92689C5.73511 6.78844 5.66427 6.6144 5.66107 6.40479C5.65786 6.19519 5.72869 6.01795 5.87357 5.87309C6.01844 5.7282 6.19407 5.65576 6.40047 5.65576C6.60687 5.65576 6.78251 5.7282 6.92737 5.87309L12.0005 10.9462L17.0736 5.87309C17.212 5.73462 17.3861 5.66379 17.5957 5.66059C17.8053 5.65737 17.9825 5.7282 18.1274 5.87309C18.2723 6.01795 18.3447 6.19359 18.3447 6.39999C18.3447 6.60639 18.2723 6.78202 18.1274 6.92689L13.0543 12L18.1274 17.0731C18.2658 17.2115 18.3367 17.3856 18.3399 17.5952C18.3431 17.8048 18.2723 17.982 18.1274 18.1269C17.9825 18.2718 17.8069 18.3442 17.6005 18.3442C17.3941 18.3442 17.2184 18.2718 17.0736 18.1269L12.0005 13.0538Z%22 fill%3D%22%23333333%22%2F%3E%0D%3C%2Fsvg%3E%0D\")}.icon-white-close{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%0D%3Cpath d%3D%22M13.0606 11.9998L19.2803 5.78001C19.35 5.71038 19.4052 5.6277 19.4429 5.53672C19.4806 5.44573 19.5 5.34822 19.5 5.24974C19.5 5.15126 19.4806 5.05374 19.4429 4.96276C19.4052 4.87177 19.3499 4.7891 19.2803 4.71947C19.2107 4.64983 19.128 4.5946 19.037 4.55691C18.946 4.51923 18.8485 4.49983 18.75 4.49983C18.6515 4.49984 18.554 4.51924 18.463 4.55692C18.3721 4.59461 18.2894 4.64985 18.2198 4.71949L12 10.9392L5.78026 4.71949C5.71077 4.64921 5.62807 4.59335 5.53691 4.55514C5.44576 4.51692 5.34795 4.49711 5.24911 4.49683C5.15027 4.49655 5.05235 4.51581 4.96098 4.55351C4.86961 4.59121 4.78659 4.64659 4.7167 4.71648C4.64681 4.78638 4.59143 4.8694 4.55374 4.96077C4.51605 5.05214 4.49679 5.15006 4.49707 5.2489C4.49736 5.34774 4.51718 5.44555 4.5554 5.5367C4.59361 5.62786 4.64947 5.71055 4.71976 5.78004L10.9395 11.9998L4.71976 18.2195C4.65013 18.2892 4.59489 18.3718 4.5572 18.4628C4.51951 18.5538 4.50011 18.6513 4.50011 18.7498C4.50011 18.8483 4.51951 18.9458 4.5572 19.0368C4.59488 19.1278 4.65012 19.2105 4.71976 19.2801C4.7894 19.3497 4.87207 19.405 4.96305 19.4427C5.05403 19.4803 5.15155 19.4997 5.25003 19.4997C5.34851 19.4997 5.44603 19.4803 5.53701 19.4427C5.628 19.405 5.71067 19.3497 5.78031 19.2801L12.0001 13.0603L18.2198 19.2801C18.3604 19.4207 18.5512 19.4997 18.7501 19.4997C18.949 19.4997 19.1397 19.4207 19.2804 19.2801C19.421 19.1395 19.5 18.9487 19.5 18.7498C19.5 18.5509 19.421 18.3602 19.2804 18.2195L13.0606 11.9998Z%22 fill%3D%22white%22 fill-opacity%3D%220.95%22%2F%3E%0D%3C%2Fsvg%3E%0D\")}\n"] }]
|
|
1467
|
+
}], ctorParameters: function () { return [{ type: DnsService }]; }, propDecorators: { user: [{
|
|
1468
|
+
type: Input
|
|
1469
|
+
}], customerId: [{
|
|
1470
|
+
type: Input
|
|
1471
|
+
}], closeMoveUserWizard: [{
|
|
1472
|
+
type: Output
|
|
1473
|
+
}], done: [{
|
|
1474
|
+
type: Output
|
|
1475
|
+
}], runMoveUser: [{
|
|
1476
|
+
type: Output
|
|
1477
|
+
}] } });
|
|
1478
|
+
|
|
1479
|
+
class TableToolbarComponent {
|
|
1480
|
+
constructor() {
|
|
1481
|
+
this.searchChange = new EventEmitter();
|
|
1482
|
+
}
|
|
1483
|
+
onSearchInputChange(event) {
|
|
1484
|
+
const value = event.target.value.trim().toLowerCase() || '';
|
|
1485
|
+
if (this.timerId)
|
|
1486
|
+
window.clearTimeout(this.timerId);
|
|
1487
|
+
this.timerId = window.setTimeout(() => this.searchChange.emit(value), 1500);
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
TableToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1491
|
+
TableToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TableToolbarComponent, selector: "tk-users-table-toolbar", inputs: { totalUsersCount: "totalUsersCount" }, outputs: { searchChange: "searchChange" }, ngImport: i0, template: "<header style=\"margin-bottom: 1rem;\">\r\n <div style=\"display: flex; align-items: center; justify-content: space-between;\">\r\n <div class=\"collection-header-left\">\r\n <div style=\"display: flex; align-items: center; gap: 12px;\">\r\n <!-- Search Input -->\r\n <div style=\"position: relative; width: fit-content; min-width: 200px;\">\r\n <input (input)=\"onSearchInputChange($event)\" type=\"text\" placeholder=\"Search by display name, email\" style=\"width: 100%; height: 34px; border-radius: .5rem; font-size: 16px; padding: 6px 12px 6px 44px; border: 1px solid #00000080; background: #fff; color: #222; outline: none; box-sizing: border-box; min-width: 280px;\">\r\n <span style=\"position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #757575; font-size: 18px; font-weight: normal; pointer-events: none;\">\r\n <i class=\"material-icons\" style=\"font-size: 18px; font-weight: normal;\">search</i>\r\n </span>\r\n </div>\r\n <span style=\"margin: 0 4px; color: #757575; font-size: 1rem;\">or</span>\r\n <!-- Filter Select -->\r\n <div style=\"display: flex; align-items: center; position: relative; width: fit-content; min-width: 200px;\">\r\n <span style=\"position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #757575; font-size: 18px; font-weight: normal; pointer-events: none;\">\r\n <i class=\"material-icons\" style=\"font-size: 18px; font-weight: normal;\">filter_list</i>\r\n </span>\r\n <select style=\"height: 34px; border-radius: .5rem; font-size: 16px; padding: 6px 32px 6px 44px; border: 1px solid #00000080; background: #fff; min-width: 200px; width: fit-content; color: #222; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url('data:image/svg+xml;utf8,<svg fill=\\'%23757575\\' height=\\'20\\' viewBox=\\'0 0 24 24\\' width=\\'20\\' xmlns=\\'http://www.w3.org/2000/svg\\'><path d=\\'M7 10l5 5 5-5z\\'/></svg>'); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px 20px;\">\r\n <option>Filter</option>\r\n </select>\r\n </div>\r\n <span style=\"margin: 0 4px; color: #757575; font-size: 1rem;\">or</span>\r\n <!-- Location Select -->\r\n <select style=\"height: 34px; border-radius: .5rem; font-size: 16px; padding: 6px 32px 6px 12px; border: 1px solid #00000080; background: #fff; min-width: 200px; width: fit-content; color: #222; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url('data:image/svg+xml;utf8,<svg fill=\\'%23757575\\' height=\\'20\\' viewBox=\\'0 0 24 24\\' width=\\'20\\' xmlns=\\'http://www.w3.org/2000/svg\\'><path d=\\'M7 10l5 5 5-5z\\'/></svg>'); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px 20px;\">\r\n <option>Select a Location</option>\r\n </select>\r\n <span style=\"margin-left: 8px; color: #757575; font-size: 1rem; white-space: nowrap;\">{{ totalUsersCount }} users</span>\r\n </div>\r\n </div>\r\n <div style=\"display: flex; gap: 1rem;\">\r\n <button class=\"btn si\">\r\n Send invitations\r\n </button>\r\n <button class=\"btn mu\">\r\n Manage users\r\n </button>\r\n </div>\r\n </div>\r\n</header>", styles: [".btn{position:relative;display:inline-flex;gap:6px;align-items:center;justify-content:center;overflow:hidden!important;width:min-content;max-width:100%;padding:0rem .75rem;border:1px solid transparent;border-radius:6.25rem;font-weight:500;font-size:14px;text-overflow:ellipsis;white-space:nowrap;transition:all .1s cubic-bezier(.25,.1,.25,1);height:2rem;cursor:pointer}.btn:hover{background-color:#0000000d}.si{border-color:#0000004d;background-color:#0000;color:#000000f2}.mu{color:#fff;background-color:#000000f2}.mu:hover{background-color:#232323e6!important}\n"], dependencies: [{ kind: "directive", type: i7.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i7.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
|
|
1492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableToolbarComponent, decorators: [{
|
|
1493
|
+
type: Component,
|
|
1494
|
+
args: [{ selector: 'tk-users-table-toolbar', template: "<header style=\"margin-bottom: 1rem;\">\r\n <div style=\"display: flex; align-items: center; justify-content: space-between;\">\r\n <div class=\"collection-header-left\">\r\n <div style=\"display: flex; align-items: center; gap: 12px;\">\r\n <!-- Search Input -->\r\n <div style=\"position: relative; width: fit-content; min-width: 200px;\">\r\n <input (input)=\"onSearchInputChange($event)\" type=\"text\" placeholder=\"Search by display name, email\" style=\"width: 100%; height: 34px; border-radius: .5rem; font-size: 16px; padding: 6px 12px 6px 44px; border: 1px solid #00000080; background: #fff; color: #222; outline: none; box-sizing: border-box; min-width: 280px;\">\r\n <span style=\"position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #757575; font-size: 18px; font-weight: normal; pointer-events: none;\">\r\n <i class=\"material-icons\" style=\"font-size: 18px; font-weight: normal;\">search</i>\r\n </span>\r\n </div>\r\n <span style=\"margin: 0 4px; color: #757575; font-size: 1rem;\">or</span>\r\n <!-- Filter Select -->\r\n <div style=\"display: flex; align-items: center; position: relative; width: fit-content; min-width: 200px;\">\r\n <span style=\"position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #757575; font-size: 18px; font-weight: normal; pointer-events: none;\">\r\n <i class=\"material-icons\" style=\"font-size: 18px; font-weight: normal;\">filter_list</i>\r\n </span>\r\n <select style=\"height: 34px; border-radius: .5rem; font-size: 16px; padding: 6px 32px 6px 44px; border: 1px solid #00000080; background: #fff; min-width: 200px; width: fit-content; color: #222; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url('data:image/svg+xml;utf8,<svg fill=\\'%23757575\\' height=\\'20\\' viewBox=\\'0 0 24 24\\' width=\\'20\\' xmlns=\\'http://www.w3.org/2000/svg\\'><path d=\\'M7 10l5 5 5-5z\\'/></svg>'); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px 20px;\">\r\n <option>Filter</option>\r\n </select>\r\n </div>\r\n <span style=\"margin: 0 4px; color: #757575; font-size: 1rem;\">or</span>\r\n <!-- Location Select -->\r\n <select style=\"height: 34px; border-radius: .5rem; font-size: 16px; padding: 6px 32px 6px 12px; border: 1px solid #00000080; background: #fff; min-width: 200px; width: fit-content; color: #222; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url('data:image/svg+xml;utf8,<svg fill=\\'%23757575\\' height=\\'20\\' viewBox=\\'0 0 24 24\\' width=\\'20\\' xmlns=\\'http://www.w3.org/2000/svg\\'><path d=\\'M7 10l5 5 5-5z\\'/></svg>'); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px 20px;\">\r\n <option>Select a Location</option>\r\n </select>\r\n <span style=\"margin-left: 8px; color: #757575; font-size: 1rem; white-space: nowrap;\">{{ totalUsersCount }} users</span>\r\n </div>\r\n </div>\r\n <div style=\"display: flex; gap: 1rem;\">\r\n <button class=\"btn si\">\r\n Send invitations\r\n </button>\r\n <button class=\"btn mu\">\r\n Manage users\r\n </button>\r\n </div>\r\n </div>\r\n</header>", styles: [".btn{position:relative;display:inline-flex;gap:6px;align-items:center;justify-content:center;overflow:hidden!important;width:min-content;max-width:100%;padding:0rem .75rem;border:1px solid transparent;border-radius:6.25rem;font-weight:500;font-size:14px;text-overflow:ellipsis;white-space:nowrap;transition:all .1s cubic-bezier(.25,.1,.25,1);height:2rem;cursor:pointer}.btn:hover{background-color:#0000000d}.si{border-color:#0000004d;background-color:#0000;color:#000000f2}.mu{color:#fff;background-color:#000000f2}.mu:hover{background-color:#232323e6!important}\n"] }]
|
|
1495
|
+
}], propDecorators: { totalUsersCount: [{
|
|
1496
|
+
type: Input
|
|
1497
|
+
}], searchChange: [{
|
|
1498
|
+
type: Output
|
|
1499
|
+
}] } });
|
|
1500
|
+
|
|
1501
|
+
const DISPLAYED_COLS = [
|
|
1502
|
+
'name',
|
|
1503
|
+
'email',
|
|
1504
|
+
'status',
|
|
1505
|
+
'last-active-time',
|
|
1506
|
+
'role',
|
|
1507
|
+
'source',
|
|
1508
|
+
'actions',
|
|
1509
|
+
];
|
|
1510
|
+
const LOCAL_STORAGE = {
|
|
1511
|
+
USER_IN_MIGRATION: 'userIdInMigration',
|
|
1512
|
+
};
|
|
1513
|
+
class UsersListComponent {
|
|
1514
|
+
get form() {
|
|
1515
|
+
var _a, _b;
|
|
1516
|
+
return (_b = (_a = this.userService) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.form;
|
|
1517
|
+
}
|
|
1518
|
+
constructor(userService, apiService, apiWebexService, notifications, usersSearchService, dialog) {
|
|
1519
|
+
this.userService = userService;
|
|
1520
|
+
this.apiService = apiService;
|
|
1521
|
+
this.apiWebexService = apiWebexService;
|
|
1522
|
+
this.notifications = notifications;
|
|
1523
|
+
this.usersSearchService = usersSearchService;
|
|
1524
|
+
this.dialog = dialog;
|
|
1525
|
+
this.openUser = new EventEmitter();
|
|
1526
|
+
this.userMoved = new EventEmitter();
|
|
1527
|
+
this.switchToWizard = new EventEmitter();
|
|
1528
|
+
this.displayedColumns = DISPLAYED_COLS;
|
|
1529
|
+
this.showMoveUserWizard = false;
|
|
1530
|
+
this.moveUserPending = false;
|
|
1531
|
+
this.subscriptions = [];
|
|
1532
|
+
this.totalUsersCount = 0;
|
|
1533
|
+
}
|
|
1534
|
+
ngOnInit() {
|
|
1535
|
+
this.usersSearchService.setDefaultValues();
|
|
1536
|
+
this.usersSearchService.customerId = this.customerId;
|
|
1537
|
+
this.usersSearchService.siteId = this.siteId;
|
|
1538
|
+
this.apiService.token = this.token;
|
|
1539
|
+
this.apiWebexService.token = this.token;
|
|
1540
|
+
this.apiService.apiUrl = this.host + '/dcp';
|
|
1541
|
+
this.apiWebexService.apiUrl = this.host + '/webex';
|
|
1542
|
+
this.getMigratedUsers();
|
|
1543
|
+
const subscription = this.usersSearchService.foundUsers$.subscribe((users) => {
|
|
1544
|
+
this.initializeDataSource(users);
|
|
1545
|
+
});
|
|
1546
|
+
this.subscriptions.push(subscription);
|
|
1547
|
+
console.log('users list paris 7773');
|
|
1548
|
+
}
|
|
1549
|
+
ngOnDestroy() {
|
|
1550
|
+
var _a;
|
|
1551
|
+
if ((_a = this.subscriptions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1552
|
+
this.subscriptions.forEach((subscription) => subscription.unsubscribe());
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
pageNumberChangeEvent(perPageNumber) {
|
|
1556
|
+
this.usersSearchService.pageSize = perPageNumber;
|
|
1557
|
+
this.usersSearchService.pageIndex = 0;
|
|
1558
|
+
this.runSearch();
|
|
1559
|
+
}
|
|
1560
|
+
closeMoveUserWizard(afterUserMove) {
|
|
1561
|
+
this.moveUser = null;
|
|
1562
|
+
this.moveUserIndex = null;
|
|
1563
|
+
localStorage.removeItem(LOCAL_STORAGE.USER_IN_MIGRATION);
|
|
1564
|
+
this.showMoveUserWizard = false;
|
|
1565
|
+
this.switchToWizard.emit(false);
|
|
1566
|
+
if (afterUserMove) {
|
|
1567
|
+
this.getMigratedUsers();
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
pageEvent(event) {
|
|
1571
|
+
this.usersSearchService.pageSize = event.pageSize;
|
|
1572
|
+
this.usersSearchService.pageIndex = event.pageIndex;
|
|
1573
|
+
this.runSearch();
|
|
1574
|
+
}
|
|
1575
|
+
onUserClick(user) {
|
|
1576
|
+
localStorage.setItem('isWebex', String(!!user.webexUUID));
|
|
1577
|
+
if (user.webexUUID) {
|
|
1578
|
+
localStorage.setItem('webexUUID', String(user.webexUUID));
|
|
1579
|
+
}
|
|
1580
|
+
this.openUser.emit(user);
|
|
1581
|
+
}
|
|
1582
|
+
moveUserToMT(user, index) {
|
|
1583
|
+
if (user && user.siteId && user.userid) {
|
|
1584
|
+
this.moveUserPending = true;
|
|
1585
|
+
this.moveInProgressUserId = user.userid;
|
|
1586
|
+
this.setStatusToUser(index, 'In Progress');
|
|
1587
|
+
localStorage.setItem(LOCAL_STORAGE.USER_IN_MIGRATION, user.userid);
|
|
1588
|
+
const subscription = this.userService
|
|
1589
|
+
.moveUserToMT(this.customerId, user)
|
|
1590
|
+
.subscribe(() => {
|
|
1591
|
+
this.moveUser = null;
|
|
1592
|
+
this.moveUserIndex = null;
|
|
1593
|
+
this.getMigratedUsers();
|
|
1594
|
+
}, () => {
|
|
1595
|
+
this.removeUserInMigrationProgress();
|
|
1596
|
+
this.setStatusToUser(index, 'Migration Error');
|
|
1597
|
+
});
|
|
1598
|
+
this.subscriptions.push(subscription);
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
moveUserToDI(user, index) {
|
|
1602
|
+
if (user && user.siteId && user.webexUUID) {
|
|
1603
|
+
this.moveUserPending = true;
|
|
1604
|
+
this.moveInProgressUserId = user.userid;
|
|
1605
|
+
this.users[index].status = 'In Progress';
|
|
1606
|
+
localStorage.setItem(LOCAL_STORAGE.USER_IN_MIGRATION, user.userid);
|
|
1607
|
+
const subscription = this.userService
|
|
1608
|
+
.moveUserToDI(this.customerId, user)
|
|
1609
|
+
.subscribe(() => {
|
|
1610
|
+
this.removeUserInMigrationProgress();
|
|
1611
|
+
this.setStatusToUser(index, 'Active');
|
|
1612
|
+
this.users[index].webexUUID = '';
|
|
1613
|
+
if (this.usersSearchService.migratedUsers &&
|
|
1614
|
+
this.usersSearchService.migratedUsers.length) {
|
|
1615
|
+
this.usersSearchService.migratedUsers =
|
|
1616
|
+
this.usersSearchService.migratedUsers.filter((migratedUser) => migratedUser.userid !== user.email);
|
|
1617
|
+
}
|
|
1618
|
+
}, () => {
|
|
1619
|
+
this.removeUserInMigrationProgress();
|
|
1620
|
+
this.setStatusToUser(index, 'Migration Error');
|
|
1621
|
+
});
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
removeUserInMigrationProgress() {
|
|
1625
|
+
localStorage.removeItem(LOCAL_STORAGE.USER_IN_MIGRATION);
|
|
1626
|
+
this.moveInProgressUserId = '';
|
|
1627
|
+
this.moveUserPending = false;
|
|
1628
|
+
}
|
|
1629
|
+
setStatusToUser(index, status) {
|
|
1630
|
+
if (this.users && this.users[index]) {
|
|
1631
|
+
this.users[index].status = status;
|
|
1632
|
+
// if (status === 'Migrated') {
|
|
1633
|
+
// this.users[index].roleName = '';
|
|
1634
|
+
// this.users[index].isMigrated = true;
|
|
1635
|
+
// this.users[index].status = status;
|
|
1636
|
+
// } else {
|
|
1637
|
+
// this.users[index].roleName = 'Dedicated Instance Calling user';
|
|
1638
|
+
// this.users[index].isMigrated = false;
|
|
1639
|
+
// this.users[index].status = status;
|
|
1640
|
+
// }
|
|
1641
|
+
}
|
|
1642
|
+
this.dataSource = new MatTableDataSource(this.users);
|
|
1643
|
+
}
|
|
1644
|
+
initializeDataSource(users) {
|
|
1645
|
+
var _a;
|
|
1646
|
+
if (users === null || users === void 0 ? void 0 : users.length) {
|
|
1647
|
+
// this.setRandomUserRole(users);
|
|
1648
|
+
this.users = users;
|
|
1649
|
+
// set total rows count for toolbar/pagination from server-side pagination when available
|
|
1650
|
+
this.totalUsersCount = ((_a = this.usersSearchService) === null || _a === void 0 ? void 0 : _a.total) || users.length;
|
|
1651
|
+
this.setUserMigrationProgress();
|
|
1652
|
+
this.usersSearchService.setMigratedPropToUsers(this.users);
|
|
1653
|
+
this.dataSource = new MatTableDataSource(users);
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
setUserRole() {
|
|
1657
|
+
var _a;
|
|
1658
|
+
if ((_a = this.users) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1659
|
+
this.users.forEach((user) => {
|
|
1660
|
+
if (!user.isMigrated) {
|
|
1661
|
+
user.roleName = 'Dedicated Instance Calling user';
|
|
1662
|
+
}
|
|
1663
|
+
});
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
setRandomUserRole(users) {
|
|
1667
|
+
const max = Math.round(this.usersSearchService.pageSize - this.usersSearchService.pageSize / 4);
|
|
1668
|
+
const min = Math.round(this.usersSearchService.pageSize / 2);
|
|
1669
|
+
const randomAmount = Math.round(Math.random() * (max - min) + min);
|
|
1670
|
+
const indexes = this.getArrayOfRandomUserIndexes(randomAmount);
|
|
1671
|
+
indexes.forEach((index) => {
|
|
1672
|
+
if (users[index]) {
|
|
1673
|
+
users[index].roleName = 'Dedicated Instance Calling user';
|
|
1674
|
+
}
|
|
1675
|
+
});
|
|
1676
|
+
}
|
|
1677
|
+
getArrayOfRandomUserIndexes(randomAmount) {
|
|
1678
|
+
const indexes = [];
|
|
1679
|
+
while (randomAmount > 0) {
|
|
1680
|
+
const index = Math.round(Math.random() * (this.usersSearchService.pageSize - 1));
|
|
1681
|
+
indexes.push(index);
|
|
1682
|
+
randomAmount--;
|
|
1683
|
+
}
|
|
1684
|
+
return indexes;
|
|
1685
|
+
}
|
|
1686
|
+
runSearch() {
|
|
1687
|
+
this.dataPending = true;
|
|
1688
|
+
this.usersSearchService.quickRegularUsersSearch().subscribe(() => {
|
|
1689
|
+
this.dataPending = false;
|
|
1690
|
+
}, () => {
|
|
1691
|
+
this.dataPending = false;
|
|
1692
|
+
this.notifications.error('The data can not be received');
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1695
|
+
setUserMigrationProgress() {
|
|
1696
|
+
const userIdInMigration = localStorage.getItem(LOCAL_STORAGE.USER_IN_MIGRATION);
|
|
1697
|
+
if (userIdInMigration) {
|
|
1698
|
+
const index = this.users.findIndex((user) => user.userid === userIdInMigration);
|
|
1699
|
+
this.moveInProgressUserId = index > -1 ? this.users[index].userid : '';
|
|
1700
|
+
this.moveUserPending = index > -1;
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
getMigratedUsers() {
|
|
1704
|
+
this.dataPending = true;
|
|
1705
|
+
const searchParams = {
|
|
1706
|
+
customerid: this.customerId,
|
|
1707
|
+
siteid: this.siteId,
|
|
1708
|
+
'cloud-only': 'true',
|
|
1709
|
+
};
|
|
1710
|
+
// this.usersSearchService.quickWebexUsersSearch(searchParams, true, MAX_INTEGER)
|
|
1711
|
+
this.usersSearchService
|
|
1712
|
+
.getMigratedUsers(this.customerId)
|
|
1713
|
+
// this.usersSearchService.getMigratedWebexUsers(this.customerId)
|
|
1714
|
+
.subscribe(() => {
|
|
1715
|
+
const userIdInMigration = localStorage.getItem(LOCAL_STORAGE.USER_IN_MIGRATION);
|
|
1716
|
+
if (userIdInMigration &&
|
|
1717
|
+
this.usersSearchService.migratedUsers.filter((migratedUser) => migratedUser.userid === userIdInMigration)) {
|
|
1718
|
+
localStorage.removeItem(LOCAL_STORAGE.USER_IN_MIGRATION);
|
|
1719
|
+
}
|
|
1720
|
+
this.runSearch();
|
|
1721
|
+
}, () => {
|
|
1722
|
+
this.dataPending = false;
|
|
1723
|
+
this.notifications.error('The data can not be received');
|
|
1724
|
+
});
|
|
1725
|
+
}
|
|
1726
|
+
onMoveUser(user, index, type, title) {
|
|
1727
|
+
const dialogRef = this.dialog.open(UserListConfirmDialogComponent, {
|
|
1728
|
+
data: {
|
|
1729
|
+
title: `Upgrade user ${user.userid} to ${title}?`,
|
|
1730
|
+
message: `<p>By upgrading from Dedicated Instance, you may need to reassign directory numbers and lose calling services.</p>
|
|
1731
|
+
<p>Are you sure you want to continue?</p>`,
|
|
1732
|
+
confirmButtonText: 'Yes, continue',
|
|
1733
|
+
},
|
|
1734
|
+
});
|
|
1735
|
+
dialogRef.beforeClosed().subscribe((result) => {
|
|
1736
|
+
if (result) {
|
|
1737
|
+
switch (type) {
|
|
1738
|
+
case 'QuickMove':
|
|
1739
|
+
this.moveUserToMT(user, index);
|
|
1740
|
+
break;
|
|
1741
|
+
case 'MT':
|
|
1742
|
+
this.moveUser = user;
|
|
1743
|
+
this.moveUserIndex = index;
|
|
1744
|
+
this.showMoveUserWizard = true;
|
|
1745
|
+
this.switchToWizard.emit(true);
|
|
1746
|
+
break;
|
|
1747
|
+
case 'DI':
|
|
1748
|
+
this.moveUserToDI(user, index);
|
|
1749
|
+
break;
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
});
|
|
1753
|
+
}
|
|
1754
|
+
runMoveUserToMT() {
|
|
1755
|
+
if (this.moveUser && this.moveUser.siteId && this.moveUser.userid) {
|
|
1756
|
+
this.userService.moveUserPending = true;
|
|
1757
|
+
this.moveInProgressUserId = this.moveUser.userid;
|
|
1758
|
+
this.setStatusToUser(this.moveUserIndex, 'In Progress');
|
|
1759
|
+
localStorage.setItem(LOCAL_STORAGE.USER_IN_MIGRATION, this.moveUser.userid);
|
|
1760
|
+
}
|
|
1761
|
+
const subscription = this.userService
|
|
1762
|
+
.moveUserToMT(this.customerId, this.moveUser)
|
|
1763
|
+
.subscribe(() => {
|
|
1764
|
+
this.userService.userMoved$.next(true);
|
|
1765
|
+
}, () => {
|
|
1766
|
+
this.removeUserInMigrationProgress();
|
|
1767
|
+
this.setStatusToUser(this.moveUserIndex, 'Migration Error');
|
|
1768
|
+
});
|
|
1769
|
+
this.subscriptions.push(subscription);
|
|
1770
|
+
}
|
|
1771
|
+
searchUsers(token) {
|
|
1772
|
+
var _a;
|
|
1773
|
+
// if token is empty — restore current page datasource
|
|
1774
|
+
if (!token) {
|
|
1775
|
+
this.dataSource = new MatTableDataSource(this.users);
|
|
1776
|
+
this.totalUsersCount = ((_a = this.usersSearchService) === null || _a === void 0 ? void 0 : _a.total) || this.users.length;
|
|
1777
|
+
return;
|
|
1778
|
+
}
|
|
1779
|
+
// fetch all users (server-side) and filter locally across the whole dataset
|
|
1780
|
+
this.dataPending = true;
|
|
1781
|
+
const subscription = this.usersSearchService.getAllRegularUsers()
|
|
1782
|
+
.subscribe((allUsers) => {
|
|
1783
|
+
const tok = (token || '').toLowerCase();
|
|
1784
|
+
const filtered = (allUsers || []).filter((user) => {
|
|
1785
|
+
const firstName = ((user === null || user === void 0 ? void 0 : user.firstName) || '').toLowerCase();
|
|
1786
|
+
const lastName = ((user === null || user === void 0 ? void 0 : user.lastName) || '').toLowerCase();
|
|
1787
|
+
const fullName = `${firstName} ${lastName}`.trim();
|
|
1788
|
+
const email = ((user === null || user === void 0 ? void 0 : user.email) || '').toLowerCase();
|
|
1789
|
+
return (firstName.includes(tok) ||
|
|
1790
|
+
lastName.includes(tok) ||
|
|
1791
|
+
fullName.includes(tok) ||
|
|
1792
|
+
email.includes(tok));
|
|
1793
|
+
});
|
|
1794
|
+
this.dataSource = new MatTableDataSource(filtered);
|
|
1795
|
+
this.totalUsersCount = filtered.length;
|
|
1796
|
+
this.dataPending = false;
|
|
1797
|
+
}, () => {
|
|
1798
|
+
this.dataPending = false;
|
|
1799
|
+
this.notifications.error('The data can not be received');
|
|
1800
|
+
});
|
|
1801
|
+
this.subscriptions.push(subscription);
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
UsersListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListComponent, deps: [{ token: UserService }, { token: APIService }, { token: ApiWebexService }, { token: NotificationService }, { token: UsersSearchService }, { token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
1805
|
+
UsersListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UsersListComponent, selector: "app-users-list", inputs: { token: "token", customerId: "customerId", siteId: "siteId", host: "host" }, outputs: { openUser: "openUser", userMoved: "userMoved", switchToWizard: "switchToWizard" }, ngImport: i0, template: "<app-loader *ngIf=\"dataPending\"></app-loader>\r\n<div *ngIf=\"!showMoveUserWizard\" id=\"users-list\">\r\n <tk-users-table-toolbar\r\n [totalUsersCount]=\"totalUsersCount\"\r\n (searchChange)=\"searchUsers($event)\"\r\n ></tk-users-table-toolbar>\r\n <table\r\n class=\"webex-table\"\r\n mat-table\r\n *ngIf=\"users?.length\"\r\n #table\r\n [dataSource]=\"dataSource\"\r\n >\r\n <!-- <ng-container matColumnDef=\"user-icon\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\"></th>\r\n <td class=\"user-site\" mat-cell *matCellDef=\"let user\"\r\n [ngClass]=\"{'disabled-user-row': moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid}\"\r\n (click)=\"onUserClick(user)\">\r\n <span class=\"icon-webex-box\"><span class=\"icon-webex icon-webex-user\"></span></span>\r\n </td>\r\n </ng-container> -->\r\n\r\n <ng-container matColumnDef=\"name\">\r\n <th\r\n mat-header-cell\r\n *matHeaderCellDef\r\n class=\"webex-table-th\"\r\n style=\"padding-left: 60px\"\r\n >\r\n Display name\r\n </th>\r\n <td\r\n class=\"user-site\"\r\n mat-cell\r\n *matCellDef=\"let user\"\r\n [ngClass]=\"{\r\n 'disabled-user-row':\r\n moveUserPending &&\r\n moveInProgressUserId &&\r\n moveInProgressUserId === user?.userid,\r\n }\"\r\n (click)=\"onUserClick(user)\"\r\n >\r\n <div class=\"display-name-wrapper\">\r\n <span\r\n class=\"user-name-text\"\r\n [ngClass]=\"{ 'inactive-user-row': user.status !== 'Active' }\"\r\n >\r\n {{ user.firstName }} {{ user.lastName }}\r\n </span>\r\n <span class=\"icon-webex-box\"\r\n ><span class=\"icon-webex icon-webex-user\"></span\r\n ></span>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"email\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">Email</th>\r\n <td\r\n class=\"user-site\"\r\n [ngClass]=\"{\r\n 'disabled-user-row':\r\n moveUserPending &&\r\n moveInProgressUserId &&\r\n moveInProgressUserId === user?.userid,\r\n 'inactive-user-row': user.status !== 'Active',\r\n }\"\r\n mat-cell\r\n *matCellDef=\"let user\"\r\n (click)=\"onUserClick(user)\"\r\n >\r\n {{ user.email }}\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"status\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">\r\n <span class=\"header-with-info\">\r\n Status\r\n <img src=\"assets/icons/info-circle-regular.svg\" width=\"16\" alt=\"\" />\r\n </span>\r\n </th>\r\n <td\r\n class=\"user-site\"\r\n mat-cell\r\n *matCellDef=\"let user\"\r\n [ngClass]=\"{\r\n 'disabled-user-row':\r\n moveUserPending &&\r\n moveInProgressUserId &&\r\n moveInProgressUserId === user?.userid,\r\n 'inactive-user-row': user.status !== 'Active',\r\n }\"\r\n (click)=\"onUserClick(user)\"\r\n >\r\n <span\r\n class=\"icon-user-status\"\r\n [ngClass]=\"{ 'icon-user-status-active': user.status === 'Active' }\"\r\n ></span\r\n >{{ user.status }}\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"actions\">\r\n <th\r\n mat-header-cell\r\n *matHeaderCellDef\r\n class=\"webex-table-th\"\r\n style=\"padding-left: 24px; padding-top: 4px\"\r\n >\r\n <img src=\"assets/icons/settings-regular.svg\" width=\"16\" alt=\"\" />\r\n </th>\r\n <td\r\n class=\"user-site\"\r\n mat-cell\r\n *matCellDef=\"let user; let i = index\"\r\n [ngClass]=\"{\r\n 'disabled-user-row':\r\n moveUserPending &&\r\n moveInProgressUserId &&\r\n moveInProgressUserId === user?.userid,\r\n 'inactive-user-row': user.status !== 'Active',\r\n }\"\r\n >\r\n <mat-progress-spinner\r\n class=\"field-spinner\"\r\n [diameter]=\"70\"\r\n strokeWidth=\"3\"\r\n mode=\"indeterminate\"\r\n *ngIf=\"user.status === 'In Progress'\"\r\n ></mat-progress-spinner>\r\n <button\r\n *ngIf=\"\r\n !(\r\n moveUserPending &&\r\n moveInProgressUserId &&\r\n moveInProgressUserId === user?.userid\r\n )\r\n \"\r\n class=\"button-action-dot\"\r\n mat-icon-button\r\n [matMenuTriggerFor]=\"menu\"\r\n >\r\n <div class=\"icon-actions-dots\">\r\n <span class=\"icon-dot\">.</span>\r\n <span class=\"icon-dot\">.</span>\r\n <span class=\"icon-dot\">.</span>\r\n </div>\r\n </button>\r\n <mat-menu #menu=\"matMenu\">\r\n <button mat-menu-item [disabled]=\"true\">Resend Invitation</button>\r\n <button mat-menu-item [disabled]=\"true\">Reset Password</button>\r\n <button\r\n [disabled]=\"user.webexUUID\"\r\n *ngIf=\"!user.isMigrated\"\r\n mat-menu-item\r\n (click)=\"onMoveUser(user, i, 'QuickMove', 'MT')\"\r\n >\r\n Quick Upgrade User to MT\r\n </button>\r\n <button\r\n [disabled]=\"user.webexUUID\"\r\n *ngIf=\"!user.isMigrated\"\r\n mat-menu-item\r\n (click)=\"onMoveUser(user, i, 'MT', 'MT')\"\r\n >\r\n Upgrade User to MT\r\n </button>\r\n <button\r\n *ngIf=\"user.isMigrated\"\r\n mat-menu-item\r\n (click)=\"onMoveUser(user, i, 'DI', 'DI')\"\r\n >\r\n Revert User to UCM/DI\r\n </button>\r\n <button mat-menu-item [disabled]=\"true\">Deactivate User</button>\r\n <button mat-menu-item [disabled]=\"true\">Delete User</button>\r\n </mat-menu>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"role\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">\r\n Admin roles\r\n </th>\r\n <td\r\n class=\"user-site\"\r\n mat-cell\r\n *matCellDef=\"let user\"\r\n [ngClass]=\"{ 'inactive-user-row': user.status !== 'Active' }\"\r\n (click)=\"onUserClick(user)\"\r\n >\r\n {{ user.roleName || \"-\" }}\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"source\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">\r\n Provisioning Type\r\n </th>\r\n <td\r\n class=\"user-site\"\r\n mat-cell\r\n *matCellDef=\"let user\"\r\n (click)=\"onUserClick(user)\"\r\n >\r\n <ng-container *ngIf=\"user.webexUUID\">\r\n <span [matTooltip]=\"'Multi-Tenant'\" matTooltipPosition=\"right\"\r\n ><img src=\"assets/icons/webex.svg\" width=\"20\" alt=\"\"\r\n /></span>\r\n </ng-container>\r\n <ng-container *ngIf=\"!user.webexUUID\">\r\n <span [matTooltip]=\"'Dedicated Instance'\" matTooltipPosition=\"right\"\r\n ><img src=\"assets/icons/mt.svg\" width=\"20\" alt=\"\"\r\n /></span>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"last-active-time\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">\r\n <span class=\"header-with-info\">\r\n Last active time\r\n <!-- <mat-icon class=\"info-icon\">info</mat-icon> -->\r\n <img src=\"assets/icons/info-circle-regular.svg\" width=\"16\" alt=\"\" />\r\n </span>\r\n </th>\r\n <td\r\n class=\"user-site\"\r\n mat-cell\r\n *matCellDef=\"let user\"\r\n [ngClass]=\"{ 'inactive-user-row': user.status !== 'Active' }\"\r\n (click)=\"onUserClick(user)\"\r\n >\r\n 2/16/26\r\n </td>\r\n /\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\r\n </table>\r\n\r\n <app-pagination\r\n [pagination]=\"usersSearchService.getPagination()\"\r\n [showPageSizeOptions]=\"true\"\r\n (pageNumberChangeEmitter)=\"pageNumberChangeEvent($event)\"\r\n (pageEmitter)=\"pageEvent($event)\"\r\n >\r\n </app-pagination>\r\n</div>\r\n\r\n<app-move-user-wizard\r\n *ngIf=\"showMoveUserWizard\"\r\n [user]=\"moveUser\"\r\n (done)=\"closeMoveUserWizard(true)\"\r\n [customerId]=\"customerId\"\r\n (runMoveUser)=\"runMoveUserToMT()\"\r\n (closeMoveUserWizard)=\"closeMoveUserWizard(false)\"\r\n></app-move-user-wizard>\r\n", styles: ["@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";#users-list{letter-spacing:.5px}.header-with-info{display:flex;align-items:center;gap:.5rem}.header-with-info .info-icon{font-size:16px;color:#c3c3c3;cursor:pointer}table.mat-table{border-spacing:0;width:100%}::ng-deep .mat-paginator{background:none}.icon-user-status{width:.5rem;height:.5rem;border-radius:50%;background-color:#707070;margin:0 5px 0 0}.icon-user-status.icon-user-status-active{background-color:#1d805f;display:inline-block}.mat-select{height:100%;line-height:35px}.mat-form-field-wrapper{padding-bottom:0!important}.mat-form-field{padding:0;max-width:300px}.fa:hover{color:#0d56aa!important}.mat-icon-button{background:transparent}.icon-webex-box{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;font-size:.7rem;line-height:1rem;background:#545454;border-radius:2rem;line-height:40px;text-align:center;flex-shrink:0}.icon-webex{filter:brightness(0) invert(1);background-repeat:no-repeat;background-position:center;display:inline-block;height:20px;width:20px;background-size:contain}.icon-webex-user{background-image:url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2232%22 height%3D%2232%22 viewBox%3D%220 0 32 32%22%3E%3Cpath d%3D%22M23.23 16.757a5.746 5.746 0 1 0-7.041-9.048 5 5 0 0 0 .071-.705 4.75 4.75 0 1 0-7.705 3.689 8.43 8.43 0 0 0-6.305 7.84c0 1.052.543 2.521 3.13 3.55 1.643.595 3.371.92 5.118.965a7.8 7.8 0 0 0-.248 1.926c0 1.1.57 2.636 3.285 3.716a18.1 18.1 0 0 0 6.463 1.06c4.853 0 9.75-1.476 9.75-4.776a8.86 8.86 0 0 0-6.517-8.217M20 7.755a4.25 4.25 0 0 1 .006 8.499h-.013a4.25 4.25 0 0 1 .007-8.5M8.26 7.004a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0m2.76 14.574c-4.177-.093-7.27-1.368-7.27-3.045 0-3.737 3.478-6.778 7.752-6.778a8.7 8.7 0 0 1 2.757.45 5.75 5.75 0 0 0 2.508 4.552 9.43 9.43 0 0 0-5.747 4.82m8.978 6.672c-4.703 0-8.249-1.408-8.249-3.276 0-3.982 3.7-7.22 8.25-7.22s8.248 3.238 8.248 7.22c0 1.868-3.546 3.276-8.25 3.276%22%2F%3E%3C%2Fsvg%3E\")}.icon-webex-info{filter:invert(12%) sepia(14%) saturate(4%) hue-rotate(354deg) brightness(103%) contrast(90%);background-repeat:no-repeat;background-position:center;display:inline-block;height:1rem;width:1rem;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%0D %3Ccircle cx%3D%2212%22 cy%3D%2212%22 r%3D%2211%22 stroke%3D%22currentColor%22 stroke-width%3D%221.5%22%2F%3E%0D %3Ccircle cx%3D%2212%22 cy%3D%227.5%22 r%3D%221%22 fill%3D%22currentColor%22%2F%3E%0D %3Crect x%3D%2211%22 y%3D%2210%22 width%3D%222%22 height%3D%227%22 rx%3D%221%22 fill%3D%22currentColor%22%2F%3E%0D%3C%2Fsvg%3E\")}.icon-webex-cogs{filter:invert(12%) sepia(14%) saturate(4%) hue-rotate(354deg) brightness(103%) contrast(90%);background-repeat:no-repeat;background-position:center;display:inline-block;height:1rem;width:1rem;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%0D %3Ccircle cx%3D%2212%22 cy%3D%2212%22 r%3D%223.5%22 stroke%3D%22currentColor%22 stroke-width%3D%221.2%22%2F%3E%0D %0D %3Cpath d%3D%22M12 2C12.8 2 13.5 2.5 13.8 3.2L14.2 4.2C14.4 4.8 15 5.2 15.7 5.1L16.8 4.9C17.8 4.7 18.8 5.2 19.3 6.1L20.5 8.2C21 9.1 20.9 10.2 20.1 11L19.4 11.6C18.9 12 18.9 12.7 19.4 13.1L20.1 13.7C20.9 14.5 21 15.6 20.5 16.5L19.3 18.6C18.8 19.5 17.8 20 16.8 19.8L15.7 19.6C15 19.5 14.4 19.9 14.2 20.5L13.8 21.5C13.5 22.2 12.8 22.7 12 22.7C11.2 22.7 10.5 22.2 10.2 21.5L9.8 20.5C9.6 19.9 9 19.5 8.3 19.6L7.2 19.8C6.2 20 5.2 19.5 4.7 18.6L3.5 16.5C3 15.6 3.1 14.5 3.9 13.7L4.6 13.1C5.1 12.7 5.1 12 4.6 11.6L3.9 11C3.1 10.2 3 9.1 3.5 8.2L4.7 6.1C5.2 5.2 6.2 4.7 7.2 4.9L8.3 5.1C9 5.2 9.6 4.8 9.8 4.2L10.2 3.2C10.5 2.5 11.2 2 12 2Z%22 %0D stroke%3D%22currentColor%22 %0D stroke-width%3D%221.2%22 %0D stroke-linejoin%3D%22round%22%2F%3E%0D%3C%2Fsvg%3E\")}.icon-user-status{display:inline-block}*{margin:0}body{background:#f7f7f7}body,th,td{font-family:Inter,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;font-weight:400;font-style:normal}th{color:#0000008a;text-align:left}td{box-sizing:border-box;padding:10px 5px 10px 0}.content-box{margin:auto;position:relative;width:95%}.content-box table{width:100%}.edit-icon-td{width:50px;position:relative}.edit-icon-td button{position:absolute;top:4px}.mat-progress-spinner circle,.mat-spinner circle{stroke:gray!important}.data-loader{position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.flex-box{display:flex;justify-content:flex-start}.user-info-box{background:white;display:grid;grid-template-columns:30% 70%;border-radius:8px;border:rgba(0,0,0,.2) 1px solid;padding:24px;font-size:14px}.user-info-box h3{display:block;font-size:16px}.mat-divider{margin:5px 0!important}.info-boxes-container{padding:24px 0;display:flex;flex-direction:column;gap:24px}.header-box{height:60px;width:100%;line-height:60px;background:white;border-bottom:1px solid #dedddd}.header-box .header-back-block{float:left}.header-box .header-button-block{float:right}.webex-table{width:100%;margin:auto}.webex-table tr{border-bottom:1px solid #dedede}.webex-table th{background:#ededed;color:#636363;font-size:12px}.webex-table th:hover{background-color:#dedede}.webex-table th ::ng-deep .mat-icon{font-size:16px;display:flex;align-items:center}.webex-table td{background:#fff;color:#000000f2;font-size:14px}.webex-table tr:hover td:not(.disabled-user-row){background:#ededed;cursor:pointer}.webex-table .inactive-user-row{opacity:.35}.webex-table th.mat-header-cell,.webex-table td.mat-cell,.webex-table td.mat-footer-cell{padding:0 24px 0 12px;border-bottom:1px solid #dedede}.webex-table tr.mat-header-row{height:37px}.webex-table .display-name-wrapper{display:flex;align-items:center;justify-content:left;flex-flow:row-reverse;gap:1rem}.mat-form-field{padding:0 0 5px;width:93%}.mat-form-field.mat-form-field-disabled{border-bottom:none}.mat-error{color:#c73636;margin:13px 0 0}.select-box{border-radius:30px;background:#f3f6f6;border:1px solid #e2e9ef;height:35px;position:relative}.select-box select{border:none!important;background:transparent;height:100%;width:92%;margin:auto;display:block}option:focus,option:focus-visible{border:none!important;outline:none!important}option{height:30px;cursor:pointer;color:#636363}option:hover{background:#ededed!important}.mat-select{height:100%!important;line-height:35px!important}.info-holder,.input-holder{display:grid;grid-template-columns:30% 70%;align-items:baseline}.info-holder__name,.input-holder__name{font-weight:500!important;font-size:14px!important}.info-holder__inputs .input-holder,.input-holder__inputs .input-holder{display:grid;grid-template-columns:30% 70%;align-items:baseline}.info-holder__inputs .input-holder__name,.input-holder__inputs .input-holder__name{font-weight:400!important;font-size:14px!important}.mat-form-field-wrapper,.mat-form-field-flex{height:30px!important}.mat-form-field-appearance-outline .mat-form-field-outline,.mat-form-field-outline .mat-form-field-outline-thick{height:35px!important}.mat-select{line-height:20px!important}.mat-form-field-appearance-outline .mat-form-field-infix{padding:14px 12px 10px;border-top:0;max-width:300px}.mat-tab-group{font-family:Inter,Helvetica Neue,Helvetica,Arial,sans-serif}.mat-tab-label{font-weight:500!important;font-size:14px!important;height:auto!important;min-width:auto!important;padding:0!important}.mat-ink-bar{background-color:#000000e6!important;height:3px!important}.mat-form-field-wrapper{padding-bottom:0}.mat-form-field{max-width:300px}table{border-collapse:collapse;border-spacing:0}.mat-form-field-appearance-outline .mat-form-field-infix{padding:0!important}.mat-divider{margin:12px 0}:host ::ng-deep .mat-form-field-wrapper{height:30px}:host ::ng-deep .mat-form-field-flex{height:30px}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-outline{height:35px}:host ::ng-deep .mat-form-field-outline .mat-form-field-outline-thick{height:35px}:host ::ng-deep .mat-select{line-height:20px}:host ::ng-deep .mat-form-field-infix{border-top:0px!important}:host ::ng-deep .mat-paginator{background:transparent!important}:host ::ng-deep .mat-paginator-container{min-height:30px!important}:host ::ng-deep .mat-paginator-range-label{margin:0 10px 0 24px!important;font-size:15px!important}:host ::ng-deep .pagination{font-size:13px;color:#0000008a}:host ::ng-deep .per-page-block{display:flex;line-height:42px!important}:host ::ng-deep .item_per_page{line-height:42px!important}:host ::ng-deep .select-page-size{line-height:42px!important}:host ::ng-deep mat-progress-spinner.page-spinner{position:fixed;margin:auto;inset:0}:host ::ng-deep mat-progress-spinner.field-spinner{position:relative;margin:-20px auto auto}:host ::ng-deep mat-progress-spinner.tab-spinner{position:relative;margin:0 auto auto}.icon-dot{display:block;color:#4f4f4f;font-size:16px;line-height:5px}.button-action-dot:hover{background:#dfdfdf}.button-action-dot{padding:0 5px 5px;border-radius:.25rem}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.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: i9.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i10$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i11$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i11$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i11$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i11$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i11$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i11$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i11$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i11$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i11$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i11$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i12$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i12$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i12$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: PaginationComponent, selector: "app-pagination", inputs: ["pagination", "showPageSizeOptions", "showRefreshButton", "lengthPending"], outputs: ["pageEmitter", "pageNumberChangeEmitter"] }, { kind: "component", type: AppLoaderComponent, selector: "app-loader" }, { kind: "component", type: MoveUserWizardComponent, selector: "app-move-user-wizard", inputs: ["user", "customerId"], outputs: ["closeMoveUserWizard", "done", "runMoveUser"] }, { kind: "component", type: TableToolbarComponent, selector: "tk-users-table-toolbar", inputs: ["totalUsersCount"], outputs: ["searchChange"] }] });
|
|
1806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListComponent, decorators: [{
|
|
1807
|
+
type: Component,
|
|
1808
|
+
args: [{ selector: 'app-users-list', template: "<app-loader *ngIf=\"dataPending\"></app-loader>\r\n<div *ngIf=\"!showMoveUserWizard\" id=\"users-list\">\r\n <tk-users-table-toolbar\r\n [totalUsersCount]=\"totalUsersCount\"\r\n (searchChange)=\"searchUsers($event)\"\r\n ></tk-users-table-toolbar>\r\n <table\r\n class=\"webex-table\"\r\n mat-table\r\n *ngIf=\"users?.length\"\r\n #table\r\n [dataSource]=\"dataSource\"\r\n >\r\n <!-- <ng-container matColumnDef=\"user-icon\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\"></th>\r\n <td class=\"user-site\" mat-cell *matCellDef=\"let user\"\r\n [ngClass]=\"{'disabled-user-row': moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid}\"\r\n (click)=\"onUserClick(user)\">\r\n <span class=\"icon-webex-box\"><span class=\"icon-webex icon-webex-user\"></span></span>\r\n </td>\r\n </ng-container> -->\r\n\r\n <ng-container matColumnDef=\"name\">\r\n <th\r\n mat-header-cell\r\n *matHeaderCellDef\r\n class=\"webex-table-th\"\r\n style=\"padding-left: 60px\"\r\n >\r\n Display name\r\n </th>\r\n <td\r\n class=\"user-site\"\r\n mat-cell\r\n *matCellDef=\"let user\"\r\n [ngClass]=\"{\r\n 'disabled-user-row':\r\n moveUserPending &&\r\n moveInProgressUserId &&\r\n moveInProgressUserId === user?.userid,\r\n }\"\r\n (click)=\"onUserClick(user)\"\r\n >\r\n <div class=\"display-name-wrapper\">\r\n <span\r\n class=\"user-name-text\"\r\n [ngClass]=\"{ 'inactive-user-row': user.status !== 'Active' }\"\r\n >\r\n {{ user.firstName }} {{ user.lastName }}\r\n </span>\r\n <span class=\"icon-webex-box\"\r\n ><span class=\"icon-webex icon-webex-user\"></span\r\n ></span>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"email\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">Email</th>\r\n <td\r\n class=\"user-site\"\r\n [ngClass]=\"{\r\n 'disabled-user-row':\r\n moveUserPending &&\r\n moveInProgressUserId &&\r\n moveInProgressUserId === user?.userid,\r\n 'inactive-user-row': user.status !== 'Active',\r\n }\"\r\n mat-cell\r\n *matCellDef=\"let user\"\r\n (click)=\"onUserClick(user)\"\r\n >\r\n {{ user.email }}\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"status\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">\r\n <span class=\"header-with-info\">\r\n Status\r\n <img src=\"assets/icons/info-circle-regular.svg\" width=\"16\" alt=\"\" />\r\n </span>\r\n </th>\r\n <td\r\n class=\"user-site\"\r\n mat-cell\r\n *matCellDef=\"let user\"\r\n [ngClass]=\"{\r\n 'disabled-user-row':\r\n moveUserPending &&\r\n moveInProgressUserId &&\r\n moveInProgressUserId === user?.userid,\r\n 'inactive-user-row': user.status !== 'Active',\r\n }\"\r\n (click)=\"onUserClick(user)\"\r\n >\r\n <span\r\n class=\"icon-user-status\"\r\n [ngClass]=\"{ 'icon-user-status-active': user.status === 'Active' }\"\r\n ></span\r\n >{{ user.status }}\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"actions\">\r\n <th\r\n mat-header-cell\r\n *matHeaderCellDef\r\n class=\"webex-table-th\"\r\n style=\"padding-left: 24px; padding-top: 4px\"\r\n >\r\n <img src=\"assets/icons/settings-regular.svg\" width=\"16\" alt=\"\" />\r\n </th>\r\n <td\r\n class=\"user-site\"\r\n mat-cell\r\n *matCellDef=\"let user; let i = index\"\r\n [ngClass]=\"{\r\n 'disabled-user-row':\r\n moveUserPending &&\r\n moveInProgressUserId &&\r\n moveInProgressUserId === user?.userid,\r\n 'inactive-user-row': user.status !== 'Active',\r\n }\"\r\n >\r\n <mat-progress-spinner\r\n class=\"field-spinner\"\r\n [diameter]=\"70\"\r\n strokeWidth=\"3\"\r\n mode=\"indeterminate\"\r\n *ngIf=\"user.status === 'In Progress'\"\r\n ></mat-progress-spinner>\r\n <button\r\n *ngIf=\"\r\n !(\r\n moveUserPending &&\r\n moveInProgressUserId &&\r\n moveInProgressUserId === user?.userid\r\n )\r\n \"\r\n class=\"button-action-dot\"\r\n mat-icon-button\r\n [matMenuTriggerFor]=\"menu\"\r\n >\r\n <div class=\"icon-actions-dots\">\r\n <span class=\"icon-dot\">.</span>\r\n <span class=\"icon-dot\">.</span>\r\n <span class=\"icon-dot\">.</span>\r\n </div>\r\n </button>\r\n <mat-menu #menu=\"matMenu\">\r\n <button mat-menu-item [disabled]=\"true\">Resend Invitation</button>\r\n <button mat-menu-item [disabled]=\"true\">Reset Password</button>\r\n <button\r\n [disabled]=\"user.webexUUID\"\r\n *ngIf=\"!user.isMigrated\"\r\n mat-menu-item\r\n (click)=\"onMoveUser(user, i, 'QuickMove', 'MT')\"\r\n >\r\n Quick Upgrade User to MT\r\n </button>\r\n <button\r\n [disabled]=\"user.webexUUID\"\r\n *ngIf=\"!user.isMigrated\"\r\n mat-menu-item\r\n (click)=\"onMoveUser(user, i, 'MT', 'MT')\"\r\n >\r\n Upgrade User to MT\r\n </button>\r\n <button\r\n *ngIf=\"user.isMigrated\"\r\n mat-menu-item\r\n (click)=\"onMoveUser(user, i, 'DI', 'DI')\"\r\n >\r\n Revert User to UCM/DI\r\n </button>\r\n <button mat-menu-item [disabled]=\"true\">Deactivate User</button>\r\n <button mat-menu-item [disabled]=\"true\">Delete User</button>\r\n </mat-menu>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"role\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">\r\n Admin roles\r\n </th>\r\n <td\r\n class=\"user-site\"\r\n mat-cell\r\n *matCellDef=\"let user\"\r\n [ngClass]=\"{ 'inactive-user-row': user.status !== 'Active' }\"\r\n (click)=\"onUserClick(user)\"\r\n >\r\n {{ user.roleName || \"-\" }}\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"source\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">\r\n Provisioning Type\r\n </th>\r\n <td\r\n class=\"user-site\"\r\n mat-cell\r\n *matCellDef=\"let user\"\r\n (click)=\"onUserClick(user)\"\r\n >\r\n <ng-container *ngIf=\"user.webexUUID\">\r\n <span [matTooltip]=\"'Multi-Tenant'\" matTooltipPosition=\"right\"\r\n ><img src=\"assets/icons/webex.svg\" width=\"20\" alt=\"\"\r\n /></span>\r\n </ng-container>\r\n <ng-container *ngIf=\"!user.webexUUID\">\r\n <span [matTooltip]=\"'Dedicated Instance'\" matTooltipPosition=\"right\"\r\n ><img src=\"assets/icons/mt.svg\" width=\"20\" alt=\"\"\r\n /></span>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"last-active-time\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">\r\n <span class=\"header-with-info\">\r\n Last active time\r\n <!-- <mat-icon class=\"info-icon\">info</mat-icon> -->\r\n <img src=\"assets/icons/info-circle-regular.svg\" width=\"16\" alt=\"\" />\r\n </span>\r\n </th>\r\n <td\r\n class=\"user-site\"\r\n mat-cell\r\n *matCellDef=\"let user\"\r\n [ngClass]=\"{ 'inactive-user-row': user.status !== 'Active' }\"\r\n (click)=\"onUserClick(user)\"\r\n >\r\n 2/16/26\r\n </td>\r\n /\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\r\n </table>\r\n\r\n <app-pagination\r\n [pagination]=\"usersSearchService.getPagination()\"\r\n [showPageSizeOptions]=\"true\"\r\n (pageNumberChangeEmitter)=\"pageNumberChangeEvent($event)\"\r\n (pageEmitter)=\"pageEvent($event)\"\r\n >\r\n </app-pagination>\r\n</div>\r\n\r\n<app-move-user-wizard\r\n *ngIf=\"showMoveUserWizard\"\r\n [user]=\"moveUser\"\r\n (done)=\"closeMoveUserWizard(true)\"\r\n [customerId]=\"customerId\"\r\n (runMoveUser)=\"runMoveUserToMT()\"\r\n (closeMoveUserWizard)=\"closeMoveUserWizard(false)\"\r\n></app-move-user-wizard>\r\n", styles: ["@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";#users-list{letter-spacing:.5px}.header-with-info{display:flex;align-items:center;gap:.5rem}.header-with-info .info-icon{font-size:16px;color:#c3c3c3;cursor:pointer}table.mat-table{border-spacing:0;width:100%}::ng-deep .mat-paginator{background:none}.icon-user-status{width:.5rem;height:.5rem;border-radius:50%;background-color:#707070;margin:0 5px 0 0}.icon-user-status.icon-user-status-active{background-color:#1d805f;display:inline-block}.mat-select{height:100%;line-height:35px}.mat-form-field-wrapper{padding-bottom:0!important}.mat-form-field{padding:0;max-width:300px}.fa:hover{color:#0d56aa!important}.mat-icon-button{background:transparent}.icon-webex-box{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;font-size:.7rem;line-height:1rem;background:#545454;border-radius:2rem;line-height:40px;text-align:center;flex-shrink:0}.icon-webex{filter:brightness(0) invert(1);background-repeat:no-repeat;background-position:center;display:inline-block;height:20px;width:20px;background-size:contain}.icon-webex-user{background-image:url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2232%22 height%3D%2232%22 viewBox%3D%220 0 32 32%22%3E%3Cpath d%3D%22M23.23 16.757a5.746 5.746 0 1 0-7.041-9.048 5 5 0 0 0 .071-.705 4.75 4.75 0 1 0-7.705 3.689 8.43 8.43 0 0 0-6.305 7.84c0 1.052.543 2.521 3.13 3.55 1.643.595 3.371.92 5.118.965a7.8 7.8 0 0 0-.248 1.926c0 1.1.57 2.636 3.285 3.716a18.1 18.1 0 0 0 6.463 1.06c4.853 0 9.75-1.476 9.75-4.776a8.86 8.86 0 0 0-6.517-8.217M20 7.755a4.25 4.25 0 0 1 .006 8.499h-.013a4.25 4.25 0 0 1 .007-8.5M8.26 7.004a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0m2.76 14.574c-4.177-.093-7.27-1.368-7.27-3.045 0-3.737 3.478-6.778 7.752-6.778a8.7 8.7 0 0 1 2.757.45 5.75 5.75 0 0 0 2.508 4.552 9.43 9.43 0 0 0-5.747 4.82m8.978 6.672c-4.703 0-8.249-1.408-8.249-3.276 0-3.982 3.7-7.22 8.25-7.22s8.248 3.238 8.248 7.22c0 1.868-3.546 3.276-8.25 3.276%22%2F%3E%3C%2Fsvg%3E\")}.icon-webex-info{filter:invert(12%) sepia(14%) saturate(4%) hue-rotate(354deg) brightness(103%) contrast(90%);background-repeat:no-repeat;background-position:center;display:inline-block;height:1rem;width:1rem;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%0D %3Ccircle cx%3D%2212%22 cy%3D%2212%22 r%3D%2211%22 stroke%3D%22currentColor%22 stroke-width%3D%221.5%22%2F%3E%0D %3Ccircle cx%3D%2212%22 cy%3D%227.5%22 r%3D%221%22 fill%3D%22currentColor%22%2F%3E%0D %3Crect x%3D%2211%22 y%3D%2210%22 width%3D%222%22 height%3D%227%22 rx%3D%221%22 fill%3D%22currentColor%22%2F%3E%0D%3C%2Fsvg%3E\")}.icon-webex-cogs{filter:invert(12%) sepia(14%) saturate(4%) hue-rotate(354deg) brightness(103%) contrast(90%);background-repeat:no-repeat;background-position:center;display:inline-block;height:1rem;width:1rem;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%0D %3Ccircle cx%3D%2212%22 cy%3D%2212%22 r%3D%223.5%22 stroke%3D%22currentColor%22 stroke-width%3D%221.2%22%2F%3E%0D %0D %3Cpath d%3D%22M12 2C12.8 2 13.5 2.5 13.8 3.2L14.2 4.2C14.4 4.8 15 5.2 15.7 5.1L16.8 4.9C17.8 4.7 18.8 5.2 19.3 6.1L20.5 8.2C21 9.1 20.9 10.2 20.1 11L19.4 11.6C18.9 12 18.9 12.7 19.4 13.1L20.1 13.7C20.9 14.5 21 15.6 20.5 16.5L19.3 18.6C18.8 19.5 17.8 20 16.8 19.8L15.7 19.6C15 19.5 14.4 19.9 14.2 20.5L13.8 21.5C13.5 22.2 12.8 22.7 12 22.7C11.2 22.7 10.5 22.2 10.2 21.5L9.8 20.5C9.6 19.9 9 19.5 8.3 19.6L7.2 19.8C6.2 20 5.2 19.5 4.7 18.6L3.5 16.5C3 15.6 3.1 14.5 3.9 13.7L4.6 13.1C5.1 12.7 5.1 12 4.6 11.6L3.9 11C3.1 10.2 3 9.1 3.5 8.2L4.7 6.1C5.2 5.2 6.2 4.7 7.2 4.9L8.3 5.1C9 5.2 9.6 4.8 9.8 4.2L10.2 3.2C10.5 2.5 11.2 2 12 2Z%22 %0D stroke%3D%22currentColor%22 %0D stroke-width%3D%221.2%22 %0D stroke-linejoin%3D%22round%22%2F%3E%0D%3C%2Fsvg%3E\")}.icon-user-status{display:inline-block}*{margin:0}body{background:#f7f7f7}body,th,td{font-family:Inter,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;font-weight:400;font-style:normal}th{color:#0000008a;text-align:left}td{box-sizing:border-box;padding:10px 5px 10px 0}.content-box{margin:auto;position:relative;width:95%}.content-box table{width:100%}.edit-icon-td{width:50px;position:relative}.edit-icon-td button{position:absolute;top:4px}.mat-progress-spinner circle,.mat-spinner circle{stroke:gray!important}.data-loader{position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.flex-box{display:flex;justify-content:flex-start}.user-info-box{background:white;display:grid;grid-template-columns:30% 70%;border-radius:8px;border:rgba(0,0,0,.2) 1px solid;padding:24px;font-size:14px}.user-info-box h3{display:block;font-size:16px}.mat-divider{margin:5px 0!important}.info-boxes-container{padding:24px 0;display:flex;flex-direction:column;gap:24px}.header-box{height:60px;width:100%;line-height:60px;background:white;border-bottom:1px solid #dedddd}.header-box .header-back-block{float:left}.header-box .header-button-block{float:right}.webex-table{width:100%;margin:auto}.webex-table tr{border-bottom:1px solid #dedede}.webex-table th{background:#ededed;color:#636363;font-size:12px}.webex-table th:hover{background-color:#dedede}.webex-table th ::ng-deep .mat-icon{font-size:16px;display:flex;align-items:center}.webex-table td{background:#fff;color:#000000f2;font-size:14px}.webex-table tr:hover td:not(.disabled-user-row){background:#ededed;cursor:pointer}.webex-table .inactive-user-row{opacity:.35}.webex-table th.mat-header-cell,.webex-table td.mat-cell,.webex-table td.mat-footer-cell{padding:0 24px 0 12px;border-bottom:1px solid #dedede}.webex-table tr.mat-header-row{height:37px}.webex-table .display-name-wrapper{display:flex;align-items:center;justify-content:left;flex-flow:row-reverse;gap:1rem}.mat-form-field{padding:0 0 5px;width:93%}.mat-form-field.mat-form-field-disabled{border-bottom:none}.mat-error{color:#c73636;margin:13px 0 0}.select-box{border-radius:30px;background:#f3f6f6;border:1px solid #e2e9ef;height:35px;position:relative}.select-box select{border:none!important;background:transparent;height:100%;width:92%;margin:auto;display:block}option:focus,option:focus-visible{border:none!important;outline:none!important}option{height:30px;cursor:pointer;color:#636363}option:hover{background:#ededed!important}.mat-select{height:100%!important;line-height:35px!important}.info-holder,.input-holder{display:grid;grid-template-columns:30% 70%;align-items:baseline}.info-holder__name,.input-holder__name{font-weight:500!important;font-size:14px!important}.info-holder__inputs .input-holder,.input-holder__inputs .input-holder{display:grid;grid-template-columns:30% 70%;align-items:baseline}.info-holder__inputs .input-holder__name,.input-holder__inputs .input-holder__name{font-weight:400!important;font-size:14px!important}.mat-form-field-wrapper,.mat-form-field-flex{height:30px!important}.mat-form-field-appearance-outline .mat-form-field-outline,.mat-form-field-outline .mat-form-field-outline-thick{height:35px!important}.mat-select{line-height:20px!important}.mat-form-field-appearance-outline .mat-form-field-infix{padding:14px 12px 10px;border-top:0;max-width:300px}.mat-tab-group{font-family:Inter,Helvetica Neue,Helvetica,Arial,sans-serif}.mat-tab-label{font-weight:500!important;font-size:14px!important;height:auto!important;min-width:auto!important;padding:0!important}.mat-ink-bar{background-color:#000000e6!important;height:3px!important}.mat-form-field-wrapper{padding-bottom:0}.mat-form-field{max-width:300px}table{border-collapse:collapse;border-spacing:0}.mat-form-field-appearance-outline .mat-form-field-infix{padding:0!important}.mat-divider{margin:12px 0}:host ::ng-deep .mat-form-field-wrapper{height:30px}:host ::ng-deep .mat-form-field-flex{height:30px}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-outline{height:35px}:host ::ng-deep .mat-form-field-outline .mat-form-field-outline-thick{height:35px}:host ::ng-deep .mat-select{line-height:20px}:host ::ng-deep .mat-form-field-infix{border-top:0px!important}:host ::ng-deep .mat-paginator{background:transparent!important}:host ::ng-deep .mat-paginator-container{min-height:30px!important}:host ::ng-deep .mat-paginator-range-label{margin:0 10px 0 24px!important;font-size:15px!important}:host ::ng-deep .pagination{font-size:13px;color:#0000008a}:host ::ng-deep .per-page-block{display:flex;line-height:42px!important}:host ::ng-deep .item_per_page{line-height:42px!important}:host ::ng-deep .select-page-size{line-height:42px!important}:host ::ng-deep mat-progress-spinner.page-spinner{position:fixed;margin:auto;inset:0}:host ::ng-deep mat-progress-spinner.field-spinner{position:relative;margin:-20px auto auto}:host ::ng-deep mat-progress-spinner.tab-spinner{position:relative;margin:0 auto auto}.icon-dot{display:block;color:#4f4f4f;font-size:16px;line-height:5px}.button-action-dot:hover{background:#dfdfdf}.button-action-dot{padding:0 5px 5px;border-radius:.25rem}\n"] }]
|
|
1809
|
+
}], ctorParameters: function () { return [{ type: UserService }, { type: APIService }, { type: ApiWebexService }, { type: NotificationService }, { type: UsersSearchService }, { type: i1.MatDialog }]; }, propDecorators: { token: [{
|
|
1810
|
+
type: Input
|
|
1811
|
+
}], customerId: [{
|
|
1812
|
+
type: Input
|
|
1813
|
+
}], siteId: [{
|
|
1814
|
+
type: Input
|
|
1815
|
+
}], openUser: [{
|
|
1816
|
+
type: Output
|
|
1817
|
+
}], userMoved: [{
|
|
1818
|
+
type: Output
|
|
1819
|
+
}], switchToWizard: [{
|
|
1820
|
+
type: Output
|
|
1821
|
+
}], host: [{
|
|
1822
|
+
type: Input
|
|
1823
|
+
}] } });
|
|
1824
|
+
|
|
1825
|
+
class EventsCommunicationService {
|
|
1826
|
+
constructor() {
|
|
1827
|
+
this.onSuccessfulLoginEvent = new Subject();
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
EventsCommunicationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EventsCommunicationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1831
|
+
EventsCommunicationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EventsCommunicationService });
|
|
1832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EventsCommunicationService, decorators: [{
|
|
1833
|
+
type: Injectable
|
|
1834
|
+
}], ctorParameters: function () { return []; } });
|
|
1835
|
+
|
|
1836
|
+
class MaterialModule {
|
|
1837
|
+
}
|
|
1838
|
+
MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1839
|
+
MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [DragDropModule,
|
|
1840
|
+
MatButtonModule,
|
|
1841
|
+
MatListModule,
|
|
1842
|
+
MatProgressSpinnerModule,
|
|
1843
|
+
MatExpansionModule,
|
|
1844
|
+
MatInputModule,
|
|
1845
|
+
MatInputModule,
|
|
1846
|
+
MatListModule,
|
|
1847
|
+
MatTreeModule,
|
|
1848
|
+
MatTreeModule,
|
|
1849
|
+
MatNativeDateModule,
|
|
1850
|
+
MatDatepickerModule,
|
|
1851
|
+
MatTooltipModule,
|
|
1852
|
+
MatAutocompleteModule,
|
|
1853
|
+
MatChipsModule,
|
|
1854
|
+
MatSidenavModule,
|
|
1855
|
+
MatFormFieldModule,
|
|
1856
|
+
MatStepperModule,
|
|
1857
|
+
MatTabsModule,
|
|
1858
|
+
MatCardModule,
|
|
1859
|
+
MatSelectModule,
|
|
1860
|
+
MatCheckboxModule,
|
|
1861
|
+
MatSlideToggleModule,
|
|
1862
|
+
MatTableModule,
|
|
1863
|
+
MatPaginatorModule,
|
|
1864
|
+
MatMenuModule,
|
|
1865
|
+
MatDialogModule,
|
|
1866
|
+
MatRadioModule,
|
|
1867
|
+
MatIconModule], exports: [DragDropModule,
|
|
1868
|
+
MatButtonModule,
|
|
1869
|
+
MatListModule,
|
|
1870
|
+
MatProgressSpinnerModule,
|
|
1871
|
+
MatExpansionModule,
|
|
1872
|
+
MatInputModule,
|
|
1873
|
+
MatInputModule,
|
|
1874
|
+
MatListModule,
|
|
1875
|
+
MatTreeModule,
|
|
1876
|
+
MatTreeModule,
|
|
1877
|
+
MatNativeDateModule,
|
|
1878
|
+
MatDatepickerModule,
|
|
1879
|
+
MatTooltipModule,
|
|
1880
|
+
MatAutocompleteModule,
|
|
1881
|
+
MatChipsModule,
|
|
1882
|
+
MatSidenavModule,
|
|
1883
|
+
MatFormFieldModule,
|
|
1884
|
+
MatStepperModule,
|
|
1885
|
+
MatTabsModule,
|
|
1886
|
+
MatCardModule,
|
|
1887
|
+
MatCheckboxModule,
|
|
1888
|
+
MatSelectModule,
|
|
1889
|
+
MatSlideToggleModule,
|
|
1890
|
+
MatProgressSpinnerModule,
|
|
1891
|
+
MatTableModule,
|
|
1892
|
+
MatPaginatorModule,
|
|
1893
|
+
MatMenuModule,
|
|
1894
|
+
MatDialogModule,
|
|
1895
|
+
MatRadioModule,
|
|
1896
|
+
MatIconModule] });
|
|
1897
|
+
MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [DragDropModule,
|
|
1898
|
+
MatButtonModule,
|
|
1899
|
+
MatListModule,
|
|
1900
|
+
MatProgressSpinnerModule,
|
|
1901
|
+
MatExpansionModule,
|
|
1902
|
+
MatInputModule,
|
|
1903
|
+
MatInputModule,
|
|
1904
|
+
MatListModule,
|
|
1905
|
+
MatTreeModule,
|
|
1906
|
+
MatTreeModule,
|
|
1907
|
+
MatNativeDateModule,
|
|
1908
|
+
MatDatepickerModule,
|
|
1909
|
+
MatTooltipModule,
|
|
1910
|
+
MatAutocompleteModule,
|
|
1911
|
+
MatChipsModule,
|
|
1912
|
+
MatSidenavModule,
|
|
1913
|
+
MatFormFieldModule,
|
|
1914
|
+
MatStepperModule,
|
|
1915
|
+
MatTabsModule,
|
|
1916
|
+
MatCardModule,
|
|
1917
|
+
MatSelectModule,
|
|
1918
|
+
MatCheckboxModule,
|
|
1919
|
+
MatSlideToggleModule,
|
|
1920
|
+
MatTableModule,
|
|
1921
|
+
MatPaginatorModule,
|
|
1922
|
+
MatMenuModule,
|
|
1923
|
+
MatDialogModule,
|
|
1924
|
+
MatRadioModule,
|
|
1925
|
+
MatIconModule, DragDropModule,
|
|
1926
|
+
MatButtonModule,
|
|
1927
|
+
MatListModule,
|
|
1928
|
+
MatProgressSpinnerModule,
|
|
1929
|
+
MatExpansionModule,
|
|
1930
|
+
MatInputModule,
|
|
1931
|
+
MatInputModule,
|
|
1932
|
+
MatListModule,
|
|
1933
|
+
MatTreeModule,
|
|
1934
|
+
MatTreeModule,
|
|
1935
|
+
MatNativeDateModule,
|
|
1936
|
+
MatDatepickerModule,
|
|
1937
|
+
MatTooltipModule,
|
|
1938
|
+
MatAutocompleteModule,
|
|
1939
|
+
MatChipsModule,
|
|
1940
|
+
MatSidenavModule,
|
|
1941
|
+
MatFormFieldModule,
|
|
1942
|
+
MatStepperModule,
|
|
1943
|
+
MatTabsModule,
|
|
1944
|
+
MatCardModule,
|
|
1945
|
+
MatCheckboxModule,
|
|
1946
|
+
MatSelectModule,
|
|
1947
|
+
MatSlideToggleModule,
|
|
1948
|
+
MatProgressSpinnerModule,
|
|
1949
|
+
MatTableModule,
|
|
1950
|
+
MatPaginatorModule,
|
|
1951
|
+
MatMenuModule,
|
|
1952
|
+
MatDialogModule,
|
|
1953
|
+
MatRadioModule,
|
|
1954
|
+
MatIconModule] });
|
|
1955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, decorators: [{
|
|
1956
|
+
type: NgModule,
|
|
1957
|
+
args: [{
|
|
1958
|
+
imports: [
|
|
1959
|
+
DragDropModule,
|
|
1960
|
+
MatButtonModule,
|
|
1961
|
+
MatListModule,
|
|
1962
|
+
MatProgressSpinnerModule,
|
|
1963
|
+
MatExpansionModule,
|
|
1964
|
+
MatInputModule,
|
|
1965
|
+
MatInputModule,
|
|
1966
|
+
MatListModule,
|
|
1967
|
+
MatTreeModule,
|
|
1968
|
+
MatTreeModule,
|
|
1969
|
+
MatNativeDateModule,
|
|
1970
|
+
MatDatepickerModule,
|
|
1971
|
+
MatTooltipModule,
|
|
1972
|
+
MatAutocompleteModule,
|
|
1973
|
+
MatChipsModule,
|
|
1974
|
+
MatSidenavModule,
|
|
1975
|
+
MatFormFieldModule,
|
|
1976
|
+
MatStepperModule,
|
|
1977
|
+
MatTabsModule,
|
|
1978
|
+
MatCardModule,
|
|
1979
|
+
MatSelectModule,
|
|
1980
|
+
MatCheckboxModule,
|
|
1981
|
+
MatSlideToggleModule,
|
|
1982
|
+
MatTableModule,
|
|
1983
|
+
MatPaginatorModule,
|
|
1984
|
+
MatMenuModule,
|
|
1985
|
+
MatDialogModule,
|
|
1986
|
+
MatRadioModule,
|
|
1987
|
+
MatIconModule
|
|
1988
|
+
],
|
|
1989
|
+
exports: [
|
|
1990
|
+
DragDropModule,
|
|
1991
|
+
MatButtonModule,
|
|
1992
|
+
MatListModule,
|
|
1993
|
+
MatProgressSpinnerModule,
|
|
1994
|
+
MatExpansionModule,
|
|
1995
|
+
MatInputModule,
|
|
1996
|
+
MatInputModule,
|
|
1997
|
+
MatListModule,
|
|
1998
|
+
MatTreeModule,
|
|
1999
|
+
MatTreeModule,
|
|
2000
|
+
MatNativeDateModule,
|
|
2001
|
+
MatDatepickerModule,
|
|
2002
|
+
MatTooltipModule,
|
|
2003
|
+
MatAutocompleteModule,
|
|
2004
|
+
MatChipsModule,
|
|
2005
|
+
MatSidenavModule,
|
|
2006
|
+
MatFormFieldModule,
|
|
2007
|
+
MatStepperModule,
|
|
2008
|
+
MatTabsModule,
|
|
2009
|
+
MatCardModule,
|
|
2010
|
+
MatCheckboxModule,
|
|
2011
|
+
MatSelectModule,
|
|
2012
|
+
MatSlideToggleModule,
|
|
2013
|
+
MatProgressSpinnerModule,
|
|
2014
|
+
MatTableModule,
|
|
2015
|
+
MatPaginatorModule,
|
|
2016
|
+
MatMenuModule,
|
|
2017
|
+
MatDialogModule,
|
|
2018
|
+
MatRadioModule,
|
|
2019
|
+
MatIconModule
|
|
2020
|
+
],
|
|
2021
|
+
}]
|
|
2022
|
+
}] });
|
|
2023
|
+
|
|
2024
|
+
class UsersListModule {
|
|
2025
|
+
}
|
|
2026
|
+
UsersListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2027
|
+
UsersListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UsersListModule, declarations: [UsersListComponent,
|
|
2028
|
+
PaginationComponent,
|
|
2029
|
+
AppLoaderComponent,
|
|
2030
|
+
MoveUserWizardComponent,
|
|
2031
|
+
MoveUserStepperComponent,
|
|
2032
|
+
UserListConfirmDialogComponent,
|
|
2033
|
+
DevicesMoveUserWizardTabComponent,
|
|
2034
|
+
DeviceMoveUserWizardComponent,
|
|
2035
|
+
TableToolbarComponent], imports: [BrowserModule,
|
|
2036
|
+
FormsModule,
|
|
2037
|
+
ReactiveFormsModule,
|
|
2038
|
+
HttpClientModule,
|
|
2039
|
+
MaterialModule], exports: [UsersListComponent] });
|
|
2040
|
+
UsersListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListModule, providers: [
|
|
2041
|
+
UserService,
|
|
2042
|
+
APIService,
|
|
2043
|
+
EventsCommunicationService,
|
|
2044
|
+
UsersSearchService,
|
|
2045
|
+
NotificationService,
|
|
2046
|
+
RemoveKynFromIBMService,
|
|
2047
|
+
ApiWebexService,
|
|
2048
|
+
DnsService,
|
|
2049
|
+
SiteSettingsService,
|
|
2050
|
+
MoveUserService
|
|
2051
|
+
], imports: [BrowserModule,
|
|
2052
|
+
FormsModule,
|
|
2053
|
+
ReactiveFormsModule,
|
|
2054
|
+
HttpClientModule,
|
|
2055
|
+
MaterialModule] });
|
|
2056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListModule, decorators: [{
|
|
2057
|
+
type: NgModule,
|
|
2058
|
+
args: [{
|
|
2059
|
+
declarations: [
|
|
2060
|
+
UsersListComponent,
|
|
2061
|
+
PaginationComponent,
|
|
2062
|
+
AppLoaderComponent,
|
|
2063
|
+
MoveUserWizardComponent,
|
|
2064
|
+
MoveUserStepperComponent,
|
|
2065
|
+
UserListConfirmDialogComponent,
|
|
2066
|
+
DevicesMoveUserWizardTabComponent,
|
|
2067
|
+
DeviceMoveUserWizardComponent,
|
|
2068
|
+
TableToolbarComponent
|
|
2069
|
+
],
|
|
2070
|
+
imports: [
|
|
2071
|
+
BrowserModule,
|
|
2072
|
+
FormsModule,
|
|
2073
|
+
ReactiveFormsModule,
|
|
2074
|
+
HttpClientModule,
|
|
2075
|
+
MaterialModule
|
|
2076
|
+
],
|
|
2077
|
+
providers: [
|
|
2078
|
+
UserService,
|
|
2079
|
+
APIService,
|
|
2080
|
+
EventsCommunicationService,
|
|
2081
|
+
UsersSearchService,
|
|
2082
|
+
NotificationService,
|
|
2083
|
+
RemoveKynFromIBMService,
|
|
2084
|
+
ApiWebexService,
|
|
2085
|
+
DnsService,
|
|
2086
|
+
SiteSettingsService,
|
|
2087
|
+
MoveUserService
|
|
2088
|
+
],
|
|
2089
|
+
exports: [UsersListComponent]
|
|
2090
|
+
}]
|
|
2091
|
+
}] });
|
|
2092
|
+
|
|
2093
|
+
/**
|
|
2094
|
+
* Generated bundle index. Do not edit.
|
|
2095
|
+
*/
|
|
2096
|
+
|
|
2097
|
+
export { APIService, EventsCommunicationService, NotificationService, RemoveKynFromIBMService, UserService, UsersListComponent, UsersListModule, UsersSearchService };
|
|
2098
|
+
//# sourceMappingURL=tuki-io-tuki-widgets-users-list.mjs.map
|