vc-create-dashboard 3.0.5 → 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 -34
- package/esm2022/lib/create-dashboard-container/create-dashboard-config.mjs +0 -2
- package/esm2022/lib/create-dashboard-container/create-dashboard.component.mjs +0 -1121
- 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 -5527
- 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 -64
- package/lib/create-dashboard-container/configure-widgets/configure-widgets/configure-widgets.component.d.ts +0 -121
- 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 -33
- 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 -60
- 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 -64
- 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 -121
- 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,1276 @@
|
|
|
1
|
+
<app-snack-bar></app-snack-bar>
|
|
2
|
+
<div class="create-dashboard" *ngIf="!openConfigureWidgets">
|
|
3
|
+
<div
|
|
4
|
+
class="create-dashboard-container vx-d-flex vx-justify-end"
|
|
5
|
+
[class.animate-slideInRight]="animation"
|
|
6
|
+
>
|
|
7
|
+
<div
|
|
8
|
+
class="more-option"
|
|
9
|
+
*ngIf="activeSelector && activeSelector !== 'name'"
|
|
10
|
+
>
|
|
11
|
+
<app-user-list
|
|
12
|
+
*ngIf="activeSelector === 'whoCanView'"
|
|
13
|
+
(saveSelectedUsers)="saveSelectedList('whoCanView', $event)"
|
|
14
|
+
(closeUserList)="activateSelector('', false)"
|
|
15
|
+
[totalPages]="totalPages"
|
|
16
|
+
[totalList]="totalList"
|
|
17
|
+
[listDetails]="listDetails"
|
|
18
|
+
[totalgroupscount]="totalgroups"
|
|
19
|
+
[feature]="feature"
|
|
20
|
+
></app-user-list>
|
|
21
|
+
<app-responsibility-center
|
|
22
|
+
*ngIf="activeSelector === 'rcList'"
|
|
23
|
+
[responsibilityCentersList]="responsibilityCentersList"
|
|
24
|
+
[radioSelection]="false"
|
|
25
|
+
[selectedResponsibilityCenters]="
|
|
26
|
+
dashboardForm.selectedResponsibilityCenters
|
|
27
|
+
"
|
|
28
|
+
[rcIdKey]="'item_id'"
|
|
29
|
+
(saveSelectedList)="saveSelectedList('rc', $event)"
|
|
30
|
+
(closeRcList)="activateSelector('', false)"
|
|
31
|
+
>
|
|
32
|
+
</app-responsibility-center>
|
|
33
|
+
<app-categories
|
|
34
|
+
*ngIf="activeSelector === 'responsibilityCategories'"
|
|
35
|
+
[categoryList]="responsibilityCategoriesTree"
|
|
36
|
+
[allCategories]="allComplianceCategories"
|
|
37
|
+
[categoryIdKey]="'category_id'"
|
|
38
|
+
[selectedCategories]="dashboardForm.selectedResponsibilityCategories"
|
|
39
|
+
(saveSelectedCategory)="
|
|
40
|
+
saveSelectedList('responsibilityCategories', $event)
|
|
41
|
+
"
|
|
42
|
+
(closeCategoriesList)="activateSelector('', false)"
|
|
43
|
+
></app-categories>
|
|
44
|
+
<app-risk-categories
|
|
45
|
+
*ngIf="activeSelector === 'riskCategories'"
|
|
46
|
+
[categoryList]="riskCategoryList"
|
|
47
|
+
[allCategories]="allRiskCategories"
|
|
48
|
+
[categoryIdKey]="'category_id'"
|
|
49
|
+
[selectedCategories]="dashboardForm.selectedRiskCategories"
|
|
50
|
+
(saveSelectedCategory)="saveSelectedList('riskCategory', $event)"
|
|
51
|
+
(closeCategoriesList)="activateSelector('', false)"
|
|
52
|
+
></app-risk-categories>
|
|
53
|
+
|
|
54
|
+
<app-frequency
|
|
55
|
+
*ngIf="activeSelector === 'frequency'"
|
|
56
|
+
(closeFrequencyPopup)="activateSelector('', false)"
|
|
57
|
+
(saveFrequency)="saveFrequency($event)"
|
|
58
|
+
[savedFrequencyTab]="dashboardForm.selectedFrequencyType"
|
|
59
|
+
[selectedDate]="dashboardForm.frequencyDate"
|
|
60
|
+
[savedFrequencies]="dashboardForm.selectedFrequencies"
|
|
61
|
+
>
|
|
62
|
+
</app-frequency>
|
|
63
|
+
</div>
|
|
64
|
+
<div
|
|
65
|
+
class="vx-dialog-container side-dialog"
|
|
66
|
+
[class.tablet-width]="activeSelector && activeSelector !== 'name'"
|
|
67
|
+
>
|
|
68
|
+
<app-loader-inline *ngIf="vLoader"></app-loader-inline>
|
|
69
|
+
|
|
70
|
+
<div class="form-group" [class.disabled]="disabled">
|
|
71
|
+
<div
|
|
72
|
+
class="vx-dialog-body-container"
|
|
73
|
+
(scroll)="animateImage()"
|
|
74
|
+
[class.hidden-scroll]="popoverService.stopScroll"
|
|
75
|
+
>
|
|
76
|
+
<!-- Dashboard Name -->
|
|
77
|
+
<div
|
|
78
|
+
class="form-group-row"
|
|
79
|
+
[class.disabled]="activeSelector && activeSelector !== 'name'"
|
|
80
|
+
>
|
|
81
|
+
<div class="image">
|
|
82
|
+
<img
|
|
83
|
+
[ngSrc]="ASSETS.dashBoardIcon"
|
|
84
|
+
*ngIf="
|
|
85
|
+
!dashboardForm.dashboardName || activeSelector === 'name'
|
|
86
|
+
"
|
|
87
|
+
alt=""
|
|
88
|
+
width="36"
|
|
89
|
+
height="36"
|
|
90
|
+
/>
|
|
91
|
+
<svg
|
|
92
|
+
class="checkIcon"
|
|
93
|
+
*ngIf="dashboardForm.dashboardName && activeSelector !== 'name'"
|
|
94
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
95
|
+
viewBox="0 0 52 52"
|
|
96
|
+
>
|
|
97
|
+
<circle
|
|
98
|
+
class="checkIcon__circle"
|
|
99
|
+
cx="26"
|
|
100
|
+
cy="26"
|
|
101
|
+
r="25"
|
|
102
|
+
fill="none"
|
|
103
|
+
/>
|
|
104
|
+
<path
|
|
105
|
+
class="checkIcon__check"
|
|
106
|
+
fill="none"
|
|
107
|
+
d="M14.1 27.2l7.1 7.2 16.7-16.8"
|
|
108
|
+
/>
|
|
109
|
+
</svg>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="form">
|
|
112
|
+
<div class="vx-form-group vx-d-block vx-mb-4">
|
|
113
|
+
<label
|
|
114
|
+
class="vx-fs-11 vx-fw-500 vx-label-txt vx-d-block vx-tt-uppercase vx-mb-2 vx-w-100 vx-lh-4"
|
|
115
|
+
>Dashboard Name
|
|
116
|
+
<span class="require vx-txt-red vx-fs-16 vx-fw-400"
|
|
117
|
+
>*</span
|
|
118
|
+
></label
|
|
119
|
+
>
|
|
120
|
+
<div class="vx-input-group">
|
|
121
|
+
<input
|
|
122
|
+
class="textField"
|
|
123
|
+
placeholder="Add dashboard name (Max limit: 30 characters)."
|
|
124
|
+
[(ngModel)]="dashboardForm.dashboardName"
|
|
125
|
+
(keydown)="activeSelector = 'name'"
|
|
126
|
+
(focusin)="activateSelector('name', true)"
|
|
127
|
+
(focusout)="activateSelector('name', false)"
|
|
128
|
+
/>
|
|
129
|
+
|
|
130
|
+
<span
|
|
131
|
+
class="counter"
|
|
132
|
+
*ngIf="dashboardForm?.dashboardName?.length > 0"
|
|
133
|
+
>{{ 30 - dashboardForm.dashboardName.length }}</span
|
|
134
|
+
>
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
<p
|
|
138
|
+
class="vx-txt-error"
|
|
139
|
+
[appScrollInView]="true"
|
|
140
|
+
*ngIf="
|
|
141
|
+
submitted &&
|
|
142
|
+
(dashboardForm?.dashboardName?.length > 30 ||
|
|
143
|
+
!dashboardForm?.dashboardName)
|
|
144
|
+
"
|
|
145
|
+
>
|
|
146
|
+
{{
|
|
147
|
+
dashboardForm.dashboardName.length > 30
|
|
148
|
+
? "You have exceeded the maximum character limit of 30 characters."
|
|
149
|
+
: "Please enter a name for this Dashboard."
|
|
150
|
+
}}
|
|
151
|
+
</p>
|
|
152
|
+
|
|
153
|
+
<div class="vx-input-group vx-mt-2">
|
|
154
|
+
<vcomply-editor
|
|
155
|
+
[editorConfig]="dashboardDescription"
|
|
156
|
+
[(ngModel)]="dashboardForm.dashboardDescriptionText"
|
|
157
|
+
></vcomply-editor>
|
|
158
|
+
<span
|
|
159
|
+
class="counter"
|
|
160
|
+
*ngIf="dashboardForm?.dashboardDescriptionText?.length > 0"
|
|
161
|
+
>{{
|
|
162
|
+
250 -
|
|
163
|
+
(dashboardForm?.dashboardDescriptionText | textCount)
|
|
164
|
+
}}</span
|
|
165
|
+
>
|
|
166
|
+
</div>
|
|
167
|
+
|
|
168
|
+
<p
|
|
169
|
+
class="vx-txt-error"
|
|
170
|
+
[appScrollInView]="true"
|
|
171
|
+
*ngIf="
|
|
172
|
+
submitted &&
|
|
173
|
+
(dashboardForm?.dashboardDescriptionText | textCount) > 250
|
|
174
|
+
"
|
|
175
|
+
>
|
|
176
|
+
You have exceeded the maximum character limit of 250
|
|
177
|
+
characters.
|
|
178
|
+
</p>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
|
|
183
|
+
<!-- Who -->
|
|
184
|
+
<div
|
|
185
|
+
class="form-group-row"
|
|
186
|
+
[class.active]="activeSelector === 'whoCanView'"
|
|
187
|
+
[class.disabled]="
|
|
188
|
+
activeSelector &&
|
|
189
|
+
activeSelector !== 'whoCanView' &&
|
|
190
|
+
activeSelector !== 'name'
|
|
191
|
+
"
|
|
192
|
+
>
|
|
193
|
+
<div class="image">
|
|
194
|
+
<img
|
|
195
|
+
[ngSrc]="ASSETS.dashBoardUsersIcon"
|
|
196
|
+
*ngIf="
|
|
197
|
+
dashboardForm?.selectedViewers?.length == 0 ||
|
|
198
|
+
activeSelector === 'whoCanView'
|
|
199
|
+
"
|
|
200
|
+
alt=""
|
|
201
|
+
width="36"
|
|
202
|
+
height="36"
|
|
203
|
+
/>
|
|
204
|
+
<svg
|
|
205
|
+
class="checkIcon"
|
|
206
|
+
*ngIf="
|
|
207
|
+
dashboardForm?.selectedViewers?.length > 0 &&
|
|
208
|
+
activeSelector !== 'whoCanView'
|
|
209
|
+
"
|
|
210
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
211
|
+
viewBox="0 0 52 52"
|
|
212
|
+
>
|
|
213
|
+
<circle
|
|
214
|
+
class="checkIcon__circle"
|
|
215
|
+
cx="26"
|
|
216
|
+
cy="26"
|
|
217
|
+
r="25"
|
|
218
|
+
fill="none"
|
|
219
|
+
/>
|
|
220
|
+
<path
|
|
221
|
+
class="checkIcon__check"
|
|
222
|
+
fill="none"
|
|
223
|
+
d="M14.1 27.2l7.1 7.2 16.7-16.8"
|
|
224
|
+
/>
|
|
225
|
+
</svg>
|
|
226
|
+
</div>
|
|
227
|
+
<div class="form">
|
|
228
|
+
<div class="vx-form-group vx-d-block vx-mb-4">
|
|
229
|
+
<label
|
|
230
|
+
class="vx-fs-11 vx-fw-500 vx-label-txt vx-d-block vx-tt-uppercase vx-mb-2 vx-w-100 vx-lh-4"
|
|
231
|
+
>Who can view this dashboard?<span
|
|
232
|
+
class="require vx-txt-red vx-fs-16 vx-fw-400"
|
|
233
|
+
>*</span
|
|
234
|
+
></label
|
|
235
|
+
>
|
|
236
|
+
<div
|
|
237
|
+
*ngIf="dashboardForm?.selectedViewers?.length == 0"
|
|
238
|
+
class="selectBoxEnable vx-pl-3 vx-pr-3 vx-d-flex vx-align-center"
|
|
239
|
+
(click)="activateSelector('whoCanView', true)"
|
|
240
|
+
>
|
|
241
|
+
<div
|
|
242
|
+
class="selectBoxPlacehoder vx-fs-13 vx-paragraph-txt vx-lh-4"
|
|
243
|
+
>
|
|
244
|
+
Who can view this dashboard?
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
|
|
248
|
+
<div
|
|
249
|
+
*ngIf="dashboardForm?.selectedViewers?.length > 0"
|
|
250
|
+
class="selectBoxSuccess vx-pl-2 vx-pr-3 vx-d-flex vx-align-center vx-justify-between"
|
|
251
|
+
>
|
|
252
|
+
<ng-container *ngIf="!groupsEnabled" id="onlyuserslist">
|
|
253
|
+
<div
|
|
254
|
+
class="chipContainer vx-d-flex vx-align-center vx-pl-2 vx-pr-2"
|
|
255
|
+
*ngFor="
|
|
256
|
+
let user of dashboardForm?.selectedViewers?.slice(0, 1)
|
|
257
|
+
"
|
|
258
|
+
>
|
|
259
|
+
<i
|
|
260
|
+
class="icons cross vx-fs-12 vx-paragraph-txt vx-mr-1"
|
|
261
|
+
*ngIf="
|
|
262
|
+
!listDetails.nonRemovableUsersList.includes(
|
|
263
|
+
user.member_id
|
|
264
|
+
)
|
|
265
|
+
"
|
|
266
|
+
(click)="remove('whoCanView', user)"
|
|
267
|
+
></i
|
|
268
|
+
>
|
|
269
|
+
<span
|
|
270
|
+
class="chipName vx-fs-11 vx-label-txt"
|
|
271
|
+
[arTooltip]="user.member_name"
|
|
272
|
+
placement="bottom-left"
|
|
273
|
+
delay="0"
|
|
274
|
+
type="black"
|
|
275
|
+
[tooltipMandatory]="false"
|
|
276
|
+
>{{ user.member_name }}</span
|
|
277
|
+
>
|
|
278
|
+
<button
|
|
279
|
+
*ngIf="
|
|
280
|
+
dashboardForm?.selectedViewers?.length > 1 &&
|
|
281
|
+
!groupsEnabled
|
|
282
|
+
"
|
|
283
|
+
class="countBtn greenBg vx-fs-9 vx-fw-500 vx-txt-white vx-d-flex vx-align-center vx-justify-center vx-lh-4"
|
|
284
|
+
appPopover
|
|
285
|
+
(click)="userList.popover()"
|
|
286
|
+
placement="left"
|
|
287
|
+
>
|
|
288
|
+
+{{ dashboardForm?.selectedViewers?.slice(1).length }}
|
|
289
|
+
</button>
|
|
290
|
+
</div>
|
|
291
|
+
<app-popover #userList [dontCloseonClick]="true">
|
|
292
|
+
<div class="action-list">
|
|
293
|
+
<ul class="action-item">
|
|
294
|
+
<li
|
|
295
|
+
*ngFor="
|
|
296
|
+
let user of dashboardForm?.selectedViewers
|
|
297
|
+
| slice : 1;
|
|
298
|
+
let j = index
|
|
299
|
+
"
|
|
300
|
+
>
|
|
301
|
+
<div class="avatar-card">
|
|
302
|
+
<span
|
|
303
|
+
class="value"
|
|
304
|
+
[arTooltip]="user?.member_name"
|
|
305
|
+
placement="bottom-left"
|
|
306
|
+
delay="0"
|
|
307
|
+
type="black"
|
|
308
|
+
[tooltipMandatory]="false"
|
|
309
|
+
>
|
|
310
|
+
<i
|
|
311
|
+
class="icons cross-icon"
|
|
312
|
+
*ngIf="
|
|
313
|
+
!listDetails.nonRemovableUsersList.includes(
|
|
314
|
+
user.member_id
|
|
315
|
+
) && !groupsEnabled
|
|
316
|
+
"
|
|
317
|
+
(click)="remove('whoCanView', user)"
|
|
318
|
+
></i
|
|
319
|
+
>
|
|
320
|
+
{{ user?.member_name }}
|
|
321
|
+
</span>
|
|
322
|
+
</div>
|
|
323
|
+
</li>
|
|
324
|
+
</ul>
|
|
325
|
+
</div>
|
|
326
|
+
</app-popover>
|
|
327
|
+
</ng-container>
|
|
328
|
+
|
|
329
|
+
<div *ngIf="groupsEnabled" class="vx-d-flex vx-align-center">
|
|
330
|
+
<div
|
|
331
|
+
class="chipContainer vx-d-flex vx-align-center vx-pl-2 vx-pr-2"
|
|
332
|
+
>
|
|
333
|
+
<span class="chipName vx-fs-11 vx-label-txt"
|
|
334
|
+
>USER(S)</span
|
|
335
|
+
>
|
|
336
|
+
<button
|
|
337
|
+
class="countBtn greenBg vx-fs-9 vx-fw-500 vx-txt-white vx-d-flex vx-align-center vx-justify-center vx-lh-4"
|
|
338
|
+
appPopover
|
|
339
|
+
(click)="userCount.popover()"
|
|
340
|
+
placement="left"
|
|
341
|
+
>
|
|
342
|
+
{{ dashboardForm?.selectedViewers?.length }}
|
|
343
|
+
</button>
|
|
344
|
+
</div>
|
|
345
|
+
<span
|
|
346
|
+
class="vx-fs-12 vx-paragraph-txt vx-ml-2 vx-mr-2"
|
|
347
|
+
*ngIf="
|
|
348
|
+
dashboardForm?.selectedGroup?.length &&
|
|
349
|
+
dashboardForm?.selectedViewers?.length
|
|
350
|
+
"
|
|
351
|
+
>&</span
|
|
352
|
+
>
|
|
353
|
+
<div
|
|
354
|
+
*ngIf="dashboardForm?.selectedGroup?.length"
|
|
355
|
+
id="usersandgroups"
|
|
356
|
+
class="chipContainer vx-d-flex vx-align-center vx-pl-2 vx-pr-2"
|
|
357
|
+
>
|
|
358
|
+
<span class="chipName vx-fs-11 vx-label-txt"
|
|
359
|
+
>USER GROUP(S)</span
|
|
360
|
+
>
|
|
361
|
+
<button
|
|
362
|
+
class="countBtn vx-fs-9 vx-fw-500 vx-txt-white vx-d-flex vx-align-center vx-justify-center vx-lh-4"
|
|
363
|
+
appPopover
|
|
364
|
+
(click)="groupCount.popover()"
|
|
365
|
+
placement="right"
|
|
366
|
+
>
|
|
367
|
+
{{ dashboardForm?.selectedGroup?.length }}
|
|
368
|
+
</button>
|
|
369
|
+
</div>
|
|
370
|
+
|
|
371
|
+
<app-popover #userCount [dontCloseonClick]="true">
|
|
372
|
+
<div class="action-list">
|
|
373
|
+
<ul class="action-item">
|
|
374
|
+
<li
|
|
375
|
+
*ngFor="let data of dashboardForm?.selectedViewers"
|
|
376
|
+
>
|
|
377
|
+
<div class="avatar-card">
|
|
378
|
+
<span
|
|
379
|
+
class="value"
|
|
380
|
+
[arTooltip]="data.member_name"
|
|
381
|
+
placement="bottom-left"
|
|
382
|
+
delay="0"
|
|
383
|
+
type="black"
|
|
384
|
+
[tooltipMandatory]="false"
|
|
385
|
+
>
|
|
386
|
+
<i
|
|
387
|
+
class="icons cross-icon"
|
|
388
|
+
*ngIf="
|
|
389
|
+
!listDetails.nonRemovableUsersList.includes(
|
|
390
|
+
data.member_id
|
|
391
|
+
)
|
|
392
|
+
"
|
|
393
|
+
(click)="remove('whoCanView', data)"
|
|
394
|
+
></i
|
|
395
|
+
>
|
|
396
|
+
{{ data.member_name }}
|
|
397
|
+
</span>
|
|
398
|
+
</div>
|
|
399
|
+
</li>
|
|
400
|
+
</ul>
|
|
401
|
+
</div>
|
|
402
|
+
</app-popover>
|
|
403
|
+
|
|
404
|
+
<app-popover #groupCount [dontCloseonClick]="true">
|
|
405
|
+
<div class="action-list">
|
|
406
|
+
<ul class="action-item">
|
|
407
|
+
<li *ngFor="let data of dashboardForm?.selectedGroup">
|
|
408
|
+
<div class="avatar-card">
|
|
409
|
+
<span
|
|
410
|
+
class="value"
|
|
411
|
+
[arTooltip]="data.group_name"
|
|
412
|
+
placement="bottom-left"
|
|
413
|
+
delay="0"
|
|
414
|
+
type="black"
|
|
415
|
+
[tooltipMandatory]="false"
|
|
416
|
+
>
|
|
417
|
+
<i
|
|
418
|
+
class="icons cross-icon"
|
|
419
|
+
(click)="remove('whoCanViewGroup', data)"
|
|
420
|
+
></i
|
|
421
|
+
>
|
|
422
|
+
{{ data.group_name }}
|
|
423
|
+
</span>
|
|
424
|
+
</div>
|
|
425
|
+
</li>
|
|
426
|
+
</ul>
|
|
427
|
+
</div>
|
|
428
|
+
</app-popover>
|
|
429
|
+
</div>
|
|
430
|
+
|
|
431
|
+
<button
|
|
432
|
+
*ngIf="activeSelector !== 'whoCanView'"
|
|
433
|
+
class="editBtn vx-fs-11 vx-fw-600 vx-txt-blue vx-tt-uppercase vx-p-0 vx-m-0 vx-d-flex vx-align-center"
|
|
434
|
+
(click)="activateSelector('whoCanView', true)"
|
|
435
|
+
>
|
|
436
|
+
<i class="icons vx-mr-1"></i> EDIT
|
|
437
|
+
</button>
|
|
438
|
+
</div>
|
|
439
|
+
</div>
|
|
440
|
+
</div>
|
|
441
|
+
</div>
|
|
442
|
+
|
|
443
|
+
<!-- Responsibility Center -->
|
|
444
|
+
<div
|
|
445
|
+
class="form-group-row"
|
|
446
|
+
[class.active]="activeSelector === 'rcList'"
|
|
447
|
+
[class.disabled]="
|
|
448
|
+
activeSelector &&
|
|
449
|
+
activeSelector !== 'rcList' &&
|
|
450
|
+
activeSelector !== 'name'
|
|
451
|
+
"
|
|
452
|
+
>
|
|
453
|
+
<div class="image">
|
|
454
|
+
<img
|
|
455
|
+
*ngIf="
|
|
456
|
+
dashboardForm?.selectedResponsibilityCenters?.length == 0 ||
|
|
457
|
+
activeSelector === 'rcList'
|
|
458
|
+
"
|
|
459
|
+
[ngSrc]="ASSETS.dashBoardRcIcon"
|
|
460
|
+
alt=""
|
|
461
|
+
width="36"
|
|
462
|
+
height="36"
|
|
463
|
+
/>
|
|
464
|
+
<svg
|
|
465
|
+
*ngIf="
|
|
466
|
+
dashboardForm?.selectedResponsibilityCenters?.length > 0 &&
|
|
467
|
+
activeSelector !== 'rcList'
|
|
468
|
+
"
|
|
469
|
+
class="checkIcon"
|
|
470
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
471
|
+
viewBox="0 0 52 52"
|
|
472
|
+
>
|
|
473
|
+
<circle
|
|
474
|
+
class="checkIcon__circle"
|
|
475
|
+
cx="26"
|
|
476
|
+
cy="26"
|
|
477
|
+
r="25"
|
|
478
|
+
fill="none"
|
|
479
|
+
/>
|
|
480
|
+
<path
|
|
481
|
+
class="checkIcon__check"
|
|
482
|
+
fill="none"
|
|
483
|
+
d="M14.1 27.2l7.1 7.2 16.7-16.8"
|
|
484
|
+
/>
|
|
485
|
+
</svg>
|
|
486
|
+
</div>
|
|
487
|
+
<div class="form">
|
|
488
|
+
<div class="vx-form-group vx-d-block vx-mb-4">
|
|
489
|
+
<label
|
|
490
|
+
class="vx-fs-11 vx-fw-500 vx-label-txt vx-d-block vx-tt-uppercase vx-mb-2 vx-w-100 vx-lh-4"
|
|
491
|
+
>RESPONSIBILITY CENTER(S)</label
|
|
492
|
+
>
|
|
493
|
+
<div
|
|
494
|
+
*ngIf="
|
|
495
|
+
dashboardForm?.selectedResponsibilityCenters?.length == 0
|
|
496
|
+
"
|
|
497
|
+
class="selectBoxEnable vx-pl-3 vx-pr-3 vx-d-flex vx-align-center"
|
|
498
|
+
(click)="activateSelector('rcList', true)"
|
|
499
|
+
[class.error]="
|
|
500
|
+
submitted &&
|
|
501
|
+
dashboardForm?.selectedResponsibilityCenters?.length == 0 &&
|
|
502
|
+
dashboardForm?.selectedResponsibilityCategories?.length ==
|
|
503
|
+
0 &&
|
|
504
|
+
dashboardForm?.selectedRiskCategories?.length == 0
|
|
505
|
+
"
|
|
506
|
+
>
|
|
507
|
+
<div
|
|
508
|
+
class="selectBoxPlacehoder vx-fs-13 vx-paragraph-txt vx-lh-4"
|
|
509
|
+
>
|
|
510
|
+
Select the Responsibility Center(s) that you would like<br />displayed
|
|
511
|
+
in the Dashboard, if any.
|
|
512
|
+
</div>
|
|
513
|
+
</div>
|
|
514
|
+
|
|
515
|
+
<div
|
|
516
|
+
*ngIf="
|
|
517
|
+
dashboardForm?.selectedResponsibilityCenters?.length > 0
|
|
518
|
+
"
|
|
519
|
+
class="selectBoxSuccess vx-pl-2 vx-pr-3 vx-d-flex vx-align-center vx-justify-between"
|
|
520
|
+
>
|
|
521
|
+
<div
|
|
522
|
+
class="chipContainer vx-d-flex vx-align-center vx-pl-2 vx-pr-2"
|
|
523
|
+
*ngFor="
|
|
524
|
+
let rc of dashboardForm?.selectedResponsibilityCenters?.slice(
|
|
525
|
+
0,
|
|
526
|
+
1
|
|
527
|
+
)
|
|
528
|
+
"
|
|
529
|
+
>
|
|
530
|
+
<i
|
|
531
|
+
class="icons cross vx-fs-12 vx-paragraph-txt vx-mr-1"
|
|
532
|
+
(click)="remove('rc', rc)"
|
|
533
|
+
></i
|
|
534
|
+
>
|
|
535
|
+
<span
|
|
536
|
+
class="chipName vx-fs-11 vx-label-txt"
|
|
537
|
+
[arTooltip]="rc.item_name"
|
|
538
|
+
placement="bottom-left"
|
|
539
|
+
delay="0"
|
|
540
|
+
type="black"
|
|
541
|
+
[tooltipMandatory]="false"
|
|
542
|
+
>{{ rc.item_name }}</span
|
|
543
|
+
>
|
|
544
|
+
<button
|
|
545
|
+
*ngIf="
|
|
546
|
+
dashboardForm?.selectedResponsibilityCenters?.length > 1
|
|
547
|
+
"
|
|
548
|
+
class="countBtn vx-fs-9 vx-fw-500 vx-txt-white vx-d-flex vx-align-center vx-justify-center vx-lh-4"
|
|
549
|
+
appPopover
|
|
550
|
+
(click)="rcList.popover()"
|
|
551
|
+
placement="left"
|
|
552
|
+
>
|
|
553
|
+
+{{
|
|
554
|
+
dashboardForm?.selectedResponsibilityCenters?.slice(1)
|
|
555
|
+
.length
|
|
556
|
+
}}
|
|
557
|
+
</button>
|
|
558
|
+
|
|
559
|
+
<app-popover #rcList [dontCloseonClick]="true">
|
|
560
|
+
<div class="action-list">
|
|
561
|
+
<ul class="action-item">
|
|
562
|
+
<li
|
|
563
|
+
*ngFor="
|
|
564
|
+
let rc of dashboardForm?.selectedResponsibilityCenters
|
|
565
|
+
| slice : 1;
|
|
566
|
+
let j = index
|
|
567
|
+
"
|
|
568
|
+
>
|
|
569
|
+
<div class="avatar-card">
|
|
570
|
+
<span
|
|
571
|
+
class="value"
|
|
572
|
+
[arTooltip]="rc?.item_name"
|
|
573
|
+
placement="bottom-left"
|
|
574
|
+
delay="0"
|
|
575
|
+
type="black"
|
|
576
|
+
[tooltipMandatory]="false"
|
|
577
|
+
>
|
|
578
|
+
<i
|
|
579
|
+
class="icons cross-icon"
|
|
580
|
+
(click)="remove('rc', rc)"
|
|
581
|
+
></i
|
|
582
|
+
>
|
|
583
|
+
{{ rc?.item_name }}
|
|
584
|
+
</span>
|
|
585
|
+
</div>
|
|
586
|
+
</li>
|
|
587
|
+
</ul>
|
|
588
|
+
</div>
|
|
589
|
+
</app-popover>
|
|
590
|
+
</div>
|
|
591
|
+
|
|
592
|
+
<button
|
|
593
|
+
*ngIf="activeSelector !== 'rcList'"
|
|
594
|
+
class="editBtn vx-fs-11 vx-fw-600 vx-txt-blue vx-tt-uppercase vx-p-0 vx-m-0 vx-d-flex vx-align-center"
|
|
595
|
+
(click)="activateSelector('rcList', true)"
|
|
596
|
+
>
|
|
597
|
+
<i class="icons vx-mr-1"></i> EDIT
|
|
598
|
+
</button>
|
|
599
|
+
</div>
|
|
600
|
+
</div>
|
|
601
|
+
</div>
|
|
602
|
+
</div>
|
|
603
|
+
|
|
604
|
+
<!-- Program -->
|
|
605
|
+
<div
|
|
606
|
+
class="form-group-row"
|
|
607
|
+
[class.active]="activeSelector === 'responsibilityCategories'"
|
|
608
|
+
[class.disabled]="
|
|
609
|
+
activeSelector &&
|
|
610
|
+
activeSelector !== 'responsibilityCategories' &&
|
|
611
|
+
activeSelector !== 'name'
|
|
612
|
+
"
|
|
613
|
+
>
|
|
614
|
+
<div class="image">
|
|
615
|
+
<img
|
|
616
|
+
*ngIf="
|
|
617
|
+
dashboardForm?.selectedResponsibilityCategories?.length ==
|
|
618
|
+
0 || activeSelector === 'responsibilityCategories'
|
|
619
|
+
"
|
|
620
|
+
[ngSrc]="ASSETS.dashBoardProgramIcon"
|
|
621
|
+
alt=""
|
|
622
|
+
width="36"
|
|
623
|
+
height="36"
|
|
624
|
+
/>
|
|
625
|
+
<svg
|
|
626
|
+
*ngIf="
|
|
627
|
+
dashboardForm?.selectedResponsibilityCategories?.length > 0 &&
|
|
628
|
+
activeSelector !== 'responsibilityCategories'
|
|
629
|
+
"
|
|
630
|
+
class="checkIcon"
|
|
631
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
632
|
+
viewBox="0 0 52 52"
|
|
633
|
+
>
|
|
634
|
+
<circle
|
|
635
|
+
class="checkIcon__circle"
|
|
636
|
+
cx="26"
|
|
637
|
+
cy="26"
|
|
638
|
+
r="25"
|
|
639
|
+
fill="none"
|
|
640
|
+
/>
|
|
641
|
+
<path
|
|
642
|
+
class="checkIcon__check"
|
|
643
|
+
fill="none"
|
|
644
|
+
d="M14.1 27.2l7.1 7.2 16.7-16.8"
|
|
645
|
+
/>
|
|
646
|
+
</svg>
|
|
647
|
+
</div>
|
|
648
|
+
<div class="form">
|
|
649
|
+
<div class="vx-form-group vx-d-block vx-mb-4">
|
|
650
|
+
<label
|
|
651
|
+
class="vx-fs-11 vx-fw-500 vx-label-txt vx-d-block vx-tt-uppercase vx-mb-2 vx-w-100 vx-lh-4"
|
|
652
|
+
>PROGRAM</label
|
|
653
|
+
>
|
|
654
|
+
<div
|
|
655
|
+
*ngIf="
|
|
656
|
+
dashboardForm?.selectedResponsibilityCategories?.length == 0
|
|
657
|
+
"
|
|
658
|
+
class="selectBoxEnable vx-pl-3 vx-pr-3 vx-d-flex vx-align-center"
|
|
659
|
+
(click)="activateSelector('responsibilityCategories', true)"
|
|
660
|
+
[class.error]="
|
|
661
|
+
submitted &&
|
|
662
|
+
dashboardForm?.selectedResponsibilityCenters?.length == 0 &&
|
|
663
|
+
dashboardForm?.selectedResponsibilityCategories?.length ==
|
|
664
|
+
0 &&
|
|
665
|
+
dashboardForm?.selectedRiskCategories?.length == 0
|
|
666
|
+
"
|
|
667
|
+
>
|
|
668
|
+
<div
|
|
669
|
+
class="selectBoxPlacehoder vx-fs-13 vx-paragraph-txt vx-lh-4"
|
|
670
|
+
>
|
|
671
|
+
Select the Program(s) that you would like displayed in
|
|
672
|
+
the<br />Dashboard, if any.
|
|
673
|
+
</div>
|
|
674
|
+
</div>
|
|
675
|
+
|
|
676
|
+
<div
|
|
677
|
+
*ngIf="
|
|
678
|
+
dashboardForm?.selectedResponsibilityCategories?.length > 0
|
|
679
|
+
"
|
|
680
|
+
class="selectBoxSuccess vx-pl-2 vx-pr-3 vx-d-flex vx-align-center vx-justify-between"
|
|
681
|
+
>
|
|
682
|
+
<div
|
|
683
|
+
class="chipContainer vx-d-flex vx-align-center vx-pl-2 vx-pr-2"
|
|
684
|
+
*ngFor="
|
|
685
|
+
let rCategory of dashboardForm?.selectedResponsibilityCategories?.slice(
|
|
686
|
+
0,
|
|
687
|
+
1
|
|
688
|
+
)
|
|
689
|
+
"
|
|
690
|
+
>
|
|
691
|
+
<i
|
|
692
|
+
class="icons cross vx-fs-12 vx-paragraph-txt vx-mr-1"
|
|
693
|
+
(click)="remove('responsibilityCategories', rCategory)"
|
|
694
|
+
></i
|
|
695
|
+
>
|
|
696
|
+
<span
|
|
697
|
+
class="chipName vx-fs-11 vx-label-txt"
|
|
698
|
+
[arTooltip]="rCategory.item_name"
|
|
699
|
+
placement="bottom-left"
|
|
700
|
+
delay="0"
|
|
701
|
+
type="black"
|
|
702
|
+
[tooltipMandatory]="false"
|
|
703
|
+
>{{ rCategory.item_name }}</span
|
|
704
|
+
>
|
|
705
|
+
<button
|
|
706
|
+
*ngIf="
|
|
707
|
+
dashboardForm?.selectedResponsibilityCategories
|
|
708
|
+
?.length > 1
|
|
709
|
+
"
|
|
710
|
+
class="countBtn vx-fs-9 vx-fw-500 vx-txt-white vx-d-flex vx-align-center vx-justify-center vx-lh-4"
|
|
711
|
+
appPopover
|
|
712
|
+
(click)="rCategoryList.popover()"
|
|
713
|
+
placement="left"
|
|
714
|
+
>
|
|
715
|
+
+{{
|
|
716
|
+
dashboardForm?.selectedResponsibilityCategories?.slice(
|
|
717
|
+
1
|
|
718
|
+
).length
|
|
719
|
+
}}
|
|
720
|
+
</button>
|
|
721
|
+
|
|
722
|
+
<app-popover #rCategoryList [dontCloseonClick]="true">
|
|
723
|
+
<div class="action-list">
|
|
724
|
+
<ul class="action-item">
|
|
725
|
+
<li
|
|
726
|
+
*ngFor="
|
|
727
|
+
let rCategory of dashboardForm?.selectedResponsibilityCategories
|
|
728
|
+
| slice : 1;
|
|
729
|
+
let j = index
|
|
730
|
+
"
|
|
731
|
+
>
|
|
732
|
+
<div class="avatar-card">
|
|
733
|
+
<span
|
|
734
|
+
class="value"
|
|
735
|
+
[arTooltip]="rCategory?.item_name"
|
|
736
|
+
placement="bottom-left"
|
|
737
|
+
delay="0"
|
|
738
|
+
type="black"
|
|
739
|
+
[tooltipMandatory]="false"
|
|
740
|
+
>
|
|
741
|
+
<i
|
|
742
|
+
class="icons cross-icon"
|
|
743
|
+
(click)="
|
|
744
|
+
remove(
|
|
745
|
+
'responsibilityCategories',
|
|
746
|
+
rCategory
|
|
747
|
+
)
|
|
748
|
+
"
|
|
749
|
+
></i
|
|
750
|
+
>
|
|
751
|
+
{{ rCategory?.item_name }}
|
|
752
|
+
</span>
|
|
753
|
+
</div>
|
|
754
|
+
</li>
|
|
755
|
+
</ul>
|
|
756
|
+
</div>
|
|
757
|
+
</app-popover>
|
|
758
|
+
</div>
|
|
759
|
+
|
|
760
|
+
<button
|
|
761
|
+
*ngIf="activeSelector !== 'responsibilityCategories'"
|
|
762
|
+
class="editBtn vx-fs-11 vx-fw-600 vx-txt-blue vx-tt-uppercase vx-p-0 vx-m-0 vx-d-flex vx-align-center"
|
|
763
|
+
(click)="activateSelector('responsibilityCategories', true)"
|
|
764
|
+
>
|
|
765
|
+
<i class="icons vx-mr-1"></i> EDIT
|
|
766
|
+
</button>
|
|
767
|
+
</div>
|
|
768
|
+
</div>
|
|
769
|
+
</div>
|
|
770
|
+
</div>
|
|
771
|
+
|
|
772
|
+
<!-- Risk Category -->
|
|
773
|
+
<div
|
|
774
|
+
class="form-group-row"
|
|
775
|
+
[class.active]="activeSelector === 'riskCategories'"
|
|
776
|
+
*ngIf="showRiskCategory && isManageRisk"
|
|
777
|
+
[class.disabled]="
|
|
778
|
+
activeSelector &&
|
|
779
|
+
activeSelector !== 'riskCategories' &&
|
|
780
|
+
activeSelector !== 'name'
|
|
781
|
+
"
|
|
782
|
+
>
|
|
783
|
+
<div class="image">
|
|
784
|
+
<img
|
|
785
|
+
*ngIf="
|
|
786
|
+
dashboardForm?.selectedRiskCategories?.length == 0 ||
|
|
787
|
+
activeSelector === 'riskCategories'
|
|
788
|
+
"
|
|
789
|
+
[ngSrc]="ASSETS.dashBoardRiskIcon"
|
|
790
|
+
alt=""
|
|
791
|
+
width="36"
|
|
792
|
+
height="36"
|
|
793
|
+
/>
|
|
794
|
+
<svg
|
|
795
|
+
*ngIf="
|
|
796
|
+
dashboardForm?.selectedRiskCategories?.length > 0 &&
|
|
797
|
+
activeSelector !== 'riskCategories'
|
|
798
|
+
"
|
|
799
|
+
class="checkIcon"
|
|
800
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
801
|
+
viewBox="0 0 52 52"
|
|
802
|
+
>
|
|
803
|
+
<circle
|
|
804
|
+
class="checkIcon__circle"
|
|
805
|
+
cx="26"
|
|
806
|
+
cy="26"
|
|
807
|
+
r="25"
|
|
808
|
+
fill="none"
|
|
809
|
+
/>
|
|
810
|
+
<path
|
|
811
|
+
class="checkIcon__check"
|
|
812
|
+
fill="none"
|
|
813
|
+
d="M14.1 27.2l7.1 7.2 16.7-16.8"
|
|
814
|
+
/>
|
|
815
|
+
</svg>
|
|
816
|
+
</div>
|
|
817
|
+
<div class="form" *ngIf="isManageRisk">
|
|
818
|
+
<div class="vx-form-group vx-d-block vx-mb-4">
|
|
819
|
+
<label
|
|
820
|
+
class="vx-fs-11 vx-fw-500 vx-label-txt vx-d-block vx-tt-uppercase vx-mb-2 vx-w-100 vx-lh-4"
|
|
821
|
+
>RISK CATEGORIES</label
|
|
822
|
+
>
|
|
823
|
+
<div
|
|
824
|
+
*ngIf="dashboardForm?.selectedRiskCategories?.length == 0"
|
|
825
|
+
class="selectBoxEnable vx-pl-3 vx-pr-3 vx-d-flex vx-align-center"
|
|
826
|
+
(click)="activateSelector('riskCategories', true)"
|
|
827
|
+
[class.error]="
|
|
828
|
+
submitted &&
|
|
829
|
+
dashboardForm?.selectedResponsibilityCenters?.length == 0 &&
|
|
830
|
+
dashboardForm?.selectedResponsibilityCategories?.length ==
|
|
831
|
+
0 &&
|
|
832
|
+
dashboardForm?.selectedRiskCategories?.length == 0
|
|
833
|
+
"
|
|
834
|
+
>
|
|
835
|
+
<div
|
|
836
|
+
class="selectBoxPlacehoder vx-fs-13 vx-paragraph-txt vx-lh-4"
|
|
837
|
+
>
|
|
838
|
+
Select the Risk Categories that you would like displayed<br />in
|
|
839
|
+
the Dashboard, if any.
|
|
840
|
+
</div>
|
|
841
|
+
</div>
|
|
842
|
+
|
|
843
|
+
<div
|
|
844
|
+
*ngIf="dashboardForm?.selectedRiskCategories?.length > 0"
|
|
845
|
+
class="selectBoxSuccess vx-pl-2 vx-pr-3 vx-d-flex vx-align-center vx-justify-between"
|
|
846
|
+
>
|
|
847
|
+
<div
|
|
848
|
+
class="chipContainer vx-d-flex vx-align-center vx-pl-2 vx-pr-2"
|
|
849
|
+
*ngFor="
|
|
850
|
+
let riskCategory of dashboardForm?.selectedRiskCategories?.slice(
|
|
851
|
+
0,
|
|
852
|
+
1
|
|
853
|
+
)
|
|
854
|
+
"
|
|
855
|
+
>
|
|
856
|
+
<i
|
|
857
|
+
class="icons cross vx-fs-12 vx-paragraph-txt vx-mr-1"
|
|
858
|
+
(click)="remove('riskCategory', riskCategory)"
|
|
859
|
+
></i
|
|
860
|
+
>
|
|
861
|
+
<span
|
|
862
|
+
class="chipName vx-fs-11 vx-label-txt"
|
|
863
|
+
[arTooltip]="riskCategory.category_name"
|
|
864
|
+
placement="bottom-left"
|
|
865
|
+
delay="0"
|
|
866
|
+
type="black"
|
|
867
|
+
[tooltipMandatory]="false"
|
|
868
|
+
>{{ riskCategory.category_name }}</span
|
|
869
|
+
>
|
|
870
|
+
<button
|
|
871
|
+
*ngIf="dashboardForm?.selectedRiskCategories?.length > 1"
|
|
872
|
+
class="countBtn vx-fs-9 vx-fw-500 vx-txt-white vx-d-flex vx-align-center vx-justify-center vx-lh-4"
|
|
873
|
+
appPopover
|
|
874
|
+
(click)="riskList.popover()"
|
|
875
|
+
placement="left"
|
|
876
|
+
>
|
|
877
|
+
+{{
|
|
878
|
+
dashboardForm?.selectedRiskCategories?.slice(1).length
|
|
879
|
+
}}
|
|
880
|
+
</button>
|
|
881
|
+
|
|
882
|
+
<app-popover #riskList [dontCloseonClick]="true">
|
|
883
|
+
<div class="action-list">
|
|
884
|
+
<ul class="action-item">
|
|
885
|
+
<li
|
|
886
|
+
*ngFor="
|
|
887
|
+
let riskCategory of dashboardForm?.selectedRiskCategories
|
|
888
|
+
| slice : 1;
|
|
889
|
+
let j = index
|
|
890
|
+
"
|
|
891
|
+
>
|
|
892
|
+
<div class="avatar-card">
|
|
893
|
+
<span
|
|
894
|
+
class="value"
|
|
895
|
+
[arTooltip]="riskCategory?.category_name"
|
|
896
|
+
placement="bottom-left"
|
|
897
|
+
delay="0"
|
|
898
|
+
type="black"
|
|
899
|
+
[tooltipMandatory]="false"
|
|
900
|
+
>
|
|
901
|
+
<i
|
|
902
|
+
class="icons cross-icon"
|
|
903
|
+
(click)="remove('riskCategory', riskCategory)"
|
|
904
|
+
></i
|
|
905
|
+
>
|
|
906
|
+
{{ riskCategory?.category_name }}
|
|
907
|
+
</span>
|
|
908
|
+
</div>
|
|
909
|
+
</li>
|
|
910
|
+
</ul>
|
|
911
|
+
</div>
|
|
912
|
+
</app-popover>
|
|
913
|
+
</div>
|
|
914
|
+
|
|
915
|
+
<button
|
|
916
|
+
*ngIf="activeSelector !== 'riskCategories'"
|
|
917
|
+
class="editBtn vx-fs-11 vx-fw-600 vx-txt-blue vx-tt-uppercase vx-p-0 vx-m-0 vx-d-flex vx-align-center"
|
|
918
|
+
(click)="activateSelector('riskCategories', true)"
|
|
919
|
+
>
|
|
920
|
+
<i class="icons vx-mr-1"></i> EDIT
|
|
921
|
+
</button>
|
|
922
|
+
</div>
|
|
923
|
+
</div>
|
|
924
|
+
</div>
|
|
925
|
+
</div>
|
|
926
|
+
|
|
927
|
+
<!-- Display Criteria -->
|
|
928
|
+
<div
|
|
929
|
+
class="form-group-row"
|
|
930
|
+
[class.disabled]="activeSelector && activeSelector !== 'name'"
|
|
931
|
+
>
|
|
932
|
+
<div class="image">
|
|
933
|
+
<img
|
|
934
|
+
*ngIf="dashboardForm?.displayCriteria?.length == 0"
|
|
935
|
+
[ngSrc]="ASSETS.dashBoardUsersIcon"
|
|
936
|
+
alt=""
|
|
937
|
+
width="36"
|
|
938
|
+
height="36"
|
|
939
|
+
/>
|
|
940
|
+
<svg
|
|
941
|
+
*ngIf="dashboardForm?.displayCriteria?.length > 0"
|
|
942
|
+
class="checkIcon"
|
|
943
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
944
|
+
viewBox="0 0 52 52"
|
|
945
|
+
>
|
|
946
|
+
<circle
|
|
947
|
+
class="checkIcon__circle"
|
|
948
|
+
cx="26"
|
|
949
|
+
cy="26"
|
|
950
|
+
r="25"
|
|
951
|
+
fill="none"
|
|
952
|
+
/>
|
|
953
|
+
<path
|
|
954
|
+
class="checkIcon__check"
|
|
955
|
+
fill="none"
|
|
956
|
+
d="M14.1 27.2l7.1 7.2 16.7-16.8"
|
|
957
|
+
/>
|
|
958
|
+
</svg>
|
|
959
|
+
</div>
|
|
960
|
+
<div class="form">
|
|
961
|
+
<div class="vx-form-group vx-d-block vx-mb-4">
|
|
962
|
+
<label
|
|
963
|
+
class="vx-fs-11 vx-fw-500 vx-label-txt vx-d-block vx-tt-uppercase vx-mb-2 vx-w-100 vx-lh-4"
|
|
964
|
+
>DISPLAY CRITERIA</label
|
|
965
|
+
>
|
|
966
|
+
<div class="radio-group" *ngIf="showCriteria">
|
|
967
|
+
<app-cs-radio
|
|
968
|
+
[checked]="dashboardForm.displayCriteria == 'or'"
|
|
969
|
+
(checkedEvent)="dashboardForm.displayCriteria = 'or'"
|
|
970
|
+
>
|
|
971
|
+
Those Items that have been assigned to either the selected
|
|
972
|
+
Responsibility Center(s) or the selected
|
|
973
|
+
Categories.</app-cs-radio
|
|
974
|
+
>
|
|
975
|
+
|
|
976
|
+
<app-cs-radio
|
|
977
|
+
[checked]="dashboardForm.displayCriteria == 'and'"
|
|
978
|
+
(checkedEvent)="dashboardForm.displayCriteria = 'and'"
|
|
979
|
+
>
|
|
980
|
+
Those Items that have been assigned to both the selected
|
|
981
|
+
Responsibility Center(s) and the selected
|
|
982
|
+
Categories.</app-cs-radio
|
|
983
|
+
>
|
|
984
|
+
</div>
|
|
985
|
+
</div>
|
|
986
|
+
</div>
|
|
987
|
+
</div>
|
|
988
|
+
|
|
989
|
+
<!-- Timeframe -->
|
|
990
|
+
<div
|
|
991
|
+
class="form-group-row"
|
|
992
|
+
[class.disabled]="activeSelector && activeSelector !== 'name'"
|
|
993
|
+
>
|
|
994
|
+
<div class="image">
|
|
995
|
+
<img
|
|
996
|
+
*ngIf="
|
|
997
|
+
!dashboardForm?.selectedFromDate ||
|
|
998
|
+
!dashboardForm?.selectedToDate
|
|
999
|
+
"
|
|
1000
|
+
[ngSrc]="ASSETS.dashBoardTimeFrameIcon"
|
|
1001
|
+
alt=""
|
|
1002
|
+
width="36"
|
|
1003
|
+
height="36"
|
|
1004
|
+
/>
|
|
1005
|
+
<svg
|
|
1006
|
+
*ngIf="
|
|
1007
|
+
dashboardForm?.selectedFromDate &&
|
|
1008
|
+
dashboardForm?.selectedToDate
|
|
1009
|
+
"
|
|
1010
|
+
class="checkIcon"
|
|
1011
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1012
|
+
viewBox="0 0 52 52"
|
|
1013
|
+
>
|
|
1014
|
+
<circle
|
|
1015
|
+
class="checkIcon__circle"
|
|
1016
|
+
cx="26"
|
|
1017
|
+
cy="26"
|
|
1018
|
+
r="25"
|
|
1019
|
+
fill="none"
|
|
1020
|
+
/>
|
|
1021
|
+
<path
|
|
1022
|
+
class="checkIcon__check"
|
|
1023
|
+
fill="none"
|
|
1024
|
+
d="M14.1 27.2l7.1 7.2 16.7-16.8"
|
|
1025
|
+
/>
|
|
1026
|
+
</svg>
|
|
1027
|
+
</div>
|
|
1028
|
+
<div class="form">
|
|
1029
|
+
<div class="vx-form-group vx-d-block vx-mb-4">
|
|
1030
|
+
<label
|
|
1031
|
+
class="vx-fs-11 vx-fw-500 vx-label-txt vx-d-block vx-tt-uppercase vx-mb-2 vx-w-100 vx-lh-4"
|
|
1032
|
+
>TIMEFRAME</label
|
|
1033
|
+
>
|
|
1034
|
+
<label class="vx-control-panel-sub-label"
|
|
1035
|
+
>Select how long you would like the information selected to be
|
|
1036
|
+
displayed for. If no timeframe is selected, the information
|
|
1037
|
+
will be displayed permanently.</label
|
|
1038
|
+
>
|
|
1039
|
+
<div class="input-group vx-d-flex vx-justify-between">
|
|
1040
|
+
<div class="date-select">
|
|
1041
|
+
<i class="icons"></i>
|
|
1042
|
+
<input
|
|
1043
|
+
type="text"
|
|
1044
|
+
id="from_date"
|
|
1045
|
+
[value]="
|
|
1046
|
+
dashboardForm?.selectedFromDate | date : 'dd MMM yyyy'
|
|
1047
|
+
"
|
|
1048
|
+
[placeholder]="'From'"
|
|
1049
|
+
(click)="openFromDatePicker()"
|
|
1050
|
+
readonly
|
|
1051
|
+
/>
|
|
1052
|
+
<dp-date-picker
|
|
1053
|
+
#fromDatePicker
|
|
1054
|
+
[(ngModel)]="dashboardForm.selectedFromDate"
|
|
1055
|
+
placeholder="Select Date"
|
|
1056
|
+
(onSelect)="
|
|
1057
|
+
closeFromDatePicker(); datePickerOverlay = false
|
|
1058
|
+
"
|
|
1059
|
+
[config]="fromDatePickerConfig"
|
|
1060
|
+
></dp-date-picker>
|
|
1061
|
+
<div
|
|
1062
|
+
class="overlay"
|
|
1063
|
+
(click)="closeFromDatePicker()"
|
|
1064
|
+
*ngIf="datePickerOverlay"
|
|
1065
|
+
></div>
|
|
1066
|
+
</div>
|
|
1067
|
+
<div
|
|
1068
|
+
class="date-select"
|
|
1069
|
+
*ngIf="!hideToDate"
|
|
1070
|
+
[class.disabled]="!dashboardForm?.selectedFromDate"
|
|
1071
|
+
>
|
|
1072
|
+
<i class="icons"></i>
|
|
1073
|
+
<input
|
|
1074
|
+
type="text"
|
|
1075
|
+
id="to_date"
|
|
1076
|
+
[value]="
|
|
1077
|
+
dashboardForm?.selectedToDate | date : 'dd MMM yyyy'
|
|
1078
|
+
"
|
|
1079
|
+
[placeholder]="'To'"
|
|
1080
|
+
(click)="openToDatePicker()"
|
|
1081
|
+
readonly
|
|
1082
|
+
/>
|
|
1083
|
+
<dp-date-picker
|
|
1084
|
+
#toDatePicker
|
|
1085
|
+
[(ngModel)]="dashboardForm.selectedToDate"
|
|
1086
|
+
placeholder="Select Date"
|
|
1087
|
+
(onSelect)="
|
|
1088
|
+
closeToDatePicker(); datePickerOverlay = false
|
|
1089
|
+
"
|
|
1090
|
+
[config]="toDatePickerConfig"
|
|
1091
|
+
></dp-date-picker>
|
|
1092
|
+
<div
|
|
1093
|
+
class="overlay"
|
|
1094
|
+
(click)="closeToDatePicker()"
|
|
1095
|
+
*ngIf="datePickerOverlay"
|
|
1096
|
+
></div>
|
|
1097
|
+
</div>
|
|
1098
|
+
</div>
|
|
1099
|
+
<p
|
|
1100
|
+
class="vx-txt-error"
|
|
1101
|
+
[appScrollInView]="true"
|
|
1102
|
+
*ngIf="
|
|
1103
|
+
submitted &&
|
|
1104
|
+
dashboardForm.selectedFromDate &&
|
|
1105
|
+
!dashboardForm.selectedToDate
|
|
1106
|
+
"
|
|
1107
|
+
>
|
|
1108
|
+
Select a time-frame.
|
|
1109
|
+
</p>
|
|
1110
|
+
</div>
|
|
1111
|
+
</div>
|
|
1112
|
+
</div>
|
|
1113
|
+
|
|
1114
|
+
<!-- Email Summary -->
|
|
1115
|
+
<div
|
|
1116
|
+
class="form-group-row"
|
|
1117
|
+
[class.active]="activeSelector === 'frequency'"
|
|
1118
|
+
[class.disabled]="
|
|
1119
|
+
activeSelector &&
|
|
1120
|
+
activeSelector !== 'frequency' &&
|
|
1121
|
+
activeSelector !== 'name'
|
|
1122
|
+
"
|
|
1123
|
+
>
|
|
1124
|
+
<div class="image">
|
|
1125
|
+
<img
|
|
1126
|
+
*ngIf="!dashboardForm.frequencyMessage"
|
|
1127
|
+
[ngSrc]="ASSETS.dashBoardEmailSummariesIcon"
|
|
1128
|
+
alt=""
|
|
1129
|
+
width="36"
|
|
1130
|
+
height="36"
|
|
1131
|
+
/>
|
|
1132
|
+
<svg
|
|
1133
|
+
*ngIf="dashboardForm.frequencyMessage"
|
|
1134
|
+
class="checkIcon"
|
|
1135
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1136
|
+
viewBox="0 0 52 52"
|
|
1137
|
+
>
|
|
1138
|
+
<circle
|
|
1139
|
+
class="checkIcon__circle"
|
|
1140
|
+
cx="26"
|
|
1141
|
+
cy="26"
|
|
1142
|
+
r="25"
|
|
1143
|
+
fill="none"
|
|
1144
|
+
/>
|
|
1145
|
+
<path
|
|
1146
|
+
class="checkIcon__check"
|
|
1147
|
+
fill="none"
|
|
1148
|
+
d="M14.1 27.2l7.1 7.2 16.7-16.8"
|
|
1149
|
+
/>
|
|
1150
|
+
</svg>
|
|
1151
|
+
</div>
|
|
1152
|
+
<div class="form">
|
|
1153
|
+
<div class="vx-form-group vx-d-block">
|
|
1154
|
+
<label
|
|
1155
|
+
class="vx-fs-11 vx-fw-500 vx-label-txt vx-d-block vx-tt-uppercase vx-mb-2 vx-w-100 vx-lh-4"
|
|
1156
|
+
>Email Summaries</label
|
|
1157
|
+
>
|
|
1158
|
+
<label class="vx-control-panel-sub-label"
|
|
1159
|
+
>If you would like to send a summary of this Dashboard, please
|
|
1160
|
+
select a frequency(By default VComply sends a weekly
|
|
1161
|
+
Summary).</label
|
|
1162
|
+
>
|
|
1163
|
+
<div
|
|
1164
|
+
*ngIf="!dashboardForm.frequencyMessage"
|
|
1165
|
+
class="selectBoxEnable vx-pl-3 vx-pr-3 vx-d-flex vx-align-center"
|
|
1166
|
+
(click)="activateSelector('frequency', true)"
|
|
1167
|
+
>
|
|
1168
|
+
<div
|
|
1169
|
+
class="selectBoxPlacehoder vx-fs-13 vx-paragraph-txt vx-lh-4"
|
|
1170
|
+
>
|
|
1171
|
+
Email Summaries
|
|
1172
|
+
</div>
|
|
1173
|
+
</div>
|
|
1174
|
+
|
|
1175
|
+
<div
|
|
1176
|
+
*ngIf="dashboardForm.frequencyMessage"
|
|
1177
|
+
class="selectBoxSuccess vx-pl-2 vx-pr-3 vx-d-flex vx-align-center vx-justify-between"
|
|
1178
|
+
>
|
|
1179
|
+
<div
|
|
1180
|
+
class="selectBoxText vx-fs-13 vx-paragraph-txt"
|
|
1181
|
+
[arTooltip]="dashboardForm.frequencyMessage"
|
|
1182
|
+
placement="bottom-left"
|
|
1183
|
+
type="black"
|
|
1184
|
+
delay="0"
|
|
1185
|
+
[tooltipMandatory]="false"
|
|
1186
|
+
[innerHTML]="dashboardForm.frequencyMessage"
|
|
1187
|
+
></div>
|
|
1188
|
+
|
|
1189
|
+
<button
|
|
1190
|
+
*ngIf="
|
|
1191
|
+
dashboardForm.frequencyMessage &&
|
|
1192
|
+
activeSelector !== 'frequency'
|
|
1193
|
+
"
|
|
1194
|
+
class="editBtn vx-fs-11 vx-fw-600 vx-txt-blue vx-tt-uppercase vx-p-0 vx-m-0 vx-d-flex vx-align-center"
|
|
1195
|
+
(click)="activateSelector('frequency', true)"
|
|
1196
|
+
>
|
|
1197
|
+
<i class="icons vx-mr-1"></i> EDIT
|
|
1198
|
+
</button>
|
|
1199
|
+
</div>
|
|
1200
|
+
</div>
|
|
1201
|
+
</div>
|
|
1202
|
+
</div>
|
|
1203
|
+
</div>
|
|
1204
|
+
<div class="button-block">
|
|
1205
|
+
<button
|
|
1206
|
+
class="vx-btn block primary"
|
|
1207
|
+
[disabled]="activeSelector && activeSelector !== 'name'"
|
|
1208
|
+
(click)="configureDashboard()"
|
|
1209
|
+
>
|
|
1210
|
+
Next: Configure Widgets
|
|
1211
|
+
</button>
|
|
1212
|
+
</div>
|
|
1213
|
+
</div>
|
|
1214
|
+
|
|
1215
|
+
<button
|
|
1216
|
+
class="close-dialog"
|
|
1217
|
+
type="button"
|
|
1218
|
+
[disabled]="activeSelector && activeSelector !== 'name'"
|
|
1219
|
+
(click)="close.emit({ mode: 'discard' })"
|
|
1220
|
+
[arTooltip]="'[Esc] to close'"
|
|
1221
|
+
placement="left"
|
|
1222
|
+
type="black"
|
|
1223
|
+
delay="0"
|
|
1224
|
+
[tooltipMandatory]="true"
|
|
1225
|
+
[class.hide]="activeSelector && activeSelector !== 'name'"
|
|
1226
|
+
>
|
|
1227
|
+
<i class="icons"></i>
|
|
1228
|
+
</button>
|
|
1229
|
+
<div
|
|
1230
|
+
class="global-confirmation-alert"
|
|
1231
|
+
*ngIf="
|
|
1232
|
+
submitted &&
|
|
1233
|
+
dashboardForm?.selectedResponsibilityCenters?.length == 0 &&
|
|
1234
|
+
dashboardForm?.selectedResponsibilityCategories?.length == 0 &&
|
|
1235
|
+
dashboardForm?.selectedRiskCategories?.length == 0
|
|
1236
|
+
"
|
|
1237
|
+
>
|
|
1238
|
+
<div class="global-confirmation-alert-top">
|
|
1239
|
+
<span class="icon-block">
|
|
1240
|
+
<i class="icons"></i>
|
|
1241
|
+
</span>
|
|
1242
|
+
<p class="text" *ngIf="showRiskCategory">
|
|
1243
|
+
Select a Responsibility Center, Program or Risk Category.
|
|
1244
|
+
</p>
|
|
1245
|
+
<p class="text" *ngIf="!showRiskCategory">
|
|
1246
|
+
Select a Responsibility Center or Program.
|
|
1247
|
+
</p>
|
|
1248
|
+
</div>
|
|
1249
|
+
<div class="global-confirmation-alert-bottom">
|
|
1250
|
+
<p class="message"></p>
|
|
1251
|
+
<div class="button-group">
|
|
1252
|
+
<button class="fill" type="button" (click)="submitted = false">
|
|
1253
|
+
OKAY
|
|
1254
|
+
</button>
|
|
1255
|
+
</div>
|
|
1256
|
+
</div>
|
|
1257
|
+
</div>
|
|
1258
|
+
</div>
|
|
1259
|
+
</div>
|
|
1260
|
+
</div>
|
|
1261
|
+
|
|
1262
|
+
<app-smiley-dialog
|
|
1263
|
+
*ngIf="isSmiley"
|
|
1264
|
+
[message]="smileyMessage"
|
|
1265
|
+
></app-smiley-dialog>
|
|
1266
|
+
|
|
1267
|
+
<app-configure-widgets
|
|
1268
|
+
*ngIf="openConfigureWidgets"
|
|
1269
|
+
[mode]="mode"
|
|
1270
|
+
[displayedWidgets]="displayedWidgets"
|
|
1271
|
+
[showRisk]="showRiskWidgets"
|
|
1272
|
+
[showCompliance]="showComplianceWidgets"
|
|
1273
|
+
[selectedWidgetsData]="selectedWidgets"
|
|
1274
|
+
(widgetsDataModified)="setSelectedWidgets($event)"
|
|
1275
|
+
(closeConfigureWidgets)="closeConfigureWidgets($event)"
|
|
1276
|
+
></app-configure-widgets>
|