@verisoft/ui-govcz 18.4.0 → 18.6.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/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 +59 -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 +3728 -0
- package/fesm2022/verisoft-ui-govcz.mjs.map +1 -0
- package/{src/index.ts → index.d.ts} +1 -1
- 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 +37 -21
- package/.eslintrc.json +0 -48
- package/assets/i18n/cs.json +0 -9
- package/assets/i18n/en.json +0 -9
- package/assets/icons/components/24-7.svg +0 -12
- package/assets/icons/components/NO-ICON.svg +0 -2
- package/assets/icons/components/add.svg +0 -6
- package/assets/icons/components/all.svg +0 -3
- package/assets/icons/components/arrival.svg +0 -12
- package/assets/icons/components/arrow-left.svg +0 -3
- package/assets/icons/components/arrow-right.svg +0 -3
- package/assets/icons/components/bars.svg +0 -3
- package/assets/icons/components/bell.svg +0 -4
- package/assets/icons/components/big-help.svg +0 -12
- package/assets/icons/components/book.svg +0 -10
- package/assets/icons/components/bookmarks.svg +0 -11
- package/assets/icons/components/box-arrow-up-right.svg +0 -11
- package/assets/icons/components/business-file.svg +0 -14
- package/assets/icons/components/businessman.svg +0 -3
- package/assets/icons/components/cactus.svg +0 -14
- package/assets/icons/components/calendar.svg +0 -3
- package/assets/icons/components/camera.svg +0 -5
- package/assets/icons/components/car.svg +0 -5
- package/assets/icons/components/card-400.svg +0 -11
- package/assets/icons/components/card-401.svg +0 -11
- package/assets/icons/components/card-403.svg +0 -11
- package/assets/icons/components/card-404.svg +0 -11
- package/assets/icons/components/card-500.svg +0 -11
- package/assets/icons/components/card-502.svg +0 -11
- package/assets/icons/components/card-503.svg +0 -12
- package/assets/icons/components/card-504.svg +0 -15
- package/assets/icons/components/caret-right-fill.svg +0 -3
- package/assets/icons/components/certification.svg +0 -14
- package/assets/icons/components/chamber-deputies-cr.svg +0 -11
- package/assets/icons/components/chamber-deputies.svg +0 -13
- package/assets/icons/components/chat.svg +0 -11
- package/assets/icons/components/check-circle.svg +0 -4
- package/assets/icons/components/check-lg.svg +0 -3
- package/assets/icons/components/chevron-double-left.svg +0 -4
- package/assets/icons/components/chevron-double-right.svg +0 -4
- package/assets/icons/components/chevron-down.svg +0 -3
- package/assets/icons/components/chevron-left.svg +0 -3
- package/assets/icons/components/chevron-right.svg +0 -3
- package/assets/icons/components/chevron-up.svg +0 -3
- package/assets/icons/components/cities.svg +0 -17
- package/assets/icons/components/city-office.svg +0 -17
- package/assets/icons/components/coins.svg +0 -14
- package/assets/icons/components/communication.svg +0 -4
- package/assets/icons/components/confusion.svg +0 -8
- package/assets/icons/components/contact.svg +0 -6
- package/assets/icons/components/copy.svg +0 -10
- package/assets/icons/components/court.svg +0 -5
- package/assets/icons/components/covid.svg +0 -5
- package/assets/icons/components/czech-lion.svg +0 -134
- package/assets/icons/components/dash-lg.svg +0 -3
- package/assets/icons/components/diagram.svg +0 -3
- package/assets/icons/components/digital.svg +0 -10
- package/assets/icons/components/disability.svg +0 -5
- package/assets/icons/components/doc-agreement.svg +0 -7
- package/assets/icons/components/doc-basic-info.svg +0 -18
- package/assets/icons/components/doc-business.svg +0 -8
- package/assets/icons/components/doc-car-point-list.svg +0 -16
- package/assets/icons/components/doc-diploma.svg +0 -17
- package/assets/icons/components/doc-driver-info.svg +0 -8
- package/assets/icons/components/doc-election.svg +0 -13
- package/assets/icons/components/doc-filled.svg +0 -16
- package/assets/icons/components/doc-health.svg +0 -3
- package/assets/icons/components/doc-judgment.svg +0 -8
- package/assets/icons/components/doc-patient.svg +0 -8
- package/assets/icons/components/doc-personal-info.svg +0 -11
- package/assets/icons/components/doc-petition.svg +0 -8
- package/assets/icons/components/doc-registers.svg +0 -7
- package/assets/icons/components/doc-review.svg +0 -20
- package/assets/icons/components/doc-search.svg +0 -8
- package/assets/icons/components/doc-stamp.svg +0 -15
- package/assets/icons/components/doc-state.svg +0 -13
- package/assets/icons/components/doc-taxes.svg +0 -16
- package/assets/icons/components/doc-universal.svg +0 -13
- package/assets/icons/components/doc-visa.svg +0 -14
- package/assets/icons/components/documents.svg +0 -11
- package/assets/icons/components/download.svg +0 -4
- package/assets/icons/components/driver-file.svg +0 -14
- package/assets/icons/components/driver.svg +0 -7
- package/assets/icons/components/driving-licence.svg +0 -7
- package/assets/icons/components/email-notification.svg +0 -12
- package/assets/icons/components/empty-file.svg +0 -13
- package/assets/icons/components/energy.svg +0 -11
- package/assets/icons/components/envelope-fill.svg +0 -3
- package/assets/icons/components/envelope.svg +0 -3
- package/assets/icons/components/error.svg +0 -12
- package/assets/icons/components/european-parliament.svg +0 -11
- package/assets/icons/components/exclamation-lg.svg +0 -3
- package/assets/icons/components/exclamation-triangle-fill.svg +0 -10
- package/assets/icons/components/export.svg +0 -13
- package/assets/icons/components/eye.svg +0 -4
- package/assets/icons/components/family.svg +0 -12
- package/assets/icons/components/fast-forward.svg +0 -1
- package/assets/icons/components/filter.svg +0 -3
- package/assets/icons/components/gear.svg +0 -11
- package/assets/icons/components/geo-alt-fill.svg +0 -10
- package/assets/icons/components/globe.svg +0 -12
- package/assets/icons/components/graduate.svg +0 -4
- package/assets/icons/components/group.svg +0 -3
- package/assets/icons/components/hand-503.svg +0 -10
- package/assets/icons/components/hand-504.svg +0 -7
- package/assets/icons/components/hand.svg +0 -14
- package/assets/icons/components/health.svg +0 -5
- package/assets/icons/components/help.svg +0 -4
- package/assets/icons/components/history.svg +0 -4
- package/assets/icons/components/holiday.svg +0 -13
- package/assets/icons/components/hourglass.svg +0 -4
- package/assets/icons/components/house-door-fill.svg +0 -3
- package/assets/icons/components/house.svg +0 -13
- package/assets/icons/components/id-card.svg +0 -6
- package/assets/icons/components/id-info.svg +0 -9
- package/assets/icons/components/id.svg +0 -6
- package/assets/icons/components/illness.svg +0 -9
- package/assets/icons/components/info-circle-fill.svg +0 -10
- package/assets/icons/components/info-circle.svg +0 -11
- package/assets/icons/components/info-list.svg +0 -14
- package/assets/icons/components/info.svg +0 -3
- package/assets/icons/components/institute-file.svg +0 -23
- package/assets/icons/components/institution.svg +0 -10
- package/assets/icons/components/job-loss.svg +0 -4
- package/assets/icons/components/job.svg +0 -3
- package/assets/icons/components/lightbulb-fill.svg +0 -10
- package/assets/icons/components/list.svg +0 -3
- package/assets/icons/components/loader.svg +0 -3
- package/assets/icons/components/login.svg +0 -11
- package/assets/icons/components/logout.svg +0 -13
- package/assets/icons/components/map.svg +0 -11
- package/assets/icons/components/mobile-phone.svg +0 -13
- package/assets/icons/components/moon.svg +0 -10
- package/assets/icons/components/mouse.svg +0 -3
- package/assets/icons/components/my-filing.svg +0 -15
- package/assets/icons/components/my-state-data.svg +0 -19
- package/assets/icons/components/new-comments.svg +0 -6
- package/assets/icons/components/newborn.svg +0 -16
- package/assets/icons/components/news.svg +0 -20
- package/assets/icons/components/packet.svg +0 -11
- package/assets/icons/components/passport.svg +0 -7
- package/assets/icons/components/pencil.svg +0 -3
- package/assets/icons/components/personal-file.svg +0 -14
- package/assets/icons/components/pet.svg +0 -10
- package/assets/icons/components/petrol-station.svg +0 -14
- package/assets/icons/components/pills.svg +0 -4
- package/assets/icons/components/plus-lg.svg +0 -3
- package/assets/icons/components/population-register.svg +0 -12
- package/assets/icons/components/port-card.svg +0 -8
- package/assets/icons/components/portal.svg +0 -8
- package/assets/icons/components/pregnant.svg +0 -11
- package/assets/icons/components/president.svg +0 -13
- package/assets/icons/components/presidential-election.svg +0 -12
- package/assets/icons/components/print-fill.svg +0 -4
- package/assets/icons/components/profile-settings.svg +0 -13
- package/assets/icons/components/property.svg +0 -4
- package/assets/icons/components/question-circle.svg +0 -4
- package/assets/icons/components/queue.svg +0 -13
- package/assets/icons/components/quotes.svg +0 -6
- package/assets/icons/components/region.svg +0 -11
- package/assets/icons/components/regional-elections-clear.svg +0 -11
- package/assets/icons/components/regional-elections.svg +0 -12
- package/assets/icons/components/register-of-persons.svg +0 -7
- package/assets/icons/components/retiree.svg +0 -8
- package/assets/icons/components/rings.svg +0 -5
- package/assets/icons/components/search.svg +0 -10
- package/assets/icons/components/senate.svg +0 -11
- package/assets/icons/components/senior.svg +0 -4
- package/assets/icons/components/settings.svg +0 -13
- package/assets/icons/components/simple-envelope.svg +0 -3
- package/assets/icons/components/sms-notification.svg +0 -7
- package/assets/icons/components/sos.svg +0 -6
- package/assets/icons/components/star-fill.svg +0 -10
- package/assets/icons/components/state-file.svg +0 -8
- package/assets/icons/components/sun.svg +0 -10
- package/assets/icons/components/telephone.svg +0 -10
- package/assets/icons/components/three-dots-vertical.svg +0 -3
- package/assets/icons/components/time.svg +0 -4
- package/assets/icons/components/tombstone.svg +0 -7
- package/assets/icons/components/trash.svg +0 -6
- package/assets/icons/components/twitter-x.svg +0 -10
- package/assets/icons/components/upload.svg +0 -4
- package/assets/icons/components/user-login.svg +0 -13
- package/assets/icons/components/user.svg +0 -3
- package/assets/icons/components/vaccine.svg +0 -11
- package/assets/icons/components/x-circle.svg +0 -4
- package/assets/icons/components/x-lg.svg +0 -3
- package/assets/icons/components/x.svg +0 -3
- package/assets/logos/v-logo.svg +0 -4
- package/jest.config.ts +0 -21
- package/ng-package.json +0 -10
- package/project.json +0 -49
- package/src/config.d.ts +0 -10
- 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 -56
- 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/sass/header.css +0 -526
- package/src/sass/header.scss +0 -480
- package/src/sass/main.scss +0 -246
- package/src/sass/scrollbar.scss +0 -22
- package/src/sass/sidemenu.css +0 -205
- package/src/sass/vendors/_bootstrap.scss +0 -2
- package/src/test-setup.ts +0 -8
- package/tsconfig.json +0 -32
- package/tsconfig.lib.json +0 -17
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -16
|
@@ -0,0 +1,104 @@
|
|
|
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 { NUMBER_INPUT_COMPONENT_TOKEN, FieldType, BaseFormInputComponent, FieldSize, IconPosition, SlotPosition, } from '@verisoft/ui-core';
|
|
6
|
+
import { Icons } from '../../icons';
|
|
7
|
+
import { GovSizePipe } from '../../pipes';
|
|
8
|
+
import { ErrorComponent } from '../errors';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@angular/forms";
|
|
11
|
+
import * as i2 from "@gov-design-system-ce/angular";
|
|
12
|
+
export class NumberInputComponent extends BaseFormInputComponent {
|
|
13
|
+
mode;
|
|
14
|
+
currency;
|
|
15
|
+
min;
|
|
16
|
+
max;
|
|
17
|
+
step = 1;
|
|
18
|
+
floatLabel;
|
|
19
|
+
type = FieldType.number;
|
|
20
|
+
minlength = 0;
|
|
21
|
+
maxlength = 524288;
|
|
22
|
+
prefix;
|
|
23
|
+
sufix;
|
|
24
|
+
message;
|
|
25
|
+
name;
|
|
26
|
+
role;
|
|
27
|
+
size = FieldSize.medium;
|
|
28
|
+
icon;
|
|
29
|
+
iconPos = IconPosition.right;
|
|
30
|
+
labelSlot = SlotPosition.top;
|
|
31
|
+
errorSlot = SlotPosition.bottom;
|
|
32
|
+
messageSlot = SlotPosition.bottom;
|
|
33
|
+
icons = Icons;
|
|
34
|
+
constructor(ngControl) {
|
|
35
|
+
super(ngControl);
|
|
36
|
+
}
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: NumberInputComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: NumberInputComponent, isStandalone: true, selector: "v-number-input", inputs: { mode: "mode", currency: "currency", min: "min", max: "max", step: "step", floatLabel: "floatLabel", type: "type", minlength: "minlength", maxlength: "maxlength", prefix: "prefix", sufix: "sufix", message: "message", name: "name", role: "role", size: "size", icon: "icon", iconPos: "iconPos", labelSlot: "labelSlot", errorSlot: "errorSlot", messageSlot: "messageSlot" }, providers: [
|
|
39
|
+
{
|
|
40
|
+
provide: NUMBER_INPUT_COMPONENT_TOKEN,
|
|
41
|
+
useExisting: NumberInputComponent,
|
|
42
|
+
},
|
|
43
|
+
], usesInheritance: true, ngImport: i0, template: "<gov-form-control>\r\n @if (label) {\r\n <gov-form-label \r\n [slot]=\"labelSlot\"\r\n [size]=\"size | govSize\"\r\n >\r\n {{ label }}\r\n </gov-form-label>\r\n }\r\n <gov-form-group>\r\n <gov-form-input \r\n [attr.input-type]=\"type\"\r\n [formControl]=\"formControl\"\r\n [minlength]=\"minlength\" \r\n [maxlength]=\"maxlength\" \r\n [size]='size | govSize' \r\n [name]='name' \r\n [role]='role'\r\n [required]=\"required\"\r\n [readonly]=\"readonly\"\r\n [invalid]=\"ngControl?.errors ? true : false\"\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 (prefix) {\r\n <p slot=\"prefix\">\r\n {{ prefix }}\r\n </p>\r\n } @if (sufix) {\r\n <p slot=\"sufix\">\r\n {{ sufix }}\r\n </p>\r\n }\r\n </gov-form-input>\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-group>\r\n</gov-form-control>\r\n", 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.MinLengthValidator, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: ["minlength"] }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { 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: "component", type: i2.GovIcon, selector: "gov-icon", inputs: ["color", "name", "size", "type"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
44
|
+
}
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: NumberInputComponent, decorators: [{
|
|
46
|
+
type: Component,
|
|
47
|
+
args: [{ selector: 'v-number-input', standalone: true, imports: [
|
|
48
|
+
CommonModule,
|
|
49
|
+
ReactiveFormsModule,
|
|
50
|
+
GovDesignSystemModule,
|
|
51
|
+
GovSizePipe,
|
|
52
|
+
ErrorComponent,
|
|
53
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
54
|
+
{
|
|
55
|
+
provide: NUMBER_INPUT_COMPONENT_TOKEN,
|
|
56
|
+
useExisting: NumberInputComponent,
|
|
57
|
+
},
|
|
58
|
+
], template: "<gov-form-control>\r\n @if (label) {\r\n <gov-form-label \r\n [slot]=\"labelSlot\"\r\n [size]=\"size | govSize\"\r\n >\r\n {{ label }}\r\n </gov-form-label>\r\n }\r\n <gov-form-group>\r\n <gov-form-input \r\n [attr.input-type]=\"type\"\r\n [formControl]=\"formControl\"\r\n [minlength]=\"minlength\" \r\n [maxlength]=\"maxlength\" \r\n [size]='size | govSize' \r\n [name]='name' \r\n [role]='role'\r\n [required]=\"required\"\r\n [readonly]=\"readonly\"\r\n [invalid]=\"ngControl?.errors ? true : false\"\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 (prefix) {\r\n <p slot=\"prefix\">\r\n {{ prefix }}\r\n </p>\r\n } @if (sufix) {\r\n <p slot=\"sufix\">\r\n {{ sufix }}\r\n </p>\r\n }\r\n </gov-form-input>\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-group>\r\n</gov-form-control>\r\n" }]
|
|
59
|
+
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
60
|
+
type: Optional
|
|
61
|
+
}, {
|
|
62
|
+
type: Self
|
|
63
|
+
}] }], propDecorators: { mode: [{
|
|
64
|
+
type: Input
|
|
65
|
+
}], currency: [{
|
|
66
|
+
type: Input
|
|
67
|
+
}], min: [{
|
|
68
|
+
type: Input
|
|
69
|
+
}], max: [{
|
|
70
|
+
type: Input
|
|
71
|
+
}], step: [{
|
|
72
|
+
type: Input
|
|
73
|
+
}], floatLabel: [{
|
|
74
|
+
type: Input
|
|
75
|
+
}], type: [{
|
|
76
|
+
type: Input
|
|
77
|
+
}], minlength: [{
|
|
78
|
+
type: Input
|
|
79
|
+
}], maxlength: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], prefix: [{
|
|
82
|
+
type: Input
|
|
83
|
+
}], sufix: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}], message: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], name: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], role: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], size: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}], icon: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}], iconPos: [{
|
|
96
|
+
type: Input
|
|
97
|
+
}], labelSlot: [{
|
|
98
|
+
type: Input
|
|
99
|
+
}], errorSlot: [{
|
|
100
|
+
type: Input
|
|
101
|
+
}], messageSlot: [{
|
|
102
|
+
type: Input
|
|
103
|
+
}] } });
|
|
104
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9udW1iZXItaW5wdXQvbnVtYmVyLWlucHV0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9udW1iZXItaW5wdXQvbnVtYmVyLWlucHV0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxLQUFLLEVBQ0wsUUFBUSxFQUNSLElBQUks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XCJcclxuICAgICAgICA+XHJcbiAgICAgICAgICAgIEBpZiAoaWNvbikge1xyXG4gICAgICAgICAgICA8Z292LWljb25cclxuICAgICAgICAgICAgICAgIFtuYW1lXT1cImljb25cIlxyXG4gICAgICAgICAgICAgICAgW3Nsb3RdPVwiaWNvblBvcyA9PT0gJ2xlZnQnID8gJ2ljb24tc3RhcnQnIDogJ2ljb24tZW5kJ1wiXHJcbiAgICAgICAgICAgIC8+XHJcbiAgICAgICAgICAgIH0gQGlmIChwcmVmaXgpIHtcclxuICAgICAgICAgICAgPHAgc2xvdD1cInByZWZpeFwiPlxyXG4gICAgICAgICAgICAgICAge3sgcHJlZml4IH19XHJcbiAgICAgICAgICAgIDwvcD5cclxuICAgICAgICAgICAgfSBAaWYgKHN1Zml4KSB7XHJcbiAgICAgICAgICAgIDxwIHNsb3Q9XCJzdWZpeFwiPlxyXG4gICAgICAgICAgICAgICAge3sgc3VmaXggfX1cclxuICAgICAgICAgICAgPC9wPlxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgPC9nb3YtZm9ybS1pbnB1dD5cclxuICAgICAgICA8di12YWxpZGF0aW9uLW1lc3NhZ2UgW25nQ29udHJvbF09XCJuZ0NvbnRyb2xcIj48L3YtdmFsaWRhdGlvbi1tZXNzYWdlPlxyXG4gICAgICAgIEBpZiAobWVzc2FnZSkge1xyXG4gICAgICAgIDxnb3YtZm9ybS1tZXNzYWdlIFxyXG4gICAgICAgICAgICBbc2xvdF09XCJtZXNzYWdlU2xvdFwiIFxyXG4gICAgICAgICAgICBjb2xvcj1cIm5ldXRyYWxcIlxyXG4gICAgICAgICAgICA+XHJcbiAgICAgICAgICAgIHt7IG1lc3NhZ2UgfX1cclxuICAgICAgICA8L2dvdi1mb3JtLW1lc3NhZ2U+XHJcbiAgICAgICAgfVxyXG4gICAgPC9nb3YtZm9ybS1ncm91cD5cclxuPC9nb3YtZm9ybS1jb250cm9sPlxyXG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './page-header.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvcGFnZS1oZWFkZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcGFnZS1oZWFkZXIuY29tcG9uZW50JzsiXX0=
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Input, } from '@angular/core';
|
|
3
|
+
import { GovDesignSystemModule } from '@gov-design-system-ce/angular';
|
|
4
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@ngx-translate/core";
|
|
7
|
+
export class PageHeaderComponent {
|
|
8
|
+
title = '';
|
|
9
|
+
subtitle;
|
|
10
|
+
showBackButton;
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: PageHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.8", type: PageHeaderComponent, isStandalone: true, selector: "v-page-header", inputs: { title: "title", subtitle: "subtitle", showBackButton: "showBackButton" }, ngImport: i0, template: "<div class=\"d-flex gap-3 align-items-center\">\r\n <h2>{{ title | translate }}</h2>\r\n</div>", styles: ["h2{font-size:1.5rem;color:var(--color-neutral-700);margin:0}.d-flex{display:flex;align-items:center;gap:1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: GovDesignSystemModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13
|
+
}
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: PageHeaderComponent, decorators: [{
|
|
15
|
+
type: Component,
|
|
16
|
+
args: [{ selector: 'v-page-header', standalone: true, imports: [
|
|
17
|
+
CommonModule,
|
|
18
|
+
GovDesignSystemModule,
|
|
19
|
+
TranslateModule,
|
|
20
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"d-flex gap-3 align-items-center\">\r\n <h2>{{ title | translate }}</h2>\r\n</div>", styles: ["h2{font-size:1.5rem;color:var(--color-neutral-700);margin:0}.d-flex{display:flex;align-items:center;gap:1rem}\n"] }]
|
|
21
|
+
}], propDecorators: { title: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}], subtitle: [{
|
|
24
|
+
type: Input
|
|
25
|
+
}], showBackButton: [{
|
|
26
|
+
type: Input
|
|
27
|
+
}] } });
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS1oZWFkZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktZ292Y3ovc3JjL2xpYi9jb21wb25lbnRzL3BhZ2UtaGVhZGVyL3BhZ2UtaGVhZGVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9wYWdlLWhlYWRlci9wYWdlLWhlYWRlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUU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NsYXRlTW9kdWxlIH0gZnJvbSAnQG5neC10cmFuc2xhdGUvY29yZSc7XHJcbmltcG9ydCB7IFBhZ2VIZWFkZXJDb3JlIH0gZnJvbSAnQHZlcmlzb2Z0L3VpLWNvcmUnO1xyXG5cclxuQENvbXBvbmVudCh7XHJcbiAgc2VsZWN0b3I6ICd2LXBhZ2UtaGVhZGVyJyxcclxuICBzdGFuZGFsb25lOiB0cnVlLFxyXG4gIGltcG9ydHM6IFtcclxuICAgIENvbW1vbk1vZHVsZSxcclxuICAgIEdvdkRlc2lnblN5c3RlbU1vZHVsZSxcclxuICAgIFRyYW5zbGF0ZU1vZHVsZSxcclxuICBdLFxyXG4gIHRlbXBsYXRlVXJsOiAnLi9wYWdlLWhlYWRlci5jb21wb25lbnQuaHRtbCcsXHJcbiAgc3R5bGVVcmw6ICcuL3BhZ2UtaGVhZGVyLmNvbXBvbmVudC5zY3NzJyxcclxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcclxufSlcclxuZXhwb3J0IGNsYXNzIFBhZ2VIZWFkZXJDb21wb25lbnQgaW1wbGVtZW50cyBQYWdlSGVhZGVyQ29yZSB7XHJcbiAgQElucHV0KCkgdGl0bGUgPSAnJztcclxuXHJcbiAgQElucHV0KCkgc3VidGl0bGU6IHN0cmluZyB8IHVuZGVmaW5lZDtcclxuXHJcbiAgQElucHV0KCkgc2hvd0JhY2tCdXR0b246IGJvb2xlYW4gfCB1bmRlZmluZWQ7XHJcbn1cclxuIiwiPGRpdiBjbGFzcz1cImQtZmxleCBnYXAtMyBhbGlnbi1pdGVtcy1jZW50ZXJcIj5cclxuICA8aDI+e3sgdGl0bGUgfCB0cmFuc2xhdGUgfX08L2gyPlxyXG48L2Rpdj4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './password.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvcGFzc3dvcmQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcGFzc3dvcmQuY29tcG9uZW50JztcclxuIl19
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { BaseFormInputComponent, FieldType, PASSWORD_COMPONENT_TOKEN, SlotPosition, IconPosition, FieldSize, PasswordStrength, } from '@verisoft/ui-core';
|
|
6
|
+
import zxcvbn from 'zxcvbn';
|
|
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
|
+
export class PasswordComponent extends BaseFormInputComponent {
|
|
14
|
+
toggleMask = true;
|
|
15
|
+
feedback = false;
|
|
16
|
+
labelSlot = SlotPosition.top;
|
|
17
|
+
requiredStrength = PasswordStrength.None;
|
|
18
|
+
message;
|
|
19
|
+
name;
|
|
20
|
+
role;
|
|
21
|
+
icon;
|
|
22
|
+
iconPos = IconPosition.right;
|
|
23
|
+
size = FieldSize.medium;
|
|
24
|
+
messageSlot = SlotPosition.bottom;
|
|
25
|
+
icons = Icons;
|
|
26
|
+
passwordStrength = PasswordStrength.None;
|
|
27
|
+
type = FieldType.password;
|
|
28
|
+
constructor(ngControl) {
|
|
29
|
+
super(ngControl);
|
|
30
|
+
}
|
|
31
|
+
valueChange(value) {
|
|
32
|
+
if (!value) {
|
|
33
|
+
this.passwordStrength = 0;
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const result = zxcvbn(value);
|
|
37
|
+
this.passwordStrength = result.score;
|
|
38
|
+
if (!this.formControl) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (result.score < this.requiredStrength) {
|
|
42
|
+
this.formControl.setErrors({ passwordLowStrength: true }, { emitEvent: false });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: PasswordComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: PasswordComponent, isStandalone: true, selector: "v-password", inputs: { toggleMask: "toggleMask", feedback: "feedback", labelSlot: "labelSlot", requiredStrength: "requiredStrength", message: "message", name: "name", role: "role", icon: "icon", iconPos: "iconPos", size: "size", messageSlot: "messageSlot" }, providers: [
|
|
47
|
+
{
|
|
48
|
+
provide: PASSWORD_COMPONENT_TOKEN,
|
|
49
|
+
useExisting: PasswordComponent
|
|
50
|
+
}
|
|
51
|
+
], usesInheritance: true, ngImport: i0, template: "<gov-form-control class=\"mb-3\">\r\n @if (label) {\r\n <gov-form-label \r\n [slot]=\"labelSlot\"\r\n [size]=\"size | govSize\"\r\n >\r\n {{ label }}\r\n </gov-form-label>\r\n }\r\n <gov-form-group>\r\n @if (feedback) {\r\n <gov-form-password-power [power]=\"passwordStrength - 1\" />\r\n }\r\n <gov-form-input\r\n [formControl]=\"formControl\"\r\n [attr.input-type]=\"type\"\r\n [placeholder]=\"placeholder\"\r\n [invalid]=\"ngControl?.errors\"\r\n (ngModelChange)=\"valueChange($event)\"\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>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { 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: "component", type: i2.GovFormPasswordPower, selector: "gov-form-password-power", inputs: ["power"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
52
|
+
}
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: PasswordComponent, decorators: [{
|
|
54
|
+
type: Component,
|
|
55
|
+
args: [{ selector: 'v-password', standalone: true, imports: [
|
|
56
|
+
CommonModule,
|
|
57
|
+
ReactiveFormsModule,
|
|
58
|
+
GovDesignSystemModule,
|
|
59
|
+
GovSizePipe,
|
|
60
|
+
ErrorComponent,
|
|
61
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
62
|
+
{
|
|
63
|
+
provide: PASSWORD_COMPONENT_TOKEN,
|
|
64
|
+
useExisting: PasswordComponent
|
|
65
|
+
}
|
|
66
|
+
], template: "<gov-form-control class=\"mb-3\">\r\n @if (label) {\r\n <gov-form-label \r\n [slot]=\"labelSlot\"\r\n [size]=\"size | govSize\"\r\n >\r\n {{ label }}\r\n </gov-form-label>\r\n }\r\n <gov-form-group>\r\n @if (feedback) {\r\n <gov-form-password-power [power]=\"passwordStrength - 1\" />\r\n }\r\n <gov-form-input\r\n [formControl]=\"formControl\"\r\n [attr.input-type]=\"type\"\r\n [placeholder]=\"placeholder\"\r\n [invalid]=\"ngControl?.errors\"\r\n (ngModelChange)=\"valueChange($event)\"\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>\r\n" }]
|
|
67
|
+
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
68
|
+
type: Optional
|
|
69
|
+
}, {
|
|
70
|
+
type: Self
|
|
71
|
+
}] }], propDecorators: { toggleMask: [{
|
|
72
|
+
type: Input
|
|
73
|
+
}], feedback: [{
|
|
74
|
+
type: Input
|
|
75
|
+
}], labelSlot: [{
|
|
76
|
+
type: Input
|
|
77
|
+
}], requiredStrength: [{
|
|
78
|
+
type: Input
|
|
79
|
+
}], message: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], name: [{
|
|
82
|
+
type: Input
|
|
83
|
+
}], role: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}], icon: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], iconPos: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], size: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], messageSlot: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}] } });
|
|
94
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFzc3dvcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktZ292Y3ovc3JjL2xpYi9jb21wb25lbnRzL3Bhc3N3b3JkL3Bhc3N3b3JkLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9wYXNzd29yZC9wYXNzd29yZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsUUFBUSxFQUFFLElBQUksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxRixPQUFPLEVBQXdCLFNBQVMsRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3RGLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ3RFLE9BQU8sRUFDTCxzQkFBc0IsRUFDdEIsU0FBUyxFQUNULHdCQUF3QixFQUV4QixZQUFZLEVBRVosWUFBWSxFQUVaLF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AgICAgW3BsYWNlaG9sZGVyXT1cInBsYWNlaG9sZGVyXCJcclxuICAgICAgW2ludmFsaWRdPVwibmdDb250cm9sPy5lcnJvcnNcIlxyXG4gICAgICAobmdNb2RlbENoYW5nZSk9XCJ2YWx1ZUNoYW5nZSgkZXZlbnQpXCJcclxuICAgIC8+XHJcbiAgPC9nb3YtZm9ybS1ncm91cD5cclxuICA8di12YWxpZGF0aW9uLW1lc3NhZ2UgW25nQ29udHJvbF09XCJuZ0NvbnRyb2xcIj48L3YtdmFsaWRhdGlvbi1tZXNzYWdlPlxyXG4gIEBpZiAobWVzc2FnZSkge1xyXG4gIDxnb3YtZm9ybS1tZXNzYWdlIFxyXG4gICAgICBbc2xvdF09XCJtZXNzYWdlU2xvdFwiIFxyXG4gICAgICBjb2xvcj1cIm5ldXRyYWxcIlxyXG4gICAgICA+XHJcbiAgICAgIHt7IG1lc3NhZ2UgfX1cclxuICA8L2dvdi1mb3JtLW1lc3NhZ2U+XHJcbiAgfVxyXG48L2dvdi1mb3JtLWNvbnRyb2w+XHJcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './radiobutton.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvcmFkaW9idXR0b24vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcmFkaW9idXR0b24uY29tcG9uZW50JzsiXX0=
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { RouterModule } from '@angular/router';
|
|
5
|
+
import { GovDesignSystemModule } from '@gov-design-system-ce/angular';
|
|
6
|
+
import { BaseFormInputComponent, FieldSize, RADIOBUTTON_COMPONENT_TOKEN, } 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
|
+
export class RadioButtonComponent extends BaseFormInputComponent {
|
|
14
|
+
radioGroupName = Math.random().toString();
|
|
15
|
+
items = [];
|
|
16
|
+
size = FieldSize.medium;
|
|
17
|
+
icons = Icons;
|
|
18
|
+
constructor(ngControl) {
|
|
19
|
+
super(ngControl);
|
|
20
|
+
}
|
|
21
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: RadioButtonComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: RadioButtonComponent, isStandalone: true, selector: "v-radiobutton", inputs: { radioGroupName: "radioGroupName", items: "items", size: "size" }, providers: [
|
|
23
|
+
{
|
|
24
|
+
provide: RADIOBUTTON_COMPONENT_TOKEN,
|
|
25
|
+
useExisting: RadioButtonComponent,
|
|
26
|
+
},
|
|
27
|
+
], usesInheritance: true, ngImport: i0, template: "<gov-form-control>\r\n <gov-form-radio-group [formControl]=\"formControl\">\r\n @if (items) { @for(item of items; track item) {\r\n <gov-form-radio\r\n [size]=\"size | govSize\"\r\n [value]=\"item.value\"\r\n [required]=\"required\"\r\n [identifier]=\"item.id\"\r\n [name]=\"radioGroupName\"\r\n [invalid]=\"ngControl?.errors\"\r\n [disabled]=\"formControl.disabled\"\r\n >\r\n <gov-form-label\r\n [size]=\"size | govSize\"\r\n slot=\"label\"\r\n >\r\n {{ label }}\r\n </gov-form-label>\r\n </gov-form-radio>\r\n } }\r\n </gov-form-radio-group>\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.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: "component", type: i2.GovFormRadio, selector: "gov-form-radio", inputs: ["checked", "disabled", "identifier", "invalid", "name", "noLabel", "required", "size", "value"] }, { kind: "component", type: i2.GovFormRadioGroup, selector: "gov-form-radio-group", inputs: ["gap", "orientation", "value"] }, { kind: "directive", type: i2.RadioValueAccessor, selector: "gov-form-radio" }, { kind: "directive", type: i2.GroupValueAccessor, selector: "gov-form-radio-group,gov-form-checkbox-group" }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: RadioButtonComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: "v-radiobutton", standalone: true, imports: [
|
|
32
|
+
CommonModule, GovDesignSystemModule, RouterModule, ReactiveFormsModule, GovSizePipe, ErrorComponent
|
|
33
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
34
|
+
{
|
|
35
|
+
provide: RADIOBUTTON_COMPONENT_TOKEN,
|
|
36
|
+
useExisting: RadioButtonComponent,
|
|
37
|
+
},
|
|
38
|
+
], template: "<gov-form-control>\r\n <gov-form-radio-group [formControl]=\"formControl\">\r\n @if (items) { @for(item of items; track item) {\r\n <gov-form-radio\r\n [size]=\"size | govSize\"\r\n [value]=\"item.value\"\r\n [required]=\"required\"\r\n [identifier]=\"item.id\"\r\n [name]=\"radioGroupName\"\r\n [invalid]=\"ngControl?.errors\"\r\n [disabled]=\"formControl.disabled\"\r\n >\r\n <gov-form-label\r\n [size]=\"size | govSize\"\r\n slot=\"label\"\r\n >\r\n {{ label }}\r\n </gov-form-label>\r\n </gov-form-radio>\r\n } }\r\n </gov-form-radio-group>\r\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\r\n</gov-form-control>\r\n" }]
|
|
39
|
+
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
40
|
+
type: Optional
|
|
41
|
+
}, {
|
|
42
|
+
type: Self
|
|
43
|
+
}] }], propDecorators: { radioGroupName: [{
|
|
44
|
+
type: Input
|
|
45
|
+
}], items: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}], size: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}] } });
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW9idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktZ292Y3ovc3JjL2xpYi9jb21wb25lbnRzL3JhZGlvYnV0dG9uL3JhZGlvYnV0dG9uLmNvbXBvbmVudC50cy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AgIFt2YWx1ZV09XCJpdGVtLnZhbHVlXCJcclxuICAgICAgW3JlcXVpcmVkXT1cInJlcXVpcmVkXCJcclxuICAgICAgW2lkZW50aWZpZXJdPVwiaXRlbS5pZFwiXHJcbiAgICAgIFtuYW1lXT1cInJhZGlvR3JvdXBOYW1lXCJcclxuICAgICAgW2ludmFsaWRdPVwibmdDb250cm9sPy5lcnJvcnNcIlxyXG4gICAgICBbZGlzYWJsZWRdPVwiZm9ybUNvbnRyb2wuZGlzYWJsZWRcIlxyXG4gICAgPlxyXG4gICAgICA8Z292LWZvcm0tbGFiZWxcclxuICAgICAgICBbc2l6ZV09XCJzaXplIHwgZ292U2l6ZVwiXHJcbiAgICAgICAgc2xvdD1cImxhYmVsXCJcclxuICAgICAgPlxyXG4gICAgICAgIHt7IGxhYmVsIH19XHJcbiAgICAgIDwvZ292LWZvcm0tbGFiZWw+XHJcbiAgICA8L2dvdi1mb3JtLXJhZGlvPlxyXG4gICAgfSB9XHJcbiAgPC9nb3YtZm9ybS1yYWRpby1ncm91cD5cclxuICA8di12YWxpZGF0aW9uLW1lc3NhZ2UgW25nQ29udHJvbF09XCJuZ0NvbnRyb2xcIj48L3YtdmFsaWRhdGlvbi1tZXNzYWdlPlxyXG48L2dvdi1mb3JtLWNvbnRyb2w+XHJcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './search.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvc2VhcmNoL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0JBQW9CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3NlYXJjaC5jb21wb25lbnQnOyJdfQ==
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
|
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { GovDesignSystemModule } from '@gov-design-system-ce/angular';
|
|
5
|
+
import { FieldSize } from '@verisoft/ui-core';
|
|
6
|
+
import { Icons } from '../../icons';
|
|
7
|
+
import { GovSizePipe } from '../../pipes';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "@gov-design-system-ce/angular";
|
|
10
|
+
export class SearchComponent {
|
|
11
|
+
placeholder;
|
|
12
|
+
size = FieldSize.medium;
|
|
13
|
+
searchTerm = new EventEmitter();
|
|
14
|
+
value;
|
|
15
|
+
icons = Icons;
|
|
16
|
+
setValue(event) {
|
|
17
|
+
this.value = event.detail.value;
|
|
18
|
+
}
|
|
19
|
+
search() {
|
|
20
|
+
this.searchTerm.emit(this.value);
|
|
21
|
+
}
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.8", type: SearchComponent, isStandalone: true, selector: "v-search", inputs: { placeholder: "placeholder", size: "size" }, outputs: { searchTerm: "searchTerm" }, ngImport: i0, template: "<gov-form-control>\r\n <gov-form-group>\r\n <gov-form-search color=\"neutral\">\r\n <gov-form-input \r\n [placeholder]=\"placeholder\"\r\n [size]=\"size | govSize\"\r\n slot=\"input\"\r\n (gov-input)=\"setValue($event)\"\r\n />\r\n <gov-button\r\n [size]=\"size | govSize\"\r\n color=\"primary\"\r\n type=\"solid\"\r\n slot=\"button\"\r\n (gov-click)=\"search()\"\r\n >\r\n <gov-icon\r\n [name]=\"icons.search\"\r\n />\r\n </gov-button>\r\n </gov-form-search>\r\n </gov-form-group>\r\n</gov-form-control>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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.GovFormControl, selector: "gov-form-control", inputs: ["disabled", "fieldset", "identifier", "invalid", "size", "success"] }, { kind: "component", type: i1.GovFormGroup, selector: "gov-form-group", inputs: ["gap", "orientation"] }, { kind: "component", type: i1.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: i1.GovFormSearch, selector: "gov-form-search", inputs: ["color", "size"] }, { kind: "component", type: i1.GovIcon, selector: "gov-icon", inputs: ["color", "name", "size", "type"] }, { kind: "directive", type: i1.TextValueAccessor, selector: "gov-form-input:not([input-type=number]),gov-form-autocomplete" }, { kind: "pipe", type: GovSizePipe, name: "govSize" }, { kind: "ngmodule", type: ReactiveFormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
24
|
+
}
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SearchComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{ selector: 'v-search', standalone: true, imports: [
|
|
28
|
+
CommonModule,
|
|
29
|
+
GovDesignSystemModule,
|
|
30
|
+
GovSizePipe,
|
|
31
|
+
ReactiveFormsModule,
|
|
32
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<gov-form-control>\r\n <gov-form-group>\r\n <gov-form-search color=\"neutral\">\r\n <gov-form-input \r\n [placeholder]=\"placeholder\"\r\n [size]=\"size | govSize\"\r\n slot=\"input\"\r\n (gov-input)=\"setValue($event)\"\r\n />\r\n <gov-button\r\n [size]=\"size | govSize\"\r\n color=\"primary\"\r\n type=\"solid\"\r\n slot=\"button\"\r\n (gov-click)=\"search()\"\r\n >\r\n <gov-icon\r\n [name]=\"icons.search\"\r\n />\r\n </gov-button>\r\n </gov-form-search>\r\n </gov-form-group>\r\n</gov-form-control>" }]
|
|
33
|
+
}], propDecorators: { placeholder: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}], size: [{
|
|
36
|
+
type: Input
|
|
37
|
+
}], searchTerm: [{
|
|
38
|
+
type: Output
|
|
39
|
+
}] } });
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9zZWFyY2gvc2VhcmNoLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9zZWFyY2gvc2VhcmNoLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQ0gsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxZQUFZLEVBQ1osS0FBSyxFQUNMLE1BQU0sR0FDVCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNyRCxPQUFPLEVBQU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aCxcclxufSlcclxuZXhwb3J0IGNsYXNzIFNlYXJjaENvbXBvbmVudCB7XHJcblxyXG4gICAgQElucHV0KCkgcGxhY2Vob2xkZXIhOiBzdHJpbmc7XHJcblxyXG4gICAgQElucHV0KCkgc2l6ZTogRmllbGRTaXplVHlwZSA9IEZpZWxkU2l6ZS5tZWRpdW07XHJcblxyXG4gICAgQE91dHB1dCgpIHNlYXJjaFRlcm0gPSBuZXcgRXZlbnRFbWl0dGVyPHN0cmluZz4oKTtcclxuXHJcbiAgICB2YWx1ZSE6IHN0cmluZztcclxuXHJcbiAgICBpY29ucyA9IEljb25zXHJcblxyXG4gICAgc2V0VmFsdWUoZXZlbnQ6IGFueSkge1xyXG4gICAgICAgIHRoaXMudmFsdWUgPSBldmVudC5kZXRhaWwudmFsdWU7XHJcbiAgICB9XHJcblxyXG4gICAgc2VhcmNoKCkge1xyXG4gICAgICAgIHRoaXMuc2VhcmNoVGVybS5lbWl0KHRoaXMudmFsdWUpO1xyXG4gICAgfVxyXG59XHJcbiIsIjxnb3YtZm9ybS1jb250cm9sPlxyXG4gICAgPGdvdi1mb3JtLWdyb3VwPlxyXG4gICAgICAgIDxnb3YtZm9ybS1zZWFyY2ggY29sb3I9XCJuZXV0cmFsXCI+XHJcbiAgICAgICAgICAgIDxnb3YtZm9ybS1pbnB1dCBcclxuICAgICAgICAgICAgICAgIFtwbGFjZWhvbGRlcl09XCJwbGFjZWhvbGRlclwiXHJcbiAgICAgICAgICAgICAgICBbc2l6ZV09XCJzaXplIHwgZ292U2l6ZVwiXHJcbiAgICAgICAgICAgICAgICBzbG90PVwiaW5wdXRcIlxyXG4gICAgICAgICAgICAgICAgKGdvdi1pbnB1dCk9XCJzZXRWYWx1ZSgkZXZlbnQpXCJcclxuICAgICAgICAgICAgLz5cclxuICAgICAgICAgICAgPGdvdi1idXR0b25cclxuICAgICAgICAgICAgICAgIFtzaXplXT1cInNpemUgfCBnb3ZTaXplXCJcclxuICAgICAgICAgICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXHJcbiAgICAgICAgICAgICAgICB0eXBlPVwic29saWRcIlxyXG4gICAgICAgICAgICAgICAgc2xvdD1cImJ1dHRvblwiXHJcbiAgICAgICAgICAgICAgICAoZ292LWNsaWNrKT1cInNlYXJjaCgpXCJcclxuICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgICAgPGdvdi1pY29uXHJcbiAgICAgICAgICAgICAgICAgICAgW25hbWVdPVwiaWNvbnMuc2VhcmNoXCJcclxuICAgICAgICAgICAgICAgIC8+XHJcbiAgICAgICAgICAgIDwvZ292LWJ1dHRvbj5cclxuICAgICAgICA8L2dvdi1mb3JtLXNlYXJjaD5cclxuICAgIDwvZ292LWZvcm0tZ3JvdXA+XHJcbjwvZ292LWZvcm0tY29udHJvbD4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './section.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvc2VjdGlvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHFCQUFxQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zZWN0aW9uLmNvbXBvbmVudCc7Il19
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Input, NO_ERRORS_SCHEMA, } from '@angular/core';
|
|
3
|
+
import { GovDesignSystemModule } from '@gov-design-system-ce/angular';
|
|
4
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
+
import { FieldSize, SECTION_COMPONENT_TOKEN, } from '@verisoft/ui-core';
|
|
6
|
+
import { Icons } from '../../icons';
|
|
7
|
+
import { GovSizePipe } from '../../pipes';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "@gov-design-system-ce/angular";
|
|
10
|
+
import * as i2 from "@ngx-translate/core";
|
|
11
|
+
export class SectionComponent {
|
|
12
|
+
title;
|
|
13
|
+
badge;
|
|
14
|
+
showContent = false;
|
|
15
|
+
backgroundColor;
|
|
16
|
+
annotation;
|
|
17
|
+
identifier;
|
|
18
|
+
icon;
|
|
19
|
+
iconType;
|
|
20
|
+
size = FieldSize.medium;
|
|
21
|
+
badgeSlot = 'sufix';
|
|
22
|
+
open = false;
|
|
23
|
+
icons = Icons;
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: SectionComponent, isStandalone: true, selector: "v-section", inputs: { title: "title", badge: "badge", showContent: "showContent", backgroundColor: "backgroundColor", annotation: "annotation", identifier: "identifier", icon: "icon", iconType: "iconType", size: "size", badgeSlot: "badgeSlot", open: "open" }, providers: [
|
|
26
|
+
{
|
|
27
|
+
provide: SECTION_COMPONENT_TOKEN,
|
|
28
|
+
useExisting: SectionComponent,
|
|
29
|
+
},
|
|
30
|
+
], ngImport: i0, template: "<gov-accordion>\r\n <gov-accordion-item \r\n [size]=\"size | govSize\"\r\n [identifier]=\"identifier\"\r\n [open]=\"open\"\r\n >\r\n @if (icon) {\r\n <gov-icon\r\n [name]=\"icons.chevronDown\"\r\n />\r\n } @if (title) {\r\n <h2 slot=\"label\">{{ title | translate }}</h2>\r\n } @if (badge) {\r\n <gov-badge \r\n inverse=\"true\"\r\n size=\"s\"\r\n [slot]=\"badgeSlot\"\r\n >\r\n {{ badge }}\r\n </gov-badge>\r\n } @if (annotation) {\r\n <p slot=\"annotation\">{{ annotation | translate }}</p>\r\n }\r\n <ng-content></ng-content>\r\n </gov-accordion-item>\r\n</gov-accordion>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: GovDesignSystemModule }, { kind: "component", type: i1.GovAccordion, selector: "gov-accordion", inputs: ["noBorder", "size"] }, { kind: "component", type: i1.GovAccordionItem, selector: "gov-accordion-item", inputs: ["disabled", "identifier", "open", "size"] }, { kind: "component", type: i1.GovIcon, selector: "gov-icon", inputs: ["color", "name", "size", "type"] }, { kind: "pipe", type: GovSizePipe, name: "govSize" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
31
|
+
}
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SectionComponent, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{ selector: 'v-section', standalone: true, imports: [
|
|
35
|
+
CommonModule,
|
|
36
|
+
GovDesignSystemModule,
|
|
37
|
+
GovSizePipe,
|
|
38
|
+
TranslateModule,
|
|
39
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
40
|
+
{
|
|
41
|
+
provide: SECTION_COMPONENT_TOKEN,
|
|
42
|
+
useExisting: SectionComponent,
|
|
43
|
+
},
|
|
44
|
+
], schemas: [
|
|
45
|
+
NO_ERRORS_SCHEMA
|
|
46
|
+
], template: "<gov-accordion>\r\n <gov-accordion-item \r\n [size]=\"size | govSize\"\r\n [identifier]=\"identifier\"\r\n [open]=\"open\"\r\n >\r\n @if (icon) {\r\n <gov-icon\r\n [name]=\"icons.chevronDown\"\r\n />\r\n } @if (title) {\r\n <h2 slot=\"label\">{{ title | translate }}</h2>\r\n } @if (badge) {\r\n <gov-badge \r\n inverse=\"true\"\r\n size=\"s\"\r\n [slot]=\"badgeSlot\"\r\n >\r\n {{ badge }}\r\n </gov-badge>\r\n } @if (annotation) {\r\n <p slot=\"annotation\">{{ annotation | translate }}</p>\r\n }\r\n <ng-content></ng-content>\r\n </gov-accordion-item>\r\n</gov-accordion>" }]
|
|
47
|
+
}], propDecorators: { title: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], badge: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], showContent: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], backgroundColor: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}], annotation: [{
|
|
56
|
+
type: Input
|
|
57
|
+
}], identifier: [{
|
|
58
|
+
type: Input
|
|
59
|
+
}], icon: [{
|
|
60
|
+
type: Input
|
|
61
|
+
}], iconType: [{
|
|
62
|
+
type: Input
|
|
63
|
+
}], size: [{
|
|
64
|
+
type: Input
|
|
65
|
+
}], badgeSlot: [{
|
|
66
|
+
type: Input
|
|
67
|
+
}], open: [{
|
|
68
|
+
type: Input
|
|
69
|
+
}] } });
|
|
70
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvc2VjdGlvbi9zZWN0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9zZWN0aW9uL3NlY3Rpb24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFDSCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULEtBQUssRUFDTCxnQkFBZ0IsR0FDbkIsTUFBTSxlQUFlLENBQUM7QUF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dXQoKSBzaG93Q29udGVudCA9IGZhbHNlO1xyXG4gICAgQElucHV0KCkgYmFja2dyb3VuZENvbG9yITogc3RyaW5nO1xyXG4gICAgQElucHV0KCkgYW5ub3RhdGlvbiE6IHN0cmluZztcclxuICAgIEBJbnB1dCgpIGlkZW50aWZpZXIhOiBzdHJpbmc7XHJcbiAgICBASW5wdXQoKSBpY29uITogc3RyaW5nO1xyXG4gICAgQElucHV0KCkgaWNvblR5cGUhOiBzdHJpbmc7XHJcbiAgICBASW5wdXQoKSBzaXplOiBGaWVsZFNpemVUeXBlID0gRmllbGRTaXplLm1lZGl1bTtcclxuICAgIEBJbnB1dCgpIGJhZGdlU2xvdDogJ3ByZWZpeCcgfCAnc3VmaXgnID0gJ3N1Zml4JztcclxuICAgIEBJbnB1dCgpIG9wZW4gPSBmYWxzZTtcclxuXHJcbiAgICBpY29ucyA9IEljb25zO1xyXG59XHJcbiIsIjxnb3YtYWNjb3JkaW9uPlxyXG4gICAgPGdvdi1hY2NvcmRpb24taXRlbSBcclxuICAgICAgICBbc2l6ZV09XCJzaXplIHwgZ292U2l6ZVwiXHJcbiAgICAgICAgW2lkZW50aWZpZXJdPVwiaWRlbnRpZmllclwiXHJcbiAgICAgICAgW29wZW5dPVwib3BlblwiXHJcbiAgICA+XHJcbiAgICAgICAgQGlmIChpY29uKSB7XHJcbiAgICAgICAgICAgIDxnb3YtaWNvblxyXG4gICAgICAgICAgICAgICAgW25hbWVdPVwiaWNvbnMuY2hldnJvbkRvd25cIlxyXG4gICAgICAgICAgICAvPlxyXG4gICAgICAgIH0gQGlmICh0aXRsZSkge1xyXG4gICAgICAgICAgICA8aDIgc2xvdD1cImxhYmVsXCI+e3sgdGl0bGUgfCB0cmFuc2xhdGUgfX08L2gyPlxyXG4gICAgICAgIH0gQGlmIChiYWRnZSkge1xyXG4gICAgICAgICAgICA8Z292LWJhZGdlIFxyXG4gICAgICAgICAgICAgICAgaW52ZXJzZT1cInRydWVcIlxyXG4gICAgICAgICAgICAgICAgc2l6ZT1cInNcIlxyXG4gICAgICAgICAgICAgICAgW3Nsb3RdPVwiYmFkZ2VTbG90XCJcclxuICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgICAge3sgYmFkZ2UgfX1cclxuICAgICAgICAgICAgPC9nb3YtYmFkZ2U+XHJcbiAgICAgICAgfSBAaWYgKGFubm90YXRpb24pIHtcclxuICAgICAgICAgICAgPHAgc2xvdD1cImFubm90YXRpb25cIj57eyBhbm5vdGF0aW9uIHwgdHJhbnNsYXRlIH19PC9wPlxyXG4gICAgICAgIH1cclxuICAgICAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XHJcbiAgICA8L2dvdi1hY2NvcmRpb24taXRlbT5cclxuPC9nb3YtYWNjb3JkaW9uPiJdfQ==
|