vc-create-dashboard 3.0.82 → 3.0.84
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 +24 -24
- package/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +11 -25
- package/src/lib/categoryList.ts +23 -0
- package/src/lib/configurations.ts +8 -0
- package/src/lib/create-dashboard-container/categories/categories-config.ts +18 -0
- package/src/lib/create-dashboard-container/categories/categories.component.html +150 -0
- package/src/lib/create-dashboard-container/categories/categories.component.less +252 -0
- package/src/lib/create-dashboard-container/categories/categories.component.spec.ts +43 -0
- package/src/lib/create-dashboard-container/categories/categories.component.ts +220 -0
- package/src/lib/create-dashboard-container/configure-widgets/configure-widgets/configure-widgets.component.html +141 -0
- package/src/lib/create-dashboard-container/configure-widgets/configure-widgets/configure-widgets.component.less +381 -0
- package/src/lib/create-dashboard-container/configure-widgets/configure-widgets/configure-widgets.component.spec.ts +48 -0
- package/src/lib/create-dashboard-container/configure-widgets/configure-widgets/configure-widgets.component.ts +392 -0
- package/src/lib/create-dashboard-container/configure-widgets/configure-widgets/widget.interface.ts +9 -0
- package/src/lib/create-dashboard-container/configure-widgets/configure-widgets.module.ts +30 -0
- package/src/lib/create-dashboard-container/constants/assets.constant.ts +37 -0
- package/src/lib/create-dashboard-container/create-dashboard-config.ts +24 -0
- package/src/lib/create-dashboard-container/create-dashboard-mockData.ts +341 -0
- package/src/lib/create-dashboard-container/create-dashboard.component.html +660 -0
- package/src/lib/create-dashboard-container/create-dashboard.component.less +1579 -0
- package/src/lib/create-dashboard-container/create-dashboard.component.ts +1886 -0
- package/src/lib/create-dashboard-container/create-dashboard.module.ts +76 -0
- package/src/lib/create-dashboard-container/directives/directives.module.ts +18 -0
- package/src/lib/create-dashboard-container/directives/scroll-in-view.directive.ts +28 -0
- package/src/lib/create-dashboard-container/form-group/form-group.component.html +288 -0
- package/src/lib/create-dashboard-container/form-group/form-group.component.less +450 -0
- package/src/lib/create-dashboard-container/form-group/form-group.component.spec.ts +90 -0
- package/src/lib/create-dashboard-container/form-group/form-group.component.ts +163 -0
- package/src/lib/create-dashboard-container/frequency/frequency.component.html +61 -0
- package/src/lib/create-dashboard-container/frequency/frequency.component.less +183 -0
- package/src/lib/create-dashboard-container/frequency/frequency.component.spec.ts +120 -0
- package/src/lib/create-dashboard-container/frequency/frequency.component.ts +303 -0
- package/{lib/create-dashboard-container/interfaces/widget-data-model.d.ts → src/lib/create-dashboard-container/interfaces/widget-data-model.ts} +8 -8
- package/src/lib/create-dashboard-container/pipes/filter.pipe.ts +25 -0
- package/src/lib/create-dashboard-container/pipes/search-program.pipe.ts +31 -0
- package/src/lib/create-dashboard-container/pipes/search.pipe.ts +23 -0
- package/src/lib/create-dashboard-container/pipes/text-count.pipe.spec.ts +8 -0
- package/src/lib/create-dashboard-container/pipes/text-count.pipe.ts +14 -0
- package/src/lib/create-dashboard-container/program-list/constant.ts +36 -0
- package/src/lib/create-dashboard-container/program-list/information-block/information-block.component.html +9 -0
- package/src/lib/create-dashboard-container/program-list/information-block/information-block.component.less +63 -0
- package/src/lib/create-dashboard-container/program-list/information-block/information-block.component.ts +15 -0
- package/src/lib/create-dashboard-container/program-list/interfaces/data-source.interface.ts +6 -0
- package/src/lib/create-dashboard-container/program-list/interfaces/list-item.interface.ts +8 -0
- package/src/lib/create-dashboard-container/program-list/interfaces/selection-predicate.interface.ts +4 -0
- package/src/lib/create-dashboard-container/program-list/list-container/list-container.component.less +57 -0
- package/src/lib/create-dashboard-container/program-list/list-container/list-container.component.ts +30 -0
- package/src/lib/create-dashboard-container/program-list/pipes/check-selected-items.pipes.ts +19 -0
- package/src/lib/create-dashboard-container/program-list/program-list/program-list.component.html +158 -0
- package/src/lib/create-dashboard-container/program-list/program-list/program-list.component.less +679 -0
- package/src/lib/create-dashboard-container/program-list/program-list/program-list.component.ts +342 -0
- package/src/lib/create-dashboard-container/program-list/program-list.module.ts +36 -0
- package/src/lib/create-dashboard-container/program-list/services/list-utils.service.ts +22 -0
- package/src/lib/create-dashboard-container/program-list/services/program-list-api.service.ts +24 -0
- package/src/lib/create-dashboard-container/responsibility-center/responsibility-center.component.html +70 -0
- package/src/lib/create-dashboard-container/responsibility-center/responsibility-center.component.less +181 -0
- package/src/lib/create-dashboard-container/responsibility-center/responsibility-center.component.spec.ts +41 -0
- package/src/lib/create-dashboard-container/responsibility-center/responsibility-center.component.ts +154 -0
- package/src/lib/create-dashboard-container/risk-categories/risk-categories-config.ts +18 -0
- package/src/lib/create-dashboard-container/risk-categories/risk-categories.component.html +152 -0
- package/src/lib/create-dashboard-container/risk-categories/risk-categories.component.less +230 -0
- package/src/lib/create-dashboard-container/risk-categories/risk-categories.component.spec.ts +39 -0
- package/src/lib/create-dashboard-container/risk-categories/risk-categories.component.ts +209 -0
- package/src/lib/create-dashboard-container/services/auth.service.ts +27 -0
- package/src/lib/create-dashboard-container/services/configure-widgets.service.spec.ts +19 -0
- package/src/lib/create-dashboard-container/services/configure-widgets.service.ts +235 -0
- package/src/lib/create-dashboard-container/services/create-dashboard.service.spec.ts +19 -0
- package/src/lib/create-dashboard-container/services/create-dashboard.service.ts +287 -0
- package/src/lib/create-dashboard-container/services/pagination.service.spec.ts +16 -0
- package/src/lib/create-dashboard-container/services/pagination.service.ts +25 -0
- package/src/lib/create-dashboard-container/services/urlConfig.service.ts +21 -0
- package/src/lib/create-dashboard-container/user-list/user-list.component.html +358 -0
- package/src/lib/create-dashboard-container/user-list/user-list.component.less +451 -0
- package/src/lib/create-dashboard-container/user-list/user-list.component.spec.ts +153 -0
- package/src/lib/create-dashboard-container/user-list/user-list.component.ts +472 -0
- package/{lib/create-dashboard-container/user-list/user-list.config.d.ts → src/lib/create-dashboard-container/user-list/user-list.config.ts} +13 -13
- package/src/lib/create-dashboard-container/utils/dashboard-edit.utils.ts +235 -0
- package/src/lib/create-dashboard.service.ts +8 -0
- package/src/lib/ui-kit/action-dialog/access-capability/access-capability.component.html +22 -0
- package/src/lib/ui-kit/action-dialog/access-capability/access-capability.component.less +218 -0
- package/src/lib/ui-kit/action-dialog/access-capability/access-capability.component.ts +30 -0
- package/src/lib/ui-kit/action-dialog/action-dialog.module.ts +53 -0
- package/src/lib/ui-kit/action-dialog/active/active.component.html +25 -0
- package/src/lib/ui-kit/action-dialog/active/active.component.less +168 -0
- package/src/lib/ui-kit/action-dialog/active/active.component.ts +31 -0
- package/src/lib/ui-kit/action-dialog/assesment-confirmation/assesment-confirmation.component.html +18 -0
- package/src/lib/ui-kit/action-dialog/assesment-confirmation/assesment-confirmation.component.less +98 -0
- package/src/lib/ui-kit/action-dialog/assesment-confirmation/assesment-confirmation.component.ts +18 -0
- package/src/lib/ui-kit/action-dialog/confirmation/confirmation.component.html +20 -0
- package/src/lib/ui-kit/action-dialog/confirmation/confirmation.component.less +325 -0
- package/src/lib/ui-kit/action-dialog/confirmation/confirmation.component.ts +26 -0
- package/src/lib/ui-kit/action-dialog/delete/delete.component.html +24 -0
- package/src/lib/ui-kit/action-dialog/delete/delete.component.less +240 -0
- package/src/lib/ui-kit/action-dialog/delete/delete.component.ts +22 -0
- package/src/lib/ui-kit/action-dialog/error/error.component.html +20 -0
- package/src/lib/ui-kit/action-dialog/error/error.component.less +103 -0
- package/src/lib/ui-kit/action-dialog/error/error.component.ts +18 -0
- package/src/lib/ui-kit/action-dialog/inactive/inactive.component.html +25 -0
- package/src/lib/ui-kit/action-dialog/inactive/inactive.component.less +167 -0
- package/src/lib/ui-kit/action-dialog/inactive/inactive.component.ts +29 -0
- package/src/lib/ui-kit/action-dialog/link/link.component.html +57 -0
- package/src/lib/ui-kit/action-dialog/link/link.component.less +222 -0
- package/src/lib/ui-kit/action-dialog/link/link.component.ts +18 -0
- package/src/lib/ui-kit/action-dialog/move/move.component.html +43 -0
- package/src/lib/ui-kit/action-dialog/move/move.component.less +157 -0
- package/src/lib/ui-kit/action-dialog/move/move.component.ts +25 -0
- package/src/lib/ui-kit/action-dialog/my-rating/my-rating.component.html +19 -0
- package/src/lib/ui-kit/action-dialog/my-rating/my-rating.component.less +97 -0
- package/src/lib/ui-kit/action-dialog/my-rating/my-rating.component.ts +18 -0
- package/src/lib/ui-kit/action-dialog/upload/upload.component.html +19 -0
- package/src/lib/ui-kit/action-dialog/upload/upload.component.less +97 -0
- package/src/lib/ui-kit/action-dialog/upload/upload.component.ts +12 -0
- package/src/lib/ui-kit/chart/bar/bar.component.html +28 -0
- package/src/lib/ui-kit/chart/bar/bar.component.less +13 -0
- package/src/lib/ui-kit/chart/bar/bar.component.ts +44 -0
- package/src/lib/ui-kit/chart/chart.module.ts +12 -0
- package/src/lib/ui-kit/chart/pipes/segmenter.pipe.ts +28 -0
- package/src/lib/ui-kit/chart/pipes/x-calculator.pipe.ts +22 -0
- package/src/lib/ui-kit/circle-progresss/circle/circle.component.html +37 -0
- package/src/lib/ui-kit/circle-progresss/circle/circle.component.less +1448 -0
- package/src/lib/ui-kit/circle-progresss/circle/circle.component.ts +19 -0
- package/src/lib/ui-kit/circle-progresss/circle-progresss.module.ts +10 -0
- package/src/lib/ui-kit/click-outside/click-outside.directive.ts +16 -0
- package/src/lib/ui-kit/click-outside/click-outside.module.ts +16 -0
- package/src/lib/ui-kit/color-palette/color-palette.component.html +110 -0
- package/src/lib/ui-kit/color-palette/color-palette.component.less +54 -0
- package/src/lib/ui-kit/color-palette/color-palette.component.ts +28 -0
- package/src/lib/ui-kit/color-palette/color-palette.module.ts +10 -0
- package/src/lib/ui-kit/dashboard-footer/dashboard-footer/dashboard-footer.component.html +37 -0
- package/src/lib/ui-kit/dashboard-footer/dashboard-footer/dashboard-footer.component.less +335 -0
- package/src/lib/ui-kit/dashboard-footer/dashboard-footer/dashboard-footer.component.spec.ts +25 -0
- package/src/lib/ui-kit/dashboard-footer/dashboard-footer/dashboard-footer.component.ts +44 -0
- package/src/lib/ui-kit/dashboard-footer/dashboard-footer-config.ts +11 -0
- package/src/lib/ui-kit/dashboard-footer/dashboard-footer.module.ts +22 -0
- package/src/lib/ui-kit/dialog/dialog-config.ts +6 -0
- package/src/lib/ui-kit/dialog/dialog-injector.ts +18 -0
- package/src/lib/ui-kit/dialog/dialog-ref.ts +12 -0
- package/src/lib/ui-kit/dialog/dialog.component.css +89 -0
- package/src/lib/ui-kit/dialog/dialog.component.html +27 -0
- package/src/lib/ui-kit/dialog/dialog.component.ts +112 -0
- package/src/lib/ui-kit/dialog/dialog.module.ts +11 -0
- package/src/lib/ui-kit/dialog/dialog.service.ts +57 -0
- package/src/lib/ui-kit/dialog/insertion.directive.ts +8 -0
- package/src/lib/ui-kit/floating-bar/floating-bar.component.html +42 -0
- package/src/lib/ui-kit/floating-bar/floating-bar.component.less +355 -0
- package/src/lib/ui-kit/floating-bar/floating-bar.component.spec.ts +25 -0
- package/src/lib/ui-kit/floating-bar/floating-bar.component.ts +40 -0
- package/src/lib/ui-kit/floating-bar/floating-bar.module.ts +22 -0
- package/src/lib/ui-kit/formgroup/click-outside.directive.ts +16 -0
- package/src/lib/ui-kit/formgroup/cs-checkbox/cs-checkbox.component.html +11 -0
- package/src/lib/ui-kit/formgroup/cs-checkbox/cs-checkbox.component.less +102 -0
- package/src/lib/ui-kit/formgroup/cs-checkbox/cs-checkbox.component.ts +19 -0
- package/src/lib/ui-kit/formgroup/cs-radio/cs-radio.component.html +11 -0
- package/src/lib/ui-kit/formgroup/cs-radio/cs-radio.component.less +125 -0
- package/src/lib/ui-kit/formgroup/cs-radio/cs-radio.component.ts +21 -0
- package/src/lib/ui-kit/formgroup/cs-radio-group/cs-radio-group.component.html +4 -0
- package/src/lib/ui-kit/formgroup/cs-radio-group/cs-radio-group.component.less +0 -0
- package/src/lib/ui-kit/formgroup/cs-radio-group/cs-radio-group.component.ts +12 -0
- package/src/lib/ui-kit/formgroup/cs-select/cs-select.component.html +78 -0
- package/src/lib/ui-kit/formgroup/cs-select/cs-select.component.less +259 -0
- package/src/lib/ui-kit/formgroup/cs-select/cs-select.component.ts +92 -0
- package/src/lib/ui-kit/formgroup/cs-switch/cs-switch.component.html +30 -0
- package/src/lib/ui-kit/formgroup/cs-switch/cs-switch.component.less +103 -0
- package/src/lib/ui-kit/formgroup/cs-switch/cs-switch.component.ts +23 -0
- package/src/lib/ui-kit/formgroup/formgroup.module.ts +35 -0
- package/src/lib/ui-kit/formgroup/pipes/pascal.pipe.ts +13 -0
- package/src/lib/ui-kit/formgroup/pipes/searchMultiSelect.pipe.ts +18 -0
- package/src/lib/ui-kit/line-loader/line-loader.component.html +3 -0
- package/src/lib/ui-kit/line-loader/line-loader.component.less +34 -0
- package/src/lib/ui-kit/line-loader/line-loader.component.ts +14 -0
- package/src/lib/ui-kit/line-loader/line-loader.module.ts +10 -0
- package/src/lib/ui-kit/loaders/loaders.module.ts +18 -0
- package/src/lib/ui-kit/loaders/table-loader/table-loader.component.html +17 -0
- package/src/lib/ui-kit/loaders/table-loader/table-loader.component.less +136 -0
- package/src/lib/ui-kit/loaders/table-loader/table-loader.component.ts +17 -0
- package/src/lib/ui-kit/longpress/longpress.directive.ts +28 -0
- package/src/lib/ui-kit/longpress/longpress.module.ts +10 -0
- package/src/lib/ui-kit/multi-select/cs-multiselect/cs-multiselect.component.html +51 -0
- package/src/lib/ui-kit/multi-select/cs-multiselect/cs-multiselect.component.less +367 -0
- package/src/lib/ui-kit/multi-select/cs-multiselect/cs-multiselect.component.spec.ts +24 -0
- package/src/lib/ui-kit/multi-select/cs-multiselect/cs-multiselect.component.ts +141 -0
- package/src/lib/ui-kit/multi-select/cs-multiselect-option/cs-multiselect-option.component.html +9 -0
- package/src/lib/ui-kit/multi-select/cs-multiselect-option/cs-multiselect-option.component.less +105 -0
- package/src/lib/ui-kit/multi-select/cs-multiselect-option/cs-multiselect-option.component.spec.ts +27 -0
- package/src/lib/ui-kit/multi-select/cs-multiselect-option/cs-multiselect-option.component.ts +24 -0
- package/src/lib/ui-kit/multi-select/multi-select.module.ts +24 -0
- package/src/lib/ui-kit/multi-select/multi-select.service.ts +10 -0
- package/src/lib/ui-kit/no-data/no-data.component.html +14 -0
- package/src/lib/ui-kit/no-data/no-data.component.less +86 -0
- package/src/lib/ui-kit/no-data/no-data.component.ts +26 -0
- package/src/lib/ui-kit/no-data/no-data.module.ts +10 -0
- package/src/lib/ui-kit/pagination/pagination.component.html +11 -0
- package/src/lib/ui-kit/pagination/pagination.component.less +72 -0
- package/src/lib/ui-kit/pagination/pagination.component.spec.ts +25 -0
- package/src/lib/ui-kit/pagination/pagination.component.ts +138 -0
- package/src/lib/ui-kit/pagination/pagination.module.ts +10 -0
- package/src/lib/ui-kit/pipes/pipes.module.ts +10 -0
- package/src/lib/ui-kit/pipes/safeHTML.pipe.ts +12 -0
- package/src/lib/ui-kit/pipes/trim.pipe.ts +10 -0
- package/src/lib/ui-kit/popover/popover.component.html +6 -0
- package/src/lib/ui-kit/popover/popover.component.less +20 -0
- package/src/lib/ui-kit/popover/popover.component.ts +127 -0
- package/src/lib/ui-kit/popover/popover.directive.ts +72 -0
- package/src/lib/ui-kit/popover/popover.module.ts +13 -0
- package/src/lib/ui-kit/popover/popover.service.ts +17 -0
- package/src/lib/ui-kit/ripple/ripple.directive.ts +36 -0
- package/src/lib/ui-kit/ripple/ripple.module.ts +10 -0
- package/src/lib/ui-kit/select/cs-option/cs-option.component.html +8 -0
- package/src/lib/ui-kit/select/cs-option/cs-option.component.less +49 -0
- package/src/lib/ui-kit/select/cs-option/cs-option.component.ts +31 -0
- package/src/lib/ui-kit/select/cs-select/cs-select.component.html +16 -0
- package/src/lib/ui-kit/select/cs-select/cs-select.component.less +142 -0
- package/src/lib/ui-kit/select/cs-select/cs-select.component.ts +98 -0
- package/src/lib/ui-kit/select/safe-html.pipe.ts +13 -0
- package/src/lib/ui-kit/select/select.module.ts +13 -0
- package/src/lib/ui-kit/services/cs-select.service.ts +10 -0
- package/src/lib/ui-kit/smiley-dialog/smiley-dialog.component.html +30 -0
- package/src/lib/ui-kit/smiley-dialog/smiley-dialog.component.less +442 -0
- package/src/lib/ui-kit/smiley-dialog/smiley-dialog.component.ts +40 -0
- package/src/lib/ui-kit/smiley-dialog/smiley-dialog.module.ts +11 -0
- package/src/lib/ui-kit/snack-bar/snack-bar/snack-bar.component.html +10 -0
- package/src/lib/ui-kit/snack-bar/snack-bar/snack-bar.component.less +110 -0
- package/src/lib/ui-kit/snack-bar/snack-bar/snack-bar.component.ts +42 -0
- package/src/lib/ui-kit/snack-bar/snack-bar.module.ts +10 -0
- package/src/lib/ui-kit/snack-bar/snack-bar.service.ts +18 -0
- package/src/lib/ui-kit/time-filter/time-filter.component.html +126 -0
- package/src/lib/ui-kit/time-filter/time-filter.component.less +482 -0
- package/src/lib/ui-kit/time-filter/time-filter.component.ts +284 -0
- package/src/lib/ui-kit/time-filter/time-filter.module.ts +10 -0
- package/src/lib/ui-kit/tooltip/tooltip.directive.ts +150 -0
- package/src/lib/ui-kit/tooltip/tooltip.module.ts +10 -0
- package/src/lib/ui-kit/v-loader/loader/loader.component.html +6 -0
- package/src/lib/ui-kit/v-loader/loader/loader.component.less +52 -0
- package/src/lib/ui-kit/v-loader/loader/loader.component.ts +22 -0
- package/src/lib/ui-kit/v-loader/loader-inline/loader-inline.component.html +6 -0
- package/src/lib/ui-kit/v-loader/loader-inline/loader-inline.component.less +52 -0
- package/src/lib/ui-kit/v-loader/loader-inline/loader-inline.component.ts +22 -0
- package/src/lib/ui-kit/v-loader/v-loader.module.ts +11 -0
- package/src/public-api.ts +11 -0
- package/src/test.ts +28 -0
- package/tsconfig.lib.json +20 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/esm2022/lib/configurations.mjs +0 -7
- package/esm2022/lib/create-dashboard-container/categories/categories-config.mjs +0 -2
- package/esm2022/lib/create-dashboard-container/categories/categories.component.mjs +0 -212
- package/esm2022/lib/create-dashboard-container/configure-widgets/configure-widgets/configure-widgets.component.mjs +0 -350
- package/esm2022/lib/create-dashboard-container/configure-widgets/configure-widgets/widget.interface.mjs +0 -2
- package/esm2022/lib/create-dashboard-container/configure-widgets/configure-widgets.module.mjs +0 -47
- package/esm2022/lib/create-dashboard-container/constants/assets.constant.mjs +0 -37
- package/esm2022/lib/create-dashboard-container/create-dashboard-config.mjs +0 -2
- package/esm2022/lib/create-dashboard-container/create-dashboard.component.mjs +0 -1561
- package/esm2022/lib/create-dashboard-container/create-dashboard.module.mjs +0 -127
- package/esm2022/lib/create-dashboard-container/directives/directives.module.mjs +0 -24
- package/esm2022/lib/create-dashboard-container/directives/scroll-in-view.directive.mjs +0 -36
- package/esm2022/lib/create-dashboard-container/form-group/form-group.component.mjs +0 -153
- package/esm2022/lib/create-dashboard-container/frequency/frequency.component.mjs +0 -309
- package/esm2022/lib/create-dashboard-container/interfaces/widget-data-model.mjs +0 -2
- package/esm2022/lib/create-dashboard-container/pipes/filter.pipe.mjs +0 -30
- package/esm2022/lib/create-dashboard-container/pipes/search-program.pipe.mjs +0 -37
- package/esm2022/lib/create-dashboard-container/pipes/search.pipe.mjs +0 -25
- package/esm2022/lib/create-dashboard-container/pipes/text-count.pipe.mjs +0 -19
- package/esm2022/lib/create-dashboard-container/program-list/constant.mjs +0 -31
- package/esm2022/lib/create-dashboard-container/program-list/information-block/information-block.component.mjs +0 -13
- package/esm2022/lib/create-dashboard-container/program-list/interfaces/list-item.interface.mjs +0 -2
- package/esm2022/lib/create-dashboard-container/program-list/list-container/list-container.component.mjs +0 -50
- package/esm2022/lib/create-dashboard-container/program-list/pipes/check-selected-items.pipes.mjs +0 -23
- package/esm2022/lib/create-dashboard-container/program-list/program-list/program-list.component.mjs +0 -294
- package/esm2022/lib/create-dashboard-container/program-list/program-list.module.mjs +0 -60
- package/esm2022/lib/create-dashboard-container/program-list/services/list-utils.service.mjs +0 -27
- package/esm2022/lib/create-dashboard-container/program-list/services/program-list-api.service.mjs +0 -35
- package/esm2022/lib/create-dashboard-container/responsibility-center/responsibility-center.component.mjs +0 -149
- package/esm2022/lib/create-dashboard-container/risk-categories/risk-categories-config.mjs +0 -2
- package/esm2022/lib/create-dashboard-container/risk-categories/risk-categories.component.mjs +0 -206
- package/esm2022/lib/create-dashboard-container/services/auth.service.mjs +0 -31
- package/esm2022/lib/create-dashboard-container/services/configure-widgets.service.mjs +0 -238
- package/esm2022/lib/create-dashboard-container/services/create-dashboard.service.mjs +0 -243
- package/esm2022/lib/create-dashboard-container/services/pagination.service.mjs +0 -28
- package/esm2022/lib/create-dashboard-container/user-list/user-list.component.mjs +0 -440
- package/esm2022/lib/create-dashboard-container/user-list/user-list.config.mjs +0 -2
- package/esm2022/lib/create-dashboard-container/utils/dashboard-edit.utils.mjs +0 -181
- package/esm2022/lib/create-dashboard.service.mjs +0 -14
- package/esm2022/lib/ui-kit/dashboard-footer/dashboard-footer/dashboard-footer.component.mjs +0 -52
- package/esm2022/lib/ui-kit/dashboard-footer/dashboard-footer-config.mjs +0 -2
- package/esm2022/lib/ui-kit/dashboard-footer/dashboard-footer.module.mjs +0 -32
- package/esm2022/lib/ui-kit/dialog/dialog-config.mjs +0 -7
- package/esm2022/lib/ui-kit/dialog/dialog-injector.mjs +0 -17
- package/esm2022/lib/ui-kit/dialog/dialog-ref.mjs +0 -11
- package/esm2022/lib/ui-kit/dialog/dialog.component.mjs +0 -96
- package/esm2022/lib/ui-kit/dialog/dialog.module.mjs +0 -20
- package/esm2022/lib/ui-kit/dialog/dialog.service.mjs +0 -56
- package/esm2022/lib/ui-kit/dialog/insertion.directive.mjs +0 -17
- package/esm2022/lib/ui-kit/floating-bar/floating-bar.component.mjs +0 -57
- package/esm2022/lib/ui-kit/floating-bar/floating-bar.module.mjs +0 -32
- package/esm2022/lib/ui-kit/formgroup/click-outside.directive.mjs +0 -30
- package/esm2022/lib/ui-kit/formgroup/cs-checkbox/cs-checkbox.component.mjs +0 -29
- package/esm2022/lib/ui-kit/formgroup/cs-radio/cs-radio.component.mjs +0 -34
- package/esm2022/lib/ui-kit/formgroup/cs-radio-group/cs-radio-group.component.mjs +0 -14
- package/esm2022/lib/ui-kit/formgroup/cs-select/cs-select.component.mjs +0 -119
- package/esm2022/lib/ui-kit/formgroup/cs-switch/cs-switch.component.mjs +0 -39
- package/esm2022/lib/ui-kit/formgroup/formgroup.module.mjs +0 -55
- package/esm2022/lib/ui-kit/formgroup/pipes/pascal.pipe.mjs +0 -19
- package/esm2022/lib/ui-kit/formgroup/pipes/searchMultiSelect.pipe.mjs +0 -24
- package/esm2022/lib/ui-kit/loaders/loaders.module.mjs +0 -24
- package/esm2022/lib/ui-kit/loaders/table-loader/table-loader.component.mjs +0 -18
- package/esm2022/lib/ui-kit/no-data/no-data.component.mjs +0 -47
- package/esm2022/lib/ui-kit/no-data/no-data.module.mjs +0 -18
- package/esm2022/lib/ui-kit/pagination/pagination.component.mjs +0 -130
- package/esm2022/lib/ui-kit/pagination/pagination.module.mjs +0 -18
- package/esm2022/lib/ui-kit/popover/popover.component.mjs +0 -129
- package/esm2022/lib/ui-kit/popover/popover.directive.mjs +0 -93
- package/esm2022/lib/ui-kit/popover/popover.module.mjs +0 -21
- package/esm2022/lib/ui-kit/popover/popover.service.mjs +0 -23
- package/esm2022/lib/ui-kit/select/cs-option/cs-option.component.mjs +0 -41
- package/esm2022/lib/ui-kit/select/cs-select/cs-select.component.mjs +0 -107
- package/esm2022/lib/ui-kit/select/safe-html.pipe.mjs +0 -21
- package/esm2022/lib/ui-kit/select/select.module.mjs +0 -21
- package/esm2022/lib/ui-kit/services/cs-select.service.mjs +0 -16
- package/esm2022/lib/ui-kit/smiley-dialog/smiley-dialog.component.mjs +0 -52
- package/esm2022/lib/ui-kit/smiley-dialog/smiley-dialog.module.mjs +0 -18
- package/esm2022/lib/ui-kit/snack-bar/snack-bar/snack-bar.component.mjs +0 -46
- package/esm2022/lib/ui-kit/snack-bar/snack-bar.module.mjs +0 -18
- package/esm2022/lib/ui-kit/snack-bar/snack-bar.service.mjs +0 -23
- package/esm2022/lib/ui-kit/tooltip/tooltip.directive.mjs +0 -168
- package/esm2022/lib/ui-kit/tooltip/tooltip.module.mjs +0 -18
- package/esm2022/lib/ui-kit/v-loader/loader/loader.component.mjs +0 -24
- package/esm2022/lib/ui-kit/v-loader/loader-inline/loader-inline.component.mjs +0 -24
- package/esm2022/lib/ui-kit/v-loader/v-loader.module.mjs +0 -19
- package/esm2022/public-api.mjs +0 -10
- package/esm2022/vc-create-dashboard.mjs +0 -5
- package/fesm2022/vc-create-dashboard.mjs +0 -6552
- package/fesm2022/vc-create-dashboard.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/configurations.d.ts +0 -4
- package/lib/create-dashboard-container/categories/categories-config.d.ts +0 -18
- package/lib/create-dashboard-container/categories/categories.component.d.ts +0 -66
- package/lib/create-dashboard-container/configure-widgets/configure-widgets/configure-widgets.component.d.ts +0 -113
- package/lib/create-dashboard-container/configure-widgets/configure-widgets/widget.interface.d.ts +0 -9
- package/lib/create-dashboard-container/configure-widgets/configure-widgets.module.d.ts +0 -14
- package/lib/create-dashboard-container/constants/assets.constant.d.ts +0 -35
- package/lib/create-dashboard-container/create-dashboard-config.d.ts +0 -18
- package/lib/create-dashboard-container/create-dashboard.component.d.ts +0 -219
- package/lib/create-dashboard-container/create-dashboard.module.d.ts +0 -37
- package/lib/create-dashboard-container/directives/directives.module.d.ts +0 -8
- package/lib/create-dashboard-container/directives/scroll-in-view.directive.d.ts +0 -12
- package/lib/create-dashboard-container/form-group/form-group.component.d.ts +0 -48
- package/lib/create-dashboard-container/frequency/frequency.component.d.ts +0 -39
- package/lib/create-dashboard-container/pipes/filter.pipe.d.ts +0 -7
- package/lib/create-dashboard-container/pipes/search-program.pipe.d.ts +0 -7
- package/lib/create-dashboard-container/pipes/search.pipe.d.ts +0 -7
- package/lib/create-dashboard-container/pipes/text-count.pipe.d.ts +0 -7
- package/lib/create-dashboard-container/program-list/constant.d.ts +0 -24
- package/lib/create-dashboard-container/program-list/information-block/information-block.component.d.ts +0 -6
- package/lib/create-dashboard-container/program-list/interfaces/list-item.interface.d.ts +0 -5
- package/lib/create-dashboard-container/program-list/list-container/list-container.component.d.ts +0 -9
- package/lib/create-dashboard-container/program-list/pipes/check-selected-items.pipes.d.ts +0 -7
- package/lib/create-dashboard-container/program-list/program-list/program-list.component.d.ts +0 -119
- package/lib/create-dashboard-container/program-list/program-list.module.d.ts +0 -17
- package/lib/create-dashboard-container/program-list/services/list-utils.service.d.ts +0 -7
- package/lib/create-dashboard-container/program-list/services/program-list-api.service.d.ts +0 -14
- package/lib/create-dashboard-container/responsibility-center/responsibility-center.component.d.ts +0 -62
- package/lib/create-dashboard-container/risk-categories/risk-categories-config.d.ts +0 -18
- package/lib/create-dashboard-container/risk-categories/risk-categories.component.d.ts +0 -66
- package/lib/create-dashboard-container/services/auth.service.d.ts +0 -11
- package/lib/create-dashboard-container/services/configure-widgets.service.d.ts +0 -23
- package/lib/create-dashboard-container/services/create-dashboard.service.d.ts +0 -82
- package/lib/create-dashboard-container/services/pagination.service.d.ts +0 -12
- package/lib/create-dashboard-container/user-list/user-list.component.d.ts +0 -123
- package/lib/create-dashboard-container/utils/dashboard-edit.utils.d.ts +0 -16
- package/lib/create-dashboard.service.d.ts +0 -6
- package/lib/ui-kit/dashboard-footer/dashboard-footer/dashboard-footer.component.d.ts +0 -17
- package/lib/ui-kit/dashboard-footer/dashboard-footer-config.d.ts +0 -11
- package/lib/ui-kit/dashboard-footer/dashboard-footer.module.d.ts +0 -10
- package/lib/ui-kit/dialog/dialog-config.d.ts +0 -6
- package/lib/ui-kit/dialog/dialog-injector.d.ts +0 -7
- package/lib/ui-kit/dialog/dialog-ref.d.ts +0 -7
- package/lib/ui-kit/dialog/dialog.component.d.ts +0 -33
- package/lib/ui-kit/dialog/dialog.module.d.ts +0 -9
- package/lib/ui-kit/dialog/dialog.service.d.ts +0 -17
- package/lib/ui-kit/dialog/insertion.directive.d.ts +0 -8
- package/lib/ui-kit/floating-bar/floating-bar.component.d.ts +0 -20
- package/lib/ui-kit/floating-bar/floating-bar.module.d.ts +0 -10
- package/lib/ui-kit/formgroup/click-outside.directive.d.ts +0 -10
- package/lib/ui-kit/formgroup/cs-checkbox/cs-checkbox.component.d.ts +0 -13
- package/lib/ui-kit/formgroup/cs-radio/cs-radio.component.d.ts +0 -15
- package/lib/ui-kit/formgroup/cs-radio-group/cs-radio-group.component.d.ts +0 -8
- package/lib/ui-kit/formgroup/cs-select/cs-select.component.d.ts +0 -36
- package/lib/ui-kit/formgroup/cs-switch/cs-switch.component.d.ts +0 -15
- package/lib/ui-kit/formgroup/formgroup.module.d.ts +0 -17
- package/lib/ui-kit/formgroup/pipes/pascal.pipe.d.ts +0 -7
- package/lib/ui-kit/formgroup/pipes/searchMultiSelect.pipe.d.ts +0 -7
- package/lib/ui-kit/loaders/loaders.module.d.ts +0 -8
- package/lib/ui-kit/loaders/table-loader/table-loader.component.d.ts +0 -9
- package/lib/ui-kit/no-data/no-data.component.d.ts +0 -19
- package/lib/ui-kit/no-data/no-data.module.d.ts +0 -8
- package/lib/ui-kit/pagination/pagination.component.d.ts +0 -21
- package/lib/ui-kit/pagination/pagination.module.d.ts +0 -8
- package/lib/ui-kit/popover/popover.component.d.ts +0 -28
- package/lib/ui-kit/popover/popover.directive.d.ts +0 -17
- package/lib/ui-kit/popover/popover.module.d.ts +0 -9
- package/lib/ui-kit/popover/popover.service.d.ts +0 -13
- package/lib/ui-kit/select/cs-option/cs-option.component.d.ts +0 -16
- package/lib/ui-kit/select/cs-select/cs-select.component.d.ts +0 -32
- package/lib/ui-kit/select/safe-html.pipe.d.ts +0 -10
- package/lib/ui-kit/select/select.module.d.ts +0 -11
- package/lib/ui-kit/services/cs-select.service.d.ts +0 -7
- package/lib/ui-kit/smiley-dialog/smiley-dialog.component.d.ts +0 -17
- package/lib/ui-kit/smiley-dialog/smiley-dialog.module.d.ts +0 -8
- package/lib/ui-kit/snack-bar/snack-bar/snack-bar.component.d.ts +0 -17
- package/lib/ui-kit/snack-bar/snack-bar.module.d.ts +0 -8
- package/lib/ui-kit/snack-bar/snack-bar.service.d.ts +0 -9
- package/lib/ui-kit/tooltip/tooltip.directive.d.ts +0 -28
- package/lib/ui-kit/tooltip/tooltip.module.d.ts +0 -8
- package/lib/ui-kit/v-loader/loader/loader.component.d.ts +0 -11
- package/lib/ui-kit/v-loader/loader-inline/loader-inline.component.d.ts +0 -11
- package/lib/ui-kit/v-loader/v-loader.module.d.ts +0 -9
- package/public-api.d.ts +0 -3
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
@import url("https://cdn.v-comply.com/design-system/css/icons/icons.css");
|
|
2
|
+
@import url("https://cdn.v-comply.com/design-system/css/display/display.css");
|
|
3
|
+
@import url("https://cdn.v-comply.com/design-system/css/alignment/alignment.css");
|
|
4
|
+
@import url("https://cdn.v-comply.com/design-system/css/text/text.css");
|
|
5
|
+
@import url("https://cdn.v-comply.com/design-system/css/color/color.css");
|
|
6
|
+
@import url("https://cdn.v-comply.com/design-system/css/width/width.css");
|
|
7
|
+
@import url("https://cdn.v-comply.com/design-system/css/margin/margin.css");
|
|
8
|
+
@import url("https://cdn.v-comply.com/design-system/css/margin/margin-top.css");
|
|
9
|
+
@import url("https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css");
|
|
10
|
+
@import url("https://cdn.v-comply.com/design-system/css/margin/margin-left.css");
|
|
11
|
+
@import url("https://cdn.v-comply.com/design-system/css/margin/margin-right.css");
|
|
12
|
+
@import url("https://cdn.v-comply.com/design-system/css/padding/padding.css");
|
|
13
|
+
@import url("https://cdn.v-comply.com/design-system/css/padding/padding-top.css");
|
|
14
|
+
@import url("https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css");
|
|
15
|
+
@import url("https://cdn.v-comply.com/design-system/css/padding/padding-left.css");
|
|
16
|
+
@import url("https://cdn.v-comply.com/design-system/css/padding/padding-right.css");
|
|
17
|
+
|
|
18
|
+
::ng-deep .user-list {
|
|
19
|
+
background: #FFFFFF;
|
|
20
|
+
border-right: 1px solid #F1F1F1;
|
|
21
|
+
position: fixed;
|
|
22
|
+
top: 0;
|
|
23
|
+
right: 500px;
|
|
24
|
+
bottom: 0;
|
|
25
|
+
left: 0;
|
|
26
|
+
|
|
27
|
+
&-head {
|
|
28
|
+
background: #fbfbfb;
|
|
29
|
+
height: 2.75rem;
|
|
30
|
+
border-bottom: 1px solid #f1f1f1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-body {
|
|
34
|
+
height: calc(100vh - 2.75rem);
|
|
35
|
+
padding: 2rem;
|
|
36
|
+
position: relative;
|
|
37
|
+
|
|
38
|
+
&-top {
|
|
39
|
+
display : flex;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
padding : 0 0 16px 0;
|
|
42
|
+
|
|
43
|
+
app-cs-checkbox {
|
|
44
|
+
display: flex;
|
|
45
|
+
|
|
46
|
+
label {
|
|
47
|
+
span.value {
|
|
48
|
+
margin-left: 9px !important;
|
|
49
|
+
|
|
50
|
+
strong {
|
|
51
|
+
color : #161b2f;
|
|
52
|
+
font-size : 12px;
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.selection-list {
|
|
62
|
+
height: calc(100vh - 16rem);
|
|
63
|
+
overflow : hidden;
|
|
64
|
+
overflow-y: auto;
|
|
65
|
+
|
|
66
|
+
&::-webkit-scrollbar-track {
|
|
67
|
+
background: transparent;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.with-pagination {
|
|
71
|
+
height: calc(100vh - 18rem);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.with-group {
|
|
75
|
+
height: calc(100vh - 18.1rem);
|
|
76
|
+
|
|
77
|
+
&.with-pagination {
|
|
78
|
+
height: calc(100vh - 20.1rem);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.with-noData {
|
|
82
|
+
height: calc(100vh - 16.1rem);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
ul {
|
|
87
|
+
padding: 0;
|
|
88
|
+
margin: 0;
|
|
89
|
+
display : flex;
|
|
90
|
+
align-items: flex-start;
|
|
91
|
+
flex-wrap : wrap;
|
|
92
|
+
|
|
93
|
+
li {
|
|
94
|
+
width : 50%;
|
|
95
|
+
padding : 0 20px 4px 0;
|
|
96
|
+
margin-bottom: 12px;
|
|
97
|
+
list-style: none;
|
|
98
|
+
|
|
99
|
+
app-cs-checkbox,
|
|
100
|
+
app-cs-radio {
|
|
101
|
+
display: flex;
|
|
102
|
+
|
|
103
|
+
label {
|
|
104
|
+
width: 100%;
|
|
105
|
+
|
|
106
|
+
span.value {
|
|
107
|
+
width : auto;
|
|
108
|
+
justify-content: flex-start;
|
|
109
|
+
flex-wrap : wrap;
|
|
110
|
+
margin-left: 8px !important;
|
|
111
|
+
color: #161b2f !important;
|
|
112
|
+
font-size: 12px !important;
|
|
113
|
+
|
|
114
|
+
span {
|
|
115
|
+
&.name {
|
|
116
|
+
color : #161b2f;
|
|
117
|
+
font-weight: 400;
|
|
118
|
+
line-height: 20px;
|
|
119
|
+
display : block;
|
|
120
|
+
width : 100%;
|
|
121
|
+
font-size : 13px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.position {
|
|
125
|
+
border-radius : 2px;
|
|
126
|
+
display : inline-flex;
|
|
127
|
+
height : 12px;
|
|
128
|
+
align-items : center;
|
|
129
|
+
padding : 0 2px;
|
|
130
|
+
text-transform: uppercase;
|
|
131
|
+
font-size : 9px;
|
|
132
|
+
line-height : 12px;
|
|
133
|
+
font-weight : 500;
|
|
134
|
+
|
|
135
|
+
&.admin {
|
|
136
|
+
background: #fff9e6;
|
|
137
|
+
color : #f2bf19;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&.key-admin {
|
|
141
|
+
background: #dff2e1;
|
|
142
|
+
color : #34aa44;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&.manager {
|
|
146
|
+
background: #d4e2fc;
|
|
147
|
+
color : #4681ef;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&.executive {
|
|
151
|
+
color : #747576;
|
|
152
|
+
background: #f1f1f1;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.pagination-box {
|
|
164
|
+
app-pagination {
|
|
165
|
+
.pagination-box {
|
|
166
|
+
margin-bottom: .5rem !important;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.list-of-user {
|
|
172
|
+
app-no-data {
|
|
173
|
+
.no-data-wrapper {
|
|
174
|
+
height: calc(100vh - 16.125rem);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&-search {
|
|
181
|
+
position: relative;
|
|
182
|
+
|
|
183
|
+
input {
|
|
184
|
+
height : 2.75rem;
|
|
185
|
+
line-height : 1.5rem;
|
|
186
|
+
padding : .5rem 1rem .5rem 2.5rem;
|
|
187
|
+
outline : none;
|
|
188
|
+
border : 1px solid #7475763f;
|
|
189
|
+
border-radius: .25rem;
|
|
190
|
+
width : 100%;
|
|
191
|
+
font-size : 14px;
|
|
192
|
+
color : #747576;
|
|
193
|
+
|
|
194
|
+
&:focus {
|
|
195
|
+
border-color: #1e5dd3;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
i {
|
|
200
|
+
position: absolute;
|
|
201
|
+
left: 1rem;
|
|
202
|
+
top: 1rem;
|
|
203
|
+
pointer-events: none;
|
|
204
|
+
color: #f1f1f1;
|
|
205
|
+
font-size: 12px;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&-tab {
|
|
210
|
+
border-bottom: 1px solid #dbdbdb;
|
|
211
|
+
|
|
212
|
+
button {
|
|
213
|
+
&.tab-btn {
|
|
214
|
+
background: transparent;
|
|
215
|
+
border-radius: 0;
|
|
216
|
+
border: none;
|
|
217
|
+
border-bottom: 3px solid transparent;
|
|
218
|
+
margin-right: 1.75rem !important;
|
|
219
|
+
padding-bottom: 6px !important;
|
|
220
|
+
|
|
221
|
+
span {
|
|
222
|
+
border-radius: 1.25rem;
|
|
223
|
+
color: #74757680;
|
|
224
|
+
min-width: 1.5rem;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&.active {
|
|
229
|
+
pointer-events: none;
|
|
230
|
+
|
|
231
|
+
&.tab-btn {
|
|
232
|
+
border-color: #1E5DD3;
|
|
233
|
+
color: #1E5DD3;
|
|
234
|
+
|
|
235
|
+
span {
|
|
236
|
+
background: #1E5DD3;
|
|
237
|
+
color: #fff;
|
|
238
|
+
font-weight: 500;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&-mid {
|
|
246
|
+
width: calc(100% + .75rem);
|
|
247
|
+
height: calc(100vh - 15.6rem);
|
|
248
|
+
overflow: auto;
|
|
249
|
+
padding-right: .75rem;
|
|
250
|
+
|
|
251
|
+
&::-webkit-scrollbar-track {
|
|
252
|
+
background-color: #fff;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&.with-pagination {
|
|
256
|
+
height: calc(100vh - 17.6rem);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.user-list {
|
|
260
|
+
&-select {
|
|
261
|
+
background: #fff;
|
|
262
|
+
position: sticky;
|
|
263
|
+
top: 0;
|
|
264
|
+
z-index: 1;
|
|
265
|
+
|
|
266
|
+
app-cs-checkbox,
|
|
267
|
+
app-cs-checkbox-indeterminate {
|
|
268
|
+
display: flex;
|
|
269
|
+
|
|
270
|
+
.checkbox-item {
|
|
271
|
+
position: relative;
|
|
272
|
+
padding-left: 1.5rem;
|
|
273
|
+
width: 100%;
|
|
274
|
+
|
|
275
|
+
.checkbox {
|
|
276
|
+
position: absolute !important;
|
|
277
|
+
left: 0;
|
|
278
|
+
top: 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.checkmark {
|
|
282
|
+
position: absolute !important;
|
|
283
|
+
left: 0;
|
|
284
|
+
top: 0;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
span {
|
|
288
|
+
justify-content: unset !important;
|
|
289
|
+
margin: 0 !important;
|
|
290
|
+
|
|
291
|
+
&.value {
|
|
292
|
+
color: #747576 !important;
|
|
293
|
+
font-size: 11px !important;
|
|
294
|
+
font-weight: 600 !important;
|
|
295
|
+
text-transform: uppercase !important;
|
|
296
|
+
width: 100%;
|
|
297
|
+
|
|
298
|
+
.user-name {
|
|
299
|
+
text-overflow: ellipsis;
|
|
300
|
+
white-space: nowrap;
|
|
301
|
+
overflow: hidden;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
&-item {
|
|
310
|
+
ul {
|
|
311
|
+
list-style-type: none;
|
|
312
|
+
align-items: flex-start;
|
|
313
|
+
flex-wrap: wrap;
|
|
314
|
+
|
|
315
|
+
li {
|
|
316
|
+
width: 50%;
|
|
317
|
+
|
|
318
|
+
app-cs-checkbox {
|
|
319
|
+
width: calc(100% - 4.5rem);
|
|
320
|
+
display: flex;
|
|
321
|
+
|
|
322
|
+
.checkbox-item {
|
|
323
|
+
position: relative;
|
|
324
|
+
padding-left: 1.5rem;
|
|
325
|
+
width: 100%;
|
|
326
|
+
|
|
327
|
+
.checkbox {
|
|
328
|
+
position: absolute !important;
|
|
329
|
+
left: 0;
|
|
330
|
+
top: 0;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.checkmark {
|
|
334
|
+
position: absolute !important;
|
|
335
|
+
left: 0;
|
|
336
|
+
top: 0;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
span {
|
|
340
|
+
justify-content: unset !important;
|
|
341
|
+
margin: 0 !important;
|
|
342
|
+
|
|
343
|
+
&.value {
|
|
344
|
+
color: #161b2f !important;
|
|
345
|
+
font-size: 12px !important;
|
|
346
|
+
width: 100%;
|
|
347
|
+
|
|
348
|
+
.user-name {
|
|
349
|
+
text-overflow: ellipsis;
|
|
350
|
+
white-space: nowrap;
|
|
351
|
+
overflow: hidden;
|
|
352
|
+
|
|
353
|
+
.group-name{
|
|
354
|
+
text-overflow: ellipsis;
|
|
355
|
+
white-space: nowrap;
|
|
356
|
+
overflow: hidden;
|
|
357
|
+
max-width: calc(100% - 40px);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
.counter {
|
|
363
|
+
background: #f1f1f1;
|
|
364
|
+
border-radius: .125rem;
|
|
365
|
+
color: #042E7D;
|
|
366
|
+
margin-left: .5rem !important;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
app-no-data {
|
|
379
|
+
.no-data-wrapper {
|
|
380
|
+
height: calc(100vh - 15.625rem);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
::ng-deep .user-floating-bar {
|
|
387
|
+
&-container {
|
|
388
|
+
height: 48px;
|
|
389
|
+
border-radius: 4px;
|
|
390
|
+
box-shadow: 0 6px 12px #4681ef26;
|
|
391
|
+
border: 1px solid #f8f8f8;
|
|
392
|
+
padding: 8px 12px;
|
|
393
|
+
position: relative;
|
|
394
|
+
background: #FFFFFF;
|
|
395
|
+
width: 100%;
|
|
396
|
+
|
|
397
|
+
.left {
|
|
398
|
+
.counter {
|
|
399
|
+
background: #34AA44;
|
|
400
|
+
border-radius: 1.25rem;
|
|
401
|
+
border: none;
|
|
402
|
+
min-width: 1.5rem;
|
|
403
|
+
height: 1rem;
|
|
404
|
+
|
|
405
|
+
&.group {
|
|
406
|
+
background: #1e5dd3;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.right {
|
|
412
|
+
display : flex;
|
|
413
|
+
align-items: center;
|
|
414
|
+
|
|
415
|
+
button {
|
|
416
|
+
border-radius: 2px;
|
|
417
|
+
height: 24px;
|
|
418
|
+
background: #1e5dd3!important;
|
|
419
|
+
display: flex;
|
|
420
|
+
justify-content: center;
|
|
421
|
+
align-items: center;
|
|
422
|
+
cursor: pointer;
|
|
423
|
+
color: #fff!important;
|
|
424
|
+
text-transform: uppercase;
|
|
425
|
+
font-size: 11px;
|
|
426
|
+
font-weight: 500;
|
|
427
|
+
border: none!important;
|
|
428
|
+
padding: 0 8px;
|
|
429
|
+
margin: 0 0 0 8px;
|
|
430
|
+
|
|
431
|
+
i {
|
|
432
|
+
margin-left: 8px;
|
|
433
|
+
font-size: 11px;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
&:disabled {
|
|
437
|
+
filter : unset;
|
|
438
|
+
background: #F1F1F1!important;
|
|
439
|
+
color: #747576!important;
|
|
440
|
+
opacity: 1;
|
|
441
|
+
pointer-events: none;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
&.cancel {
|
|
445
|
+
background: transparent!important;
|
|
446
|
+
color: #eb2424!important;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
2
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
+
|
|
4
|
+
import { UserListComponent } from './user-list.component';
|
|
5
|
+
import { FormsModule } from '@angular/forms';
|
|
6
|
+
import { DashboardFooterModule } from '../../ui-kit/dashboard-footer/dashboard-footer.module';
|
|
7
|
+
import { FloatingBarModule } from '../../ui-kit/floating-bar/floating-bar.module';
|
|
8
|
+
import { SelectModule } from '../../ui-kit/select/select.module';
|
|
9
|
+
import { TooltipModule } from '../../ui-kit/tooltip/tooltip.module';
|
|
10
|
+
import { FilterPipe } from '../pipes/filter.pipe';
|
|
11
|
+
import { CommonModule } from '@angular/common';
|
|
12
|
+
// import { CreateDashboardService } from 'projects/create-dashboard/src/public-api';
|
|
13
|
+
import { CreateDashboardService } from '../services/create-dashboard.service';
|
|
14
|
+
import { PaginationService } from '../services/pagination.service';
|
|
15
|
+
import { of } from 'rxjs';
|
|
16
|
+
import { By } from '@angular/platform-browser';
|
|
17
|
+
import { FeatureFlagService } from 'src/app/layout/featureFlag/feature-flag.service';
|
|
18
|
+
describe('UserListComponent', () => {
|
|
19
|
+
let component: UserListComponent;
|
|
20
|
+
let fixture: ComponentFixture<UserListComponent>;
|
|
21
|
+
let mockCreateDashboardService: CreateDashboardService;
|
|
22
|
+
let mockPaginationService: any;
|
|
23
|
+
let groupsIds = [860, 857]
|
|
24
|
+
let groupslist = [{ "old_group_id": 0, "member_ids": [18282, 18262, 18503, 18521, 17924], "removed_member_ids": [], "group_type": "vcomply", "state": 1, "_id": "63807db50067e1000852d62b", "group_name": "abc", "group_description": "", "roles": [{ "_id": "638d923ebb03890008a2c7b9", "roleId": { "_id": "6387478a721ddf000839fcda", "roleName": "Manage Program Permission Group", "licenseType": "power users", "id": "6387478a721ddf000839fcda" } }], "associatedUsers": [{ "_id": "638d923ebb03890008a2c7b4", "userId": { "profile_pic": "", "license_type": "power users", "_id": "6361fbe19f6cda0008120e49", "member_name": "A3", "member_email": "a3@fdfd.com", "member_id": 18282 } }, { "_id": "638d923ebb03890008a2c7b5", "userId": { "profile_pic": "", "license_type": "power users", "_id": "63523a540aa9a200094da903", "member_name": "A2", "member_email": "a2@fdfd.com", "member_id": 18262 } }, { "_id": "638d923ebb03890008a2c7b6", "userId": { "profile_pic": "", "license_type": "power users", "_id": "637f59bd9b20b00008e763a3", "member_name": "LightUser1", "member_email": "light@fdfd.com", "member_id": 18503 } }, { "_id": "638d923ebb03890008a2c7b7", "userId": { "profile_pic": "", "license_type": "power users", "_id": "6388501a057eaf000886b647", "member_name": "A4", "member_email": "a4@fdfd.com", "member_id": 18521 } }, { "_id": "638d923ebb03890008a2c7b8", "userId": { "profile_pic": "", "license_type": "power users", "_id": "623ac9fa46968d0009c8f0ed", "member_name": "A1", "member_email": "a1@fdfd.com", "member_id": 17924 } }], "organisation_id": 3452, "created_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "modified_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "created_at": 1669365173, "updated_at": 1670222398, "member_count": 5, "group_id": 853, "__v": 0 },
|
|
25
|
+
{ "old_group_id": 0, "member_ids": [17924, 18262], "removed_member_ids": [], "group_type": "vcomply", "state": 1, "_id": "638b19553d93f900082d5f51", "group_name": "check group with reviewer", "group_description": "", "roles": [{ "_id": "638b19553d93f900082d5f52", "roleId": { "_id": "6387478a721ddf000839fcda", "roleName": "Manage Program Permission Group", "licenseType": "power users", "id": "6387478a721ddf000839fcda" } }, { "_id": "638b19553d93f900082d5f53", "roleId": { "_id": "623ac7cb249833000910502c", "roleName": "Manager", "licenseType": "power users", "id": "623ac7cb249833000910502c" } }, { "_id": "638b19553d93f900082d5f54", "roleId": { "_id": "623ac7cb249833000910506c", "roleName": "Admin", "licenseType": "power users", "id": "623ac7cb249833000910506c" } }], "associatedUsers": [{ "_id": "638b19553d93f900082d5f55", "userId": { "profile_pic": "", "license_type": "power users", "_id": "623ac9fa46968d0009c8f0ed", "member_name": "A1", "member_email": "a1@fdfd.com", "member_id": 17924 } }, { "_id": "638b19553d93f900082d5f56", "userId": { "profile_pic": "", "license_type": "power users", "_id": "63523a540aa9a200094da903", "member_name": "A2", "member_email": "a2@fdfd.com", "member_id": 18262 } }], "organisation_id": 3452, "created_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "modified_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "created_at": 1670060373, "updated_at": 1670060373, "member_count": 2, "group_id": 860, "__v": 0 }]
|
|
26
|
+
let service: FeatureFlagService;
|
|
27
|
+
beforeEach(async () => {
|
|
28
|
+
// mockCreateDashboardService = jasmine.createSpyObj(['getAllUsers', 'getOrganizationUsers','getAllGroups']);
|
|
29
|
+
mockPaginationService = jasmine.createSpyObj(['currentPage', 'searchValue']);
|
|
30
|
+
|
|
31
|
+
await TestBed.configureTestingModule({
|
|
32
|
+
declarations: [UserListComponent, FilterPipe],
|
|
33
|
+
imports: [HttpClientModule,
|
|
34
|
+
CommonModule,
|
|
35
|
+
FormsModule,
|
|
36
|
+
TooltipModule,
|
|
37
|
+
SelectModule,
|
|
38
|
+
DashboardFooterModule,
|
|
39
|
+
FloatingBarModule,],
|
|
40
|
+
providers: [
|
|
41
|
+
{ provide: CreateDashboardService, useValue: { getOrganizationUsers: () => of(), getAllGroups: () => of() } },
|
|
42
|
+
{ provide: PaginationService, useValue: mockPaginationService },
|
|
43
|
+
{
|
|
44
|
+
provide: FeatureFlagService,
|
|
45
|
+
useValue: {
|
|
46
|
+
isFeatureEnabled: () => of({
|
|
47
|
+
"ff_groups_improvements": {
|
|
48
|
+
"enabled": true
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
|
|
55
|
+
})
|
|
56
|
+
.compileComponents();
|
|
57
|
+
mockCreateDashboardService = TestBed.inject(CreateDashboardService);
|
|
58
|
+
service = TestBed.inject(FeatureFlagService);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
beforeEach(() => {
|
|
62
|
+
fixture = TestBed.createComponent(UserListComponent);
|
|
63
|
+
component = fixture.componentInstance;
|
|
64
|
+
fixture.detectChanges();
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it('should create', () => {
|
|
68
|
+
expect(component).toBeTruthy();
|
|
69
|
+
});
|
|
70
|
+
it("Select All should work as for user group", () => {
|
|
71
|
+
spyOn(mockCreateDashboardService, 'getAllGroups').and.returnValue(of({ "items_from": 1, "total_items": 3, "total_pages": 1, "items_to": 3, "data": [{ "old_group_id": 0, "member_ids": [17924, 18262], "removed_member_ids": [], "group_type": "vcomply", "state": 1, "_id": "638b19553d93f900082d5f51", "group_name": "check group with reviewer", "group_description": "", "roles": [{ "_id": "638b19553d93f900082d5f52", "roleId": { "_id": "6387478a721ddf000839fcda", "roleName": "Manage Program Permission Group", "licenseType": "power users", "id": "6387478a721ddf000839fcda" } }, { "_id": "638b19553d93f900082d5f53", "roleId": { "_id": "623ac7cb249833000910502c", "roleName": "Manager", "licenseType": "power users", "id": "623ac7cb249833000910502c" } }, { "_id": "638b19553d93f900082d5f54", "roleId": { "_id": "623ac7cb249833000910506c", "roleName": "Admin", "licenseType": "power users", "id": "623ac7cb249833000910506c" } }], "associatedUsers": [{ "_id": "638b19553d93f900082d5f55", "userId": { "profile_pic": "", "license_type": "power users", "_id": "623ac9fa46968d0009c8f0ed", "member_name": "A1", "member_email": "a1@fdfd.com", "member_id": 17924 } }, { "_id": "638b19553d93f900082d5f56", "userId": { "profile_pic": "", "license_type": "power users", "_id": "63523a540aa9a200094da903", "member_name": "A2", "member_email": "a2@fdfd.com", "member_id": 18262 } }], "organisation_id": 3452, "created_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "modified_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "created_at": 1670060373, "updated_at": 1670060373, "member_count": 2, "group_id": 860, "__v": 0 }] }));
|
|
72
|
+
component.groupsEnabled = true;
|
|
73
|
+
component.selectAllGroups(true);
|
|
74
|
+
component.listDetails.groupIdkey = 'group_id'
|
|
75
|
+
component.selectedGroupIds = groupsIds
|
|
76
|
+
fixture.detectChanges();
|
|
77
|
+
expect(component.selectedGroupIds).toEqual(groupsIds)
|
|
78
|
+
})
|
|
79
|
+
it('deselectAll should work as for user group', () => {
|
|
80
|
+
spyOn(mockCreateDashboardService, 'getAllGroups').and.returnValue(of({ "items_from": 1, "total_items": 3, "total_pages": 1, "items_to": 3, "data": [{ "old_group_id": 0, "member_ids": [17924, 18262], "removed_member_ids": [], "group_type": "vcomply", "state": 1, "_id": "638b19553d93f900082d5f51", "group_name": "check group with reviewer", "group_description": "", "roles": [{ "_id": "638b19553d93f900082d5f52", "roleId": { "_id": "6387478a721ddf000839fcda", "roleName": "Manage Program Permission Group", "licenseType": "power users", "id": "6387478a721ddf000839fcda" } }, { "_id": "638b19553d93f900082d5f53", "roleId": { "_id": "623ac7cb249833000910502c", "roleName": "Manager", "licenseType": "power users", "id": "623ac7cb249833000910502c" } }, { "_id": "638b19553d93f900082d5f54", "roleId": { "_id": "623ac7cb249833000910506c", "roleName": "Admin", "licenseType": "power users", "id": "623ac7cb249833000910506c" } }], "associatedUsers": [{ "_id": "638b19553d93f900082d5f55", "userId": { "profile_pic": "", "license_type": "power users", "_id": "623ac9fa46968d0009c8f0ed", "member_name": "A1", "member_email": "a1@fdfd.com", "member_id": 17924 } }, { "_id": "638b19553d93f900082d5f56", "userId": { "profile_pic": "", "license_type": "power users", "_id": "63523a540aa9a200094da903", "member_name": "A2", "member_email": "a2@fdfd.com", "member_id": 18262 } }], "organisation_id": 3452, "created_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "modified_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "created_at": 1670060373, "updated_at": 1670060373, "member_count": 2, "group_id": 860, "__v": 0 }] }));
|
|
81
|
+
component.selectAllGroups(false);
|
|
82
|
+
fixture.detectChanges();
|
|
83
|
+
expect(component.selectedGroupIds).toEqual([])
|
|
84
|
+
})
|
|
85
|
+
it('check selectGroup ', () => {
|
|
86
|
+
component.groupsEnabled = true;
|
|
87
|
+
component.selectedGroupIds = [860]
|
|
88
|
+
component.listDetails.groupIdkey = 'group_id'
|
|
89
|
+
component.selectGroupElement(groupslist)
|
|
90
|
+
fixture.detectChanges()
|
|
91
|
+
expect(component.selectedGroupIds.length).toEqual(2)
|
|
92
|
+
})
|
|
93
|
+
it('switchtab for user and user groups', () => {
|
|
94
|
+
spyOn(mockCreateDashboardService, 'getAllGroups').and.returnValue(of({ "items_from": 1, "total_items": 3, "total_pages": 1, "items_to": 3, "data": [{ "old_group_id": 0, "member_ids": [17924, 18262], "removed_member_ids": [], "group_type": "vcomply", "state": 1, "_id": "638b19553d93f900082d5f51", "group_name": "check group with reviewer", "group_description": "", "roles": [{ "_id": "638b19553d93f900082d5f52", "roleId": { "_id": "6387478a721ddf000839fcda", "roleName": "Manage Program Permission Group", "licenseType": "power users", "id": "6387478a721ddf000839fcda" } }, { "_id": "638b19553d93f900082d5f53", "roleId": { "_id": "623ac7cb249833000910502c", "roleName": "Manager", "licenseType": "power users", "id": "623ac7cb249833000910502c" } }, { "_id": "638b19553d93f900082d5f54", "roleId": { "_id": "623ac7cb249833000910506c", "roleName": "Admin", "licenseType": "power users", "id": "623ac7cb249833000910506c" } }], "associatedUsers": [{ "_id": "638b19553d93f900082d5f55", "userId": { "profile_pic": "", "license_type": "power users", "_id": "623ac9fa46968d0009c8f0ed", "member_name": "A1", "member_email": "a1@fdfd.com", "member_id": 17924 } }, { "_id": "638b19553d93f900082d5f56", "userId": { "profile_pic": "", "license_type": "power users", "_id": "63523a540aa9a200094da903", "member_name": "A2", "member_email": "a2@fdfd.com", "member_id": 18262 } }], "organisation_id": 3452, "created_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "modified_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "created_at": 1670060373, "updated_at": 1670060373, "member_count": 2, "group_id": 860, "__v": 0 }] }));
|
|
95
|
+
component.groupsEnabled = true;
|
|
96
|
+
component.switchTab('GROUP')
|
|
97
|
+
const value = fixture.debugElement.nativeElement.querySelector('#switchtab');
|
|
98
|
+
fixture.detectChanges()
|
|
99
|
+
expect(component.currentTab).toEqual('GROUP')
|
|
100
|
+
expect(component.searchValue).toEqual('')
|
|
101
|
+
expect(component.totalgroups).toEqual(3)
|
|
102
|
+
})
|
|
103
|
+
it('verify the pagination for User Group', () => {
|
|
104
|
+
spyOn(mockCreateDashboardService, 'getAllGroups').and.returnValue(of({ "items_from": 1, "total_items": 3, "total_pages": 1, "items_to": 3, "data": [{ "old_group_id": 0, "member_ids": [17924, 18262], "removed_member_ids": [], "group_type": "vcomply", "state": 1, "_id": "638b19553d93f900082d5f51", "group_name": "check group with reviewer", "group_description": "", "roles": [{ "_id": "638b19553d93f900082d5f52", "roleId": { "_id": "6387478a721ddf000839fcda", "roleName": "Manage Program Permission Group", "licenseType": "power users", "id": "6387478a721ddf000839fcda" } }, { "_id": "638b19553d93f900082d5f53", "roleId": { "_id": "623ac7cb249833000910502c", "roleName": "Manager", "licenseType": "power users", "id": "623ac7cb249833000910502c" } }, { "_id": "638b19553d93f900082d5f54", "roleId": { "_id": "623ac7cb249833000910506c", "roleName": "Admin", "licenseType": "power users", "id": "623ac7cb249833000910506c" } }], "associatedUsers": [{ "_id": "638b19553d93f900082d5f55", "userId": { "profile_pic": "", "license_type": "power users", "_id": "623ac9fa46968d0009c8f0ed", "member_name": "A1", "member_email": "a1@fdfd.com", "member_id": 17924 } }, { "_id": "638b19553d93f900082d5f56", "userId": { "profile_pic": "", "license_type": "power users", "_id": "63523a540aa9a200094da903", "member_name": "A2", "member_email": "a2@fdfd.com", "member_id": 18262 } }], "organisation_id": 3452, "created_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "modified_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "created_at": 1670060373, "updated_at": 1670060373, "member_count": 2, "group_id": 860, "__v": 0 }] }));
|
|
105
|
+
component.groupsEnabled = true;
|
|
106
|
+
component.currentTab = 'GROUP';
|
|
107
|
+
component.paginationFilter(true)
|
|
108
|
+
component.getGroupsList({ page: 1, groupName: "check" })
|
|
109
|
+
expect(component.totalPages).toEqual(1)
|
|
110
|
+
expect(component.totalgroups).toEqual(3)
|
|
111
|
+
})
|
|
112
|
+
it('verify the search for User Group', () => {
|
|
113
|
+
spyOn(mockCreateDashboardService, 'getAllGroups').and.returnValue(of({ "items_from": 1, "total_items": 3, "total_pages": 1, "items_to": 3, "data": [{ "old_group_id": 0, "member_ids": [17924, 18262], "removed_member_ids": [], "group_type": "vcomply", "state": 1, "_id": "638b19553d93f900082d5f51", "group_name": "check group with reviewer", "group_description": "", "roles": [{ "_id": "638b19553d93f900082d5f52", "roleId": { "_id": "6387478a721ddf000839fcda", "roleName": "Manage Program Permission Group", "licenseType": "power users", "id": "6387478a721ddf000839fcda" } }, { "_id": "638b19553d93f900082d5f53", "roleId": { "_id": "623ac7cb249833000910502c", "roleName": "Manager", "licenseType": "power users", "id": "623ac7cb249833000910502c" } }, { "_id": "638b19553d93f900082d5f54", "roleId": { "_id": "623ac7cb249833000910506c", "roleName": "Admin", "licenseType": "power users", "id": "623ac7cb249833000910506c" } }], "associatedUsers": [{ "_id": "638b19553d93f900082d5f55", "userId": { "profile_pic": "", "license_type": "power users", "_id": "623ac9fa46968d0009c8f0ed", "member_name": "A1", "member_email": "a1@fdfd.com", "member_id": 17924 } }, { "_id": "638b19553d93f900082d5f56", "userId": { "profile_pic": "", "license_type": "power users", "_id": "63523a540aa9a200094da903", "member_name": "A2", "member_email": "a2@fdfd.com", "member_id": 18262 } }], "organisation_id": 3452, "created_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "modified_by": { "profile_pic": "", "_id": "623ac7c92498330009104f71", "member_name": "D1", "member_email": "test@fdfd.com", "member_id": 17923 }, "created_at": 1670060373, "updated_at": 1670060373, "member_count": 2, "group_id": 860, "__v": 0 }] }));
|
|
114
|
+
component.groupsEnabled = true;
|
|
115
|
+
component.currentTab = 'GROUP';
|
|
116
|
+
component.paginationFilter(true)
|
|
117
|
+
component.getGroupsList({ groupName: "check" })
|
|
118
|
+
component.searchValue = 'check'
|
|
119
|
+
fixture.detectChanges()
|
|
120
|
+
expect(component.groupdata[0].group_name).toEqual('check group with reviewer');
|
|
121
|
+
})
|
|
122
|
+
it('verify the count of the user groups coming from the create dashboard ', () => {
|
|
123
|
+
component.groupsEnabled = true;
|
|
124
|
+
component.totalgroupscount = 3;
|
|
125
|
+
component.switchTab('GROUP')
|
|
126
|
+
component.currentTab = 'GROUP';
|
|
127
|
+
fixture.detectChanges()
|
|
128
|
+
const value = fixture.debugElement.query(By.css('#groupscount'))
|
|
129
|
+
expect(value.nativeElement.innerText).toEqual('3')
|
|
130
|
+
})
|
|
131
|
+
it('verify the users count of user groups ', () => {
|
|
132
|
+
component.groupsEnabled = true;
|
|
133
|
+
component.currentTab = 'GROUP';
|
|
134
|
+
component.groupdata = groupslist
|
|
135
|
+
component.selectGroupElement(1)
|
|
136
|
+
fixture.detectChanges()
|
|
137
|
+
const value = fixture.debugElement.query(By.css('#usersofgroup'))
|
|
138
|
+
expect(value.nativeElement.innerText).toEqual('5 USERS')
|
|
139
|
+
})
|
|
140
|
+
it("verify the selectAll search ",()=>{
|
|
141
|
+
component.selectAllsearchgroups(false);
|
|
142
|
+
fixture.detectChanges()
|
|
143
|
+
expect(component.selectedgroupList).toEqual([])
|
|
144
|
+
expect(component.selectedGroupIds).toEqual([])
|
|
145
|
+
})
|
|
146
|
+
it('verify checkSelectAllgroups',()=>{
|
|
147
|
+
component.checkSelectAllGroups()
|
|
148
|
+
component.groupdata=groupslist
|
|
149
|
+
component.selectedGroupIds = [853,860]
|
|
150
|
+
component.listDetails.groupIdkey = 'group_id'
|
|
151
|
+
expect(component.checkSelectAllGroups()).toBeTrue();
|
|
152
|
+
})
|
|
153
|
+
});
|