vc-create-dashboard 3.0.6 → 3.0.61
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/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +3 -17
- 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 +589 -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 +36 -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 +1276 -0
- package/src/lib/create-dashboard-container/create-dashboard.component.less +1453 -0
- package/src/lib/create-dashboard-container/create-dashboard.component.ts +1333 -0
- package/src/lib/create-dashboard-container/create-dashboard.module.ts +75 -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} +1 -1
- package/src/lib/create-dashboard-container/pipes/filter.pipe.ts +25 -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 +15 -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 +245 -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 +220 -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 +357 -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} +6 -6
- 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 +1 -0
- package/src/lib/ui-kit/action-dialog/active/active.component.less +0 -0
- package/src/lib/ui-kit/action-dialog/active/active.component.ts +12 -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 +23 -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 +12 -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 +114 -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/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 +124 -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 +33 -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 -551
- 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 -35
- package/esm2022/lib/create-dashboard-container/create-dashboard-config.mjs +0 -2
- package/esm2022/lib/create-dashboard-container/create-dashboard.component.mjs +0 -1119
- package/esm2022/lib/create-dashboard-container/create-dashboard.module.mjs +0 -132
- 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.pipe.mjs +0 -25
- package/esm2022/lib/create-dashboard-container/pipes/text-count.pipe.mjs +0 -19
- 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 -230
- package/esm2022/lib/create-dashboard-container/services/create-dashboard.service.mjs +0 -160
- package/esm2022/lib/create-dashboard-container/services/pagination.service.mjs +0 -28
- package/esm2022/lib/create-dashboard-container/services/urlConfig.service.mjs +0 -29
- 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.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 -99
- 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/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 -142
- 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 -5526
- 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 -65
- package/lib/create-dashboard-container/configure-widgets/configure-widgets/configure-widgets.component.d.ts +0 -122
- 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 -34
- package/lib/create-dashboard-container/create-dashboard-config.d.ts +0 -18
- package/lib/create-dashboard-container/create-dashboard.component.d.ts +0 -178
- package/lib/create-dashboard-container/create-dashboard.module.d.ts +0 -40
- 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.pipe.d.ts +0 -7
- package/lib/create-dashboard-container/pipes/text-count.pipe.d.ts +0 -7
- package/lib/create-dashboard-container/responsibility-center/responsibility-center.component.d.ts +0 -61
- 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 -65
- package/lib/create-dashboard-container/services/auth.service.d.ts +0 -11
- package/lib/create-dashboard-container/services/configure-widgets.service.d.ts +0 -38
- package/lib/create-dashboard-container/services/create-dashboard.service.d.ts +0 -45
- package/lib/create-dashboard-container/services/pagination.service.d.ts +0 -12
- package/lib/create-dashboard-container/services/urlConfig.service.d.ts +0 -10
- package/lib/create-dashboard-container/user-list/user-list.component.d.ts +0 -122
- 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/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,589 @@
|
|
|
1
|
+
import { ConfigureWidgetsService } from '../../services/configure-widgets.service';
|
|
2
|
+
import {
|
|
3
|
+
Component,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
Input,
|
|
6
|
+
OnChanges,
|
|
7
|
+
OnInit,
|
|
8
|
+
Output,
|
|
9
|
+
} from '@angular/core';
|
|
10
|
+
import { retry } from 'rxjs/operators';
|
|
11
|
+
import { widgetDataModel } from '../../interfaces/widget-data-model';
|
|
12
|
+
import { DialogRef } from '../../../ui-kit/dialog/dialog-ref';
|
|
13
|
+
import { widgetConfig } from './widget.interface';
|
|
14
|
+
import { SnackBarService } from '../../../ui-kit/snack-bar/snack-bar.service';
|
|
15
|
+
import { ASSETS } from '../../constants/assets.constant';
|
|
16
|
+
|
|
17
|
+
@Component({
|
|
18
|
+
selector: 'app-configure-widgets',
|
|
19
|
+
templateUrl: './configure-widgets.component.html',
|
|
20
|
+
styleUrls: ['./configure-widgets.component.less'],
|
|
21
|
+
})
|
|
22
|
+
export class ConfigureWidgetsComponent implements OnInit, OnChanges {
|
|
23
|
+
@Output() widgetsDataModified: EventEmitter<any> = new EventEmitter();
|
|
24
|
+
@Output() closeConfigureWidgets: EventEmitter<any> = new EventEmitter();
|
|
25
|
+
checkboxStatus!: any;
|
|
26
|
+
search: string = '';
|
|
27
|
+
checkedArray: Array<{ index: number; status: number }> = [];
|
|
28
|
+
selectedWidgets: Array<widgetDataModel> = [];
|
|
29
|
+
ASSETS = ASSETS;
|
|
30
|
+
module: 'COMPLIANCE' | 'RISK' = 'COMPLIANCE';
|
|
31
|
+
@Input() selectedWidgetsData: any = [];
|
|
32
|
+
@Input() displayedWidgets: any = [];
|
|
33
|
+
@Input() showRisk = false;
|
|
34
|
+
@Input() showCompliance = false;
|
|
35
|
+
@Input() mode = 'CREATE';
|
|
36
|
+
noDataText =
|
|
37
|
+
'You have not configured any widgets. Click on the <strong>Configure Widgets</strong> button to begin.';
|
|
38
|
+
|
|
39
|
+
selectedWidgetIds: any = [];
|
|
40
|
+
subResponsibilitiesSelected: boolean = false;
|
|
41
|
+
subKeyResponsibilitiesSelected: boolean = false;
|
|
42
|
+
showWidgets = true;
|
|
43
|
+
complianceWidgetsDisplayCount = 9;
|
|
44
|
+
riskWidgetsDisplayCount = 9;
|
|
45
|
+
|
|
46
|
+
constructor(
|
|
47
|
+
private dialog: DialogRef,
|
|
48
|
+
public configureWidgetsService: ConfigureWidgetsService,
|
|
49
|
+
private snackBar: SnackBarService
|
|
50
|
+
) {}
|
|
51
|
+
|
|
52
|
+
ngOnChanges() {
|
|
53
|
+
if (this.mode == 'EDIT') {
|
|
54
|
+
this.setWidgetsVisibilityToFalse();
|
|
55
|
+
this.riskWidgetsDisplayCount = 0;
|
|
56
|
+
this.complianceWidgetsDisplayCount = 0;
|
|
57
|
+
const finalData = [...new Set(this.displayedWidgets)];
|
|
58
|
+
finalData.forEach((element: any, index: any) => {
|
|
59
|
+
this.widgetsList.COMPLIANCE.forEach((ele: any) => {
|
|
60
|
+
if (ele.id == element.widget_code) {
|
|
61
|
+
ele.visibility = true;
|
|
62
|
+
if (ele.subWidgets.length > 0) {
|
|
63
|
+
const filterData: any = [];
|
|
64
|
+
element.sub_widgets.filter((subwidget: any) => {
|
|
65
|
+
filterData.push(subwidget.widget_code);
|
|
66
|
+
});
|
|
67
|
+
ele.subWidgets.forEach((subElement: any, subIndex: number) => {
|
|
68
|
+
if (filterData.includes(subElement.id)) {
|
|
69
|
+
ele.subWidgets[subIndex].visibility = true;
|
|
70
|
+
} else {
|
|
71
|
+
ele.subWidgets[subIndex].visibility = false;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
this.complianceWidgetsDisplayCount++;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
this.widgetsList.RISK.forEach((ele: any) => {
|
|
79
|
+
if (ele.id == element.widget_code) {
|
|
80
|
+
ele.visibility = true;
|
|
81
|
+
if (ele.subWidgets.length > 0) {
|
|
82
|
+
const filterData: any = [];
|
|
83
|
+
element.sub_widgets.filter((subwidget: any) => {
|
|
84
|
+
filterData.push(subwidget.widget_code);
|
|
85
|
+
});
|
|
86
|
+
ele.subWidgets.forEach((subElement: any, subIndex: number) => {
|
|
87
|
+
if (filterData.includes(subElement.id)) {
|
|
88
|
+
ele.subWidgets[subIndex].visibility = true;
|
|
89
|
+
} else {
|
|
90
|
+
ele.subWidgets[subIndex].visibility = false;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
this.riskWidgetsDisplayCount++;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
const data = [...new Set(this.selectedWidgetsData)];
|
|
100
|
+
data.forEach((element: any, index: any) => {
|
|
101
|
+
this.widgetsList.COMPLIANCE.forEach((ele: any) => {
|
|
102
|
+
if (ele.id == element.widget_code && element.state == 'ACTIVE') {
|
|
103
|
+
ele.value = true;
|
|
104
|
+
if (ele.subWidgets.length > 0) {
|
|
105
|
+
const filterData: any = [];
|
|
106
|
+
element.sub_widgets.filter((subwidget: any) => {
|
|
107
|
+
if (subwidget.state == 'ACTIVE') {
|
|
108
|
+
filterData.push(subwidget.widget_code);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
ele.subWidgets.forEach((subElement: any, subIndex: number) => {
|
|
112
|
+
if (filterData.includes(subElement.id)) {
|
|
113
|
+
ele.subWidgets[subIndex].value = true;
|
|
114
|
+
} else {
|
|
115
|
+
ele.subWidgets[subIndex].value = false;
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
this.selectedWidgets.push(ele);
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
this.widgetsList.RISK.forEach((ele: any) => {
|
|
123
|
+
if (ele.id == element.widget_code && element.state == 'ACTIVE') {
|
|
124
|
+
ele.value = true;
|
|
125
|
+
if (ele.subWidgets.length > 0) {
|
|
126
|
+
const filterData: any = [];
|
|
127
|
+
element.sub_widgets.filter((subwidget: any) => {
|
|
128
|
+
if (subwidget.state == 'ACTIVE') {
|
|
129
|
+
filterData.push(subwidget.widget_code);
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
ele.subWidgets.forEach((subElement: any, subIndex: number) => {
|
|
133
|
+
if (filterData.includes(subElement.id)) {
|
|
134
|
+
ele.subWidgets[subIndex].value = true;
|
|
135
|
+
} else {
|
|
136
|
+
ele.subWidgets[subIndex].value = false;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
this.selectedWidgets.push(ele);
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
this.module = this.showCompliance ? 'COMPLIANCE' : 'RISK';
|
|
145
|
+
this.setSelectedWidgets();
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
ngOnInit(): void {}
|
|
149
|
+
|
|
150
|
+
widgetsList = {
|
|
151
|
+
COMPLIANCE: [
|
|
152
|
+
{
|
|
153
|
+
title: 'Overview',
|
|
154
|
+
id: 'overview',
|
|
155
|
+
description:
|
|
156
|
+
'Overview shows the performance of responsibilities and Programs.',
|
|
157
|
+
widgetImage: ASSETS.overviewWidget,
|
|
158
|
+
value: false,
|
|
159
|
+
visibility: true,
|
|
160
|
+
module: 'COMPLIANCE',
|
|
161
|
+
subWidgets: [],
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
title: 'Responsibility Calendar',
|
|
165
|
+
id: 'compliance_calendar_flag',
|
|
166
|
+
description:
|
|
167
|
+
'The Responsibility Calendar shows the due dates of responsibilities in a calendar format. The responsibilities are color coded to reflect the status of the responsibilities.',
|
|
168
|
+
widgetImage: ASSETS.responsibilityCalenderWidget,
|
|
169
|
+
value: false,
|
|
170
|
+
visibility: true,
|
|
171
|
+
module: 'COMPLIANCE',
|
|
172
|
+
subWidgets: [],
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
title: 'Responsibility Center Overview',
|
|
176
|
+
id: 'responsibility_center_overview_flag',
|
|
177
|
+
description:
|
|
178
|
+
'The Responsibility Center Overview shows the performance of responsibilities and Responsibility Centers.',
|
|
179
|
+
widgetImage: ASSETS.responsibilityCenterOverviewWidget,
|
|
180
|
+
value: false,
|
|
181
|
+
visibility: true,
|
|
182
|
+
module: 'COMPLIANCE',
|
|
183
|
+
subWidgets: [],
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
title: 'Responsibilities',
|
|
187
|
+
id: 'my_responsibilities',
|
|
188
|
+
description:
|
|
189
|
+
'This widget shows the performance of the responsibilities that you are required to complete, the responsibilities that you are reviewing and the responsibilities that you are overseeing.',
|
|
190
|
+
widgetImage: ASSETS.myResponsibilitiesWidget,
|
|
191
|
+
tabOption: true,
|
|
192
|
+
value: false,
|
|
193
|
+
visibility: true,
|
|
194
|
+
module: 'COMPLIANCE',
|
|
195
|
+
subWidgets: [
|
|
196
|
+
{
|
|
197
|
+
title: 'My Responsibilities',
|
|
198
|
+
id: 'my_responsibility_flag',
|
|
199
|
+
value: false,
|
|
200
|
+
visibility: true,
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
title: 'I’m Reviewing',
|
|
204
|
+
id: 'reviewer_responsibility_flag',
|
|
205
|
+
value: false,
|
|
206
|
+
visibility: true,
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
title: 'I’m Overseeing',
|
|
210
|
+
id: 'cc_responsibility_flag',
|
|
211
|
+
value: false,
|
|
212
|
+
visibility: true,
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
title: 'Key Responsibilities',
|
|
218
|
+
id: 'key_responsibilities',
|
|
219
|
+
description:
|
|
220
|
+
'This widget shows the performance of key responsibilities that you are required to complete, that you are reviewing, that you are overseeing and that you have assigned to another person.',
|
|
221
|
+
widgetImage: ASSETS.keyResponsibilitiesWidget,
|
|
222
|
+
tabOption: true,
|
|
223
|
+
value: false,
|
|
224
|
+
visibility: true,
|
|
225
|
+
module: 'COMPLIANCE',
|
|
226
|
+
subWidgets: [
|
|
227
|
+
{
|
|
228
|
+
title: 'Overview',
|
|
229
|
+
id: 'key_responsibilities_overview_flag',
|
|
230
|
+
value: false,
|
|
231
|
+
visibility: true,
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
title: 'My Responsibilities',
|
|
235
|
+
id: 'key_my_responsibilities_flag',
|
|
236
|
+
value: false,
|
|
237
|
+
visibility: true,
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
title: 'I’m Reviewing',
|
|
241
|
+
id: 'key_i_am_reviewing_flag',
|
|
242
|
+
value: false,
|
|
243
|
+
visibility: true,
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
title: 'I’m Overseeing',
|
|
247
|
+
id: 'key_i_am_overseeing_flag',
|
|
248
|
+
value: false,
|
|
249
|
+
visibility: true,
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
title: 'Trend Analysis',
|
|
255
|
+
id: 'trend_analysis_flag',
|
|
256
|
+
description:
|
|
257
|
+
'The Trend Analysis is a graphical representation of the performance of responsibilities over a period.',
|
|
258
|
+
widgetImage: ASSETS.trendAnalysisWidget,
|
|
259
|
+
value: false,
|
|
260
|
+
visibility: true,
|
|
261
|
+
module: 'COMPLIANCE',
|
|
262
|
+
subWidgets: [],
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
title: 'Workroom Updates',
|
|
266
|
+
id: 'workroom_alert_flag',
|
|
267
|
+
description:
|
|
268
|
+
'The Responsibility Workroom shows updates from the Responsibility Workrooms. A Responsibility Workroom exists for all responsibilities.',
|
|
269
|
+
widgetImage: ASSETS.workroomUpdatesWidget,
|
|
270
|
+
value: false,
|
|
271
|
+
visibility: true,
|
|
272
|
+
module: 'COMPLIANCE',
|
|
273
|
+
subWidgets: [],
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
title: 'Recent Activities',
|
|
277
|
+
id: 'recent_activity_flag',
|
|
278
|
+
description:
|
|
279
|
+
'This is a chronological view of the recent updates of responsibilities.',
|
|
280
|
+
widgetImage: ASSETS.recentActivitiesWidget,
|
|
281
|
+
value: false,
|
|
282
|
+
visibility: true,
|
|
283
|
+
module: 'COMPLIANCE',
|
|
284
|
+
subWidgets: [],
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
title: 'Exception Summary',
|
|
288
|
+
id: 'exception_summary_flag',
|
|
289
|
+
description:
|
|
290
|
+
'Exceptions Summary show the number of responsibilities that are either not accepted, not completed or deleted.',
|
|
291
|
+
widgetImage: ASSETS.exceptionSummaryWidget,
|
|
292
|
+
value: false,
|
|
293
|
+
visibility: true,
|
|
294
|
+
module: 'COMPLIANCE',
|
|
295
|
+
subWidgets: [],
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
RISK: [
|
|
299
|
+
{
|
|
300
|
+
title: 'Risk Overview',
|
|
301
|
+
id: 'risk_overview',
|
|
302
|
+
description:
|
|
303
|
+
'This widget shows the number and percentage of risks within each risk response strategy.',
|
|
304
|
+
// widgetImage: 'https://cdn.v-comply.com/libraries/configure-widget/assets/images/risk-overview.png',
|
|
305
|
+
widgetImage: ASSETS.riskOverviewWidget,
|
|
306
|
+
value: false,
|
|
307
|
+
visibility: true,
|
|
308
|
+
module: 'RISK',
|
|
309
|
+
subWidgets: [],
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
title: 'Risk Metrics',
|
|
313
|
+
id: 'risk_metrics',
|
|
314
|
+
description:
|
|
315
|
+
'This widget shows the number of risks within each risk appetite, the number of risks that exceed the risk appetite, the number of risks that exceed the risk tolerance, the number of risks within each risk rating, and the number of risks that do not have any linked controls.',
|
|
316
|
+
// widgetImage: 'https://cdn.v-comply.com/libraries/configure-widget/assets/images/appetite-tolerance.png',
|
|
317
|
+
widgetImage: ASSETS.appetiteToleranceWidget,
|
|
318
|
+
value: false,
|
|
319
|
+
visibility: true,
|
|
320
|
+
module: 'RISK',
|
|
321
|
+
subWidgets: [
|
|
322
|
+
{
|
|
323
|
+
title: 'Risk Appetite & Tolerance',
|
|
324
|
+
id: 'risk_appetite_tolerance',
|
|
325
|
+
value: false,
|
|
326
|
+
visibility: true,
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
title: 'Risk Ratings',
|
|
330
|
+
id: 'risk_ratings',
|
|
331
|
+
value: false,
|
|
332
|
+
visibility: true,
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
title: 'Risks Without Controls',
|
|
336
|
+
id: 'risks_without_controls',
|
|
337
|
+
value: false,
|
|
338
|
+
visibility: true,
|
|
339
|
+
},
|
|
340
|
+
// {
|
|
341
|
+
// title: 'Exceeds Risk Tolerance',
|
|
342
|
+
// id: 'exceeds_risk_tolerance',
|
|
343
|
+
// value: false,
|
|
344
|
+
// visibility:true,
|
|
345
|
+
// },
|
|
346
|
+
],
|
|
347
|
+
},
|
|
348
|
+
|
|
349
|
+
{
|
|
350
|
+
title: 'Inherent Risk Rating by Responsibility Centers ',
|
|
351
|
+
id: 'inherent_risk_rating_by_responsibility_centers',
|
|
352
|
+
description:
|
|
353
|
+
'This widget shows the number of risks within each inherent risk rating, grouped according to the Responsibility Center exposed to the risk.',
|
|
354
|
+
// widgetImage: 'https://cdn.v-comply.com/libraries/configure-widget/assets/images/inherent-RC.png',
|
|
355
|
+
widgetImage: ASSETS.inherentRCWidget,
|
|
356
|
+
value: false,
|
|
357
|
+
visibility: true,
|
|
358
|
+
module: 'RISK',
|
|
359
|
+
subWidgets: [],
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
title: 'Residual Risk Rating by Responsibility Centers ',
|
|
363
|
+
id: 'residual_risk_rating_by_responsibility_centers',
|
|
364
|
+
description:
|
|
365
|
+
'This widget shows the number of risks within each residual risk rating, grouped according to the Responsibility Center exposed to the risk.',
|
|
366
|
+
// widgetImage: 'https://cdn.v-comply.com/libraries/configure-widget/assets/images/residual-RC.png',
|
|
367
|
+
widgetImage: ASSETS.residualRCWidget,
|
|
368
|
+
value: false,
|
|
369
|
+
visibility: true,
|
|
370
|
+
module: 'RISK',
|
|
371
|
+
subWidgets: [],
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
title: 'Risk Category Overview',
|
|
375
|
+
id: 'risk_category_overview',
|
|
376
|
+
description:
|
|
377
|
+
'This widgets shows the number of risks within each status, grouped according to the Risk Category the risk is assigned to.',
|
|
378
|
+
// widgetImage: 'https://cdn.v-comply.com/libraries/configure-widget/assets/images/risk-category-overview.png',
|
|
379
|
+
widgetImage: ASSETS.riskCategoryOverviewWidget,
|
|
380
|
+
value: false,
|
|
381
|
+
visibility: true,
|
|
382
|
+
module: 'RISK',
|
|
383
|
+
subWidgets: [],
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
title: 'Risk Heatmap',
|
|
387
|
+
id: 'risk_heatmap',
|
|
388
|
+
description:
|
|
389
|
+
'The Risk Heatmap displays the risk matrix for any two risk factors.',
|
|
390
|
+
widgetImage: ASSETS.riskHeatmapWidget,
|
|
391
|
+
value: false,
|
|
392
|
+
visibility: true,
|
|
393
|
+
module: 'RISK',
|
|
394
|
+
subWidgets: [],
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
title: 'Inherent Risk Rating by Categories',
|
|
398
|
+
id: 'inherent_risk_rating_by_categories',
|
|
399
|
+
description:
|
|
400
|
+
'This widget shows the number of risks within each inherent risk rating, grouped according to the Risk Category that the risk is assigned to.',
|
|
401
|
+
// widgetImage: 'https://cdn.v-comply.com/libraries/configure-widget/assets/images/inherent-categories.png',
|
|
402
|
+
widgetImage: ASSETS.inherentCategoriesWidget,
|
|
403
|
+
value: false,
|
|
404
|
+
visibility: true,
|
|
405
|
+
module: 'RISK',
|
|
406
|
+
subWidgets: [],
|
|
407
|
+
},
|
|
408
|
+
|
|
409
|
+
{
|
|
410
|
+
title: 'Residual Risk Rating by Categories',
|
|
411
|
+
id: 'residual_risk_rating_by_categories',
|
|
412
|
+
description:
|
|
413
|
+
'This widget shows the number of risks within each residual risk rating, grouped according to the Risk Category that the risk is assigned to.',
|
|
414
|
+
// widgetImage: 'https://cdn.v-comply.com/libraries/configure-widget/assets/images/residual-categories.png',
|
|
415
|
+
widgetImage: ASSETS.residualCategoriesWidget,
|
|
416
|
+
value: false,
|
|
417
|
+
visibility: true,
|
|
418
|
+
module: 'RISK',
|
|
419
|
+
subWidgets: [],
|
|
420
|
+
},
|
|
421
|
+
// {
|
|
422
|
+
// title: 'Inherent Risk Rating Trend by Responsibility Centers',
|
|
423
|
+
// id: 'inherent_risk_rating_trend_by_responsibility_centers',
|
|
424
|
+
// description: 'This widget is a graphical representation of the number of risks within each inherent risk rating, grouped according to the Responsibility Center exposed to the risk.',
|
|
425
|
+
// widgetImage: 'https://cdn.v-comply.com/libraries/configure-widget/assets/images/inherent-trend.png',
|
|
426
|
+
// value: false,
|
|
427
|
+
// visibility:true,
|
|
428
|
+
// module: 'RISK',
|
|
429
|
+
// subWidgets: []
|
|
430
|
+
// },
|
|
431
|
+
// {
|
|
432
|
+
// title: 'Residual Risk Rating Trend by Responsibility Centers',
|
|
433
|
+
// id: 'residual_risk_rating_trend_by_responsibility_centers',
|
|
434
|
+
// description: 'This widget is a graphical representation of the number of risks within each residual risk rating, grouped according to the Responsibility Center exposed to the risk.',
|
|
435
|
+
// widgetImage: 'https://cdn.v-comply.com/libraries/configure-widget/assets/images/residual-trend.png',
|
|
436
|
+
// value: false,
|
|
437
|
+
// visibility:true,
|
|
438
|
+
// module: 'RISK',
|
|
439
|
+
// subWidgets: []
|
|
440
|
+
// },
|
|
441
|
+
// {
|
|
442
|
+
// title: 'Risk Rating Trend by Categories',
|
|
443
|
+
// id: 'risk_rating_trend_by_categories',
|
|
444
|
+
// description: 'This widgets is a trend chart that shows the inherent and residual risk rating trend across the different Risk Categories.',
|
|
445
|
+
// widgetImage: 'https://cdn.v-comply.com/libraries/configure-widget/assets/images/risk-trend.png',
|
|
446
|
+
// value: false,
|
|
447
|
+
// visibility:true,
|
|
448
|
+
// module: 'RISK',
|
|
449
|
+
// subWidgets: []
|
|
450
|
+
// },
|
|
451
|
+
{
|
|
452
|
+
title: 'Top 10 Risk Ratings',
|
|
453
|
+
id: 'top_10_residual_risk_ratings',
|
|
454
|
+
description:
|
|
455
|
+
'This widgets shows ths top five risks with the highest risk rating.',
|
|
456
|
+
// widgetImage: 'https://cdn.v-comply.com/libraries/configure-widget/assets/images/5-risk-ratings.png',
|
|
457
|
+
widgetImage: ASSETS.tenRiskRatingsWidget,
|
|
458
|
+
value: false,
|
|
459
|
+
visibility: true,
|
|
460
|
+
module: 'RISK',
|
|
461
|
+
subWidgets: [],
|
|
462
|
+
},
|
|
463
|
+
],
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
selectWidget(
|
|
467
|
+
event: any,
|
|
468
|
+
module: 'COMPLIANCE' | 'RISK',
|
|
469
|
+
widgetId: string,
|
|
470
|
+
subWidgetId?: string
|
|
471
|
+
) {
|
|
472
|
+
const widgetIndex = this.widgetsList[module].findIndex(
|
|
473
|
+
(ele: any) => ele.id == widgetId
|
|
474
|
+
);
|
|
475
|
+
const isSubWidgetAddable = this.selectedWidgets.findIndex(
|
|
476
|
+
(widget: any) => widget.id === widgetId
|
|
477
|
+
);
|
|
478
|
+
if (event) {
|
|
479
|
+
if (
|
|
480
|
+
this.selectedWidgets.length >= 10 &&
|
|
481
|
+
!(subWidgetId && isSubWidgetAddable >= 0)
|
|
482
|
+
) {
|
|
483
|
+
this.snackBar.show('You cannot add more than 10 widgets.', 'alert');
|
|
484
|
+
this.showWidgets = false;
|
|
485
|
+
setTimeout(() => {
|
|
486
|
+
this.widgetsList[module][widgetIndex].value = false;
|
|
487
|
+
this.showWidgets = true;
|
|
488
|
+
}, 10);
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
this.widgetsList[module][widgetIndex].value = true;
|
|
492
|
+
if (this.widgetsList[module][widgetIndex].subWidgets.length > 0) {
|
|
493
|
+
if (!subWidgetId) {
|
|
494
|
+
this.widgetsList[module][widgetIndex].subWidgets.forEach(
|
|
495
|
+
(ele) => (ele.value = true)
|
|
496
|
+
);
|
|
497
|
+
} else {
|
|
498
|
+
const subWidgetIndex = this.widgetsList[module][
|
|
499
|
+
widgetIndex
|
|
500
|
+
].subWidgets.findIndex((ele: any) => ele.id == subWidgetId);
|
|
501
|
+
this.widgetsList[module][widgetIndex].subWidgets[
|
|
502
|
+
subWidgetIndex
|
|
503
|
+
].value = true;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
} else {
|
|
507
|
+
if (this.widgetsList[module][widgetIndex].subWidgets.length > 0) {
|
|
508
|
+
if (!subWidgetId) {
|
|
509
|
+
this.widgetsList[module][widgetIndex].value = false;
|
|
510
|
+
this.widgetsList[module][widgetIndex].subWidgets.forEach(
|
|
511
|
+
(ele: any) => (ele.value = false)
|
|
512
|
+
);
|
|
513
|
+
} else {
|
|
514
|
+
const subWidgetIndex = this.widgetsList[module][
|
|
515
|
+
widgetIndex
|
|
516
|
+
].subWidgets.findIndex((ele: any) => ele.id == subWidgetId);
|
|
517
|
+
this.widgetsList[module][widgetIndex].subWidgets[
|
|
518
|
+
subWidgetIndex
|
|
519
|
+
].value = false;
|
|
520
|
+
|
|
521
|
+
const isAllWidgetsRemoved = this.widgetsList[module][
|
|
522
|
+
widgetIndex
|
|
523
|
+
].subWidgets.every((ele: any) => ele.value == false);
|
|
524
|
+
if (isAllWidgetsRemoved) {
|
|
525
|
+
this.widgetsList[module][widgetIndex].value = false;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
} else {
|
|
529
|
+
this.widgetsList[module][widgetIndex].value = false;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
this.setSelectedWidgets();
|
|
533
|
+
}
|
|
534
|
+
setSelectedWidgets() {
|
|
535
|
+
this.selectedWidgets = [];
|
|
536
|
+
this.widgetsList.COMPLIANCE.forEach((ele: any) => {
|
|
537
|
+
if (ele.value) {
|
|
538
|
+
this.selectedWidgets.push(ele);
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
this.widgetsList.RISK.forEach((ele: any) => {
|
|
542
|
+
if (ele.value) {
|
|
543
|
+
this.selectedWidgets.push(ele);
|
|
544
|
+
}
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
removeWidget(widget: widgetConfig) {
|
|
549
|
+
const widgetIndex = this.widgetsList[widget.module].findIndex(
|
|
550
|
+
(ele: any) => ele.id == widget.id
|
|
551
|
+
);
|
|
552
|
+
this.widgetsList[widget.module][widgetIndex].value = false;
|
|
553
|
+
if (this.widgetsList[widget.module][widgetIndex].subWidgets.length > 0) {
|
|
554
|
+
this.widgetsList[widget.module][widgetIndex].subWidgets.forEach(
|
|
555
|
+
(ele: any) => (ele.value = false)
|
|
556
|
+
);
|
|
557
|
+
}
|
|
558
|
+
this.setSelectedWidgets();
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
onNextClick() {
|
|
562
|
+
this.widgetsDataModified.emit(this.selectedWidgets);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
closeConfigureDashboard() {
|
|
566
|
+
this.selectedWidgets = [];
|
|
567
|
+
this.dialog.close();
|
|
568
|
+
this.closeConfigureWidgets.emit(false);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
setWidgetsVisibilityToFalse() {
|
|
572
|
+
this.widgetsList.COMPLIANCE.forEach((ele: any) => {
|
|
573
|
+
ele.visibility = false;
|
|
574
|
+
if (ele.subWidgets.length > 0) {
|
|
575
|
+
ele.subWidgets.forEach((subElement: any) => {
|
|
576
|
+
subElement.visibility = false;
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
this.widgetsList.RISK.forEach((ele: any) => {
|
|
581
|
+
ele.visibility = false;
|
|
582
|
+
if (ele.subWidgets.length > 0) {
|
|
583
|
+
ele.subWidgets.forEach((subElement: any) => {
|
|
584
|
+
subElement.visibility = false;
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule, NgOptimizedImage } from '@angular/common';
|
|
3
|
+
import { FloatingBarModule } from '../../ui-kit//floating-bar/floating-bar.module';
|
|
4
|
+
import { FormgroupModule } from '../../ui-kit/formgroup/formgroup.module';
|
|
5
|
+
import { FormsModule } from '@angular/forms';
|
|
6
|
+
import { SearchPipe } from '../pipes/search.pipe';
|
|
7
|
+
import { ConfigureWidgetsComponent } from './configure-widgets/configure-widgets.component';
|
|
8
|
+
import { DirectivesModule } from '../directives/directives.module';
|
|
9
|
+
import { NoDataModule } from '../../ui-kit/no-data/no-data.module';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@NgModule({
|
|
14
|
+
declarations: [
|
|
15
|
+
ConfigureWidgetsComponent, SearchPipe
|
|
16
|
+
],
|
|
17
|
+
imports: [
|
|
18
|
+
CommonModule,
|
|
19
|
+
FloatingBarModule,
|
|
20
|
+
FormgroupModule,
|
|
21
|
+
FormsModule,
|
|
22
|
+
DirectivesModule,
|
|
23
|
+
NoDataModule,
|
|
24
|
+
NgOptimizedImage
|
|
25
|
+
],
|
|
26
|
+
exports: [
|
|
27
|
+
ConfigureWidgetsComponent
|
|
28
|
+
]
|
|
29
|
+
})
|
|
30
|
+
export class ConfigureWidgetsModule { }
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const BASE_URL = 'https://cdn.v-comply.com';
|
|
2
|
+
|
|
3
|
+
export const ASSETS = {
|
|
4
|
+
dashBoardIcon: `${BASE_URL}/libraries/workflow-engine/assets/workflow/what.svg`,
|
|
5
|
+
dashBoardUsersIcon: `${BASE_URL}/libraries/workflow-engine/assets/workflow/who.svg`,
|
|
6
|
+
dashBoardRcIcon: `${BASE_URL}/libraries/workflow-engine/assets/workflow/responsibility-center.svg`,
|
|
7
|
+
dashBoardProgramIcon: `${BASE_URL}/libraries/workflow-engine/assets/workflow/category.svg`,
|
|
8
|
+
dashBoardRiskIcon: `${BASE_URL}/libraries/workflow-engine/assets/workflow/category.svg`,
|
|
9
|
+
dashBoardTimeFrameIcon: `${BASE_URL}/libraries/workflow-engine/assets/workflow/when.svg`,
|
|
10
|
+
dashBoardEmailSummariesIcon: `${BASE_URL}/libraries/workflow-engine/assets/workflow/send-resolution.svg`,
|
|
11
|
+
configure_widget: `${BASE_URL}/libraries/configure-widget/assets/images/configure-widget.svg`,
|
|
12
|
+
overviewWidget: `${BASE_URL}/libraries/configure-widget/assets/images/overview.png`,
|
|
13
|
+
responsibilityCalenderWidget: `${BASE_URL}/libraries/configure-widget/assets/images/responsibility-calender.png`,
|
|
14
|
+
responsibilityCenterOverviewWidget: `${BASE_URL}/libraries/configure-widget/assets/images/responsibility-center-overview.png`,
|
|
15
|
+
myResponsibilitiesWidget: `${BASE_URL}/libraries/configure-widget/assets/images/my-responsibilities.png`,
|
|
16
|
+
keyResponsibilitiesWidget: `${BASE_URL}/libraries/configure-widget/assets/images/key-responsibilities.png`,
|
|
17
|
+
trendAnalysisWidget: `${BASE_URL}/libraries/configure-widget/assets/images/trend-analysis.png`,
|
|
18
|
+
workroomUpdatesWidget: `${BASE_URL}/libraries/configure-widget/assets/images/workroom-updates.png`,
|
|
19
|
+
recentActivitiesWidget: `${BASE_URL}/libraries/configure-widget/assets/images/recent-activities.png`,
|
|
20
|
+
exceptionSummaryWidget: `${BASE_URL}/libraries/configure-widget/assets/images/exception-summary.png`,
|
|
21
|
+
riskOverviewWidget: `${BASE_URL}/libraries/configure-widget/assets/images/riskV2/risk-overview.png`,
|
|
22
|
+
appetiteToleranceWidget: `${BASE_URL}/libraries/configure-widget/assets/images/riskV2/appetite-tolerance.png`,
|
|
23
|
+
inherentRCWidget: `${BASE_URL}/libraries/configure-widget/assets/images/riskV2/inherent-RC.png`,
|
|
24
|
+
residualRCWidget: `${BASE_URL}/libraries/configure-widget/assets/images/riskV2/residual-RC.png`,
|
|
25
|
+
riskCategoryOverviewWidget: `${BASE_URL}/libraries/configure-widget/assets/images/riskV2/risk-category-overview.png`,
|
|
26
|
+
riskHeatmapWidget: `${BASE_URL}/libraries/configure-widget/assets/images/risk-heatmap.png`,
|
|
27
|
+
inherentCategoriesWidget: `${BASE_URL}/libraries/configure-widget/assets/images/riskV2/inherent-categories.png`,
|
|
28
|
+
residualCategoriesWidget: `${BASE_URL}/libraries/configure-widget/assets/images/riskV2/residual-categories.png`,
|
|
29
|
+
tenRiskRatingsWidget: `${BASE_URL}/libraries/configure-widget/assets/images/10-risk-ratings.png`,
|
|
30
|
+
search_data: `${BASE_URL}/libraries/workflow-engine/assets/workflow/search-data.svg`,
|
|
31
|
+
appetite_tolerance: `${BASE_URL}/libraries/configure-widget/assets/images/appetite-tolerance.png`,
|
|
32
|
+
inherent_trend: `${BASE_URL}/libraries/configure-widget/assets/images/inherent-trend.png`,
|
|
33
|
+
residual_trend: `${BASE_URL}/libraries/configure-widget/assets/images/residual-trend.png`,
|
|
34
|
+
risk_trend: `${BASE_URL}/libraries/configure-widget/assets/images/risk-trend.png`,
|
|
35
|
+
policyApproverView: `${BASE_URL}/policy/images/policy-approver-view.svg`,
|
|
36
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface CreateDashboardForm {
|
|
2
|
+
dashboardName: string,
|
|
3
|
+
dashboardDescriptionText: string,
|
|
4
|
+
selectedViewers: any[],
|
|
5
|
+
selectedGroup:any[],
|
|
6
|
+
selectedFromDate: any,
|
|
7
|
+
selectedToDate: any,
|
|
8
|
+
selectedResponsibilityCenters: any[],
|
|
9
|
+
selectedResponsibilityCategories: any[],
|
|
10
|
+
selectedRiskCategories: any[],
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
displayCriteria:string,
|
|
14
|
+
configureWidget: any[],
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
frequencyDetails:string,
|
|
18
|
+
selectedFrequencyType: string,
|
|
19
|
+
selectedFrequencies: any,
|
|
20
|
+
frequencyMessage:string
|
|
21
|
+
frequencyDate:any
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
|