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