@verisoft/ui-govcz 18.0.0 → 18.3.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/assets/i18n/cs.json +9 -0
- package/assets/i18n/en.json +9 -0
- package/assets/icons/components/NO-ICON.svg +2 -0
- package/assets/icons/components/add.svg +6 -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/calendar.svg +3 -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/check-circle.svg +4 -0
- package/assets/icons/components/diagram.svg +3 -0
- package/assets/icons/components/download.svg +4 -0
- package/assets/icons/components/export.svg +13 -0
- package/assets/icons/components/fast-forward.svg +1 -0
- package/assets/icons/components/filter.svg +3 -0
- package/assets/icons/components/group.svg +3 -0
- package/assets/icons/components/login.svg +11 -0
- package/assets/icons/components/logout.svg +13 -0
- package/assets/icons/components/pencil.svg +3 -0
- package/assets/icons/components/plus-lg.svg +3 -0
- package/assets/icons/components/print-fill.svg +4 -0
- package/assets/icons/components/question-circle.svg +4 -0
- package/assets/icons/components/three-dots-vertical.svg +3 -0
- package/assets/icons/components/trash.svg +6 -0
- package/assets/icons/components/user.svg +3 -0
- package/assets/icons/components/x-circle.svg +4 -0
- package/assets/logos/v-logo.svg +4 -0
- package/package.json +10 -3
- package/project.json +13 -0
- package/src/{gov-config.d.ts → config.d.ts} +1 -1
- package/src/lib/components/breadcrumb/breadcrumb.component.html +23 -0
- package/src/lib/components/{gov-breadcrumb/gov-breadcrumb.component.spec.ts → breadcrumb/breadcrumb.component.spec.ts} +1 -1
- package/src/lib/components/{gov-breadcrumb/gov-breadcrumb.component.ts → breadcrumb/breadcrumb.component.ts} +12 -4
- package/src/lib/components/breadcrumb/index.ts +1 -0
- package/src/lib/components/{gov-button/gov-button.component.html → button/button.component.html} +4 -2
- package/src/lib/components/{gov-button/gov-button.component.ts → button/button.component.ts} +32 -16
- 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.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/{gov-checkbox/gov-checkbox.component.ts → checkbox/checkbox.component.ts} +27 -19
- 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/src/lib/components/confirm-dialog/index.ts +1 -0
- 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.ts +297 -0
- package/src/lib/components/dropdown/dropdown.model.ts +6 -0
- package/src/lib/components/dropdown/index.ts +1 -0
- package/src/lib/components/errors/error.component.html +11 -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.spec.ts +21 -0
- package/src/lib/components/form-field/form-field.component.ts +78 -0
- package/src/lib/components/form-field/index.ts +1 -0
- package/src/lib/components/header/header.component.html +122 -0
- package/src/lib/components/header/header.component.ts +91 -0
- package/src/lib/components/header/index.ts +1 -0
- package/src/lib/components/index.ts +33 -11
- 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.ts +77 -0
- package/src/lib/components/loader/index.ts +1 -0
- package/src/lib/components/{gov-loader/gov-loader.component.spec.ts → loader/loader.component.spec.ts} +1 -1
- package/src/lib/components/{gov-loader/gov-loader.component.ts → loader/loader.component.ts} +3 -3
- 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/{gov-multiselect/gov-multiselect.component.ts → multiselect/multiselect.component.ts} +19 -16
- 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/src/lib/components/password/index.ts +1 -0
- package/src/lib/components/password/password.component.html +31 -0
- package/src/lib/components/password/password.component.scss +0 -0
- package/src/lib/components/{gov-password/gov-password.component.spec.ts → password/password.component.spec.ts} +1 -1
- package/src/lib/components/{gov-password/gov-password.component.ts → password/password.component.ts} +33 -6
- package/src/lib/components/radiobutton/index.ts +1 -0
- package/src/lib/components/{gov-radiobutton/gov-radiobutton.component.html → radiobutton/radiobutton.component.html} +8 -10
- package/src/lib/components/radiobutton/radiobutton.component.scss +0 -0
- package/src/lib/components/{gov-radiobutton/gov-radiobutton.component.ts → radiobutton/radiobutton.component.ts} +10 -10
- 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/src/lib/components/shared-components/action-button-group/index.ts +2 -0
- package/src/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.ts +90 -0
- package/src/lib/components/shared-components/dynamic-component/dynamic-component.component.ts +55 -0
- package/src/lib/components/shared-components/dynamic-component/index.ts +2 -0
- package/src/lib/components/shared-components/feature-list/directives/feature-list-column.directive.ts +26 -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 +41 -0
- package/src/lib/components/shared-components/feature-list/feature-list.component.html +56 -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 +315 -0
- package/src/lib/components/shared-components/feature-list/index.ts +4 -0
- package/src/lib/components/shared-components/filter/directives/filter-field.directive.ts +24 -0
- package/src/lib/components/shared-components/filter/filter.component.html +67 -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/src/lib/components/shared-components/filter/index.ts +2 -0
- package/src/lib/components/shared-components/generic-field/generic-field.component.html +54 -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 +79 -0
- package/src/lib/components/shared-components/generic-field/index.ts +1 -0
- package/src/lib/components/shared-components/generic-form/generic-form.component.html +33 -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 +48 -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 +60 -0
- package/src/lib/components/shared-components/generic-form/index.ts +2 -0
- package/src/lib/components/shared-components/index.ts +6 -0
- package/src/lib/components/side-menu/index.ts +2 -0
- 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 +56 -0
- package/src/lib/components/sidemenu/index.ts +2 -0
- package/src/lib/components/snackbar/index.ts +2 -0
- 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/src/lib/components/snackbar/snackbar.model.ts +10 -0
- 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/{gov-switch/gov-switch.component.html → switch/switch.component.html} +2 -7
- package/src/lib/components/switch/switch.component.scss +0 -0
- package/src/lib/components/{gov-switch/gov-switch.component.ts → switch/switch.component.ts} +10 -8
- package/src/lib/components/tab-view/index.ts +3 -0
- 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/src/lib/components/table/index.ts +1 -0
- 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/{gov-text-field/gov-text-field.component.html → textarea/textarea.component.html} +13 -21
- package/src/lib/components/textarea/textarea.component.scss +0 -0
- package/src/lib/components/{gov-text-field/gov-text-field.component.ts → textarea/textarea.component.ts} +19 -11
- 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/src/lib/components/tristatecheckbox/index.ts +1 -0
- 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/src/lib/index.ts +3 -0
- package/src/lib/init.service.ts +1 -2
- 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/src/lib/pages/index.ts +3 -0
- 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/src/lib/pages/not-authenticated/index.ts +1 -0
- 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/src/lib/pages/not-authorized/index.ts +1 -0
- 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/src/lib/pages/not-found/index.ts +1 -0
- 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/src/lib/pipes/index.ts +3 -0
- package/src/lib/pipes/multiselect/multiselect-options.pipe.ts +61 -0
- package/src/lib/pipes/size/size.pipe.ts +20 -0
- package/src/sass/{gov-header.css → header.css} +22 -70
- package/src/sass/header.scss +480 -0
- package/src/sass/main.scss +242 -73
- package/src/sass/scrollbar.scss +22 -0
- package/src/sass/sidemenu.css +205 -0
- package/src/sass/vendors/_bootstrap.scss +2 -0
- package/tsconfig.json +3 -1
- package/src/assets/icons/colored/cactus.svg +0 -8
- package/src/assets/icons/colored/city-office.svg +0 -11
- package/src/assets/icons/colored/doc-search.svg +0 -9
- package/src/assets/icons/colored/globe.svg +0 -9
- package/src/assets/icons/colored/packet.svg +0 -5
- package/src/assets/icons/components/info.svg +0 -3
- package/src/assets/logos/gacr_logo_en.svg +0 -1
- package/src/lib/components/gov-breadcrumb/gov-breadcrumb.component.html +0 -14
- package/src/lib/components/gov-breadcrumb/index.ts +0 -1
- package/src/lib/components/gov-button/index.ts +0 -1
- package/src/lib/components/gov-checkbox/gov-checkbox.component.html +0 -35
- package/src/lib/components/gov-checkbox/index.ts +0 -1
- package/src/lib/components/gov-header/gov-header.component.html +0 -73
- package/src/lib/components/gov-header/gov-header.component.scss +0 -20
- package/src/lib/components/gov-header/gov-header.component.ts +0 -51
- package/src/lib/components/gov-header/index.ts +0 -1
- package/src/lib/components/gov-loader/index.ts +0 -1
- package/src/lib/components/gov-multiselect/gov-multiselect.component.html +0 -31
- package/src/lib/components/gov-multiselect/index.ts +0 -1
- package/src/lib/components/gov-password/gov-password.component.html +0 -21
- package/src/lib/components/gov-password/index.ts +0 -1
- package/src/lib/components/gov-radiobutton/index.ts +0 -1
- package/src/lib/components/gov-switch/index.ts +0 -1
- package/src/lib/components/gov-text-field/index.ts +0 -1
- /package/{src/assets/icons/complex → assets/icons/components}/24-7.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/all.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/arrival.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/bell.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/big-help.svg +0 -0
- /package/{src/assets → assets}/icons/components/book.svg +0 -0
- /package/{src/assets → assets}/icons/components/bookmarks.svg +0 -0
- /package/{src/assets → assets}/icons/components/box-arrow-up-right.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/business-file.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/businessman.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/cactus.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/camera.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/car.svg +0 -0
- /package/{src/assets/icons/colored → assets/icons/components}/card-503.svg +0 -0
- /package/{src/assets/icons/colored → assets/icons/components}/card-504.svg +0 -0
- /package/{src/assets → assets}/icons/components/caret-right-fill.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/certification.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/chamber-deputies-cr.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/chamber-deputies.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/chat.svg +0 -0
- /package/{src/assets → assets}/icons/components/check-lg.svg +0 -0
- /package/{src/assets → assets}/icons/components/chevron-double-left.svg +0 -0
- /package/{src/assets → assets}/icons/components/chevron-double-right.svg +0 -0
- /package/{src/assets → assets}/icons/components/chevron-down.svg +0 -0
- /package/{src/assets → assets}/icons/components/chevron-left.svg +0 -0
- /package/{src/assets → assets}/icons/components/chevron-right.svg +0 -0
- /package/{src/assets → assets}/icons/components/chevron-up.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/cities.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/city-office.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/coins.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/communication.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/confusion.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/contact.svg +0 -0
- /package/{src/assets → assets}/icons/components/copy.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/court.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/covid.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/czech-lion.svg +0 -0
- /package/{src/assets → assets}/icons/components/dash-lg.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/digital.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/disability.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-agreement.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-basic-info.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-business.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-car-point-list.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-diploma.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-driver-info.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-election.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-filled.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-health.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-judgment.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-patient.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-personal-info.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-petition.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-registers.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-review.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-search.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-stamp.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-state.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-taxes.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-universal.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/doc-visa.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/documents.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/driver-file.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/driver.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/driving-licence.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/email-notification.svg +0 -0
- /package/{src/assets/icons/colored → assets/icons/components}/empty-file.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/energy.svg +0 -0
- /package/{src/assets → assets}/icons/components/envelope-fill.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/envelope.svg +0 -0
- /package/{src/assets/icons/colored → assets/icons/components}/error.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/european-parliament.svg +0 -0
- /package/{src/assets → assets}/icons/components/exclamation-lg.svg +0 -0
- /package/{src/assets → assets}/icons/components/exclamation-triangle-fill.svg +0 -0
- /package/{src/assets → assets}/icons/components/eye.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/family.svg +0 -0
- /package/{src/assets → assets}/icons/components/gear.svg +0 -0
- /package/{src/assets → assets}/icons/components/geo-alt-fill.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/globe.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/graduate.svg +0 -0
- /package/{src/assets/icons/colored → assets/icons/components}/hand-503.svg +0 -0
- /package/{src/assets/icons/colored → assets/icons/components}/hand-504.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/hand.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/health.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/help.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/history.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/holiday.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/hourglass.svg +0 -0
- /package/{src/assets → assets}/icons/components/house-door-fill.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/house.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/id-card.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/id-info.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/id.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/illness.svg +0 -0
- /package/{src/assets → assets}/icons/components/info-circle-fill.svg +0 -0
- /package/{src/assets → assets}/icons/components/info-circle.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/info-list.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/info.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/institute-file.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/institution.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/job-loss.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/job.svg +0 -0
- /package/{src/assets → assets}/icons/components/lightbulb-fill.svg +0 -0
- /package/{src/assets → assets}/icons/components/list.svg +0 -0
- /package/{src/assets → assets}/icons/components/loader.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/map.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/mobile-phone.svg +0 -0
- /package/{src/assets → assets}/icons/components/moon.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/mouse.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/my-filing.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/my-state-data.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/new-comments.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/newborn.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/news.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/packet.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/passport.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/personal-file.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/pet.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/petrol-station.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/pills.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/population-register.svg +0 -0
- /package/{src/assets/icons/colored → assets/icons/components}/port-card.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/portal.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/pregnant.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/president.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/presidential-election.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/profile-settings.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/property.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/queue.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/quotes.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/region.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/regional-elections-clear.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/regional-elections.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/register-of-persons.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/retiree.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/rings.svg +0 -0
- /package/{src/assets → assets}/icons/components/search.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/senate.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/senior.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/settings.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/simple-envelope.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/sms-notification.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/sos.svg +0 -0
- /package/{src/assets → assets}/icons/components/star-fill.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/state-file.svg +0 -0
- /package/{src/assets → assets}/icons/components/sun.svg +0 -0
- /package/{src/assets → assets}/icons/components/telephone.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/time.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/tombstone.svg +0 -0
- /package/{src/assets → assets}/icons/components/twitter-x.svg +0 -0
- /package/{src/assets → assets}/icons/components/upload.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/user-login.svg +0 -0
- /package/{src/assets/icons/complex → assets/icons/components}/vaccine.svg +0 -0
- /package/{src/assets → assets}/icons/components/x-lg.svg +0 -0
- /package/{src/assets → assets}/icons/components/x.svg +0 -0
- /package/src/lib/components/{gov-breadcrumb/gov-breadcrumb.component.scss → breadcrumb/breadcrumb.component.scss} +0 -0
- /package/src/lib/components/{gov-button/gov-button.component.scss → button/button.component.scss} +0 -0
- /package/src/lib/components/{gov-checkbox/gov-checkbox.component.scss → calendar/calendar.component.scss} +0 -0
- /package/src/lib/components/{gov-loader/gov-loader.component.scss → checkbox/checkbox.component.scss} +0 -0
- /package/src/lib/components/{gov-multiselect/gov-multiselect.component.spec.ts → dropdown/dropdown.component.spec.ts} +0 -0
- /package/src/lib/components/{gov-multiselect/gov-multiselect.component.scss → errors/error.component.scss} +0 -0
- /package/src/lib/components/{gov-password/gov-password.component.scss → form-field/form-field.component.scss} +0 -0
- /package/src/lib/components/{gov-radiobutton/gov-radiobutton.component.scss → header/header.component.scss} +0 -0
- /package/src/lib/components/{gov-switch/gov-switch.component.scss → input-group/input-group.component.scss} +0 -0
- /package/src/lib/components/{gov-loader/gov-loader.component.html → loader/loader.component.html} +0 -0
- /package/src/lib/components/{gov-text-field/gov-text-field.component.scss → loader/loader.component.scss} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component, Input, ViewChild, TemplateRef } from '@angular/core';
|
|
2
|
+
import { TabViewItemCore } from '@verisoft/ui-core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
standalone: false,
|
|
6
|
+
selector: 'v-tab-view-item',
|
|
7
|
+
template: `<ng-template #contentTemplate>
|
|
8
|
+
<ng-content></ng-content>
|
|
9
|
+
</ng-template>`
|
|
10
|
+
})
|
|
11
|
+
export class TabViewItemComponent
|
|
12
|
+
implements TabViewItemCore {
|
|
13
|
+
|
|
14
|
+
@Input() id?: string;
|
|
15
|
+
@Input() index?: number;
|
|
16
|
+
@Input() disabled = false;
|
|
17
|
+
@Input() title!: string;
|
|
18
|
+
@Input() content?: string;
|
|
19
|
+
@Input() url?: string;
|
|
20
|
+
|
|
21
|
+
@ViewChild('contentTemplate', { static: true })
|
|
22
|
+
contentTemplate!: TemplateRef<any>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<div class="gov-tabs">
|
|
2
|
+
<div class="gov-tabs__tabs" role="tablist">
|
|
3
|
+
@for (item of items; track item; let index = $index) {
|
|
4
|
+
@if (useRouting) {
|
|
5
|
+
<button
|
|
6
|
+
[attr.index]="index"
|
|
7
|
+
class="gov-tabs__btn"
|
|
8
|
+
[routerLink]="item.url"
|
|
9
|
+
[routerLinkActive]="'active'"
|
|
10
|
+
#rls="routerLinkActive"
|
|
11
|
+
[attr.aria-selected]="rls.isActive"
|
|
12
|
+
[disabled]="item.disabled"
|
|
13
|
+
role="tab"
|
|
14
|
+
[attr.activeIndex]="activeIndex"
|
|
15
|
+
(click)="changeTabIndex(index)"
|
|
16
|
+
>
|
|
17
|
+
{{ item.title | translate }}
|
|
18
|
+
</button>
|
|
19
|
+
} @else {
|
|
20
|
+
<button
|
|
21
|
+
[attr.index]="index"
|
|
22
|
+
class="gov-tabs__btn"
|
|
23
|
+
[attr.aria-selected]="activeIndex === index"
|
|
24
|
+
[disabled]="item.disabled"
|
|
25
|
+
role="tab"
|
|
26
|
+
[attr.activeIndex]="activeIndex"
|
|
27
|
+
(click)="changeTabIndex(index)"
|
|
28
|
+
>
|
|
29
|
+
{{ item.title | translate }}
|
|
30
|
+
</button>}
|
|
31
|
+
}
|
|
32
|
+
</div>
|
|
33
|
+
<div class="gov-tabs__tabs">
|
|
34
|
+
@for (item of items; track item; let index = $index) {
|
|
35
|
+
<div class="gov-tabs__tab" [class.active]="activeIndex === index" >
|
|
36
|
+
<div class="gov-tabs__list">
|
|
37
|
+
<div class="gov-tabs__content">
|
|
38
|
+
@if (item.contentTemplate) {
|
|
39
|
+
<ng-container *ngTemplateOutlet="item.contentTemplate"></ng-container>
|
|
40
|
+
} @else if (item.content) {
|
|
41
|
+
{{ item.content }}
|
|
42
|
+
}
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
}
|
|
47
|
+
@if (useRouting) {
|
|
48
|
+
<router-outlet class="gov-tabs__content"></router-outlet>
|
|
49
|
+
}
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.gov-tabs__tabs {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
margin-bottom: 0%;
|
|
5
|
+
overflow-x: clip;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.gov-tabs__tab {
|
|
9
|
+
display: none;
|
|
10
|
+
opacity: 0;
|
|
11
|
+
transform: translateY(10px);
|
|
12
|
+
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.gov-tabs__tab.active {
|
|
16
|
+
display: block;
|
|
17
|
+
opacity: 1;
|
|
18
|
+
transform: translateY(0);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.gov-tabs__btn {
|
|
22
|
+
font-size: medium;
|
|
23
|
+
padding: 10px 20px;
|
|
24
|
+
border: none;
|
|
25
|
+
border-bottom: 2px solid transparent;
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.gov-tabs__btn[aria-selected=true]:after {
|
|
30
|
+
display: block;
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 2px;
|
|
33
|
+
background-color: var(--border-primary);
|
|
34
|
+
position: absolute;
|
|
35
|
+
bottom: -2px;
|
|
36
|
+
left: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.gov-tabs__content {
|
|
40
|
+
margin-top: var(--spacing-m-nudge);
|
|
41
|
+
flex-wrap: wrap;
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AfterContentInit,
|
|
3
|
+
ChangeDetectorRef,
|
|
4
|
+
Component,
|
|
5
|
+
ContentChildren,
|
|
6
|
+
EventEmitter,
|
|
7
|
+
inject,
|
|
8
|
+
Input,
|
|
9
|
+
Output,
|
|
10
|
+
QueryList,
|
|
11
|
+
ViewEncapsulation,
|
|
12
|
+
} from '@angular/core';
|
|
13
|
+
import { TabViewItemCore } from '@verisoft/ui-core';
|
|
14
|
+
import { TabViewItemComponent } from './tab-view-item.component';
|
|
15
|
+
|
|
16
|
+
@Component({
|
|
17
|
+
selector: 'v-tab-view',
|
|
18
|
+
standalone: false,
|
|
19
|
+
templateUrl: './tab-view.component.html',
|
|
20
|
+
styleUrls: ['./tab-view.component.scss'],
|
|
21
|
+
encapsulation: ViewEncapsulation.None,
|
|
22
|
+
})
|
|
23
|
+
export class TabViewComponent implements AfterContentInit {
|
|
24
|
+
|
|
25
|
+
@ContentChildren(TabViewItemComponent) tabs!: QueryList<TabViewItemComponent>;
|
|
26
|
+
|
|
27
|
+
@Input() highlight = false;
|
|
28
|
+
@Input() useRouting = false;
|
|
29
|
+
@Input() items: TabViewItemCore[] = [];
|
|
30
|
+
@Input() activeIndex = 0;
|
|
31
|
+
|
|
32
|
+
@Output() activeIndexChange = new EventEmitter<number>();
|
|
33
|
+
|
|
34
|
+
private readonly cd = inject(ChangeDetectorRef);
|
|
35
|
+
|
|
36
|
+
ngAfterContentInit(): void {
|
|
37
|
+
this.initTabs();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
initTabs(): void {
|
|
41
|
+
this.items = [...this.tabs.toArray(), ...this.items];
|
|
42
|
+
this.cd.detectChanges();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
changeTabIndex(index: number) {
|
|
46
|
+
if (this.activeIndex !== index) {
|
|
47
|
+
this.activeIndex = index;
|
|
48
|
+
this.activeIndexChange.emit(this.activeIndex);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
this.activeIndexChange.emit(index);
|
|
52
|
+
this.cd.detectChanges();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
setTabActive(options: TabViewItemComponent[]): void {
|
|
56
|
+
options.forEach((_, index) => {
|
|
57
|
+
index === this.activeIndex;
|
|
58
|
+
});
|
|
59
|
+
this.cd.detectChanges();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
|
|
4
|
+
import { GovDesignSystemModule } from '@gov-design-system-ce/angular';
|
|
5
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
6
|
+
import { TAB_VIEW_COMPONENT_TOKEN } from '@verisoft/ui-core';
|
|
7
|
+
import { TabViewItemComponent } from './tab-view-item.component';
|
|
8
|
+
import { TabViewComponent } from './tab-view.component';
|
|
9
|
+
|
|
10
|
+
@NgModule({
|
|
11
|
+
imports: [
|
|
12
|
+
RouterOutlet,
|
|
13
|
+
NgTemplateOutlet,
|
|
14
|
+
GovDesignSystemModule,
|
|
15
|
+
RouterLinkActive,
|
|
16
|
+
RouterLink,
|
|
17
|
+
TranslateModule
|
|
18
|
+
],
|
|
19
|
+
declarations: [TabViewComponent, TabViewItemComponent],
|
|
20
|
+
exports: [TabViewComponent, TabViewItemComponent],
|
|
21
|
+
providers: [
|
|
22
|
+
{ provide: TAB_VIEW_COMPONENT_TOKEN, useExisting: TabViewComponent },
|
|
23
|
+
],
|
|
24
|
+
})
|
|
25
|
+
export class TabViewModule {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './table.component';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
standalone: true,
|
|
5
|
+
selector: "v-table-pagination-info",
|
|
6
|
+
templateUrl: "./table-pagination-info.component.html",
|
|
7
|
+
})
|
|
8
|
+
export class TablePaginationInfoComponent {
|
|
9
|
+
@Input() showingText = 'Showing'
|
|
10
|
+
|
|
11
|
+
@Input() toText = 'to';
|
|
12
|
+
|
|
13
|
+
@Input() ofText = 'of';
|
|
14
|
+
|
|
15
|
+
@Input() entriesText = 'entries'
|
|
16
|
+
|
|
17
|
+
@Input() currentPage = 0;
|
|
18
|
+
|
|
19
|
+
@Input() pageSize = 0;
|
|
20
|
+
|
|
21
|
+
@Input() total = 0;
|
|
22
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
@if (selectionMode === 'multiple' && showActionButtons) {
|
|
2
|
+
<gov-flex
|
|
3
|
+
class="gov-table-complex__actions mt-2"
|
|
4
|
+
justify-content="space-between"
|
|
5
|
+
align-items="center"
|
|
6
|
+
>
|
|
7
|
+
<div class="gov-table-complex__records-selected">
|
|
8
|
+
{{ selectedCount }} {{ ('TABLES.CHOSEN_RECORDS' | translate) ?? 'chosen records'}}
|
|
9
|
+
</div>
|
|
10
|
+
<div>
|
|
11
|
+
<gov-button color="primary" size="s" type="solid" (gov-click)="delete.emit(selected)">
|
|
12
|
+
{{ ('BUTTONS.DELETE' | translate) ?? 'Delete'}}
|
|
13
|
+
</gov-button>
|
|
14
|
+
<gov-button color="primary" size="s" type="solid" (gov-click)="save.emit(selected)">
|
|
15
|
+
{{ ('BUTTONS.SAVE' | translate) ?? 'Save'}}
|
|
16
|
+
</gov-button>
|
|
17
|
+
<gov-button color="primary" size="s" type="solid" (gov-click)="download.emit(selected)">
|
|
18
|
+
{{ ('BUTTONS.DOWNLOAD' | translate) ?? 'Download'}}
|
|
19
|
+
</gov-button>
|
|
20
|
+
<gov-button color="primary" size="s" type="solid" (gov-click)="deselectAll()">
|
|
21
|
+
{{ ('BUTTONS.CANCEL' | translate) ?? 'Cancel'}}
|
|
22
|
+
</gov-button>
|
|
23
|
+
</div>
|
|
24
|
+
</gov-flex>
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
<div
|
|
28
|
+
class=" v-table gov-table"
|
|
29
|
+
[attr.size]="size | govSize"
|
|
30
|
+
>
|
|
31
|
+
<table class="v-table__table">
|
|
32
|
+
<thead class="v-table__head">
|
|
33
|
+
<tr class="v-table__header">
|
|
34
|
+
@if (this.rowDetailTemplate) {
|
|
35
|
+
<th></th>
|
|
36
|
+
} @if (selectionMode === 'multiple') {
|
|
37
|
+
<th scope="col">
|
|
38
|
+
<gov-form-checkbox
|
|
39
|
+
[checked]="allSelected"
|
|
40
|
+
(gov-change)="toggleAll($event)"
|
|
41
|
+
/>
|
|
42
|
+
</th>
|
|
43
|
+
}
|
|
44
|
+
@for (column of tableColumns; track column; let index = $index) {
|
|
45
|
+
@if (column.visible && column.forceVisibility !== 'hidden') {
|
|
46
|
+
<th
|
|
47
|
+
scope="col"
|
|
48
|
+
[style]="{'text-align': column.textAlign}"
|
|
49
|
+
>
|
|
50
|
+
<span
|
|
51
|
+
class="gov-table--fit-width"
|
|
52
|
+
[class.v-table__sortable]="column.sortable"
|
|
53
|
+
[class.v-table__sortable--desc]="column.sortable && column.sortDirection === 'desc'"
|
|
54
|
+
[class.v-table__sortable--asc]="column.sortable && column.sortDirection === 'asc'"
|
|
55
|
+
(click)="sortColumn(column)"
|
|
56
|
+
>
|
|
57
|
+
{{ column.headerGetter(column.id, index) | translate }}
|
|
58
|
+
</span>
|
|
59
|
+
</th>
|
|
60
|
+
} @if (this.rowDetailButtonTemplate) {
|
|
61
|
+
<th></th>
|
|
62
|
+
}}
|
|
63
|
+
</tr>
|
|
64
|
+
</thead>
|
|
65
|
+
@if (loading) {
|
|
66
|
+
<v-loader />
|
|
67
|
+
} @else {
|
|
68
|
+
<tbody class="v-table__body">
|
|
69
|
+
@for (data of tableRowView; track data.id; let rowIndex = $index) {
|
|
70
|
+
<tr
|
|
71
|
+
class="v-table__row"
|
|
72
|
+
[class.gov-table--highlight]="data.selected && selectionMode"
|
|
73
|
+
(click)="selectRow(data, $event)"
|
|
74
|
+
(dblclick)="navigate(data, $event)"
|
|
75
|
+
(mousedown)="navigateNewWindow(data, $event)"
|
|
76
|
+
>
|
|
77
|
+
@if (this.rowDetailTemplate) {
|
|
78
|
+
<td>
|
|
79
|
+
<gov-button
|
|
80
|
+
[size]="size | govSize"
|
|
81
|
+
color="primary"
|
|
82
|
+
type="solid"
|
|
83
|
+
(gov-click)="toggleDetail(data)"
|
|
84
|
+
>
|
|
85
|
+
<gov-icon
|
|
86
|
+
[name]="data.expanded ? 'chevron-up' : 'chevron-down'"
|
|
87
|
+
[size]="size | govSize"
|
|
88
|
+
slot="icon-start"
|
|
89
|
+
></gov-icon>
|
|
90
|
+
</gov-button>
|
|
91
|
+
</td>
|
|
92
|
+
} @if (selectionMode === 'multiple') {
|
|
93
|
+
<td class="gov-table--fit-content gov-table--border-right">
|
|
94
|
+
<gov-form-checkbox
|
|
95
|
+
no-label
|
|
96
|
+
[checked]="data.selected"
|
|
97
|
+
[size]="size | govSize"
|
|
98
|
+
(gov-change)="selectRowCheckbox(data, $event)"
|
|
99
|
+
></gov-form-checkbox>
|
|
100
|
+
</td>
|
|
101
|
+
}
|
|
102
|
+
@for (column of tableColumns; track column; let columnIndex = $index) {
|
|
103
|
+
@if (column.visible && column.forceVisibility !== 'hidden') {
|
|
104
|
+
<td
|
|
105
|
+
[style]="{'text-align': column.textAlign}"
|
|
106
|
+
[class]="column.columnClass!"
|
|
107
|
+
[class.v-auto-cell]="column.template"
|
|
108
|
+
>
|
|
109
|
+
@if (column.template) {
|
|
110
|
+
<ng-container
|
|
111
|
+
*ngTemplateOutlet="
|
|
112
|
+
column.template;
|
|
113
|
+
context: { $implicit: data.row }
|
|
114
|
+
"
|
|
115
|
+
></ng-container>
|
|
116
|
+
} @else {
|
|
117
|
+
<span
|
|
118
|
+
[queryParams]="column.queryParams ? column.queryParams : undefined"
|
|
119
|
+
[routerLink]="column.routerLink ? column.routerLink(data.row) : undefined"
|
|
120
|
+
[innerHTML]="truncate(column.valueGetter(data.row, rowIndex))"
|
|
121
|
+
[attr.title]="
|
|
122
|
+
column.valueGetter(data.row, rowIndex).length > maximumColumnLength
|
|
123
|
+
? column.valueGetter(data.row, rowIndex)
|
|
124
|
+
: null
|
|
125
|
+
"
|
|
126
|
+
></span>
|
|
127
|
+
}
|
|
128
|
+
</td>
|
|
129
|
+
@if (this.rowDetailButtonTemplate) {
|
|
130
|
+
<td scope="">
|
|
131
|
+
<ng-container
|
|
132
|
+
*ngTemplateOutlet="
|
|
133
|
+
this.rowDetailButtonTemplate;
|
|
134
|
+
context: { $implicit: data.row }
|
|
135
|
+
"
|
|
136
|
+
></ng-container>
|
|
137
|
+
</td>
|
|
138
|
+
}}}
|
|
139
|
+
</tr>
|
|
140
|
+
@if (this.rowDetailTemplate && data.expanded) {
|
|
141
|
+
<tr>
|
|
142
|
+
<td [attr.colspan]="tableColumns.length + 1">
|
|
143
|
+
<ng-container
|
|
144
|
+
class="w-100"
|
|
145
|
+
*ngTemplateOutlet="
|
|
146
|
+
this.rowDetailTemplate;
|
|
147
|
+
context: { $implicit: data.row }
|
|
148
|
+
"
|
|
149
|
+
></ng-container>
|
|
150
|
+
</td>
|
|
151
|
+
</tr>
|
|
152
|
+
} } @if (!tableRows.length && !loading){
|
|
153
|
+
<td [attr.colspan]="tableColumns.length">
|
|
154
|
+
<gov-empty align="center" [size]="size | govSize">
|
|
155
|
+
<gov-icon slot="icon" name="empty-file" type="colored"/>
|
|
156
|
+
<p slot="headline">
|
|
157
|
+
{{ ('TABLES.EMPTY' | translate) ?? 'No records were found!' }}
|
|
158
|
+
</p>
|
|
159
|
+
</gov-empty>
|
|
160
|
+
</td>
|
|
161
|
+
}
|
|
162
|
+
</tbody>
|
|
163
|
+
}
|
|
164
|
+
</table>
|
|
165
|
+
@if(showPaginator) {
|
|
166
|
+
<div class="v-table__paginator d-flex pt-3 pb-3">
|
|
167
|
+
@if (tableRows.length) {
|
|
168
|
+
<div class="mt-2">
|
|
169
|
+
<v-table-pagination-info
|
|
170
|
+
[showingText]="'TABLES.PAGINATION.SHOWING' | translate"
|
|
171
|
+
[toText]="'TABLES.PAGINATION.TO' | translate"
|
|
172
|
+
[ofText]="'TABLES.PAGINATION.OF' | translate"
|
|
173
|
+
[entriesText]="'TABLES.PAGINATION.ENTRIES' | translate"
|
|
174
|
+
[currentPage]="currentPage"
|
|
175
|
+
[pageSize]="pageSize"
|
|
176
|
+
[total]="total"
|
|
177
|
+
/>
|
|
178
|
+
</div>
|
|
179
|
+
<div class="ms-4">
|
|
180
|
+
<gov-form-select
|
|
181
|
+
[options]="pageSizeOptions"
|
|
182
|
+
[value]="govPageSize"
|
|
183
|
+
(gov-change)="changePageSize($event)"
|
|
184
|
+
></gov-form-select>
|
|
185
|
+
</div>
|
|
186
|
+
}
|
|
187
|
+
<div class="ms-4">
|
|
188
|
+
<gov-pagination
|
|
189
|
+
[current]="currentPage"
|
|
190
|
+
[pageSize]="pageSize"
|
|
191
|
+
[total]="total"
|
|
192
|
+
[type]="'button'"
|
|
193
|
+
(gov-page)="changePage($event)"
|
|
194
|
+
></gov-pagination>
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
}
|
|
198
|
+
</div>
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
.v-table {
|
|
2
|
+
position: relative;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.v-table__sortable {
|
|
9
|
+
color: var(--text-primary-color);
|
|
10
|
+
text-decoration: underline;
|
|
11
|
+
transition: color 0.15s ease-in-out;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
|
|
14
|
+
&::after {
|
|
15
|
+
content: '\2191 \2193';
|
|
16
|
+
margin-left: 0.5rem;
|
|
17
|
+
text-decoration: none;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.v-table__sortable--asc {
|
|
23
|
+
&::after {
|
|
24
|
+
content: '\2191';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.v-table__sortable--desc {
|
|
29
|
+
&::after {
|
|
30
|
+
content: '\2193';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.v-table__header {
|
|
35
|
+
background-color: var(--background-block-primary);
|
|
36
|
+
position: sticky;
|
|
37
|
+
top: 0;
|
|
38
|
+
z-index: 2;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.v-table__table {
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.v-table__paginator {
|
|
46
|
+
background-color: var(--background-neutral-white);
|
|
47
|
+
justify-content: end;
|
|
48
|
+
position: sticky;
|
|
49
|
+
bottom: 0;
|
|
50
|
+
z-index: 3;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.gov-table {
|
|
54
|
+
width: 100%;
|
|
55
|
+
overflow-x: auto;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.gov-table table {
|
|
59
|
+
table-layout: auto;
|
|
60
|
+
min-width: 100%;
|
|
61
|
+
border-collapse: collapse
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.gov-table table tr.gov-table--highlight td {
|
|
65
|
+
background-color: var(--background-primary-subtle)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.gov-table table th,
|
|
69
|
+
.gov-table table td {
|
|
70
|
+
border-bottom: 1px solid var(--border-subtlest);
|
|
71
|
+
text-align: left
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.gov-table table th.gov-table--align-right,
|
|
75
|
+
.gov-table table td.gov-table--align-right {
|
|
76
|
+
text-align: right
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.gov-table table th.gov-table--vertical-align-top,
|
|
80
|
+
.gov-table table td.gov-table--vertical-align-top {
|
|
81
|
+
vertical-align: top
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.gov-table table th.gov-table--border-right,
|
|
85
|
+
.gov-table table td.gov-table--border-right {
|
|
86
|
+
border-right: 1px solid var(--border-subtlest)
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.gov-table table th.gov-table--border-left,
|
|
90
|
+
.gov-table table td.gov-table--border-left {
|
|
91
|
+
border-left: 1px solid var(--border-subtlest)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.gov-table table th.gov-table--border-bottom-none,
|
|
95
|
+
.gov-table table td.gov-table--border-bottom-none {
|
|
96
|
+
border-bottom: none
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.gov-table table th.gov-table--nowrap,
|
|
100
|
+
.gov-table table td.gov-table--nowrap {
|
|
101
|
+
white-space: nowrap
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.gov-table table th.gov-table--fit-width,
|
|
105
|
+
.gov-table table td.gov-table--fit-width {
|
|
106
|
+
width: 1px
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.gov-table table th {
|
|
110
|
+
color: var(--text-primary);
|
|
111
|
+
background-color: var(--background-neutral-subtlest);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.gov-table table td {
|
|
115
|
+
background-color: var(--background-neutral-white)
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.gov-table table tr.open td {
|
|
119
|
+
padding: var(--spacing-s) var(--spacing-m)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.gov-table summary::-webkit-details-marker {
|
|
123
|
+
display: none
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.gov-table[size=s] table {
|
|
127
|
+
border-bottom-left-radius: var(--corner-radius-s);
|
|
128
|
+
border-bottom-right-radius: var(--corner-radius-s)
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.gov-table[size=s] table th,
|
|
132
|
+
.gov-table[size=s] table td {
|
|
133
|
+
height: var(--height-2xl);
|
|
134
|
+
padding: 0 var(--spacing-s);
|
|
135
|
+
font-size: var(--font-size-body-s);
|
|
136
|
+
line-height: 150%;
|
|
137
|
+
font-weight: 400
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.gov-table[size=s] table th {
|
|
141
|
+
font-weight: 700
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.gov-table[size=m] table {
|
|
145
|
+
border-bottom-left-radius: var(--corner-radius-m);
|
|
146
|
+
border-bottom-right-radius: var(--corner-radius-m)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.gov-table[size=m] table th,
|
|
150
|
+
.gov-table[size=m] table td {
|
|
151
|
+
height: var(--height-3xl);
|
|
152
|
+
padding: 0 var(--spacing-m);
|
|
153
|
+
font-size: var(--font-size-body-m);
|
|
154
|
+
line-height: 150%;
|
|
155
|
+
font-weight: 400
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.gov-table[size=m] table th {
|
|
159
|
+
font-weight: 700
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.gov-table[size=l] table {
|
|
163
|
+
border-bottom-left-radius: var(--corner-radius-l);
|
|
164
|
+
border-bottom-right-radius: var(--corner-radius-l)
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.gov-table[size=l] table th,
|
|
168
|
+
.gov-table[size=l] table td {
|
|
169
|
+
height: var(--height-4xl);
|
|
170
|
+
padding: 0 var(--spacing-l);
|
|
171
|
+
font-size: var(--font-size-body-l);
|
|
172
|
+
line-height: 150%;
|
|
173
|
+
font-weight: 400
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.gov-table[size=l] table th {
|
|
177
|
+
font-weight: 700
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.gov-table-complex__name,
|
|
181
|
+
.gov-table-complex__description {
|
|
182
|
+
margin:0;
|
|
183
|
+
color:var(--text-primary)
|
|
184
|
+
}
|
|
185
|
+
.gov-table-complex__actions {
|
|
186
|
+
color:var(--text-white-fixed);
|
|
187
|
+
background-color:var(--background-primary);
|
|
188
|
+
padding:var(--spacing-xs) var(--spacing-s)
|
|
189
|
+
}
|
|
190
|
+
.gov-table-complex__per-page {
|
|
191
|
+
width:185px;
|
|
192
|
+
white-space:nowrap
|
|
193
|
+
}
|