@verisoft/ui-govcz 18.6.2 → 18.6.4
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/.eslintrc.json +48 -0
- package/assets/i18n/cs.json +9 -0
- package/assets/i18n/en.json +9 -0
- package/assets/icons/components/24-7.svg +12 -0
- package/assets/icons/components/NO-ICON.svg +2 -0
- package/assets/icons/components/add.svg +6 -0
- package/assets/icons/components/all.svg +3 -0
- package/assets/icons/components/arrival.svg +12 -0
- package/assets/icons/components/arrow-left.svg +3 -0
- package/assets/icons/components/arrow-right.svg +3 -0
- package/assets/icons/components/bars.svg +3 -0
- package/assets/icons/components/bell.svg +4 -0
- package/assets/icons/components/big-help.svg +12 -0
- package/assets/icons/components/book.svg +10 -0
- package/assets/icons/components/bookmarks.svg +11 -0
- package/assets/icons/components/box-arrow-up-right.svg +11 -0
- package/assets/icons/components/business-file.svg +14 -0
- package/assets/icons/components/businessman.svg +3 -0
- package/assets/icons/components/cactus.svg +14 -0
- package/assets/icons/components/calendar.svg +3 -0
- package/assets/icons/components/camera.svg +5 -0
- package/assets/icons/components/car.svg +5 -0
- package/assets/icons/components/card-400.svg +11 -0
- package/assets/icons/components/card-401.svg +11 -0
- package/assets/icons/components/card-403.svg +11 -0
- package/assets/icons/components/card-404.svg +11 -0
- package/assets/icons/components/card-500.svg +11 -0
- package/assets/icons/components/card-502.svg +11 -0
- package/assets/icons/components/card-503.svg +12 -0
- package/assets/icons/components/card-504.svg +15 -0
- package/assets/icons/components/caret-right-fill.svg +3 -0
- package/assets/icons/components/certification.svg +14 -0
- package/assets/icons/components/chamber-deputies-cr.svg +11 -0
- package/assets/icons/components/chamber-deputies.svg +13 -0
- package/assets/icons/components/chat.svg +11 -0
- package/assets/icons/components/check-circle.svg +4 -0
- package/assets/icons/components/check-lg.svg +3 -0
- package/assets/icons/components/chevron-double-left.svg +4 -0
- package/assets/icons/components/chevron-double-right.svg +4 -0
- package/assets/icons/components/chevron-down.svg +3 -0
- package/assets/icons/components/chevron-left.svg +3 -0
- package/assets/icons/components/chevron-right.svg +3 -0
- package/assets/icons/components/chevron-up.svg +3 -0
- package/assets/icons/components/cities.svg +17 -0
- package/assets/icons/components/city-office.svg +17 -0
- package/assets/icons/components/coins.svg +14 -0
- package/assets/icons/components/communication.svg +4 -0
- package/assets/icons/components/confusion.svg +8 -0
- package/assets/icons/components/contact.svg +6 -0
- package/assets/icons/components/copy.svg +10 -0
- package/assets/icons/components/court.svg +5 -0
- package/assets/icons/components/covid.svg +5 -0
- package/assets/icons/components/czech-lion.svg +134 -0
- package/assets/icons/components/dash-lg.svg +3 -0
- package/assets/icons/components/diagram.svg +3 -0
- package/assets/icons/components/digital.svg +10 -0
- package/assets/icons/components/disability.svg +5 -0
- package/assets/icons/components/doc-agreement.svg +7 -0
- package/assets/icons/components/doc-basic-info.svg +18 -0
- package/assets/icons/components/doc-business.svg +8 -0
- package/assets/icons/components/doc-car-point-list.svg +16 -0
- package/assets/icons/components/doc-diploma.svg +17 -0
- package/assets/icons/components/doc-driver-info.svg +8 -0
- package/assets/icons/components/doc-election.svg +13 -0
- package/assets/icons/components/doc-filled.svg +16 -0
- package/assets/icons/components/doc-health.svg +3 -0
- package/assets/icons/components/doc-judgment.svg +8 -0
- package/assets/icons/components/doc-patient.svg +8 -0
- package/assets/icons/components/doc-personal-info.svg +11 -0
- package/assets/icons/components/doc-petition.svg +8 -0
- package/assets/icons/components/doc-registers.svg +7 -0
- package/assets/icons/components/doc-review.svg +20 -0
- package/assets/icons/components/doc-search.svg +8 -0
- package/assets/icons/components/doc-stamp.svg +15 -0
- package/assets/icons/components/doc-state.svg +13 -0
- package/assets/icons/components/doc-taxes.svg +16 -0
- package/assets/icons/components/doc-universal.svg +13 -0
- package/assets/icons/components/doc-visa.svg +14 -0
- package/assets/icons/components/documents.svg +11 -0
- package/assets/icons/components/download.svg +4 -0
- package/assets/icons/components/driver-file.svg +14 -0
- package/assets/icons/components/driver.svg +7 -0
- package/assets/icons/components/driving-licence.svg +7 -0
- package/assets/icons/components/email-notification.svg +12 -0
- package/assets/icons/components/empty-file.svg +13 -0
- package/assets/icons/components/energy.svg +11 -0
- package/assets/icons/components/envelope-fill.svg +3 -0
- package/assets/icons/components/envelope.svg +3 -0
- package/assets/icons/components/error.svg +12 -0
- package/assets/icons/components/european-parliament.svg +11 -0
- package/assets/icons/components/exclamation-lg.svg +3 -0
- package/assets/icons/components/exclamation-triangle-fill.svg +10 -0
- package/assets/icons/components/export.svg +13 -0
- package/assets/icons/components/eye.svg +4 -0
- package/assets/icons/components/family.svg +12 -0
- package/assets/icons/components/fast-forward.svg +1 -0
- package/assets/icons/components/filter.svg +3 -0
- package/assets/icons/components/gear.svg +11 -0
- package/assets/icons/components/geo-alt-fill.svg +10 -0
- package/assets/icons/components/globe.svg +12 -0
- package/assets/icons/components/graduate.svg +4 -0
- package/assets/icons/components/group.svg +3 -0
- package/assets/icons/components/hand-503.svg +10 -0
- package/assets/icons/components/hand-504.svg +7 -0
- package/assets/icons/components/hand.svg +14 -0
- package/assets/icons/components/health.svg +5 -0
- package/assets/icons/components/help.svg +4 -0
- package/assets/icons/components/history.svg +4 -0
- package/assets/icons/components/holiday.svg +13 -0
- package/assets/icons/components/hourglass.svg +4 -0
- package/assets/icons/components/house-door-fill.svg +3 -0
- package/assets/icons/components/house.svg +13 -0
- package/assets/icons/components/id-card.svg +6 -0
- package/assets/icons/components/id-info.svg +9 -0
- package/assets/icons/components/id.svg +6 -0
- package/assets/icons/components/illness.svg +9 -0
- package/assets/icons/components/info-circle-fill.svg +10 -0
- package/assets/icons/components/info-circle.svg +11 -0
- package/assets/icons/components/info-list.svg +14 -0
- package/assets/icons/components/info.svg +3 -0
- package/assets/icons/components/institute-file.svg +23 -0
- package/assets/icons/components/institution.svg +10 -0
- package/assets/icons/components/job-loss.svg +4 -0
- package/assets/icons/components/job.svg +3 -0
- package/assets/icons/components/lightbulb-fill.svg +10 -0
- package/assets/icons/components/list.svg +3 -0
- package/assets/icons/components/loader.svg +3 -0
- package/assets/icons/components/login.svg +11 -0
- package/assets/icons/components/logout.svg +13 -0
- package/assets/icons/components/map.svg +11 -0
- package/assets/icons/components/mobile-phone.svg +13 -0
- package/assets/icons/components/moon.svg +10 -0
- package/assets/icons/components/mouse.svg +3 -0
- package/assets/icons/components/my-filing.svg +15 -0
- package/assets/icons/components/my-state-data.svg +19 -0
- package/assets/icons/components/new-comments.svg +6 -0
- package/assets/icons/components/newborn.svg +16 -0
- package/assets/icons/components/news.svg +20 -0
- package/assets/icons/components/packet.svg +11 -0
- package/assets/icons/components/passport.svg +7 -0
- package/assets/icons/components/pencil.svg +3 -0
- package/assets/icons/components/personal-file.svg +14 -0
- package/assets/icons/components/pet.svg +10 -0
- package/assets/icons/components/petrol-station.svg +14 -0
- package/assets/icons/components/pills.svg +4 -0
- package/assets/icons/components/plus-lg.svg +3 -0
- package/assets/icons/components/population-register.svg +12 -0
- package/assets/icons/components/port-card.svg +8 -0
- package/assets/icons/components/portal.svg +8 -0
- package/assets/icons/components/pregnant.svg +11 -0
- package/assets/icons/components/president.svg +13 -0
- package/assets/icons/components/presidential-election.svg +12 -0
- package/assets/icons/components/print-fill.svg +4 -0
- package/assets/icons/components/profile-settings.svg +13 -0
- package/assets/icons/components/property.svg +4 -0
- package/assets/icons/components/question-circle.svg +4 -0
- package/assets/icons/components/queue.svg +13 -0
- package/assets/icons/components/quotes.svg +6 -0
- package/assets/icons/components/region.svg +11 -0
- package/assets/icons/components/regional-elections-clear.svg +11 -0
- package/assets/icons/components/regional-elections.svg +12 -0
- package/assets/icons/components/register-of-persons.svg +7 -0
- package/assets/icons/components/retiree.svg +8 -0
- package/assets/icons/components/rings.svg +5 -0
- package/assets/icons/components/search.svg +10 -0
- package/assets/icons/components/senate.svg +11 -0
- package/assets/icons/components/senior.svg +4 -0
- package/assets/icons/components/settings.svg +13 -0
- package/assets/icons/components/simple-envelope.svg +3 -0
- package/assets/icons/components/sms-notification.svg +7 -0
- package/assets/icons/components/sos.svg +6 -0
- package/assets/icons/components/star-fill.svg +10 -0
- package/assets/icons/components/state-file.svg +8 -0
- package/assets/icons/components/sun.svg +10 -0
- package/assets/icons/components/telephone.svg +10 -0
- package/assets/icons/components/three-dots-vertical.svg +3 -0
- package/assets/icons/components/time.svg +4 -0
- package/assets/icons/components/tombstone.svg +7 -0
- package/assets/icons/components/trash.svg +6 -0
- package/assets/icons/components/twitter-x.svg +10 -0
- package/assets/icons/components/upload.svg +4 -0
- package/assets/icons/components/user-login.svg +13 -0
- package/assets/icons/components/user.svg +3 -0
- package/assets/icons/components/vaccine.svg +11 -0
- package/assets/icons/components/x-circle.svg +4 -0
- package/assets/icons/components/x-lg.svg +3 -0
- package/assets/icons/components/x.svg +3 -0
- package/assets/logos/v-logo.svg +4 -0
- package/jest.config.ts +21 -0
- package/ng-package.json +15 -0
- package/package.json +23 -38
- package/project.json +49 -0
- package/src/assets/main.css +18 -0
- package/src/config.d.ts +10 -0
- package/src/index.ts +1 -0
- package/src/lib/components/breadcrumb/breadcrumb.component.html +23 -0
- package/src/lib/components/breadcrumb/breadcrumb.component.scss +0 -0
- package/src/lib/components/breadcrumb/breadcrumb.component.spec.ts +21 -0
- package/src/lib/components/breadcrumb/breadcrumb.component.ts +30 -0
- package/{lib/components/breadcrumb/index.d.ts → src/lib/components/breadcrumb/index.ts} +1 -1
- package/src/lib/components/button/button.component.html +26 -0
- package/src/lib/components/button/button.component.scss +0 -0
- package/src/lib/components/button/button.component.ts +72 -0
- package/src/lib/components/button/index.ts +1 -0
- package/src/lib/components/calendar/calendar.component.html +28 -0
- package/src/lib/components/calendar/calendar.component.scss +0 -0
- package/src/lib/components/calendar/calendar.component.ts +79 -0
- package/src/lib/components/calendar/index.ts +1 -0
- package/src/lib/components/checkbox/checkbox.component.html +23 -0
- package/src/lib/components/checkbox/checkbox.component.scss +0 -0
- package/src/lib/components/checkbox/checkbox.component.ts +62 -0
- package/src/lib/components/checkbox/index.ts +1 -0
- package/src/lib/components/confirm-dialog/confirm-dialog.component.html +50 -0
- package/src/lib/components/confirm-dialog/confirm-dialog.component.scss +4 -0
- package/src/lib/components/confirm-dialog/confirm-dialog.component.ts +80 -0
- package/{lib/components/confirm-dialog/index.d.ts → src/lib/components/confirm-dialog/index.ts} +1 -1
- package/src/lib/components/dropdown/dropdown-item.component.html +8 -0
- package/src/lib/components/dropdown/dropdown-item.component.ts +18 -0
- package/src/lib/components/dropdown/dropdown.component.html +90 -0
- package/src/lib/components/dropdown/dropdown.component.scss +108 -0
- package/src/lib/components/dropdown/dropdown.component.spec.ts +21 -0
- package/src/lib/components/dropdown/dropdown.component.ts +297 -0
- package/{lib/components/dropdown/dropdown.model.d.ts → src/lib/components/dropdown/dropdown.model.ts} +6 -6
- package/{lib/components/dropdown/index.d.ts → src/lib/components/dropdown/index.ts} +1 -1
- package/src/lib/components/errors/error.component.html +11 -0
- package/src/lib/components/errors/error.component.scss +0 -0
- package/src/lib/components/errors/error.component.spec.ts +19 -0
- package/src/lib/components/errors/error.component.ts +30 -0
- package/src/lib/components/errors/index.ts +1 -0
- package/src/lib/components/form-field/form-field.component.html +14 -0
- package/src/lib/components/form-field/form-field.component.scss +0 -0
- package/src/lib/components/form-field/form-field.component.spec.ts +21 -0
- package/src/lib/components/form-field/form-field.component.ts +78 -0
- package/{lib/components/form-field/index.d.ts → src/lib/components/form-field/index.ts} +1 -1
- package/src/lib/components/header/header.component.html +122 -0
- package/src/lib/components/header/header.component.scss +0 -0
- package/src/lib/components/header/header.component.ts +91 -0
- package/src/lib/components/header/index.ts +1 -0
- package/{lib/components/index.d.ts → src/lib/components/index.ts} +33 -33
- package/src/lib/components/input-group/index.ts +1 -0
- package/src/lib/components/input-group/input-group.component.html +41 -0
- package/src/lib/components/input-group/input-group.component.scss +0 -0
- package/src/lib/components/input-group/input-group.component.ts +77 -0
- package/src/lib/components/loader/index.ts +1 -0
- package/src/lib/components/loader/loader.component.html +7 -0
- package/src/lib/components/loader/loader.component.scss +0 -0
- package/src/lib/components/loader/loader.component.spec.ts +21 -0
- package/src/lib/components/loader/loader.component.ts +33 -0
- package/src/lib/components/multiselect/index.ts +1 -0
- package/src/lib/components/multiselect/multiselect.component.html +21 -0
- package/src/lib/components/multiselect/multiselect.component.scss +0 -0
- package/src/lib/components/multiselect/multiselect.component.spec.ts +21 -0
- package/src/lib/components/multiselect/multiselect.component.ts +119 -0
- package/src/lib/components/number-input/index.ts +1 -0
- package/src/lib/components/number-input/number-input.component.html +48 -0
- package/src/lib/components/number-input/number-input.component.scss +0 -0
- package/src/lib/components/number-input/number-input.component.ts +82 -0
- package/src/lib/components/page-header/index.ts +1 -0
- package/src/lib/components/page-header/page-header.component.html +3 -0
- package/src/lib/components/page-header/page-header.component.scss +11 -0
- package/src/lib/components/page-header/page-header.component.spec.ts +21 -0
- package/src/lib/components/page-header/page-header.component.ts +29 -0
- package/{lib/components/password/index.d.ts → src/lib/components/password/index.ts} +1 -1
- package/src/lib/components/password/password.component.html +31 -0
- package/src/lib/components/password/password.component.scss +0 -0
- package/src/lib/components/password/password.component.spec.ts +21 -0
- package/src/lib/components/password/password.component.ts +85 -0
- package/src/lib/components/radiobutton/index.ts +1 -0
- package/src/lib/components/radiobutton/radiobutton.component.html +23 -0
- package/src/lib/components/radiobutton/radiobutton.component.scss +0 -0
- package/src/lib/components/radiobutton/radiobutton.component.ts +58 -0
- package/src/lib/components/search/index.ts +1 -0
- package/src/lib/components/search/search.component.html +23 -0
- package/src/lib/components/search/search.component.scss +0 -0
- package/src/lib/components/search/search.component.ts +47 -0
- package/src/lib/components/section/index.ts +1 -0
- package/src/lib/components/section/section.component.html +26 -0
- package/src/lib/components/section/section.component.scss +0 -0
- package/src/lib/components/section/section.component.ts +57 -0
- package/src/lib/components/shared-components/action-button-group/action-button-group.component.html +27 -0
- 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 +21 -0
- package/src/lib/components/shared-components/action-button-group/action-button-group.component.ts +114 -0
- package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.html +11 -0
- 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 +21 -0
- package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.ts +71 -0
- package/{lib/components/shared-components/action-button-group/index.d.ts → src/lib/components/shared-components/action-button-group/index.ts} +2 -2
- package/src/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.ts +142 -0
- package/src/lib/components/shared-components/dynamic-component/dynamic-component.component.ts +56 -0
- package/{lib/components/shared-components/dynamic-component/index.d.ts → src/lib/components/shared-components/dynamic-component/index.ts} +2 -2
- package/src/lib/components/shared-components/feature-list/directives/feature-list-column.directive.ts +32 -0
- package/src/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.ts +8 -0
- package/src/lib/components/shared-components/feature-list/feature-list-filter.pipe.ts +21 -0
- package/src/lib/components/shared-components/feature-list/feature-list-page.component.ts +31 -0
- package/src/lib/components/shared-components/feature-list/feature-list-page.model.ts +42 -0
- package/src/lib/components/shared-components/feature-list/feature-list.component.html +59 -0
- package/src/lib/components/shared-components/feature-list/feature-list.component.scss +10 -0
- package/src/lib/components/shared-components/feature-list/feature-list.component.ts +342 -0
- package/{lib/components/shared-components/feature-list/index.d.ts → src/lib/components/shared-components/feature-list/index.ts} +5 -5
- package/src/lib/components/shared-components/filter/directives/filter-field.directive.ts +35 -0
- package/src/lib/components/shared-components/filter/filter.component.html +68 -0
- package/src/lib/components/shared-components/filter/filter.component.scss +0 -0
- package/src/lib/components/shared-components/filter/filter.component.spec.ts +21 -0
- package/src/lib/components/shared-components/filter/filter.component.stories.ts +23 -0
- package/src/lib/components/shared-components/filter/filter.component.ts +284 -0
- package/src/lib/components/shared-components/filter/filter.model.ts +18 -0
- package/{lib/components/shared-components/filter/index.d.ts → src/lib/components/shared-components/filter/index.ts} +2 -2
- package/src/lib/components/shared-components/generic-field/generic-field.component.html +97 -0
- package/src/lib/components/shared-components/generic-field/generic-field.component.spec.ts +21 -0
- package/src/lib/components/shared-components/generic-field/generic-field.component.ts +94 -0
- package/{lib/components/shared-components/generic-field/index.d.ts → src/lib/components/shared-components/generic-field/index.ts} +1 -1
- package/src/lib/components/shared-components/generic-form/generic-form.component.html +46 -0
- package/src/lib/components/shared-components/generic-form/generic-form.component.spec.ts +21 -0
- package/src/lib/components/shared-components/generic-form/generic-form.component.ts +57 -0
- package/src/lib/components/shared-components/generic-form/generic-form.model.spec.ts +82 -0
- package/src/lib/components/shared-components/generic-form/generic-form.model.ts +68 -0
- package/{lib/components/shared-components/generic-form/index.d.ts → src/lib/components/shared-components/generic-form/index.ts} +2 -2
- package/{lib/components/shared-components/index.d.ts → src/lib/components/shared-components/index.ts} +6 -6
- package/{lib/components/side-menu/index.d.ts → src/lib/components/side-menu/index.ts} +2 -2
- package/src/lib/components/side-menu/side-menu.component.html +25 -0
- package/src/lib/components/side-menu/side-menu.component.scss +23 -0
- package/src/lib/components/side-menu/side-menu.component.ts +42 -0
- package/src/lib/components/side-menu/side-menu.module.ts +64 -0
- package/src/lib/components/sidemenu/index.ts +2 -0
- package/{lib/components/snackbar/index.d.ts → src/lib/components/snackbar/index.ts} +2 -2
- package/src/lib/components/snackbar/services/snackbar.service.ts +73 -0
- package/src/lib/components/snackbar/snackbar.component.html +14 -0
- package/src/lib/components/snackbar/snackbar.component.scss +0 -0
- package/src/lib/components/snackbar/snackbar.component.spec.ts +21 -0
- package/src/lib/components/snackbar/snackbar.component.ts +45 -0
- package/{lib/components/snackbar/snackbar.model.d.ts → src/lib/components/snackbar/snackbar.model.ts} +10 -10
- package/src/lib/components/stepper/index.ts +1 -0
- package/src/lib/components/stepper/stepper.component.html +35 -0
- package/src/lib/components/stepper/stepper.component.scss +9 -0
- package/src/lib/components/stepper/stepper.component.ts +61 -0
- package/src/lib/components/switch/index.ts +1 -0
- package/src/lib/components/switch/switch.component.html +16 -0
- package/src/lib/components/switch/switch.component.scss +0 -0
- package/src/lib/components/switch/switch.component.ts +37 -0
- package/{lib/components/tab-view/index.d.ts → src/lib/components/tab-view/index.ts} +3 -3
- package/src/lib/components/tab-view/tab-view-item.component.ts +23 -0
- package/src/lib/components/tab-view/tab-view.component.html +51 -0
- package/src/lib/components/tab-view/tab-view.component.scss +43 -0
- package/src/lib/components/tab-view/tab-view.component.ts +61 -0
- package/src/lib/components/tab-view/tab-view.module.ts +25 -0
- package/{lib/components/table/index.d.ts → src/lib/components/table/index.ts} +1 -1
- package/src/lib/components/table/table-pagination-info.component.html +9 -0
- package/src/lib/components/table/table-pagination-info.component.ts +22 -0
- package/src/lib/components/table/table.component.html +198 -0
- package/src/lib/components/table/table.component.scss +193 -0
- package/src/lib/components/table/table.component.ts +387 -0
- package/src/lib/components/table/table.model.ts +17 -0
- package/src/lib/components/table/table.models.ts +12 -0
- package/src/lib/components/textarea/index.ts +1 -0
- package/src/lib/components/textarea/textarea.component.html +50 -0
- package/src/lib/components/textarea/textarea.component.scss +0 -0
- package/src/lib/components/textarea/textarea.component.ts +78 -0
- package/src/lib/components/textfield/index.ts +1 -0
- package/src/lib/components/textfield/textfield.component.html +56 -0
- package/src/lib/components/textfield/textfield.component.scss +0 -0
- package/src/lib/components/textfield/textfield.component.ts +114 -0
- package/src/lib/components/tooltip/index.ts +1 -0
- package/src/lib/components/tooltip/tooltip.component.html +10 -0
- package/src/lib/components/tooltip/tooltip.component.scss +0 -0
- package/src/lib/components/tooltip/tooltip.component.ts +57 -0
- package/{lib/components/tristatecheckbox/index.d.ts → src/lib/components/tristatecheckbox/index.ts} +1 -1
- package/src/lib/components/tristatecheckbox/tristatecheckbox.component.html +23 -0
- package/src/lib/components/tristatecheckbox/tristatecheckbox.component.scss +0 -0
- package/src/lib/components/tristatecheckbox/tristatecheckbox.component.ts +103 -0
- package/src/lib/icons.ts +36 -0
- package/{lib/index.d.ts → src/lib/index.ts} +5 -5
- package/src/lib/init.service.ts +11 -0
- package/src/lib/interceptors/http-error-message.interceptor.ts +45 -0
- package/src/lib/pages/bad-request-page/bad-request-page.component.html +5 -0
- 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 +15 -0
- package/src/lib/pages/error-page/error-page.component.html +5 -0
- package/src/lib/pages/error-page/error-page.component.scss +0 -0
- package/src/lib/pages/error-page/error-page.component.ts +32 -0
- package/src/lib/pages/error-page/error-page.constants.ts +19 -0
- package/{lib/pages/index.d.ts → src/lib/pages/index.ts} +3 -3
- package/src/lib/pages/internal-server-error-page/internal-server-error-page.component.html +5 -0
- 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 +16 -0
- package/{lib/pages/not-authenticated/index.d.ts → src/lib/pages/not-authenticated/index.ts} +1 -1
- package/src/lib/pages/not-authenticated/not-authenticated.component.html +5 -0
- package/src/lib/pages/not-authenticated/not-authenticated.component.ts +14 -0
- package/{lib/pages/not-authorized/index.d.ts → src/lib/pages/not-authorized/index.ts} +1 -1
- package/src/lib/pages/not-authorized/not-authorized.component.html +5 -0
- package/src/lib/pages/not-authorized/not-authorized.component.ts +18 -0
- package/{lib/pages/not-found/index.d.ts → src/lib/pages/not-found/index.ts} +1 -1
- package/src/lib/pages/not-found/not-found.component.html +5 -0
- package/src/lib/pages/not-found/not-found.component.ts +18 -0
- package/src/lib/pages/not-found-page/not-found-page.component.html +6 -0
- 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 +16 -0
- package/src/lib/pipes/color/color.pipe.ts +24 -0
- package/{lib/pipes/index.d.ts → src/lib/pipes/index.ts} +3 -3
- package/src/lib/pipes/multiselect/multiselect-options.pipe.ts +61 -0
- package/src/lib/pipes/size/size.pipe.ts +20 -0
- package/src/sass/header.css +526 -0
- package/src/sass/header.scss +480 -0
- package/src/sass/main.scss +246 -0
- package/src/sass/scrollbar.scss +22 -0
- package/src/sass/sidemenu.css +205 -0
- package/src/sass/vendors/_bootstrap.scss +2 -0
- package/src/test-setup.ts +8 -0
- package/tsconfig.json +30 -0
- package/tsconfig.lib.json +17 -0
- package/tsconfig.lib.prod.json +9 -0
- package/tsconfig.spec.json +16 -0
- package/esm2022/index.mjs +0 -2
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +0 -34
- package/esm2022/lib/components/breadcrumb/index.mjs +0 -2
- package/esm2022/lib/components/button/button.component.mjs +0 -87
- package/esm2022/lib/components/button/index.mjs +0 -2
- package/esm2022/lib/components/calendar/calendar.component.mjs +0 -87
- package/esm2022/lib/components/calendar/index.mjs +0 -2
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +0 -62
- package/esm2022/lib/components/checkbox/index.mjs +0 -2
- package/esm2022/lib/components/confirm-dialog/confirm-dialog.component.mjs +0 -72
- package/esm2022/lib/components/confirm-dialog/index.mjs +0 -2
- package/esm2022/lib/components/dropdown/dropdown-item.component.mjs +0 -14
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +0 -280
- package/esm2022/lib/components/dropdown/dropdown.model.mjs +0 -2
- package/esm2022/lib/components/dropdown/index.mjs +0 -2
- package/esm2022/lib/components/errors/error.component.mjs +0 -34
- package/esm2022/lib/components/errors/index.mjs +0 -2
- package/esm2022/lib/components/form-field/form-field.component.mjs +0 -92
- package/esm2022/lib/components/form-field/index.mjs +0 -2
- package/esm2022/lib/components/header/header.component.mjs +0 -85
- package/esm2022/lib/components/header/index.mjs +0 -2
- package/esm2022/lib/components/index.mjs +0 -34
- package/esm2022/lib/components/input-group/index.mjs +0 -2
- package/esm2022/lib/components/input-group/input-group.component.mjs +0 -89
- package/esm2022/lib/components/loader/index.mjs +0 -2
- package/esm2022/lib/components/loader/loader.component.mjs +0 -34
- package/esm2022/lib/components/multiselect/index.mjs +0 -2
- package/esm2022/lib/components/multiselect/multiselect.component.mjs +0 -121
- package/esm2022/lib/components/number-input/index.mjs +0 -2
- package/esm2022/lib/components/number-input/number-input.component.mjs +0 -104
- package/esm2022/lib/components/page-header/index.mjs +0 -2
- package/esm2022/lib/components/page-header/page-header.component.mjs +0 -28
- package/esm2022/lib/components/password/index.mjs +0 -2
- package/esm2022/lib/components/password/password.component.mjs +0 -94
- package/esm2022/lib/components/radiobutton/index.mjs +0 -2
- package/esm2022/lib/components/radiobutton/radiobutton.component.mjs +0 -50
- package/esm2022/lib/components/search/index.mjs +0 -2
- package/esm2022/lib/components/search/search.component.mjs +0 -40
- package/esm2022/lib/components/section/index.mjs +0 -2
- package/esm2022/lib/components/section/section.component.mjs +0 -70
- package/esm2022/lib/components/shared-components/action-button-group/action-button-group.component.mjs +0 -97
- package/esm2022/lib/components/shared-components/action-button-group/components/action-button/action-button.component.mjs +0 -64
- package/esm2022/lib/components/shared-components/action-button-group/index.mjs +0 -3
- package/esm2022/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.mjs +0 -91
- package/esm2022/lib/components/shared-components/dynamic-component/dynamic-component.component.mjs +0 -42
- package/esm2022/lib/components/shared-components/dynamic-component/index.mjs +0 -3
- package/esm2022/lib/components/shared-components/feature-list/directives/feature-list-column.directive.mjs +0 -43
- package/esm2022/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.mjs +0 -16
- package/esm2022/lib/components/shared-components/feature-list/feature-list-filter.pipe.mjs +0 -24
- package/esm2022/lib/components/shared-components/feature-list/feature-list-page.component.mjs +0 -43
- package/esm2022/lib/components/shared-components/feature-list/feature-list-page.model.mjs +0 -16
- package/esm2022/lib/components/shared-components/feature-list/feature-list.component.mjs +0 -285
- package/esm2022/lib/components/shared-components/feature-list/index.mjs +0 -6
- package/esm2022/lib/components/shared-components/filter/directives/filter-field.directive.mjs +0 -53
- package/esm2022/lib/components/shared-components/filter/filter.component.mjs +0 -195
- package/esm2022/lib/components/shared-components/filter/filter.model.mjs +0 -16
- package/esm2022/lib/components/shared-components/filter/index.mjs +0 -3
- package/esm2022/lib/components/shared-components/generic-field/generic-field.component.mjs +0 -98
- package/esm2022/lib/components/shared-components/generic-field/index.mjs +0 -2
- package/esm2022/lib/components/shared-components/generic-form/generic-form.component.mjs +0 -46
- package/esm2022/lib/components/shared-components/generic-form/generic-form.model.mjs +0 -50
- package/esm2022/lib/components/shared-components/generic-form/index.mjs +0 -3
- package/esm2022/lib/components/shared-components/index.mjs +0 -7
- package/esm2022/lib/components/side-menu/index.mjs +0 -3
- package/esm2022/lib/components/side-menu/side-menu.component.mjs +0 -48
- package/esm2022/lib/components/side-menu/side-menu.module.mjs +0 -73
- package/esm2022/lib/components/snackbar/index.mjs +0 -3
- package/esm2022/lib/components/snackbar/services/snackbar.service.mjs +0 -75
- package/esm2022/lib/components/snackbar/snackbar.component.mjs +0 -61
- package/esm2022/lib/components/snackbar/snackbar.model.mjs +0 -2
- package/esm2022/lib/components/stepper/index.mjs +0 -2
- package/esm2022/lib/components/stepper/stepper.component.mjs +0 -66
- package/esm2022/lib/components/switch/index.mjs +0 -2
- package/esm2022/lib/components/switch/switch.component.mjs +0 -45
- package/esm2022/lib/components/tab-view/index.mjs +0 -4
- package/esm2022/lib/components/tab-view/tab-view-item.component.mjs +0 -41
- package/esm2022/lib/components/tab-view/tab-view.component.mjs +0 -56
- package/esm2022/lib/components/tab-view/tab-view.module.mjs +0 -41
- package/esm2022/lib/components/table/index.mjs +0 -2
- package/esm2022/lib/components/table/table-pagination-info.component.mjs +0 -32
- package/esm2022/lib/components/table/table.component.mjs +0 -359
- package/esm2022/lib/components/table/table.model.mjs +0 -14
- package/esm2022/lib/components/textarea/index.mjs +0 -2
- package/esm2022/lib/components/textarea/textarea.component.mjs +0 -95
- package/esm2022/lib/components/textfield/index.mjs +0 -2
- package/esm2022/lib/components/textfield/textfield.component.mjs +0 -124
- package/esm2022/lib/components/tooltip/index.mjs +0 -2
- package/esm2022/lib/components/tooltip/tooltip.component.mjs +0 -66
- package/esm2022/lib/components/tristatecheckbox/index.mjs +0 -2
- package/esm2022/lib/components/tristatecheckbox/tristatecheckbox.component.mjs +0 -89
- package/esm2022/lib/icons.mjs +0 -35
- package/esm2022/lib/index.mjs +0 -6
- package/esm2022/lib/init.service.mjs +0 -17
- package/esm2022/lib/pages/index.mjs +0 -4
- package/esm2022/lib/pages/not-authenticated/index.mjs +0 -2
- package/esm2022/lib/pages/not-authenticated/not-authenticated.component.mjs +0 -17
- package/esm2022/lib/pages/not-authorized/index.mjs +0 -2
- package/esm2022/lib/pages/not-authorized/not-authorized.component.mjs +0 -20
- package/esm2022/lib/pages/not-found/index.mjs +0 -2
- package/esm2022/lib/pages/not-found/not-found.component.mjs +0 -20
- package/esm2022/lib/pipes/color/color.pipe.mjs +0 -27
- package/esm2022/lib/pipes/index.mjs +0 -4
- package/esm2022/lib/pipes/multiselect/multiselect-options.pipe.mjs +0 -52
- package/esm2022/lib/pipes/size/size.pipe.mjs +0 -23
- package/esm2022/verisoft-ui-govcz.mjs +0 -5
- package/fesm2022/verisoft-ui-govcz.mjs +0 -3742
- package/fesm2022/verisoft-ui-govcz.mjs.map +0 -1
- package/index.d.ts +0 -1
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +0 -7
- package/lib/components/button/button.component.d.ts +0 -26
- package/lib/components/button/index.d.ts +0 -1
- package/lib/components/calendar/calendar.component.d.ts +0 -23
- package/lib/components/calendar/index.d.ts +0 -1
- package/lib/components/checkbox/checkbox.component.d.ts +0 -15
- package/lib/components/checkbox/index.d.ts +0 -1
- package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +0 -15
- package/lib/components/dropdown/dropdown-item.component.d.ts +0 -7
- package/lib/components/dropdown/dropdown.component.d.ts +0 -65
- package/lib/components/errors/error.component.d.ts +0 -14
- package/lib/components/errors/index.d.ts +0 -1
- package/lib/components/form-field/form-field.component.d.ts +0 -25
- package/lib/components/header/header.component.d.ts +0 -25
- package/lib/components/header/index.d.ts +0 -1
- package/lib/components/input-group/index.d.ts +0 -1
- package/lib/components/input-group/input-group.component.d.ts +0 -24
- package/lib/components/loader/index.d.ts +0 -1
- package/lib/components/loader/loader.component.d.ts +0 -8
- package/lib/components/multiselect/index.d.ts +0 -1
- package/lib/components/multiselect/multiselect.component.d.ts +0 -35
- package/lib/components/number-input/index.d.ts +0 -1
- package/lib/components/number-input/number-input.component.d.ts +0 -29
- package/lib/components/page-header/index.d.ts +0 -1
- package/lib/components/page-header/page-header.component.d.ts +0 -9
- package/lib/components/password/password.component.d.ts +0 -23
- package/lib/components/radiobutton/index.d.ts +0 -1
- package/lib/components/radiobutton/radiobutton.component.d.ts +0 -12
- package/lib/components/search/index.d.ts +0 -1
- package/lib/components/search/search.component.d.ts +0 -14
- package/lib/components/section/index.d.ts +0 -1
- package/lib/components/section/section.component.d.ts +0 -18
- package/lib/components/shared-components/action-button-group/action-button-group.component.d.ts +0 -29
- package/lib/components/shared-components/action-button-group/components/action-button/action-button.component.d.ts +0 -24
- package/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.d.ts +0 -17
- package/lib/components/shared-components/dynamic-component/dynamic-component.component.d.ts +0 -16
- package/lib/components/shared-components/feature-list/directives/feature-list-column.directive.d.ts +0 -10
- package/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.d.ts +0 -6
- package/lib/components/shared-components/feature-list/feature-list-filter.pipe.d.ts +0 -9
- package/lib/components/shared-components/feature-list/feature-list-page.component.d.ts +0 -9
- package/lib/components/shared-components/feature-list/feature-list-page.model.d.ts +0 -23
- package/lib/components/shared-components/feature-list/feature-list.component.d.ts +0 -62
- package/lib/components/shared-components/filter/directives/filter-field.directive.d.ts +0 -20
- package/lib/components/shared-components/filter/filter.component.d.ts +0 -53
- package/lib/components/shared-components/filter/filter.model.d.ts +0 -2
- package/lib/components/shared-components/generic-field/generic-field.component.d.ts +0 -28
- package/lib/components/shared-components/generic-form/generic-form.component.d.ts +0 -15
- package/lib/components/shared-components/generic-form/generic-form.model.d.ts +0 -4
- package/lib/components/side-menu/side-menu.component.d.ts +0 -15
- package/lib/components/side-menu/side-menu.module.d.ts +0 -12
- package/lib/components/snackbar/services/snackbar.service.d.ts +0 -18
- package/lib/components/snackbar/snackbar.component.d.ts +0 -18
- package/lib/components/stepper/index.d.ts +0 -1
- package/lib/components/stepper/stepper.component.d.ts +0 -20
- package/lib/components/switch/index.d.ts +0 -1
- package/lib/components/switch/switch.component.d.ts +0 -12
- package/lib/components/tab-view/tab-view-item.component.d.ts +0 -14
- package/lib/components/tab-view/tab-view.component.d.ts +0 -19
- package/lib/components/tab-view/tab-view.module.d.ts +0 -12
- package/lib/components/table/table-pagination-info.component.d.ts +0 -12
- package/lib/components/table/table.component.d.ts +0 -91
- package/lib/components/table/table.model.d.ts +0 -3
- package/lib/components/textarea/index.d.ts +0 -1
- package/lib/components/textarea/textarea.component.d.ts +0 -25
- package/lib/components/textfield/index.d.ts +0 -1
- package/lib/components/textfield/textfield.component.d.ts +0 -28
- package/lib/components/tooltip/index.d.ts +0 -1
- package/lib/components/tooltip/tooltip.component.d.ts +0 -18
- package/lib/components/tristatecheckbox/tristatecheckbox.component.d.ts +0 -27
- package/lib/icons.d.ts +0 -2
- package/lib/init.service.d.ts +0 -6
- package/lib/pages/not-authenticated/not-authenticated.component.d.ts +0 -5
- package/lib/pages/not-authorized/not-authorized.component.d.ts +0 -6
- package/lib/pages/not-found/not-found.component.d.ts +0 -6
- package/lib/pipes/color/color.pipe.d.ts +0 -8
- package/lib/pipes/multiselect/multiselect-options.pipe.d.ts +0 -9
- package/lib/pipes/size/size.pipe.d.ts +0 -8
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, EventEmitter, inject, Input, Output } from '@angular/core';
|
|
3
|
-
import { RouterModule } from '@angular/router';
|
|
4
|
-
import { GovDesignSystemModule } from '@gov-design-system-ce/angular';
|
|
5
|
-
import { SIDE_MENU_COMPONENT_TOKEN, SideMenuService, } from '@verisoft/ui-core';
|
|
6
|
-
import { Icons } from '../../icons';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/router";
|
|
9
|
-
import * as i2 from "@gov-design-system-ce/angular";
|
|
10
|
-
export class SideMenuComponent {
|
|
11
|
-
menuService = inject(SideMenuService);
|
|
12
|
-
items = [];
|
|
13
|
-
logoUrl = '';
|
|
14
|
-
userName;
|
|
15
|
-
userRole;
|
|
16
|
-
minimalized = new EventEmitter();
|
|
17
|
-
itemSelected = new EventEmitter();
|
|
18
|
-
icons = Icons;
|
|
19
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SideMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: SideMenuComponent, isStandalone: true, selector: "v-side-menu", inputs: { items: "items", logoUrl: "logoUrl", userName: "userName", userRole: "userRole" }, outputs: { minimalized: "minimalized", itemSelected: "itemSelected" }, providers: [
|
|
21
|
-
{
|
|
22
|
-
provide: SIDE_MENU_COMPONENT_TOKEN,
|
|
23
|
-
useExisting: SideMenuComponent,
|
|
24
|
-
},
|
|
25
|
-
], ngImport: i0, template: "<div class=\"gov-sidemenu-inner\">\r\n <div class=\"gov-category-list__col gov-category-list__categories\">\r\n <div class=\"gov-category-list__col-inner\">\r\n <ul class=\"gov-list--plain gov-category-list__nav\">\r\n @for (item of items; track item) {\r\n @for (child of item.children; track child) {\r\n <li class=\"gov-category-list__nav-item\">\r\n <a \r\n class=\"gov-category-list__nav-link\"\r\n [routerLink]=\"child.url\"\r\n routerLinkActive=\"gov-category-list__nav-active\"\r\n title=\"{{child.label}}\"\r\n >\r\n <span class=\"gov-link gov-link--standalone\">{{child.label}}</span>\r\n @if (child.children) {\r\n <gov-icon [name]=\"icons.chevronDown\" />\r\n }\r\n </a>\r\n </li>\r\n }\r\n }\r\n </ul>\r\n </div>\r\n </div>\r\n</div>", styles: [".gov-category-list__nav-link gov-icon{display:block;position:absolute;right:.625rem;top:1rem;font-size:1.5rem}.gov-category-list__nav-link gov-icon-:hover{color:--color-neutral-0}.gov-link{text-decoration:none}.gov-category-list__nav-active{background-color:var(--color-primary-600)}.gov-category-list__nav-active span{color:var(--color-neutral-0)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: GovDesignSystemModule }, { kind: "component", type: i2.GovIcon, selector: "gov-icon", inputs: ["color", "name", "size", "type"] }] });
|
|
26
|
-
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SideMenuComponent, decorators: [{
|
|
28
|
-
type: Component,
|
|
29
|
-
args: [{ selector: 'v-side-menu', standalone: true, imports: [CommonModule, RouterModule, GovDesignSystemModule], providers: [
|
|
30
|
-
{
|
|
31
|
-
provide: SIDE_MENU_COMPONENT_TOKEN,
|
|
32
|
-
useExisting: SideMenuComponent,
|
|
33
|
-
},
|
|
34
|
-
], template: "<div class=\"gov-sidemenu-inner\">\r\n <div class=\"gov-category-list__col gov-category-list__categories\">\r\n <div class=\"gov-category-list__col-inner\">\r\n <ul class=\"gov-list--plain gov-category-list__nav\">\r\n @for (item of items; track item) {\r\n @for (child of item.children; track child) {\r\n <li class=\"gov-category-list__nav-item\">\r\n <a \r\n class=\"gov-category-list__nav-link\"\r\n [routerLink]=\"child.url\"\r\n routerLinkActive=\"gov-category-list__nav-active\"\r\n title=\"{{child.label}}\"\r\n >\r\n <span class=\"gov-link gov-link--standalone\">{{child.label}}</span>\r\n @if (child.children) {\r\n <gov-icon [name]=\"icons.chevronDown\" />\r\n }\r\n </a>\r\n </li>\r\n }\r\n }\r\n </ul>\r\n </div>\r\n </div>\r\n</div>", styles: [".gov-category-list__nav-link gov-icon{display:block;position:absolute;right:.625rem;top:1rem;font-size:1.5rem}.gov-category-list__nav-link gov-icon-:hover{color:--color-neutral-0}.gov-link{text-decoration:none}.gov-category-list__nav-active{background-color:var(--color-primary-600)}.gov-category-list__nav-active span{color:var(--color-neutral-0)}\n"] }]
|
|
35
|
-
}], propDecorators: { items: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}], logoUrl: [{
|
|
38
|
-
type: Input
|
|
39
|
-
}], userName: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}], userRole: [{
|
|
42
|
-
type: Input
|
|
43
|
-
}], minimalized: [{
|
|
44
|
-
type: Output
|
|
45
|
-
}], itemSelected: [{
|
|
46
|
-
type: Output
|
|
47
|
-
}] } });
|
|
48
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lkZS1tZW51LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9zaWRlLW1lbnUvc2lkZS1tZW51LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9zaWRlLW1lbnUvc2lkZS1tZW51LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxNQUFNLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxN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mFjayBpdGVtKSB7XHJcbiAgICAgICAgICAgICAgICBAZm9yIChjaGlsZCBvZiBpdGVtLmNoaWxkcmVuOyB0cmFjayBjaGlsZCkge1xyXG4gICAgICAgICAgICAgICAgICAgIDxsaSBjbGFzcz1cImdvdi1jYXRlZ29yeS1saXN0X19uYXYtaXRlbVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8YSBcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwiZ292LWNhdGVnb3J5LWxpc3RfX25hdi1saW5rXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtyb3V0ZXJMaW5rXT1cImNoaWxkLnVybFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByb3V0ZXJMaW5rQWN0aXZlPVwiZ292LWNhdGVnb3J5LWxpc3RfX25hdi1hY3RpdmVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU9XCJ7e2NoaWxkLmxhYmVsfX1cIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cImdvdi1saW5rIGdvdi1saW5rLS1zdGFuZGFsb25lXCI+e3tjaGlsZC5sYWJlbH19PC9zcGFuPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgQGlmIChjaGlsZC5jaGlsZHJlbikge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGdvdi1pY29uIFtuYW1lXT1cImljb25zLmNoZXZyb25Eb3duXCIgLz5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgPC9hPlxyXG4gICAgICAgICAgICAgICAgICAgIDwvbGk+XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgPC91bD5cclxuICAgICAgICA8L2Rpdj5cclxuICAgIDwvZGl2PlxyXG48L2Rpdj4iXX0=
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { MENU_TOKEN, SIDE_MENU_COMPONENT_TOKEN, SIDE_MENU_STATE_TOKEN, SideMenuProviderService, UnsubscribeComponent, } from '@verisoft/ui-core';
|
|
3
|
-
import { SideMenuComponent } from './side-menu.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@verisoft/ui-core";
|
|
6
|
-
export class SideMenuModule extends UnsubscribeComponent {
|
|
7
|
-
service;
|
|
8
|
-
constructor(service) {
|
|
9
|
-
super();
|
|
10
|
-
this.service = service;
|
|
11
|
-
}
|
|
12
|
-
static forRoot(config) {
|
|
13
|
-
const moduleWithProvider = {
|
|
14
|
-
ngModule: SideMenuModule,
|
|
15
|
-
};
|
|
16
|
-
if (config?.items) {
|
|
17
|
-
moduleWithProvider.providers = [
|
|
18
|
-
{
|
|
19
|
-
provide: MENU_TOKEN,
|
|
20
|
-
useValue: config.items,
|
|
21
|
-
},
|
|
22
|
-
];
|
|
23
|
-
}
|
|
24
|
-
return moduleWithProvider;
|
|
25
|
-
}
|
|
26
|
-
static forChild(menu) {
|
|
27
|
-
return {
|
|
28
|
-
ngModule: SideMenuModule,
|
|
29
|
-
providers: [
|
|
30
|
-
{
|
|
31
|
-
provide: MENU_TOKEN,
|
|
32
|
-
useValue: menu,
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SideMenuModule, deps: [{ token: i1.SideMenuProviderService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
38
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.8", ngImport: i0, type: SideMenuModule });
|
|
39
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SideMenuModule, providers: [
|
|
40
|
-
SideMenuProviderService,
|
|
41
|
-
{
|
|
42
|
-
provide: SIDE_MENU_COMPONENT_TOKEN,
|
|
43
|
-
useExisting: SideMenuComponent,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
provide: SIDE_MENU_STATE_TOKEN,
|
|
47
|
-
useValue: localStorage.getItem('SideMenuStateToken') ?? {
|
|
48
|
-
expanded: [],
|
|
49
|
-
minimalized: false,
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
] });
|
|
53
|
-
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SideMenuModule, decorators: [{
|
|
55
|
-
type: NgModule,
|
|
56
|
-
args: [{
|
|
57
|
-
providers: [
|
|
58
|
-
SideMenuProviderService,
|
|
59
|
-
{
|
|
60
|
-
provide: SIDE_MENU_COMPONENT_TOKEN,
|
|
61
|
-
useExisting: SideMenuComponent,
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
provide: SIDE_MENU_STATE_TOKEN,
|
|
65
|
-
useValue: localStorage.getItem('SideMenuStateToken') ?? {
|
|
66
|
-
expanded: [],
|
|
67
|
-
minimalized: false,
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
}]
|
|
72
|
-
}], ctorParameters: () => [{ type: i1.SideMenuProviderService }] });
|
|
73
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lkZS1tZW51Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9zaWRlLW1lbnUvc2lkZS1tZW51Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFB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GNvbmZpZz8uaXRlbXMpIHtcclxuICAgICAgbW9kdWxlV2l0aFByb3ZpZGVyLnByb3ZpZGVycyA9IFtcclxuICAgICAgICB7XHJcbiAgICAgICAgICBwcm92aWRlOiBNRU5VX1RPS0VOLFxyXG4gICAgICAgICAgdXNlVmFsdWU6IGNvbmZpZy5pdGVtcyxcclxuICAgICAgICB9LFxyXG4gICAgICBdO1xyXG4gICAgfVxyXG5cclxuICAgIHJldHVybiBtb2R1bGVXaXRoUHJvdmlkZXI7XHJcbiAgfVxyXG5cclxuICBzdGF0aWMgZm9yQ2hpbGQobWVudTogTWVudUl0ZW1bXSk6IE1vZHVsZVdpdGhQcm92aWRlcnM8U2lkZU1lbnVNb2R1bGU+IHtcclxuICAgIHJldHVybiB7XHJcbiAgICAgIG5nTW9kdWxlOiBTaWRlTWVudU1vZHVsZSxcclxuICAgICAgcHJvdmlkZXJzOiBbXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgcHJvdmlkZTogTUVOVV9UT0tFTixcclxuICAgICAgICAgIHVzZVZhbHVlOiBtZW51LFxyXG4gICAgICAgIH0sXHJcbiAgICAgIF0sXHJcbiAgICB9O1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './services/snackbar.service';
|
|
2
|
-
export * from './snackbar.component';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvc25hY2tiYXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLHNCQUFzQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zZXJ2aWNlcy9zbmFja2Jhci5zZXJ2aWNlJztcclxuZXhwb3J0ICogZnJvbSAnLi9zbmFja2Jhci5jb21wb25lbnQnO1xyXG4iXX0=
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
-
import * as portal from '@angular/cdk/portal';
|
|
3
|
-
import { Injectable, Injector } from '@angular/core';
|
|
4
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
-
import { SnackbarComponent } from '../snackbar.component';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/cdk/overlay";
|
|
8
|
-
import * as i2 from "@ngx-translate/core";
|
|
9
|
-
export class SnackbarService {
|
|
10
|
-
overlay;
|
|
11
|
-
translate;
|
|
12
|
-
injector;
|
|
13
|
-
constructor(overlay, translate, injector) {
|
|
14
|
-
this.overlay = overlay;
|
|
15
|
-
this.translate = translate;
|
|
16
|
-
this.injector = injector;
|
|
17
|
-
}
|
|
18
|
-
showSuccess(message, icon) {
|
|
19
|
-
this.showToast({
|
|
20
|
-
message: this.translate.instant(message),
|
|
21
|
-
icon: icon,
|
|
22
|
-
color: 'success',
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
showInfo(message, icon) {
|
|
26
|
-
this.showToast({
|
|
27
|
-
message: this.translate.instant(message),
|
|
28
|
-
icon: icon,
|
|
29
|
-
color: 'primary',
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
showWarn(message, icon) {
|
|
33
|
-
this.showToast({
|
|
34
|
-
message: this.translate.instant(message),
|
|
35
|
-
icon: icon,
|
|
36
|
-
color: 'warning',
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
showError(message, icon) {
|
|
40
|
-
this.showToast({
|
|
41
|
-
message: this.translate.instant(message),
|
|
42
|
-
icon: icon,
|
|
43
|
-
color: 'error',
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
showToast(config) {
|
|
47
|
-
const positionStrategy = this.overlay
|
|
48
|
-
.position()
|
|
49
|
-
.global();
|
|
50
|
-
const overlayRef = this.overlay.create({
|
|
51
|
-
positionStrategy,
|
|
52
|
-
hasBackdrop: false,
|
|
53
|
-
scrollStrategy: this.overlay.scrollStrategies.noop(),
|
|
54
|
-
});
|
|
55
|
-
const toastPortal = new portal.ComponentPortal(SnackbarComponent, null, this.createInjector(config));
|
|
56
|
-
overlayRef.attach(toastPortal);
|
|
57
|
-
}
|
|
58
|
-
createInjector(config) {
|
|
59
|
-
return Injector.create({
|
|
60
|
-
providers: [
|
|
61
|
-
{ provide: 'TOAST_CONFIG', useValue: config },
|
|
62
|
-
],
|
|
63
|
-
parent: this.injector,
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SnackbarService, deps: [{ token: i1.Overlay }, { token: i2.TranslateService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
67
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SnackbarService, providedIn: 'root' });
|
|
68
|
-
}
|
|
69
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SnackbarService, decorators: [{
|
|
70
|
-
type: Injectable,
|
|
71
|
-
args: [{
|
|
72
|
-
providedIn: 'root',
|
|
73
|
-
}]
|
|
74
|
-
}], ctorParameters: () => [{ type: i1.Overlay }, { type: i2.TranslateService }, { type: i0.Injector }] });
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic25hY2tiYXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9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biAgfVxyXG5cclxuICBwcml2YXRlIHNob3dUb2FzdChjb25maWc6IFNuYWNrYmFyQ29uZmlnKSB7XHJcbiAgICBjb25zdCBwb3NpdGlvblN0cmF0ZWd5ID0gdGhpcy5vdmVybGF5XHJcbiAgICAgIC5wb3NpdGlvbigpXHJcbiAgICAgIC5nbG9iYWwoKTtcclxuXHJcbiAgICBjb25zdCBvdmVybGF5UmVmOiBPdmVybGF5UmVmID0gdGhpcy5vdmVybGF5LmNyZWF0ZSh7XHJcbiAgICAgIHBvc2l0aW9uU3RyYXRlZ3ksXHJcbiAgICAgIGhhc0JhY2tkcm9wOiBmYWxzZSxcclxuICAgICAgc2Nyb2xsU3RyYXRlZ3k6IHRoaXMub3ZlcmxheS5zY3JvbGxTdHJhdGVnaWVzLm5vb3AoKSxcclxuICAgIH0pO1xyXG5cclxuICAgIGNvbnN0IHRvYXN0UG9ydGFsID0gbmV3IHBvcnRhbC5Db21wb25lbnRQb3J0YWwoU25hY2tiYXJDb21wb25lbnQsIG51bGwsIHRoaXMuY3JlYXRlSW5qZWN0b3IoY29uZmlnKSk7XHJcbiAgICBvdmVybGF5UmVmLmF0dGFjaCh0b2FzdFBvcnRhbCk7XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIGNyZWF0ZUluamVjdG9yKGNvbmZpZzogYW55KSB7XHJcbiAgICByZXR1cm4gSW5qZWN0b3IuY3JlYXRlKHtcclxuICAgICAgcHJvdmlkZXJzOiBbXHJcbiAgICAgICAgeyBwcm92aWRlOiAnVE9BU1RfQ09ORklHJywgdXNlVmFsdWU6IGNvbmZpZyB9LFxyXG4gICAgICBdLFxyXG4gICAgICBwYXJlbnQ6IHRoaXMuaW5qZWN0b3IsXHJcbiAgICB9KTtcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, Inject, Input, Optional } from '@angular/core';
|
|
3
|
-
import { GovDesignSystemModule } from '@gov-design-system-ce/angular';
|
|
4
|
-
import { SNACKBAR_COMPONENT_TOKEN } from '@verisoft/ui-core';
|
|
5
|
-
import { Icons } from '../../icons';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@gov-design-system-ce/angular";
|
|
8
|
-
export class SnackbarComponent {
|
|
9
|
-
config;
|
|
10
|
-
message;
|
|
11
|
-
icon;
|
|
12
|
-
closeLabel;
|
|
13
|
-
color = "primary";
|
|
14
|
-
gravity = "top";
|
|
15
|
-
position = "right";
|
|
16
|
-
time = 4000;
|
|
17
|
-
type = "subtle";
|
|
18
|
-
icons = Icons;
|
|
19
|
-
constructor(config) {
|
|
20
|
-
this.config = config;
|
|
21
|
-
}
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SnackbarComponent, deps: [{ token: 'TOAST_CONFIG', optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: SnackbarComponent, isStandalone: true, selector: "v-snackbar", inputs: { message: "message", icon: "icon", closeLabel: "closeLabel", color: "color", gravity: "gravity", position: "position", time: "time", type: "type" }, providers: [
|
|
24
|
-
{
|
|
25
|
-
provide: SNACKBAR_COMPONENT_TOKEN,
|
|
26
|
-
useExisting: SnackbarComponent,
|
|
27
|
-
},
|
|
28
|
-
], ngImport: i0, template: "<gov-toast\r\n [closeLabel]=\"config.closeLabel ?? closeLabel\"\r\n [color]=\"config.color || color\"\r\n [gravity]=\"config.gravity || gravity\"\r\n [position]=\"config.position || position\"\r\n [time]=\"config.time ?? time\"\r\n [type]=\"config.type || type\"\r\n>\r\n @if (config.icon || icon) {\r\n <gov-icon\r\n [name]=\"config.icon || icon\"\r\n />\r\n } {{ config.message || message }}\r\n</gov-toast>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: GovDesignSystemModule }, { kind: "component", type: i1.GovIcon, selector: "gov-icon", inputs: ["color", "name", "size", "type"] }, { kind: "component", type: i1.GovToast, selector: "gov-toast", inputs: ["accessibleCloseLabel", "closeLabel", "color", "gravity", "position", "time", "type"] }] });
|
|
29
|
-
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SnackbarComponent, decorators: [{
|
|
31
|
-
type: Component,
|
|
32
|
-
args: [{ selector: 'v-snackbar', standalone: true, imports: [CommonModule, GovDesignSystemModule], providers: [
|
|
33
|
-
{
|
|
34
|
-
provide: SNACKBAR_COMPONENT_TOKEN,
|
|
35
|
-
useExisting: SnackbarComponent,
|
|
36
|
-
},
|
|
37
|
-
], template: "<gov-toast\r\n [closeLabel]=\"config.closeLabel ?? closeLabel\"\r\n [color]=\"config.color || color\"\r\n [gravity]=\"config.gravity || gravity\"\r\n [position]=\"config.position || position\"\r\n [time]=\"config.time ?? time\"\r\n [type]=\"config.type || type\"\r\n>\r\n @if (config.icon || icon) {\r\n <gov-icon\r\n [name]=\"config.icon || icon\"\r\n />\r\n } {{ config.message || message }}\r\n</gov-toast>\r\n" }]
|
|
38
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
39
|
-
type: Optional
|
|
40
|
-
}, {
|
|
41
|
-
type: Inject,
|
|
42
|
-
args: ['TOAST_CONFIG']
|
|
43
|
-
}] }], propDecorators: { message: [{
|
|
44
|
-
type: Input,
|
|
45
|
-
args: [{ required: true }]
|
|
46
|
-
}], icon: [{
|
|
47
|
-
type: Input
|
|
48
|
-
}], closeLabel: [{
|
|
49
|
-
type: Input
|
|
50
|
-
}], color: [{
|
|
51
|
-
type: Input
|
|
52
|
-
}], gravity: [{
|
|
53
|
-
type: Input
|
|
54
|
-
}], position: [{
|
|
55
|
-
type: Input
|
|
56
|
-
}], time: [{
|
|
57
|
-
type: Input
|
|
58
|
-
}], type: [{
|
|
59
|
-
type: Input
|
|
60
|
-
}]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JcbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic25hY2tiYXIubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvc25hY2tiYXIvc25hY2tiYXIubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgU25hY2tiYXJDb25maWcge1xyXG4gICAgbWVzc2FnZTogc3RyaW5nO1xyXG4gICAgaWNvbj86IHN0cmluZztcclxuICAgIGNsb3NlTGFiZWw/OiBzdHJpbmc7XHJcbiAgICBjb2xvcj86IFwiZXJyb3JcIiB8IFwibmV1dHJhbFwiIHwgXCJwcmltYXJ5XCIgfCBcInN1Y2Nlc3NcIiB8IFwid2FybmluZ1wiO1xyXG4gICAgZ3Jhdml0eT86IFwiYm90dG9tXCIgfCBcInRvcFwiO1xyXG4gICAgcG9zaXRpb24/OiBcImNlbnRlclwiIHwgXCJsZWZ0XCIgfCBcInJpZ2h0XCI7XHJcbiAgICB0aW1lPzogbnVtYmVyO1xyXG4gICAgdHlwZT86IFwiYm9sZFwiIHwgXCJzdWJ0bGVcIjtcclxufSJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './stepper.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvc3RlcHBlci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHFCQUFxQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdGVwcGVyLmNvbXBvbmVudCc7Il19
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
3
|
-
import { GovDesignSystemModule } from '@gov-design-system-ce/angular';
|
|
4
|
-
import { STEPPER_COMPONENT_TOKEN, FieldSize, LayoutType, } from '@verisoft/ui-core';
|
|
5
|
-
import { GovSizePipe } from '../../pipes';
|
|
6
|
-
import { ButtonComponent } from '../button';
|
|
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
|
-
export class StepperComponent {
|
|
11
|
-
items = [];
|
|
12
|
-
size = FieldSize.medium;
|
|
13
|
-
icon;
|
|
14
|
-
prefix;
|
|
15
|
-
annotation;
|
|
16
|
-
label;
|
|
17
|
-
layout = LayoutType.horizontal;
|
|
18
|
-
activeIndexChange = new EventEmitter();
|
|
19
|
-
steps = 0;
|
|
20
|
-
currentStep = 0;
|
|
21
|
-
ngOnInit() {
|
|
22
|
-
this.steps = this.items.length;
|
|
23
|
-
}
|
|
24
|
-
previousStep() {
|
|
25
|
-
if (this.currentStep > 0) {
|
|
26
|
-
this.currentStep--;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
nextStep() {
|
|
30
|
-
if (this.currentStep < this.items.length - 1) {
|
|
31
|
-
this.currentStep++;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: StepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: StepperComponent, isStandalone: true, selector: "v-stepper", inputs: { items: "items", size: "size", icon: "icon", prefix: "prefix", annotation: "annotation", label: "label", layout: "layout" }, outputs: { activeIndexChange: "activeIndexChange" }, providers: [
|
|
36
|
-
{ provide: STEPPER_COMPONENT_TOKEN, useExisting: StepperComponent },
|
|
37
|
-
], ngImport: i0, template: "<gov-stepper \r\n [ngClass]=\"layout === 'vertical' ? 'd-block' : 'd-flex justify-content-between'\"\r\n [size]=\"size | govSize\"\r\n>\r\n @for (item of items; track item; let index = $index) {\r\n <gov-stepper-item\r\n [ngClass]=\"{ 'active-step': index === currentStep }\"\r\n >\r\n <span \r\n slot=\"prefix\"\r\n [ngStyle]=\"{ 'background-color': index === currentStep ? 'var(--gov-color-primary-300)' : 'var(--gov-color-primary)' }\"\r\n >\r\n {{ item.prefix }}\r\n </span>\r\n <p slot=\"headline\">{{ item.header }}</p>\r\n <p slot=\"annotation\">{{ item.annotation }}</p>\r\n </gov-stepper-item>\r\n }\r\n</gov-stepper>\r\n<div class=\"d-flex pt-4 justify-content-between\">\r\n @if (currentStep > 0) {\r\n <v-button\r\n [label]=\"'Back'\"\r\n [size]=\"size\"\r\n (click)=\"previousStep()\"\r\n />\r\n }\r\n @if (currentStep < steps - 1) {\r\n <v-button\r\n [label]=\"'Next'\"\r\n [size]=\"size\"\r\n (click)=\"nextStep()\"\r\n />\r\n }\r\n</div>", styles: ["gov-stepper-item,.gov-stepper-item{width:auto!important}.active-step{background-color:var(--color-primary-300);border:1px solid var(--color-primary-600);border-radius:.5rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ButtonComponent, selector: "v-button", inputs: ["label", "icon", "badge", "iconPos", "disabled", "rounded", "outlined", "raised", "routerLink", "size", "queryParams", "severity", "type", "expanded", "name"], outputs: ["click"] }, { kind: "ngmodule", type: GovDesignSystemModule }, { kind: "component", type: i2.GovStepper, selector: "gov-stepper", inputs: ["size"] }, { kind: "component", type: i2.GovStepperItem, selector: "gov-stepper-item", inputs: ["color", "identifier", "size"] }, { kind: "pipe", type: GovSizePipe, name: "govSize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
38
|
-
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: StepperComponent, decorators: [{
|
|
40
|
-
type: Component,
|
|
41
|
-
args: [{ selector: 'v-stepper', standalone: true, imports: [
|
|
42
|
-
CommonModule,
|
|
43
|
-
ButtonComponent,
|
|
44
|
-
GovDesignSystemModule,
|
|
45
|
-
GovSizePipe,
|
|
46
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
47
|
-
{ provide: STEPPER_COMPONENT_TOKEN, useExisting: StepperComponent },
|
|
48
|
-
], template: "<gov-stepper \r\n [ngClass]=\"layout === 'vertical' ? 'd-block' : 'd-flex justify-content-between'\"\r\n [size]=\"size | govSize\"\r\n>\r\n @for (item of items; track item; let index = $index) {\r\n <gov-stepper-item\r\n [ngClass]=\"{ 'active-step': index === currentStep }\"\r\n >\r\n <span \r\n slot=\"prefix\"\r\n [ngStyle]=\"{ 'background-color': index === currentStep ? 'var(--gov-color-primary-300)' : 'var(--gov-color-primary)' }\"\r\n >\r\n {{ item.prefix }}\r\n </span>\r\n <p slot=\"headline\">{{ item.header }}</p>\r\n <p slot=\"annotation\">{{ item.annotation }}</p>\r\n </gov-stepper-item>\r\n }\r\n</gov-stepper>\r\n<div class=\"d-flex pt-4 justify-content-between\">\r\n @if (currentStep > 0) {\r\n <v-button\r\n [label]=\"'Back'\"\r\n [size]=\"size\"\r\n (click)=\"previousStep()\"\r\n />\r\n }\r\n @if (currentStep < steps - 1) {\r\n <v-button\r\n [label]=\"'Next'\"\r\n [size]=\"size\"\r\n (click)=\"nextStep()\"\r\n />\r\n }\r\n</div>", styles: ["gov-stepper-item,.gov-stepper-item{width:auto!important}.active-step{background-color:var(--color-primary-300);border:1px solid var(--color-primary-600);border-radius:.5rem}\n"] }]
|
|
49
|
-
}], propDecorators: { items: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}], size: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}], icon: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], prefix: [{
|
|
56
|
-
type: Input
|
|
57
|
-
}], annotation: [{
|
|
58
|
-
type: Input
|
|
59
|
-
}], label: [{
|
|
60
|
-
type: Input
|
|
61
|
-
}], layout: [{
|
|
62
|
-
type: Input
|
|
63
|
-
}], activeIndexChange: [{
|
|
64
|
-
type: Output
|
|
65
|
-
}] } });
|
|
66
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcHBlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvc3RlcHBlci9zdGVwcGVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy9zdGVwcGVyL3N0ZXBwZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDeEcsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFDdEUsT0FBTyxFQUVMLHVCQUF1Q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dGVwKClcIlxyXG4gIC8+XHJcbiAgfVxyXG48L2Rpdj4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './switch.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvc3dpdGNoL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWUsb0JBQW9CLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICAnLi9zd2l0Y2guY29tcG9uZW50JyJdfQ==
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from "@angular/common";
|
|
2
|
-
import { ChangeDetectionStrategy, Component, Input, Optional, Self } from "@angular/core";
|
|
3
|
-
import { ReactiveFormsModule, NgControl } from "@angular/forms";
|
|
4
|
-
import { GovDesignSystemModule } from "@gov-design-system-ce/angular";
|
|
5
|
-
import { SWITCH_COMPONENT_TOKEN, BaseFormInputComponent, FieldSize } 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 SwitchComponent extends BaseFormInputComponent {
|
|
13
|
-
size = FieldSize.medium;
|
|
14
|
-
noLabel = false;
|
|
15
|
-
name;
|
|
16
|
-
icons = Icons;
|
|
17
|
-
constructor(ngControl) {
|
|
18
|
-
super(ngControl);
|
|
19
|
-
}
|
|
20
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SwitchComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: SwitchComponent, isStandalone: true, selector: "v-switch", inputs: { size: "size", noLabel: "noLabel", name: "name" }, providers: [{
|
|
22
|
-
provide: SWITCH_COMPONENT_TOKEN,
|
|
23
|
-
useExisting: SwitchComponent,
|
|
24
|
-
}], usesInheritance: true, ngImport: i0, template: "<gov-form-control>\r\n <gov-form-switch\r\n [formControl]=\"formControl\"\r\n [size]=\"size | govSize\"\r\n [required]=\"required\"\r\n [name]=\"name\"\r\n [invalid]=\"ngControl?.errors\"\r\n >\r\n @if (label && !noLabel) {\r\n <gov-form-label [size]=\"size\" slot=\"label\">\r\n {{ label }}\r\n </gov-form-label>\r\n }\r\n </gov-form-switch>\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.GovFormSwitch, selector: "gov-form-switch", inputs: ["checked", "disabled", "identifier", "invalid", "name", "noLabel", "required", "size", "value"] }, { kind: "directive", type: i2.BooleanValueAccessor, selector: "gov-form-checkbox,gov-form-switch" }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
25
|
-
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SwitchComponent, decorators: [{
|
|
27
|
-
type: Component,
|
|
28
|
-
args: [{ selector: "v-switch", standalone: true, imports: [
|
|
29
|
-
CommonModule, GovDesignSystemModule, ReactiveFormsModule, GovSizePipe, ErrorComponent
|
|
30
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{
|
|
31
|
-
provide: SWITCH_COMPONENT_TOKEN,
|
|
32
|
-
useExisting: SwitchComponent,
|
|
33
|
-
}], template: "<gov-form-control>\r\n <gov-form-switch\r\n [formControl]=\"formControl\"\r\n [size]=\"size | govSize\"\r\n [required]=\"required\"\r\n [name]=\"name\"\r\n [invalid]=\"ngControl?.errors\"\r\n >\r\n @if (label && !noLabel) {\r\n <gov-form-label [size]=\"size\" slot=\"label\">\r\n {{ label }}\r\n </gov-form-label>\r\n }\r\n </gov-form-switch>\r\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\r\n</gov-form-control>\r\n" }]
|
|
34
|
-
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
35
|
-
type: Optional
|
|
36
|
-
}, {
|
|
37
|
-
type: Self
|
|
38
|
-
}] }], propDecorators: { size: [{
|
|
39
|
-
type: Input
|
|
40
|
-
}], noLabel: [{
|
|
41
|
-
type: Input
|
|
42
|
-
}], name: [{
|
|
43
|
-
type: Input
|
|
44
|
-
}] } });
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dpdGNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOi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VudFxyXG4gIGltcGxlbWVudHMgU3dpdGNoQ29yZVxyXG57XHJcbiAgQElucHV0KCkgc2l6ZTogRmllbGRTaXplVHlwZSA9IEZpZWxkU2l6ZS5tZWRpdW07XHJcbiAgQElucHV0KCkgbm9MYWJlbCA9IGZhbHNlO1xyXG4gIEBJbnB1dCgpIG5hbWUhOiBzdHJpbmc7XHJcblxyXG4gIGljb25zID0gSWNvbnM7XHJcblxyXG4gIGNvbnN0cnVjdG9yKEBPcHRpb25hbCgpIEBTZWxmKCkgbmdDb250cm9sOiBOZ0NvbnRyb2wpIHtcclxuICAgIHN1cGVyKG5nQ29udHJvbCk7XHJcbiAgfVxyXG59IiwiPGdvdi1mb3JtLWNvbnRyb2w+XHJcbiAgPGdvdi1mb3JtLXN3aXRjaFxyXG4gICAgW2Zvcm1Db250cm9sXT1cImZvcm1Db250cm9sXCJcclxuICAgIFtzaXplXT1cInNpemUgfCBnb3ZTaXplXCJcclxuICAgIFtyZXF1aXJlZF09XCJyZXF1aXJlZFwiXHJcbiAgICBbbmFtZV09XCJuYW1lXCJcclxuICAgIFtpbnZhbGlkXT1cIm5nQ29udHJvbD8uZXJyb3JzXCJcclxuICA+XHJcbiAgICBAaWYgKGxhYmVsICYmICFub0xhYmVsKSB7XHJcbiAgICA8Z292LWZvcm0tbGFiZWwgW3NpemVdPVwic2l6ZVwiIHNsb3Q9XCJsYWJlbFwiPlxyXG4gICAgICB7eyBsYWJlbCB9fVxyXG4gICAgPC9nb3YtZm9ybS1sYWJlbD5cclxuICAgIH1cclxuICA8L2dvdi1mb3JtLXN3aXRjaD5cclxuICA8di12YWxpZGF0aW9uLW1lc3NhZ2UgW25nQ29udHJvbF09XCJuZ0NvbnRyb2xcIj48L3YtdmFsaWRhdGlvbi1tZXNzYWdlPlxyXG48L2dvdi1mb3JtLWNvbnRyb2w+XHJcbiJdfQ==
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export * from './tab-view.component';
|
|
2
|
-
export * from './tab-view-item.component';
|
|
3
|
-
export * from './tab-view.module';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvdGFiLXZpZXcvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3RhYi12aWV3LmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdGFiLXZpZXctaXRlbS5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL3RhYi12aWV3Lm1vZHVsZSc7Il19
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Component, Input, ViewChild, TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class TabViewItemComponent {
|
|
4
|
-
id;
|
|
5
|
-
index;
|
|
6
|
-
disabled = false;
|
|
7
|
-
title;
|
|
8
|
-
content;
|
|
9
|
-
url;
|
|
10
|
-
contentTemplate;
|
|
11
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: TabViewItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.8", type: TabViewItemComponent, selector: "v-tab-view-item", inputs: { id: "id", index: "index", disabled: "disabled", title: "title", content: "content", url: "url" }, viewQueries: [{ propertyName: "contentTemplate", first: true, predicate: ["contentTemplate"], descendants: true, static: true }], ngImport: i0, template: `<ng-template #contentTemplate>
|
|
13
|
-
<ng-content></ng-content>
|
|
14
|
-
</ng-template>`, isInline: true });
|
|
15
|
-
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: TabViewItemComponent, decorators: [{
|
|
17
|
-
type: Component,
|
|
18
|
-
args: [{
|
|
19
|
-
standalone: false,
|
|
20
|
-
selector: 'v-tab-view-item',
|
|
21
|
-
template: `<ng-template #contentTemplate>
|
|
22
|
-
<ng-content></ng-content>
|
|
23
|
-
</ng-template>`
|
|
24
|
-
}]
|
|
25
|
-
}], propDecorators: { id: [{
|
|
26
|
-
type: Input
|
|
27
|
-
}], index: [{
|
|
28
|
-
type: Input
|
|
29
|
-
}], disabled: [{
|
|
30
|
-
type: Input
|
|
31
|
-
}], title: [{
|
|
32
|
-
type: Input
|
|
33
|
-
}], content: [{
|
|
34
|
-
type: Input
|
|
35
|
-
}], url: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}], contentTemplate: [{
|
|
38
|
-
type: ViewChild,
|
|
39
|
-
args: ['contentTemplate', { static: true }]
|
|
40
|
-
}] } });
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLXZpZXctaXRlbS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1nb3Zjei9zcmMvbGliL2NvbXBvbmVudHMvdGFiLXZpZXcvdGFiLXZpZXctaXRlbS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFVekUsTUFBTSxPQUFPLG9CQUFvQjtJQUd0QixFQUFFLENBQVU7SUFDWixLQUFLL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W1Db21wb25lbnQgXHJcbmltcGxlbWVudHMgVGFiVmlld0l0ZW1Db3JlIHtcclxuXHJcbiAgQElucHV0KCkgaWQ/OiBzdHJpbmc7XHJcbiAgQElucHV0KCkgaW5kZXg/OiBudW1iZXI7XHJcbiAgQElucHV0KCkgZGlzYWJsZWQgPSBmYWxzZTtcclxuICBASW5wdXQoKSB0aXRsZSE6IHN0cmluZztcclxuICBASW5wdXQoKSBjb250ZW50Pzogc3RyaW5nO1xyXG4gIEBJbnB1dCgpIHVybD86IHN0cmluZztcclxuXHJcbiAgQFZpZXdDaGlsZCgnY29udGVudFRlbXBsYXRlJywgeyBzdGF0aWM6IHRydWUgfSlcclxuICBjb250ZW50VGVtcGxhdGUhOiBUZW1wbGF0ZVJlZjxhbnk+O1xyXG59XHJcbiJdfQ==
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Component, ContentChildren, EventEmitter, inject, Input, Output, QueryList, ViewEncapsulation, } from '@angular/core';
|
|
2
|
-
import { TabViewItemComponent } from './tab-view-item.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/router";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
|
-
import * as i3 from "@ngx-translate/core";
|
|
7
|
-
export class TabViewComponent {
|
|
8
|
-
tabs;
|
|
9
|
-
highlight = false;
|
|
10
|
-
useRouting = false;
|
|
11
|
-
items = [];
|
|
12
|
-
activeIndex = 0;
|
|
13
|
-
activeIndexChange = new EventEmitter();
|
|
14
|
-
cd = inject(ChangeDetectorRef);
|
|
15
|
-
ngAfterContentInit() {
|
|
16
|
-
this.initTabs();
|
|
17
|
-
}
|
|
18
|
-
initTabs() {
|
|
19
|
-
this.items = [...this.tabs.toArray(), ...this.items];
|
|
20
|
-
this.cd.detectChanges();
|
|
21
|
-
}
|
|
22
|
-
changeTabIndex(index) {
|
|
23
|
-
if (this.activeIndex !== index) {
|
|
24
|
-
this.activeIndex = index;
|
|
25
|
-
this.activeIndexChange.emit(this.activeIndex);
|
|
26
|
-
}
|
|
27
|
-
this.activeIndexChange.emit(index);
|
|
28
|
-
this.cd.detectChanges();
|
|
29
|
-
}
|
|
30
|
-
setTabActive(options) {
|
|
31
|
-
options.forEach((_, index) => {
|
|
32
|
-
index === this.activeIndex;
|
|
33
|
-
});
|
|
34
|
-
this.cd.detectChanges();
|
|
35
|
-
}
|
|
36
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: TabViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: TabViewComponent, selector: "v-tab-view", inputs: { highlight: "highlight", useRouting: "useRouting", items: "items", activeIndex: "activeIndex" }, outputs: { activeIndexChange: "activeIndexChange" }, queries: [{ propertyName: "tabs", predicate: TabViewItemComponent }], ngImport: i0, template: "<div class=\"gov-tabs\">\r\n <div class=\"gov-tabs__tabs\" role=\"tablist\">\r\n @for (item of items; track item; let index = $index) {\r\n @if (useRouting) {\r\n <button\r\n [attr.index]=\"index\"\r\n class=\"gov-tabs__btn\"\r\n [routerLink]=\"item.url\"\r\n [routerLinkActive]=\"'active'\"\r\n #rls=\"routerLinkActive\"\r\n [attr.aria-selected]=\"rls.isActive\"\r\n [disabled]=\"item.disabled\"\r\n role=\"tab\"\r\n [attr.activeIndex]=\"activeIndex\"\r\n (click)=\"changeTabIndex(index)\"\r\n >\r\n {{ item.title | translate }}\r\n </button>\r\n } @else {\r\n <button\r\n [attr.index]=\"index\"\r\n class=\"gov-tabs__btn\"\r\n [attr.aria-selected]=\"activeIndex === index\"\r\n [disabled]=\"item.disabled\"\r\n role=\"tab\"\r\n [attr.activeIndex]=\"activeIndex\"\r\n (click)=\"changeTabIndex(index)\"\r\n >\r\n {{ item.title | translate }}\r\n </button>}\r\n }\r\n </div>\r\n <div class=\"gov-tabs__tabs\">\r\n @for (item of items; track item; let index = $index) {\r\n <div class=\"gov-tabs__tab\" [class.active]=\"activeIndex === index\" >\r\n <div class=\"gov-tabs__list\">\r\n <div class=\"gov-tabs__content\">\r\n @if (item.contentTemplate) {\r\n <ng-container *ngTemplateOutlet=\"item.contentTemplate\"></ng-container>\r\n } @else if (item.content) {\r\n {{ item.content }}\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n @if (useRouting) {\r\n <router-outlet class=\"gov-tabs__content\"></router-outlet>\r\n }\r\n </div>\r\n</div>", styles: [".gov-tabs__tabs{position:relative;width:100%;margin-bottom:0%;overflow-x:clip}.gov-tabs__tab{display:none;opacity:0;transform:translateY(10px);transition:opacity .3s ease,transform .3s ease}.gov-tabs__tab.active{display:block;opacity:1;transform:translateY(0)}.gov-tabs__btn{font-size:medium;padding:10px 20px;border:none;border-bottom:2px solid transparent;font-weight:700}.gov-tabs__btn[aria-selected=true]:after{display:block;width:100%;height:2px;background-color:var(--border-primary);position:absolute;bottom:-2px;left:0}.gov-tabs__content{margin-top:var(--spacing-m-nudge);flex-wrap:wrap;width:100%}\n"], dependencies: [{ kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
38
|
-
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: TabViewComponent, decorators: [{
|
|
40
|
-
type: Component,
|
|
41
|
-
args: [{ selector: 'v-tab-view', standalone: false, encapsulation: ViewEncapsulation.None, template: "<div class=\"gov-tabs\">\r\n <div class=\"gov-tabs__tabs\" role=\"tablist\">\r\n @for (item of items; track item; let index = $index) {\r\n @if (useRouting) {\r\n <button\r\n [attr.index]=\"index\"\r\n class=\"gov-tabs__btn\"\r\n [routerLink]=\"item.url\"\r\n [routerLinkActive]=\"'active'\"\r\n #rls=\"routerLinkActive\"\r\n [attr.aria-selected]=\"rls.isActive\"\r\n [disabled]=\"item.disabled\"\r\n role=\"tab\"\r\n [attr.activeIndex]=\"activeIndex\"\r\n (click)=\"changeTabIndex(index)\"\r\n >\r\n {{ item.title | translate }}\r\n </button>\r\n } @else {\r\n <button\r\n [attr.index]=\"index\"\r\n class=\"gov-tabs__btn\"\r\n [attr.aria-selected]=\"activeIndex === index\"\r\n [disabled]=\"item.disabled\"\r\n role=\"tab\"\r\n [attr.activeIndex]=\"activeIndex\"\r\n (click)=\"changeTabIndex(index)\"\r\n >\r\n {{ item.title | translate }}\r\n </button>}\r\n }\r\n </div>\r\n <div class=\"gov-tabs__tabs\">\r\n @for (item of items; track item; let index = $index) {\r\n <div class=\"gov-tabs__tab\" [class.active]=\"activeIndex === index\" >\r\n <div class=\"gov-tabs__list\">\r\n <div class=\"gov-tabs__content\">\r\n @if (item.contentTemplate) {\r\n <ng-container *ngTemplateOutlet=\"item.contentTemplate\"></ng-container>\r\n } @else if (item.content) {\r\n {{ item.content }}\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n @if (useRouting) {\r\n <router-outlet class=\"gov-tabs__content\"></router-outlet>\r\n }\r\n </div>\r\n</div>", styles: [".gov-tabs__tabs{position:relative;width:100%;margin-bottom:0%;overflow-x:clip}.gov-tabs__tab{display:none;opacity:0;transform:translateY(10px);transition:opacity .3s ease,transform .3s ease}.gov-tabs__tab.active{display:block;opacity:1;transform:translateY(0)}.gov-tabs__btn{font-size:medium;padding:10px 20px;border:none;border-bottom:2px solid transparent;font-weight:700}.gov-tabs__btn[aria-selected=true]:after{display:block;width:100%;height:2px;background-color:var(--border-primary);position:absolute;bottom:-2px;left:0}.gov-tabs__content{margin-top:var(--spacing-m-nudge);flex-wrap:wrap;width:100%}\n"] }]
|
|
42
|
-
}], propDecorators: { tabs: [{
|
|
43
|
-
type: ContentChildren,
|
|
44
|
-
args: [TabViewItemComponent]
|
|
45
|
-
}], highlight: [{
|
|
46
|
-
type: Input
|
|
47
|
-
}], useRouting: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}], items: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}], activeIndex: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}], activeIndexChange: [{
|
|
54
|
-
type: Output
|
|
55
|
-
}] } });
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLXZpZXcuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktZ292Y3ovc3JjL2xpYi9jb21wb25lbnRzL3RhYi12aWV3L3RhYi12aWV3LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLWdvdmN6L3NyYy9saWIvY29tcG9uZW50cy90YWItdmlldy90YWItdmlldy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxlQUFlLEVBQ2YsWUFBWSxFQUNaLE1BQU0sRUFDTixLQUFLLEVBQ0wsTUFBTSxFQUNOLFNBQVMsRUFDVCxpQkFBaUIsR0FDbEIsTUFBTSxlQUFlLENBQ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gICAgICA8ZGl2IGNsYXNzPVwiZ292LXRhYnNfX3RhYlwiIFtjbGFzcy5hY3RpdmVdPVwiYWN0aXZlSW5kZXggPT09IGluZGV4XCIgPlxyXG4gICAgICAgIDxkaXYgY2xhc3M9XCJnb3YtdGFic19fbGlzdFwiPlxyXG4gICAgICAgICAgPGRpdiBjbGFzcz1cImdvdi10YWJzX19jb250ZW50XCI+XHJcbiAgICAgICAgICAgIEBpZiAoaXRlbS5jb250ZW50VGVtcGxhdGUpIHtcclxuICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwiaXRlbS5jb250ZW50VGVtcGxhdGVcIj48L25nLWNvbnRhaW5lcj5cclxuICAgICAgICAgICAgfSBAZWxzZSBpZiAoaXRlbS5jb250ZW50KSB7XHJcbiAgICAgICAgICAgICAge3sgaXRlbS5jb250ZW50IH19XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgIDwvZGl2PlxyXG4gICAgICA8L2Rpdj5cclxuICAgIH1cclxuICAgIEBpZiAodXNlUm91dGluZykge1xyXG4gICAgICA8cm91dGVyLW91dGxldCBjbGFzcz1cImdvdi10YWJzX19jb250ZW50XCI+PC9yb3V0ZXItb3V0bGV0PlxyXG4gICAgfVxyXG4gIDwvZGl2PlxyXG48L2Rpdj4iXX0=
|