@verisoft/ui-govcz 18.6.4 → 18.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -3
- package/esm2022/index.mjs +2 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +34 -0
- package/esm2022/lib/components/breadcrumb/index.mjs +2 -0
- package/esm2022/lib/components/button/button.component.mjs +87 -0
- package/esm2022/lib/components/button/index.mjs +2 -0
- package/esm2022/lib/components/calendar/calendar.component.mjs +87 -0
- package/esm2022/lib/components/calendar/index.mjs +2 -0
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +62 -0
- package/esm2022/lib/components/checkbox/index.mjs +2 -0
- package/esm2022/lib/components/confirm-dialog/confirm-dialog.component.mjs +72 -0
- package/esm2022/lib/components/confirm-dialog/index.mjs +2 -0
- package/esm2022/lib/components/dropdown/dropdown-item.component.mjs +14 -0
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +280 -0
- package/esm2022/lib/components/dropdown/dropdown.model.mjs +2 -0
- package/esm2022/lib/components/dropdown/index.mjs +2 -0
- package/esm2022/lib/components/errors/error.component.mjs +34 -0
- package/esm2022/lib/components/errors/index.mjs +2 -0
- package/esm2022/lib/components/form-field/form-field.component.mjs +92 -0
- package/esm2022/lib/components/form-field/index.mjs +2 -0
- package/esm2022/lib/components/header/header.component.mjs +85 -0
- package/esm2022/lib/components/header/index.mjs +2 -0
- package/esm2022/lib/components/index.mjs +34 -0
- package/esm2022/lib/components/input-group/index.mjs +2 -0
- package/esm2022/lib/components/input-group/input-group.component.mjs +89 -0
- package/esm2022/lib/components/loader/index.mjs +2 -0
- package/esm2022/lib/components/loader/loader.component.mjs +34 -0
- package/esm2022/lib/components/multiselect/index.mjs +2 -0
- package/esm2022/lib/components/multiselect/multiselect.component.mjs +121 -0
- package/esm2022/lib/components/number-input/index.mjs +2 -0
- package/esm2022/lib/components/number-input/number-input.component.mjs +104 -0
- package/esm2022/lib/components/page-header/index.mjs +2 -0
- package/esm2022/lib/components/page-header/page-header.component.mjs +28 -0
- package/esm2022/lib/components/password/index.mjs +2 -0
- package/esm2022/lib/components/password/password.component.mjs +94 -0
- package/esm2022/lib/components/radiobutton/index.mjs +2 -0
- package/esm2022/lib/components/radiobutton/radiobutton.component.mjs +50 -0
- package/esm2022/lib/components/search/index.mjs +2 -0
- package/esm2022/lib/components/search/search.component.mjs +40 -0
- package/esm2022/lib/components/section/index.mjs +2 -0
- package/esm2022/lib/components/section/section.component.mjs +70 -0
- package/esm2022/lib/components/shared-components/action-button-group/action-button-group.component.mjs +97 -0
- package/esm2022/lib/components/shared-components/action-button-group/components/action-button/action-button.component.mjs +64 -0
- package/esm2022/lib/components/shared-components/action-button-group/index.mjs +3 -0
- package/esm2022/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.mjs +91 -0
- package/esm2022/lib/components/shared-components/dynamic-component/dynamic-component.component.mjs +42 -0
- package/esm2022/lib/components/shared-components/dynamic-component/index.mjs +3 -0
- package/esm2022/lib/components/shared-components/feature-list/directives/feature-list-column.directive.mjs +43 -0
- package/esm2022/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.mjs +16 -0
- package/esm2022/lib/components/shared-components/feature-list/feature-list-filter.pipe.mjs +24 -0
- package/esm2022/lib/components/shared-components/feature-list/feature-list-page.component.mjs +43 -0
- package/esm2022/lib/components/shared-components/feature-list/feature-list-page.model.mjs +16 -0
- package/esm2022/lib/components/shared-components/feature-list/feature-list.component.mjs +285 -0
- package/esm2022/lib/components/shared-components/feature-list/index.mjs +6 -0
- package/esm2022/lib/components/shared-components/filter/directives/filter-field.directive.mjs +53 -0
- package/esm2022/lib/components/shared-components/filter/filter.component.mjs +195 -0
- package/esm2022/lib/components/shared-components/filter/filter.model.mjs +16 -0
- package/esm2022/lib/components/shared-components/filter/index.mjs +3 -0
- package/esm2022/lib/components/shared-components/generic-field/generic-field.component.mjs +98 -0
- package/esm2022/lib/components/shared-components/generic-field/index.mjs +2 -0
- package/esm2022/lib/components/shared-components/generic-form/generic-form.component.mjs +46 -0
- package/esm2022/lib/components/shared-components/generic-form/generic-form.model.mjs +50 -0
- package/esm2022/lib/components/shared-components/generic-form/index.mjs +3 -0
- package/esm2022/lib/components/shared-components/index.mjs +7 -0
- package/esm2022/lib/components/side-menu/index.mjs +3 -0
- package/esm2022/lib/components/side-menu/side-menu.component.mjs +48 -0
- package/esm2022/lib/components/side-menu/side-menu.module.mjs +73 -0
- package/esm2022/lib/components/snackbar/index.mjs +3 -0
- package/esm2022/lib/components/snackbar/services/snackbar.service.mjs +75 -0
- package/esm2022/lib/components/snackbar/snackbar.component.mjs +61 -0
- package/esm2022/lib/components/snackbar/snackbar.model.mjs +2 -0
- package/esm2022/lib/components/stepper/index.mjs +2 -0
- package/esm2022/lib/components/stepper/stepper.component.mjs +66 -0
- package/esm2022/lib/components/switch/index.mjs +2 -0
- package/esm2022/lib/components/switch/switch.component.mjs +45 -0
- package/esm2022/lib/components/tab-view/index.mjs +4 -0
- package/esm2022/lib/components/tab-view/tab-view-item.component.mjs +41 -0
- package/esm2022/lib/components/tab-view/tab-view.component.mjs +56 -0
- package/esm2022/lib/components/tab-view/tab-view.module.mjs +41 -0
- package/esm2022/lib/components/table/index.mjs +2 -0
- package/esm2022/lib/components/table/table-pagination-info.component.mjs +32 -0
- package/esm2022/lib/components/table/table.component.mjs +359 -0
- package/esm2022/lib/components/table/table.model.mjs +14 -0
- package/esm2022/lib/components/textarea/index.mjs +2 -0
- package/esm2022/lib/components/textarea/textarea.component.mjs +95 -0
- package/esm2022/lib/components/textfield/index.mjs +2 -0
- package/esm2022/lib/components/textfield/textfield.component.mjs +124 -0
- package/esm2022/lib/components/tooltip/index.mjs +2 -0
- package/esm2022/lib/components/tooltip/tooltip.component.mjs +66 -0
- package/esm2022/lib/components/tristatecheckbox/index.mjs +2 -0
- package/esm2022/lib/components/tristatecheckbox/tristatecheckbox.component.mjs +89 -0
- package/esm2022/lib/icons.mjs +35 -0
- package/esm2022/lib/index.mjs +6 -0
- package/esm2022/lib/init.service.mjs +17 -0
- package/esm2022/lib/pages/index.mjs +4 -0
- package/esm2022/lib/pages/not-authenticated/index.mjs +2 -0
- package/esm2022/lib/pages/not-authenticated/not-authenticated.component.mjs +17 -0
- package/esm2022/lib/pages/not-authorized/index.mjs +2 -0
- package/esm2022/lib/pages/not-authorized/not-authorized.component.mjs +20 -0
- package/esm2022/lib/pages/not-found/index.mjs +2 -0
- package/esm2022/lib/pages/not-found/not-found.component.mjs +20 -0
- package/esm2022/lib/pipes/color/color.pipe.mjs +27 -0
- package/esm2022/lib/pipes/index.mjs +4 -0
- package/esm2022/lib/pipes/multiselect/multiselect-options.pipe.mjs +52 -0
- package/esm2022/lib/pipes/size/size.pipe.mjs +23 -0
- package/esm2022/verisoft-ui-govcz.mjs +5 -0
- package/fesm2022/verisoft-ui-govcz.mjs +3742 -0
- package/fesm2022/verisoft-ui-govcz.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +7 -0
- package/{src/lib/components/breadcrumb/index.ts → lib/components/breadcrumb/index.d.ts} +1 -1
- package/lib/components/button/button.component.d.ts +26 -0
- package/lib/components/button/index.d.ts +1 -0
- package/lib/components/calendar/calendar.component.d.ts +23 -0
- package/lib/components/calendar/index.d.ts +1 -0
- package/lib/components/checkbox/checkbox.component.d.ts +15 -0
- package/lib/components/checkbox/index.d.ts +1 -0
- package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +15 -0
- package/{src/lib/components/confirm-dialog/index.ts → lib/components/confirm-dialog/index.d.ts} +1 -1
- package/lib/components/dropdown/dropdown-item.component.d.ts +7 -0
- package/lib/components/dropdown/dropdown.component.d.ts +65 -0
- package/{src/lib/components/dropdown/dropdown.model.ts → lib/components/dropdown/dropdown.model.d.ts} +6 -6
- package/{src/lib/components/dropdown/index.ts → lib/components/dropdown/index.d.ts} +1 -1
- package/lib/components/errors/error.component.d.ts +14 -0
- package/lib/components/errors/index.d.ts +1 -0
- package/lib/components/form-field/form-field.component.d.ts +25 -0
- package/{src/lib/components/form-field/index.ts → lib/components/form-field/index.d.ts} +1 -1
- package/lib/components/header/header.component.d.ts +25 -0
- package/lib/components/header/index.d.ts +1 -0
- package/{src/lib/components/index.ts → lib/components/index.d.ts} +33 -33
- package/lib/components/input-group/index.d.ts +1 -0
- package/lib/components/input-group/input-group.component.d.ts +24 -0
- package/lib/components/loader/index.d.ts +1 -0
- package/lib/components/loader/loader.component.d.ts +8 -0
- package/lib/components/multiselect/index.d.ts +1 -0
- package/lib/components/multiselect/multiselect.component.d.ts +35 -0
- package/lib/components/number-input/index.d.ts +1 -0
- package/lib/components/number-input/number-input.component.d.ts +29 -0
- package/lib/components/page-header/index.d.ts +1 -0
- package/lib/components/page-header/page-header.component.d.ts +9 -0
- package/{src/lib/components/password/index.ts → lib/components/password/index.d.ts} +1 -1
- package/lib/components/password/password.component.d.ts +23 -0
- package/lib/components/radiobutton/index.d.ts +1 -0
- package/lib/components/radiobutton/radiobutton.component.d.ts +12 -0
- package/lib/components/search/index.d.ts +1 -0
- package/lib/components/search/search.component.d.ts +14 -0
- package/lib/components/section/index.d.ts +1 -0
- package/lib/components/section/section.component.d.ts +18 -0
- package/lib/components/shared-components/action-button-group/action-button-group.component.d.ts +29 -0
- package/lib/components/shared-components/action-button-group/components/action-button/action-button.component.d.ts +24 -0
- package/{src/lib/components/shared-components/action-button-group/index.ts → lib/components/shared-components/action-button-group/index.d.ts} +2 -2
- package/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.d.ts +17 -0
- package/lib/components/shared-components/dynamic-component/dynamic-component.component.d.ts +16 -0
- package/{src/lib/components/shared-components/dynamic-component/index.ts → lib/components/shared-components/dynamic-component/index.d.ts} +2 -2
- package/lib/components/shared-components/feature-list/directives/feature-list-column.directive.d.ts +10 -0
- package/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.d.ts +6 -0
- package/lib/components/shared-components/feature-list/feature-list-filter.pipe.d.ts +9 -0
- package/lib/components/shared-components/feature-list/feature-list-page.component.d.ts +9 -0
- package/lib/components/shared-components/feature-list/feature-list-page.model.d.ts +23 -0
- package/lib/components/shared-components/feature-list/feature-list.component.d.ts +62 -0
- package/{src/lib/components/shared-components/feature-list/index.ts → lib/components/shared-components/feature-list/index.d.ts} +5 -5
- package/lib/components/shared-components/filter/directives/filter-field.directive.d.ts +20 -0
- package/lib/components/shared-components/filter/filter.component.d.ts +53 -0
- package/lib/components/shared-components/filter/filter.model.d.ts +2 -0
- package/{src/lib/components/shared-components/filter/index.ts → lib/components/shared-components/filter/index.d.ts} +2 -2
- package/lib/components/shared-components/generic-field/generic-field.component.d.ts +28 -0
- package/{src/lib/components/shared-components/generic-field/index.ts → lib/components/shared-components/generic-field/index.d.ts} +1 -1
- package/lib/components/shared-components/generic-form/generic-form.component.d.ts +15 -0
- package/lib/components/shared-components/generic-form/generic-form.model.d.ts +4 -0
- package/{src/lib/components/shared-components/generic-form/index.ts → lib/components/shared-components/generic-form/index.d.ts} +2 -2
- package/{src/lib/components/shared-components/index.ts → lib/components/shared-components/index.d.ts} +6 -6
- package/{src/lib/components/side-menu/index.ts → lib/components/side-menu/index.d.ts} +2 -2
- package/lib/components/side-menu/side-menu.component.d.ts +15 -0
- package/lib/components/side-menu/side-menu.module.d.ts +12 -0
- package/{src/lib/components/snackbar/index.ts → lib/components/snackbar/index.d.ts} +2 -2
- package/lib/components/snackbar/services/snackbar.service.d.ts +18 -0
- package/lib/components/snackbar/snackbar.component.d.ts +18 -0
- package/{src/lib/components/snackbar/snackbar.model.ts → lib/components/snackbar/snackbar.model.d.ts} +10 -10
- package/lib/components/stepper/index.d.ts +1 -0
- package/lib/components/stepper/stepper.component.d.ts +20 -0
- package/lib/components/switch/index.d.ts +1 -0
- package/lib/components/switch/switch.component.d.ts +12 -0
- package/{src/lib/components/tab-view/index.ts → lib/components/tab-view/index.d.ts} +3 -3
- package/lib/components/tab-view/tab-view-item.component.d.ts +14 -0
- package/lib/components/tab-view/tab-view.component.d.ts +19 -0
- package/lib/components/tab-view/tab-view.module.d.ts +12 -0
- package/{src/lib/components/table/index.ts → lib/components/table/index.d.ts} +1 -1
- package/lib/components/table/table-pagination-info.component.d.ts +12 -0
- package/lib/components/table/table.component.d.ts +91 -0
- package/lib/components/table/table.model.d.ts +3 -0
- package/lib/components/textarea/index.d.ts +1 -0
- package/lib/components/textarea/textarea.component.d.ts +25 -0
- package/lib/components/textfield/index.d.ts +1 -0
- package/lib/components/textfield/textfield.component.d.ts +28 -0
- package/lib/components/tooltip/index.d.ts +1 -0
- package/lib/components/tooltip/tooltip.component.d.ts +18 -0
- package/{src/lib/components/tristatecheckbox/index.ts → lib/components/tristatecheckbox/index.d.ts} +1 -1
- package/lib/components/tristatecheckbox/tristatecheckbox.component.d.ts +27 -0
- package/lib/icons.d.ts +2 -0
- package/{src/lib/index.ts → lib/index.d.ts} +5 -5
- package/lib/init.service.d.ts +6 -0
- package/{src/lib/pages/index.ts → lib/pages/index.d.ts} +3 -3
- package/{src/lib/pages/not-authenticated/index.ts → lib/pages/not-authenticated/index.d.ts} +1 -1
- package/lib/pages/not-authenticated/not-authenticated.component.d.ts +5 -0
- package/{src/lib/pages/not-authorized/index.ts → lib/pages/not-authorized/index.d.ts} +1 -1
- package/lib/pages/not-authorized/not-authorized.component.d.ts +6 -0
- package/{src/lib/pages/not-found/index.ts → lib/pages/not-found/index.d.ts} +1 -1
- package/lib/pages/not-found/not-found.component.d.ts +6 -0
- package/lib/pipes/color/color.pipe.d.ts +8 -0
- package/{src/lib/pipes/index.ts → lib/pipes/index.d.ts} +3 -3
- package/lib/pipes/multiselect/multiselect-options.pipe.d.ts +9 -0
- package/lib/pipes/size/size.pipe.d.ts +8 -0
- package/package.json +38 -23
- package/.eslintrc.json +0 -48
- package/jest.config.ts +0 -21
- package/ng-package.json +0 -15
- package/project.json +0 -49
- package/src/assets/main.css +0 -18
- package/src/config.d.ts +0 -10
- package/src/index.ts +0 -1
- package/src/lib/components/breadcrumb/breadcrumb.component.html +0 -23
- package/src/lib/components/breadcrumb/breadcrumb.component.scss +0 -0
- package/src/lib/components/breadcrumb/breadcrumb.component.spec.ts +0 -21
- package/src/lib/components/breadcrumb/breadcrumb.component.ts +0 -30
- package/src/lib/components/button/button.component.html +0 -26
- package/src/lib/components/button/button.component.scss +0 -0
- package/src/lib/components/button/button.component.ts +0 -72
- package/src/lib/components/button/index.ts +0 -1
- package/src/lib/components/calendar/calendar.component.html +0 -28
- package/src/lib/components/calendar/calendar.component.scss +0 -0
- package/src/lib/components/calendar/calendar.component.ts +0 -79
- package/src/lib/components/calendar/index.ts +0 -1
- package/src/lib/components/checkbox/checkbox.component.html +0 -23
- package/src/lib/components/checkbox/checkbox.component.scss +0 -0
- package/src/lib/components/checkbox/checkbox.component.ts +0 -62
- package/src/lib/components/checkbox/index.ts +0 -1
- package/src/lib/components/confirm-dialog/confirm-dialog.component.html +0 -50
- package/src/lib/components/confirm-dialog/confirm-dialog.component.scss +0 -4
- package/src/lib/components/confirm-dialog/confirm-dialog.component.ts +0 -80
- package/src/lib/components/dropdown/dropdown-item.component.html +0 -8
- package/src/lib/components/dropdown/dropdown-item.component.ts +0 -18
- package/src/lib/components/dropdown/dropdown.component.html +0 -90
- package/src/lib/components/dropdown/dropdown.component.scss +0 -108
- package/src/lib/components/dropdown/dropdown.component.spec.ts +0 -21
- package/src/lib/components/dropdown/dropdown.component.ts +0 -297
- package/src/lib/components/errors/error.component.html +0 -11
- package/src/lib/components/errors/error.component.scss +0 -0
- package/src/lib/components/errors/error.component.spec.ts +0 -19
- package/src/lib/components/errors/error.component.ts +0 -30
- package/src/lib/components/errors/index.ts +0 -1
- package/src/lib/components/form-field/form-field.component.html +0 -14
- package/src/lib/components/form-field/form-field.component.scss +0 -0
- package/src/lib/components/form-field/form-field.component.spec.ts +0 -21
- package/src/lib/components/form-field/form-field.component.ts +0 -78
- package/src/lib/components/header/header.component.html +0 -122
- package/src/lib/components/header/header.component.scss +0 -0
- package/src/lib/components/header/header.component.ts +0 -91
- package/src/lib/components/header/index.ts +0 -1
- package/src/lib/components/input-group/index.ts +0 -1
- package/src/lib/components/input-group/input-group.component.html +0 -41
- package/src/lib/components/input-group/input-group.component.scss +0 -0
- package/src/lib/components/input-group/input-group.component.ts +0 -77
- package/src/lib/components/loader/index.ts +0 -1
- package/src/lib/components/loader/loader.component.html +0 -7
- package/src/lib/components/loader/loader.component.scss +0 -0
- package/src/lib/components/loader/loader.component.spec.ts +0 -21
- package/src/lib/components/loader/loader.component.ts +0 -33
- package/src/lib/components/multiselect/index.ts +0 -1
- package/src/lib/components/multiselect/multiselect.component.html +0 -21
- package/src/lib/components/multiselect/multiselect.component.scss +0 -0
- package/src/lib/components/multiselect/multiselect.component.spec.ts +0 -21
- package/src/lib/components/multiselect/multiselect.component.ts +0 -119
- package/src/lib/components/number-input/index.ts +0 -1
- package/src/lib/components/number-input/number-input.component.html +0 -48
- package/src/lib/components/number-input/number-input.component.scss +0 -0
- package/src/lib/components/number-input/number-input.component.ts +0 -82
- package/src/lib/components/page-header/index.ts +0 -1
- package/src/lib/components/page-header/page-header.component.html +0 -3
- package/src/lib/components/page-header/page-header.component.scss +0 -11
- package/src/lib/components/page-header/page-header.component.spec.ts +0 -21
- package/src/lib/components/page-header/page-header.component.ts +0 -29
- package/src/lib/components/password/password.component.html +0 -31
- package/src/lib/components/password/password.component.scss +0 -0
- package/src/lib/components/password/password.component.spec.ts +0 -21
- package/src/lib/components/password/password.component.ts +0 -85
- package/src/lib/components/radiobutton/index.ts +0 -1
- package/src/lib/components/radiobutton/radiobutton.component.html +0 -23
- package/src/lib/components/radiobutton/radiobutton.component.scss +0 -0
- package/src/lib/components/radiobutton/radiobutton.component.ts +0 -58
- package/src/lib/components/search/index.ts +0 -1
- package/src/lib/components/search/search.component.html +0 -23
- package/src/lib/components/search/search.component.scss +0 -0
- package/src/lib/components/search/search.component.ts +0 -47
- package/src/lib/components/section/index.ts +0 -1
- package/src/lib/components/section/section.component.html +0 -26
- package/src/lib/components/section/section.component.scss +0 -0
- package/src/lib/components/section/section.component.ts +0 -57
- package/src/lib/components/shared-components/action-button-group/action-button-group.component.html +0 -27
- package/src/lib/components/shared-components/action-button-group/action-button-group.component.scss +0 -0
- package/src/lib/components/shared-components/action-button-group/action-button-group.component.spec.ts +0 -21
- package/src/lib/components/shared-components/action-button-group/action-button-group.component.ts +0 -114
- package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.html +0 -11
- package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.scss +0 -0
- package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.spec.ts +0 -21
- package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.ts +0 -71
- package/src/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.ts +0 -142
- package/src/lib/components/shared-components/dynamic-component/dynamic-component.component.ts +0 -56
- package/src/lib/components/shared-components/feature-list/directives/feature-list-column.directive.ts +0 -32
- package/src/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.ts +0 -8
- package/src/lib/components/shared-components/feature-list/feature-list-filter.pipe.ts +0 -21
- package/src/lib/components/shared-components/feature-list/feature-list-page.component.ts +0 -31
- package/src/lib/components/shared-components/feature-list/feature-list-page.model.ts +0 -42
- package/src/lib/components/shared-components/feature-list/feature-list.component.html +0 -59
- package/src/lib/components/shared-components/feature-list/feature-list.component.scss +0 -10
- package/src/lib/components/shared-components/feature-list/feature-list.component.ts +0 -342
- package/src/lib/components/shared-components/filter/directives/filter-field.directive.ts +0 -35
- package/src/lib/components/shared-components/filter/filter.component.html +0 -68
- package/src/lib/components/shared-components/filter/filter.component.scss +0 -0
- package/src/lib/components/shared-components/filter/filter.component.spec.ts +0 -21
- package/src/lib/components/shared-components/filter/filter.component.stories.ts +0 -23
- package/src/lib/components/shared-components/filter/filter.component.ts +0 -284
- package/src/lib/components/shared-components/filter/filter.model.ts +0 -18
- package/src/lib/components/shared-components/generic-field/generic-field.component.html +0 -97
- package/src/lib/components/shared-components/generic-field/generic-field.component.spec.ts +0 -21
- package/src/lib/components/shared-components/generic-field/generic-field.component.ts +0 -94
- package/src/lib/components/shared-components/generic-form/generic-form.component.html +0 -46
- package/src/lib/components/shared-components/generic-form/generic-form.component.spec.ts +0 -21
- package/src/lib/components/shared-components/generic-form/generic-form.component.ts +0 -57
- package/src/lib/components/shared-components/generic-form/generic-form.model.spec.ts +0 -82
- package/src/lib/components/shared-components/generic-form/generic-form.model.ts +0 -68
- package/src/lib/components/side-menu/side-menu.component.html +0 -25
- package/src/lib/components/side-menu/side-menu.component.scss +0 -23
- package/src/lib/components/side-menu/side-menu.component.ts +0 -42
- package/src/lib/components/side-menu/side-menu.module.ts +0 -64
- package/src/lib/components/sidemenu/index.ts +0 -2
- package/src/lib/components/snackbar/services/snackbar.service.ts +0 -73
- package/src/lib/components/snackbar/snackbar.component.html +0 -14
- package/src/lib/components/snackbar/snackbar.component.scss +0 -0
- package/src/lib/components/snackbar/snackbar.component.spec.ts +0 -21
- package/src/lib/components/snackbar/snackbar.component.ts +0 -45
- package/src/lib/components/stepper/index.ts +0 -1
- package/src/lib/components/stepper/stepper.component.html +0 -35
- package/src/lib/components/stepper/stepper.component.scss +0 -9
- package/src/lib/components/stepper/stepper.component.ts +0 -61
- package/src/lib/components/switch/index.ts +0 -1
- package/src/lib/components/switch/switch.component.html +0 -16
- package/src/lib/components/switch/switch.component.scss +0 -0
- package/src/lib/components/switch/switch.component.ts +0 -37
- package/src/lib/components/tab-view/tab-view-item.component.ts +0 -23
- package/src/lib/components/tab-view/tab-view.component.html +0 -51
- package/src/lib/components/tab-view/tab-view.component.scss +0 -43
- package/src/lib/components/tab-view/tab-view.component.ts +0 -61
- package/src/lib/components/tab-view/tab-view.module.ts +0 -25
- package/src/lib/components/table/table-pagination-info.component.html +0 -9
- package/src/lib/components/table/table-pagination-info.component.ts +0 -22
- package/src/lib/components/table/table.component.html +0 -198
- package/src/lib/components/table/table.component.scss +0 -193
- package/src/lib/components/table/table.component.ts +0 -387
- package/src/lib/components/table/table.model.ts +0 -17
- package/src/lib/components/table/table.models.ts +0 -12
- package/src/lib/components/textarea/index.ts +0 -1
- package/src/lib/components/textarea/textarea.component.html +0 -50
- package/src/lib/components/textarea/textarea.component.scss +0 -0
- package/src/lib/components/textarea/textarea.component.ts +0 -78
- package/src/lib/components/textfield/index.ts +0 -1
- package/src/lib/components/textfield/textfield.component.html +0 -56
- package/src/lib/components/textfield/textfield.component.scss +0 -0
- package/src/lib/components/textfield/textfield.component.ts +0 -114
- package/src/lib/components/tooltip/index.ts +0 -1
- package/src/lib/components/tooltip/tooltip.component.html +0 -10
- package/src/lib/components/tooltip/tooltip.component.scss +0 -0
- package/src/lib/components/tooltip/tooltip.component.ts +0 -57
- package/src/lib/components/tristatecheckbox/tristatecheckbox.component.html +0 -23
- package/src/lib/components/tristatecheckbox/tristatecheckbox.component.scss +0 -0
- package/src/lib/components/tristatecheckbox/tristatecheckbox.component.ts +0 -103
- package/src/lib/icons.ts +0 -36
- package/src/lib/init.service.ts +0 -11
- package/src/lib/interceptors/http-error-message.interceptor.ts +0 -45
- package/src/lib/pages/bad-request-page/bad-request-page.component.html +0 -5
- package/src/lib/pages/bad-request-page/bad-request-page.component.scss +0 -0
- package/src/lib/pages/bad-request-page/bad-request-page.component.ts +0 -15
- package/src/lib/pages/error-page/error-page.component.html +0 -5
- package/src/lib/pages/error-page/error-page.component.scss +0 -0
- package/src/lib/pages/error-page/error-page.component.ts +0 -32
- package/src/lib/pages/error-page/error-page.constants.ts +0 -19
- package/src/lib/pages/internal-server-error-page/internal-server-error-page.component.html +0 -5
- package/src/lib/pages/internal-server-error-page/internal-server-error-page.component.scss +0 -0
- package/src/lib/pages/internal-server-error-page/internal-server-error-page.component.ts +0 -16
- package/src/lib/pages/not-authenticated/not-authenticated.component.html +0 -5
- package/src/lib/pages/not-authenticated/not-authenticated.component.ts +0 -14
- package/src/lib/pages/not-authorized/not-authorized.component.html +0 -5
- package/src/lib/pages/not-authorized/not-authorized.component.ts +0 -18
- package/src/lib/pages/not-found/not-found.component.html +0 -5
- package/src/lib/pages/not-found/not-found.component.ts +0 -18
- package/src/lib/pages/not-found-page/not-found-page.component.html +0 -6
- package/src/lib/pages/not-found-page/not-found-page.component.scss +0 -0
- package/src/lib/pages/not-found-page/not-found-page.component.ts +0 -16
- package/src/lib/pipes/color/color.pipe.ts +0 -24
- package/src/lib/pipes/multiselect/multiselect-options.pipe.ts +0 -61
- package/src/lib/pipes/size/size.pipe.ts +0 -20
- package/src/test-setup.ts +0 -8
- package/tsconfig.json +0 -30
- package/tsconfig.lib.json +0 -17
- package/tsconfig.lib.prod.json +0 -9
- package/tsconfig.spec.json +0 -16
- /package/{src/sass → sass}/header.css +0 -0
- /package/{src/sass → sass}/header.scss +0 -0
- /package/{src/sass → sass}/main.scss +0 -0
- /package/{src/sass → sass}/scrollbar.scss +0 -0
- /package/{src/sass → sass}/sidemenu.css +0 -0
- /package/{src/sass → sass}/vendors/_bootstrap.scss +0 -0
package/README.md
CHANGED
|
@@ -1,7 +1,56 @@
|
|
|
1
1
|
# ui-govcz
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The `ui-govcz` library provides UI components, utilities, and styles tailored for Czech government applications within the Verisoft Frontend workspace.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Features
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- Angular UI components following Czech government design guidelines
|
|
8
|
+
- Shared utilities and helpers for government-specific UI
|
|
9
|
+
- Base styles and theming for gov.cz branding
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
This package is intended for internal use within the monorepo. To use it in another library or app, add it as a dependency in your `project.json`:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"ui-govcz": "*"
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
Import the required modules or components from `ui-govcz`:
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { GovczButtonComponent } from '@verisoft/ui-govcz';
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Development
|
|
30
|
+
|
|
31
|
+
### Building
|
|
32
|
+
|
|
33
|
+
Run the following command to build the library:
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
nx build ui-govcz
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Running Unit Tests
|
|
40
|
+
|
|
41
|
+
To execute the unit tests for this library:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
nx test ui-govcz
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Contributing
|
|
48
|
+
|
|
49
|
+
1. Fork the repository and create your branch from `master`.
|
|
50
|
+
2. Make your changes and add tests if needed.
|
|
51
|
+
3. Run `nx test ui-govcz` to ensure all tests pass.
|
|
52
|
+
4. Submit a pull request.
|
|
53
|
+
|
|
54
|
+
## License
|
|
55
|
+
|
|
56
|
+
This project is licensed under the MIT License.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './lib';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxPQUFPLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYic7XHJcbiJdfQ==
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import { RouterModule } from '@angular/router';
|
|
4
|
+
import { GovDesignSystemModule } from '@gov-design-system-ce/angular';
|
|
5
|
+
import { BREADCRUMB_COMPONENT_TOKEN, BreadcrumbCoreComponent } from '@verisoft/ui-core';
|
|
6
|
+
import { Icons } from '../../icons';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@angular/common";
|
|
9
|
+
import * as i2 from "@gov-design-system-ce/angular";
|
|
10
|
+
import * as i3 from "@angular/router";
|
|
11
|
+
export class BreadcrumbComponent extends BreadcrumbCoreComponent {
|
|
12
|
+
icons = Icons;
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BreadcrumbComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: BreadcrumbComponent, isStandalone: true, selector: "v-breadcrumb", providers: [
|
|
15
|
+
{
|
|
16
|
+
provide: BREADCRUMB_COMPONENT_TOKEN,
|
|
17
|
+
useExisting: BreadcrumbComponent
|
|
18
|
+
},
|
|
19
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"gov-breadcrums mt-3 mb-3\">\r\n <gov-breadcrumbs accessible-label=\"gov-breadcrums\">\r\n <ul>\r\n <li *ngIf=\"useHomeRoute\">\r\n <gov-icon [name]=\"icons.house\" />\r\n <a [routerLink]=\"'/'\">Home</a>\r\n </li>\r\n @if (items) { @for (item of items; track item; let index = $index) {\r\n <li>\r\n @if (index > 0 || useHomeRoute) {\r\n <gov-icon [name]=\"icons.chevronRight\" />\r\n }\r\n @if (item.icon) {\r\n <gov-icon [name]=\"item.icon\" />\r\n }\r\n <a [routerLink]=\"item.routerLink\">\r\n {{ item.label }}\r\n </a>\r\n </li>\r\n } }\r\n </ul>\r\n </gov-breadcrumbs>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: GovDesignSystemModule }, { kind: "component", type: i2.GovBreadcrumbs, selector: "gov-breadcrumbs", inputs: ["accessibleLabel", "accessibleLabelledBy", "accessibleToggleLabel", "collapsible", "isExpanded"] }, { kind: "component", type: i2.GovIcon, selector: "gov-icon", inputs: ["color", "name", "size", "type"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
|
20
|
+
}
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
22
|
+
type: Component,
|
|
23
|
+
args: [{ selector: 'v-breadcrumb', standalone: true, imports: [
|
|
24
|
+
CommonModule,
|
|
25
|
+
GovDesignSystemModule,
|
|
26
|
+
RouterModule
|
|
27
|
+
], providers: [
|
|
28
|
+
{
|
|
29
|
+
provide: BREADCRUMB_COMPONENT_TOKEN,
|
|
30
|
+
useExisting: BreadcrumbComponent
|
|
31
|
+
},
|
|
32
|
+
], template: "<div class=\"gov-breadcrums mt-3 mb-3\">\r\n <gov-breadcrumbs accessible-label=\"gov-breadcrums\">\r\n <ul>\r\n <li *ngIf=\"useHomeRoute\">\r\n <gov-icon [name]=\"icons.house\" />\r\n <a [routerLink]=\"'/'\">Home</a>\r\n </li>\r\n @if (items) { @for (item of items; track item; let index = $index) {\r\n <li>\r\n @if (index > 0 || useHomeRoute) {\r\n <gov-icon [name]=\"icons.chevronRight\" />\r\n }\r\n @if (item.icon) {\r\n <gov-icon [name]=\"item.icon\" />\r\n }\r\n <a [routerLink]=\"item.routerLink\">\r\n {{ item.label }}\r\n </a>\r\n </li>\r\n } }\r\n </ul>\r\n </gov-breadcrumbs>\r\n</div>\r\n" }]
|
|
33
|
+
}] });
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlY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gICAgICA8L2E+XHJcbiAgICAgIDwvbGk+XHJcbiAgICAgIH0gfVxyXG4gICAgPC91bD5cclxuICA8L2dvdi1icmVhZGNydW1icz5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './breadcrumb.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvYnJlYWRjcnVtYi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHdCQUF3QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9icmVhZGNydW1iLmNvbXBvbmVudCc7XHJcbiJdfQ==
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from "@angular/core";
|
|
2
|
+
import { RouterModule } from "@angular/router";
|
|
3
|
+
import { GovDesignSystemModule } from "@gov-design-system-ce/angular";
|
|
4
|
+
import { TranslateModule } from "@ngx-translate/core";
|
|
5
|
+
import { BUTTON_COMPONENT_TOKEN, IconPosition, FieldSize, ControlSeverity, GovButtonType, } from "@verisoft/ui-core";
|
|
6
|
+
import { GovColorPipe, GovSizePipe } from "../../pipes";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@gov-design-system-ce/angular";
|
|
9
|
+
import * as i2 from "@angular/router";
|
|
10
|
+
import * as i3 from "@ngx-translate/core";
|
|
11
|
+
export class ButtonComponent {
|
|
12
|
+
label;
|
|
13
|
+
icon;
|
|
14
|
+
badge;
|
|
15
|
+
iconPos = IconPosition.left;
|
|
16
|
+
disabled = false;
|
|
17
|
+
rounded;
|
|
18
|
+
outlined;
|
|
19
|
+
raised;
|
|
20
|
+
routerLink;
|
|
21
|
+
size = FieldSize.medium;
|
|
22
|
+
queryParams;
|
|
23
|
+
severity = ControlSeverity.primary;
|
|
24
|
+
type = GovButtonType.solid;
|
|
25
|
+
expanded = false;
|
|
26
|
+
name;
|
|
27
|
+
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
28
|
+
click = new EventEmitter();
|
|
29
|
+
handleClick(event) {
|
|
30
|
+
if (this.disabled) {
|
|
31
|
+
event.stopPropagation();
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
this.click.emit(event);
|
|
35
|
+
}
|
|
36
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ButtonComponent, isStandalone: true, selector: "v-button", inputs: { label: "label", icon: "icon", badge: "badge", iconPos: "iconPos", disabled: "disabled", rounded: "rounded", outlined: "outlined", raised: "raised", routerLink: "routerLink", size: "size", queryParams: "queryParams", severity: "severity", type: "type", expanded: "expanded", name: "name" }, outputs: { click: "click" }, providers: [
|
|
38
|
+
{
|
|
39
|
+
provide: BUTTON_COMPONENT_TOKEN,
|
|
40
|
+
useExisting: ButtonComponent,
|
|
41
|
+
}
|
|
42
|
+
], ngImport: i0, template: "<div class=\"g-button\">\r\n <a\r\n [routerLink]=\"routerLink ? routerLink : undefined\"\r\n [queryParams]=\"queryParams ? queryParams : undefined\"\r\n >\r\n <gov-button\r\n [type]=\"outlined === true ? 'outlined' : type\"\r\n [color]=\"severity | govColor\"\r\n [disabled]=\"disabled\"\r\n [size]=\"size | govSize\"\r\n [name]=\"name\"\r\n [expanded]=\"expanded\"\r\n (gov-click)=\"handleClick($event)\"\r\n (click)=\"handleClick($event)\"\r\n >\r\n @if (icon) {\r\n <gov-icon \r\n [name]=\"icon\"\r\n [slot]=\"iconPos === 'left' ? 'icon-start' : 'icon-end'\"\r\n />\r\n } @if (label) {\r\n {{ label | translate }}\r\n }\r\n </gov-button>\r\n </a>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: GovDesignSystemModule }, { kind: "component", type: i1.GovButton, selector: "gov-button", inputs: ["color", "disabled", "download", "expanded", "focusable", "href", "hreflang", "identifier", "loading", "name", "nativeType", "referrerpolicy", "rel", "size", "target", "type"] }, { kind: "component", type: i1.GovIcon, selector: "gov-icon", inputs: ["color", "name", "size", "type"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: GovSizePipe, name: "govSize" }, { kind: "pipe", type: GovColorPipe, name: "govColor" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
43
|
+
}
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
45
|
+
type: Component,
|
|
46
|
+
args: [{ selector: "v-button", standalone: true, imports: [
|
|
47
|
+
GovDesignSystemModule, RouterModule, GovSizePipe, GovColorPipe, TranslateModule
|
|
48
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
49
|
+
{
|
|
50
|
+
provide: BUTTON_COMPONENT_TOKEN,
|
|
51
|
+
useExisting: ButtonComponent,
|
|
52
|
+
}
|
|
53
|
+
], template: "<div class=\"g-button\">\r\n <a\r\n [routerLink]=\"routerLink ? routerLink : undefined\"\r\n [queryParams]=\"queryParams ? queryParams : undefined\"\r\n >\r\n <gov-button\r\n [type]=\"outlined === true ? 'outlined' : type\"\r\n [color]=\"severity | govColor\"\r\n [disabled]=\"disabled\"\r\n [size]=\"size | govSize\"\r\n [name]=\"name\"\r\n [expanded]=\"expanded\"\r\n (gov-click)=\"handleClick($event)\"\r\n (click)=\"handleClick($event)\"\r\n >\r\n @if (icon) {\r\n <gov-icon \r\n [name]=\"icon\"\r\n [slot]=\"iconPos === 'left' ? 'icon-start' : 'icon-end'\"\r\n />\r\n } @if (label) {\r\n {{ label | translate }}\r\n }\r\n </gov-button>\r\n </a>\r\n</div>\r\n" }]
|
|
54
|
+
}], propDecorators: { label: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}], icon: [{
|
|
57
|
+
type: Input
|
|
58
|
+
}], badge: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], iconPos: [{
|
|
61
|
+
type: Input
|
|
62
|
+
}], disabled: [{
|
|
63
|
+
type: Input
|
|
64
|
+
}], rounded: [{
|
|
65
|
+
type: Input
|
|
66
|
+
}], outlined: [{
|
|
67
|
+
type: Input
|
|
68
|
+
}], raised: [{
|
|
69
|
+
type: Input
|
|
70
|
+
}], routerLink: [{
|
|
71
|
+
type: Input
|
|
72
|
+
}], size: [{
|
|
73
|
+
type: Input
|
|
74
|
+
}], queryParams: [{
|
|
75
|
+
type: Input
|
|
76
|
+
}], severity: [{
|
|
77
|
+
type: Input
|
|
78
|
+
}], type: [{
|
|
79
|
+
type: Input
|
|
80
|
+
}], expanded: [{
|
|
81
|
+
type: Input
|
|
82
|
+
}], name: [{
|
|
83
|
+
type: Input
|
|
84
|
+
}], click: [{
|
|
85
|
+
type: Output
|
|
86
|
+
}] } });
|
|
87
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9idXR0b24vYnV0dG9uLmN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NlRXZlbnQpIHtcclxuICAgICAgICBpZiAodGhpcy5kaXNhYmxlZCkge1xyXG4gICAgICAgICAgICBldmVudC5zdG9wUHJvcGFnYXRpb24oKTtcclxuICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgdGhpcy5jbGljay5lbWl0KGV2ZW50KTtcclxuICAgIH1cclxufVxyXG4iLCI8ZGl2IGNsYXNzPVwiZy1idXR0b25cIj5cclxuICAgIDxhXHJcbiAgICAgICAgW3JvdXRlckxpbmtdPVwicm91dGVyTGluayA/IHJvdXRlckxpbmsgOiB1bmRlZmluZWRcIlxyXG4gICAgICAgIFtxdWVyeVBhcmFtc109XCJxdWVyeVBhcmFtcyA/IHF1ZXJ5UGFyYW1zIDogdW5kZWZpbmVkXCJcclxuICAgID5cclxuICAgICAgICA8Z292LWJ1dHRvblxyXG4gICAgICAgICAgICBbdHlwZV09XCJvdXRsaW5lZCA9PT0gdHJ1ZSA/ICdvdXRsaW5lZCcgOiB0eXBlXCJcclxuICAgICAgICAgICAgW2NvbG9yXT1cInNldmVyaXR5IHwgZ292Q29sb3JcIlxyXG4gICAgICAgICAgICBbZGlzYWJsZWRdPVwiZGlzYWJsZWRcIlxyXG4gICAgICAgICAgICBbc2l6ZV09XCJzaXplIHwgZ292U2l6ZVwiXHJcbiAgICAgICAgICAgIFtuYW1lXT1cIm5hbWVcIlxyXG4gICAgICAgICAgICBbZXhwYW5kZWRdPVwiZXhwYW5kZWRcIlxyXG4gICAgICAgICAgICAoZ292LWNsaWNrKT1cImhhbmRsZUNsaWNrKCRldmVudClcIlxyXG4gICAgICAgICAgICAoY2xpY2spPVwiaGFuZGxlQ2xpY2soJGV2ZW50KVwiXHJcbiAgICAgICAgPlxyXG4gICAgICAgICAgICBAaWYgKGljb24pIHtcclxuICAgICAgICAgICAgICAgIDxnb3YtaWNvbiBcclxuICAgICAgICAgICAgICAgICAgICBbbmFtZV09XCJpY29uXCJcclxuICAgICAgICAgICAgICAgICAgICBbc2xvdF09XCJpY29uUG9zID09PSAnbGVmdCcgPyAnaWNvbi1zdGFydCcgOiAnaWNvbi1lbmQnXCJcclxuICAgICAgICAgICAgICAgIC8+XHJcbiAgICAgICAgICAgIH0gQGlmIChsYWJlbCkge1xyXG4gICAgICAgICAgICAgICAge3sgbGFiZWwgfCB0cmFuc2xhdGUgfX1cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIDwvZ292LWJ1dHRvbj5cclxuICAgIDwvYT5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './button.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvYnV0dG9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0JBQW9CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2J1dHRvbi5jb21wb25lbnQnOyJdfQ==
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Input, Optional, Self } from '@angular/core';
|
|
3
|
+
import { NgControl, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { GovDesignSystemModule } from '@gov-design-system-ce/angular';
|
|
5
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
6
|
+
import { BaseFormInputComponent, CALENDAR_COMPONENT_TOKEN, FieldType, FieldSize, SlotPosition, } from '@verisoft/ui-core';
|
|
7
|
+
import { Icons } from '../../icons';
|
|
8
|
+
import { GovSizePipe } from '../../pipes';
|
|
9
|
+
import { ErrorComponent } from '../errors';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "@angular/forms";
|
|
12
|
+
import * as i2 from "@gov-design-system-ce/angular";
|
|
13
|
+
import * as i3 from "@ngx-translate/core";
|
|
14
|
+
export class CalendarComponent extends BaseFormInputComponent {
|
|
15
|
+
icon;
|
|
16
|
+
floatLabel;
|
|
17
|
+
maxDate;
|
|
18
|
+
minDate;
|
|
19
|
+
header;
|
|
20
|
+
footer;
|
|
21
|
+
selectionMode;
|
|
22
|
+
size = FieldSize.medium;
|
|
23
|
+
errorSlot = SlotPosition.bottom;
|
|
24
|
+
labelSlot = SlotPosition.top;
|
|
25
|
+
messageSlot = SlotPosition.bottom;
|
|
26
|
+
message;
|
|
27
|
+
name;
|
|
28
|
+
type = FieldType.date;
|
|
29
|
+
icons = Icons;
|
|
30
|
+
constructor(ngControl) {
|
|
31
|
+
super(ngControl);
|
|
32
|
+
}
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalendarComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
34
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: CalendarComponent, isStandalone: true, selector: "v-calendar", inputs: { icon: "icon", floatLabel: "floatLabel", maxDate: "maxDate", minDate: "minDate", header: "header", footer: "footer", selectionMode: "selectionMode", size: "size", errorSlot: "errorSlot", labelSlot: "labelSlot", messageSlot: "messageSlot", message: "message", name: "name" }, providers: [
|
|
35
|
+
{
|
|
36
|
+
provide: CALENDAR_COMPONENT_TOKEN,
|
|
37
|
+
useExisting: CalendarComponent
|
|
38
|
+
}
|
|
39
|
+
], usesInheritance: true, ngImport: i0, template: "<gov-form-control class=\"mb-3\">\r\n @if (label) {\r\n <gov-form-label [slot]=\"labelSlot\" [size]=\"size | govSize\">\r\n {{ label | translate}}\r\n </gov-form-label>\r\n }\r\n <gov-form-group>\r\n <gov-form-input\r\n [formControl]=\"formControl\"\r\n [attr.input-type]=\"type\"\r\n [invalid]=\"ngControl?.errors ? true : false\"\r\n [size]=\"size | govSize\"\r\n [required]=\"required\"\r\n [readonly]=\"readonly\"\r\n [attr.disabled]=\"readonly ? 'true' : 'false'\"\r\n [name]=\"name\"\r\n />\r\n </gov-form-group>\r\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\r\n @if (message) {\r\n <gov-form-message \r\n [slot]=\"messageSlot\" \r\n color=\"neutral\"\r\n >\r\n {{ message }}\r\n </gov-form-message>\r\n }\r\n</gov-form-control>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: GovDesignSystemModule }, { kind: "component", type: i2.GovFormControl, selector: "gov-form-control", inputs: ["disabled", "fieldset", "identifier", "invalid", "size", "success"] }, { kind: "component", type: i2.GovFormGroup, selector: "gov-form-group", inputs: ["gap", "orientation"] }, { kind: "component", type: i2.GovFormInput, selector: "gov-form-input", inputs: ["accessibleHidePasswordLabel", "accessibleShowPasswordLabel", "autocomplete", "autocorrect", "cols", "disabled", "identifier", "inputLang", "inputType", "invalid", "max", "maxlength", "min", "minlength", "multiline", "name", "placeholder", "readonly", "required", "role", "rows", "size", "spellcheck", "success", "type", "value"] }, { kind: "component", type: i2.GovFormLabel, selector: "gov-form-label", inputs: ["identifier", "legend", "required", "size"] }, { kind: "component", type: i2.GovFormMessage, selector: "gov-form-message", inputs: ["color", "size"] }, { kind: "directive", type: i2.TextValueAccessor, selector: "gov-form-input:not([input-type=number]),gov-form-autocomplete" }, { kind: "pipe", type: GovSizePipe, name: "govSize" }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
40
|
+
}
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalendarComponent, decorators: [{
|
|
42
|
+
type: Component,
|
|
43
|
+
args: [{ selector: 'v-calendar', standalone: true, imports: [
|
|
44
|
+
CommonModule,
|
|
45
|
+
ReactiveFormsModule,
|
|
46
|
+
GovDesignSystemModule,
|
|
47
|
+
GovSizePipe,
|
|
48
|
+
ErrorComponent,
|
|
49
|
+
TranslateModule
|
|
50
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
51
|
+
{
|
|
52
|
+
provide: CALENDAR_COMPONENT_TOKEN,
|
|
53
|
+
useExisting: CalendarComponent
|
|
54
|
+
}
|
|
55
|
+
], template: "<gov-form-control class=\"mb-3\">\r\n @if (label) {\r\n <gov-form-label [slot]=\"labelSlot\" [size]=\"size | govSize\">\r\n {{ label | translate}}\r\n </gov-form-label>\r\n }\r\n <gov-form-group>\r\n <gov-form-input\r\n [formControl]=\"formControl\"\r\n [attr.input-type]=\"type\"\r\n [invalid]=\"ngControl?.errors ? true : false\"\r\n [size]=\"size | govSize\"\r\n [required]=\"required\"\r\n [readonly]=\"readonly\"\r\n [attr.disabled]=\"readonly ? 'true' : 'false'\"\r\n [name]=\"name\"\r\n />\r\n </gov-form-group>\r\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\r\n @if (message) {\r\n <gov-form-message \r\n [slot]=\"messageSlot\" \r\n color=\"neutral\"\r\n >\r\n {{ message }}\r\n </gov-form-message>\r\n }\r\n</gov-form-control>" }]
|
|
56
|
+
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
57
|
+
type: Optional
|
|
58
|
+
}, {
|
|
59
|
+
type: Self
|
|
60
|
+
}] }], propDecorators: { icon: [{
|
|
61
|
+
type: Input
|
|
62
|
+
}], floatLabel: [{
|
|
63
|
+
type: Input
|
|
64
|
+
}], maxDate: [{
|
|
65
|
+
type: Input
|
|
66
|
+
}], minDate: [{
|
|
67
|
+
type: Input
|
|
68
|
+
}], header: [{
|
|
69
|
+
type: Input
|
|
70
|
+
}], footer: [{
|
|
71
|
+
type: Input
|
|
72
|
+
}], selectionMode: [{
|
|
73
|
+
type: Input
|
|
74
|
+
}], size: [{
|
|
75
|
+
type: Input
|
|
76
|
+
}], errorSlot: [{
|
|
77
|
+
type: Input
|
|
78
|
+
}], labelSlot: [{
|
|
79
|
+
type: Input
|
|
80
|
+
}], messageSlot: [{
|
|
81
|
+
type: Input
|
|
82
|
+
}], message: [{
|
|
83
|
+
type: Input
|
|
84
|
+
}], name: [{
|
|
85
|
+
type: Input
|
|
86
|
+
}] } });
|
|
87
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktZ292Y3ovc3JjL2xpYi9jb21wb25lbnRzL2NhbGVuZGFyL2NhbGVuZGFyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9jYWxlbmRhci9jYWxlbmRhci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMs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LWlucHV0XHJcbiAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJmb3JtQ29udHJvbFwiXHJcbiAgICAgICAgICAgIFthdHRyLmlucHV0LXR5cGVdPVwidHlwZVwiXHJcbiAgICAgICAgICAgIFtpbnZhbGlkXT1cIm5nQ29udHJvbD8uZXJyb3JzID8gdHJ1ZSA6IGZhbHNlXCJcclxuICAgICAgICAgICAgW3NpemVdPVwic2l6ZSB8IGdvdlNpemVcIlxyXG4gICAgICAgICAgICBbcmVxdWlyZWRdPVwicmVxdWlyZWRcIlxyXG4gICAgICAgICAgICBbcmVhZG9ubHldPVwicmVhZG9ubHlcIlxyXG4gICAgICAgICAgICBbYXR0ci5kaXNhYmxlZF09XCJyZWFkb25seSA/ICd0cnVlJyA6ICdmYWxzZSdcIlxyXG4gICAgICAgICAgICBbbmFtZV09XCJuYW1lXCJcclxuICAgICAgICAvPlxyXG4gICAgPC9nb3YtZm9ybS1ncm91cD5cclxuICAgIDx2LXZhbGlkYXRpb24tbWVzc2FnZSBbbmdDb250cm9sXT1cIm5nQ29udHJvbFwiPjwvdi12YWxpZGF0aW9uLW1lc3NhZ2U+XHJcbiAgICBAaWYgKG1lc3NhZ2UpIHtcclxuICAgIDxnb3YtZm9ybS1tZXNzYWdlIFxyXG4gICAgICAgIFtzbG90XT1cIm1lc3NhZ2VTbG90XCIgXHJcbiAgICAgICAgY29sb3I9XCJuZXV0cmFsXCJcclxuICAgICAgICA+XHJcbiAgICAgICAge3sgbWVzc2FnZSB9fVxyXG4gICAgPC9nb3YtZm9ybS1tZXNzYWdlPlxyXG4gICAgfVxyXG48L2dvdi1mb3JtLWNvbnRyb2w+Il19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './calendar.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvY2FsZW5kYXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY2FsZW5kYXIuY29tcG9uZW50JzsiXX0=
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { CommonModule } from "@angular/common";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Optional, Self, Input, } from "@angular/core";
|
|
3
|
+
import { NgControl, ReactiveFormsModule } from "@angular/forms";
|
|
4
|
+
import { RouterModule } from "@angular/router";
|
|
5
|
+
import { GovDesignSystemModule } from "@gov-design-system-ce/angular";
|
|
6
|
+
import { TranslateModule } from "@ngx-translate/core";
|
|
7
|
+
import { BaseFormInputComponent, CHECKBOX_COMPONENT_TOKEN, FieldSize, } from "@verisoft/ui-core";
|
|
8
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
9
|
+
import { Icons } from "../../icons";
|
|
10
|
+
import { GovSizePipe } from "../../pipes";
|
|
11
|
+
import { ErrorComponent } from "../errors";
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@angular/forms";
|
|
14
|
+
import * as i2 from "@gov-design-system-ce/angular";
|
|
15
|
+
import * as i3 from "@ngx-translate/core";
|
|
16
|
+
export class CheckboxComponent extends BaseFormInputComponent {
|
|
17
|
+
size = FieldSize.medium;
|
|
18
|
+
value;
|
|
19
|
+
name;
|
|
20
|
+
indeterminate = false;
|
|
21
|
+
noLabel = false;
|
|
22
|
+
icons = Icons;
|
|
23
|
+
constructor(ngControl) {
|
|
24
|
+
super(ngControl);
|
|
25
|
+
}
|
|
26
|
+
id = uuidv4();
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CheckboxComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CheckboxComponent, isStandalone: true, selector: "v-checkbox", inputs: { size: "size", value: "value", name: "name", indeterminate: "indeterminate", noLabel: "noLabel" }, providers: [{
|
|
29
|
+
provide: CHECKBOX_COMPONENT_TOKEN,
|
|
30
|
+
useExisting: CheckboxComponent,
|
|
31
|
+
}], usesInheritance: true, ngImport: i0, template: "<gov-form-control class=\"mt-3\">\r\n <gov-form-checkbox \r\n [formControl]=\"formControl\"\r\n [size]=\"size | govSize\"\r\n [value]=\"value\"\r\n [required]=\"required\"\r\n [attr.disabled]=\"disabled ? 'true' : 'false'\"\r\n [identifier]=\"id\"\r\n [indeterminate]=\"indeterminate\"\r\n [name]=\"name\"\r\n [invalid]=\"ngControl?.errors\"\r\n [noLabel]=\"noLabel\"\r\n [disabled]=\"disabled\"\r\n > \r\n <gov-form-label\r\n [size]=\"size\"\r\n slot=\"label\"\r\n >\r\n {{ label ?? '' | translate }}\r\n </gov-form-label>\r\n </gov-form-checkbox>\r\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\r\n</gov-form-control>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: GovDesignSystemModule }, { kind: "component", type: i2.GovFormCheckbox, selector: "gov-form-checkbox", inputs: ["checked", "disabled", "identifier", "indeterminate", "invalid", "name", "noLabel", "required", "size", "value"] }, { kind: "component", type: i2.GovFormControl, selector: "gov-form-control", inputs: ["disabled", "fieldset", "identifier", "invalid", "size", "success"] }, { kind: "component", type: i2.GovFormLabel, selector: "gov-form-label", inputs: ["identifier", "legend", "required", "size"] }, { kind: "directive", type: i2.BooleanValueAccessor, selector: "gov-form-checkbox,gov-form-switch" }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: GovSizePipe, name: "govSize" }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
32
|
+
}
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
34
|
+
type: Component,
|
|
35
|
+
args: [{ selector: "v-checkbox", standalone: true, imports: [
|
|
36
|
+
CommonModule,
|
|
37
|
+
GovDesignSystemModule,
|
|
38
|
+
RouterModule,
|
|
39
|
+
ReactiveFormsModule,
|
|
40
|
+
GovSizePipe,
|
|
41
|
+
ErrorComponent,
|
|
42
|
+
TranslateModule
|
|
43
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{
|
|
44
|
+
provide: CHECKBOX_COMPONENT_TOKEN,
|
|
45
|
+
useExisting: CheckboxComponent,
|
|
46
|
+
}], template: "<gov-form-control class=\"mt-3\">\r\n <gov-form-checkbox \r\n [formControl]=\"formControl\"\r\n [size]=\"size | govSize\"\r\n [value]=\"value\"\r\n [required]=\"required\"\r\n [attr.disabled]=\"disabled ? 'true' : 'false'\"\r\n [identifier]=\"id\"\r\n [indeterminate]=\"indeterminate\"\r\n [name]=\"name\"\r\n [invalid]=\"ngControl?.errors\"\r\n [noLabel]=\"noLabel\"\r\n [disabled]=\"disabled\"\r\n > \r\n <gov-form-label\r\n [size]=\"size\"\r\n slot=\"label\"\r\n >\r\n {{ label ?? '' | translate }}\r\n </gov-form-label>\r\n </gov-form-checkbox>\r\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\r\n</gov-form-control>\r\n" }]
|
|
47
|
+
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
48
|
+
type: Optional
|
|
49
|
+
}, {
|
|
50
|
+
type: Self
|
|
51
|
+
}] }], propDecorators: { size: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], value: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}], name: [{
|
|
56
|
+
type: Input
|
|
57
|
+
}], indeterminate: [{
|
|
58
|
+
type: Input
|
|
59
|
+
}], noLabel: [{
|
|
60
|
+
type: Input
|
|
61
|
+
}] } });
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktZ292Y3ovc3JjL2xpYi9jb21wb25lbnRzL2NoZWNrYm94L2NoZWNrYm94LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9jaGVja2JveC9jaGVja2JveC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUNILHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsUUFBUSxFQUNSLElBQUksRUFDSixLQUFLLEdBQ1IsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUF3QixTQUFTLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN0RixPQUFPLEVBQUUsWUFB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pemUgfCBnb3ZTaXplXCJcclxuICAgICAgICBbdmFsdWVdPVwidmFsdWVcIlxyXG4gICAgICAgIFtyZXF1aXJlZF09XCJyZXF1aXJlZFwiXHJcbiAgICAgICAgW2F0dHIuZGlzYWJsZWRdPVwiZGlzYWJsZWQgPyAndHJ1ZScgOiAnZmFsc2UnXCJcclxuICAgICAgICBbaWRlbnRpZmllcl09XCJpZFwiXHJcbiAgICAgICAgW2luZGV0ZXJtaW5hdGVdPVwiaW5kZXRlcm1pbmF0ZVwiXHJcbiAgICAgICAgW25hbWVdPVwibmFtZVwiXHJcbiAgICAgICAgW2ludmFsaWRdPVwibmdDb250cm9sPy5lcnJvcnNcIlxyXG4gICAgICAgIFtub0xhYmVsXT1cIm5vTGFiZWxcIlxyXG4gICAgICAgIFtkaXNhYmxlZF09XCJkaXNhYmxlZFwiXHJcbiAgICA+ICAgXHJcbiAgICAgICAgPGdvdi1mb3JtLWxhYmVsXHJcbiAgICAgICAgICAgIFtzaXplXT1cInNpemVcIlxyXG4gICAgICAgICAgICBzbG90PVwibGFiZWxcIlxyXG4gICAgICAgID5cclxuICAgICAgICAgICAge3sgbGFiZWwgPz8gJycgfCB0cmFuc2xhdGUgfX1cclxuICAgICAgICA8L2dvdi1mb3JtLWxhYmVsPlxyXG4gICAgPC9nb3YtZm9ybS1jaGVja2JveD5cclxuICAgIDx2LXZhbGlkYXRpb24tbWVzc2FnZSBbbmdDb250cm9sXT1cIm5nQ29udHJvbFwiPjwvdi12YWxpZGF0aW9uLW1lc3NhZ2U+XHJcbjwvZ292LWZvcm0tY29udHJvbD5cclxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './checkbox.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvY2hlY2tib3gvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY2hlY2tib3guY29tcG9uZW50JzsiXX0=
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { ChangeDetectorRef, Component } from '@angular/core';
|
|
3
|
+
import { GovDesignSystemModule } from '@gov-design-system-ce/angular';
|
|
4
|
+
import { CONFIRM_DIALOG_COMPONENT_TOKEN, DialogService, UnsubscribeComponent, } from '@verisoft/ui-core';
|
|
5
|
+
import { takeUntil } from 'rxjs';
|
|
6
|
+
import { GovColorPipe } from '../../pipes';
|
|
7
|
+
import { DynamicComponent } from '../shared-components';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "@verisoft/ui-core";
|
|
10
|
+
import * as i2 from "@angular/common";
|
|
11
|
+
import * as i3 from "@gov-design-system-ce/angular";
|
|
12
|
+
export class ConfirmDialogComponent extends UnsubscribeComponent {
|
|
13
|
+
dialogService;
|
|
14
|
+
cdr;
|
|
15
|
+
constructor(dialogService, cdr) {
|
|
16
|
+
super();
|
|
17
|
+
this.dialogService = dialogService;
|
|
18
|
+
this.cdr = cdr;
|
|
19
|
+
}
|
|
20
|
+
visible = false;
|
|
21
|
+
closable = false;
|
|
22
|
+
data = { severity: 'primary', headerIcon: 'info-circle' };
|
|
23
|
+
ngOnInit() {
|
|
24
|
+
this.dialogService.showEvent
|
|
25
|
+
.pipe(takeUntil(this.destroyed$))
|
|
26
|
+
.subscribe((x) => {
|
|
27
|
+
this.data = x;
|
|
28
|
+
this.visible = true;
|
|
29
|
+
this.cdr.detectChanges();
|
|
30
|
+
});
|
|
31
|
+
this.dialogService.closeEvent
|
|
32
|
+
.pipe(takeUntil(this.destroyed$))
|
|
33
|
+
.subscribe(() => {
|
|
34
|
+
this.data = {};
|
|
35
|
+
this.visible = false;
|
|
36
|
+
this.cdr.detectChanges();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
dialogClick(confirm) {
|
|
40
|
+
const { confirmButtonFn, cancelButtonFn } = this.data;
|
|
41
|
+
if (confirm && confirmButtonFn) {
|
|
42
|
+
confirmButtonFn();
|
|
43
|
+
}
|
|
44
|
+
if (!confirm && cancelButtonFn) {
|
|
45
|
+
cancelButtonFn();
|
|
46
|
+
}
|
|
47
|
+
this.visible = false;
|
|
48
|
+
this.cdr.detectChanges();
|
|
49
|
+
}
|
|
50
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: i1.DialogService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ConfirmDialogComponent, isStandalone: true, selector: "v-confirm-dialog", providers: [
|
|
52
|
+
{
|
|
53
|
+
provide: CONFIRM_DIALOG_COMPONENT_TOKEN,
|
|
54
|
+
useExisting: ConfirmDialogComponent,
|
|
55
|
+
},
|
|
56
|
+
], usesInheritance: true, ngImport: i0, template: "<gov-dialog\r\n [open]=\"visible\"\r\n [attr.block-close]=\"data.closable !== undefined ? !data.closable : false\"\r\n [attr.block-backdrop-close]=\"data.closable !== undefined ? !data.closable : false\" \r\n [style.--dialog-max-width]=\"data.width\"\r\n [style.--dialog-max-height]=\"data.height\"\r\n role=\"dialog\"\r\n accessible-close-label=\"Close dialog box with more information\"\r\n (gov-close)=\"data.cancelButtonFn ? dialogClick(false) : (visible = false)\"\r\n>\r\n <gov-icon\r\n type=\"components\"\r\n [name]=\"data.headerIcon\"\r\n slot=\"icon\"\r\n [color]=\"data.severity | govColor\"\r\n />\r\n \r\n <h2 slot=\"title\">{{ data.title ?? 'Title' }}</h2>\r\n\r\n @if (data && data.innerHTML) {\r\n <div [innerHTML]=\"data.innerHTML\"></div>\r\n } @else if (data.componentType) {\r\n <v-dynamic-component\r\n [componentType]=\"data.componentType\"\r\n [data]=\"$any(data.data)\"\r\n ></v-dynamic-component>\r\n }\r\n\r\n <gov-button\r\n color=\"primary\"\r\n size=\"m\"\r\n type=\"solid\"\r\n slot=\"footer\"\r\n (gov-click)=\"data.confirmButtonFn ? dialogClick(true) : (visible = false)\"\r\n >\r\n {{ data.confirmButtonText ?? 'Yes'}}\r\n </gov-button>\r\n \r\n <gov-button\r\n [ngClass]=\"!data.showCancelButton ? 'd-none' : ''\"\r\n color=\"primary\"\r\n size=\"m\"\r\n type=\"outlined\"\r\n slot=\"footer\"\r\n [disabled]=\"!data.showCancelButton\"\r\n (gov-click)=\"data.cancelButtonFn ? dialogClick(false) : (visible = false)\"\r\n >\r\n {{ data.cancelButtonText ?? 'No' }}\r\n </gov-button>\r\n</gov-dialog>\r\n", styles: [":host ::ng-deep dialog{max-width:var(--dialog-max-width, 95%);max-height:var(--dialog-max-height, 95%)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: GovDesignSystemModule }, { kind: "component", type: i3.GovButton, selector: "gov-button", inputs: ["color", "disabled", "download", "expanded", "focusable", "href", "hreflang", "identifier", "loading", "name", "nativeType", "referrerpolicy", "rel", "size", "target", "type"] }, { kind: "component", type: i3.GovDialog, selector: "gov-dialog", inputs: ["accessibleCloseLabel", "accessibleCloseLabelledBy", "accessibleDescribedBy", "accessibleLabelledBy", "blockBackdropClose", "blockClose", "labelTag", "open", "role"] }, { kind: "component", type: i3.GovIcon, selector: "gov-icon", inputs: ["color", "name", "size", "type"] }, { kind: "pipe", type: GovColorPipe, name: "govColor" }, { kind: "component", type: DynamicComponent, selector: "v-dynamic-component", inputs: ["componentType", "data"] }] });
|
|
57
|
+
}
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
|
|
59
|
+
type: Component,
|
|
60
|
+
args: [{ selector: 'v-confirm-dialog', standalone: true, imports: [
|
|
61
|
+
CommonModule,
|
|
62
|
+
GovDesignSystemModule,
|
|
63
|
+
GovColorPipe,
|
|
64
|
+
DynamicComponent,
|
|
65
|
+
], providers: [
|
|
66
|
+
{
|
|
67
|
+
provide: CONFIRM_DIALOG_COMPONENT_TOKEN,
|
|
68
|
+
useExisting: ConfirmDialogComponent,
|
|
69
|
+
},
|
|
70
|
+
], template: "<gov-dialog\r\n [open]=\"visible\"\r\n [attr.block-close]=\"data.closable !== undefined ? !data.closable : false\"\r\n [attr.block-backdrop-close]=\"data.closable !== undefined ? !data.closable : false\" \r\n [style.--dialog-max-width]=\"data.width\"\r\n [style.--dialog-max-height]=\"data.height\"\r\n role=\"dialog\"\r\n accessible-close-label=\"Close dialog box with more information\"\r\n (gov-close)=\"data.cancelButtonFn ? dialogClick(false) : (visible = false)\"\r\n>\r\n <gov-icon\r\n type=\"components\"\r\n [name]=\"data.headerIcon\"\r\n slot=\"icon\"\r\n [color]=\"data.severity | govColor\"\r\n />\r\n \r\n <h2 slot=\"title\">{{ data.title ?? 'Title' }}</h2>\r\n\r\n @if (data && data.innerHTML) {\r\n <div [innerHTML]=\"data.innerHTML\"></div>\r\n } @else if (data.componentType) {\r\n <v-dynamic-component\r\n [componentType]=\"data.componentType\"\r\n [data]=\"$any(data.data)\"\r\n ></v-dynamic-component>\r\n }\r\n\r\n <gov-button\r\n color=\"primary\"\r\n size=\"m\"\r\n type=\"solid\"\r\n slot=\"footer\"\r\n (gov-click)=\"data.confirmButtonFn ? dialogClick(true) : (visible = false)\"\r\n >\r\n {{ data.confirmButtonText ?? 'Yes'}}\r\n </gov-button>\r\n \r\n <gov-button\r\n [ngClass]=\"!data.showCancelButton ? 'd-none' : ''\"\r\n color=\"primary\"\r\n size=\"m\"\r\n type=\"outlined\"\r\n slot=\"footer\"\r\n [disabled]=\"!data.showCancelButton\"\r\n (gov-click)=\"data.cancelButtonFn ? dialogClick(false) : (visible = false)\"\r\n >\r\n {{ data.cancelButtonText ?? 'No' }}\r\n </gov-button>\r\n</gov-dialog>\r\n", styles: [":host ::ng-deep dialog{max-width:var(--dialog-max-width, 95%);max-height:var(--dialog-max-height, 95%)}\n"] }]
|
|
71
|
+
}], ctorParameters: () => [{ type: i1.DialogService }, { type: i0.ChangeDetectorRef }] });
|
|
72
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1kaWFsb2cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktZ292Y3ovc3JjL2xpYi9jb21wb25lbnRzL2NvbmZpcm0tZGlhbG9nL2NvbmZpcm0tZGlhbG9nLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9jb25maXJtLWRpYWxvZy9jb25maXJtLWRpYWxvZy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGlCQUFpQixFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUNyRSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUN0RSxPQUFPLEVBQ0wsOEJBQThCLEVBRzlCLGFBQWEsRUFDYixvQkFBb0IsR0FDckIsTUFBTSxtQkFBbUIsQ0FBQztBQUMzQixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sTUFBTSxDQ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gICAgICBzaXplPVwibVwiXHJcbiAgICAgICAgdHlwZT1cInNvbGlkXCJcclxuICAgICAgICBzbG90PVwiZm9vdGVyXCJcclxuICAgICAgICAoZ292LWNsaWNrKT1cImRhdGEuY29uZmlybUJ1dHRvbkZuID8gZGlhbG9nQ2xpY2sodHJ1ZSkgOiAodmlzaWJsZSA9IGZhbHNlKVwiXHJcbiAgICA+XHJcbiAgICAgICAge3sgZGF0YS5jb25maXJtQnV0dG9uVGV4dCA/PyAnWWVzJ319XHJcbiAgICA8L2dvdi1idXR0b24+XHJcbiAgICBcclxuICAgIDxnb3YtYnV0dG9uXHJcbiAgICAgICAgW25nQ2xhc3NdPVwiIWRhdGEuc2hvd0NhbmNlbEJ1dHRvbiA/ICdkLW5vbmUnIDogJydcIlxyXG4gICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXHJcbiAgICAgICAgc2l6ZT1cIm1cIlxyXG4gICAgICAgIHR5cGU9XCJvdXRsaW5lZFwiXHJcbiAgICAgICAgc2xvdD1cImZvb3RlclwiXHJcbiAgICAgICAgW2Rpc2FibGVkXT1cIiFkYXRhLnNob3dDYW5jZWxCdXR0b25cIlxyXG4gICAgICAgIChnb3YtY2xpY2spPVwiZGF0YS5jYW5jZWxCdXR0b25GbiA/IGRpYWxvZ0NsaWNrKGZhbHNlKSA6ICh2aXNpYmxlID0gZmFsc2UpXCJcclxuICAgID5cclxuICAgICAgICB7eyBkYXRhLmNhbmNlbEJ1dHRvblRleHQgPz8gJ05vJyB9fVxyXG4gICAgPC9nb3YtYnV0dG9uPlxyXG48L2dvdi1kaWFsb2c+XHJcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './confirm-dialog.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvY29uZmlybS1kaWFsb2cvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29uZmlybS1kaWFsb2cuY29tcG9uZW50JztcclxuIl19
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation, } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class DropdownItemComponent {
|
|
4
|
+
item;
|
|
5
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DropdownItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: DropdownItemComponent, isStandalone: true, selector: "v-dropdown-item", inputs: { item: "item" }, ngImport: i0, template: "<li\r\n role=\"option\"\r\n class=\"v-dropdown__item\"\r\n [attr.aria-selected]=\"item?.selected\"\r\n [class.is-active]=\"item?.selected\"\r\n>\r\n {{item?.label}}\r\n</li>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7
|
+
}
|
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DropdownItemComponent, decorators: [{
|
|
9
|
+
type: Component,
|
|
10
|
+
args: [{ selector: 'v-dropdown-item', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<li\r\n role=\"option\"\r\n class=\"v-dropdown__item\"\r\n [attr.aria-selected]=\"item?.selected\"\r\n [class.is-active]=\"item?.selected\"\r\n>\r\n {{item?.label}}\r\n</li>" }]
|
|
11
|
+
}], propDecorators: { item: [{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