@tuki-io/tuki-widgets 0.0.72 → 0.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -0
- package/.hintrc +14 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +25 -24
- package/angular.json +141 -0
- package/package.json +42 -7
- package/projects/tuki/widgets/README.md +24 -0
- package/projects/tuki/widgets/di2mt/api/api.endpoints.ts +26 -0
- package/projects/tuki/widgets/di2mt/assets/icons/details_d_icon.svg +3 -0
- package/{di2mt → projects/tuki/widgets/di2mt}/public-api.ts +1 -0
- package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/summary-card/summary-card.component.html +2 -2
- package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/summary-card/summary-card.component.scss +4 -1
- package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/table-filters/table-filters.component.html +3 -3
- package/projects/tuki/widgets/di2mt/shared/components/table-filters/table-filters.component.scss +244 -0
- package/{user-device-manage/src → projects/tuki/widgets/di2mt/shared/constants}/app.constants.ts +96 -96
- package/{di2mt → projects/tuki/widgets/di2mt}/shared/types/constants.ts +2 -1
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.html +3 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.scss +37 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.ts +40 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.html +158 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.scss +430 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.ts +362 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.module.ts +33 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/site-upgrade.service.ts +102 -0
- package/projects/tuki/widgets/di2mt/widgets/site-upgrade/types/user-upgrade.ts +22 -0
- package/{di2mt → projects/tuki/widgets/di2mt}/widgets/user-upgrade/types/user-upgrade.ts +2 -1
- package/{di2mt → projects/tuki/widgets/di2mt}/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.html +68 -13
- package/{di2mt → projects/tuki/widgets/di2mt}/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.scss +73 -3
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.ts +313 -0
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.module.ts +34 -0
- package/projects/tuki/widgets/di2mt/widgets/user-upgrade/user-upgrade.service.ts +79 -0
- package/{karma.conf.js → projects/tuki/widgets/karma.conf.js} +44 -44
- package/projects/tuki/widgets/package.json +13 -0
- package/{src → projects/tuki/widgets/src}/lib/widgets.component.spec.ts +23 -23
- package/{src → projects/tuki/widgets/src}/lib/widgets.component.ts +20 -20
- package/{src → projects/tuki/widgets/src}/lib/widgets.module.ts +16 -16
- package/{src → projects/tuki/widgets/src}/lib/widgets.service.spec.ts +16 -16
- package/{src → projects/tuki/widgets/src}/lib/widgets.service.ts +9 -9
- package/{src → projects/tuki/widgets/src}/public-api.ts +7 -7
- package/{src → projects/tuki/widgets/src}/test.ts +27 -27
- package/{users-list/src/styles → projects/tuki/widgets}/styles.scss +572 -572
- package/{tsconfig.lib.json → projects/tuki/widgets/tsconfig.lib.json} +36 -36
- package/{tsconfig.lib.prod.json → projects/tuki/widgets/tsconfig.lib.prod.json} +10 -10
- package/{tsconfig.spec.json → projects/tuki/widgets/tsconfig.spec.json} +17 -17
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/public-api.ts +8 -8
- package/projects/tuki/widgets/user-device-manage/src/app.constants.ts +96 -0
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/assets/icons/arrow-left.svg +5 -5
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/assets/icons/arrow-right.svg +5 -5
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/assets/icons/close_icon_x.svg +3 -3
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/assets/icons/delete_icon.svg +5 -5
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/assets/icons/dragger-vertical-icon.svg +3 -3
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/assets/icons/vartical_divider_icon.svg +3 -3
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/classes/device.ts +292 -292
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/classes/line-association-interface.ts +50 -50
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/classes/line-association.ts +177 -177
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/classes/line-call-info-display.ts +21 -21
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/classes/line-directory.ts +41 -41
- package/{users-list → projects/tuki/widgets/user-device-manage}/src/classes/line.ts +144 -144
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/classes/notification.ts +40 -39
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/classes/recording-options.ts +6 -6
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/classes/simplified-user.ts +169 -169
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/classes/site-defaults.ts +167 -167
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/classes/translation-pattern.ts +50 -50
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/classes/types.ts +19 -19
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/classes/user-interface.ts +225 -225
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/classes/user.ts +8 -8
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/common-functions.ts +16 -16
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/confirm-dialog/info-dialog.component.html +14 -14
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/confirm-dialog/info-dialog.component.scss +80 -80
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/confirm-dialog/info-dialog.component.ts +35 -35
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-associated-line/associated-line-row/associated-line-row.component.html +21 -21
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-associated-line/associated-line-row/associated-line-row.component.scss +97 -97
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-associated-line/associated-line-row/associated-line-row.component.ts +28 -28
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.html +5 -5
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.scss +19 -19
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.ts +13 -13
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.html +6 -6
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.scss +4 -4
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.ts +63 -63
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-associated-line/device-associated-line.component.html +241 -241
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-associated-line/device-associated-line.component.scss +500 -500
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-associated-line/device-associated-line.component.ts +194 -194
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/device-list/device-list.component.html +27 -27
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-list/device-list.component.scss +131 -131
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-list/device-list.component.ts +25 -25
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-manage-widget.component.html +209 -209
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-manage-widget.component.scss +502 -502
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/device-manage-widget.component.ts +354 -354
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/environments/environment.prod.ts +9 -9
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/environments/environment.ts +10 -10
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/interseptors/auth.interceptor.ts +35 -35
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/lazy-loading-select/lazy-loading-select.component.html +50 -50
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/lazy-loading-select/lazy-loading-select.component.scss +8 -8
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/lazy-loading-select/lazy-loading-select.component.ts +81 -81
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/material.module.ts +87 -87
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/notifications/notification.component.html +33 -33
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/notifications/notification.component.scss +84 -84
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/notifications/notification.component.ts +46 -46
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/removeKynFromIBM.service.ts +25 -25
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/services/api.service.ts +87 -87
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/services/common-functions.ts +17 -17
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/services/device.service.ts +95 -95
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/services/dns.service.ts +111 -111
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/services/line.service.ts +89 -89
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/services/notification.service.ts +68 -68
- package/{users-list → projects/tuki/widgets/user-device-manage}/src/services/removeKynFromIBM.service.ts +25 -25
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/services/site-settings.service.ts +82 -82
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/services/sorting-utils.service.ts +203 -203
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/services/user.service.ts +283 -283
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/services/utils.service.ts +87 -87
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/services/validation.service.ts +829 -829
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/styles/_variables.scss +90 -90
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/styles/form.scss +231 -231
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/styles/icons.scss +32 -32
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/styles/styles.scss +110 -110
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/styles/tables.scss +30 -30
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/user-device-manage.module.ts +73 -73
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/utils/app-loader/app-loader.component.html +6 -6
- package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/utils/app-loader/app-loader.component.scss +11 -11
- package/{user-manage → projects/tuki/widgets/user-device-manage}/src/utils/app-loader/app-loader.ts +13 -13
- package/{user-manage → projects/tuki/widgets/user-manage}/public-api.ts +6 -6
- package/{user-manage → projects/tuki/widgets/user-manage}/src/app.constants.ts +50 -50
- package/{user-manage → projects/tuki/widgets/user-manage}/src/assets/icons/arrow-left.svg +5 -5
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/assets/icons/arrow-right.svg +5 -5
- package/{user-manage → projects/tuki/widgets/user-manage}/src/assets/icons/delete_icon.svg +5 -5
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/assets/icons/dragger-vertical-icon.svg +3 -3
- package/{user-manage → projects/tuki/widgets/user-manage}/src/assets/icons/vartical_divider_icon.svg +3 -3
- package/{user-manage → projects/tuki/widgets/user-manage}/src/classes/device.ts +232 -232
- package/{user-manage → projects/tuki/widgets/user-manage}/src/classes/line-association-interface.ts +43 -43
- package/{user-manage → projects/tuki/widgets/user-manage}/src/classes/line-association.ts +161 -161
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/classes/line-call-info-display.ts +21 -21
- package/{user-manage → projects/tuki/widgets/user-manage}/src/classes/line-directory.ts +42 -42
- package/{user-manage → projects/tuki/widgets/user-manage}/src/classes/line.ts +144 -144
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/classes/notification.ts +39 -40
- package/{user-manage → projects/tuki/widgets/user-manage}/src/classes/pagination.ts +1 -1
- package/{user-manage → projects/tuki/widgets/user-manage}/src/classes/recording-options.ts +6 -6
- package/{user-manage → projects/tuki/widgets/user-manage}/src/classes/simplified-user.ts +165 -165
- package/{user-manage → projects/tuki/widgets/user-manage}/src/classes/table-data.ts +6 -6
- package/{user-manage → projects/tuki/widgets/user-manage}/src/classes/translation-pattern.ts +49 -49
- package/{users-list → projects/tuki/widgets/user-manage}/src/classes/user-interface.ts +225 -225
- package/{user-manage → projects/tuki/widgets/user-manage}/src/classes/user-list.ts +42 -42
- package/{users-list → projects/tuki/widgets/user-manage}/src/classes/user.ts +8 -8
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/common-functions.ts +16 -16
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/device-list/device-list.component.html +27 -27
- package/{user-manage → projects/tuki/widgets/user-manage}/src/device-list/device-list.component.scss +131 -131
- package/{user-manage → projects/tuki/widgets/user-manage}/src/device-list/device-list.component.ts +25 -25
- package/{user-manage → projects/tuki/widgets/user-manage}/src/environments/environment.prod.ts +9 -9
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/environments/environment.ts +10 -10
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/interseptors/auth.interceptor.ts +35 -35
- package/{user-manage → projects/tuki/widgets/user-manage}/src/lazy-loading-select/lazy-loading-select.component.html +50 -50
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/lazy-loading-select/lazy-loading-select.component.scss +8 -8
- package/{user-manage → projects/tuki/widgets/user-manage}/src/lazy-loading-select/lazy-loading-select.component.ts +81 -81
- package/{user-manage → projects/tuki/widgets/user-manage}/src/material.module.ts +85 -85
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/notifications/notification.component.html +33 -33
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/notifications/notification.component.scss +84 -84
- package/{user-manage → projects/tuki/widgets/user-manage}/src/notifications/notification.component.ts +46 -46
- package/{user-manage → projects/tuki/widgets/user-manage}/src/removeKynFromIBM.service.ts +25 -25
- package/{user-manage → projects/tuki/widgets/user-manage}/src/services/api.service.ts +90 -90
- package/{user-manage → projects/tuki/widgets/user-manage}/src/services/dns.service.ts +116 -116
- package/{user-manage → projects/tuki/widgets/user-manage}/src/services/line.service.ts +31 -31
- package/{user-manage → projects/tuki/widgets/user-manage}/src/services/notification.service.ts +68 -68
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/services/removeKynFromIBM.service.ts +25 -25
- package/{user-manage → projects/tuki/widgets/user-manage}/src/services/site-settings.service.ts +35 -35
- package/{user-manage → projects/tuki/widgets/user-manage}/src/services/sorting-utils.service.ts +203 -203
- package/{user-manage → projects/tuki/widgets/user-manage}/src/services/user.service.ts +242 -242
- package/{user-manage → projects/tuki/widgets/user-manage}/src/services/users-search.service.ts +59 -59
- package/{users-list/src/utils → projects/tuki/widgets/user-manage/src/services}/utils.service.ts +71 -71
- package/{user-manage → projects/tuki/widgets/user-manage}/src/styles/_variables.scss +90 -90
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/styles/form.scss +231 -231
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/styles/icons.scss +32 -32
- package/{user-manage → projects/tuki/widgets/user-manage}/src/styles/styles.scss +110 -110
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/styles/tables.scss +30 -30
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-calling/user-calling-extension/user-calling-extension.component.html +10 -10
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-calling/user-calling-extension/user-calling-extension.component.scss +429 -429
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-calling/user-calling-extension/user-calling-extension.component.ts +63 -63
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-calling/user-calling.component.html +32 -32
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-calling/user-calling.component.scss +444 -444
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-calling/user-calling.component.ts +89 -89
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-details/notification.service.ts +68 -68
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-info/user-info.component.html +29 -29
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-info/user-info.component.scss +64 -64
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-info/user-info.component.ts +19 -19
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-manage-widget.component.html +290 -290
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-manage-widget.component.scss +463 -463
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-manage-widget.component.ts +212 -212
- package/{user-manage → projects/tuki/widgets/user-manage}/src/user-manage.module.ts +63 -63
- package/{user-manage → projects/tuki/widgets/user-manage}/src/utils/app-loader/app-loader.component.html +6 -6
- package/{user-manage → projects/tuki/widgets/user-manage}/src/utils/app-loader/app-loader.component.scss +11 -11
- package/{user-device-manage → projects/tuki/widgets/user-manage}/src/utils/app-loader/app-loader.ts +13 -13
- package/{users-list → projects/tuki/widgets/user-manage}/src/utils/pagination/pagination.component.html +26 -26
- package/{user-manage → projects/tuki/widgets/user-manage}/src/utils/pagination/pagination.component.scss +41 -41
- package/{user-manage → projects/tuki/widgets/user-manage}/src/utils/pagination/pagination.component.ts +41 -41
- package/{users-list → projects/tuki/widgets/users-list}/public-api.ts +8 -8
- package/{users-list → projects/tuki/widgets/users-list}/src/app.constants.ts +54 -54
- package/{users-list → projects/tuki/widgets/users-list}/src/assets/icons/close_icon_modal.svg +3 -3
- package/{users-list → projects/tuki/widgets/users-list}/src/assets/icons/move_user_to_another_location.svg +14 -14
- package/{users-list → projects/tuki/widgets/users-list}/src/assets/icons/white-close-icon.svg +3 -3
- package/{users-list → projects/tuki/widgets/users-list}/src/classes/app-location.ts +36 -36
- package/{users-list → projects/tuki/widgets/users-list}/src/classes/device.ts +225 -225
- package/{user-device-manage → projects/tuki/widgets/users-list}/src/classes/line.ts +144 -144
- package/{users-list → projects/tuki/widgets/users-list}/src/classes/move-user.ts +225 -225
- package/{users-list → projects/tuki/widgets/users-list}/src/classes/notification.ts +38 -38
- package/{users-list → projects/tuki/widgets/users-list}/src/classes/pagination.ts +18 -18
- package/{users-list → projects/tuki/widgets/users-list}/src/classes/simlified-user.ts +74 -74
- package/{users-list → projects/tuki/widgets/users-list}/src/classes/table-data.ts +6 -6
- package/{user-device-manage → projects/tuki/widgets/users-list}/src/classes/user-interface.ts +225 -225
- package/{users-list → projects/tuki/widgets/users-list}/src/classes/user-list.ts +47 -47
- package/{user-device-manage → projects/tuki/widgets/users-list}/src/classes/user.ts +8 -8
- package/{users-list → projects/tuki/widgets/users-list}/src/material.module.ts +94 -94
- package/{users-list → projects/tuki/widgets/users-list}/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.html +37 -37
- package/{users-list → projects/tuki/widgets/users-list}/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.scss +129 -129
- package/{users-list → projects/tuki/widgets/users-list}/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.ts +46 -46
- package/{users-list → projects/tuki/widgets/users-list}/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.html +31 -31
- package/{users-list → projects/tuki/widgets/users-list}/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.scss +20 -20
- package/{users-list → projects/tuki/widgets/users-list}/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.ts +26 -26
- package/{users-list → projects/tuki/widgets/users-list}/src/move-user-wizard/move-user-stepper/move-user-stepper.component.html +222 -222
- package/{users-list → projects/tuki/widgets/users-list}/src/move-user-wizard/move-user-stepper/move-user-stepper.component.scss +239 -239
- package/{users-list → projects/tuki/widgets/users-list}/src/move-user-wizard/move-user-stepper/move-user-stepper.component.ts +206 -206
- package/{users-list → projects/tuki/widgets/users-list}/src/move-user-wizard/move-user-wizard.component.html +12 -12
- package/{users-list → projects/tuki/widgets/users-list}/src/move-user-wizard/move-user-wizard.component.scss +41 -41
- package/{users-list → projects/tuki/widgets/users-list}/src/move-user-wizard/move-user-wizard.component.ts +36 -36
- package/{users-list → projects/tuki/widgets/users-list}/src/services/api-webex.service.ts +14 -14
- package/{users-list → projects/tuki/widgets/users-list}/src/services/api.service.ts +90 -90
- package/{users-list → projects/tuki/widgets/users-list}/src/services/dns.service.ts +128 -128
- package/{users-list → projects/tuki/widgets/users-list}/src/services/events-communication.service.ts +11 -11
- package/{users-list → projects/tuki/widgets/users-list}/src/services/move-user.service.ts +59 -59
- package/{users-list → projects/tuki/widgets/users-list}/src/services/notification.service.ts +68 -68
- package/{user-manage → projects/tuki/widgets/users-list}/src/services/removeKynFromIBM.service.ts +25 -25
- package/{users-list → projects/tuki/widgets/users-list}/src/services/site-settings.service.ts +26 -26
- package/{users-list → projects/tuki/widgets/users-list}/src/services/user.service.ts +159 -159
- package/{users-list → projects/tuki/widgets/users-list}/src/services/users-search.service.ts +139 -137
- package/{styles.scss → projects/tuki/widgets/users-list/src/styles/styles.scss} +572 -572
- package/{users-list → projects/tuki/widgets/users-list}/src/user-list-confirm-dialog/user-list-confirm-dialog.component.html +15 -15
- package/{users-list → projects/tuki/widgets/users-list}/src/user-list-confirm-dialog/user-list-confirm-dialog.component.scss +103 -103
- package/{users-list → projects/tuki/widgets/users-list}/src/user-list-confirm-dialog/user-list-confirm-dialog.component.ts +35 -35
- package/{users-list → projects/tuki/widgets/users-list}/src/users-list.component.html +86 -86
- package/{users-list → projects/tuki/widgets/users-list}/src/users-list.component.scss +572 -572
- package/{users-list → projects/tuki/widgets/users-list}/src/users-list.component.ts +312 -312
- package/{users-list → projects/tuki/widgets/users-list}/src/users-list.module.ts +63 -63
- package/{users-list → projects/tuki/widgets/users-list}/src/utils/app-loader/app-loader.component.html +6 -6
- package/{users-list → projects/tuki/widgets/users-list}/src/utils/app-loader/app-loader.component.scss +11 -11
- package/{users-list → projects/tuki/widgets/users-list}/src/utils/app-loader/app-loader.ts +13 -13
- package/{users-list → projects/tuki/widgets/users-list}/src/utils/common-functions.ts +32 -32
- package/{users-list → projects/tuki/widgets/users-list}/src/utils/notifications/notification.component.html +33 -33
- package/{users-list → projects/tuki/widgets/users-list}/src/utils/notifications/notification.component.scss +84 -84
- package/{users-list → projects/tuki/widgets/users-list}/src/utils/notifications/notification.component.ts +46 -46
- package/{user-manage → projects/tuki/widgets/users-list}/src/utils/pagination/pagination.component.html +26 -26
- package/{users-list → projects/tuki/widgets/users-list}/src/utils/pagination/pagination.component.scss +41 -41
- package/{users-list → projects/tuki/widgets/users-list}/src/utils/pagination/pagination.component.ts +41 -41
- package/{user-manage/src/services → projects/tuki/widgets/users-list/src/utils}/utils.service.ts +71 -71
- package/projects/widgets-playground/src/app/app.component.html +109 -0
- package/projects/widgets-playground/src/app/app.component.scss +15 -0
- package/projects/widgets-playground/src/app/app.component.spec.ts +31 -0
- package/projects/widgets-playground/src/app/app.component.ts +31 -0
- package/projects/widgets-playground/src/app/app.module.ts +43 -0
- package/projects/widgets-playground/src/assets/.gitkeep +0 -0
- package/projects/widgets-playground/src/assets/icons/already_upgraded.png +0 -0
- package/projects/widgets-playground/src/assets/icons/check2_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/check_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/expand_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/issue_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/menu_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/ready_to_upgrade.png +0 -0
- package/projects/widgets-playground/src/assets/icons/search_icon.png +0 -0
- package/projects/widgets-playground/src/assets/icons/site.png +0 -0
- package/projects/widgets-playground/src/assets/icons/user.png +0 -0
- package/projects/widgets-playground/src/assets/icons/warning_icon.png +0 -0
- package/projects/widgets-playground/src/favicon.ico +0 -0
- package/projects/widgets-playground/src/index.html +13 -0
- package/projects/widgets-playground/src/main.ts +7 -0
- package/projects/widgets-playground/src/styles.scss +23 -0
- package/projects/widgets-playground/tsconfig.app.json +14 -0
- package/projects/widgets-playground/tsconfig.spec.json +14 -0
- package/proxy.conf.js +23 -0
- package/tsconfig.json +46 -0
- package/di2mt/api/api.endpoints.ts +0 -20
- package/di2mt/shared/components/table-filters/table-filters.component.scss +0 -52
- package/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.html +0 -92
- package/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.scss +0 -187
- package/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.ts +0 -205
- package/di2mt/widgets/site-upgrade/site-upgrade.module.ts +0 -24
- package/di2mt/widgets/site-upgrade/site-upgrade.service.ts +0 -45
- package/di2mt/widgets/site-upgrade/types/user-upgrade.ts +0 -15
- package/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.ts +0 -218
- package/di2mt/widgets/user-upgrade/user-upgrade.module.ts +0 -24
- package/di2mt/widgets/user-upgrade/user-upgrade.service.ts +0 -73
- /package/{di2mt → projects/tuki/widgets/di2mt}/README.md +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/assets/icons/already_upgraded.png +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/assets/icons/check2_icon.png +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/assets/icons/check_icon.png +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/assets/icons/expand_icon.png +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/assets/icons/issue_icon.png +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/assets/icons/menu_icon.png +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/assets/icons/ready_to_upgrade.png +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/assets/icons/search_icon.png +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/assets/icons/site.png +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/assets/icons/user.png +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/assets/icons/warning_icon.png +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/ng-package.json +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/card/card.component.html +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/card/card.component.scss +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/card/card.component.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/chart-card/chart-card.component.html +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/chart-card/chart-card.component.scss +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/chart-card/chart-card.component.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/index.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/stat-card/stat-card.component.html +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/stat-card/stat-card.component.scss +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/stat-card/stat-card.component.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/status-list-card/status-list-card.component.html +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/status-list-card/status-list-card.component.scss +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/status-list-card/status-list-card.component.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/summary-card/summary-card.component.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/components/table-filters/table-filters.component.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/material.module.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/services/api.service.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/shared.module.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/types/data-table.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/shared/types/table/filter.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/styles/tuki-widgets-theme.scss +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/styles/variables.scss +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.html +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.scss +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.html +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.scss +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/types/upgrade-overview.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/upgrade-overview.module.ts +0 -0
- /package/{di2mt → projects/tuki/widgets/di2mt}/widgets/upgrade-overview/upgrade-overview.service.ts +0 -0
- /package/{ng-package.json → projects/tuki/widgets/ng-package.json} +0 -0
- /package/{user-device-manage → projects/tuki/widgets/user-device-manage}/ng-package.json +0 -0
- /package/{user-device-manage → projects/tuki/widgets/user-device-manage}/src/assets/icons/icon_user.svg +0 -0
- /package/{user-manage → projects/tuki/widgets/user-manage}/ng-package.json +0 -0
- /package/{user-manage → projects/tuki/widgets/user-manage}/src/assets/icons/icon_user.svg +0 -0
- /package/{users-list → projects/tuki/widgets/users-list}/ng-package.json +0 -0
- /package/{users-list → projects/tuki/widgets/users-list}/src/assets/icons/icon_user.svg +0 -0
- /package/{users-list → projects/tuki/widgets/users-list}/src/users-list.component.css +0 -0
- /package/{users-list → projects/tuki/widgets/users-list}/src/users-list.component.css.map +0 -0
- /package/{users-list → projects/tuki/widgets/users-list}/src/utils/app-loader/app-loader.component.css +0 -0
- /package/{users-list → projects/tuki/widgets/users-list}/src/utils/app-loader/app-loader.component.css.map +0 -0
- /package/{users-list → projects/tuki/widgets/users-list}/src/utils/pagination/pagination.component.css +0 -0
- /package/{users-list → projects/tuki/widgets/users-list}/src/utils/pagination/pagination.component.css.map +0 -0
package/proxy.conf.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module.exports = [
|
|
2
|
+
{
|
|
3
|
+
context: [
|
|
4
|
+
"/api",
|
|
5
|
+
"/restorepassword",
|
|
6
|
+
"/logout",
|
|
7
|
+
"/registration",
|
|
8
|
+
"/docs",
|
|
9
|
+
"/swagger-ui",
|
|
10
|
+
"/v3/api-docs"
|
|
11
|
+
],
|
|
12
|
+
// target: "http://192.168.0.103:8080",
|
|
13
|
+
// target: "http:// 192.168.0.191:8080",
|
|
14
|
+
// target: "http://localhost:3000",
|
|
15
|
+
// target: "http://localhost:8088",
|
|
16
|
+
// target: "https://dev.tuki.io/webex",
|
|
17
|
+
target: "https://dev.tuki.io/webex",
|
|
18
|
+
// target: "http://192.168.10.56:8080",
|
|
19
|
+
secure: false
|
|
20
|
+
}
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"compileOnSave": false,
|
|
4
|
+
"build": {
|
|
5
|
+
"builder": "@angular-devkit/build-ng-packagr:build",
|
|
6
|
+
"options": {
|
|
7
|
+
"preserveSymlinks": true,
|
|
8
|
+
"tsConfig": "projects/button/tsconfig.lib.json",
|
|
9
|
+
"project": "projects/button/ng-package.json"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"compilerOptions": {
|
|
13
|
+
"preserveSymlinks": true,
|
|
14
|
+
"paths": {
|
|
15
|
+
"@tuki/widgets": [
|
|
16
|
+
"dist/tuki/widgets"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"baseUrl": "./",
|
|
20
|
+
"outDir": "./dist/out-tsc",
|
|
21
|
+
"forceConsistentCasingInFileNames": true,
|
|
22
|
+
"strict": true,
|
|
23
|
+
"noImplicitOverride": true,
|
|
24
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
25
|
+
"noImplicitReturns": true,
|
|
26
|
+
"noFallthroughCasesInSwitch": true,
|
|
27
|
+
"sourceMap": true,
|
|
28
|
+
"declaration": false,
|
|
29
|
+
"downlevelIteration": true,
|
|
30
|
+
"experimentalDecorators": true,
|
|
31
|
+
"moduleResolution": "node",
|
|
32
|
+
"importHelpers": true,
|
|
33
|
+
"target": "es2020",
|
|
34
|
+
"module": "es2020",
|
|
35
|
+
"lib": [
|
|
36
|
+
"es2020",
|
|
37
|
+
"dom"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"angularCompilerOptions": {
|
|
41
|
+
"enableI18nLegacyMessageIdFormat": false,
|
|
42
|
+
"strictInjectionParameters": true,
|
|
43
|
+
"strictInputAccessModifiers": true,
|
|
44
|
+
"strictTemplates": true
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export const API = {
|
|
2
|
-
OVERVIEW: {
|
|
3
|
-
GET_UPGRADE_PRECONDITIONS: '/api/webex-upgrade/customers/:customerId/preconditions/fetch',
|
|
4
|
-
GET_SITE_INFRASTRUCTURE: '/api/webex-upgrade/customers/:customerId/infra/fetch',
|
|
5
|
-
GET_USERS_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/users/upgrade/fetch',
|
|
6
|
-
GET_SITES_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/sites/upgrade/fetch',
|
|
7
|
-
GET_USERS_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/users/readiness/fetch',
|
|
8
|
-
GET_SITES_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/sites/readiness/fetch'
|
|
9
|
-
},
|
|
10
|
-
USER_UPGRADE: {
|
|
11
|
-
GET_USERS_UPGRADE_DATA: '/api/webex-upgrade/customers/:customerId/user-upgrade',
|
|
12
|
-
GET_USERS_UPGRADE_STATUS_COUNTS: '/api/webex-upgrade/customers/:customerId/user-upgrades/status-counts',
|
|
13
|
-
UPGRADE_USER: '/api/migration/webex/sites/:siteId/users/:userId'
|
|
14
|
-
},
|
|
15
|
-
SITE_UPGRADE: {
|
|
16
|
-
GET_SITES_UPGRADE_DATA: '/api/webex-upgrade/customers/:customerId/site-upgrades',
|
|
17
|
-
GET_SITES_UPGRADE_STATUS_COUNTS: '/api/webex-upgrade/customers/:customerId/site-upgrades/status-counts',
|
|
18
|
-
UPGRADE_SITE: '/api/migration/webex/sites/:siteId'
|
|
19
|
-
}
|
|
20
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
:host .filters-wrapper {
|
|
2
|
-
display: flex;
|
|
3
|
-
gap: 1rem;
|
|
4
|
-
flex-wrap: wrap;
|
|
5
|
-
align-items: center;
|
|
6
|
-
padding: 0;
|
|
7
|
-
|
|
8
|
-
.filter {
|
|
9
|
-
.search-field,
|
|
10
|
-
.select-field {
|
|
11
|
-
width: 100%;
|
|
12
|
-
// min-width: 200px;
|
|
13
|
-
|
|
14
|
-
.search-icon {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
margin-right: 0.25rem;
|
|
19
|
-
padding: 0;
|
|
20
|
-
|
|
21
|
-
img {
|
|
22
|
-
width: 24px;
|
|
23
|
-
height: 24px;
|
|
24
|
-
object-fit: contain;
|
|
25
|
-
opacity: 0.6;
|
|
26
|
-
vertical-align: middle;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
::ng-deep {
|
|
32
|
-
.mat-form-field-appearance-outline .mat-form-field-wrapper {
|
|
33
|
-
margin: 0 !important;
|
|
34
|
-
padding: 0 !important;
|
|
35
|
-
}
|
|
36
|
-
.mat-form-field-infix {
|
|
37
|
-
padding: 0.5rem 1rem !important;
|
|
38
|
-
}
|
|
39
|
-
.mat-form-field-label-wrapper {
|
|
40
|
-
top: -1.1rem !important;
|
|
41
|
-
}
|
|
42
|
-
.mat-form-field-infix .mat-input-element {
|
|
43
|
-
// margin-top: -2.0625em;
|
|
44
|
-
transform: translateX(-16px) translateY(-4px) !important;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.mat-select-value {
|
|
48
|
-
transform: translateY(-4px) !important;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
package/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.html
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
<div class="wrapper">
|
|
2
|
-
<div class="site-upgrade-status-wrapper">
|
|
3
|
-
<tk-summary-card [description]="'Sites are ready to upgrade'" [value]="statusCounts['Ready']"></tk-summary-card>
|
|
4
|
-
<tk-summary-card [description]="'Sites are not ready'" [value]="statusCounts['Not Ready']" [status]="'Not Ready'"></tk-summary-card>
|
|
5
|
-
<tk-summary-card [description]="'Sites failed to upgrade'" [value]="statusCounts['Failed']" [status]="'Failed'"></tk-summary-card>
|
|
6
|
-
<tk-summary-card [description]="'Successfully upgraded'" [value]="statusCounts['Completed']" [status]="'Completed'"></tk-summary-card>
|
|
7
|
-
</div>
|
|
8
|
-
<div class="table-action-panel">
|
|
9
|
-
<tk-table-filters *ngIf="filters.length > 0" [filters]="filters" (filter)="onFilter($event)"></tk-table-filters>
|
|
10
|
-
<div class="action-wrapper">
|
|
11
|
-
<span>{{filteredDataCount}} Sites</span>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
<table mat-table [dataSource]="data" class="site-upgrade-table">
|
|
15
|
-
|
|
16
|
-
<!-- Site Column -->
|
|
17
|
-
<ng-container matColumnDef="site">
|
|
18
|
-
<th mat-header-cell *matHeaderCellDef>Site</th>
|
|
19
|
-
<td mat-cell *matCellDef="let element">
|
|
20
|
-
<div class="site-info">
|
|
21
|
-
<span class="site-indicator"></span>
|
|
22
|
-
{{element.siteName}}
|
|
23
|
-
</div>
|
|
24
|
-
</td>
|
|
25
|
-
</ng-container>
|
|
26
|
-
|
|
27
|
-
<!-- Ready Users Column -->
|
|
28
|
-
<ng-container matColumnDef="ready users">
|
|
29
|
-
<th mat-header-cell *matHeaderCellDef>Ready Users</th>
|
|
30
|
-
<td mat-cell *matCellDef="let element">
|
|
31
|
-
<div class="user-count-info">
|
|
32
|
-
<div class="user-count">{{element.totalReadyUsers}}/{{element.totalUsers}}</div>
|
|
33
|
-
<div class="user-label">Ready/Total</div>
|
|
34
|
-
</div>
|
|
35
|
-
</td>
|
|
36
|
-
</ng-container>
|
|
37
|
-
|
|
38
|
-
<!-- Upgraded Users Column -->
|
|
39
|
-
<ng-container matColumnDef="upgraded users">
|
|
40
|
-
<th mat-header-cell *matHeaderCellDef>Upgraded Users</th>
|
|
41
|
-
<td mat-cell *matCellDef="let element">
|
|
42
|
-
<div class="user-count-info">
|
|
43
|
-
<div class="user-count">{{element.totalUpgradedUsers}}/{{element.totalUsers}}</div>
|
|
44
|
-
<div class="user-label">Upgraded/Total</div>
|
|
45
|
-
</div>
|
|
46
|
-
</td>
|
|
47
|
-
</ng-container>
|
|
48
|
-
|
|
49
|
-
<!-- Location Mapping Column -->
|
|
50
|
-
<ng-container matColumnDef="location mapping">
|
|
51
|
-
<th mat-header-cell *matHeaderCellDef>Location Mapping</th>
|
|
52
|
-
<td mat-cell *matCellDef="let element">
|
|
53
|
-
<div class="status-icon-cell">
|
|
54
|
-
<img *ngIf="element.locationMapping" src="assets/icons/check2_icon.png" alt="Location Mapping Enabled"/>
|
|
55
|
-
<img *ngIf="!element.locationMapping" src="assets/icons/issue_icon.png" alt="Location Mapping Disabled"/>
|
|
56
|
-
</div>
|
|
57
|
-
</td>
|
|
58
|
-
</ng-container>
|
|
59
|
-
|
|
60
|
-
<!-- PSTN Trunk Column -->
|
|
61
|
-
<ng-container matColumnDef="pstn trunk">
|
|
62
|
-
<th mat-header-cell *matHeaderCellDef>PSTN Trunk</th>
|
|
63
|
-
<td mat-cell *matCellDef="let element">
|
|
64
|
-
<div class="status-icon-cell">
|
|
65
|
-
<img *ngIf="element.PSTNTrunk" src="assets/icons/check2_icon.png" alt="PSTN Trunk Enabled"/>
|
|
66
|
-
<img *ngIf="!element.PSTNTrunk" src="assets/icons/issue_icon.png" alt="PSTN Trunk Disabled"/>
|
|
67
|
-
</div>
|
|
68
|
-
</td>
|
|
69
|
-
</ng-container>
|
|
70
|
-
|
|
71
|
-
<!-- Site Upgrade Status Column -->
|
|
72
|
-
<ng-container matColumnDef="site upgrade status">
|
|
73
|
-
<th mat-header-cell *matHeaderCellDef>Site Upgrade Status</th>
|
|
74
|
-
<td mat-cell *matCellDef="let element">
|
|
75
|
-
<div class="upgrade-status-cell">
|
|
76
|
-
<ng-container *ngIf="STATUS_ENTRIES[element.upgradeStatus] === 'Ready'; else statusBlock">
|
|
77
|
-
<button mat-button color="primary" class="upgrade-button" (click)="upgradeSite(element)">Upgrade</button>
|
|
78
|
-
</ng-container>
|
|
79
|
-
<ng-template #statusBlock>
|
|
80
|
-
<div class="status-info">
|
|
81
|
-
<span class="status-indicator" [ngClass]="getSiteUpgradeStatusClass(element.upgradeStatus)"></span>
|
|
82
|
-
<span>{{ STATUS_ENTRIES[element.upgradeStatus] }}</span>
|
|
83
|
-
</div>
|
|
84
|
-
</ng-template>
|
|
85
|
-
</div>
|
|
86
|
-
</td>
|
|
87
|
-
</ng-container>
|
|
88
|
-
|
|
89
|
-
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
90
|
-
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
|
91
|
-
</table>
|
|
92
|
-
</div>
|
package/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.scss
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
@import "../../../styles/variables.scss";
|
|
2
|
-
|
|
3
|
-
.wrapper {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
gap: 1rem;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.site-upgrade-status-wrapper {
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
gap: 1rem;
|
|
13
|
-
flex-wrap: wrap;
|
|
14
|
-
margin-bottom: 1rem;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.site-upgrade-table {
|
|
18
|
-
font-family: $main-font;
|
|
19
|
-
width: 100%;
|
|
20
|
-
background: white;
|
|
21
|
-
border-radius: 8px;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
font-size: 14px;
|
|
24
|
-
|
|
25
|
-
.mat-header-row {
|
|
26
|
-
// background-color: #ededed;
|
|
27
|
-
font-size: 12px;
|
|
28
|
-
height: 35px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.mat-cell {
|
|
32
|
-
border-bottom: 1px solid #d6d6d6;
|
|
33
|
-
}
|
|
34
|
-
.mat-header-cell {
|
|
35
|
-
border-bottom: 1px solid #afafaf;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Site info styling
|
|
39
|
-
.site-info {
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
gap: 8px;
|
|
43
|
-
|
|
44
|
-
.site-indicator {
|
|
45
|
-
width: 8px;
|
|
46
|
-
height: 8px;
|
|
47
|
-
border-radius: 50%;
|
|
48
|
-
background-color: #1170cf;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Device info styling
|
|
53
|
-
.device-info {
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
gap: 12px;
|
|
57
|
-
|
|
58
|
-
.device-name-wrapper {
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
gap: 4px;
|
|
62
|
-
// margin-bottom: 2px;
|
|
63
|
-
|
|
64
|
-
.device-name {
|
|
65
|
-
font-weight: 500;
|
|
66
|
-
color: #212121;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.device-indicator {
|
|
70
|
-
width: 8px;
|
|
71
|
-
height: 8px;
|
|
72
|
-
border-radius: 50%;
|
|
73
|
-
background-color: #f8cd00;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.device-model {
|
|
78
|
-
font-size: 12px;
|
|
79
|
-
color: #757575;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// Status indicators
|
|
84
|
-
.status-info {
|
|
85
|
-
display: flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
gap: 8px;
|
|
88
|
-
|
|
89
|
-
.status-indicator {
|
|
90
|
-
width: 8px;
|
|
91
|
-
height: 8px;
|
|
92
|
-
border-radius: 50%;
|
|
93
|
-
|
|
94
|
-
&.ready {
|
|
95
|
-
background-color: #1d805f;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&.partial-ready {
|
|
99
|
-
background-color: #f8cd00;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&.not-ready {
|
|
103
|
-
background-color: #9e9e9e;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&.completed {
|
|
107
|
-
background-color: #1d805f;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&.failed {
|
|
111
|
-
background-color: #f23933;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// Dependencies styling
|
|
117
|
-
.dependencies-text {
|
|
118
|
-
font-size: 12px;
|
|
119
|
-
background-color: #ffe9e9;
|
|
120
|
-
padding: 0.25rem 0.5rem;
|
|
121
|
-
border-radius: 3px;
|
|
122
|
-
color: #000;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// Upgrade status cell
|
|
126
|
-
.upgrade-status-cell {
|
|
127
|
-
display: flex;
|
|
128
|
-
align-items: center;
|
|
129
|
-
justify-content: flex-start;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// Upgrade button styling
|
|
133
|
-
.upgrade-button {
|
|
134
|
-
border: 1px solid #08599c;
|
|
135
|
-
color: #08599c;
|
|
136
|
-
background: white;
|
|
137
|
-
// padding: 6px 16px;
|
|
138
|
-
border-radius: 20px;
|
|
139
|
-
font-size: 14px;
|
|
140
|
-
font-style: normal;
|
|
141
|
-
font-weight: 500;
|
|
142
|
-
height: 32px;
|
|
143
|
-
display: flex;
|
|
144
|
-
align-items: center;
|
|
145
|
-
justify-content: center;
|
|
146
|
-
|
|
147
|
-
&:hover {
|
|
148
|
-
background-color: #e3f2fd;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// User count info styling
|
|
153
|
-
.user-count-info {
|
|
154
|
-
.user-count {
|
|
155
|
-
font-weight: 500;
|
|
156
|
-
color: #212121;
|
|
157
|
-
// margin-bottom: 2px;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.user-label {
|
|
161
|
-
font-size: 12px;
|
|
162
|
-
color: #757575;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// Status icon cell styling
|
|
167
|
-
.status-icon-cell {
|
|
168
|
-
display: flex;
|
|
169
|
-
align-items: center;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.action-wrapper {
|
|
174
|
-
display: flex;
|
|
175
|
-
align-items: center;
|
|
176
|
-
flex: 1;
|
|
177
|
-
justify-content: space-between;
|
|
178
|
-
gap: 1rem;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.table-action-panel {
|
|
182
|
-
width: 100%;
|
|
183
|
-
display: flex;
|
|
184
|
-
justify-content: flex-start;
|
|
185
|
-
align-items: center;
|
|
186
|
-
gap: 1rem;
|
|
187
|
-
}
|
package/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.ts
DELETED
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { SelectionModel } from "@angular/cdk/collections";
|
|
2
|
-
import { Component, OnInit, OnDestroy, inject, Input, ViewEncapsulation } from "@angular/core";
|
|
3
|
-
import { MatTableDataSource } from "@angular/material/table";
|
|
4
|
-
import { TableColumn } from "../../../shared/types/data-table";
|
|
5
|
-
import { TableFilter } from "../../../shared/types/table/filter";
|
|
6
|
-
import { SiteUpgradeRecord } from "../types/user-upgrade";
|
|
7
|
-
import { UpgradeOverviewService } from "../../upgrade-overview/upgrade-overview.service";
|
|
8
|
-
import { Subject } from "rxjs";
|
|
9
|
-
import { takeUntil } from "rxjs";
|
|
10
|
-
import { SiteUpgradeService } from "../site-upgrade.service";
|
|
11
|
-
import { STATUS_ENTRIES } from "../../../shared/types/constants";
|
|
12
|
-
import { APIService } from "../../../shared/services/api.service";
|
|
13
|
-
|
|
14
|
-
@Component({
|
|
15
|
-
selector: 'tk-site-upgrade-data-table',
|
|
16
|
-
templateUrl: './site-upgrade-data-table.component.html',
|
|
17
|
-
styleUrls: ['./site-upgrade-data-table.component.scss'],
|
|
18
|
-
// encapsulation: ViewEncapsulation.ShadowDom
|
|
19
|
-
})
|
|
20
|
-
export class SiteUpgradeDataTableComponent implements OnInit, OnDestroy {
|
|
21
|
-
readonly siteUpgradeService = inject(SiteUpgradeService);
|
|
22
|
-
private readonly apiService = inject(APIService);
|
|
23
|
-
readonly destroy$ = new Subject<void>();
|
|
24
|
-
readonly STATUS_ENTRIES = STATUS_ENTRIES
|
|
25
|
-
|
|
26
|
-
@Input() token!: string;
|
|
27
|
-
@Input() customerId!: string;
|
|
28
|
-
|
|
29
|
-
columns!: TableColumn[];
|
|
30
|
-
data!: MatTableDataSource<any>;
|
|
31
|
-
displayedColumns: string[] = ['site', 'ready users', 'upgraded users', 'location mapping', 'pstn trunk', 'site upgrade status'];
|
|
32
|
-
selection = new SelectionModel<any>(true, []);
|
|
33
|
-
filters: TableFilter[] = [];
|
|
34
|
-
private activeFilters: { [key: string]: any } = {};
|
|
35
|
-
|
|
36
|
-
statusCounts: any = {};
|
|
37
|
-
|
|
38
|
-
constructor() { }
|
|
39
|
-
|
|
40
|
-
ngOnInit(): void {
|
|
41
|
-
this.apiService.token = this.token;
|
|
42
|
-
this.siteUpgradeService.customerId = this.customerId;
|
|
43
|
-
|
|
44
|
-
this.siteUpgradeService.getSiteUpgradeRecords()
|
|
45
|
-
.pipe(takeUntil(this.destroy$))
|
|
46
|
-
.subscribe((records: SiteUpgradeRecord[]) => {
|
|
47
|
-
this.data = new MatTableDataSource<SiteUpgradeRecord>(records);
|
|
48
|
-
this.setupCustomFilter();
|
|
49
|
-
this.initializeFilters(records);
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
this.siteUpgradeService.getSiteUpgradeStatusCounts()
|
|
53
|
-
.pipe(takeUntil(this.destroy$))
|
|
54
|
-
.subscribe((statusCounts) => {
|
|
55
|
-
this.statusCounts['Ready'] = statusCounts['READY'] || 0;
|
|
56
|
-
this.statusCounts['Not Ready'] = statusCounts['NOT_READY'] || 0;
|
|
57
|
-
this.statusCounts['Completed'] = statusCounts['COMPLETED'] || 0;
|
|
58
|
-
this.statusCounts['Failed'] = statusCounts['FAILED'] || 0;
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
private initializeFilters(records: SiteUpgradeRecord[]): void {
|
|
63
|
-
// Extract unique sites from actual data
|
|
64
|
-
const uniqueSites = [...new Set(records.map(record => record.siteName))];
|
|
65
|
-
const siteOptions = uniqueSites.map(site => ({
|
|
66
|
-
label: site,
|
|
67
|
-
value: site.toLowerCase().replace(/\s+/g, '-')
|
|
68
|
-
}));
|
|
69
|
-
|
|
70
|
-
// Extract unique statuses from actual data
|
|
71
|
-
const uniqueStatuses = [...new Set(records.map(record => record.upgradeStatus))];
|
|
72
|
-
const statusOptions = uniqueStatuses.map(status => ({
|
|
73
|
-
label: STATUS_ENTRIES[status],
|
|
74
|
-
value: status.toLowerCase().replace(/\s+/g, '-')
|
|
75
|
-
}));
|
|
76
|
-
|
|
77
|
-
this.filters = [
|
|
78
|
-
{
|
|
79
|
-
id: 'sites',
|
|
80
|
-
type: 'select',
|
|
81
|
-
columnKey: 'Site',
|
|
82
|
-
placeholder: 'Sites',
|
|
83
|
-
options: siteOptions
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
id: 'status',
|
|
87
|
-
type: 'select',
|
|
88
|
-
columnKey: 'Site Upgrade Status',
|
|
89
|
-
placeholder: 'Upgrade Status',
|
|
90
|
-
options: statusOptions
|
|
91
|
-
}
|
|
92
|
-
];
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
onFilter(filterEvent: { key: string, value: any }) {
|
|
96
|
-
const { key, value } = filterEvent;
|
|
97
|
-
|
|
98
|
-
let filterValue: any;
|
|
99
|
-
if (value && value.value !== undefined) {
|
|
100
|
-
filterValue = value.value;
|
|
101
|
-
} else if (value && value.target) {
|
|
102
|
-
filterValue = value.target.value;
|
|
103
|
-
} else {
|
|
104
|
-
filterValue = value;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Handle "All" option or empty values - remove the filter
|
|
108
|
-
if (filterValue === 'all' || !filterValue || filterValue === '') {
|
|
109
|
-
delete this.activeFilters[key];
|
|
110
|
-
} else {
|
|
111
|
-
this.activeFilters[key] = filterValue;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
this.applyFilters();
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
private setupCustomFilter() {
|
|
118
|
-
this.data.filterPredicate = (data: any, filter: string) => {
|
|
119
|
-
const filters = JSON.parse(filter || '{}');
|
|
120
|
-
|
|
121
|
-
for (const [key, value] of Object.entries(filters)) {
|
|
122
|
-
if (!value) continue;
|
|
123
|
-
|
|
124
|
-
switch (key) {
|
|
125
|
-
case 'Site':
|
|
126
|
-
if (data.siteName !== this.getSiteNameFromValue(value as string)) {
|
|
127
|
-
return false;
|
|
128
|
-
}
|
|
129
|
-
break;
|
|
130
|
-
case 'Site Upgrade Status':
|
|
131
|
-
if (!this.matchesUpgradeStatus(data.upgradeStatus, value as string)) {
|
|
132
|
-
return false;
|
|
133
|
-
}
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
return true;
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
private applyFilters() {
|
|
143
|
-
this.data.filter = JSON.stringify(this.activeFilters);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
private getSiteNameFromValue(value: string): string {
|
|
147
|
-
// Since we're now using actual site names, just convert back from slug format
|
|
148
|
-
return value.split('-').map(word =>
|
|
149
|
-
word.charAt(0).toUpperCase() + word.slice(1)
|
|
150
|
-
).join(' ');
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
private matchesUpgradeStatus(status: string, filterValue: string): boolean {
|
|
154
|
-
// Handle direct status matching for cleaner implementation
|
|
155
|
-
return status.toLowerCase().replace(/\s+/g, '-') === filterValue.toLowerCase();
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
get filteredDataCount(): number {
|
|
159
|
-
return this.data?.filteredData?.length || 0;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/** Whether the number of selected elements matches the total number of rows. */
|
|
163
|
-
isAllSelected() {
|
|
164
|
-
const numSelected = this.selection.selected.length;
|
|
165
|
-
const numRows = this.data?.data.length || 0;
|
|
166
|
-
return numSelected === numRows;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
170
|
-
masterToggle() {
|
|
171
|
-
this.isAllSelected() ?
|
|
172
|
-
this.selection.clear() :
|
|
173
|
-
this.data?.data.forEach(row => this.selection.select(row));
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
getLocationMappingClass(locationMapping: boolean): string {
|
|
177
|
-
return locationMapping ? 'success' : 'error';
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
getSiteUpgradeStatusClass(status: string): string {
|
|
181
|
-
switch (status.toLowerCase()) {
|
|
182
|
-
case 'ready':
|
|
183
|
-
return 'ready';
|
|
184
|
-
case 'partial ready':
|
|
185
|
-
return 'partial-ready';
|
|
186
|
-
case 'completed':
|
|
187
|
-
return 'completed';
|
|
188
|
-
case 'failed':
|
|
189
|
-
return 'failed';
|
|
190
|
-
case 'not ready':
|
|
191
|
-
return 'not-ready';
|
|
192
|
-
default:
|
|
193
|
-
return 'not-ready';
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
upgradeSite(site: SiteUpgradeRecord) {
|
|
198
|
-
this.siteUpgradeService.upgradeSite(site);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
ngOnDestroy(): void {
|
|
202
|
-
this.destroy$.next();
|
|
203
|
-
this.destroy$.complete();
|
|
204
|
-
}
|
|
205
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { NgModule } from "@angular/core";
|
|
2
|
-
import { SiteUpgradeDataTableComponent } from "./site-upgrade-data-table/site-upgrade-data-table.component";
|
|
3
|
-
import { CommonModule } from "@angular/common";
|
|
4
|
-
import { MatTableModule } from "@angular/material/table";
|
|
5
|
-
import { MatIconModule } from "@angular/material/icon";
|
|
6
|
-
import { MatButtonModule } from "@angular/material/button";
|
|
7
|
-
import { SharedModule } from "../../shared/shared.module";
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
declarations: [
|
|
11
|
-
SiteUpgradeDataTableComponent
|
|
12
|
-
],
|
|
13
|
-
imports: [
|
|
14
|
-
CommonModule,
|
|
15
|
-
SharedModule,
|
|
16
|
-
MatTableModule,
|
|
17
|
-
MatIconModule,
|
|
18
|
-
MatButtonModule
|
|
19
|
-
],
|
|
20
|
-
exports: [
|
|
21
|
-
SiteUpgradeDataTableComponent
|
|
22
|
-
]
|
|
23
|
-
})
|
|
24
|
-
export class SiteUpgradeModule { }
|