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,220 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
|
+
import { DashboardFooterConfig } from '../../ui-kit/dashboard-footer/dashboard-footer-config';
|
|
3
|
+
import { CategoriesConfig } from './categories-config';
|
|
4
|
+
import { ASSETS } from '../constants/assets.constant';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'app-categories',
|
|
8
|
+
templateUrl: './categories.component.html',
|
|
9
|
+
styleUrls: ['./categories.component.less'],
|
|
10
|
+
})
|
|
11
|
+
export class CategoriesComponent implements OnInit {
|
|
12
|
+
ASSETS = ASSETS;
|
|
13
|
+
|
|
14
|
+
@Input() categoryList: CategoriesConfig = {
|
|
15
|
+
regulations: {
|
|
16
|
+
list: [],
|
|
17
|
+
selectedList: [],
|
|
18
|
+
},
|
|
19
|
+
standards: {
|
|
20
|
+
list: [],
|
|
21
|
+
selectedList: [],
|
|
22
|
+
},
|
|
23
|
+
internalControls: {
|
|
24
|
+
list: [],
|
|
25
|
+
selectedList: [],
|
|
26
|
+
},
|
|
27
|
+
others: {
|
|
28
|
+
list: [],
|
|
29
|
+
selectedList: [],
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
@Input() allCategories: any[] = [];
|
|
33
|
+
|
|
34
|
+
@Input() categoryIdKey: any;
|
|
35
|
+
@Input() selectedCategories: any[] = [];
|
|
36
|
+
|
|
37
|
+
search = '';
|
|
38
|
+
activeTab: 'standards' | 'regulations' | 'internalControls' | 'others' =
|
|
39
|
+
'regulations';
|
|
40
|
+
selectedIds: any[] = [];
|
|
41
|
+
animation = false;
|
|
42
|
+
blockWidth: any;
|
|
43
|
+
footerDetails: DashboardFooterConfig = {
|
|
44
|
+
selectedData: [],
|
|
45
|
+
nonRemovableList: [],
|
|
46
|
+
displayElementKey: 'item_name',
|
|
47
|
+
elementId: 'item_id',
|
|
48
|
+
singularText: 'Program selected',
|
|
49
|
+
pluralText: 'Programs selected',
|
|
50
|
+
showFrequency: false,
|
|
51
|
+
frequencyText: '',
|
|
52
|
+
isDisabled: false,
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
@Output() saveSelectedCategory = new EventEmitter();
|
|
56
|
+
@Output() closeList = new EventEmitter();
|
|
57
|
+
@Output() closeCategoriesList = new EventEmitter();
|
|
58
|
+
|
|
59
|
+
constructor() {}
|
|
60
|
+
|
|
61
|
+
ngOnInit(): void {
|
|
62
|
+
this.animation = true;
|
|
63
|
+
setTimeout(() => {
|
|
64
|
+
this.animation = false;
|
|
65
|
+
}, 300);
|
|
66
|
+
this.selectedIds = [];
|
|
67
|
+
if (this.selectedCategories) {
|
|
68
|
+
this.selectedCategories.forEach((element) => {
|
|
69
|
+
this.selectedIds.push(element[this.categoryIdKey]);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
this.setList();
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
selectCategory(mode: any, activeTab: any, category: any) {
|
|
76
|
+
if (mode) {
|
|
77
|
+
this.selectedIds.push(category[this.categoryIdKey]);
|
|
78
|
+
const rcElement = this.allCategories.findIndex(
|
|
79
|
+
(ele: any) => ele.category_id == category[this.categoryIdKey]
|
|
80
|
+
);
|
|
81
|
+
if (rcElement !== -1) {
|
|
82
|
+
const parentRc: any = this.allCategories[rcElement];
|
|
83
|
+
if (parentRc?.child_cat_ids?.length > 0) {
|
|
84
|
+
parentRc.child_cat_ids.forEach((childElement: any) => {
|
|
85
|
+
if (!this.selectedIds.includes(childElement)) {
|
|
86
|
+
this.selectedIds.push(childElement);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
} else {
|
|
92
|
+
const index = this.selectedIds.findIndex(
|
|
93
|
+
(element: any) => element == category[this.categoryIdKey]
|
|
94
|
+
);
|
|
95
|
+
this.selectedIds.splice(index, 1);
|
|
96
|
+
const rcElement = this.allCategories.findIndex(
|
|
97
|
+
(ele: any) => ele.category_id == category[this.categoryIdKey]
|
|
98
|
+
);
|
|
99
|
+
if (rcElement !== -1) {
|
|
100
|
+
const parentRc: any = this.allCategories[rcElement];
|
|
101
|
+
if (parentRc?.child_cat_ids?.length > 0) {
|
|
102
|
+
parentRc.child_cat_ids.forEach((childElement: any) => {
|
|
103
|
+
const removeIndex = this.selectedIds.findIndex(
|
|
104
|
+
(removeElement: any) => removeElement == childElement
|
|
105
|
+
);
|
|
106
|
+
this.selectedIds.splice(removeIndex, 1);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
this.setList();
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
deleteEvent(event: any) {
|
|
115
|
+
const index = this.selectedIds.findIndex(
|
|
116
|
+
(element: any) => element == event[this.categoryIdKey]
|
|
117
|
+
);
|
|
118
|
+
this.selectedIds.splice(index, 1);
|
|
119
|
+
this.setList();
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
selectAll(
|
|
123
|
+
mode: any,
|
|
124
|
+
activeTab: 'standards' | 'regulations' | 'internalControls' | 'others'
|
|
125
|
+
) {
|
|
126
|
+
if (mode) {
|
|
127
|
+
const list = [...this.categoryList[activeTab].list];
|
|
128
|
+
list.forEach((element) => {
|
|
129
|
+
if (!this.selectedIds.includes(element[this.categoryIdKey])) {
|
|
130
|
+
this.selectedIds.push(element[this.categoryIdKey]);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
} else {
|
|
134
|
+
const list = [...this.categoryList[activeTab].list];
|
|
135
|
+
list.forEach((element) => {
|
|
136
|
+
if (this.selectedIds.includes(element[this.categoryIdKey])) {
|
|
137
|
+
let idIndex = this.selectedIds.findIndex(
|
|
138
|
+
(id: any) => id == element[this.categoryIdKey]
|
|
139
|
+
);
|
|
140
|
+
this.selectedIds.splice(idIndex, 1);
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
this.setList();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
setList() {
|
|
148
|
+
const data: any = [];
|
|
149
|
+
const categoryList = [...new Set(this.allCategories)];
|
|
150
|
+
// cloneDeep(this.allCategories)
|
|
151
|
+
const selectedIds = [...new Set(this.selectedIds)];
|
|
152
|
+
// cloneDeep(this.selectedIds);
|
|
153
|
+
this.categoryList.regulations.selectedList = [];
|
|
154
|
+
this.categoryList.standards.selectedList = [];
|
|
155
|
+
this.categoryList.internalControls.selectedList = [];
|
|
156
|
+
this.categoryList.others.selectedList = [];
|
|
157
|
+
|
|
158
|
+
categoryList.forEach((element: any) => {
|
|
159
|
+
if (selectedIds.includes(element[this.categoryIdKey])) {
|
|
160
|
+
data.push(element);
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
this.selectedCategories = data;
|
|
164
|
+
this.footerDetails.selectedData = data;
|
|
165
|
+
|
|
166
|
+
this.categoryList.regulations.list.forEach((category: any) => {
|
|
167
|
+
if (selectedIds.includes(category[this.categoryIdKey])) {
|
|
168
|
+
this.categoryList.regulations.selectedList.push(category);
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
this.categoryList.standards.list.forEach((category: any) => {
|
|
172
|
+
if (selectedIds.includes(category[this.categoryIdKey])) {
|
|
173
|
+
this.categoryList.standards.selectedList.push(category);
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
this.categoryList.internalControls.list.forEach((category: any) => {
|
|
177
|
+
if (selectedIds.includes(category[this.categoryIdKey])) {
|
|
178
|
+
this.categoryList.internalControls.selectedList.push(category);
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
this.categoryList.others.list.forEach((category: any) => {
|
|
182
|
+
if (selectedIds.includes(category[this.categoryIdKey])) {
|
|
183
|
+
this.categoryList.others.selectedList.push(category);
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
if (!this.activeTab) {
|
|
187
|
+
this.setActiveTab();
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
setActiveTab() {
|
|
191
|
+
if (this.categoryList.regulations.selectedList.length > 0) {
|
|
192
|
+
this.activeTab = 'regulations';
|
|
193
|
+
} else if (this.categoryList.standards.selectedList.length > 0) {
|
|
194
|
+
this.activeTab = 'standards';
|
|
195
|
+
} else if (this.categoryList.internalControls.selectedList.length > 0) {
|
|
196
|
+
this.activeTab = 'internalControls';
|
|
197
|
+
} else if (this.categoryList.others.selectedList.length > 0) {
|
|
198
|
+
this.activeTab = 'others';
|
|
199
|
+
} else {
|
|
200
|
+
this.activeTab = 'regulations';
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
checkSelectAll(
|
|
205
|
+
activeTab: 'standards' | 'regulations' | 'internalControls' | 'others'
|
|
206
|
+
) {
|
|
207
|
+
const data = this.categoryList[activeTab].list.every((user: any) =>
|
|
208
|
+
this.selectedIds.includes(user[this.categoryIdKey])
|
|
209
|
+
);
|
|
210
|
+
return data;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
save() {
|
|
214
|
+
this.saveSelectedCategory.emit(this.selectedCategories);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
close() {
|
|
218
|
+
this.closeCategoriesList.emit();
|
|
219
|
+
}
|
|
220
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
<div class="configure-widgets vx-d-block" *ngIf="showWidgets">
|
|
2
|
+
<div
|
|
3
|
+
class="configure-widgets-head vx-d-flex vx-align-center vx-justify-between vx-pl-4 vx-pr-4"
|
|
4
|
+
>
|
|
5
|
+
<div class="configure-widgets-title vx-fs-14 vx-fw-500 vx-label-txt">
|
|
6
|
+
Configure Widgets
|
|
7
|
+
</div>
|
|
8
|
+
<button
|
|
9
|
+
class="configure-widgets-back vx-fs-14 vx-fw-500 vx-label-txt vx-m-0 vx-p-0 vx-d-inline-flex vx-align-center"
|
|
10
|
+
(click)="closeConfigureDashboard()"
|
|
11
|
+
>
|
|
12
|
+
<i class="icons vx-fs-16"></i> Back
|
|
13
|
+
</button>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="configure-widgets-body">
|
|
16
|
+
<div class="configure-widgets-tab">
|
|
17
|
+
<ul>
|
|
18
|
+
<li
|
|
19
|
+
[class.active]="module === 'COMPLIANCE'"
|
|
20
|
+
*ngIf="showCompliance"
|
|
21
|
+
(click)="module = 'COMPLIANCE'"
|
|
22
|
+
>
|
|
23
|
+
<!-- <button>
|
|
24
|
+
Compliance<span>{{ complianceWidgetsDisplayCount }}</span>
|
|
25
|
+
</button> -->
|
|
26
|
+
</li>
|
|
27
|
+
<li [class.active]="module === 'RISK'" *ngIf="showRisk">
|
|
28
|
+
<button (click)="module = 'RISK'">
|
|
29
|
+
Risks<span>{{ riskWidgetsDisplayCount }}</span>
|
|
30
|
+
</button>
|
|
31
|
+
</li>
|
|
32
|
+
</ul>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="configure-widgets-search vx-mb-2">
|
|
35
|
+
<i class="icons"></i>
|
|
36
|
+
<input type="text" placeholder="Search widgets" [(ngModel)]="search" />
|
|
37
|
+
</div>
|
|
38
|
+
<div
|
|
39
|
+
class="configure-widgets-list vx-d-flex vx-flex-wrap"
|
|
40
|
+
*ngIf="(widgetsList[module] | search : search).length !== 0"
|
|
41
|
+
>
|
|
42
|
+
<ng-container
|
|
43
|
+
*ngFor="let widget of widgetsList[module] | search : search"
|
|
44
|
+
>
|
|
45
|
+
<div class="configure-widgets-item" *ngIf="widget?.visibility">
|
|
46
|
+
<label class="block">
|
|
47
|
+
<input
|
|
48
|
+
type="checkbox"
|
|
49
|
+
[checked]="widget.value"
|
|
50
|
+
(change)="selectWidget($event.target.checked, module, widget.id)"
|
|
51
|
+
/>
|
|
52
|
+
<div class="check-icon">
|
|
53
|
+
<svg
|
|
54
|
+
class="check"
|
|
55
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
56
|
+
viewBox="0 0 52 52"
|
|
57
|
+
>
|
|
58
|
+
<circle
|
|
59
|
+
class="check-circle"
|
|
60
|
+
cx="26"
|
|
61
|
+
cy="26"
|
|
62
|
+
r="25"
|
|
63
|
+
fill="none"
|
|
64
|
+
/>
|
|
65
|
+
<path
|
|
66
|
+
class="check-circle"
|
|
67
|
+
fill="none"
|
|
68
|
+
d="M14.1 27.2l7.1 7.2 16.7-16.8"
|
|
69
|
+
/>
|
|
70
|
+
</svg>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="configure-widgets-item-head">
|
|
73
|
+
<h4
|
|
74
|
+
class="configure-widgets-item-title"
|
|
75
|
+
[innerHTML]="widget?.title"
|
|
76
|
+
></h4>
|
|
77
|
+
<p
|
|
78
|
+
class="configure-widgets-item-description"
|
|
79
|
+
[innerHTML]="widget?.description"
|
|
80
|
+
></p>
|
|
81
|
+
<button
|
|
82
|
+
*ngIf="!widget.value"
|
|
83
|
+
class="configure-widgets-item-button add"
|
|
84
|
+
(click)="selectWidget(true, module, widget.id)"
|
|
85
|
+
>
|
|
86
|
+
+ ADD
|
|
87
|
+
</button>
|
|
88
|
+
<button
|
|
89
|
+
*ngIf="widget.value"
|
|
90
|
+
class="configure-widgets-item-button remove"
|
|
91
|
+
(click)="selectWidget(false, module, widget.id)"
|
|
92
|
+
>
|
|
93
|
+
- Remove
|
|
94
|
+
</button>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="configure-widgets-item-body">
|
|
97
|
+
<div class="image-wrapper">
|
|
98
|
+
<img
|
|
99
|
+
[ngSrc]="widget?.widgetImage"
|
|
100
|
+
alt=""
|
|
101
|
+
width="790"
|
|
102
|
+
height="613"
|
|
103
|
+
/>
|
|
104
|
+
</div>
|
|
105
|
+
<div
|
|
106
|
+
class="floating-option vx-d-flex"
|
|
107
|
+
*ngIf="widget?.subWidgets?.length > 0"
|
|
108
|
+
>
|
|
109
|
+
<ng-container *ngFor="let subWidget of widget.subWidgets">
|
|
110
|
+
<app-cs-checkbox
|
|
111
|
+
*ngIf="subWidget.visibility"
|
|
112
|
+
(ngValueChange)="
|
|
113
|
+
selectWidget($event, module, widget.id, subWidget.id)
|
|
114
|
+
"
|
|
115
|
+
[ngValue]="subWidget.value"
|
|
116
|
+
>{{ subWidget.title }}
|
|
117
|
+
</app-cs-checkbox>
|
|
118
|
+
</ng-container>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
</label>
|
|
122
|
+
</div>
|
|
123
|
+
</ng-container>
|
|
124
|
+
|
|
125
|
+
<!-- No Data Image -->
|
|
126
|
+
</div>
|
|
127
|
+
<app-no-data
|
|
128
|
+
*ngIf="(widgetsList[module] | search : search).length === 0"
|
|
129
|
+
[noDataImage]="ASSETS.configure_widget"
|
|
130
|
+
[noDataText]="'No data to display'"
|
|
131
|
+
>
|
|
132
|
+
</app-no-data>
|
|
133
|
+
|
|
134
|
+
<floating-bar
|
|
135
|
+
(submitEvent)="onNextClick()"
|
|
136
|
+
(cancelEvent)="closeConfigureDashboard()"
|
|
137
|
+
[selectedData]="selectedWidgets"
|
|
138
|
+
(deleteEvent)="removeWidget($event)"
|
|
139
|
+
></floating-bar>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|