@gov-design-system-ce/components 0.0.5 → 0.0.6
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/dist/cjs/{constants-5c8f444a.js → constants-0c6c8e11.js} +8 -3
- package/dist/cjs/constants-0c6c8e11.js.map +1 -0
- package/dist/cjs/constants-1490a5eb.js +25 -0
- package/dist/cjs/constants-1490a5eb.js.map +1 -0
- package/dist/cjs/constants-20b3f7ee.js +28 -0
- package/dist/cjs/constants-20b3f7ee.js.map +1 -0
- package/dist/cjs/{constants-0c6897bc.js → constants-21559414.js} +8 -3
- package/dist/cjs/constants-21559414.js.map +1 -0
- package/dist/cjs/constants-23b7a283.js +33 -0
- package/dist/cjs/constants-23b7a283.js.map +1 -0
- package/dist/cjs/constants-5f6bbc50.js +36 -0
- package/dist/cjs/constants-5f6bbc50.js.map +1 -0
- package/dist/cjs/constants-86fb4eb4.js +19 -0
- package/dist/cjs/constants-86fb4eb4.js.map +1 -0
- package/dist/cjs/constants-caad94b4.js +16 -0
- package/dist/cjs/constants-caad94b4.js.map +1 -0
- package/dist/cjs/constants-dc2ba6bd.js +26 -0
- package/dist/cjs/constants-dc2ba6bd.js.map +1 -0
- package/dist/cjs/{constants-a44c32bc.js → constants-ded92f8a.js} +1 -3
- package/dist/cjs/constants-ded92f8a.js.map +1 -0
- package/dist/cjs/{constants-477ca85a.js → constants-e175be18.js} +7 -4
- package/dist/cjs/constants-e175be18.js.map +1 -0
- package/dist/cjs/constants-e8760a84.js +20 -0
- package/dist/cjs/constants-e8760a84.js.map +1 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{form-d9f0f50c.js → form-49298257.js} +42 -10
- package/dist/cjs/form-49298257.js.map +1 -0
- package/dist/cjs/gov-accordion-item.cjs.entry.js +8 -8
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +10 -10
- package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-alert.cjs.entry.js +6 -4
- package/dist/cjs/gov-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-app.cjs.entry.js +165 -45
- package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +9 -9
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js +4 -4
- package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-badge.cjs.entry.js +11 -10
- package/dist/cjs/gov-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +4 -5
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-button.cjs.entry.js +12 -23
- package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-card.cjs.entry.js +3 -3
- package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +8 -8
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +13 -22
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +30 -29
- package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +8 -8
- package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-input.cjs.entry.js +13 -19
- package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +10 -10
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +12 -12
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +0 -2
- package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +13 -13
- package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +12 -12
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-grid-item.cjs.entry.js +2 -3
- package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-grid.cjs.entry.js +1 -2
- package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-icon.cjs.entry.js +10 -5
- package/dist/cjs/gov-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-layout-column.cjs.entry.js +25 -0
- package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-layout.cjs.entry.js +12 -3
- package/dist/cjs/gov-layout.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-loading.cjs.entry.js +1 -1
- package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-message.cjs.entry.js +4 -2
- package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-modal.cjs.entry.js +3 -3
- package/dist/cjs/gov-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-nav.cjs.entry.js +3 -3
- package/dist/cjs/gov-pagination.cjs.entry.js +26 -21
- package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-prompt.cjs.entry.js +3 -3
- package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-side-nav-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-side-nav.cjs.entry.js +3 -3
- package/dist/cjs/gov-side-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +11 -13
- package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-statsbar-item.cjs.entry.js +4 -2
- package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-statsbar.cjs.entry.js +7 -6
- package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js +9 -9
- package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-stepper.cjs.entry.js +9 -8
- package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tabs-item.cjs.entry.js +3 -3
- package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tabs.cjs.entry.js +11 -11
- package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tiles.cjs.entry.js +1 -1
- package/dist/cjs/gov-tiles.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-toast.cjs.entry.js +21 -18
- package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +3 -2
- package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tooltip.cjs.entry.js +15 -14
- package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizzard-item.cjs.entry.js +10 -11
- package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizzard.cjs.entry.js +9 -9
- package/dist/cjs/gov-wizzard.cjs.entry.js.map +1 -1
- package/dist/cjs/index-356717ae.js +2 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{props-cc21d3d7.js → props-5f82e4c0.js} +4 -4
- package/dist/cjs/props-5f82e4c0.js.map +1 -0
- package/dist/cjs/template-e1c4ff78.js.map +1 -1
- package/dist/cjs/{utils-4ae73637.js → utils-c9b1bba3.js} +3 -1
- package/dist/cjs/utils-c9b1bba3.js.map +1 -0
- package/dist/cjs/{variants-bacf037a.js → variants-f5ffeef3.js} +3 -3
- package/dist/cjs/variants-f5ffeef3.js.map +1 -0
- package/dist/cjs/{wcag-eca97102.js → wcag-6efc0ab7.js} +2 -2
- package/dist/cjs/wcag-6efc0ab7.js.map +1 -0
- package/dist/cjs/{win-ac5c1806.js → win-84bda0aa.js} +3 -3
- package/dist/cjs/win-84bda0aa.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/gov-accordion/constants.js +5 -4
- package/dist/collection/components/gov-accordion/constants.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +17 -20
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion.js +17 -18
- package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
- package/dist/collection/components/gov-alert/constants.js +3 -9
- package/dist/collection/components/gov-alert/constants.js.map +1 -1
- package/dist/collection/components/gov-alert/gov-alert.js +6 -7
- package/dist/collection/components/gov-alert/gov-alert.js.map +1 -1
- package/dist/collection/components/gov-app/gov-app.js +3 -3
- package/dist/collection/components/gov-app/gov-app.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.js +5 -5
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments.js +7 -7
- package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +7 -7
- package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
- package/dist/collection/components/gov-badge/constants.js +1 -2
- package/dist/collection/components/gov-badge/constants.js.map +1 -1
- package/dist/collection/components/gov-badge/gov-badge.js +25 -27
- package/dist/collection/components/gov-badge/gov-badge.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +2 -3
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
- package/dist/collection/components/gov-button/constants.js +17 -13
- package/dist/collection/components/gov-button/constants.js.map +1 -1
- package/dist/collection/components/gov-button/gov-button.js +37 -44
- package/dist/collection/components/gov-button/gov-button.js.map +1 -1
- package/dist/collection/components/gov-card/gov-card.js.map +1 -1
- package/dist/collection/components/gov-container/gov-container.js +3 -3
- package/dist/collection/components/gov-container/gov-container.js.map +1 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
- package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
- package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/constants.js +5 -4
- package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +16 -18
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js +2 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +1 -0
- package/dist/collection/components/gov-form/checkbox/constants.js +3 -2
- package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +11 -21
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/interfaces.js.map +1 -1
- package/dist/collection/components/gov-form/control/constants.js +3 -2
- package/dist/collection/components/gov-form/control/constants.js.map +1 -1
- package/dist/collection/components/gov-form/control/gov-form-control.js +40 -42
- package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js +3 -3
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.types.js +2 -0
- package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +1 -0
- package/dist/collection/components/gov-form/input/constants.js +25 -21
- package/dist/collection/components/gov-form/input/constants.js.map +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.js +24 -32
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
- package/dist/collection/components/gov-form/message/constants.js +3 -2
- package/dist/collection/components/gov-form/message/constants.js.map +1 -1
- package/dist/collection/components/gov-form/message/gov-form-message.js +8 -9
- package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/constants.js +5 -4
- package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +16 -18
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
- package/dist/collection/components/gov-form/radio/constants.js +3 -2
- package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +10 -11
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
- package/dist/collection/components/gov-form/radio/interfaces.js.map +1 -1
- package/dist/collection/components/gov-form/search/constants.js +0 -11
- package/dist/collection/components/gov-form/search/constants.js.map +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
- package/dist/collection/components/gov-form/select/constants.js +5 -4
- package/dist/collection/components/gov-form/select/constants.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.js +16 -18
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
- package/dist/collection/components/gov-form/switch/constants.js +3 -2
- package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +10 -11
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
- package/dist/collection/components/gov-form/switch/interfaces.js.map +1 -1
- package/dist/collection/components/gov-grid/constants.js +0 -12
- package/dist/collection/components/gov-grid/constants.js.map +1 -1
- package/dist/collection/components/gov-grid/gov-grid-item.js +5 -5
- package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
- package/dist/collection/components/gov-grid/gov-grid.js +3 -3
- package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
- package/dist/collection/components/gov-icon/constants.js +6 -1
- package/dist/collection/components/gov-icon/constants.js.map +1 -1
- package/dist/collection/components/gov-icon/gov-icon.js +1 -1
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
- package/dist/collection/components/gov-icon/list.js +91 -91
- package/dist/collection/components/gov-icon/list.js.map +1 -1
- package/dist/collection/components/gov-layout/constants.js +13 -7
- package/dist/collection/components/gov-layout/constants.js.map +1 -1
- package/dist/collection/components/gov-layout/{gov-layout-aside.css → gov-layout-column.css} +4 -13
- package/dist/collection/components/gov-layout/gov-layout-column.js +24 -0
- package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -0
- package/dist/collection/components/gov-layout/gov-layout.css +35 -0
- package/dist/collection/components/gov-layout/gov-layout.js +80 -4
- package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
- package/dist/collection/components/gov-loading/gov-loading.js +4 -4
- package/dist/collection/components/gov-loading/gov-loading.js.map +1 -1
- package/dist/collection/components/gov-message/constants.js +3 -9
- package/dist/collection/components/gov-message/constants.js.map +1 -1
- package/dist/collection/components/gov-message/gov-message.js +4 -4
- package/dist/collection/components/gov-message/gov-message.js.map +1 -1
- package/dist/collection/components/gov-modal/gov-modal.js.map +1 -1
- package/dist/collection/components/gov-pagination/constants.js +10 -5
- package/dist/collection/components/gov-pagination/constants.js.map +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.css +5 -8
- package/dist/collection/components/gov-pagination/gov-pagination.js +42 -44
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
- package/dist/collection/components/gov-promp/gov-prompt.js +1 -1
- package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +1 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +1 -1
- package/dist/collection/components/gov-spacer/constants.js +10 -4
- package/dist/collection/components/gov-spacer/constants.js.map +1 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js +9 -11
- package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
- package/dist/collection/components/gov-statsbar/constants.js +7 -2
- package/dist/collection/components/gov-statsbar/constants.js.map +1 -1
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +2 -2
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +1 -1
- package/dist/collection/components/gov-statsbar/gov-statsbar.js +13 -15
- package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +1 -1
- package/dist/collection/components/gov-stepper/constants.js +5 -11
- package/dist/collection/components/gov-stepper/constants.js.map +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper-item.js +17 -20
- package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper.js +14 -15
- package/dist/collection/components/gov-stepper/gov-stepper.js.map +1 -1
- package/dist/collection/components/gov-tabs/constants.js +13 -12
- package/dist/collection/components/gov-tabs/constants.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.css +28 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js +38 -15
- package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.types.js +2 -0
- package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -0
- package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
- package/dist/collection/components/gov-tiles/gov-tiles.js +5 -5
- package/dist/collection/components/gov-tiles/gov-tiles.js.map +1 -1
- package/dist/collection/components/gov-toast/constants.js +10 -20
- package/dist/collection/components/gov-toast/constants.js.map +1 -1
- package/dist/collection/components/gov-toast/gov-toast.js +34 -30
- package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
- package/dist/collection/components/gov-tooltip/constants.js +12 -12
- package/dist/collection/components/gov-tooltip/constants.js.map +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +27 -29
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
- package/dist/collection/components/gov-wizzard/constants.js +5 -4
- package/dist/collection/components/gov-wizzard/constants.js.map +1 -1
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +8 -17
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js +16 -20
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +1 -1
- package/dist/collection/components/gov-wizzard/gov-wizzard.js +9 -10
- package/dist/collection/components/gov-wizzard/gov-wizzard.js.map +1 -1
- package/dist/collection/core/constants/tags.js.map +1 -1
- package/dist/collection/helpers/Dom/form.js.map +1 -1
- package/dist/collection/helpers/Dom/form.types.js +2 -0
- package/dist/collection/helpers/Dom/form.types.js.map +1 -0
- package/dist/collection/helpers/Dom/template.js.map +1 -1
- package/dist/collection/helpers/Dom/template.types.js +2 -0
- package/dist/collection/helpers/Dom/template.types.js.map +1 -0
- package/dist/collection/helpers/Dom/win.js +2 -2
- package/dist/collection/helpers/Dom/win.js.map +1 -1
- package/dist/collection/helpers/Fragment.js.map +1 -1
- package/dist/collection/helpers/StorybookDocsTemplate.js +2 -2
- package/dist/collection/helpers/StorybookDocsTemplate.js.map +1 -1
- package/dist/collection/helpers/Validate/props.js +3 -3
- package/dist/collection/helpers/Validate/props.js.map +1 -1
- package/dist/collection/helpers/Validate/wcag.js +1 -1
- package/dist/collection/helpers/Validate/wcag.js.map +1 -1
- package/dist/collection/pages/Forms.js +1 -1
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/collection/pages/Layout.js +65 -35
- package/dist/collection/pages/Layout.js.map +1 -1
- package/dist/collection/pages/Loading.js +3 -3
- package/dist/collection/pages/Loading.js.map +1 -1
- package/dist/collection/pages/Tabs.js +90 -0
- package/dist/collection/pages/Tabs.js.map +1 -1
- package/dist/collection/pages/Wizzard.js +5 -5
- package/dist/collection/pages/Wizzard.js.map +1 -1
- package/dist/collection/types/interfaces.js.map +1 -1
- package/dist/collection/utils/icon.utils.js +3 -4
- package/dist/collection/utils/icon.utils.js.map +1 -1
- package/dist/collection/utils/utils.js +1 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/constants.js +6 -4
- package/dist/components/constants.js.map +1 -1
- package/dist/components/constants11.js +8 -2
- package/dist/components/constants11.js.map +1 -1
- package/dist/components/constants12.js +6 -3
- package/dist/components/constants12.js.map +1 -1
- package/dist/components/constants13.js +14 -4
- package/dist/components/constants13.js.map +1 -1
- package/dist/components/constants14.js +11 -11
- package/dist/components/constants14.js.map +1 -1
- package/dist/components/constants15.js +6 -3
- package/dist/components/constants15.js.map +1 -1
- package/dist/components/constants3.js +18 -13
- package/dist/components/constants3.js.map +1 -1
- package/dist/components/constants5.js +4 -3
- package/dist/components/constants5.js.map +1 -1
- package/dist/components/constants6.js +0 -2
- package/dist/components/constants6.js.map +1 -1
- package/dist/components/constants7.js +14 -8
- package/dist/components/constants7.js.map +1 -1
- package/dist/components/form.js +36 -8
- package/dist/components/form.js.map +1 -1
- package/dist/components/gov-accordion-item.js +8 -9
- package/dist/components/gov-accordion-item.js.map +1 -1
- package/dist/components/gov-accordion.js +9 -8
- package/dist/components/gov-accordion.js.map +1 -1
- package/dist/components/gov-alert.js +6 -3
- package/dist/components/gov-alert.js.map +1 -1
- package/dist/components/gov-app.js +166 -45
- package/dist/components/gov-app.js.map +1 -1
- package/dist/components/gov-attachments-item2.js +3 -1
- package/dist/components/gov-attachments-item2.js.map +1 -1
- package/dist/components/gov-attachments2.js +4 -2
- package/dist/components/gov-attachments2.js.map +1 -1
- package/dist/components/gov-backdrop2.js +4 -2
- package/dist/components/gov-backdrop2.js.map +1 -1
- package/dist/components/gov-badge2.js +12 -13
- package/dist/components/gov-badge2.js.map +1 -1
- package/dist/components/gov-breadcrumbs.js +4 -3
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button2.js +14 -23
- package/dist/components/gov-button2.js.map +1 -1
- package/dist/components/gov-card.js +3 -1
- package/dist/components/gov-card.js.map +1 -1
- package/dist/components/gov-container.js +1 -0
- package/dist/components/gov-container.js.map +1 -1
- package/dist/components/gov-cookiebar.js +1 -0
- package/dist/components/gov-cookiebar.js.map +1 -1
- package/dist/components/gov-empty.js +1 -0
- package/dist/components/gov-empty.js.map +1 -1
- package/dist/components/gov-error-code.js +1 -0
- package/dist/components/gov-error-code.js.map +1 -1
- package/dist/components/gov-form-autocomplete2.js +8 -8
- package/dist/components/gov-form-autocomplete2.js.map +1 -1
- package/dist/components/gov-form-checkbox.js +8 -16
- package/dist/components/gov-form-checkbox.js.map +1 -1
- package/dist/components/gov-form-control.js +27 -27
- package/dist/components/gov-form-control.js.map +1 -1
- package/dist/components/gov-form-file.js +3 -1
- package/dist/components/gov-form-file.js.map +1 -1
- package/dist/components/gov-form-group.js +1 -0
- package/dist/components/gov-form-group.js.map +1 -1
- package/dist/components/gov-form-input2.js +11 -16
- package/dist/components/gov-form-input2.js.map +1 -1
- package/dist/components/gov-form-label.js +1 -0
- package/dist/components/gov-form-label.js.map +1 -1
- package/dist/components/gov-form-message2.js +5 -5
- package/dist/components/gov-form-message2.js.map +1 -1
- package/dist/components/gov-form-multi-select.js +9 -8
- package/dist/components/gov-form-multi-select.js.map +1 -1
- package/dist/components/gov-form-radio.js +7 -6
- package/dist/components/gov-form-radio.js.map +1 -1
- package/dist/components/gov-form-search.js +1 -2
- package/dist/components/gov-form-search.js.map +1 -1
- package/dist/components/gov-form-select2.js +9 -8
- package/dist/components/gov-form-select2.js.map +1 -1
- package/dist/components/gov-form-switch.js +7 -6
- package/dist/components/gov-form-switch.js.map +1 -1
- package/dist/components/gov-grid-item.js +2 -1
- package/dist/components/gov-grid-item.js.map +1 -1
- package/dist/components/gov-grid.js +1 -0
- package/dist/components/gov-grid.js.map +1 -1
- package/dist/components/gov-icon2.js +9 -3
- package/dist/components/gov-icon2.js.map +1 -1
- package/dist/components/{gov-layout-aside.d.ts → gov-layout-column.d.ts} +4 -4
- package/dist/components/gov-layout-column.js +39 -0
- package/dist/components/gov-layout-column.js.map +1 -0
- package/dist/components/gov-layout.js +17 -3
- package/dist/components/gov-layout.js.map +1 -1
- package/dist/components/gov-loading.js +2 -1
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +4 -1
- package/dist/components/gov-message.js.map +1 -1
- package/dist/components/gov-modal.js +3 -1
- package/dist/components/gov-modal.js.map +1 -1
- package/dist/components/gov-nav-item.js +1 -0
- package/dist/components/gov-nav-item.js.map +1 -1
- package/dist/components/gov-nav.js +3 -1
- package/dist/components/gov-nav.js.map +1 -1
- package/dist/components/gov-pagination.js +28 -21
- package/dist/components/gov-pagination.js.map +1 -1
- package/dist/components/gov-prompt.js +3 -1
- package/dist/components/gov-prompt.js.map +1 -1
- package/dist/components/gov-side-nav-item.js +2 -1
- package/dist/components/gov-side-nav-item.js.map +1 -1
- package/dist/components/gov-side-nav.js +3 -1
- package/dist/components/gov-side-nav.js.map +1 -1
- package/dist/components/gov-spacer.js +12 -13
- package/dist/components/gov-spacer.js.map +1 -1
- package/dist/components/gov-statsbar-item.js +2 -1
- package/dist/components/gov-statsbar-item.js.map +1 -1
- package/dist/components/gov-statsbar.js +6 -6
- package/dist/components/gov-statsbar.js.map +1 -1
- package/dist/components/gov-stepper-item.js +8 -10
- package/dist/components/gov-stepper-item.js.map +1 -1
- package/dist/components/gov-stepper.js +7 -7
- package/dist/components/gov-stepper.js.map +1 -1
- package/dist/components/gov-tabs-item.js +1 -0
- package/dist/components/gov-tabs-item.js.map +1 -1
- package/dist/components/gov-tabs.js +12 -9
- package/dist/components/gov-tabs.js.map +1 -1
- package/dist/components/gov-tile.js +1 -0
- package/dist/components/gov-tile.js.map +1 -1
- package/dist/components/gov-tiles.js +2 -1
- package/dist/components/gov-tiles.js.map +1 -1
- package/dist/components/gov-toast.js +22 -18
- package/dist/components/gov-toast.js.map +1 -1
- package/dist/components/gov-tooltip-content.js +1 -0
- package/dist/components/gov-tooltip-content.js.map +1 -1
- package/dist/components/gov-tooltip.js +14 -15
- package/dist/components/gov-tooltip.js.map +1 -1
- package/dist/components/gov-wizzard-item.js +8 -11
- package/dist/components/gov-wizzard-item.js.map +1 -1
- package/dist/components/gov-wizzard.js +7 -6
- package/dist/components/gov-wizzard.js.map +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.js +1 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/props.js +3 -3
- package/dist/components/props.js.map +1 -1
- package/dist/components/template.js.map +1 -1
- package/dist/{esm/utils-3a968bb9.js → components/utils.js} +3 -2
- package/dist/components/utils.js.map +1 -0
- package/dist/components/variants.js +1 -1
- package/dist/components/variants.js.map +1 -1
- package/dist/components/wcag.js +1 -1
- package/dist/components/wcag.js.map +1 -1
- package/dist/components/win.js +3 -32
- package/dist/components/win.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-c9f0d988.entry.js → p-00182e76.entry.js} +2 -2
- package/dist/core/{p-c9f0d988.entry.js.map → p-00182e76.entry.js.map} +1 -1
- package/dist/core/{p-bbd48feb.entry.js → p-01bdd4a4.entry.js} +2 -2
- package/dist/core/{p-bbd48feb.entry.js.map → p-01bdd4a4.entry.js.map} +1 -1
- package/dist/core/p-0278fcb3.entry.js +2 -0
- package/dist/core/p-0278fcb3.entry.js.map +1 -0
- package/dist/core/p-0284b5e2.js +2 -0
- package/dist/core/p-0284b5e2.js.map +1 -0
- package/dist/core/{p-58691740.js → p-03990da5.js} +2 -2
- package/dist/core/p-03990da5.js.map +1 -0
- package/dist/core/p-03d40bf4.entry.js +2 -0
- package/dist/core/p-03d40bf4.entry.js.map +1 -0
- package/dist/core/{p-9680b966.entry.js → p-08f14c8b.entry.js} +2 -2
- package/dist/core/p-08f14c8b.entry.js.map +1 -0
- package/dist/core/p-0a152bb7.entry.js +2 -0
- package/dist/core/p-0a152bb7.entry.js.map +1 -0
- package/dist/core/p-14f8f2fb.js +2 -0
- package/dist/core/p-14f8f2fb.js.map +1 -0
- package/dist/core/p-2128abe1.entry.js +2 -0
- package/dist/core/p-2128abe1.entry.js.map +1 -0
- package/dist/core/p-22722ff3.entry.js +2 -0
- package/dist/core/p-22722ff3.entry.js.map +1 -0
- package/dist/core/p-2419f4cd.entry.js +2 -0
- package/dist/core/p-2419f4cd.entry.js.map +1 -0
- package/dist/core/p-24cde59e.entry.js.map +1 -1
- package/dist/core/p-25380da6.entry.js +2 -0
- package/dist/core/p-25380da6.entry.js.map +1 -0
- package/dist/core/p-26acf964.js +2 -0
- package/dist/core/p-26acf964.js.map +1 -0
- package/dist/core/p-34360f92.entry.js +2 -0
- package/dist/core/p-34360f92.entry.js.map +1 -0
- package/dist/core/{p-f58b9eec.js → p-364b4792.js} +2 -2
- package/dist/core/p-364b4792.js.map +1 -0
- package/dist/core/p-38fb2d42.entry.js +2 -0
- package/dist/core/p-38fb2d42.entry.js.map +1 -0
- package/dist/core/p-3e9ba1c1.entry.js +2 -0
- package/dist/core/p-3e9ba1c1.entry.js.map +1 -0
- package/dist/core/p-3f37ddb6.js.map +1 -1
- package/dist/core/p-404f469e.js +2 -0
- package/dist/core/p-404f469e.js.map +1 -0
- package/dist/core/p-4681cb3a.entry.js +2 -0
- package/dist/core/p-4681cb3a.entry.js.map +1 -0
- package/dist/core/p-469273be.entry.js +2 -0
- package/dist/core/p-469273be.entry.js.map +1 -0
- package/dist/core/p-4d73d70e.entry.js +2 -0
- package/dist/core/p-4d73d70e.entry.js.map +1 -0
- package/dist/core/{p-2c25aac5.entry.js → p-5547dbb0.entry.js} +2 -2
- package/dist/core/p-5547dbb0.entry.js.map +1 -0
- package/dist/core/p-5cecdaaf.entry.js +2 -0
- package/dist/core/{p-d9ffb84e.entry.js.map → p-5cecdaaf.entry.js.map} +1 -1
- package/dist/core/p-5defdc5e.js +2 -0
- package/dist/core/p-5defdc5e.js.map +1 -0
- package/dist/core/p-5fa41af9.js +2 -0
- package/dist/core/p-5fa41af9.js.map +1 -0
- package/dist/core/p-6278531b.js +2 -0
- package/dist/core/p-6278531b.js.map +1 -0
- package/dist/core/p-63079b80.entry.js +2 -0
- package/dist/core/p-63079b80.entry.js.map +1 -0
- package/dist/core/p-64ced668.js +2 -0
- package/dist/core/p-64ced668.js.map +1 -0
- package/dist/core/p-68d968ac.entry.js +2 -0
- package/dist/core/p-68d968ac.entry.js.map +1 -0
- package/dist/core/{p-6e1b9f39.entry.js → p-6d40721b.entry.js} +2 -2
- package/dist/core/{p-6e1b9f39.entry.js.map → p-6d40721b.entry.js.map} +1 -1
- package/dist/core/p-733bd593.entry.js.map +1 -1
- package/dist/core/{p-cbf4ad73.entry.js → p-7591ecd4.entry.js} +2 -2
- package/dist/core/{p-cbf4ad73.entry.js.map → p-7591ecd4.entry.js.map} +1 -1
- package/dist/core/p-76542f4f.js +2 -0
- package/dist/core/p-76542f4f.js.map +1 -0
- package/dist/core/p-7be3abb5.entry.js.map +1 -1
- package/dist/core/p-80e30702.js +2 -0
- package/dist/core/p-80e30702.js.map +1 -0
- package/dist/core/p-8965f84a.entry.js +2 -0
- package/dist/core/p-8965f84a.entry.js.map +1 -0
- package/dist/core/p-8a8d846c.entry.js +2 -0
- package/dist/core/{p-8e8340b0.entry.js.map → p-8a8d846c.entry.js.map} +1 -1
- package/dist/core/p-9144dde1.js +2 -0
- package/dist/core/p-9144dde1.js.map +1 -0
- package/dist/core/{p-90f818c0.entry.js → p-93facb4a.entry.js} +2 -2
- package/dist/core/p-93facb4a.entry.js.map +1 -0
- package/dist/core/p-9c844f4d.entry.js +2 -0
- package/dist/core/p-9c844f4d.entry.js.map +1 -0
- package/dist/core/p-9cc6ed83.entry.js +2 -0
- package/dist/core/p-9cc6ed83.entry.js.map +1 -0
- package/dist/core/p-9dd1bbdd.entry.js.map +1 -1
- package/dist/core/p-9e6a41cc.entry.js +2 -0
- package/dist/core/p-9e6a41cc.entry.js.map +1 -0
- package/dist/core/{p-64d3cf79.entry.js → p-a5e34e93.entry.js} +2 -2
- package/dist/core/p-a6c8d474.entry.js.map +1 -1
- package/dist/core/p-ad0cc981.entry.js +2 -0
- package/dist/core/p-ad0cc981.entry.js.map +1 -0
- package/dist/core/p-ae3e2d60.entry.js +2 -0
- package/dist/core/p-ae3e2d60.entry.js.map +1 -0
- package/dist/core/p-b48a3112.entry.js +2 -0
- package/dist/core/p-b48a3112.entry.js.map +1 -0
- package/dist/core/{p-59581b1b.entry.js → p-c0d3d3e0.entry.js} +2 -2
- package/dist/core/{p-59581b1b.entry.js.map → p-c0d3d3e0.entry.js.map} +1 -1
- package/dist/core/{p-2b4acb01.js → p-c20102ff.js} +2 -2
- package/dist/core/p-c20102ff.js.map +1 -0
- package/dist/core/p-cf6576fd.entry.js +2 -0
- package/dist/core/p-cf6576fd.entry.js.map +1 -0
- package/dist/core/p-e52a042f.entry.js.map +1 -1
- package/dist/core/p-e7dd2002.entry.js +2 -0
- package/dist/core/p-e7dd2002.entry.js.map +1 -0
- package/dist/core/p-eb1214ab.entry.js +2 -0
- package/dist/core/p-eb1214ab.entry.js.map +1 -0
- package/dist/core/p-ec617f18.entry.js +2 -0
- package/dist/core/p-ec617f18.entry.js.map +1 -0
- package/dist/core/p-ef79904e.js +2 -0
- package/dist/core/p-ef79904e.js.map +1 -0
- package/dist/core/p-f1fe9358.entry.js +2 -0
- package/dist/core/p-f1fe9358.entry.js.map +1 -0
- package/dist/core/p-f2dc8ce3.entry.js.map +1 -1
- package/dist/core/p-f531f5c4.entry.js +2 -0
- package/dist/core/p-f531f5c4.entry.js.map +1 -0
- package/dist/core/p-f5ee7634.entry.js +2 -0
- package/dist/core/p-f5ee7634.entry.js.map +1 -0
- package/dist/core/p-f5ffcb3d.entry.js +2 -0
- package/dist/core/p-f5ffcb3d.entry.js.map +1 -0
- package/dist/core/p-f687452c.js +2 -0
- package/dist/core/p-f687452c.js.map +1 -0
- package/dist/core/{p-08524615.entry.js → p-fc1581f9.entry.js} +2 -2
- package/dist/core/{p-08524615.entry.js.map → p-fc1581f9.entry.js.map} +1 -1
- package/dist/core/{p-fd62c386.entry.js → p-fc91591d.entry.js} +2 -2
- package/dist/core/{p-fd62c386.entry.js.map → p-fc91591d.entry.js.map} +1 -1
- package/dist/core/p-fc9d66ae.entry.js +2 -0
- package/dist/core/{p-9baa1a0e.entry.js.map → p-fc9d66ae.entry.js.map} +1 -1
- package/dist/core/{p-99cc3dba.js → p-ff7365ae.js} +2 -2
- package/dist/core/p-ff7365ae.js.map +1 -0
- package/dist/core/p-ffb7495c.js +2 -0
- package/dist/core/p-ffb7495c.js.map +1 -0
- package/dist/custom-elements/index.d.ts +4 -10
- package/dist/custom-elements/index.js +1 -1
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/constants-136d4cd3.js +16 -0
- package/dist/esm/constants-136d4cd3.js.map +1 -0
- package/dist/esm/{constants-4d4cc5e1.js → constants-14a7ba8e.js} +7 -5
- package/dist/esm/constants-14a7ba8e.js.map +1 -0
- package/dist/esm/constants-1a2146b2.js +32 -0
- package/dist/esm/constants-1a2146b2.js.map +1 -0
- package/dist/esm/constants-24dad929.js +29 -0
- package/dist/esm/constants-24dad929.js.map +1 -0
- package/dist/esm/{constants-2cd89f93.js → constants-2b14bb01.js} +1 -3
- package/dist/esm/constants-2b14bb01.js.map +1 -0
- package/dist/esm/constants-2e8258cf.js +15 -0
- package/dist/esm/constants-2e8258cf.js.map +1 -0
- package/dist/esm/constants-3786b01b.js +22 -0
- package/dist/esm/constants-3786b01b.js.map +1 -0
- package/dist/esm/constants-3df712e2.js +13 -0
- package/dist/esm/constants-3df712e2.js.map +1 -0
- package/dist/esm/{constants-ec176a77.js → constants-78474786.js} +7 -4
- package/dist/esm/constants-78474786.js.map +1 -0
- package/dist/esm/constants-bf5a583f.js +24 -0
- package/dist/esm/constants-bf5a583f.js.map +1 -0
- package/dist/esm/constants-d550c816.js +22 -0
- package/dist/esm/constants-d550c816.js.map +1 -0
- package/dist/esm/constants-f7b618c2.js +23 -0
- package/dist/esm/constants-f7b618c2.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{form-121eab06.js → form-95b9a91b.js} +36 -9
- package/dist/esm/form-95b9a91b.js.map +1 -0
- package/dist/esm/gov-accordion-item.entry.js +8 -8
- package/dist/esm/gov-accordion-item.entry.js.map +1 -1
- package/dist/esm/gov-accordion.entry.js +10 -10
- package/dist/esm/gov-accordion.entry.js.map +1 -1
- package/dist/esm/gov-alert.entry.js +6 -4
- package/dist/esm/gov-alert.entry.js.map +1 -1
- package/dist/esm/gov-app.entry.js +165 -45
- package/dist/esm/gov-app.entry.js.map +1 -1
- package/dist/esm/gov-attachments_3.entry.js +9 -9
- package/dist/esm/gov-attachments_3.entry.js.map +1 -1
- package/dist/esm/gov-backdrop.entry.js +4 -4
- package/dist/esm/gov-backdrop.entry.js.map +1 -1
- package/dist/esm/gov-badge.entry.js +11 -10
- package/dist/esm/gov-badge.entry.js.map +1 -1
- package/dist/esm/gov-breadcrumbs.entry.js +4 -5
- package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
- package/dist/esm/gov-button.entry.js +12 -23
- package/dist/esm/gov-button.entry.js.map +1 -1
- package/dist/esm/gov-card.entry.js +3 -3
- package/dist/esm/gov-card.entry.js.map +1 -1
- package/dist/esm/gov-container.entry.js.map +1 -1
- package/dist/esm/gov-cookiebar.entry.js.map +1 -1
- package/dist/esm/gov-empty.entry.js.map +1 -1
- package/dist/esm/gov-error-code.entry.js.map +1 -1
- package/dist/esm/gov-form-autocomplete.entry.js +8 -8
- package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
- package/dist/esm/gov-form-checkbox.entry.js +13 -22
- package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
- package/dist/esm/gov-form-control.entry.js +30 -29
- package/dist/esm/gov-form-control.entry.js.map +1 -1
- package/dist/esm/gov-form-file.entry.js +8 -8
- package/dist/esm/gov-form-file.entry.js.map +1 -1
- package/dist/esm/gov-form-input.entry.js +13 -19
- package/dist/esm/gov-form-input.entry.js.map +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +10 -10
- package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
- package/dist/esm/gov-form-radio.entry.js +12 -12
- package/dist/esm/gov-form-radio.entry.js.map +1 -1
- package/dist/esm/gov-form-search.entry.js +0 -2
- package/dist/esm/gov-form-search.entry.js.map +1 -1
- package/dist/esm/gov-form-select.entry.js +13 -13
- package/dist/esm/gov-form-select.entry.js.map +1 -1
- package/dist/esm/gov-form-switch.entry.js +12 -12
- package/dist/esm/gov-form-switch.entry.js.map +1 -1
- package/dist/esm/gov-grid-item.entry.js +2 -3
- package/dist/esm/gov-grid-item.entry.js.map +1 -1
- package/dist/esm/gov-grid.entry.js +1 -2
- package/dist/esm/gov-grid.entry.js.map +1 -1
- package/dist/esm/gov-icon.entry.js +10 -5
- package/dist/esm/gov-icon.entry.js.map +1 -1
- package/dist/esm/gov-layout-column.entry.js +21 -0
- package/dist/esm/gov-layout-column.entry.js.map +1 -0
- package/dist/esm/gov-layout.entry.js +12 -3
- package/dist/esm/gov-layout.entry.js.map +1 -1
- package/dist/esm/gov-loading.entry.js +1 -1
- package/dist/esm/gov-loading.entry.js.map +1 -1
- package/dist/esm/gov-message.entry.js +4 -2
- package/dist/esm/gov-message.entry.js.map +1 -1
- package/dist/esm/gov-modal.entry.js +3 -3
- package/dist/esm/gov-modal.entry.js.map +1 -1
- package/dist/esm/gov-nav.entry.js +3 -3
- package/dist/esm/gov-pagination.entry.js +27 -22
- package/dist/esm/gov-pagination.entry.js.map +1 -1
- package/dist/esm/gov-prompt.entry.js +3 -3
- package/dist/esm/gov-prompt.entry.js.map +1 -1
- package/dist/esm/gov-side-nav-item.entry.js +1 -1
- package/dist/esm/gov-side-nav-item.entry.js.map +1 -1
- package/dist/esm/gov-side-nav.entry.js +3 -3
- package/dist/esm/gov-side-nav.entry.js.map +1 -1
- package/dist/esm/gov-spacer.entry.js +11 -13
- package/dist/esm/gov-spacer.entry.js.map +1 -1
- package/dist/esm/gov-statsbar-item.entry.js +4 -2
- package/dist/esm/gov-statsbar-item.entry.js.map +1 -1
- package/dist/esm/gov-statsbar.entry.js +7 -6
- package/dist/esm/gov-statsbar.entry.js.map +1 -1
- package/dist/esm/gov-stepper-item.entry.js +9 -9
- package/dist/esm/gov-stepper-item.entry.js.map +1 -1
- package/dist/esm/gov-stepper.entry.js +9 -8
- package/dist/esm/gov-stepper.entry.js.map +1 -1
- package/dist/esm/gov-tabs-item.entry.js +3 -3
- package/dist/esm/gov-tabs-item.entry.js.map +1 -1
- package/dist/esm/gov-tabs.entry.js +11 -11
- package/dist/esm/gov-tabs.entry.js.map +1 -1
- package/dist/esm/gov-tile.entry.js.map +1 -1
- package/dist/esm/gov-tiles.entry.js +1 -1
- package/dist/esm/gov-tiles.entry.js.map +1 -1
- package/dist/esm/gov-toast.entry.js +21 -18
- package/dist/esm/gov-toast.entry.js.map +1 -1
- package/dist/esm/gov-tooltip-content.entry.js +3 -2
- package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
- package/dist/esm/gov-tooltip.entry.js +15 -14
- package/dist/esm/gov-tooltip.entry.js.map +1 -1
- package/dist/esm/gov-wizzard-item.entry.js +10 -11
- package/dist/esm/gov-wizzard-item.entry.js.map +1 -1
- package/dist/esm/gov-wizzard.entry.js +9 -9
- package/dist/esm/gov-wizzard.entry.js.map +1 -1
- package/dist/esm/index-00e9a0d5.js +2 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{props-cb992af5.js → props-789f7529.js} +4 -4
- package/dist/esm/props-789f7529.js.map +1 -0
- package/dist/esm/template-10332292.js.map +1 -1
- package/dist/esm/utils-c057a3fa.js +35 -0
- package/dist/esm/utils-c057a3fa.js.map +1 -0
- package/dist/esm/{variants-b5641e3d.js → variants-2b936d58.js} +2 -2
- package/dist/esm/variants-2b936d58.js.map +1 -0
- package/dist/esm/{wcag-af732bfe.js → wcag-3792d4bb.js} +2 -2
- package/dist/esm/wcag-3792d4bb.js.map +1 -0
- package/dist/esm/{win-cb090c11.js → win-9c8460bb.js} +3 -3
- package/dist/esm/win-9c8460bb.js.map +1 -0
- package/dist/hydrate/index.js +532 -390
- package/dist/types/components/gov-accordion/constants.d.ts +7 -6
- package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +3 -3
- package/dist/types/components/gov-accordion/gov-accordion.d.ts +3 -3
- package/dist/types/components/gov-alert/constants.d.ts +4 -3
- package/dist/types/components/gov-app/gov-app.d.ts +1 -1
- package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +1 -1
- package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +1 -1
- package/dist/types/components/gov-badge/constants.d.ts +4 -3
- package/dist/types/components/gov-badge/gov-badge.d.ts +4 -4
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +1 -1
- package/dist/types/components/gov-button/constants.d.ts +20 -10
- package/dist/types/components/gov-button/gov-button.d.ts +6 -8
- package/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +1 -1
- package/dist/types/components/gov-form/autocomplete/constants.d.ts +7 -6
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +3 -3
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +3 -0
- package/dist/types/components/gov-form/checkbox/constants.d.ts +4 -3
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +3 -4
- package/dist/types/components/gov-form/control/constants.d.ts +4 -3
- package/dist/types/components/gov-form/control/gov-form-control.d.ts +3 -3
- package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -1
- package/dist/types/components/gov-form/file/gov-form-file.types.d.ts +6 -0
- package/dist/types/components/gov-form/input/constants.d.ts +27 -10
- package/dist/types/components/gov-form/input/gov-form-input.d.ts +5 -5
- package/dist/types/components/gov-form/message/constants.d.ts +4 -3
- package/dist/types/components/gov-form/message/gov-form-message.d.ts +3 -3
- package/dist/types/components/gov-form/multiselect/constants.d.ts +7 -6
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +4 -4
- package/dist/types/components/gov-form/radio/constants.d.ts +4 -3
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +2 -2
- package/dist/types/components/gov-form/search/constants.d.ts +0 -6
- package/dist/types/components/gov-form/select/constants.d.ts +7 -6
- package/dist/types/components/gov-form/select/gov-form-select.d.ts +3 -3
- package/dist/types/components/gov-form/switch/constants.d.ts +4 -3
- package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +2 -2
- package/dist/types/components/gov-grid/constants.d.ts +0 -3
- package/dist/types/components/gov-icon/constants.d.ts +8 -2
- package/dist/types/components/gov-layout/constants.d.ts +14 -6
- package/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
- package/dist/types/components/gov-layout/gov-layout.d.ts +14 -0
- package/dist/types/components/gov-message/constants.d.ts +4 -3
- package/dist/types/components/gov-message/gov-message.d.ts +2 -2
- package/dist/types/components/gov-pagination/constants.d.ts +12 -8
- package/dist/types/components/gov-pagination/gov-pagination.d.ts +6 -6
- package/dist/types/components/gov-spacer/constants.d.ts +11 -4
- package/dist/types/components/gov-spacer/gov-spacer.d.ts +2 -2
- package/dist/types/components/gov-statsbar/constants.d.ts +8 -4
- package/dist/types/components/gov-statsbar/gov-statsbar-item.d.ts +1 -1
- package/dist/types/components/gov-statsbar/gov-statsbar.d.ts +1 -1
- package/dist/types/components/gov-stepper/constants.d.ts +7 -6
- package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +3 -3
- package/dist/types/components/gov-stepper/gov-stepper.d.ts +4 -4
- package/dist/types/components/gov-tabs/constants.d.ts +14 -8
- package/dist/types/components/gov-tabs/gov-tabs.d.ts +9 -5
- package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +8 -0
- package/dist/types/components/gov-toast/constants.d.ts +6 -5
- package/dist/types/components/gov-toast/gov-toast.d.ts +7 -6
- package/dist/types/components/gov-tooltip/constants.d.ts +9 -9
- package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +4 -4
- package/dist/types/components/gov-wizzard/constants.d.ts +7 -6
- package/dist/types/components/gov-wizzard/gov-wizzard-item.d.ts +3 -3
- package/dist/types/components/gov-wizzard/gov-wizzard.d.ts +2 -2
- package/dist/types/components.d.ts +157 -153
- package/dist/types/helpers/Dom/form.d.ts +2 -2
- package/dist/types/helpers/Dom/form.types.d.ts +9 -0
- package/dist/types/helpers/Dom/template.d.ts +1 -1
- package/dist/types/helpers/Dom/template.types.d.ts +12 -0
- package/dist/types/helpers/Validate/props.d.ts +1 -1
- package/dist/types/types/interfaces.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/constants-0c6897bc.js.map +0 -1
- package/dist/cjs/constants-24f26d54.js +0 -15
- package/dist/cjs/constants-24f26d54.js.map +0 -1
- package/dist/cjs/constants-404ee283.js +0 -21
- package/dist/cjs/constants-404ee283.js.map +0 -1
- package/dist/cjs/constants-477ca85a.js.map +0 -1
- package/dist/cjs/constants-5c8f444a.js.map +0 -1
- package/dist/cjs/constants-5ca7e728.js +0 -18
- package/dist/cjs/constants-5ca7e728.js.map +0 -1
- package/dist/cjs/constants-8c9eeb15.js +0 -20
- package/dist/cjs/constants-8c9eeb15.js.map +0 -1
- package/dist/cjs/constants-a44c32bc.js.map +0 -1
- package/dist/cjs/constants-a92bbccb.js +0 -17
- package/dist/cjs/constants-a92bbccb.js.map +0 -1
- package/dist/cjs/constants-b39578d9.js +0 -29
- package/dist/cjs/constants-b39578d9.js.map +0 -1
- package/dist/cjs/constants-b3c2277b.js +0 -23
- package/dist/cjs/constants-b3c2277b.js.map +0 -1
- package/dist/cjs/constants-b8ec7b03.js +0 -32
- package/dist/cjs/constants-b8ec7b03.js.map +0 -1
- package/dist/cjs/form-d9f0f50c.js.map +0 -1
- package/dist/cjs/gov-layout-aside.cjs.entry.js +0 -26
- package/dist/cjs/gov-layout-aside.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-layout-content.cjs.entry.js +0 -26
- package/dist/cjs/gov-layout-content.cjs.entry.js.map +0 -1
- package/dist/cjs/props-cc21d3d7.js.map +0 -1
- package/dist/cjs/utils-4ae73637.js.map +0 -1
- package/dist/cjs/variants-bacf037a.js.map +0 -1
- package/dist/cjs/wcag-eca97102.js.map +0 -1
- package/dist/cjs/win-ac5c1806.js.map +0 -1
- package/dist/collection/components/gov-layout/gov-layout-aside.js +0 -47
- package/dist/collection/components/gov-layout/gov-layout-aside.js.map +0 -1
- package/dist/collection/components/gov-layout/gov-layout-content.css +0 -227
- package/dist/collection/components/gov-layout/gov-layout-content.js +0 -47
- package/dist/collection/components/gov-layout/gov-layout-content.js.map +0 -1
- package/dist/collection/core/constants/breakpoint.js +0 -9
- package/dist/collection/core/constants/breakpoint.js.map +0 -1
- package/dist/components/gov-layout-aside.js +0 -41
- package/dist/components/gov-layout-aside.js.map +0 -1
- package/dist/components/gov-layout-content.d.ts +0 -11
- package/dist/components/gov-layout-content.js +0 -41
- package/dist/components/gov-layout-content.js.map +0 -1
- package/dist/core/p-097332b9.entry.js +0 -2
- package/dist/core/p-097332b9.entry.js.map +0 -1
- package/dist/core/p-09b38102.entry.js +0 -2
- package/dist/core/p-09b38102.entry.js.map +0 -1
- package/dist/core/p-1525ef03.entry.js +0 -2
- package/dist/core/p-1525ef03.entry.js.map +0 -1
- package/dist/core/p-1ffe4cac.entry.js +0 -2
- package/dist/core/p-1ffe4cac.entry.js.map +0 -1
- package/dist/core/p-22c3946b.entry.js +0 -2
- package/dist/core/p-22c3946b.entry.js.map +0 -1
- package/dist/core/p-28f08f8b.entry.js +0 -2
- package/dist/core/p-28f08f8b.entry.js.map +0 -1
- package/dist/core/p-2b19bea6.entry.js +0 -2
- package/dist/core/p-2b19bea6.entry.js.map +0 -1
- package/dist/core/p-2b4acb01.js.map +0 -1
- package/dist/core/p-2c25aac5.entry.js.map +0 -1
- package/dist/core/p-2c9031ef.entry.js +0 -2
- package/dist/core/p-2c9031ef.entry.js.map +0 -1
- package/dist/core/p-3426a731.entry.js +0 -2
- package/dist/core/p-3426a731.entry.js.map +0 -1
- package/dist/core/p-3b8d7a9a.entry.js +0 -2
- package/dist/core/p-3b8d7a9a.entry.js.map +0 -1
- package/dist/core/p-44f22320.entry.js +0 -2
- package/dist/core/p-44f22320.entry.js.map +0 -1
- package/dist/core/p-468873ec.entry.js +0 -2
- package/dist/core/p-468873ec.entry.js.map +0 -1
- package/dist/core/p-48a7c794.entry.js +0 -2
- package/dist/core/p-48a7c794.entry.js.map +0 -1
- package/dist/core/p-4e21ca0f.entry.js +0 -2
- package/dist/core/p-4e21ca0f.entry.js.map +0 -1
- package/dist/core/p-58691740.js.map +0 -1
- package/dist/core/p-5f7e38b6.entry.js +0 -2
- package/dist/core/p-5f7e38b6.entry.js.map +0 -1
- package/dist/core/p-64445e87.js +0 -2
- package/dist/core/p-64445e87.js.map +0 -1
- package/dist/core/p-68d4837b.entry.js +0 -2
- package/dist/core/p-68d4837b.entry.js.map +0 -1
- package/dist/core/p-6ce1f525.js +0 -2
- package/dist/core/p-6ce1f525.js.map +0 -1
- package/dist/core/p-708963e6.js +0 -2
- package/dist/core/p-708963e6.js.map +0 -1
- package/dist/core/p-71134d97.js +0 -2
- package/dist/core/p-71134d97.js.map +0 -1
- package/dist/core/p-78a4be4b.entry.js +0 -2
- package/dist/core/p-78a4be4b.entry.js.map +0 -1
- package/dist/core/p-803629e9.entry.js +0 -2
- package/dist/core/p-803629e9.entry.js.map +0 -1
- package/dist/core/p-808cd4b7.entry.js +0 -2
- package/dist/core/p-808cd4b7.entry.js.map +0 -1
- package/dist/core/p-8e8340b0.entry.js +0 -2
- package/dist/core/p-8ebc3217.js +0 -2
- package/dist/core/p-8ebc3217.js.map +0 -1
- package/dist/core/p-8eece26f.entry.js +0 -2
- package/dist/core/p-8eece26f.entry.js.map +0 -1
- package/dist/core/p-90f818c0.entry.js.map +0 -1
- package/dist/core/p-951d9c21.js +0 -2
- package/dist/core/p-951d9c21.js.map +0 -1
- package/dist/core/p-9680b966.entry.js.map +0 -1
- package/dist/core/p-9711e4e5.entry.js +0 -2
- package/dist/core/p-9711e4e5.entry.js.map +0 -1
- package/dist/core/p-99cc3dba.js.map +0 -1
- package/dist/core/p-9baa1a0e.entry.js +0 -2
- package/dist/core/p-a2f9daba.js +0 -2
- package/dist/core/p-a2f9daba.js.map +0 -1
- package/dist/core/p-a32723d4.entry.js +0 -2
- package/dist/core/p-a32723d4.entry.js.map +0 -1
- package/dist/core/p-a5b02584.js +0 -2
- package/dist/core/p-a5b02584.js.map +0 -1
- package/dist/core/p-b4581984.js +0 -2
- package/dist/core/p-b4581984.js.map +0 -1
- package/dist/core/p-b5935207.entry.js +0 -2
- package/dist/core/p-b5935207.entry.js.map +0 -1
- package/dist/core/p-ba500f74.entry.js +0 -2
- package/dist/core/p-ba500f74.entry.js.map +0 -1
- package/dist/core/p-c9e7a558.entry.js +0 -2
- package/dist/core/p-c9e7a558.entry.js.map +0 -1
- package/dist/core/p-cbe6523f.entry.js +0 -2
- package/dist/core/p-cbe6523f.entry.js.map +0 -1
- package/dist/core/p-cd4f034f.js +0 -2
- package/dist/core/p-cd4f034f.js.map +0 -1
- package/dist/core/p-d4aaff74.js +0 -2
- package/dist/core/p-d4aaff74.js.map +0 -1
- package/dist/core/p-d65f71e1.js +0 -2
- package/dist/core/p-d65f71e1.js.map +0 -1
- package/dist/core/p-d9ffb84e.entry.js +0 -2
- package/dist/core/p-dc87f017.entry.js +0 -2
- package/dist/core/p-dc87f017.entry.js.map +0 -1
- package/dist/core/p-eadaa1d1.entry.js +0 -2
- package/dist/core/p-eadaa1d1.entry.js.map +0 -1
- package/dist/core/p-ef3e7866.js +0 -2
- package/dist/core/p-ef3e7866.js.map +0 -1
- package/dist/core/p-f1226ef1.entry.js +0 -2
- package/dist/core/p-f1226ef1.entry.js.map +0 -1
- package/dist/core/p-f4030908.entry.js +0 -2
- package/dist/core/p-f4030908.entry.js.map +0 -1
- package/dist/core/p-f58b9eec.js.map +0 -1
- package/dist/core/p-f82535b7.js +0 -2
- package/dist/core/p-f82535b7.js.map +0 -1
- package/dist/core/p-fc3c7246.entry.js +0 -2
- package/dist/core/p-fc3c7246.entry.js.map +0 -1
- package/dist/esm/constants-129909d1.js +0 -14
- package/dist/esm/constants-129909d1.js.map +0 -1
- package/dist/esm/constants-1f1d1d3e.js +0 -16
- package/dist/esm/constants-1f1d1d3e.js.map +0 -1
- package/dist/esm/constants-2cd89f93.js.map +0 -1
- package/dist/esm/constants-3b157470.js +0 -23
- package/dist/esm/constants-3b157470.js.map +0 -1
- package/dist/esm/constants-3de0521d.js +0 -27
- package/dist/esm/constants-3de0521d.js.map +0 -1
- package/dist/esm/constants-4331e6d9.js +0 -12
- package/dist/esm/constants-4331e6d9.js.map +0 -1
- package/dist/esm/constants-4cdfde31.js +0 -14
- package/dist/esm/constants-4cdfde31.js.map +0 -1
- package/dist/esm/constants-4d4cc5e1.js.map +0 -1
- package/dist/esm/constants-8f0bcad2.js +0 -21
- package/dist/esm/constants-8f0bcad2.js.map +0 -1
- package/dist/esm/constants-b49812cd.js +0 -16
- package/dist/esm/constants-b49812cd.js.map +0 -1
- package/dist/esm/constants-c8f57790.js +0 -19
- package/dist/esm/constants-c8f57790.js.map +0 -1
- package/dist/esm/constants-ec176a77.js.map +0 -1
- package/dist/esm/form-121eab06.js.map +0 -1
- package/dist/esm/gov-layout-aside.entry.js +0 -22
- package/dist/esm/gov-layout-aside.entry.js.map +0 -1
- package/dist/esm/gov-layout-content.entry.js +0 -22
- package/dist/esm/gov-layout-content.entry.js.map +0 -1
- package/dist/esm/props-cb992af5.js.map +0 -1
- package/dist/esm/utils-3a968bb9.js.map +0 -1
- package/dist/esm/variants-b5641e3d.js.map +0 -1
- package/dist/esm/wcag-af732bfe.js.map +0 -1
- package/dist/esm/win-cb090c11.js.map +0 -1
- package/dist/types/components/gov-layout/gov-layout-aside.d.ts +0 -10
- package/dist/types/components/gov-layout/gov-layout-content.d.ts +0 -10
- package/dist/types/core/constants/breakpoint.d.ts +0 -8
- /package/dist/core/{p-64d3cf79.entry.js.map → p-a5e34e93.entry.js.map} +0 -0
package/dist/hydrate/index.js
CHANGED
|
@@ -5732,16 +5732,16 @@ const govErrorLog = (message) => {
|
|
|
5732
5732
|
govLog(message, ERROR_COLORS);
|
|
5733
5733
|
};
|
|
5734
5734
|
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5735
|
+
// @TODO: deal with optional values
|
|
5736
|
+
const validateProp = (valueEnum, value, component) => {
|
|
5737
|
+
const values = Object.values(valueEnum);
|
|
5738
5738
|
const isValid = values.indexOf(value) > -1;
|
|
5739
5739
|
if (!isValid) {
|
|
5740
5740
|
govWarningLog(`[${component}]: Bad parameter with value (${value}). Available parameters are (${values.join(', ')}).`);
|
|
5741
5741
|
}
|
|
5742
5742
|
};
|
|
5743
5743
|
|
|
5744
|
-
var Sizes
|
|
5744
|
+
var Sizes;
|
|
5745
5745
|
(function (Sizes) {
|
|
5746
5746
|
Sizes["_2XS"] = "2xs";
|
|
5747
5747
|
Sizes["_XS"] = "xs";
|
|
@@ -5754,9 +5754,9 @@ var Sizes$3;
|
|
|
5754
5754
|
Sizes["_4XL"] = "4xl";
|
|
5755
5755
|
Sizes["_5XL"] = "6xl";
|
|
5756
5756
|
Sizes["_6XL"] = "6xl";
|
|
5757
|
-
})(Sizes
|
|
5757
|
+
})(Sizes || (Sizes = {}));
|
|
5758
5758
|
|
|
5759
|
-
var Variants
|
|
5759
|
+
var Variants;
|
|
5760
5760
|
(function (Variants) {
|
|
5761
5761
|
Variants["PRIMARY"] = "primary";
|
|
5762
5762
|
Variants["SECONDARY"] = "secondary";
|
|
@@ -5764,14 +5764,47 @@ var Variants$6;
|
|
|
5764
5764
|
Variants["ERROR"] = "error";
|
|
5765
5765
|
Variants["WARNING"] = "warning";
|
|
5766
5766
|
Variants["CUSTOM"] = "custom";
|
|
5767
|
-
})(Variants
|
|
5768
|
-
var Types$
|
|
5767
|
+
})(Variants || (Variants = {}));
|
|
5768
|
+
var Types$1;
|
|
5769
5769
|
(function (Types) {
|
|
5770
5770
|
Types["CLASSIC"] = "classic";
|
|
5771
5771
|
Types["SOLID"] = "solid";
|
|
5772
|
-
})(Types$
|
|
5772
|
+
})(Types$1 || (Types$1 = {}));
|
|
5773
|
+
|
|
5774
|
+
async function delay(miliseconds) {
|
|
5775
|
+
return new Promise(resolve => setTimeout(resolve, miliseconds));
|
|
5776
|
+
}
|
|
5777
|
+
function throttle(f, delay) {
|
|
5778
|
+
let timer = 0;
|
|
5779
|
+
return function (...args) {
|
|
5780
|
+
clearTimeout(timer);
|
|
5781
|
+
timer = setTimeout(() => f.apply(this, args), delay);
|
|
5782
|
+
};
|
|
5783
|
+
}
|
|
5784
|
+
/**
|
|
5785
|
+
* Checks if object has that property
|
|
5786
|
+
*
|
|
5787
|
+
* @param {K} prop
|
|
5788
|
+
* @param {T} obj
|
|
5789
|
+
* @return {obj is T & Record<K, V>}
|
|
5790
|
+
*/
|
|
5791
|
+
const has = (prop, obj) => {
|
|
5792
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
5793
|
+
};
|
|
5794
|
+
/**
|
|
5795
|
+
* Returns property of given Object
|
|
5796
|
+
*
|
|
5797
|
+
* @param {K} name
|
|
5798
|
+
* @param {T} object
|
|
5799
|
+
* @return {(T & Record<K, unknown>)[K]}
|
|
5800
|
+
*/
|
|
5801
|
+
const property = (name, object) => {
|
|
5802
|
+
return has(name, object) ? object[name] : undefined;
|
|
5803
|
+
};
|
|
5804
|
+
const pick = (obj, keys) => Object.fromEntries(Object.entries(obj).filter(([key]) => keys.includes(key)));
|
|
5773
5805
|
|
|
5774
|
-
const
|
|
5806
|
+
const AccordionSizes = pick(Sizes, ['_S', '_M', '_L']);
|
|
5807
|
+
const AccordionVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'CUSTOM']);
|
|
5775
5808
|
const AccordionClass = {
|
|
5776
5809
|
root: 'gov-accordion',
|
|
5777
5810
|
};
|
|
@@ -5805,43 +5838,12 @@ function splitByWhitespace(string) {
|
|
|
5805
5838
|
return string.split(/(\s+)/);
|
|
5806
5839
|
}
|
|
5807
5840
|
|
|
5808
|
-
async function delay(miliseconds) {
|
|
5809
|
-
return new Promise(resolve => setTimeout(resolve, miliseconds));
|
|
5810
|
-
}
|
|
5811
|
-
function throttle(f, delay) {
|
|
5812
|
-
let timer = 0;
|
|
5813
|
-
return function (...args) {
|
|
5814
|
-
clearTimeout(timer);
|
|
5815
|
-
timer = setTimeout(() => f.apply(this, args), delay);
|
|
5816
|
-
};
|
|
5817
|
-
}
|
|
5818
|
-
/**
|
|
5819
|
-
* Checks if object has that property
|
|
5820
|
-
*
|
|
5821
|
-
* @param {K} prop
|
|
5822
|
-
* @param {T} obj
|
|
5823
|
-
* @return {obj is T & Record<K, V>}
|
|
5824
|
-
*/
|
|
5825
|
-
const has = (prop, obj) => {
|
|
5826
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
5827
|
-
};
|
|
5828
|
-
/**
|
|
5829
|
-
* Returns property of given Object
|
|
5830
|
-
*
|
|
5831
|
-
* @param {K} name
|
|
5832
|
-
* @param {T} object
|
|
5833
|
-
* @return {(T & Record<K, unknown>)[K]}
|
|
5834
|
-
*/
|
|
5835
|
-
const property = (name, object) => {
|
|
5836
|
-
return has(name, object) ? object[name] : undefined;
|
|
5837
|
-
};
|
|
5838
|
-
|
|
5839
5841
|
const getWindowProperty = (name) => window && property(name, window);
|
|
5840
5842
|
const config = () => {
|
|
5841
5843
|
const defaultConfig = {
|
|
5842
5844
|
canValidateWcagOnRender: false,
|
|
5843
5845
|
iconsPath: './assets/icons',
|
|
5844
|
-
documentNode: document ? document : null
|
|
5846
|
+
documentNode: document ? document : null,
|
|
5845
5847
|
};
|
|
5846
5848
|
const windowProperty = getWindowProperty('GOV_DS_CONFIG');
|
|
5847
5849
|
if (windowProperty) {
|
|
@@ -6023,17 +6025,17 @@ class GovAccordion {
|
|
|
6023
6025
|
constructor(hostRef) {
|
|
6024
6026
|
registerInstance(this, hostRef);
|
|
6025
6027
|
this.govChange = createEvent(this, "gov-change", 7);
|
|
6026
|
-
this.size =
|
|
6027
|
-
this.variant =
|
|
6028
|
+
this.size = 'm';
|
|
6029
|
+
this.variant = 'primary';
|
|
6028
6030
|
this.wcagLabel = undefined;
|
|
6029
6031
|
this.wcagLabelledBy = undefined;
|
|
6030
6032
|
this.h = govHost(this.host);
|
|
6031
6033
|
}
|
|
6032
6034
|
validateSize(newValue) {
|
|
6033
|
-
validateProp(
|
|
6035
|
+
validateProp(AccordionSizes, newValue, AccordionClass.root);
|
|
6034
6036
|
}
|
|
6035
6037
|
validateVariant(newValue) {
|
|
6036
|
-
validateProp(Variants
|
|
6038
|
+
validateProp(Variants, newValue, AccordionClass.root);
|
|
6037
6039
|
}
|
|
6038
6040
|
componentWillLoad() {
|
|
6039
6041
|
this.validateSize(this.size);
|
|
@@ -6074,8 +6076,8 @@ class GovAccordion {
|
|
|
6074
6076
|
"$flags$": 4,
|
|
6075
6077
|
"$tagName$": "gov-accordion",
|
|
6076
6078
|
"$members$": {
|
|
6077
|
-
"size": [
|
|
6078
|
-
"variant": [
|
|
6079
|
+
"size": [1],
|
|
6080
|
+
"variant": [1],
|
|
6079
6081
|
"wcagLabel": [1, "wcag-label"],
|
|
6080
6082
|
"wcagLabelledBy": [1, "wcag-labelled-by"],
|
|
6081
6083
|
"validateWcag": [64]
|
|
@@ -6093,7 +6095,7 @@ class GovAccordionItem {
|
|
|
6093
6095
|
registerInstance(this, hostRef);
|
|
6094
6096
|
this.govChange = createEvent(this, "gov-change", 7);
|
|
6095
6097
|
this.isExpandedState = undefined;
|
|
6096
|
-
this.variant =
|
|
6098
|
+
this.variant = 'primary';
|
|
6097
6099
|
this.identifier = undefined;
|
|
6098
6100
|
this.size = undefined;
|
|
6099
6101
|
this.label = undefined;
|
|
@@ -6119,10 +6121,10 @@ class GovAccordionItem {
|
|
|
6119
6121
|
}
|
|
6120
6122
|
}
|
|
6121
6123
|
validateSize(newValue) {
|
|
6122
|
-
validateProp(
|
|
6124
|
+
validateProp(AccordionSizes, newValue, AccordionItemClass.root);
|
|
6123
6125
|
}
|
|
6124
6126
|
validateVariant(newValue) {
|
|
6125
|
-
validateProp(
|
|
6127
|
+
validateProp(AccordionVariants, newValue, AccordionItemClass.root);
|
|
6126
6128
|
}
|
|
6127
6129
|
emmitChange() {
|
|
6128
6130
|
this.govChange.emit({ open: this.isExpandedState, element: this.host });
|
|
@@ -6139,8 +6141,7 @@ class GovAccordionItem {
|
|
|
6139
6141
|
const contentId = this.contentId;
|
|
6140
6142
|
const { isExpandedState, label } = this;
|
|
6141
6143
|
const TriggerTag = this.triggerTag;
|
|
6142
|
-
return (hAsync(Host, { class: this.h.classes(AccordionItemClass.root), role: "listitem" }, hAsync("button", { id: triggerId, class: AccordionItemClass.header, "aria-expanded": booleanString(isExpandedState), "aria-controls": contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: () => this.toggle() }, hAsync(TriggerTag, { class: AccordionItemClass.title }, this.h.hasSlot('icon') && (hAsync("span", { class: AccordionItemClass.icon }, hAsync("slot", { name: "icon" }))), hAsync("span", { class: AccordionItemClass.name }, hAsync("span", { class: AccordionItemClass.label }, label), this.annotation &&
|
|
6143
|
-
hAsync("span", { class: AccordionItemClass.annot }, this.annotation)), this.h.hasSlot('suffix') && (hAsync("span", { class: AccordionItemClass.suffix }, hAsync("slot", { name: "suffix" })))), hAsync("gov-icon", { class: AccordionItemClass.arrow, name: "arrow-down" })), hAsync("div", { class: AccordionItemClass.content, id: contentId, "aria-hidden": booleanString(!isExpandedState), hidden: !isExpandedState, "aria-labelledby": triggerId }, hAsync("slot", null))));
|
|
6144
|
+
return (hAsync(Host, { class: this.h.classes(AccordionItemClass.root), role: "listitem" }, hAsync("button", { id: triggerId, class: AccordionItemClass.header, "aria-expanded": booleanString(isExpandedState), "aria-controls": contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: () => this.toggle() }, hAsync(TriggerTag, { class: AccordionItemClass.title }, this.h.hasSlot('icon') && (hAsync("span", { class: AccordionItemClass.icon }, hAsync("slot", { name: "icon" }))), hAsync("span", { class: AccordionItemClass.name }, hAsync("span", { class: AccordionItemClass.label }, label), this.annotation && hAsync("span", { class: AccordionItemClass.annot }, this.annotation)), this.h.hasSlot('suffix') && (hAsync("span", { class: AccordionItemClass.suffix }, hAsync("slot", { name: "suffix" })))), hAsync("gov-icon", { class: AccordionItemClass.arrow, name: "arrow-down" })), hAsync("div", { class: AccordionItemClass.content, id: contentId, "aria-hidden": booleanString(!isExpandedState), hidden: !isExpandedState, "aria-labelledby": triggerId }, hAsync("slot", null))));
|
|
6144
6145
|
}
|
|
6145
6146
|
/**
|
|
6146
6147
|
* Opening the accordion
|
|
@@ -6181,9 +6182,9 @@ class GovAccordionItem {
|
|
|
6181
6182
|
"$flags$": 4,
|
|
6182
6183
|
"$tagName$": "gov-accordion-item",
|
|
6183
6184
|
"$members$": {
|
|
6184
|
-
"variant": [
|
|
6185
|
+
"variant": [1],
|
|
6185
6186
|
"identifier": [1],
|
|
6186
|
-
"size": [
|
|
6187
|
+
"size": [1],
|
|
6187
6188
|
"label": [1],
|
|
6188
6189
|
"annotation": [1],
|
|
6189
6190
|
"disabled": [4],
|
|
@@ -6201,6 +6202,7 @@ class GovAccordionItem {
|
|
|
6201
6202
|
}; }
|
|
6202
6203
|
}
|
|
6203
6204
|
|
|
6205
|
+
const AlertVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS']);
|
|
6204
6206
|
const AlertClass = {
|
|
6205
6207
|
root: 'gov-alert',
|
|
6206
6208
|
section: 'gov-alert__section',
|
|
@@ -6215,14 +6217,14 @@ class GovAlert {
|
|
|
6215
6217
|
constructor(hostRef) {
|
|
6216
6218
|
registerInstance(this, hostRef);
|
|
6217
6219
|
this.govClose = createEvent(this, "gov-close", 7);
|
|
6218
|
-
this.variant =
|
|
6220
|
+
this.variant = 'primary';
|
|
6219
6221
|
this.inverse = false;
|
|
6220
6222
|
this.wcagCloseLabel = undefined;
|
|
6221
6223
|
this.closable = false;
|
|
6222
6224
|
this.h = govHost(this.host);
|
|
6223
6225
|
}
|
|
6224
6226
|
validateVariant(newValue) {
|
|
6225
|
-
validateProp(
|
|
6227
|
+
validateProp(AlertVariants, newValue, AlertClass.root);
|
|
6226
6228
|
}
|
|
6227
6229
|
componentWillLoad() {
|
|
6228
6230
|
this.validateVariant(this.variant);
|
|
@@ -6246,7 +6248,7 @@ class GovAlert {
|
|
|
6246
6248
|
"$flags$": 4,
|
|
6247
6249
|
"$tagName$": "gov-alert",
|
|
6248
6250
|
"$members$": {
|
|
6249
|
-
"variant": [
|
|
6251
|
+
"variant": [1],
|
|
6250
6252
|
"inverse": [4],
|
|
6251
6253
|
"wcagCloseLabel": [1, "wcag-close-label"],
|
|
6252
6254
|
"closable": [4]
|
|
@@ -11872,6 +11874,7 @@ class FormsPage extends HTMLElement {
|
|
|
11872
11874
|
<gov-form-label size="s" slot="top">Label of input</gov-form-label>
|
|
11873
11875
|
<gov-form-group>
|
|
11874
11876
|
<gov-form-input id="kapr" name="test-me" placeholder="Placeholder">
|
|
11877
|
+
<gov-icon slot="right-icon" name="info"></gov-icon>
|
|
11875
11878
|
</gov-form-input>
|
|
11876
11879
|
</gov-form-group>
|
|
11877
11880
|
</gov-form-control>
|
|
@@ -12006,7 +12009,6 @@ class FormsPage extends HTMLElement {
|
|
|
12006
12009
|
</gov-form-switch>
|
|
12007
12010
|
</gov-form-group>
|
|
12008
12011
|
</gov-form-control>
|
|
12009
|
-
|
|
12010
12012
|
<gov-form-control size="l">
|
|
12011
12013
|
<gov-form-group>
|
|
12012
12014
|
<gov-form-switch name="test-me" value="me" checked>
|
|
@@ -12372,55 +12374,85 @@ class LayoutPage extends HTMLElement {
|
|
|
12372
12374
|
<h2>Layout</h2>
|
|
12373
12375
|
|
|
12374
12376
|
<gov-container>
|
|
12375
|
-
<gov-layout>
|
|
12376
|
-
<gov-layout-
|
|
12377
|
-
<p><b>
|
|
12378
|
-
</gov-layout-
|
|
12379
|
-
<gov-layout-aside position="right">
|
|
12380
|
-
<p><b>Aside</b> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla malesuada ut urna sit amet egestas. Ut hendrerit tellus non purus porta, sit amet convallis lacus pellentesque. Sed ultricies metus in tempor viverra. Sed vehicula libero ipsum, non fringilla nulla dapibus ac. Etiam a feugiat mauris. Aenean ultrices at nisi nec dapibus. In hac habitasse platea dictumst. Pellentesque sit amet aliquet nibh.</p>
|
|
12381
|
-
</gov-layout-aside>
|
|
12377
|
+
<gov-layout type="stretch">
|
|
12378
|
+
<gov-layout-column>
|
|
12379
|
+
<p><b>Stretch</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus. Donec justo lacus, congue hendrerit felis sit amet, commodo lobortis neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla vulputate urna sapien. Proin imperdiet rhoncus dictum. Pellentesque tempor ultrices tortor, ac mollis lorem mollis non. Phasellus sit amet maximus ex, id scelerisque nulla. Etiam eu orci a nulla semper maximus et at quam.</p>
|
|
12380
|
+
</gov-layout-column>
|
|
12382
12381
|
</gov-layout>
|
|
12383
12382
|
<br>
|
|
12384
12383
|
<gov-layout>
|
|
12385
|
-
<gov-layout-
|
|
12386
|
-
<p><b>
|
|
12387
|
-
</gov-layout-
|
|
12388
|
-
<gov-layout-
|
|
12389
|
-
<p><b>
|
|
12390
|
-
</gov-layout-
|
|
12384
|
+
<gov-layout-column>
|
|
12385
|
+
<p><b>Stretch</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus. Donec justo lacus, congue hendrerit felis sit amet, commodo lobortis neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla vulputate urna sapien. Proin imperdiet rhoncus dictum. Pellentesque tempor ultrices tortor, ac mollis lorem mollis non. Phasellus sit amet maximus ex, id scelerisque nulla. Etiam eu orci a nulla semper maximus et at quam.</p>
|
|
12386
|
+
</gov-layout-column>
|
|
12387
|
+
<gov-layout-column>
|
|
12388
|
+
<p><b>Stretch</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus. Donec justo lacus, congue hendrerit felis sit amet, commodo lobortis neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla vulputate urna sapien. Proin imperdiet rhoncus dictum. Pellentesque tempor ultrices tortor, ac mollis lorem mollis non. Phasellus sit amet maximus ex, id scelerisque nulla. Etiam eu orci a nulla semper maximus et at quam.</p>
|
|
12389
|
+
</gov-layout-column>
|
|
12391
12390
|
</gov-layout>
|
|
12392
12391
|
<br>
|
|
12393
12392
|
<gov-layout>
|
|
12394
|
-
<gov-layout-
|
|
12395
|
-
<p><b>
|
|
12396
|
-
</gov-layout-
|
|
12397
|
-
<gov-layout-
|
|
12398
|
-
<p><b>
|
|
12399
|
-
</gov-layout-
|
|
12393
|
+
<gov-layout-column>
|
|
12394
|
+
<p><b>Stretch</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus. Donec justo lacus, congue hendrerit felis sit amet, commodo lobortis neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla vulputate urna sapien. Proin imperdiet rhoncus dictum. Pellentesque tempor ultrices tortor, ac mollis lorem mollis non. Phasellus sit amet maximus ex, id scelerisque nulla. Etiam eu orci a nulla semper maximus et at quam.</p>
|
|
12395
|
+
</gov-layout-column>
|
|
12396
|
+
<gov-layout-column>
|
|
12397
|
+
<p><b>Stretch</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus. Donec justo lacus, congue hendrerit felis sit amet, commodo lobortis neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla vulputate urna sapien. Proin imperdiet rhoncus dictum. Pellentesque tempor ultrices tortor, ac mollis lorem mollis non. Phasellus sit amet maximus ex, id scelerisque nulla. Etiam eu orci a nulla semper maximus et at quam.</p>
|
|
12398
|
+
</gov-layout-column>
|
|
12399
|
+
<gov-layout-column>
|
|
12400
|
+
<p><b>Stretch</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus. Donec justo lacus, congue hendrerit felis sit amet, commodo lobortis neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla vulputate urna sapien. Proin imperdiet rhoncus dictum. Pellentesque tempor ultrices tortor, ac mollis lorem mollis non. Phasellus sit amet maximus ex, id scelerisque nulla. Etiam eu orci a nulla semper maximus et at quam.</p>
|
|
12401
|
+
</gov-layout-column>
|
|
12400
12402
|
</gov-layout>
|
|
12401
12403
|
<br>
|
|
12402
|
-
<gov-layout>
|
|
12403
|
-
<gov-layout-
|
|
12404
|
-
<p><b>
|
|
12405
|
-
</gov-layout-
|
|
12404
|
+
<gov-layout type="aside" variant="right">
|
|
12405
|
+
<gov-layout-column>
|
|
12406
|
+
<p><b>Aside right</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus. Donec justo lacus, congue hendrerit felis sit amet, commodo lobortis neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla vulputate urna sapien. Proin imperdiet rhoncus dictum. Pellentesque tempor ultrices tortor, ac mollis lorem mollis non. Phasellus sit amet maximus ex, id scelerisque nulla. Etiam eu orci a nulla semper maximus et at quam.</p>
|
|
12407
|
+
</gov-layout-column>
|
|
12408
|
+
<gov-layout-column>
|
|
12409
|
+
<p><b>Aside right</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus.</p>
|
|
12410
|
+
</gov-layout-column>
|
|
12406
12411
|
</gov-layout>
|
|
12407
12412
|
<br>
|
|
12408
|
-
<gov-layout>
|
|
12409
|
-
<gov-layout-
|
|
12410
|
-
<p><b>
|
|
12411
|
-
</gov-layout-
|
|
12413
|
+
<gov-layout type="aside" variant="left">
|
|
12414
|
+
<gov-layout-column>
|
|
12415
|
+
<p><b>Aside left</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus.</p>
|
|
12416
|
+
</gov-layout-column>
|
|
12417
|
+
<gov-layout-column>
|
|
12418
|
+
<p><b>Aside left</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus. Donec justo lacus, congue hendrerit felis sit amet, commodo lobortis neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla vulputate urna sapien. Proin imperdiet rhoncus dictum. Pellentesque tempor ultrices tortor, ac mollis lorem mollis non. Phasellus sit amet maximus ex, id scelerisque nulla. Etiam eu orci a nulla semper maximus et at quam.</p>
|
|
12419
|
+
</gov-layout-column>
|
|
12412
12420
|
</gov-layout>
|
|
12413
12421
|
<br>
|
|
12414
|
-
<gov-layout>
|
|
12415
|
-
<gov-layout-
|
|
12416
|
-
<p><b>
|
|
12417
|
-
</gov-layout-
|
|
12422
|
+
<gov-layout type="aside" variant="right" inverse>
|
|
12423
|
+
<gov-layout-column>
|
|
12424
|
+
<p><b>Aside right inverse</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus. Donec justo lacus, congue hendrerit felis sit amet, commodo lobortis neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla vulputate urna sapien. Proin imperdiet rhoncus dictum. Pellentesque tempor ultrices tortor, ac mollis lorem mollis non. Phasellus sit amet maximus ex, id scelerisque nulla. Etiam eu orci a nulla semper maximus et at quam.</p>
|
|
12425
|
+
</gov-layout-column>
|
|
12426
|
+
<gov-layout-column>
|
|
12427
|
+
<p><b>Aside right inverse</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus.</p>
|
|
12428
|
+
</gov-layout-column>
|
|
12418
12429
|
</gov-layout>
|
|
12419
12430
|
<br>
|
|
12420
|
-
<gov-layout>
|
|
12421
|
-
<gov-layout-
|
|
12422
|
-
<p><b>
|
|
12423
|
-
</gov-layout-
|
|
12431
|
+
<gov-layout type="aside" variant="left" inverse>
|
|
12432
|
+
<gov-layout-column>
|
|
12433
|
+
<p><b>Aside left inverse</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus.</p>
|
|
12434
|
+
</gov-layout-column>
|
|
12435
|
+
<gov-layout-column>
|
|
12436
|
+
<p><b>Aside left inverse</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus. Donec justo lacus, congue hendrerit felis sit amet, commodo lobortis neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla vulputate urna sapien. Proin imperdiet rhoncus dictum. Pellentesque tempor ultrices tortor, ac mollis lorem mollis non. Phasellus sit amet maximus ex, id scelerisque nulla. Etiam eu orci a nulla semper maximus et at quam.</p>
|
|
12437
|
+
</gov-layout-column>
|
|
12438
|
+
</gov-layout>
|
|
12439
|
+
<br>
|
|
12440
|
+
<gov-layout type="text" variant="left">
|
|
12441
|
+
<gov-layout-column>
|
|
12442
|
+
<p><b>Text left</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus. Donec justo lacus, congue hendrerit felis sit amet, commodo lobortis neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla vulputate urna sapien. Proin imperdiet rhoncus dictum. Pellentesque tempor ultrices tortor, ac mollis lorem mollis non. Phasellus sit amet maximus ex, id scelerisque nulla. Etiam eu orci a nulla semper maximus et at quam.</p>
|
|
12443
|
+
</gov-layout-column>
|
|
12444
|
+
</gov-layout>
|
|
12445
|
+
<br>
|
|
12446
|
+
<gov-layout type="text">
|
|
12447
|
+
<gov-layout-column>
|
|
12448
|
+
<p><b>Text</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus. Donec justo lacus, congue hendrerit felis sit amet, commodo lobortis neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla vulputate urna sapien. Proin imperdiet rhoncus dictum. Pellentesque tempor ultrices tortor, ac mollis lorem mollis non. Phasellus sit amet maximus ex, id scelerisque nulla. Etiam eu orci a nulla semper maximus et at quam.</p>
|
|
12449
|
+
</gov-layout-column>
|
|
12450
|
+
</gov-layout>
|
|
12451
|
+
<br>
|
|
12452
|
+
<gov-layout type="text" variant="right">
|
|
12453
|
+
<gov-layout-column>
|
|
12454
|
+
<p><b>Text right</b> Ut sollicitudin risus sit amet placerat fermentum. Sed libero mauris, maximus cursus magna tincidunt, efficitur congue enim. Suspendisse potenti. Sed ac eleifend leo. Nullam a sapien in diam semper faucibus sit amet vel nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu faucibus mi. Morbi leo ipsum, tempus vel vulputate non, varius et lectus. Donec justo lacus, congue hendrerit felis sit amet, commodo lobortis neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla vulputate urna sapien. Proin imperdiet rhoncus dictum. Pellentesque tempor ultrices tortor, ac mollis lorem mollis non. Phasellus sit amet maximus ex, id scelerisque nulla. Etiam eu orci a nulla semper maximus et at quam.</p>
|
|
12455
|
+
</gov-layout-column>
|
|
12424
12456
|
</gov-layout>
|
|
12425
12457
|
<br>
|
|
12426
12458
|
</gov-container>
|
|
@@ -12600,7 +12632,7 @@ class LoadingPage extends HTMLElement {
|
|
|
12600
12632
|
<p>aspo idapo diopad siaspo dasipo dsaiopds iaposa ipodsai dpsoa isapdsoai pdso posadd</p>
|
|
12601
12633
|
<p>aspo idapo diopad siaspo dasipo dsaiopds iaposa ipodsai dpsoa isapdsoai pdso posadd</p>
|
|
12602
12634
|
<p>aspo idapo diopad siaspo dasipo dsaiopds iaposa ipodsai dpsoa isapdsoai pdso posadd</p>
|
|
12603
|
-
<p>aspo idapo diopad siaspo dasipo dsaiopds iaposa ipodsai dpsoa isapdsoai pdso posadd</p>
|
|
12635
|
+
<p>aspo idapo diopad siaspo dasipo dsaiopds iaposa ipodsai dpsoa isapdsoai pdso posadd</p>
|
|
12604
12636
|
<p>aspo idapo diopad siaspo dasipo dsaiopds iaposa ipodsai dpsoa isapdsoai pdso posadd</p>
|
|
12605
12637
|
<p>aspo idapo diopad siaspo dasipo dsaiopds iaposa ipodsai dpsoa isapdsoai pdso posadd</p>
|
|
12606
12638
|
<p>aspo idapo diopad siaspo dasipo dsaiopds iaposa ipodsai dpsoa isapdsoai pdso posadd</p>
|
|
@@ -12623,8 +12655,8 @@ class LoadingPage extends HTMLElement {
|
|
|
12623
12655
|
`;
|
|
12624
12656
|
}
|
|
12625
12657
|
}
|
|
12626
|
-
if (customElements.get(
|
|
12627
|
-
customElements.define(
|
|
12658
|
+
if (customElements.get('loading-page') === undefined) {
|
|
12659
|
+
customElements.define('loading-page', LoadingPage);
|
|
12628
12660
|
}
|
|
12629
12661
|
|
|
12630
12662
|
class NavPage extends HTMLElement {
|
|
@@ -13382,6 +13414,96 @@ class TabsPage extends HTMLElement {
|
|
|
13382
13414
|
(např. opakování „asdf asdf asdf…“).</p>
|
|
13383
13415
|
</gov-tabs-item>
|
|
13384
13416
|
</gov-tabs>
|
|
13417
|
+
|
|
13418
|
+
<h2>Vertical tabs</h2>
|
|
13419
|
+
<gov-tabs id="po" wcag-label="Důležitý tabs" wcag-select-label="Výběr možnosti" orientation="vertical">
|
|
13420
|
+
<gov-tabs-item label="TAB #1">
|
|
13421
|
+
<p>Muj super tab - Lorem ipsum (zkráceně lipsum) je označení pro standardní pseudolatinský text užívaný v grafickém
|
|
13422
|
+
designu a navrhování jako demonstrativní výplňový text při vytváření pracovních ukázek grafických
|
|
13423
|
+
návrhů (např. internetových stránek, rozvržení časopisů či všech druhů reklamních materiálů). Lipsum
|
|
13424
|
+
tak pracovně znázorňuje text v ukázkových maketách (tzv. mock-up) předtím, než bude do hotového
|
|
13425
|
+
návrhu vložen smysluplný obsah.</p>
|
|
13426
|
+
</gov-tabs-item>
|
|
13427
|
+
<gov-tabs-item label="TAB #2" default>
|
|
13428
|
+
<p>Dalsi super tab - Pokud by se pro stejný účel použil smysluplný text, bylo by těžké hodnotit pouze vzhled, aniž by se
|
|
13429
|
+
pozorovatel nechal svést ke čtení obsahu. Pokud by byl naopak použit nesmyslný, ale pravidelný text
|
|
13430
|
+
(např. opakování „asdf asdf asdf…“), oko by při posuzování vzhledu bylo vyrušováno pravidelnou
|
|
13431
|
+
strukturou textu, která se od běžného textu liší. Text lorem ipsum na první pohled připomíná běžný
|
|
13432
|
+
text, slova jsou různě dlouhá, frekvence písmen je podobná běžné řeči, interpunkce vypadá přirozeně
|
|
13433
|
+
atd.</p>
|
|
13434
|
+
</gov-tabs-item>
|
|
13435
|
+
<gov-tabs-item label="TAB #3">
|
|
13436
|
+
<p>Dalsi super tab - Pokud by se pro stejný účel použil smysluplný text, bylo by těžké hodnotit pouze vzhled, aniž by se
|
|
13437
|
+
pozorovatel nechal svést ke čtení obsahu. Pokud by byl naopak použit nesmyslný, ale pravidelný text
|
|
13438
|
+
(např. opakování „asdf asdf asdf…“).</p>
|
|
13439
|
+
</gov-tabs-item>
|
|
13440
|
+
</gov-tabs>
|
|
13441
|
+
<gov-tabs id="po" wcag-label="Důležitý tabs" wcag-select-label="Výběr možnosti" orientation="vertical">
|
|
13442
|
+
<gov-tabs-item label="Muj super tab">
|
|
13443
|
+
<p>Muj super tab - Lorem ipsum (zkráceně lipsum) je označení pro standardní pseudolatinský text užívaný v grafickém
|
|
13444
|
+
designu a navrhování jako demonstrativní výplňový text při vytváření pracovních ukázek grafických
|
|
13445
|
+
návrhů (např. internetových stránek, rozvržení časopisů či všech druhů reklamních materiálů). Lipsum
|
|
13446
|
+
tak pracovně znázorňuje text v ukázkových maketách (tzv. mock-up) předtím, než bude do hotového
|
|
13447
|
+
návrhu vložen smysluplný obsah.</p>
|
|
13448
|
+
</gov-tabs-item>
|
|
13449
|
+
<gov-tabs-item label="Dalsi super tab s dlouhým popisem" default>
|
|
13450
|
+
<p>Dalsi suepr tab - Pokud by se pro stejný účel použil smysluplný text, bylo by těžké hodnotit pouze vzhled, aniž by se
|
|
13451
|
+
pozorovatel nechal svést ke čtení obsahu. Pokud by byl naopak použit nesmyslný, ale pravidelný text
|
|
13452
|
+
(např. opakování „asdf asdf asdf…“), oko by při posuzování vzhledu bylo vyrušováno pravidelnou
|
|
13453
|
+
strukturou textu, která se od běžného textu liší. Text lorem ipsum na první pohled připomíná běžný
|
|
13454
|
+
text, slova jsou různě dlouhá, frekvence písmen je podobná běžné řeči, interpunkce vypadá přirozeně
|
|
13455
|
+
atd.</p>
|
|
13456
|
+
</gov-tabs-item>
|
|
13457
|
+
<gov-tabs-item label="Další super tab s naprosto nesmyslně dlouhým popisem, který se doufám nevyužije">
|
|
13458
|
+
<p>Dalsi suepr tab - Pokud by se pro stejný účel použil smysluplný text, bylo by těžké hodnotit pouze vzhled, aniž by se
|
|
13459
|
+
pozorovatel nechal svést ke čtení obsahu. Pokud by byl naopak použit nesmyslný, ale pravidelný text
|
|
13460
|
+
(např. opakování „asdf asdf asdf…“).</p>
|
|
13461
|
+
</gov-tabs-item>
|
|
13462
|
+
</gov-tabs>
|
|
13463
|
+
<gov-tabs id="po" type="badge" wcag-label="Důležitý tabs" wcag-select-label="Výběr možnosti" orientation="vertical">
|
|
13464
|
+
<gov-tabs-item label="TAB #1">
|
|
13465
|
+
<p>Muj super tab - Lorem ipsum (zkráceně lipsum) je označení pro standardní pseudolatinský text užívaný v grafickém
|
|
13466
|
+
designu a navrhování jako demonstrativní výplňový text při vytváření pracovních ukázek grafických
|
|
13467
|
+
návrhů (např. internetových stránek, rozvržení časopisů či všech druhů reklamních materiálů). Lipsum
|
|
13468
|
+
tak pracovně znázorňuje text v ukázkových maketách (tzv. mock-up) předtím, než bude do hotového
|
|
13469
|
+
návrhu vložen smysluplný obsah.</p>
|
|
13470
|
+
</gov-tabs-item>
|
|
13471
|
+
<gov-tabs-item label="TAB #2" default>
|
|
13472
|
+
<p>Dalsi suepr tab - Pokud by se pro stejný účel použil smysluplný text, bylo by těžké hodnotit pouze vzhled, aniž by se
|
|
13473
|
+
pozorovatel nechal svést ke čtení obsahu. Pokud by byl naopak použit nesmyslný, ale pravidelný text
|
|
13474
|
+
(např. opakování „asdf asdf asdf…“), oko by při posuzování vzhledu bylo vyrušováno pravidelnou
|
|
13475
|
+
strukturou textu, která se od běžného textu liší. Text lorem ipsum na první pohled připomíná běžný
|
|
13476
|
+
text, slova jsou různě dlouhá, frekvence písmen je podobná běžné řeči, interpunkce vypadá přirozeně
|
|
13477
|
+
atd.</p>
|
|
13478
|
+
</gov-tabs-item>
|
|
13479
|
+
<gov-tabs-item label="TAB #3">
|
|
13480
|
+
<p>Dalsi suepr tab - Pokud by se pro stejný účel použil smysluplný text, bylo by těžké hodnotit pouze vzhled, aniž by se
|
|
13481
|
+
pozorovatel nechal svést ke čtení obsahu. Pokud by byl naopak použit nesmyslný, ale pravidelný text
|
|
13482
|
+
(např. opakování „asdf asdf asdf…“).</p>
|
|
13483
|
+
</gov-tabs-item>
|
|
13484
|
+
</gov-tabs>
|
|
13485
|
+
<gov-tabs id="po" type="badge" wcag-label="Důležitý tabs" wcag-select-label="Výběr možnosti" orientation="vertical">
|
|
13486
|
+
<gov-tabs-item label="Muj super tab">
|
|
13487
|
+
<p>Muj super tab - Lorem ipsum (zkráceně lipsum) je označení pro standardní pseudolatinský text užívaný v grafickém
|
|
13488
|
+
designu a navrhování jako demonstrativní výplňový text při vytváření pracovních ukázek grafických
|
|
13489
|
+
návrhů (např. internetových stránek, rozvržení časopisů či všech druhů reklamních materiálů). Lipsum
|
|
13490
|
+
tak pracovně znázorňuje text v ukázkových maketách (tzv. mock-up) předtím, než bude do hotového
|
|
13491
|
+
návrhu vložen smysluplný obsah.</p>
|
|
13492
|
+
</gov-tabs-item>
|
|
13493
|
+
<gov-tabs-item label="Dalsi super tab s dlouhým popisem" default>
|
|
13494
|
+
<p>Dalsi suepr tab - Pokud by se pro stejný účel použil smysluplný text, bylo by těžké hodnotit pouze vzhled, aniž by se
|
|
13495
|
+
pozorovatel nechal svést ke čtení obsahu. Pokud by byl naopak použit nesmyslný, ale pravidelný text
|
|
13496
|
+
(např. opakování „asdf asdf asdf…“), oko by při posuzování vzhledu bylo vyrušováno pravidelnou
|
|
13497
|
+
strukturou textu, která se od běžného textu liší. Text lorem ipsum na první pohled připomíná běžný
|
|
13498
|
+
text, slova jsou různě dlouhá, frekvence písmen je podobná běžné řeči, interpunkce vypadá přirozeně
|
|
13499
|
+
atd.</p>
|
|
13500
|
+
</gov-tabs-item>
|
|
13501
|
+
<gov-tabs-item label="Další super tab s naprosto nesmyslně dlouhým popisem, který se doufám nevyužije">
|
|
13502
|
+
<p>Dalsi suepr tab - Pokud by se pro stejný účel použil smysluplný text, bylo by těžké hodnotit pouze vzhled, aniž by se
|
|
13503
|
+
pozorovatel nechal svést ke čtení obsahu. Pokud by byl naopak použit nesmyslný, ale pravidelný text
|
|
13504
|
+
(např. opakování „asdf asdf asdf…“).</p>
|
|
13505
|
+
</gov-tabs-item>
|
|
13506
|
+
</gov-tabs>
|
|
13385
13507
|
`;
|
|
13386
13508
|
}
|
|
13387
13509
|
}
|
|
@@ -13799,7 +13921,7 @@ class WizzardPage extends HTMLElement {
|
|
|
13799
13921
|
<span slot="prefix">4</span>
|
|
13800
13922
|
<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>
|
|
13801
13923
|
</gov-wizzard-item>
|
|
13802
|
-
<gov-wizzard-item label="Zřizované organizace" variant="warning"
|
|
13924
|
+
<gov-wizzard-item label="Zřizované organizace" variant="warning" is-expanded>
|
|
13803
13925
|
<span slot="prefix">5</span>
|
|
13804
13926
|
<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>
|
|
13805
13927
|
</gov-wizzard-item>
|
|
@@ -13808,12 +13930,12 @@ class WizzardPage extends HTMLElement {
|
|
|
13808
13930
|
<br><br>
|
|
13809
13931
|
|
|
13810
13932
|
<gov-wizzard size="s">
|
|
13811
|
-
<gov-wizzard-item label-tag="h1" label="Font Awesome Icon" variant="success" annotation="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus.">
|
|
13933
|
+
<gov-wizzard-item label-tag="h1" label="Font Awesome Icon" variant="success" annotation="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus." collapsible>
|
|
13812
13934
|
<gov-icon slot="prefix" name="check"></gov-icon>
|
|
13813
13935
|
<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>
|
|
13814
13936
|
<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>
|
|
13815
13937
|
</gov-wizzard-item>
|
|
13816
|
-
<gov-wizzard-item label="Kontaktní osoby" variant="primary">
|
|
13938
|
+
<gov-wizzard-item label="Kontaktní osoby" variant="primary" is-expanded>
|
|
13817
13939
|
<span slot="prefix">2</span>
|
|
13818
13940
|
<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>
|
|
13819
13941
|
</gov-wizzard-item>
|
|
@@ -13833,12 +13955,12 @@ class WizzardPage extends HTMLElement {
|
|
|
13833
13955
|
<br><br>
|
|
13834
13956
|
|
|
13835
13957
|
<gov-wizzard size="xs">
|
|
13836
|
-
<gov-wizzard-item label-tag="h1" label="Font Awesome Icon" variant="success" annotation="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus.">
|
|
13958
|
+
<gov-wizzard-item label-tag="h1" label="Font Awesome Icon" variant="success" annotation="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus." collapsible>
|
|
13837
13959
|
<gov-icon slot="prefix" name="check"></gov-icon>
|
|
13838
13960
|
<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>
|
|
13839
13961
|
<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>
|
|
13840
13962
|
</gov-wizzard-item>
|
|
13841
|
-
<gov-wizzard-item label="Kontaktní osoby" variant="primary">
|
|
13963
|
+
<gov-wizzard-item label="Kontaktní osoby" variant="primary" is-expanded>
|
|
13842
13964
|
<span slot="prefix">2</span>
|
|
13843
13965
|
<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>
|
|
13844
13966
|
</gov-wizzard-item>
|
|
@@ -13891,7 +14013,7 @@ class GovApp {
|
|
|
13891
14013
|
{ path: '/form-message', component: 'form-message-page' },
|
|
13892
14014
|
{ path: '/form-label', component: 'form-label-page' },
|
|
13893
14015
|
{ path: '/grid', component: 'grid-page' },
|
|
13894
|
-
{ path:
|
|
14016
|
+
{ path: '/loading', component: 'loading-page' },
|
|
13895
14017
|
{ path: '/modal', component: 'modal-page' },
|
|
13896
14018
|
{ path: '/nav', component: 'nav-page' },
|
|
13897
14019
|
{ path: '/spacer', component: 'spacer-page' },
|
|
@@ -13959,7 +14081,7 @@ class GovAttachments {
|
|
|
13959
14081
|
* Validate the WCAG attributes of the component
|
|
13960
14082
|
*/
|
|
13961
14083
|
async validateWcag() {
|
|
13962
|
-
validateWcagProp(this.wcagLabel,
|
|
14084
|
+
validateWcagProp(this.wcagLabel, 'wcag-label', AttachmentsClass.root);
|
|
13963
14085
|
}
|
|
13964
14086
|
get host() { return getElement(this); }
|
|
13965
14087
|
static get style() { return govAttachmentsCss; }
|
|
@@ -14044,7 +14166,7 @@ class GovBackdrop {
|
|
|
14044
14166
|
render() {
|
|
14045
14167
|
if (!this.visible)
|
|
14046
14168
|
return null;
|
|
14047
|
-
return (hAsync(Host, { class: this.h.classes(BackdropClass.root), inverse: booleanString(this.inverse) }, hAsync("div", { role:
|
|
14169
|
+
return (hAsync(Host, { class: this.h.classes(BackdropClass.root), inverse: booleanString(this.inverse) }, hAsync("div", { role: 'button', "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy, onClick: e => this.govClick.emit(e), class: BackdropClass.bg })));
|
|
14048
14170
|
}
|
|
14049
14171
|
/**
|
|
14050
14172
|
* Validate the WCAG attributes of the component
|
|
@@ -14080,22 +14202,26 @@ const BadgeClass = {
|
|
|
14080
14202
|
inner: 'gov-badge__inner',
|
|
14081
14203
|
};
|
|
14082
14204
|
|
|
14083
|
-
const
|
|
14084
|
-
|
|
14085
|
-
|
|
14086
|
-
|
|
14087
|
-
|
|
14088
|
-
|
|
14089
|
-
|
|
14090
|
-
|
|
14091
|
-
const Types$2 = [undefined, 'solid', 'outlined', 'base'];
|
|
14205
|
+
const ButtonSizes = pick(Sizes, ['_S', '_M', '_L', '_XL']);
|
|
14206
|
+
const ButtonVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'SUCCESS', 'ERROR', 'WARNING']);
|
|
14207
|
+
var Type$1;
|
|
14208
|
+
(function (Type) {
|
|
14209
|
+
Type["SOLID"] = "solid";
|
|
14210
|
+
Type["OUTLINED"] = "outlined";
|
|
14211
|
+
Type["BASE"] = "base";
|
|
14212
|
+
})(Type$1 || (Type$1 = {}));
|
|
14092
14213
|
var NativeType;
|
|
14093
14214
|
(function (NativeType) {
|
|
14094
14215
|
NativeType["SUBMIT"] = "submit";
|
|
14095
14216
|
NativeType["BUTTON"] = "button";
|
|
14096
14217
|
NativeType["RESET"] = "reset";
|
|
14097
14218
|
})(NativeType || (NativeType = {}));
|
|
14098
|
-
|
|
14219
|
+
var ButtonTarget;
|
|
14220
|
+
(function (ButtonTarget) {
|
|
14221
|
+
ButtonTarget["BLANK"] = "_blank";
|
|
14222
|
+
ButtonTarget["SELF"] = "_self";
|
|
14223
|
+
ButtonTarget["NEW"] = "_new";
|
|
14224
|
+
})(ButtonTarget || (ButtonTarget = {}));
|
|
14099
14225
|
const ButtonClass = {
|
|
14100
14226
|
root: 'gov-button',
|
|
14101
14227
|
rootWithIcon: 'gov-button--w-icon',
|
|
@@ -14117,22 +14243,22 @@ class GovBadge {
|
|
|
14117
14243
|
this.disabled = false;
|
|
14118
14244
|
this.href = undefined;
|
|
14119
14245
|
this.target = undefined;
|
|
14120
|
-
this.size =
|
|
14246
|
+
this.size = 'm';
|
|
14121
14247
|
this.type = 'solid';
|
|
14122
14248
|
this.tag = 'span';
|
|
14123
|
-
this.nativeType =
|
|
14124
|
-
this.variant =
|
|
14249
|
+
this.nativeType = 'span';
|
|
14250
|
+
this.variant = 'primary';
|
|
14125
14251
|
this.wcagLabel = undefined;
|
|
14126
14252
|
this.h = govHost(this.host);
|
|
14127
14253
|
}
|
|
14128
14254
|
validateVariant(newValue) {
|
|
14129
|
-
validateProp(
|
|
14255
|
+
validateProp(ButtonVariants, newValue, BadgeClass.root);
|
|
14130
14256
|
}
|
|
14131
14257
|
validateSize(newValue) {
|
|
14132
|
-
validateProp(
|
|
14258
|
+
validateProp(ButtonSizes, newValue, BadgeClass.root);
|
|
14133
14259
|
}
|
|
14134
14260
|
validateType(newValue) {
|
|
14135
|
-
validateProp(
|
|
14261
|
+
validateProp(Type$1, newValue, BadgeClass.root);
|
|
14136
14262
|
}
|
|
14137
14263
|
componentWillLoad() {
|
|
14138
14264
|
this.validateVariant(this.variant);
|
|
@@ -14165,11 +14291,11 @@ class GovBadge {
|
|
|
14165
14291
|
"disabled": [4],
|
|
14166
14292
|
"href": [1],
|
|
14167
14293
|
"target": [1],
|
|
14168
|
-
"size": [
|
|
14169
|
-
"type": [
|
|
14294
|
+
"size": [1],
|
|
14295
|
+
"type": [1],
|
|
14170
14296
|
"tag": [1],
|
|
14171
|
-
"nativeType": [
|
|
14172
|
-
"variant": [
|
|
14297
|
+
"nativeType": [1, "native-type"],
|
|
14298
|
+
"variant": [1],
|
|
14173
14299
|
"wcagLabel": [1, "wcag-label"]
|
|
14174
14300
|
},
|
|
14175
14301
|
"$listeners$": undefined,
|
|
@@ -14210,8 +14336,7 @@ class GovBreadcrumbs {
|
|
|
14210
14336
|
}
|
|
14211
14337
|
render() {
|
|
14212
14338
|
const { isExpandedState } = this;
|
|
14213
|
-
return (hAsync(Host, { class: this.h.classes(BreadcrumbsClass.root), collapsible: this.collapsible }, hAsync("nav", { "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy }, hAsync("ul", { class: BreadcrumbsClass.list }, hAsync("li", { class: BreadcrumbsClass.item }, hAsync("a", { href: "#", class: "gov-link" }, "Dom\u016F"), hAsync("gov-icon", { class: BreadcrumbsClass.arrow, name: "arrow-right" })), hAsync("li", { class: BreadcrumbsClass.item }, hAsync("a", { href: "#", class: "gov-link" }, "Kam d\u00E1l"), hAsync("gov-icon", { class: BreadcrumbsClass.arrow, name: "arrow-right" })), hAsync("li", { class: BreadcrumbsClass.item }, hAsync("a", { href: "#", class: "gov-link" }, "\u010Cesk\u00FD eGovernment"), hAsync("gov-icon", { class: BreadcrumbsClass.arrow, name: "arrow-right" })), hAsync("li", { class: BreadcrumbsClass.item }, hAsync("strong", null, "Czech POINT")))), this.collapsible &&
|
|
14214
|
-
hAsync("gov-button", { "aria-expanded": booleanString(isExpandedState), class: BreadcrumbsClass.button, variant: "primary", size: "s", inverse: true }, hAsync("gov-icon", { slot: "left-icon", name: "arrow-down", onClick: () => this.toggle() }))));
|
|
14339
|
+
return (hAsync(Host, { class: this.h.classes(BreadcrumbsClass.root), collapsible: this.collapsible }, hAsync("nav", { "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy }, hAsync("ul", { class: BreadcrumbsClass.list }, hAsync("li", { class: BreadcrumbsClass.item }, hAsync("a", { href: "#", class: "gov-link" }, "Dom\u016F"), hAsync("gov-icon", { class: BreadcrumbsClass.arrow, name: "arrow-right" })), hAsync("li", { class: BreadcrumbsClass.item }, hAsync("a", { href: "#", class: "gov-link" }, "Kam d\u00E1l"), hAsync("gov-icon", { class: BreadcrumbsClass.arrow, name: "arrow-right" })), hAsync("li", { class: BreadcrumbsClass.item }, hAsync("a", { href: "#", class: "gov-link" }, "\u010Cesk\u00FD eGovernment"), hAsync("gov-icon", { class: BreadcrumbsClass.arrow, name: "arrow-right" })), hAsync("li", { class: BreadcrumbsClass.item }, hAsync("strong", null, "Czech POINT")))), this.collapsible && (hAsync("gov-button", { "aria-expanded": booleanString(isExpandedState), class: BreadcrumbsClass.button, variant: "primary", size: "s", inverse: true }, hAsync("gov-icon", { slot: "left-icon", name: "arrow-down", onClick: () => this.toggle() })))));
|
|
14215
14340
|
}
|
|
14216
14341
|
/**
|
|
14217
14342
|
* Opening the Breadcrumbs
|
|
@@ -14291,13 +14416,13 @@ class GovButton {
|
|
|
14291
14416
|
this.govFocus = createEvent(this, "gov-focus", 7);
|
|
14292
14417
|
this.govBlur = createEvent(this, "gov-blur", 7);
|
|
14293
14418
|
this.variant = undefined;
|
|
14294
|
-
this.size =
|
|
14419
|
+
this.size = 'm';
|
|
14295
14420
|
this.type = 'solid';
|
|
14296
14421
|
this.expanded = false;
|
|
14297
14422
|
this.inverse = false;
|
|
14298
14423
|
this.name = undefined;
|
|
14299
14424
|
this.disabled = false;
|
|
14300
|
-
this.nativeType =
|
|
14425
|
+
this.nativeType = 'button';
|
|
14301
14426
|
this.href = undefined;
|
|
14302
14427
|
this.target = undefined;
|
|
14303
14428
|
this.download = undefined;
|
|
@@ -14323,16 +14448,16 @@ class GovButton {
|
|
|
14323
14448
|
this.h = govHost(this.host);
|
|
14324
14449
|
}
|
|
14325
14450
|
validateVariant(newValue) {
|
|
14326
|
-
validateProp(
|
|
14451
|
+
validateProp(ButtonVariants, newValue, ButtonClass.root);
|
|
14327
14452
|
}
|
|
14328
14453
|
validateType(newValue) {
|
|
14329
|
-
validateProp(
|
|
14454
|
+
validateProp(Type$1, newValue, ButtonClass.root);
|
|
14330
14455
|
}
|
|
14331
14456
|
validateSize(newValue) {
|
|
14332
|
-
validateProp(Sizes
|
|
14457
|
+
validateProp(Sizes, newValue, ButtonClass.root);
|
|
14333
14458
|
}
|
|
14334
14459
|
validateNativeType(newValue) {
|
|
14335
|
-
validateProp(
|
|
14460
|
+
validateProp(NativeType, newValue, ButtonClass.root);
|
|
14336
14461
|
}
|
|
14337
14462
|
componentWillLoad() {
|
|
14338
14463
|
this.validateVariant(this.variant);
|
|
@@ -14353,25 +14478,14 @@ class GovButton {
|
|
|
14353
14478
|
render() {
|
|
14354
14479
|
const Tag = this.href ? Tags$2.A : Tags$2.BUTTON;
|
|
14355
14480
|
const nativeType = Tag === Tags$2.A ? undefined : this.nativeType;
|
|
14356
|
-
return (hAsync(Host, { hoverable: true, size: this.size, variant: this.variant, class: this.h.classes(this.classNames), type: this.type, inverse: this.inverse }, hAsync(Tag, { class: "element", ref: el => (this.buttonRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.
|
|
14481
|
+
return (hAsync(Host, { hoverable: true, size: this.size, variant: this.variant, class: this.h.classes(this.classNames), type: this.type, inverse: this.inverse }, hAsync(Tag, { class: "element", ref: el => (this.buttonRef = el), onClick: this.onClickHandler.bind(this), onFocus: () => this.govFocus.emit(), onBlur: () => this.govBlur.emit(), onMouseDown: () => (this.isPressed = true), onMouseUp: () => (this.isPressed = false), disabled: this.disabled, id: this.identifier, href: this.href, target: this.target, download: this.download, hreflang: this.hreflang, rel: this.rel, name: this.name, type: nativeType, tabindex: this.focusable ? '0' : '-1', "aria-activedescendant": this.wcagActiveDescendant, "aria-describedby": this.wcagActiveDescendant, "aria-description": this.wcagDescription, "aria-controls": this.wcagControls, "aria-details": this.wcagDetails, "aria-expanded": toBoolAttrIfDefined(this.wcagExpanded), "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns, "aria-haspopup": toBoolAttrIfDefined(this.wcagHasPopup), "aria-pressed": toBoolAttr(this.isPressed), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-current": this.wcagCurrent }, toBool(this.loading) && !this.h.hasSlot('right-icon') && hAsync("gov-icon", { name: "loader", class: "gov-spin-animation" }), this.h.hasSlot('left-icon') && hAsync("slot", { name: "left-icon" }), hAsync("slot", null), this.h.hasSlot('right-icon') && hAsync("slot", { name: "right-icon" }), toBool(this.loading) && this.h.hasSlot('right-icon') && hAsync("gov-icon", { name: "loader", class: "gov-spin-animation" }))));
|
|
14357
14482
|
}
|
|
14358
14483
|
onClickHandler(e) {
|
|
14359
14484
|
e.stopPropagation();
|
|
14360
|
-
e.preventDefault();
|
|
14361
14485
|
if (this.disabled === false) {
|
|
14362
14486
|
this.govClick.emit(e);
|
|
14363
14487
|
}
|
|
14364
14488
|
}
|
|
14365
|
-
onFocusHandler(e) {
|
|
14366
|
-
e.stopPropagation();
|
|
14367
|
-
e.preventDefault();
|
|
14368
|
-
this.govFocus.emit(e);
|
|
14369
|
-
}
|
|
14370
|
-
onBlurHandler(e) {
|
|
14371
|
-
e.stopPropagation();
|
|
14372
|
-
e.preventDefault();
|
|
14373
|
-
this.govBlur.emit(e);
|
|
14374
|
-
}
|
|
14375
14489
|
/**
|
|
14376
14490
|
* Focus button element
|
|
14377
14491
|
*/
|
|
@@ -14403,14 +14517,14 @@ class GovButton {
|
|
|
14403
14517
|
"$flags$": 4,
|
|
14404
14518
|
"$tagName$": "gov-button",
|
|
14405
14519
|
"$members$": {
|
|
14406
|
-
"variant": [
|
|
14407
|
-
"size": [
|
|
14408
|
-
"type": [
|
|
14520
|
+
"variant": [1],
|
|
14521
|
+
"size": [1],
|
|
14522
|
+
"type": [1],
|
|
14409
14523
|
"expanded": [4],
|
|
14410
14524
|
"inverse": [4],
|
|
14411
14525
|
"name": [1],
|
|
14412
14526
|
"disabled": [4],
|
|
14413
|
-
"nativeType": [
|
|
14527
|
+
"nativeType": [1, "native-type"],
|
|
14414
14528
|
"href": [1],
|
|
14415
14529
|
"target": [1],
|
|
14416
14530
|
"download": [4],
|
|
@@ -14684,8 +14798,8 @@ class GovErrorCode {
|
|
|
14684
14798
|
}; }
|
|
14685
14799
|
}
|
|
14686
14800
|
|
|
14687
|
-
const
|
|
14688
|
-
const
|
|
14801
|
+
const FormAutocompleteSizes = pick(Sizes, ['_M', '_L', '_XL']);
|
|
14802
|
+
const FormAutocompleteVariants = pick(Variants, ['PRIMARY', 'SECONDARY']);
|
|
14689
14803
|
const FormAutocompleteClass = {
|
|
14690
14804
|
root: 'gov-form-autocomplete',
|
|
14691
14805
|
list: 'gov-form-autocomplete__list',
|
|
@@ -14706,7 +14820,7 @@ class GovFormAutocomplete {
|
|
|
14706
14820
|
this.identifier = undefined;
|
|
14707
14821
|
this.variant = undefined;
|
|
14708
14822
|
this.success = undefined;
|
|
14709
|
-
this.size =
|
|
14823
|
+
this.size = 'm';
|
|
14710
14824
|
this.nameKey = 'name';
|
|
14711
14825
|
this.name = undefined;
|
|
14712
14826
|
this.required = false;
|
|
@@ -14726,10 +14840,10 @@ class GovFormAutocomplete {
|
|
|
14726
14840
|
this.listBoxId = createID('GovListBox');
|
|
14727
14841
|
}
|
|
14728
14842
|
validateVariant(newValue) {
|
|
14729
|
-
validateProp(
|
|
14843
|
+
validateProp(FormAutocompleteVariants, newValue, FormAutocompleteClass.root);
|
|
14730
14844
|
}
|
|
14731
14845
|
validateSize(newValue) {
|
|
14732
|
-
validateProp(
|
|
14846
|
+
validateProp(FormAutocompleteSizes, newValue, FormAutocompleteClass.root);
|
|
14733
14847
|
}
|
|
14734
14848
|
onArrowUp() {
|
|
14735
14849
|
if (this.arrowCounter > 0) {
|
|
@@ -14856,9 +14970,9 @@ class GovFormAutocomplete {
|
|
|
14856
14970
|
"$members$": {
|
|
14857
14971
|
"value": [1537],
|
|
14858
14972
|
"identifier": [1],
|
|
14859
|
-
"variant": [
|
|
14973
|
+
"variant": [1],
|
|
14860
14974
|
"success": [4],
|
|
14861
|
-
"size": [
|
|
14975
|
+
"size": [1],
|
|
14862
14976
|
"nameKey": [1, "name-key"],
|
|
14863
14977
|
"name": [1],
|
|
14864
14978
|
"required": [4],
|
|
@@ -14886,29 +15000,54 @@ class GovFormAutocomplete {
|
|
|
14886
15000
|
}; }
|
|
14887
15001
|
}
|
|
14888
15002
|
|
|
15003
|
+
const FormCheckboxSizes = pick(Sizes, ['_XS', '_S', '_M', '_L']);
|
|
14889
15004
|
const FormCheckboxClass = {
|
|
14890
15005
|
root: 'gov-form-checkbox',
|
|
14891
15006
|
check: 'gov-form-checkbox__check',
|
|
14892
15007
|
};
|
|
14893
15008
|
|
|
15009
|
+
pick(Sizes, ['_M', '_L', '_XL']);
|
|
14894
15010
|
const FormControlClass = {
|
|
14895
15011
|
root: 'gov-form-control',
|
|
14896
15012
|
holder: 'gov-form-control__holder',
|
|
14897
15013
|
bottom: 'gov-form-control__bottom',
|
|
14898
15014
|
};
|
|
14899
15015
|
|
|
14900
|
-
const
|
|
15016
|
+
const FormInputSizes = pick(Sizes, ['_M', '_L', '_XL']);
|
|
15017
|
+
const FormInputVariants = pick(Variants, ['PRIMARY', 'SECONDARY']);
|
|
15018
|
+
var InputTypes;
|
|
15019
|
+
(function (InputTypes) {
|
|
15020
|
+
InputTypes["COLOR"] = "color";
|
|
15021
|
+
InputTypes["DATE"] = "date";
|
|
15022
|
+
InputTypes["DATETIME_LOCAL"] = "datetime-local";
|
|
15023
|
+
InputTypes["EMAIL"] = "email";
|
|
15024
|
+
InputTypes["MONTH"] = "month";
|
|
15025
|
+
InputTypes["NUMBER"] = "number";
|
|
15026
|
+
InputTypes["PASSWORD"] = "password";
|
|
15027
|
+
InputTypes["SEARCH"] = "search";
|
|
15028
|
+
InputTypes["TEL"] = "tel";
|
|
15029
|
+
InputTypes["TEXT"] = "text";
|
|
15030
|
+
InputTypes["TIME"] = "time";
|
|
15031
|
+
InputTypes["URL"] = "url";
|
|
15032
|
+
InputTypes["WEEK"] = "week";
|
|
15033
|
+
})(InputTypes || (InputTypes = {}));
|
|
15034
|
+
var Type;
|
|
15035
|
+
(function (Type) {
|
|
15036
|
+
Type["RESET"] = "reset";
|
|
15037
|
+
})(Type || (Type = {}));
|
|
14901
15038
|
const FormInputClass = {
|
|
14902
15039
|
root: 'gov-form-input',
|
|
14903
15040
|
};
|
|
14904
15041
|
|
|
14905
|
-
const
|
|
15042
|
+
const FormSelectSizes = pick(Sizes, ['_M', '_L', '_XL']);
|
|
15043
|
+
const FormSelectVariants = pick(Variants, ['PRIMARY', 'SECONDARY']);
|
|
14906
15044
|
const FormSelectClass = {
|
|
14907
15045
|
root: 'gov-form-select',
|
|
14908
15046
|
icon: 'gov-form-select__icon',
|
|
14909
15047
|
};
|
|
14910
15048
|
|
|
14911
|
-
const
|
|
15049
|
+
const FormMultiselectSizes = pick(Sizes, ['_M', '_L', '_XL']);
|
|
15050
|
+
const FormMultiselectVariants = pick(Variants, ['PRIMARY', 'SECONDARY']);
|
|
14912
15051
|
const FormMultiSelectClass = {
|
|
14913
15052
|
root: 'gov-form-multi-select',
|
|
14914
15053
|
wrap: 'gov-form-multi-select__wrap',
|
|
@@ -14916,6 +15055,7 @@ const FormMultiSelectClass = {
|
|
|
14916
15055
|
item: 'gov-form-multi-select__item',
|
|
14917
15056
|
};
|
|
14918
15057
|
|
|
15058
|
+
const FormSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L']);
|
|
14919
15059
|
const FormSwitchClass = {
|
|
14920
15060
|
root: 'gov-form-switch',
|
|
14921
15061
|
holder: 'gov-form-switch__holder',
|
|
@@ -14923,6 +15063,7 @@ const FormSwitchClass = {
|
|
|
14923
15063
|
indicator: 'gov-form-switch__indicator',
|
|
14924
15064
|
};
|
|
14925
15065
|
|
|
15066
|
+
const FormRadioSizes = pick(Sizes, ['_XS', '_S', '_M', '_L']);
|
|
14926
15067
|
const FormRadioClass = {
|
|
14927
15068
|
root: 'gov-form-radio',
|
|
14928
15069
|
holder: 'gov-form-radio__holder',
|
|
@@ -14930,7 +15071,7 @@ const FormRadioClass = {
|
|
|
14930
15071
|
indicator: 'gov-form-radio__indicator',
|
|
14931
15072
|
};
|
|
14932
15073
|
|
|
14933
|
-
const
|
|
15074
|
+
const FormMessageVariants = pick(Variants, ['SECONDARY', 'SUCCESS', 'ERROR', 'WARNING']);
|
|
14934
15075
|
const FormMessageClass = {
|
|
14935
15076
|
root: 'gov-form-message',
|
|
14936
15077
|
content: 'gov-form-message__content',
|
|
@@ -15002,7 +15143,7 @@ class GovFormCheckbox {
|
|
|
15002
15143
|
this.required = false;
|
|
15003
15144
|
this.disabled = undefined;
|
|
15004
15145
|
this.name = undefined;
|
|
15005
|
-
this.size =
|
|
15146
|
+
this.size = 'm';
|
|
15006
15147
|
this.identifier = undefined;
|
|
15007
15148
|
this.invalid = undefined;
|
|
15008
15149
|
this.wcagDescribedBy = undefined;
|
|
@@ -15020,7 +15161,7 @@ class GovFormCheckbox {
|
|
|
15020
15161
|
});
|
|
15021
15162
|
}
|
|
15022
15163
|
validateSize(newValue) {
|
|
15023
|
-
validateProp(
|
|
15164
|
+
validateProp(FormCheckboxSizes, newValue, FormCheckboxClass.root);
|
|
15024
15165
|
}
|
|
15025
15166
|
componentWillLoad() {
|
|
15026
15167
|
this.isChecked = this.checked;
|
|
@@ -15035,26 +15176,17 @@ class GovFormCheckbox {
|
|
|
15035
15176
|
}
|
|
15036
15177
|
render() {
|
|
15037
15178
|
const { isChecked } = this;
|
|
15038
|
-
return (hAsync(Host, { class: FormCheckboxClass.root, "is-checked": isChecked, size: this.size, invalid: toBoolAttrIfDefined(this.invalid) }, hAsync("input", { id: this.identifier || this.checkboxId, type: "checkbox", value: this.value, name: this.name, checked: this.isChecked,
|
|
15179
|
+
return (hAsync(Host, { class: FormCheckboxClass.root, "is-checked": isChecked, size: this.size, invalid: toBoolAttrIfDefined(this.invalid) }, hAsync("input", { id: this.identifier || this.checkboxId, type: "checkbox", value: this.value, name: this.name, checked: this.isChecked, onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, "aria-checked": toBoolAttr(this.isChecked), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-disabled": toBoolAttrIfDefined(this.disabled) }), hAsync("span", null, hAsync("slot", { name: "label" }), hAsync("gov-icon", { class: FormCheckboxClass.check, name: "check" }))));
|
|
15039
15180
|
}
|
|
15040
15181
|
onFocusHandler(e) {
|
|
15041
|
-
e.stopPropagation();
|
|
15042
|
-
e.preventDefault();
|
|
15043
15182
|
this.govFocus.emit(e);
|
|
15044
15183
|
}
|
|
15045
15184
|
onBlurHandler(e) {
|
|
15046
|
-
e.stopPropagation();
|
|
15047
|
-
e.preventDefault();
|
|
15048
15185
|
this.govBlur.emit(e);
|
|
15049
15186
|
}
|
|
15050
|
-
onClickHandler(e) {
|
|
15051
|
-
e.stopPropagation();
|
|
15052
|
-
e.preventDefault();
|
|
15053
|
-
}
|
|
15054
15187
|
onChangeHandler(e) {
|
|
15055
15188
|
this.isChecked = e.target.checked;
|
|
15056
15189
|
e.stopPropagation();
|
|
15057
|
-
e.preventDefault();
|
|
15058
15190
|
this.govChange.emit({
|
|
15059
15191
|
checked: this.isChecked,
|
|
15060
15192
|
value: this.value,
|
|
@@ -15083,7 +15215,7 @@ class GovFormCheckbox {
|
|
|
15083
15215
|
"required": [4],
|
|
15084
15216
|
"disabled": [4],
|
|
15085
15217
|
"name": [1],
|
|
15086
|
-
"size": [
|
|
15218
|
+
"size": [1],
|
|
15087
15219
|
"identifier": [1],
|
|
15088
15220
|
"invalid": [4],
|
|
15089
15221
|
"wcagDescribedBy": [1, "wcag-described-by"],
|
|
@@ -15102,16 +15234,16 @@ const govFormControlCss = ".gov-spin-animation,.gov-pseudo-spin-animation::befor
|
|
|
15102
15234
|
class GovFormControl {
|
|
15103
15235
|
constructor(hostRef) {
|
|
15104
15236
|
registerInstance(this, hostRef);
|
|
15105
|
-
this.gap =
|
|
15237
|
+
this.gap = undefined;
|
|
15106
15238
|
this.identifier = undefined;
|
|
15107
15239
|
this.invalid = false;
|
|
15108
15240
|
this.disabled = false;
|
|
15109
15241
|
this.success = false;
|
|
15110
15242
|
this.fieldset = false;
|
|
15111
|
-
this.size =
|
|
15243
|
+
this.size = 'm';
|
|
15112
15244
|
this.h = govHost(this.host);
|
|
15113
15245
|
this.f = govForm(this.h);
|
|
15114
|
-
this.controlId = createID(
|
|
15246
|
+
this.controlId = createID('GovFormControl');
|
|
15115
15247
|
}
|
|
15116
15248
|
watchInvalid() {
|
|
15117
15249
|
this.passChildAttrs();
|
|
@@ -15127,25 +15259,25 @@ class GovFormControl {
|
|
|
15127
15259
|
}
|
|
15128
15260
|
passChildAttrs() {
|
|
15129
15261
|
const formElements = [
|
|
15130
|
-
|
|
15131
|
-
|
|
15132
|
-
|
|
15133
|
-
|
|
15134
|
-
|
|
15135
|
-
|
|
15136
|
-
|
|
15137
|
-
|
|
15262
|
+
'gov-form-select',
|
|
15263
|
+
'gov-form-input',
|
|
15264
|
+
'gov-form-switch',
|
|
15265
|
+
'gov-form-checkbox',
|
|
15266
|
+
'gov-form-radio',
|
|
15267
|
+
'gov-form-multi-select',
|
|
15268
|
+
'gov-form-file',
|
|
15269
|
+
'gov-form-search',
|
|
15138
15270
|
];
|
|
15139
|
-
this.h.passChildAttr(formElements,
|
|
15140
|
-
this.h.passChildAttr(formElements,
|
|
15141
|
-
this.h.passChildAttr(formElements,
|
|
15142
|
-
this.h.passChildAttr(formElements,
|
|
15271
|
+
this.h.passChildAttr(formElements, 'size', this.size);
|
|
15272
|
+
this.h.passChildAttr(formElements, 'invalid', this.invalid);
|
|
15273
|
+
this.h.passChildAttr(formElements, 'disabled', this.disabled);
|
|
15274
|
+
this.h.passChildAttr(formElements, 'success', this.success);
|
|
15143
15275
|
if (this.f.hasGroupChildren === false) {
|
|
15144
|
-
this.h.passChildAttr([...formElements,
|
|
15276
|
+
this.h.passChildAttr([...formElements, 'gov-form-label'], 'identifier', this.identifier || this.controlId);
|
|
15145
15277
|
}
|
|
15146
15278
|
}
|
|
15147
15279
|
formElementDescriptionControl() {
|
|
15148
|
-
const bottomSlot = this.host.querySelector(
|
|
15280
|
+
const bottomSlot = this.host.querySelector('.' + FormControlClass.bottom);
|
|
15149
15281
|
if (!bottomSlot)
|
|
15150
15282
|
return;
|
|
15151
15283
|
this.observer = new MutationObserver(function () {
|
|
@@ -15156,20 +15288,20 @@ class GovFormControl {
|
|
|
15156
15288
|
syncControlMessages() {
|
|
15157
15289
|
Promise.all(this.f.messageElements.map((message) => message.identifier())).then((ids) => {
|
|
15158
15290
|
this.f.mainElementsInControl.forEach((element) => {
|
|
15159
|
-
const currentValue = splitByWhitespace(element.getAttribute(
|
|
15160
|
-
element.removeAttribute(
|
|
15291
|
+
const currentValue = splitByWhitespace(element.getAttribute('wcag-described-by'));
|
|
15292
|
+
element.removeAttribute('wcag-described-by');
|
|
15161
15293
|
if (Array.isArray(currentValue)) {
|
|
15162
|
-
currentValue.forEach(id => (id.indexOf(
|
|
15294
|
+
currentValue.forEach(id => (id.indexOf('GovFormMessage') === -1 ? ids.push(id) : null));
|
|
15163
15295
|
}
|
|
15164
15296
|
if (ids.length) {
|
|
15165
|
-
element.setAttribute(
|
|
15297
|
+
element.setAttribute('wcag-described-by', ids.join(' '));
|
|
15166
15298
|
}
|
|
15167
15299
|
});
|
|
15168
15300
|
});
|
|
15169
15301
|
}
|
|
15170
15302
|
render() {
|
|
15171
|
-
const Tag = this.fieldset ?
|
|
15172
|
-
return (hAsync(Host, { size: this.size, class: this.h.classes(FormControlClass.root) }, hAsync(Tag, { class: FormControlClass.holder }, this.h.hasSlot(
|
|
15303
|
+
const Tag = this.fieldset ? 'fieldset' : 'div';
|
|
15304
|
+
return (hAsync(Host, { size: this.size, class: this.h.classes(FormControlClass.root) }, hAsync(Tag, { class: FormControlClass.holder }, this.h.hasSlot('top') && hAsync("slot", { name: "top" }), hAsync("slot", null), this.h.hasSlot('bottom') && (hAsync("div", { class: FormControlClass.bottom }, hAsync("slot", { name: "bottom" }))))));
|
|
15173
15305
|
}
|
|
15174
15306
|
get host() { return getElement(this); }
|
|
15175
15307
|
static get watchers() { return {
|
|
@@ -15180,13 +15312,13 @@ class GovFormControl {
|
|
|
15180
15312
|
"$flags$": 4,
|
|
15181
15313
|
"$tagName$": "gov-form-control",
|
|
15182
15314
|
"$members$": {
|
|
15183
|
-
"gap": [
|
|
15315
|
+
"gap": [1],
|
|
15184
15316
|
"identifier": [1],
|
|
15185
15317
|
"invalid": [4],
|
|
15186
15318
|
"disabled": [4],
|
|
15187
15319
|
"success": [4],
|
|
15188
15320
|
"fieldset": [4],
|
|
15189
|
-
"size": [
|
|
15321
|
+
"size": [1]
|
|
15190
15322
|
},
|
|
15191
15323
|
"$listeners$": undefined,
|
|
15192
15324
|
"$lazyBundleId$": "-",
|
|
@@ -15424,7 +15556,7 @@ class GovFormInput {
|
|
|
15424
15556
|
this.identifier = undefined;
|
|
15425
15557
|
this.variant = undefined;
|
|
15426
15558
|
this.success = undefined;
|
|
15427
|
-
this.size =
|
|
15559
|
+
this.size = 'm';
|
|
15428
15560
|
this.name = undefined;
|
|
15429
15561
|
this.multiline = undefined;
|
|
15430
15562
|
this.rows = undefined;
|
|
@@ -15452,10 +15584,10 @@ class GovFormInput {
|
|
|
15452
15584
|
this.f = govForm(govHost(this.host));
|
|
15453
15585
|
}
|
|
15454
15586
|
validateVariant(newValue) {
|
|
15455
|
-
validateProp(
|
|
15587
|
+
validateProp(FormInputVariants, newValue, FormInputClass.root);
|
|
15456
15588
|
}
|
|
15457
15589
|
validateSize(newValue) {
|
|
15458
|
-
validateProp(
|
|
15590
|
+
validateProp(FormInputSizes, newValue, FormInputClass.root);
|
|
15459
15591
|
}
|
|
15460
15592
|
componentWillLoad() {
|
|
15461
15593
|
this.validateVariant(this.variant);
|
|
@@ -15473,26 +15605,20 @@ class GovFormInput {
|
|
|
15473
15605
|
return (hAsync(Host, { class: FormInputClass.root, size: this.size, variant: this.variant, type: this.type }, this.h.hasSlot('prefix') && hAsync("slot", { name: "prefix" }), hAsync("span", { class: "element" }, this.h.hasSlot('left-icon') && hAsync("slot", { name: "left-icon" }), this.h.hasSlot('right-icon') && !(this.success || this.invalid) && hAsync("slot", { name: "right-icon" }), this.success && !this.multiline && hAsync("gov-icon", { slot: "right-icon", class: "icon-validation", name: "check" }), this.invalid && !this.multiline && hAsync("gov-icon", { slot: "right-icon", class: "icon-validation", name: "exclamation" }), hAsync(Tag, { type: this.inputType, disabled: this.disabled, id: this.identifier || this.inputId, name: this.name, onFocus: this.onFocusHandler.bind(this), onInput: this.onInputHandler.bind(this), onBlur: this.onBlurHandler.bind(this), onKeyUp: this.onKeyUpHandler.bind(this), ref: el => (this.inputRef = el), placeholder: this.placeholder, value: this.value, readonly: toBoolAttrIfDefined(this.readonly), autocomplete: toOnOffAttrIfDefined(this.autocomplete), autocorrect: toOnOffAttrIfDefined(this.autocorrect), minlength: this.minlength, maxlength: this.maxlength, required: this.required, rows: this.rows, cols: this.cols, role: this.role, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns, "aria-expanded": toBoolAttrIfDefined(this.wcagExpanded), "aria-autocomplete": this.wcagAutocomplete })), this.h.hasSlot('sufix') && hAsync("slot", { name: "sufix" })));
|
|
15474
15606
|
}
|
|
15475
15607
|
onFocusHandler(e) {
|
|
15476
|
-
e.stopPropagation();
|
|
15477
|
-
e.preventDefault();
|
|
15478
15608
|
this.focused = true;
|
|
15479
15609
|
this.govFocus.emit(e);
|
|
15480
15610
|
}
|
|
15481
15611
|
onBlurHandler(e) {
|
|
15482
|
-
e.stopPropagation();
|
|
15483
|
-
e.preventDefault();
|
|
15484
15612
|
this.focused = false;
|
|
15485
15613
|
this.govBlur.emit(e);
|
|
15486
15614
|
}
|
|
15487
15615
|
onKeyUpHandler(e) {
|
|
15488
15616
|
e.stopPropagation();
|
|
15489
|
-
e.preventDefault();
|
|
15490
15617
|
this.govKeyUp.emit(e);
|
|
15491
15618
|
}
|
|
15492
15619
|
onInputHandler(e) {
|
|
15493
15620
|
this.value = e.target.value;
|
|
15494
15621
|
e.stopPropagation();
|
|
15495
|
-
e.preventDefault();
|
|
15496
15622
|
this.govInput.emit(e);
|
|
15497
15623
|
}
|
|
15498
15624
|
/**
|
|
@@ -15541,9 +15667,9 @@ class GovFormInput {
|
|
|
15541
15667
|
"$members$": {
|
|
15542
15668
|
"value": [1537],
|
|
15543
15669
|
"identifier": [1],
|
|
15544
|
-
"variant": [
|
|
15670
|
+
"variant": [1],
|
|
15545
15671
|
"success": [4],
|
|
15546
|
-
"size": [
|
|
15672
|
+
"size": [1],
|
|
15547
15673
|
"name": [1],
|
|
15548
15674
|
"multiline": [4],
|
|
15549
15675
|
"rows": [2],
|
|
@@ -15556,8 +15682,8 @@ class GovFormInput {
|
|
|
15556
15682
|
"maxlength": [2],
|
|
15557
15683
|
"autocomplete": [4],
|
|
15558
15684
|
"autocorrect": [4],
|
|
15559
|
-
"type": [
|
|
15560
|
-
"inputType": [
|
|
15685
|
+
"type": [1],
|
|
15686
|
+
"inputType": [1, "input-type"],
|
|
15561
15687
|
"role": [1],
|
|
15562
15688
|
"invalid": [4],
|
|
15563
15689
|
"wcagDescribedBy": [1, "wcag-described-by"],
|
|
@@ -15610,12 +15736,12 @@ const govFormMessageCss = ".gov-spin-animation,.gov-pseudo-spin-animation::befor
|
|
|
15610
15736
|
class GovFormMessage {
|
|
15611
15737
|
constructor(hostRef) {
|
|
15612
15738
|
registerInstance(this, hostRef);
|
|
15613
|
-
this.variant =
|
|
15739
|
+
this.variant = 'secondary';
|
|
15614
15740
|
this.h = govHost(this.host);
|
|
15615
15741
|
this.messageId = createID('GovFormMessage');
|
|
15616
15742
|
}
|
|
15617
15743
|
validateVariant(newValue) {
|
|
15618
|
-
validateProp(
|
|
15744
|
+
validateProp(FormMessageVariants, newValue, FormMessageClass.root);
|
|
15619
15745
|
}
|
|
15620
15746
|
componentWillLoad() {
|
|
15621
15747
|
this.validateVariant(this.variant);
|
|
@@ -15638,7 +15764,7 @@ class GovFormMessage {
|
|
|
15638
15764
|
"$flags$": 4,
|
|
15639
15765
|
"$tagName$": "gov-form-message",
|
|
15640
15766
|
"$members$": {
|
|
15641
|
-
"variant": [
|
|
15767
|
+
"variant": [1],
|
|
15642
15768
|
"identifier": [64]
|
|
15643
15769
|
},
|
|
15644
15770
|
"$listeners$": undefined,
|
|
@@ -15658,7 +15784,7 @@ class GovFormMultiSelect {
|
|
|
15658
15784
|
this.identifier = undefined;
|
|
15659
15785
|
this.placeholder = undefined;
|
|
15660
15786
|
this.variant = undefined;
|
|
15661
|
-
this.size =
|
|
15787
|
+
this.size = 'm';
|
|
15662
15788
|
this.name = undefined;
|
|
15663
15789
|
this.required = false;
|
|
15664
15790
|
this.disabled = undefined;
|
|
@@ -15673,10 +15799,10 @@ class GovFormMultiSelect {
|
|
|
15673
15799
|
this.listId = createID('GovMultiList');
|
|
15674
15800
|
}
|
|
15675
15801
|
validateVariant(newValue) {
|
|
15676
|
-
validateProp(
|
|
15802
|
+
validateProp(FormMultiselectVariants, newValue, FormMultiSelectClass.root);
|
|
15677
15803
|
}
|
|
15678
15804
|
validateSize(newValue) {
|
|
15679
|
-
validateProp(
|
|
15805
|
+
validateProp(FormMultiselectSizes, newValue, FormMultiSelectClass.root);
|
|
15680
15806
|
}
|
|
15681
15807
|
emitChange(newValue) {
|
|
15682
15808
|
this.govChange.emit(newValue);
|
|
@@ -15821,8 +15947,8 @@ class GovFormMultiSelect {
|
|
|
15821
15947
|
"$members$": {
|
|
15822
15948
|
"identifier": [1],
|
|
15823
15949
|
"placeholder": [1],
|
|
15824
|
-
"variant": [
|
|
15825
|
-
"size": [
|
|
15950
|
+
"variant": [1],
|
|
15951
|
+
"size": [1],
|
|
15826
15952
|
"name": [1],
|
|
15827
15953
|
"required": [4],
|
|
15828
15954
|
"disabled": [4],
|
|
@@ -15857,7 +15983,7 @@ class GovFormRadio {
|
|
|
15857
15983
|
this.required = false;
|
|
15858
15984
|
this.disabled = undefined;
|
|
15859
15985
|
this.name = undefined;
|
|
15860
|
-
this.size =
|
|
15986
|
+
this.size = 'm';
|
|
15861
15987
|
this.identifier = undefined;
|
|
15862
15988
|
this.invalid = undefined;
|
|
15863
15989
|
this.wcagDescribedBy = undefined;
|
|
@@ -15875,7 +16001,7 @@ class GovFormRadio {
|
|
|
15875
16001
|
});
|
|
15876
16002
|
}
|
|
15877
16003
|
validateSize(newValue) {
|
|
15878
|
-
validateProp(
|
|
16004
|
+
validateProp(FormRadioSizes, newValue, FormRadioClass.root);
|
|
15879
16005
|
}
|
|
15880
16006
|
componentWillLoad() {
|
|
15881
16007
|
this.isChecked = this.checked;
|
|
@@ -15929,7 +16055,7 @@ class GovFormRadio {
|
|
|
15929
16055
|
"required": [4],
|
|
15930
16056
|
"disabled": [4],
|
|
15931
16057
|
"name": [1],
|
|
15932
|
-
"size": [
|
|
16058
|
+
"size": [1],
|
|
15933
16059
|
"identifier": [1],
|
|
15934
16060
|
"invalid": [4],
|
|
15935
16061
|
"wcagDescribedBy": [1, "wcag-described-by"],
|
|
@@ -15981,7 +16107,7 @@ class GovFormSelect {
|
|
|
15981
16107
|
this.value = undefined;
|
|
15982
16108
|
this.identifier = undefined;
|
|
15983
16109
|
this.variant = undefined;
|
|
15984
|
-
this.size =
|
|
16110
|
+
this.size = 'm';
|
|
15985
16111
|
this.name = undefined;
|
|
15986
16112
|
this.required = false;
|
|
15987
16113
|
this.disabled = undefined;
|
|
@@ -15997,10 +16123,10 @@ class GovFormSelect {
|
|
|
15997
16123
|
this.f = govForm(govHost(this.host));
|
|
15998
16124
|
}
|
|
15999
16125
|
validateVariant(newValue) {
|
|
16000
|
-
validateProp(
|
|
16126
|
+
validateProp(FormSelectVariants, newValue, FormSelectClass.root);
|
|
16001
16127
|
}
|
|
16002
16128
|
validateSize(newValue) {
|
|
16003
|
-
validateProp(
|
|
16129
|
+
validateProp(FormSelectSizes, newValue, FormSelectClass.root);
|
|
16004
16130
|
}
|
|
16005
16131
|
componentWillLoad() {
|
|
16006
16132
|
this.validateVariant(this.variant);
|
|
@@ -16074,8 +16200,8 @@ class GovFormSelect {
|
|
|
16074
16200
|
"$members$": {
|
|
16075
16201
|
"value": [1537],
|
|
16076
16202
|
"identifier": [1],
|
|
16077
|
-
"variant": [
|
|
16078
|
-
"size": [
|
|
16203
|
+
"variant": [1],
|
|
16204
|
+
"size": [1],
|
|
16079
16205
|
"name": [1],
|
|
16080
16206
|
"required": [4],
|
|
16081
16207
|
"disabled": [4],
|
|
@@ -16110,7 +16236,7 @@ class GovFormSwitch {
|
|
|
16110
16236
|
this.required = false;
|
|
16111
16237
|
this.disabled = undefined;
|
|
16112
16238
|
this.name = undefined;
|
|
16113
|
-
this.size =
|
|
16239
|
+
this.size = 'm';
|
|
16114
16240
|
this.identifier = undefined;
|
|
16115
16241
|
this.invalid = undefined;
|
|
16116
16242
|
this.wcagDescribedBy = undefined;
|
|
@@ -16128,7 +16254,7 @@ class GovFormSwitch {
|
|
|
16128
16254
|
});
|
|
16129
16255
|
}
|
|
16130
16256
|
validateSize(newValue) {
|
|
16131
|
-
validateProp(
|
|
16257
|
+
validateProp(FormSwitchSizes, newValue, FormSwitchClass.root);
|
|
16132
16258
|
}
|
|
16133
16259
|
componentWillLoad() {
|
|
16134
16260
|
this.isChecked = this.checked;
|
|
@@ -16182,7 +16308,7 @@ class GovFormSwitch {
|
|
|
16182
16308
|
"required": [4],
|
|
16183
16309
|
"disabled": [4],
|
|
16184
16310
|
"name": [1],
|
|
16185
|
-
"size": [
|
|
16311
|
+
"size": [1],
|
|
16186
16312
|
"identifier": [1],
|
|
16187
16313
|
"invalid": [4],
|
|
16188
16314
|
"wcagDescribedBy": [1, "wcag-described-by"],
|
|
@@ -16236,7 +16362,7 @@ const govGridItemCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{a
|
|
|
16236
16362
|
class GovGridItem {
|
|
16237
16363
|
constructor(hostRef) {
|
|
16238
16364
|
registerInstance(this, hostRef);
|
|
16239
|
-
this.size =
|
|
16365
|
+
this.size = '12/12';
|
|
16240
16366
|
this.sizeSm = undefined;
|
|
16241
16367
|
this.sizeMd = undefined;
|
|
16242
16368
|
this.sizeLg = undefined;
|
|
@@ -16264,6 +16390,12 @@ class GovGridItem {
|
|
|
16264
16390
|
}; }
|
|
16265
16391
|
}
|
|
16266
16392
|
|
|
16393
|
+
var Types;
|
|
16394
|
+
(function (Types) {
|
|
16395
|
+
Types["BASIC"] = "basic";
|
|
16396
|
+
Types["COMPLEX"] = "complex";
|
|
16397
|
+
Types["COLORED"] = "colored";
|
|
16398
|
+
})(Types || (Types = {}));
|
|
16267
16399
|
const IconClass = {
|
|
16268
16400
|
root: 'gov-icon',
|
|
16269
16401
|
holder: 'gov-icon__holder',
|
|
@@ -16338,56 +16470,50 @@ class GovIcon {
|
|
|
16338
16470
|
const LayoutClass = {
|
|
16339
16471
|
root: 'gov-layout',
|
|
16340
16472
|
section: 'gov-layout__section',
|
|
16341
|
-
content: 'gov-layout__content',
|
|
16342
|
-
aside: 'gov-layout__aside',
|
|
16343
|
-
};
|
|
16344
|
-
const LayoutAsideClass = {
|
|
16345
|
-
root: 'gov-layout-aside',
|
|
16346
16473
|
};
|
|
16347
|
-
|
|
16348
|
-
|
|
16474
|
+
var LayoutTypes;
|
|
16475
|
+
(function (LayoutTypes) {
|
|
16476
|
+
LayoutTypes["STRETCH"] = "stretch";
|
|
16477
|
+
LayoutTypes["ASIDE"] = "aside";
|
|
16478
|
+
LayoutTypes["TEXT"] = "text";
|
|
16479
|
+
})(LayoutTypes || (LayoutTypes = {}));
|
|
16480
|
+
var LayoutVariant;
|
|
16481
|
+
(function (LayoutVariant) {
|
|
16482
|
+
LayoutVariant["LEFT"] = "left";
|
|
16483
|
+
LayoutVariant["RIGHT"] = "right";
|
|
16484
|
+
})(LayoutVariant || (LayoutVariant = {}));
|
|
16485
|
+
const LayoutColumnClass = {
|
|
16486
|
+
root: 'gov-layout-column',
|
|
16349
16487
|
};
|
|
16350
16488
|
|
|
16351
|
-
const govLayoutCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-layout{position:relative;display:block;width:100%}.gov-layout__section{display:flex;gap:var(--gov-layout-gap, 1.375rem);flex-direction:column}@media (min-width: 64em){.gov-layout__section{flex-direction:row}}";
|
|
16489
|
+
const govLayoutCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-layout{position:relative;display:block;width:100%}.gov-layout__section{display:flex;gap:var(--gov-layout-gap, 1.375rem);flex-direction:column}@media (min-width: 64em){.gov-layout__section{flex-direction:row}.gov-layout__section-aside-right .gov-layout-column:first-child,.gov-layout__section-aside .gov-layout-column:first-child{flex:1 1 auto;width:auto}.gov-layout__section-aside-right .gov-layout-column:last-child,.gov-layout__section-aside .gov-layout-column:last-child{flex:0 0 auto;width:calc(var(--gov-container-width, 73.75rem) / 3 - var(--gov-layout-gap, 1.375rem))}.gov-layout__section-aside-left .gov-layout-column:first-child{flex:0 0 auto;width:calc(var(--gov-container-width, 73.75rem) / 3 - var(--gov-layout-gap, 1.375rem))}.gov-layout__section-aside-left .gov-layout-column:last-child{flex:1 1 auto;width:auto}.gov-layout__section-aside-right-inverse .gov-layout-column:first-child{order:1}.gov-layout__section-aside-left-inverse .gov-layout-column:first-child{order:2}.gov-layout__section-text{width:var(--gov-layout-content-width, 48.75rem);margin-right:auto;margin-left:auto}.gov-layout__section-text-left{width:var(--gov-layout-content-width, 48.75rem);margin-right:auto}.gov-layout__section-text-right{width:var(--gov-layout-content-width, 48.75rem);margin-left:auto}}";
|
|
16352
16490
|
|
|
16353
16491
|
class GovLayout {
|
|
16354
16492
|
constructor(hostRef) {
|
|
16355
16493
|
registerInstance(this, hostRef);
|
|
16494
|
+
this.type = 'stretch';
|
|
16495
|
+
this.variant = undefined;
|
|
16496
|
+
this.inverse = false;
|
|
16356
16497
|
this.h = govHost(this.host);
|
|
16357
16498
|
}
|
|
16499
|
+
typeClass(originalClass, type, variant, inverse) {
|
|
16500
|
+
const isType = type ? '-' + type : '';
|
|
16501
|
+
const isVariant = variant ? '-' + variant : '';
|
|
16502
|
+
const isInverse = inverse ? '-inverse' : '';
|
|
16503
|
+
return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
|
|
16504
|
+
}
|
|
16358
16505
|
render() {
|
|
16359
|
-
return (hAsync(Host, { class: this.h.classes(LayoutClass.root) }, hAsync("section", { class: LayoutClass.section }, hAsync("slot", null))));
|
|
16506
|
+
return (hAsync(Host, { type: this.type, class: this.h.classes(LayoutClass.root) }, hAsync("section", { class: this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse) }, hAsync("slot", null))));
|
|
16360
16507
|
}
|
|
16361
16508
|
get host() { return getElement(this); }
|
|
16362
16509
|
static get style() { return govLayoutCss; }
|
|
16363
16510
|
static get cmpMeta() { return {
|
|
16364
16511
|
"$flags$": 4,
|
|
16365
16512
|
"$tagName$": "gov-layout",
|
|
16366
|
-
"$members$": undefined,
|
|
16367
|
-
"$listeners$": undefined,
|
|
16368
|
-
"$lazyBundleId$": "-",
|
|
16369
|
-
"$attrsToReflect$": []
|
|
16370
|
-
}; }
|
|
16371
|
-
}
|
|
16372
|
-
|
|
16373
|
-
const govLayoutAsideCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@media (min-width: 64em){.gov-layout-aside{flex:0 0 auto;order:2;width:calc(var(--gov-container-width, 73.75rem) - var(--gov-layout-content-width, 48.75rem) - var(--gov-layout-gap, 1.375rem))}.gov-layout-aside[position=left i]{order:1}.gov-layout-aside[position=right i]{order:3}}";
|
|
16374
|
-
|
|
16375
|
-
class GovLayoutAside {
|
|
16376
|
-
constructor(hostRef) {
|
|
16377
|
-
registerInstance(this, hostRef);
|
|
16378
|
-
this.position = null;
|
|
16379
|
-
this.h = govHost(this.host);
|
|
16380
|
-
}
|
|
16381
|
-
render() {
|
|
16382
|
-
return (hAsync(Host, { class: this.h.classes(LayoutAsideClass.root), position: this.position }, hAsync("slot", null)));
|
|
16383
|
-
}
|
|
16384
|
-
get host() { return getElement(this); }
|
|
16385
|
-
static get style() { return govLayoutAsideCss; }
|
|
16386
|
-
static get cmpMeta() { return {
|
|
16387
|
-
"$flags$": 4,
|
|
16388
|
-
"$tagName$": "gov-layout-aside",
|
|
16389
16513
|
"$members$": {
|
|
16390
|
-
"
|
|
16514
|
+
"type": [1],
|
|
16515
|
+
"variant": [1],
|
|
16516
|
+
"inverse": [4]
|
|
16391
16517
|
},
|
|
16392
16518
|
"$listeners$": undefined,
|
|
16393
16519
|
"$lazyBundleId$": "-",
|
|
@@ -16395,25 +16521,22 @@ class GovLayoutAside {
|
|
|
16395
16521
|
}; }
|
|
16396
16522
|
}
|
|
16397
16523
|
|
|
16398
|
-
const
|
|
16524
|
+
const govLayoutColumnCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-layout-column{position:relative;display:block}";
|
|
16399
16525
|
|
|
16400
|
-
class
|
|
16526
|
+
class GovLayoutColumn {
|
|
16401
16527
|
constructor(hostRef) {
|
|
16402
16528
|
registerInstance(this, hostRef);
|
|
16403
|
-
this.align = "stretch";
|
|
16404
16529
|
this.h = govHost(this.host);
|
|
16405
16530
|
}
|
|
16406
16531
|
render() {
|
|
16407
|
-
return (hAsync(Host, { class: this.h.classes(
|
|
16532
|
+
return (hAsync(Host, { class: this.h.classes(LayoutColumnClass.root) }, hAsync("slot", null)));
|
|
16408
16533
|
}
|
|
16409
16534
|
get host() { return getElement(this); }
|
|
16410
|
-
static get style() { return
|
|
16535
|
+
static get style() { return govLayoutColumnCss; }
|
|
16411
16536
|
static get cmpMeta() { return {
|
|
16412
16537
|
"$flags$": 4,
|
|
16413
|
-
"$tagName$": "gov-layout-
|
|
16414
|
-
"$members$":
|
|
16415
|
-
"align": [1]
|
|
16416
|
-
},
|
|
16538
|
+
"$tagName$": "gov-layout-column",
|
|
16539
|
+
"$members$": undefined,
|
|
16417
16540
|
"$listeners$": undefined,
|
|
16418
16541
|
"$lazyBundleId$": "-",
|
|
16419
16542
|
"$attrsToReflect$": []
|
|
@@ -16435,7 +16558,7 @@ class GovLoading {
|
|
|
16435
16558
|
this.h = govHost(this.host);
|
|
16436
16559
|
}
|
|
16437
16560
|
render() {
|
|
16438
|
-
return (hAsync(Host, { class: this.h.classes(LoadingClass.root), loading: this.loading }, hAsync("div", { class: LoadingClass.content }, hAsync("gov-icon", { class: prepareClasses([LoadingClass.icon,
|
|
16561
|
+
return (hAsync(Host, { class: this.h.classes(LoadingClass.root), loading: this.loading }, hAsync("div", { class: LoadingClass.content }, hAsync("gov-icon", { class: prepareClasses([LoadingClass.icon, 'gov-spin-animation']), name: "loader" }), hAsync("slot", null)), hAsync("gov-backdrop", { visible: this.loading, inverse: true })));
|
|
16439
16562
|
}
|
|
16440
16563
|
get host() { return getElement(this); }
|
|
16441
16564
|
static get style() { return govLoadingCss; }
|
|
@@ -16451,6 +16574,7 @@ class GovLoading {
|
|
|
16451
16574
|
}; }
|
|
16452
16575
|
}
|
|
16453
16576
|
|
|
16577
|
+
pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS']);
|
|
16454
16578
|
const MessageClass = {
|
|
16455
16579
|
root: 'gov-message',
|
|
16456
16580
|
icon: 'gov-message__icon',
|
|
@@ -16463,11 +16587,11 @@ const govMessageCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{an
|
|
|
16463
16587
|
class GovMessage {
|
|
16464
16588
|
constructor(hostRef) {
|
|
16465
16589
|
registerInstance(this, hostRef);
|
|
16466
|
-
this.variant = Variants
|
|
16590
|
+
this.variant = Variants.PRIMARY;
|
|
16467
16591
|
this.h = govHost(this.host);
|
|
16468
16592
|
}
|
|
16469
16593
|
validateVariant(newValue) {
|
|
16470
|
-
validateProp(Variants
|
|
16594
|
+
validateProp(Variants, newValue, MessageClass.root);
|
|
16471
16595
|
}
|
|
16472
16596
|
render() {
|
|
16473
16597
|
return (hAsync(Host, { class: this.h.classes(MessageClass.root), variant: this.variant, role: "alert" }, this.h.hasSlot('icon') && (hAsync("span", { class: MessageClass.icon }, hAsync("slot", { name: "icon" }))), hAsync("div", { class: MessageClass.content }, hAsync("slot", null))));
|
|
@@ -16481,7 +16605,7 @@ class GovMessage {
|
|
|
16481
16605
|
"$flags$": 4,
|
|
16482
16606
|
"$tagName$": "gov-message",
|
|
16483
16607
|
"$members$": {
|
|
16484
|
-
"variant": [
|
|
16608
|
+
"variant": [1]
|
|
16485
16609
|
},
|
|
16486
16610
|
"$listeners$": undefined,
|
|
16487
16611
|
"$lazyBundleId$": "-",
|
|
@@ -16693,8 +16817,13 @@ class GovNavItem {
|
|
|
16693
16817
|
|
|
16694
16818
|
var Fragment = (_, children) => [...children];
|
|
16695
16819
|
|
|
16696
|
-
const
|
|
16697
|
-
const
|
|
16820
|
+
const PaginationSizes = pick(Sizes, ['_S', '_M']);
|
|
16821
|
+
const PaginationVariants = pick(Variants, ['PRIMARY', 'SECONDARY']);
|
|
16822
|
+
var PaginationTypes;
|
|
16823
|
+
(function (PaginationTypes) {
|
|
16824
|
+
PaginationTypes["BUTTON"] = "button";
|
|
16825
|
+
PaginationTypes["SELECT"] = "select";
|
|
16826
|
+
})(PaginationTypes || (PaginationTypes = {}));
|
|
16698
16827
|
const PaginationClass = {
|
|
16699
16828
|
root: 'gov-pagination',
|
|
16700
16829
|
list: 'gov-pagination__list',
|
|
@@ -16761,7 +16890,7 @@ function paginate(totalItems, currentPage = 1, pageSize = 10, maxPages = 10) {
|
|
|
16761
16890
|
};
|
|
16762
16891
|
}
|
|
16763
16892
|
|
|
16764
|
-
const govPaginationCss = ".gov-pagination__list{margin:0;padding:0}.gov-pagination__list .gov-pagination__item{margin:0;padding:0;background:none}.gov-pagination__list .gov-pagination__item::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-pagination{position:relative;display:block;width:100%}.gov-pagination__list{display:flex;align-items:center;font-weight:bold;text-align:center}.gov-pagination__list .gov-pagination__item{display:flex;justify-content:center;align-items:center;margin:0;border-radius:var(--gov-border-radius, 0.1875rem);overflow:hidden}.gov-pagination__list .gov-pagination__item--arrow{display:flex}.gov-pagination__list .gov-pagination__item--select{z-index:1;display:flex;overflow:visible;padding:0rem 1rem}.gov-pagination__arrow{margin:0}.gov-pagination__item--more .gov-form-select select{border:none;padding-right:0.75rem !important}.gov-pagination__item--more .gov-form-select .gov-icon{display:none}.gov-pagination__inner{display:flex;justify-content:center;align-items:center;align-self:stretch;width:100%;color:var(--gov-pagination-color, var(--gov-color-primary));text-decoration:none}.gov-pagination button.gov-pagination__inner,.gov-pagination a.gov-pagination__inner{display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:background-color 150ms, color 150ms}.gov-pagination button.gov-pagination__inner:focus,.gov-pagination a.gov-pagination__inner:focus{outline:none}@media not all and (pointer: coarse){.gov-pagination button.gov-pagination__inner:hover,.gov-pagination a.gov-pagination__inner:hover{background-color:var(--gov-pagination-bg-active, var(--gov-color-primary-100));color:var(--gov-pagination-color-active, var(--gov-color-secondary))}}.gov-pagination[size=s] .gov-pagination__inner{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);font-weight:inherit}
|
|
16893
|
+
const govPaginationCss = ".gov-pagination__list{margin:0;padding:0}.gov-pagination__list .gov-pagination__item{margin:0;padding:0;background:none}.gov-pagination__list .gov-pagination__item::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-pagination{position:relative;display:block;width:100%}.gov-pagination__list{display:flex;align-items:center;font-weight:bold;text-align:center}.gov-pagination__list .gov-pagination__item{display:flex;justify-content:center;align-items:center;margin:0;border-radius:var(--gov-border-radius, 0.1875rem);overflow:hidden}.gov-pagination__list .gov-pagination__item--arrow{display:flex}.gov-pagination__list .gov-pagination__item--select{z-index:1;display:flex;overflow:visible;padding:0rem 1rem}.gov-pagination__item .gov-button .element{width:var(--gov-pagination-button-size, 2rem)}.gov-pagination__arrow{margin:0}.gov-pagination__item--more .gov-form-select select{border:none;padding-right:0.75rem !important}.gov-pagination__item--more .gov-form-select .gov-icon{display:none}.gov-pagination__inner{display:flex;justify-content:center;align-items:center;align-self:stretch;width:100%;color:var(--gov-pagination-color, var(--gov-color-primary));text-decoration:none}.gov-pagination button.gov-pagination__inner,.gov-pagination a.gov-pagination__inner{display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:background-color 150ms, color 150ms}.gov-pagination button.gov-pagination__inner:focus,.gov-pagination a.gov-pagination__inner:focus{outline:none}@media not all and (pointer: coarse){.gov-pagination button.gov-pagination__inner:hover,.gov-pagination a.gov-pagination__inner:hover{background-color:var(--gov-pagination-bg-active, var(--gov-color-primary-100));color:var(--gov-pagination-color-active, var(--gov-color-secondary))}}.gov-pagination[size=s] .gov-pagination__inner{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);font-weight:inherit}@media (min-width: 48em){.gov-pagination[size=s] .gov-pagination__item .gov-button .element{width:var(--gov-pagination-s-button-size, 2rem)}}.gov-pagination[size=m] .gov-pagination__inner{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);font-weight:inherit}@media (min-width: 48em){.gov-pagination[size=m] .gov-pagination__item .gov-button .element{width:var(--gov-pagination-m-button-size, 2.5rem)}}";
|
|
16765
16894
|
|
|
16766
16895
|
class GovPagination {
|
|
16767
16896
|
constructor(hostRef) {
|
|
@@ -16771,27 +16900,27 @@ class GovPagination {
|
|
|
16771
16900
|
this.current = 1;
|
|
16772
16901
|
this.total = undefined;
|
|
16773
16902
|
this.inverse = undefined;
|
|
16774
|
-
this.size =
|
|
16775
|
-
this.variant =
|
|
16903
|
+
this.size = 'm';
|
|
16904
|
+
this.variant = 'primary';
|
|
16776
16905
|
this.pageSize = 10;
|
|
16777
16906
|
this.maxPages = 5;
|
|
16778
16907
|
this.link = undefined;
|
|
16779
16908
|
this.wcagLabel = undefined;
|
|
16780
16909
|
this.wcagLabelledBy = undefined;
|
|
16781
|
-
this.wcagSelectLabel =
|
|
16782
|
-
this.wcagPageLabel =
|
|
16910
|
+
this.wcagSelectLabel = 'Vybrat stranu';
|
|
16911
|
+
this.wcagPageLabel = 'Strana';
|
|
16783
16912
|
this.pagination = undefined;
|
|
16784
16913
|
this.h = govHost(this.host);
|
|
16785
|
-
this.pageSelectId = createID(
|
|
16914
|
+
this.pageSelectId = createID('GovPageSelect');
|
|
16786
16915
|
}
|
|
16787
16916
|
validateType(newValue) {
|
|
16788
|
-
validateProp(
|
|
16917
|
+
validateProp(PaginationTypes, newValue, PaginationClass.root);
|
|
16789
16918
|
}
|
|
16790
16919
|
validateSize(newValue) {
|
|
16791
|
-
validateProp(
|
|
16920
|
+
validateProp(PaginationSizes, newValue, PaginationClass.root);
|
|
16792
16921
|
}
|
|
16793
16922
|
validateVariant(newValue) {
|
|
16794
|
-
validateProp(
|
|
16923
|
+
validateProp(PaginationVariants, newValue, PaginationClass.root);
|
|
16795
16924
|
}
|
|
16796
16925
|
componentWillLoad() {
|
|
16797
16926
|
this.recalculatePagination(this.current);
|
|
@@ -16809,7 +16938,7 @@ class GovPagination {
|
|
|
16809
16938
|
}
|
|
16810
16939
|
isActivePageClass(originalClass, page) {
|
|
16811
16940
|
if (this.pagination.currentPage === page) {
|
|
16812
|
-
return originalClass +
|
|
16941
|
+
return originalClass + ' is-active';
|
|
16813
16942
|
}
|
|
16814
16943
|
else {
|
|
16815
16944
|
return originalClass;
|
|
@@ -16819,8 +16948,8 @@ class GovPagination {
|
|
|
16819
16948
|
const pageResolver = (page, content) => {
|
|
16820
16949
|
const isDisabled = page === -1;
|
|
16821
16950
|
const ariaCurrent = toBoolAttrIfDefined(this.pagination.currentPage === page ? true : undefined);
|
|
16822
|
-
const buttonType = this.pagination.currentPage === page ?
|
|
16823
|
-
return (hAsync("gov-button", { variant: this.variant, size: this.size, type: buttonType, inverse: this.pagination.currentPage === page ? true : false, disabled: isDisabled, "gov-click": () => this.onClickHandler(page), "wcag-label": this.wcagPageLabel +
|
|
16951
|
+
const buttonType = this.pagination.currentPage === page ? 'solid' : 'base';
|
|
16952
|
+
return (hAsync("gov-button", { variant: this.variant, size: this.size, type: buttonType, inverse: this.pagination.currentPage === page ? true : false, disabled: isDisabled, "gov-click": () => this.onClickHandler(page), "wcag-label": this.wcagPageLabel + ' ' + page, "wcag-current": ariaCurrent, class: PaginationClass.inner }, content));
|
|
16824
16953
|
};
|
|
16825
16954
|
return (hAsync(Host, { class: this.h.classes(PaginationClass.root), type: this.type, variant: this.variant, size: this.size }, hAsync("nav", { "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy }, hAsync("ul", { class: PaginationClass.list }, hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1, hAsync("gov-icon", { class: PaginationClass.arrow, name: "double-arrow-left" }))), hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1, hAsync("gov-icon", { class: PaginationClass.arrow, name: "arrow-left" }))), this.type == 'select' ? (hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemSelect]) }, hAsync("span", { class: PaginationClass.inner }, hAsync("span", { id: this.pageSelectId, hidden: true }, this.wcagSelectLabel), hAsync("gov-form-select", { size: "m", "wcag-labelled-by": this.pageSelectId }, this.pagination.pages.map(page => (hAsync("option", { value: page, selected: this.pagination.currentPage === page }, page))))))) : (hAsync(Fragment, null, this.pagination.pages.map(page => (hAsync("li", { class: this.isActivePageClass(PaginationClass.item, page) }, pageResolver(page, page)))), hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemMore]) }, hAsync("span", { class: PaginationClass.inner }, hAsync("span", { id: this.pageSelectId, hidden: true }, this.wcagSelectLabel), hAsync("gov-form-select", { size: "m", "wcag-labelled-by": this.pageSelectId }, hAsync("option", { value: "..." }, "..."), this.pagination.pages.map(page => (hAsync("option", { value: page, selected: this.pagination.currentPage === page }, page)))))))), hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.currentPage + 1 : -1, hAsync("gov-icon", { class: PaginationClass.arrow, name: "arrow-right" }))), hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.totalPages : -1, hAsync("gov-icon", { class: PaginationClass.arrow, name: "double-arrow-right" })))))));
|
|
16826
16955
|
}
|
|
@@ -16832,8 +16961,8 @@ class GovPagination {
|
|
|
16832
16961
|
* Validate the WCAG attributes of the component
|
|
16833
16962
|
*/
|
|
16834
16963
|
async validateWcag() {
|
|
16835
|
-
validateWcagProp(this.wcagPageLabel,
|
|
16836
|
-
validateWcagProp(this.wcagSelectLabel,
|
|
16964
|
+
validateWcagProp(this.wcagPageLabel, 'wcag-page-label', PaginationClass.root);
|
|
16965
|
+
validateWcagProp(this.wcagSelectLabel, 'wcag-select-label', PaginationClass.root);
|
|
16837
16966
|
validateWcagLabel(this.wcagLabel, this.wcagLabelledBy, PaginationClass.root);
|
|
16838
16967
|
}
|
|
16839
16968
|
get host() { return getElement(this); }
|
|
@@ -16847,12 +16976,12 @@ class GovPagination {
|
|
|
16847
16976
|
"$flags$": 0,
|
|
16848
16977
|
"$tagName$": "gov-pagination",
|
|
16849
16978
|
"$members$": {
|
|
16850
|
-
"type": [
|
|
16979
|
+
"type": [1],
|
|
16851
16980
|
"current": [2],
|
|
16852
16981
|
"total": [2],
|
|
16853
16982
|
"inverse": [4],
|
|
16854
|
-
"size": [
|
|
16855
|
-
"variant": [
|
|
16983
|
+
"size": [1],
|
|
16984
|
+
"variant": [1],
|
|
16856
16985
|
"pageSize": [2, "page-size"],
|
|
16857
16986
|
"maxPages": [2, "max-pages"],
|
|
16858
16987
|
"link": [1],
|
|
@@ -17079,7 +17208,7 @@ class GovSideNavItem {
|
|
|
17079
17208
|
const { isExpandedState, label } = this;
|
|
17080
17209
|
// TODO: správný počet zanořených childů
|
|
17081
17210
|
const hasChilds = this.host.children.length > 1;
|
|
17082
|
-
return (hAsync(Host, { class: this.classNames, role: "listitem", inverse: this.inverse, "aria-expanded": booleanString(isExpandedState) }, this.href ? (hAsync("div", { class: SideNavItemClass.header }, hAsync("a", { class: SideNavItemClass.name, href: this.href }, this.h.hasSlot('icon') && (hAsync("span", { class: SideNavItemClass.icon }, hAsync("slot", { name: "icon" }))), hAsync("span", { class: SideNavItemClass.label }, label), this.count && (hAsync("span", { class: SideNavItemClass.badge }, hAsync("gov-badge", { variant: "secondary", size: "
|
|
17211
|
+
return (hAsync(Host, { class: this.classNames, role: "listitem", inverse: this.inverse, "aria-expanded": booleanString(isExpandedState) }, this.href ? (hAsync("div", { class: SideNavItemClass.header }, hAsync("a", { class: SideNavItemClass.name, href: this.href }, this.h.hasSlot('icon') && (hAsync("span", { class: SideNavItemClass.icon }, hAsync("slot", { name: "icon" }))), hAsync("span", { class: SideNavItemClass.label }, label), this.count && (hAsync("span", { class: SideNavItemClass.badge }, hAsync("gov-badge", { variant: "secondary", size: "s", inverse: this.inverse }, "3")))), hasChilds && (hAsync("button", { type: "button", class: SideNavItemClass.arrow, onClick: () => this.toggle() }, hAsync("gov-icon", { name: "arrow-down" }))))) : (hAsync("div", { class: SideNavItemClass.header }, hAsync("button", { class: SideNavItemClass.name, type: "button", onClick: () => this.toggle() }, this.h.hasSlot('icon') && (hAsync("span", { class: SideNavItemClass.icon }, hAsync("slot", { name: "icon" }))), hAsync("span", { class: SideNavItemClass.label }, label), hasChilds && (hAsync("span", { class: SideNavItemClass.arrow }, hAsync("gov-icon", { name: "arrow-down" })))))), hasChilds && (hAsync("div", { class: SideNavItemClass.content }, hAsync("slot", null)))));
|
|
17083
17212
|
}
|
|
17084
17213
|
/**
|
|
17085
17214
|
* Opening the sidenav
|
|
@@ -17137,18 +17266,15 @@ class GovSideNavItem {
|
|
|
17137
17266
|
}; }
|
|
17138
17267
|
}
|
|
17139
17268
|
|
|
17140
|
-
const
|
|
17141
|
-
|
|
17142
|
-
|
|
17143
|
-
|
|
17144
|
-
|
|
17145
|
-
|
|
17146
|
-
|
|
17147
|
-
|
|
17148
|
-
|
|
17149
|
-
BreakpointNames.push(undefined);
|
|
17150
|
-
const SpacerSize = [undefined, Sizes$3._2XS, Sizes$3._XS, Sizes$3._S, Sizes$3._M, Sizes$3._L, Sizes$3._XL, Sizes$3._2XL, Sizes$3._3XL, Sizes$3._5XL];
|
|
17151
|
-
const SpacerBreakpoints = BreakpointNames;
|
|
17269
|
+
const SpacerSize = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_5XL']);
|
|
17270
|
+
var SpacerBreakpoints;
|
|
17271
|
+
(function (SpacerBreakpoints) {
|
|
17272
|
+
SpacerBreakpoints["NONE"] = "none";
|
|
17273
|
+
SpacerBreakpoints["SM"] = "sm";
|
|
17274
|
+
SpacerBreakpoints["MD"] = "md";
|
|
17275
|
+
SpacerBreakpoints["LG"] = "lg";
|
|
17276
|
+
SpacerBreakpoints["XL"] = "xl";
|
|
17277
|
+
})(SpacerBreakpoints || (SpacerBreakpoints = {}));
|
|
17152
17278
|
const SpacerClass = {
|
|
17153
17279
|
root: 'gov-spacer',
|
|
17154
17280
|
};
|
|
@@ -17185,7 +17311,7 @@ class GovSpacer {
|
|
|
17185
17311
|
"$flags$": 0,
|
|
17186
17312
|
"$tagName$": "gov-spacer",
|
|
17187
17313
|
"$members$": {
|
|
17188
|
-
"size": [
|
|
17314
|
+
"size": [1],
|
|
17189
17315
|
"breakpoint": [1]
|
|
17190
17316
|
},
|
|
17191
17317
|
"$listeners$": undefined,
|
|
@@ -17194,8 +17320,11 @@ class GovSpacer {
|
|
|
17194
17320
|
}; }
|
|
17195
17321
|
}
|
|
17196
17322
|
|
|
17197
|
-
|
|
17198
|
-
|
|
17323
|
+
var StatsBarIconPosition;
|
|
17324
|
+
(function (StatsBarIconPosition) {
|
|
17325
|
+
StatsBarIconPosition["LEFT"] = "left";
|
|
17326
|
+
})(StatsBarIconPosition || (StatsBarIconPosition = {}));
|
|
17327
|
+
const StatsBarVariant = pick(Variants, ['PRIMARY', 'SECONDARY']);
|
|
17199
17328
|
const StatsBarClass = {
|
|
17200
17329
|
root: 'gov-statsbar',
|
|
17201
17330
|
section: 'gov-statsbar__section',
|
|
@@ -17213,7 +17342,7 @@ class GovStatsbar {
|
|
|
17213
17342
|
constructor(hostRef) {
|
|
17214
17343
|
registerInstance(this, hostRef);
|
|
17215
17344
|
this.iconPosition = undefined;
|
|
17216
|
-
this.variant =
|
|
17345
|
+
this.variant = 'primary';
|
|
17217
17346
|
this.h = govHost(this.host);
|
|
17218
17347
|
}
|
|
17219
17348
|
validateIconPosition(newValue) {
|
|
@@ -17228,8 +17357,8 @@ class GovStatsbar {
|
|
|
17228
17357
|
}
|
|
17229
17358
|
componentDidLoad() {
|
|
17230
17359
|
this.host.querySelectorAll(StatsBarItemClass.root).forEach((node) => {
|
|
17231
|
-
if (this.iconPosition ===
|
|
17232
|
-
node.setAttribute(
|
|
17360
|
+
if (this.iconPosition === 'left') {
|
|
17361
|
+
node.setAttribute('icon-position', 'left');
|
|
17233
17362
|
}
|
|
17234
17363
|
});
|
|
17235
17364
|
}
|
|
@@ -17246,8 +17375,8 @@ class GovStatsbar {
|
|
|
17246
17375
|
"$flags$": 4,
|
|
17247
17376
|
"$tagName$": "gov-statsbar",
|
|
17248
17377
|
"$members$": {
|
|
17249
|
-
"iconPosition": [
|
|
17250
|
-
"variant": [
|
|
17378
|
+
"iconPosition": [1, "icon-position"],
|
|
17379
|
+
"variant": [1]
|
|
17251
17380
|
},
|
|
17252
17381
|
"$listeners$": undefined,
|
|
17253
17382
|
"$lazyBundleId$": "-",
|
|
@@ -17281,7 +17410,7 @@ class GovStatsbarItem {
|
|
|
17281
17410
|
"$flags$": 4,
|
|
17282
17411
|
"$tagName$": "gov-statsbar-item",
|
|
17283
17412
|
"$members$": {
|
|
17284
|
-
"iconPosition": [
|
|
17413
|
+
"iconPosition": [1, "icon-position"]
|
|
17285
17414
|
},
|
|
17286
17415
|
"$listeners$": undefined,
|
|
17287
17416
|
"$lazyBundleId$": "-",
|
|
@@ -17289,6 +17418,8 @@ class GovStatsbarItem {
|
|
|
17289
17418
|
}; }
|
|
17290
17419
|
}
|
|
17291
17420
|
|
|
17421
|
+
const StepperVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS']);
|
|
17422
|
+
const StepperSizes = pick(Sizes, ['_XS', '_S', '_M']);
|
|
17292
17423
|
const StepperClass = {
|
|
17293
17424
|
root: 'gov-stepper',
|
|
17294
17425
|
};
|
|
@@ -17311,19 +17442,19 @@ class GovStepper {
|
|
|
17311
17442
|
constructor(hostRef) {
|
|
17312
17443
|
registerInstance(this, hostRef);
|
|
17313
17444
|
this.govChange = createEvent(this, "gov-change", 7);
|
|
17314
|
-
this.size =
|
|
17445
|
+
this.size = 'm';
|
|
17315
17446
|
this.h = govHost(this.host);
|
|
17316
17447
|
}
|
|
17317
17448
|
validateSize(newValue) {
|
|
17318
|
-
validateProp(
|
|
17449
|
+
validateProp(StepperSizes, newValue, StepperClass.root);
|
|
17319
17450
|
}
|
|
17320
17451
|
componentWillLoad() {
|
|
17321
17452
|
this.validateSize(this.size);
|
|
17322
17453
|
}
|
|
17323
17454
|
componentDidLoad() {
|
|
17324
17455
|
this.host.querySelectorAll(StepperItemClass.root).forEach((child) => {
|
|
17325
|
-
child.setAttribute(
|
|
17326
|
-
child.addEventListener(
|
|
17456
|
+
child.setAttribute('size', this.size);
|
|
17457
|
+
child.addEventListener('gov-change', (e) => {
|
|
17327
17458
|
e.stopPropagation();
|
|
17328
17459
|
this.govChange.emit(e.detail);
|
|
17329
17460
|
});
|
|
@@ -17341,7 +17472,7 @@ class GovStepper {
|
|
|
17341
17472
|
"$flags$": 4,
|
|
17342
17473
|
"$tagName$": "gov-stepper",
|
|
17343
17474
|
"$members$": {
|
|
17344
|
-
"size": [
|
|
17475
|
+
"size": [1]
|
|
17345
17476
|
},
|
|
17346
17477
|
"$listeners$": undefined,
|
|
17347
17478
|
"$lazyBundleId$": "-",
|
|
@@ -17356,8 +17487,8 @@ class GovStepperItem {
|
|
|
17356
17487
|
registerInstance(this, hostRef);
|
|
17357
17488
|
this.govChange = createEvent(this, "gov-change", 7);
|
|
17358
17489
|
this.isExpandedState = undefined;
|
|
17359
|
-
this.variant =
|
|
17360
|
-
this.size =
|
|
17490
|
+
this.variant = 'primary';
|
|
17491
|
+
this.size = 'm';
|
|
17361
17492
|
this.identifier = undefined;
|
|
17362
17493
|
this.label = undefined;
|
|
17363
17494
|
this.annotation = undefined;
|
|
@@ -17380,7 +17511,7 @@ class GovStepperItem {
|
|
|
17380
17511
|
}
|
|
17381
17512
|
}
|
|
17382
17513
|
validateVariant(newValue) {
|
|
17383
|
-
validateProp(
|
|
17514
|
+
validateProp(StepperVariants, newValue, StepperItemClass.root);
|
|
17384
17515
|
}
|
|
17385
17516
|
componentWillLoad() {
|
|
17386
17517
|
this.validateLabel(this.label);
|
|
@@ -17392,8 +17523,7 @@ class GovStepperItem {
|
|
|
17392
17523
|
const contentId = this.contentId;
|
|
17393
17524
|
const { label } = this;
|
|
17394
17525
|
const TriggerTag = this.triggerTag;
|
|
17395
|
-
return (hAsync(Host, { class: prepareClasses([StepperItemClass.root, this.annotation && StepperItemClass.rootWithAnnot]), variant: this.variant }, hAsync("div", { id: triggerId, class: StepperItemClass.header, role: "listitem" }, hAsync(TriggerTag, { class: StepperItemClass.title }, this.h.hasSlot('prefix') && (hAsync("span", { class: StepperItemClass.prefix }, hAsync("slot", { name: "prefix" }))), hAsync("span", { class: StepperItemClass.name }, hAsync("span", { class: StepperItemClass.label }, label), this.annotation &&
|
|
17396
|
-
hAsync("span", { class: StepperItemClass.annot }, this.annotation)))), this.h.hasSlot('content') && (hAsync("div", { class: StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, hAsync("slot", { name: "content" })))));
|
|
17526
|
+
return (hAsync(Host, { class: prepareClasses([StepperItemClass.root, this.annotation && StepperItemClass.rootWithAnnot]), variant: this.variant }, hAsync("div", { id: triggerId, class: StepperItemClass.header, role: "listitem" }, hAsync(TriggerTag, { class: StepperItemClass.title }, this.h.hasSlot('prefix') && (hAsync("span", { class: StepperItemClass.prefix }, hAsync("slot", { name: "prefix" }))), hAsync("span", { class: StepperItemClass.name }, hAsync("span", { class: StepperItemClass.label }, label), this.annotation && hAsync("span", { class: StepperItemClass.annot }, this.annotation)))), this.h.hasSlot('content') && (hAsync("div", { class: StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, hAsync("slot", { name: "content" })))));
|
|
17397
17527
|
}
|
|
17398
17528
|
/**
|
|
17399
17529
|
* Returns the current state of the component
|
|
@@ -17412,8 +17542,8 @@ class GovStepperItem {
|
|
|
17412
17542
|
"$flags$": 4,
|
|
17413
17543
|
"$tagName$": "gov-stepper-item",
|
|
17414
17544
|
"$members$": {
|
|
17415
|
-
"variant": [
|
|
17416
|
-
"size": [
|
|
17545
|
+
"variant": [1],
|
|
17546
|
+
"size": [1],
|
|
17417
17547
|
"identifier": [1],
|
|
17418
17548
|
"label": [1],
|
|
17419
17549
|
"annotation": [1],
|
|
@@ -17427,7 +17557,17 @@ class GovStepperItem {
|
|
|
17427
17557
|
}; }
|
|
17428
17558
|
}
|
|
17429
17559
|
|
|
17430
|
-
const
|
|
17560
|
+
const TabVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'SUCCESS', 'ERROR', 'WARNING']);
|
|
17561
|
+
var TabTypes;
|
|
17562
|
+
(function (TabTypes) {
|
|
17563
|
+
TabTypes["TEXT"] = "text";
|
|
17564
|
+
TabTypes["BADGE"] = "badge";
|
|
17565
|
+
})(TabTypes || (TabTypes = {}));
|
|
17566
|
+
var TabOrientation;
|
|
17567
|
+
(function (TabOrientation) {
|
|
17568
|
+
TabOrientation["HORIZONTAL"] = "horizontal";
|
|
17569
|
+
TabOrientation["VERTICAL"] = "vertical";
|
|
17570
|
+
})(TabOrientation || (TabOrientation = {}));
|
|
17431
17571
|
const TabsClass = {
|
|
17432
17572
|
root: 'gov-tabs',
|
|
17433
17573
|
tabs: 'gov-tabs__tabs',
|
|
@@ -17440,7 +17580,7 @@ const TabsItemClass = {
|
|
|
17440
17580
|
inner: 'gov-tabs-item__inner',
|
|
17441
17581
|
};
|
|
17442
17582
|
|
|
17443
|
-
const govTabsCss = ".gov-tabs__list{margin:0;padding:0}.gov-tabs__list>.gov-tabs__item{margin:0;padding:0;background:none}.gov-tabs__list>.gov-tabs__item::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-tabs{position:relative;display:block;width:100%}.gov-tabs__list{display:flex;flex-wrap:wrap;margin:0rem 0rem 1.
|
|
17583
|
+
const govTabsCss = ".gov-tabs__list{margin:0;padding:0}.gov-tabs__list>.gov-tabs__item{margin:0;padding:0;background:none}.gov-tabs__list>.gov-tabs__item::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-tabs{position:relative;display:block;width:100%}.gov-tabs__list{display:flex;flex-wrap:wrap;margin:0rem 0rem 1.25rem}.gov-tabs__list>.gov-tabs__item{display:flex;margin:0}.gov-tabs__btn{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0;padding:0.75rem 0rem 0.625rem;border-bottom:0.125rem solid transparent;font-weight:700;text-align:center;text-transform:uppercase;transition:150ms linear color, 150ms linear border-color}.gov-tabs__btn:focus{outline:none}.gov-tabs__btn:focus{outline:none}.gov-tabs__btn:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-tabs[type=text] .gov-tabs__list{gap:0.5rem 2rem;border-bottom:var(--gov-tabs-list-border-width, 0.0625rem solid var(--gov-color-secondary-500))}.gov-tabs[type=badge] .gov-tabs__list{gap:0.5rem 1rem}.gov-tabs[variant=primary][type=text] .gov-tabs__btn{color:var(--gov-tabs-primary-color, var(--gov-color-primary))}@media not all and (pointer: coarse){.gov-tabs[variant=primary][type=text] .gov-tabs__btn:hover{color:var(--gov-tabs-primary-color-hover, var(--gov-color-primary-800))}}.gov-tabs[variant=primary][type=text] .gov-tabs__btn[aria-selected=true]{border-bottom-color:cmake-var(tabs-primary-color-active, var(--gov-color-primary-800));color:cmake-var(tabs-primary-color-active, var(--gov-color-primary-800))}.gov-tabs[variant=secondary][type=text] .gov-tabs__btn{color:var(--gov-tabs-secondary-color, var(--gov-color-secondary-700))}@media not all and (pointer: coarse){.gov-tabs[variant=secondary][type=text] .gov-tabs__btn:hover{color:var(--gov-tabs-secondary-color-hover, var(--gov-color-secondary-900))}}.gov-tabs[variant=secondary][type=text] .gov-tabs__btn[aria-selected=true]{border-bottom-color:cmake-var(tabs-secondary-color-active, var(--gov-color-secondary-900));color:cmake-var(tabs-secondary-color-active, var(--gov-color-secondary-900))}.gov-tabs[variant=success][type=text] .gov-tabs__btn{color:var(--gov-tabs-success-color, var(--gov-color-success-500))}@media not all and (pointer: coarse){.gov-tabs[variant=success][type=text] .gov-tabs__btn:hover{color:var(--gov-tabs-success-color-hover, var(--gov-color-success-700))}}.gov-tabs[variant=success][type=text] .gov-tabs__btn[aria-selected=true]{border-bottom-color:cmake-var(tabs-success-color-active, var(--gov-color-success-700));color:cmake-var(tabs-success-color-active, var(--gov-color-success-700))}.gov-tabs[variant=warning][type=text] .gov-tabs__btn{color:var(--gov-tabs-warning-color, var(--gov-color-warning-500))}@media not all and (pointer: coarse){.gov-tabs[variant=warning][type=text] .gov-tabs__btn:hover{color:var(--gov-tabs-warning-color-hover, var(--gov-color-warning-700))}}.gov-tabs[variant=warning][type=text] .gov-tabs__btn[aria-selected=true]{border-bottom-color:cmake-var(tabs-warning-color-active, var(--gov-color-warning-700));color:cmake-var(tabs-warning-color-active, var(--gov-color-warning-700))}.gov-tabs[variant=error][type=text] .gov-tabs__btn{color:var(--gov-tabs-error-color, var(--gov-color-error-400))}@media not all and (pointer: coarse){.gov-tabs[variant=error][type=text] .gov-tabs__btn:hover{color:var(--gov-tabs-error-color-hover, var(--gov-color-error-600))}}.gov-tabs[variant=error][type=text] .gov-tabs__btn[aria-selected=true]{border-bottom-color:cmake-var(tabs-error-color-active, var(--gov-color-error-600));color:cmake-var(tabs-error-color-active, var(--gov-color-error-600))}.gov-tabs[orientation=vertical] .gov-tabs__btn{text-align:left}@media (min-width: 75em){.gov-tabs[orientation=vertical]{display:flex;flex-direction:row}.gov-tabs[orientation=vertical] .gov-tabs__list{flex-wrap:nowrap;flex-direction:column;width:-moz-max-content;width:max-content;max-width:30vw;margin-right:1.25rem;padding:0rem 0.5rem;border-bottom:none;border-right:var(--gov-tabs-list-border-width, 0.0625rem solid var(--gov-color-secondary-500))}.gov-tabs[orientation=vertical] .gov-tabs__item{justify-content:flex-end}.gov-tabs[orientation=vertical] .gov-tabs__btn{padding:0.5rem 0.75rem;text-align:right}}";
|
|
17444
17584
|
|
|
17445
17585
|
class GovTabs {
|
|
17446
17586
|
constructor(hostRef) {
|
|
@@ -17451,7 +17591,8 @@ class GovTabs {
|
|
|
17451
17591
|
this.focusIndex = 0;
|
|
17452
17592
|
this.compactControls = false;
|
|
17453
17593
|
this.type = 'text';
|
|
17454
|
-
this.variant =
|
|
17594
|
+
this.variant = 'primary';
|
|
17595
|
+
this.orientation = 'horizontal';
|
|
17455
17596
|
this.wcagLabel = undefined;
|
|
17456
17597
|
this.wcagSelectLabel = undefined;
|
|
17457
17598
|
this.wcagLabelledBy = undefined;
|
|
@@ -17459,10 +17600,10 @@ class GovTabs {
|
|
|
17459
17600
|
this.formSelectId = createID('GovForSelect');
|
|
17460
17601
|
}
|
|
17461
17602
|
validateType(newValue) {
|
|
17462
|
-
validateProp(
|
|
17603
|
+
validateProp(TabTypes, newValue, TabsClass.root);
|
|
17463
17604
|
}
|
|
17464
17605
|
validateVariant(newValue) {
|
|
17465
|
-
validateProp(
|
|
17606
|
+
validateProp(TabVariants, newValue, TabsClass.root);
|
|
17466
17607
|
}
|
|
17467
17608
|
componentWillLoad() {
|
|
17468
17609
|
this.prepareDataSource();
|
|
@@ -17612,8 +17753,9 @@ class GovTabs {
|
|
|
17612
17753
|
"$flags$": 4,
|
|
17613
17754
|
"$tagName$": "gov-tabs",
|
|
17614
17755
|
"$members$": {
|
|
17615
|
-
"type": [
|
|
17616
|
-
"variant": [
|
|
17756
|
+
"type": [1],
|
|
17757
|
+
"variant": [1],
|
|
17758
|
+
"orientation": [1],
|
|
17617
17759
|
"wcagLabel": [1, "wcag-label"],
|
|
17618
17760
|
"wcagSelectLabel": [1, "wcag-select-label"],
|
|
17619
17761
|
"wcagLabelledBy": [1, "wcag-labelled-by"],
|
|
@@ -17750,7 +17892,7 @@ class GovTiles {
|
|
|
17750
17892
|
this.h = govHost(this.host);
|
|
17751
17893
|
}
|
|
17752
17894
|
get classNames() {
|
|
17753
|
-
return prepareClasses([TilesClass.root, this.columns && TilesClass.root +
|
|
17895
|
+
return prepareClasses([TilesClass.root, this.columns && TilesClass.root + '--x' + this.columns]);
|
|
17754
17896
|
}
|
|
17755
17897
|
render() {
|
|
17756
17898
|
return (hAsync(Host, { class: this.h.classes(this.classNames) }, hAsync("slot", null)));
|
|
@@ -17769,13 +17911,15 @@ class GovTiles {
|
|
|
17769
17911
|
}; }
|
|
17770
17912
|
}
|
|
17771
17913
|
|
|
17914
|
+
const ToastVariants = pick(Variants, ['SUCCESS', 'WARNING', 'ERROR', 'SECONDARY', 'PRIMARY']);
|
|
17915
|
+
pick(Types$1, ['CLASSIC', 'SOLID']);
|
|
17772
17916
|
const ToastClass = {
|
|
17773
|
-
root:
|
|
17774
|
-
hidden:
|
|
17775
|
-
icon:
|
|
17776
|
-
content:
|
|
17777
|
-
close:
|
|
17778
|
-
timer:
|
|
17917
|
+
root: 'gov-toast',
|
|
17918
|
+
hidden: 'gov-toast--hidden',
|
|
17919
|
+
icon: 'gov-toast__icon',
|
|
17920
|
+
content: 'gov-toast__content',
|
|
17921
|
+
close: 'gov-toast__close',
|
|
17922
|
+
timer: 'gov-toast__timer',
|
|
17779
17923
|
};
|
|
17780
17924
|
|
|
17781
17925
|
const govToastCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-toast{position:relative;display:flex;gap:1rem;flex-direction:column;padding:0.75rem 1rem;border-left:0.25rem solid transparent;background:var(--gov-toast-message-bg, var(--gov-color-neutral-white));z-index:201;position:relative;position:fixed;max-width:23.4375rem;padding-right:3.125rem;opacity:1;transition:opacity 300ms ease-in-out}.gov-toast__icon{flex:0 0 1.25rem;width:1.25rem;height:1.25rem}.gov-toast__content{flex:1 1 auto}.gov-toast__content>*:last-child{margin-bottom:0}.gov-toast__content p{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}@media (min-width: 30em){.gov-toast{flex-direction:row}}.gov-toast__content{padding-right:0}.gov-toast__close{position:absolute;top:0.5rem;right:0.75rem}.gov-toast__timer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.gov-toast--hidden{opacity:0}.gov-toast[gravity=top i]{top:1rem}.gov-toast[gravity=bottom i]{bottom:1rem}.gov-toast[position=left i]{left:1rem}.gov-toast[position=center i]{left:50%;transform:translateX(-50%)}.gov-toast[position=right i]{right:1rem}.gov-toast[type=solid i]{border:none;border-radius:0.25rem;overflow:hidden;box-shadow:none}.gov-toast[type=solid i].is-initialized .gov-toast__timer{transform-origin:left;animation:countdown linear forwards var(--toast-duration, 0)}.gov-toast[variant=warning]{border-left-color:var(--gov-toast-warning-codecor-lor, var(--gov-color-warning))}.gov-toast[variant=warning] .gov-toast__icon{color:var(--gov-toast-warning-codecor-lor, var(--gov-color-warning))}.gov-toast[variant=warning][type=solid i]{background-color:var(--gov-toast-warning-background, var(--gov-color-warning));color:var(--gov-toast-warning-color, var(--gov-color-secondary))}.gov-toast[variant=warning][type=solid i] .gov-toast__icon{color:var(--gov-toast-warning-color, var(--gov-color-secondary))}.gov-toast[variant=warning][type=solid i] .gov-toast__timer{background-color:var(--gov-toast-warning-timer-background, rgba(var(--gov-color-warning-500-rgb), 0.3))}.gov-toast[variant=error]{border-left-color:var(--gov-toast-error-colodecor-r, var(--gov-color-error))}.gov-toast[variant=error] .gov-toast__icon{color:var(--gov-toast-error-colodecor-r, var(--gov-color-error))}.gov-toast[variant=error][type=solid i]{background-color:var(--gov-toast-error-background, var(--gov-color-error));color:var(--gov-toast-error-color, var(--gov-color-neutral-white))}.gov-toast[variant=error][type=solid i] .gov-toast__icon{color:var(--gov-toast-error-color, var(--gov-color-neutral-white))}.gov-toast[variant=error][type=solid i] .gov-toast__timer{background-color:var(--gov-toast-error-timer-background, rgba(var(--gov-color-error-500-rgb), 0.5))}.gov-toast[variant=success]{border-left-color:var(--gov-toast-success-codecor-lor, var(--gov-color-success))}.gov-toast[variant=success] .gov-toast__icon{color:var(--gov-toast-success-codecor-lor, var(--gov-color-success))}.gov-toast[variant=success][type=solid i]{background-color:var(--gov-toast-success-background, var(--gov-color-success-500));color:var(--gov-toast-success-color, var(--gov-color-neutral-white))}.gov-toast[variant=success][type=solid i] .gov-toast__icon{color:var(--gov-toast-success-color, var(--gov-color-neutral-white))}.gov-toast[variant=success][type=solid i] .gov-toast__timer{background-color:var(--gov-toast-success-timer-background, rgba(var(--gov-color-success-600-rgb), 0.5))}.gov-toast[variant=primary]{border-left-color:var(--gov-toast-primary-codecor-lor, var(--gov-color-primary))}.gov-toast[variant=primary] .gov-toast__icon{color:var(--gov-toast-primary-codecor-lor, var(--gov-color-primary))}.gov-toast[variant=primary][type=solid i]{background-color:var(--gov-toast-primary-background, var(--gov-color-primary));color:var(--gov-toast-primary-color, var(--gov-color-neutral-white))}.gov-toast[variant=primary][type=solid i] .gov-toast__icon{color:var(--gov-toast-primary-color, var(--gov-color-neutral-white))}.gov-toast[variant=primary][type=solid i] .gov-toast__timer{background-color:var(--gov-toast-primary-timer-background, rgba(var(--gov-color-primary-700-rgb), 0.5))}.gov-toast[variant=secondary]{border-left-color:var(--gov-toast-secondary-decor-color, var(--gov-color-secondary))}.gov-toast[variant=secondary] .gov-toast__icon{color:var(--gov-toast-secondary-decor-color, var(--gov-color-secondary))}.gov-toast[variant=secondary][type=solid i]{background-color:var(--gov-toast-secondary-background, var(--gov-color-secondary));color:var(--gov-toast-secondary-color, var(--gov-color-neutral-white))}.gov-toast[variant=secondary][type=solid i] .gov-toast__icon{color:var(--gov-toast-secondary-color, var(--gov-color-neutral-white))}.gov-toast[variant=secondary][type=solid i] .gov-toast__timer{background-color:var(--gov-toast-secondary-timer-background, rgba(var(--gov-color-secondary-900-rgb), 0.5))}@media (min-width: 30em){.gov-toast__content{padding-right:2rem}}";
|
|
@@ -17784,18 +17928,18 @@ class GovToast {
|
|
|
17784
17928
|
constructor(hostRef) {
|
|
17785
17929
|
registerInstance(this, hostRef);
|
|
17786
17930
|
this.govClose = createEvent(this, "gov-close", 7);
|
|
17787
|
-
this.variant =
|
|
17788
|
-
this.gravity =
|
|
17789
|
-
this.position =
|
|
17790
|
-
this.type =
|
|
17931
|
+
this.variant = 'primary';
|
|
17932
|
+
this.gravity = 'top';
|
|
17933
|
+
this.position = 'right';
|
|
17934
|
+
this.type = 'classic';
|
|
17791
17935
|
this.time = 0;
|
|
17792
17936
|
this.closeLabel = undefined;
|
|
17793
17937
|
this.wcagCloseLabel = undefined;
|
|
17794
17938
|
this.h = govHost(this.host);
|
|
17795
|
-
this.toastId = createID(
|
|
17939
|
+
this.toastId = createID('GovToast');
|
|
17796
17940
|
}
|
|
17797
17941
|
validateVariant(newValue) {
|
|
17798
|
-
validateProp(
|
|
17942
|
+
validateProp(ToastVariants, newValue, ToastClass.root);
|
|
17799
17943
|
}
|
|
17800
17944
|
componentWillLoad() {
|
|
17801
17945
|
this.validateVariant(this.variant);
|
|
@@ -17812,7 +17956,7 @@ class GovToast {
|
|
|
17812
17956
|
}
|
|
17813
17957
|
runTimer() {
|
|
17814
17958
|
if (this.isSolid) {
|
|
17815
|
-
this.host.classList.add(
|
|
17959
|
+
this.host.classList.add('is-initialized');
|
|
17816
17960
|
}
|
|
17817
17961
|
if (this.isTimer) {
|
|
17818
17962
|
this.timeout = setTimeout(() => {
|
|
@@ -17822,7 +17966,7 @@ class GovToast {
|
|
|
17822
17966
|
}
|
|
17823
17967
|
}
|
|
17824
17968
|
render() {
|
|
17825
|
-
return (hAsync(Host, { class: this.h.classes([ToastClass.root,
|
|
17969
|
+
return (hAsync(Host, { class: this.h.classes([ToastClass.root, 'gov-box-shadow--m']), "data-toast-id": this.toastId, gravity: this.gravity, position: this.position, variant: this.variant, type: this.type, style: { '--toast-duration': this.time + 'ms' } }, this.h.hasSlot('icon') && (hAsync("span", { class: ToastClass.icon }, hAsync("slot", { name: "icon" }))), hAsync("div", { class: ToastClass.content, "aria-live": "polite", role: "status" }, hAsync("slot", null)), hAsync("div", { class: ToastClass.close }, hAsync("gov-button", { size: "s", "wcag-label": this.wcagCloseLabel, variant: this.isSolid ? this.variant : 'secondary', inverse: this.isSolid, type: "base", "on-gov-click": this.onCloseHandler.bind(this) }, this.closeLabel ? this.closeLabel : hAsync("gov-icon", { name: "cross" }))), hAsync("div", { class: ToastClass.timer })));
|
|
17826
17970
|
}
|
|
17827
17971
|
onCloseHandler() {
|
|
17828
17972
|
this.destroy()
|
|
@@ -17830,7 +17974,7 @@ class GovToast {
|
|
|
17830
17974
|
.catch();
|
|
17831
17975
|
}
|
|
17832
17976
|
get isSolid() {
|
|
17833
|
-
return this.type ===
|
|
17977
|
+
return this.type === 'solid';
|
|
17834
17978
|
}
|
|
17835
17979
|
get isTimer() {
|
|
17836
17980
|
return Number.isInteger(this.time) && this.time > 0;
|
|
@@ -17843,7 +17987,7 @@ class GovToast {
|
|
|
17843
17987
|
const toast = document.querySelector(`[data-toast-id="${this.toastId}"]`);
|
|
17844
17988
|
if (toast) {
|
|
17845
17989
|
toast.classList.add(ToastClass.hidden);
|
|
17846
|
-
if (typeof toast.remove ===
|
|
17990
|
+
if (typeof toast.remove === 'function') {
|
|
17847
17991
|
toast.remove();
|
|
17848
17992
|
}
|
|
17849
17993
|
}
|
|
@@ -17857,7 +18001,7 @@ class GovToast {
|
|
|
17857
18001
|
"$flags$": 4,
|
|
17858
18002
|
"$tagName$": "gov-toast",
|
|
17859
18003
|
"$members$": {
|
|
17860
|
-
"variant": [
|
|
18004
|
+
"variant": [1],
|
|
17861
18005
|
"gravity": [1],
|
|
17862
18006
|
"position": [1],
|
|
17863
18007
|
"type": [1],
|
|
@@ -17872,16 +18016,15 @@ class GovToast {
|
|
|
17872
18016
|
}; }
|
|
17873
18017
|
}
|
|
17874
18018
|
|
|
17875
|
-
const
|
|
17876
|
-
const
|
|
17877
|
-
var
|
|
17878
|
-
(function (
|
|
17879
|
-
|
|
17880
|
-
|
|
17881
|
-
|
|
17882
|
-
|
|
17883
|
-
})(
|
|
17884
|
-
const Position = [Positions.TOP, Positions.RIGHT, Positions.BOTTOM, Positions.LEFT];
|
|
18019
|
+
const TooltipVariant = pick(Variants, ['PRIMARY', 'SECONDARY']);
|
|
18020
|
+
const TooltipSize = pick(Sizes, ['_S', '_M', '_L']);
|
|
18021
|
+
var TooltipPosition;
|
|
18022
|
+
(function (TooltipPosition) {
|
|
18023
|
+
TooltipPosition["TOP"] = "top";
|
|
18024
|
+
TooltipPosition["RIGHT"] = "right";
|
|
18025
|
+
TooltipPosition["BOTTOM"] = "bottom";
|
|
18026
|
+
TooltipPosition["LEFT"] = "left";
|
|
18027
|
+
})(TooltipPosition || (TooltipPosition = {}));
|
|
17885
18028
|
const TooltipClass = {
|
|
17886
18029
|
root: 'gov-tooltip',
|
|
17887
18030
|
};
|
|
@@ -17894,9 +18037,9 @@ const govTooltipCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{an
|
|
|
17894
18037
|
class GovTooltip {
|
|
17895
18038
|
constructor(hostRef) {
|
|
17896
18039
|
registerInstance(this, hostRef);
|
|
17897
|
-
this.variant =
|
|
17898
|
-
this.size =
|
|
17899
|
-
this.position =
|
|
18040
|
+
this.variant = 'primary';
|
|
18041
|
+
this.size = 'm';
|
|
18042
|
+
this.position = 'right';
|
|
17900
18043
|
this.message = undefined;
|
|
17901
18044
|
this.identifier = undefined;
|
|
17902
18045
|
this.icon = undefined;
|
|
@@ -17904,13 +18047,13 @@ class GovTooltip {
|
|
|
17904
18047
|
this.tooltipId = createID('GovTooltip');
|
|
17905
18048
|
}
|
|
17906
18049
|
validateVariant(newValue) {
|
|
17907
|
-
validateProp(
|
|
18050
|
+
validateProp(TooltipVariant, newValue, TooltipClass.root);
|
|
17908
18051
|
}
|
|
17909
18052
|
validateSize(newValue) {
|
|
17910
|
-
validateProp(
|
|
18053
|
+
validateProp(TooltipSize, newValue, TooltipClass.root);
|
|
17911
18054
|
}
|
|
17912
18055
|
validatePosition(newValue) {
|
|
17913
|
-
validateProp(
|
|
18056
|
+
validateProp(TooltipPosition, newValue, TooltipClass.root);
|
|
17914
18057
|
}
|
|
17915
18058
|
componentWillLoad() {
|
|
17916
18059
|
this.validateVariant(this.variant);
|
|
@@ -17961,17 +18104,17 @@ class GovTooltip {
|
|
|
17961
18104
|
top: trigger.top + document.documentElement.scrollTop,
|
|
17962
18105
|
};
|
|
17963
18106
|
const tltWidth = this.content.offsetWidth;
|
|
17964
|
-
if (this.position ===
|
|
18107
|
+
if (this.position === TooltipPosition.LEFT) {
|
|
17965
18108
|
if (offset + triggerPos.left < tltWidth) {
|
|
17966
|
-
this.position =
|
|
18109
|
+
this.position = TooltipPosition.TOP;
|
|
17967
18110
|
this.content.style.left = '0px';
|
|
17968
18111
|
this.content.style.width = window.innerWidth - triggerPos.left - offset + 'px';
|
|
17969
18112
|
this.content.style.transform = 'none';
|
|
17970
18113
|
}
|
|
17971
18114
|
}
|
|
17972
|
-
else if (this.position ===
|
|
18115
|
+
else if (this.position === TooltipPosition.RIGHT) {
|
|
17973
18116
|
if (windowWidth - (triggerPos.left + trgWidth) < tltWidth) {
|
|
17974
|
-
this.position =
|
|
18117
|
+
this.position = TooltipPosition.TOP;
|
|
17975
18118
|
this.content.style.right = '0px';
|
|
17976
18119
|
this.content.style.left = 'auto';
|
|
17977
18120
|
this.content.style.width = trgWidth + triggerPos.left + offset + 'px';
|
|
@@ -18032,8 +18175,8 @@ class GovTooltip {
|
|
|
18032
18175
|
"$flags$": 4,
|
|
18033
18176
|
"$tagName$": "gov-tooltip",
|
|
18034
18177
|
"$members$": {
|
|
18035
|
-
"variant": [
|
|
18036
|
-
"size": [
|
|
18178
|
+
"variant": [1],
|
|
18179
|
+
"size": [1],
|
|
18037
18180
|
"position": [1],
|
|
18038
18181
|
"message": [1],
|
|
18039
18182
|
"identifier": [1],
|
|
@@ -18085,6 +18228,8 @@ class GovTooltipContent {
|
|
|
18085
18228
|
}; }
|
|
18086
18229
|
}
|
|
18087
18230
|
|
|
18231
|
+
const WizardVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS']);
|
|
18232
|
+
const WizardSizes = pick(Sizes, ['_XS', '_S', '_M']);
|
|
18088
18233
|
const WizzardClass = {
|
|
18089
18234
|
root: 'gov-wizzard',
|
|
18090
18235
|
};
|
|
@@ -18106,13 +18251,13 @@ class GovWizzard {
|
|
|
18106
18251
|
constructor(hostRef) {
|
|
18107
18252
|
registerInstance(this, hostRef);
|
|
18108
18253
|
this.govChange = createEvent(this, "gov-change", 7);
|
|
18109
|
-
this.size =
|
|
18254
|
+
this.size = 'm';
|
|
18110
18255
|
this.wcagLabel = undefined;
|
|
18111
18256
|
this.wcagLabelledBy = undefined;
|
|
18112
18257
|
this.h = govHost(this.host);
|
|
18113
18258
|
}
|
|
18114
18259
|
validateSize(newValue) {
|
|
18115
|
-
validateProp(
|
|
18260
|
+
validateProp(WizardSizes, newValue, WizzardClass.root);
|
|
18116
18261
|
}
|
|
18117
18262
|
componentWillLoad() {
|
|
18118
18263
|
this.validateSize(this.size);
|
|
@@ -18150,7 +18295,7 @@ class GovWizzard {
|
|
|
18150
18295
|
"$flags$": 4,
|
|
18151
18296
|
"$tagName$": "gov-wizzard",
|
|
18152
18297
|
"$members$": {
|
|
18153
|
-
"size": [
|
|
18298
|
+
"size": [1],
|
|
18154
18299
|
"wcagLabel": [1, "wcag-label"],
|
|
18155
18300
|
"wcagLabelledBy": [1, "wcag-labelled-by"],
|
|
18156
18301
|
"validateWcag": [64]
|
|
@@ -18161,7 +18306,7 @@ class GovWizzard {
|
|
|
18161
18306
|
}; }
|
|
18162
18307
|
}
|
|
18163
18308
|
|
|
18164
|
-
const govWizzardItemCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-wizzard-item{position:relative;display:block;width:100%;margin-bottom:1rem;background:var(--gov-wizzard-bg-color, var(--gov-color-neutral-white))}.gov-wizzard-item__header{position:relative;width:100%}.gov-wizzard-item__arrow{flex:0 0 auto;width:0.75rem;height:0.75rem}.gov-wizzard-item__title{margin:0;padding:0;font-family:var(--gov-font-family, \"Roboto\", sans-serif);font-weight:400;box-sizing:border-box;display:flex;gap:1rem;align-items:baseline}.gov-wizzard-item__prefix{display:flex;flex:0 0 auto;justify-content:center;align-items:center;border-radius:50%;text-align:center}.gov-wizzard-item__prefix .gov-icon{width:45%;height:45%}.gov-wizzard-item__name{display:flex;flex-direction:column}.gov-wizzard-item__label{display:flex;gap:0.5rem;align-items:center}.gov-wizzard-item__annot{color:var(--gov-color-secondary)}.gov-wizzard-item__content>*:last-child{margin-bottom:0}.gov-wizzard-item[variant=primary] .gov-wizzard-item__header{color:var(--gov-wizzard-primary-color, var(--gov-color-primary-800))}.gov-wizzard-item[variant=primary] .gov-wizzard-item__prefix{background:var(--gov-wizzard-primary-indicator-bg, var(--gov-color-primary-300));color:var(--gov-wizzard-primary-indicator-color, var(--gov-color-primary-800))}.gov-wizzard-item[variant=secondary] .gov-wizzard-item__header{color:var(--gov-wizzard-secondary-color, var(--gov-color-secondary-700))}.gov-wizzard-item[variant=secondary] .gov-wizzard-item__prefix{background:var(--gov-wizzard-secondary-indicator-bg, var(--gov-color-secondary-400));color:var(--gov-wizzard-secondary-indicator-color, var(--gov-color-secondary-700))}.gov-wizzard-item[variant=success] .gov-wizzard-item__header{color:var(--gov-wizzard-success-color, var(--gov-color-success-500))}.gov-wizzard-item[variant=success] .gov-wizzard-item__prefix{background:var(--gov-wizzard-success-indicator-bg, var(--gov-color-success));color:var(--gov-wizzard-success-indicator-color, var(--gov-color-neutral-white))}.gov-wizzard-item[variant=error] .gov-wizzard-item__header{color:var(--gov-wizzard-error-color, var(--gov-color-error-500))}.gov-wizzard-item[variant=error] .gov-wizzard-item__prefix{background:var(--gov-wizzard-error-indicator-bg, var(--gov-color-error));color:var(--gov-wizzard-error-indicator-color, var(--gov-color-neutral-white))}.gov-wizzard-item[variant=warning] .gov-wizzard-item__header{color:var(--gov-wizzard-warning-color, var(--gov-color-warning-500))}.gov-wizzard-item[variant=warning] .gov-wizzard-item__prefix{background:var(--gov-wizzard-warning-indicator-bg, var(--gov-color-warning));color:var(--gov-wizzard-warning-indicator-color, var(--gov-color-neutral-white))}.gov-wizzard-item__header{gap:1rem;padding:1rem;border-radius:0;text-align:left;transition:150ms linear color}.gov-wizzard-item__header:focus{outline:none}.gov-wizzard-item__header:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-wizzard-item__header[aria-expanded=true] .gov-icon{transform:scale(-1)}.gov-wizzard-item[size=xs] .gov-wizzard-item__title,.gov-wizzard-item[size=s] .gov-wizzard-item__title,.gov-wizzard-item[size=m] .gov-wizzard-item__title{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-wizzard-item[size=xs] .gov-wizzard-item__annot,.gov-wizzard-item[size=s] .gov-wizzard-item__annot,.gov-wizzard-item[size=m] .gov-wizzard-item__annot{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing)}.gov-wizzard-item[size=xs] .gov-wizzard-item__prefix,.gov-wizzard-item[size=s] .gov-wizzard-item__prefix,.gov-wizzard-item[size=m] .gov-wizzard-item__prefix{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);width:var(--gov-wizzard-xs-indicator-size, 1.5rem);height:var(--gov-wizzard-xs-indicator-size, 1.5rem)}.gov-wizzard-item[size=xs] .gov-wizzard-item__content,.gov-wizzard-item[size=s] .gov-wizzard-item__content,.gov-wizzard-item[size=m] .gov-wizzard-item__content{padding:var(--gov-wizzard-
|
|
18309
|
+
const govWizzardItemCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-wizzard-item{position:relative;display:block;width:100%;margin-bottom:1rem;background:var(--gov-wizzard-bg-color, var(--gov-color-neutral-white))}.gov-wizzard-item__header{position:relative;width:100%}.gov-wizzard-item__arrow{flex:0 0 auto;width:0.75rem;height:0.75rem}.gov-wizzard-item__title{margin:0;padding:0;font-family:var(--gov-font-family, \"Roboto\", sans-serif);font-weight:400;box-sizing:border-box;display:flex;gap:1rem;align-items:baseline}.gov-wizzard-item__prefix{display:flex;flex:0 0 auto;justify-content:center;align-items:center;border-radius:50%;text-align:center}.gov-wizzard-item__prefix .gov-icon{width:45%;height:45%}.gov-wizzard-item__name{display:flex;flex-direction:column}.gov-wizzard-item__label{display:flex;gap:0.5rem;align-items:center}.gov-wizzard-item__annot{color:var(--gov-color-secondary)}.gov-wizzard-item__content>*:last-child{margin-bottom:0}.gov-wizzard-item[variant=primary] .gov-wizzard-item__header{color:var(--gov-wizzard-primary-color, var(--gov-color-primary-800))}.gov-wizzard-item[variant=primary] .gov-wizzard-item__prefix{background:var(--gov-wizzard-primary-indicator-bg, var(--gov-color-primary-300));color:var(--gov-wizzard-primary-indicator-color, var(--gov-color-primary-800))}.gov-wizzard-item[variant=secondary] .gov-wizzard-item__header{color:var(--gov-wizzard-secondary-color, var(--gov-color-secondary-700))}.gov-wizzard-item[variant=secondary] .gov-wizzard-item__prefix{background:var(--gov-wizzard-secondary-indicator-bg, var(--gov-color-secondary-400));color:var(--gov-wizzard-secondary-indicator-color, var(--gov-color-secondary-700))}.gov-wizzard-item[variant=success] .gov-wizzard-item__header{color:var(--gov-wizzard-success-color, var(--gov-color-success-500))}.gov-wizzard-item[variant=success] .gov-wizzard-item__prefix{background:var(--gov-wizzard-success-indicator-bg, var(--gov-color-success));color:var(--gov-wizzard-success-indicator-color, var(--gov-color-neutral-white))}.gov-wizzard-item[variant=error] .gov-wizzard-item__header{color:var(--gov-wizzard-error-color, var(--gov-color-error-500))}.gov-wizzard-item[variant=error] .gov-wizzard-item__prefix{background:var(--gov-wizzard-error-indicator-bg, var(--gov-color-error));color:var(--gov-wizzard-error-indicator-color, var(--gov-color-neutral-white))}.gov-wizzard-item[variant=warning] .gov-wizzard-item__header{color:var(--gov-wizzard-warning-color, var(--gov-color-warning-500))}.gov-wizzard-item[variant=warning] .gov-wizzard-item__prefix{background:var(--gov-wizzard-warning-indicator-bg, var(--gov-color-warning));color:var(--gov-wizzard-warning-indicator-color, var(--gov-color-neutral-white))}.gov-wizzard-item__header{gap:1rem;padding:1rem;border-radius:0;text-align:left;transition:150ms linear color}.gov-wizzard-item__header:focus{outline:none}.gov-wizzard-item__header:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-wizzard-item__header[aria-expanded=true] .gov-wizzard-item__label .gov-icon{transform:scale(-1)}.gov-wizzard-item[size=xs] .gov-wizzard-item__title,.gov-wizzard-item[size=s] .gov-wizzard-item__title,.gov-wizzard-item[size=m] .gov-wizzard-item__title{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-wizzard-item[size=xs] .gov-wizzard-item__annot,.gov-wizzard-item[size=s] .gov-wizzard-item__annot,.gov-wizzard-item[size=m] .gov-wizzard-item__annot{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing)}.gov-wizzard-item[size=xs] .gov-wizzard-item__prefix,.gov-wizzard-item[size=s] .gov-wizzard-item__prefix,.gov-wizzard-item[size=m] .gov-wizzard-item__prefix{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);width:var(--gov-wizzard-xs-indicator-size, 1.5rem);height:var(--gov-wizzard-xs-indicator-size, 1.5rem)}.gov-wizzard-item[size=xs] .gov-wizzard-item__content,.gov-wizzard-item[size=s] .gov-wizzard-item__content,.gov-wizzard-item[size=m] .gov-wizzard-item__content{padding:var(--gov-wizzard-content-padding, 0rem 1rem 1rem 1rem)}@media not all and (pointer: coarse){.gov-wizzard-item[variant=primary][collapsible=\"\"] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=primary][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=primary][collapsible=\"1\"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-primary-hover-color, var(--gov-color-primary-900))}}@media not all and (pointer: coarse){.gov-wizzard-item[variant=secondary][collapsible=\"\"] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=secondary][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=secondary][collapsible=\"1\"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-secondary-hover-color, var(--gov-color-secondary-800))}}@media not all and (pointer: coarse){.gov-wizzard-item[variant=success][collapsible=\"\"] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=success][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=success][collapsible=\"1\"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-success-hover-color, var(--gov-color-success-600))}}@media not all and (pointer: coarse){.gov-wizzard-item[variant=error][collapsible=\"\"] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=error][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=error][collapsible=\"1\"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-error-hover-color, var(--gov-color-error-600))}}@media not all and (pointer: coarse){.gov-wizzard-item[variant=warning][collapsible=\"\"] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=warning][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=warning][collapsible=\"1\"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-warning-hover-color, var(--gov-color-warning-600))}}button.gov-wizzard-item__header{display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;justify-content:flex-start;text-align:left}button.gov-wizzard-item__header:focus{outline:none}@media (min-width: 30em){.gov-wizzard-item[size=s] .gov-wizzard-item__title,.gov-wizzard-item[size=m] .gov-wizzard-item__title{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing)}.gov-wizzard-item[size=s] .gov-wizzard-item__prefix,.gov-wizzard-item[size=m] .gov-wizzard-item__prefix{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);width:var(--gov-wizzard-s-indicator-size, 2rem);height:var(--gov-wizzard-s-indicator-size, 2rem)}}@media (min-width: 48em){.gov-wizzard-item[size=m] .gov-wizzard-item__title{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing)}.gov-wizzard-item[size=m] .gov-wizzard-item__prefix{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);width:var(--gov-wizzard-m-indicator-size, 2.5rem);height:var(--gov-wizzard-m-indicator-size, 2.5rem)}.gov-wizzard-item[size=xs] .gov-wizzard-item__content{padding:var(--gov-wizzard-xs-content-padding, 0rem 1rem 1rem 3.5rem)}.gov-wizzard-item[size=s] .gov-wizzard-item__content{padding:var(--gov-wizzard-s-content-padding, 0rem 1rem 1rem 4rem)}.gov-wizzard-item[size=m] .gov-wizzard-item__content{padding:var(--gov-wizzard-m-content-padding, 0rem 1rem 1rem 4.5rem)}}";
|
|
18165
18310
|
|
|
18166
18311
|
var Tags;
|
|
18167
18312
|
(function (Tags) {
|
|
@@ -18172,8 +18317,8 @@ class GovWizzardItem {
|
|
|
18172
18317
|
constructor(hostRef) {
|
|
18173
18318
|
registerInstance(this, hostRef);
|
|
18174
18319
|
this.govChange = createEvent(this, "gov-change", 7);
|
|
18175
|
-
this.variant =
|
|
18176
|
-
this.size =
|
|
18320
|
+
this.variant = 'primary';
|
|
18321
|
+
this.size = 'm';
|
|
18177
18322
|
this.identifier = undefined;
|
|
18178
18323
|
this.collapsible = false;
|
|
18179
18324
|
this.annotation = undefined;
|
|
@@ -18200,7 +18345,7 @@ class GovWizzardItem {
|
|
|
18200
18345
|
}
|
|
18201
18346
|
}
|
|
18202
18347
|
validateVariant(newValue) {
|
|
18203
|
-
validateProp(
|
|
18348
|
+
validateProp(WizardVariants, newValue, WizzardItemClass.root);
|
|
18204
18349
|
}
|
|
18205
18350
|
emmitChange() {
|
|
18206
18351
|
this.govChange.emit({ open: this.isExpandedState, element: this.host });
|
|
@@ -18215,9 +18360,7 @@ class GovWizzardItem {
|
|
|
18215
18360
|
const triggerId = this.identifier || this.triggerId;
|
|
18216
18361
|
const LabelTag = this.labelTag;
|
|
18217
18362
|
const Tag = this.collapsible ? Tags.BUTTON : Tags.DIV;
|
|
18218
|
-
const label = (hAsync(LabelTag, { class: WizzardItemClass.title }, this.h.hasSlot('prefix') && (hAsync("span", { class: WizzardItemClass.prefix }, hAsync("slot", { name: "prefix" }))), hAsync("span", { class: WizzardItemClass.name }, hAsync("span", { class: WizzardItemClass.label }, hAsync("span", null, this.label), this.collapsible &&
|
|
18219
|
-
hAsync("gov-icon", { class: WizzardItemClass.arrow, name: "arrow-down" })), this.annotation &&
|
|
18220
|
-
hAsync("span", { class: WizzardItemClass.annot }, this.annotation))));
|
|
18363
|
+
const label = (hAsync(LabelTag, { class: WizzardItemClass.title }, this.h.hasSlot('prefix') && (hAsync("span", { class: WizzardItemClass.prefix }, hAsync("slot", { name: "prefix" }))), hAsync("span", { class: WizzardItemClass.name }, hAsync("span", { class: WizzardItemClass.label }, hAsync("span", null, this.label), this.collapsible && hAsync("gov-icon", { class: WizzardItemClass.arrow, name: "arrow-down" })), this.annotation && hAsync("span", { class: WizzardItemClass.annot }, this.annotation))));
|
|
18221
18364
|
return (hAsync(Host, { class: this.h.classes(WizzardItemClass.root), variant: this.variant, size: this.size, role: "listitem", collapsible: this.collapsible }, this.collapsible ? (hAsync(Tag, { id: triggerId, class: WizzardItemClass.header, "aria-expanded": booleanString(this.isExpandedState), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: () => (this.collapsible ? this.toggle() : false) }, label)) : (hAsync("div", { class: WizzardItemClass.header }, label)), this.collapsible ? (hAsync("div", { class: WizzardItemClass.content, id: this.contentId, "aria-hidden": booleanString(!this.isExpandedState), hidden: !this.isExpandedState, "aria-labelledby": triggerId }, hAsync("slot", null))) : (hAsync("div", { class: WizzardItemClass.content, "aria-hidden": booleanString(!this.isExpandedState), hidden: !this.isExpandedState }, hAsync("slot", null)))));
|
|
18222
18365
|
}
|
|
18223
18366
|
/**
|
|
@@ -18259,7 +18402,7 @@ class GovWizzardItem {
|
|
|
18259
18402
|
"$tagName$": "gov-wizzard-item",
|
|
18260
18403
|
"$members$": {
|
|
18261
18404
|
"variant": [1],
|
|
18262
|
-
"size": [
|
|
18405
|
+
"size": [1],
|
|
18263
18406
|
"identifier": [1],
|
|
18264
18407
|
"collapsible": [4],
|
|
18265
18408
|
"annotation": [1],
|
|
@@ -18312,8 +18455,7 @@ registerComponents([
|
|
|
18312
18455
|
GovGridItem,
|
|
18313
18456
|
GovIcon,
|
|
18314
18457
|
GovLayout,
|
|
18315
|
-
|
|
18316
|
-
GovLayoutContent,
|
|
18458
|
+
GovLayoutColumn,
|
|
18317
18459
|
GovLoading,
|
|
18318
18460
|
GovMessage,
|
|
18319
18461
|
GovModal,
|