@gov-design-system-ce/components 4.0.8-rc23 → 4.1.0-rc03
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/accessibility-c475826b.js +15 -0
- package/dist/cjs/accessibility-c475826b.js.map +1 -0
- package/dist/cjs/attribute-06dc5228.js +102 -0
- package/dist/cjs/attribute-06dc5228.js.map +1 -0
- package/dist/cjs/colors-976f6dff.js +20 -0
- package/dist/cjs/colors-976f6dff.js.map +1 -0
- package/dist/cjs/constants-43c0c51b.js +27 -0
- package/dist/cjs/constants-43c0c51b.js.map +1 -0
- package/dist/cjs/constants-441d1af4.js +27 -0
- package/dist/cjs/constants-441d1af4.js.map +1 -0
- package/dist/cjs/constants-47ba678b.js +18 -0
- package/dist/cjs/constants-47ba678b.js.map +1 -0
- package/dist/cjs/constants-5037cdc9.js +28 -0
- package/dist/cjs/constants-5037cdc9.js.map +1 -0
- package/dist/cjs/constants-861428a4.js +36 -0
- package/dist/cjs/constants-861428a4.js.map +1 -0
- package/dist/cjs/constants-bd0d66ac.js +17 -0
- package/dist/cjs/constants-bd0d66ac.js.map +1 -0
- package/dist/cjs/constants-e1bbb053.js +27 -0
- package/dist/cjs/constants-e1bbb053.js.map +1 -0
- package/dist/cjs/constants-e2807da6.js +36 -0
- package/dist/cjs/constants-e2807da6.js.map +1 -0
- package/dist/cjs/core.cjs.js +2 -2
- package/dist/cjs/form-c1aec07a.js +157 -0
- package/dist/cjs/form-c1aec07a.js.map +1 -0
- package/dist/cjs/gov-accordion-item.cjs.entry.js +26 -53
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +12 -35
- package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +28 -33
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js +22 -20
- package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +19 -22
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-button.cjs.entry.js +41 -54
- package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-card.cjs.entry.js +20 -60
- package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-chip.cjs.entry.js +47 -33
- package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-container.cjs.entry.js +3 -7
- package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-control-group.cjs.entry.js +13 -17
- package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-cookiebar.cjs.entry.js +6 -11
- package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-dialog.cjs.entry.js +108 -0
- package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-dropdown.cjs.entry.js +33 -29
- package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js +20 -9
- package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-error-code.cjs.entry.js +3 -9
- package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +26 -23
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +8 -8
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +33 -31
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +11 -15
- package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +32 -37
- package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-group.cjs.entry.js +6 -10
- package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-input_2.cjs.entry.js +284 -0
- package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-label.cjs.entry.js +2 -6
- package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +38 -46
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -6
- package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +8 -8
- package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +32 -32
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +8 -11
- package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +31 -44
- package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +33 -32
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-grid-item.cjs.entry.js +3 -7
- package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-grid.cjs.entry.js +3 -7
- package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-icon.cjs.entry.js +43 -18
- package/dist/cjs/gov-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-infobar.cjs.entry.js +40 -47
- package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-layout-column.cjs.entry.js +3 -7
- package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-layout.cjs.entry.js +3 -7
- package/dist/cjs/gov-layout.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-loading.cjs.entry.js +19 -7
- package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-message.cjs.entry.js +18 -18
- package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-pagination.cjs.entry.js +33 -37
- package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +6 -10
- package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js +18 -47
- package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-stepper.cjs.entry.js +12 -12
- package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tabs-item.cjs.entry.js +9 -10
- package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tabs.cjs.entry.js +45 -45
- package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tag.cjs.entry.js +23 -21
- package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-theme-switch.cjs.entry.js +73 -0
- package/dist/cjs/gov-theme-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tile.cjs.entry.js +13 -11
- package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tiles.cjs.entry.js +4 -12
- package/dist/cjs/gov-tiles.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-toast.cjs.entry.js +38 -27
- package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +6 -10
- package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tooltip.cjs.entry.js +17 -21
- package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizard-item.cjs.entry.js +21 -44
- package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizard.cjs.entry.js +16 -15
- package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
- package/dist/cjs/gov.log-1e8bab6e.js +21 -0
- package/dist/cjs/gov.log-1e8bab6e.js.map +1 -0
- package/dist/cjs/helpers-2ee3c9e6.js.map +1 -1
- package/dist/cjs/index-1af4880c.js +2029 -0
- package/dist/cjs/index-1af4880c.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/props-b8a955b2.js +16 -0
- package/dist/cjs/props-b8a955b2.js.map +1 -0
- package/dist/cjs/stencil.utils-182382ee.js +11 -0
- package/dist/cjs/stencil.utils-182382ee.js.map +1 -0
- package/dist/cjs/string.utils-2335838f.js +24 -0
- package/dist/cjs/string.utils-2335838f.js.map +1 -0
- package/dist/cjs/template-b070338f.js +133 -0
- package/dist/cjs/template-b070338f.js.map +1 -0
- package/dist/cjs/wcag-31089f70.js +56 -0
- package/dist/cjs/wcag-31089f70.js.map +1 -0
- package/dist/cjs/win-587f4614.js +40 -0
- package/dist/cjs/win-587f4614.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -9
- package/dist/collection/components/gov-accordion/constants.js +4 -6
- package/dist/collection/components/gov-accordion/constants.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +25 -117
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion.js +6 -117
- package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.css +19 -202
- package/dist/collection/components/gov-attachments/gov-attachments-item.js +14 -14
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments.js +1 -11
- package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
- package/dist/collection/components/gov-backdrop/constants.js +1 -1
- package/dist/collection/components/gov-backdrop/constants.js.map +1 -1
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +38 -26
- package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +20 -31
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
- package/dist/collection/components/gov-button/button/constants.js +9 -10
- package/dist/collection/components/gov-button/button/constants.js.map +1 -1
- package/dist/collection/components/gov-button/button/gov-button.js +53 -323
- package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +36 -39
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -1
- package/dist/collection/components/gov-card/constants.js +0 -1
- package/dist/collection/components/gov-card/constants.js.map +1 -1
- package/dist/collection/components/gov-card/gov-card.js +28 -152
- package/dist/collection/components/gov-card/gov-card.js.map +1 -1
- package/dist/collection/components/gov-chip/constants.js +8 -0
- package/dist/collection/components/gov-chip/constants.js.map +1 -1
- package/dist/collection/components/gov-chip/gov-chip.js +80 -138
- package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
- package/dist/collection/components/gov-container/gov-container.js +1 -11
- package/dist/collection/components/gov-container/gov-container.js.map +1 -1
- package/dist/collection/components/gov-control-group/constants.js +2 -2
- package/dist/collection/components/gov-control-group/constants.js.map +1 -1
- package/dist/collection/components/gov-control-group/gov-control-group.js +33 -25
- package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
- package/dist/collection/components/gov-cookiebar/constants.js +3 -4
- package/dist/collection/components/gov-cookiebar/constants.js.map +1 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +2 -12
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
- package/dist/collection/components/gov-dialog/constants.js +12 -0
- package/dist/collection/components/gov-dialog/constants.js.map +1 -0
- package/dist/collection/components/gov-dialog/gov-dialog.js +318 -0
- package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -0
- package/dist/collection/components/gov-empty/constants.js +3 -2
- package/dist/collection/components/gov-empty/constants.js.map +1 -1
- package/dist/collection/components/gov-empty/gov-empty.js +41 -8
- package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
- package/dist/collection/components/gov-error-code/constants.js +0 -2
- package/dist/collection/components/gov-error-code/constants.js.map +1 -1
- package/dist/collection/components/gov-error-code/gov-error-code.js +1 -11
- package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/constants.js +1 -3
- package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +25 -101
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/constants.js +2 -1
- package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +48 -81
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
- package/dist/collection/components/gov-form/control/gov-form-control.js +4 -14
- package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
- package/dist/collection/components/gov-form/file/constants.js +0 -3
- package/dist/collection/components/gov-form/file/constants.js.map +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js +32 -89
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-group.css +38 -197
- package/dist/collection/components/gov-form/group/gov-form-group.js +1 -11
- package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
- package/dist/collection/components/gov-form/input/constants.js +1 -3
- package/dist/collection/components/gov-form/input/constants.js.map +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.js +45 -153
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
- package/dist/collection/components/gov-form/label/gov-form-label.js +1 -11
- package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
- package/dist/collection/components/gov-form/message/constants.js +4 -3
- package/dist/collection/components/gov-form/message/constants.js.map +1 -1
- package/dist/collection/components/gov-form/message/gov-form-message.js +42 -27
- package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/constants.js +1 -3
- package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +31 -138
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -11
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -1
- package/dist/collection/components/gov-form/radio/constants.js +1 -2
- package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +28 -81
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
- package/dist/collection/components/gov-form/search/constants.js +4 -4
- package/dist/collection/components/gov-form/search/constants.js.map +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js +34 -19
- package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
- package/dist/collection/components/gov-form/select/constants.js +1 -3
- package/dist/collection/components/gov-form/select/constants.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.js +24 -171
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
- package/dist/collection/components/gov-form/switch/constants.js +1 -0
- package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +30 -82
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
- package/dist/collection/components/gov-grid/gov-grid-item.js +1 -11
- package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
- package/dist/collection/components/gov-grid/gov-grid.js +1 -11
- package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
- package/dist/collection/components/gov-icon/constants.js +15 -0
- package/dist/collection/components/gov-icon/constants.js.map +1 -1
- package/dist/collection/components/gov-icon/gov-icon.js +52 -23
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
- package/dist/collection/components/gov-icon/helpers.js.map +1 -1
- package/dist/collection/components/gov-infobar/constants.js +7 -4
- package/dist/collection/components/gov-infobar/constants.js.map +1 -1
- package/dist/collection/components/gov-infobar/gov-infobar.js +59 -106
- package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
- package/dist/collection/components/gov-layout/gov-layout-column.js +1 -11
- package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -1
- package/dist/collection/components/gov-layout/gov-layout.js +1 -11
- package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
- package/dist/collection/components/gov-loading/loading/constants.js +3 -0
- package/dist/collection/components/gov-loading/loading/constants.js.map +1 -1
- package/dist/collection/components/gov-loading/loading/gov-loading.js +41 -9
- package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
- package/dist/collection/components/gov-loading/skeleton/constants.js +5 -5
- package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -1
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +61 -99
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
- package/dist/collection/components/gov-message/constants.js +7 -4
- package/dist/collection/components/gov-message/constants.js.map +1 -1
- package/dist/collection/components/gov-message/gov-message.js +39 -24
- package/dist/collection/components/gov-message/gov-message.js.map +1 -1
- package/dist/collection/components/gov-pagination/constants.js +2 -2
- package/dist/collection/components/gov-pagination/constants.js.map +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.js +40 -122
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js +1 -11
- package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
- package/dist/collection/components/gov-stepper/constants.js +5 -8
- package/dist/collection/components/gov-stepper/constants.js.map +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper-item.js +20 -138
- package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper.js +6 -12
- package/dist/collection/components/gov-stepper/gov-stepper.js.map +1 -1
- package/dist/collection/components/gov-tabs/constants.js +4 -2
- package/dist/collection/components/gov-tabs/constants.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +38 -12
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js +80 -112
- package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -1
- package/dist/collection/components/gov-tag/constants.js +8 -0
- package/dist/collection/components/gov-tag/constants.js.map +1 -1
- package/dist/collection/components/gov-tag/gov-tag.js +47 -52
- package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
- package/dist/collection/components/gov-theme-switch/constants.js +5 -0
- package/dist/collection/components/gov-theme-switch/constants.js.map +1 -0
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +82 -0
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -0
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.types.js +7 -0
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.types.js.map +1 -0
- package/dist/collection/components/gov-tile/constants.js +7 -4
- package/dist/collection/components/gov-tile/constants.js.map +1 -1
- package/dist/collection/components/gov-tile/container/gov-tiles.js +5 -38
- package/dist/collection/components/gov-tile/container/gov-tiles.js.map +1 -1
- package/dist/collection/components/gov-tile/gov-tile.js +64 -12
- package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
- package/dist/collection/components/gov-toast/constants.js +7 -4
- package/dist/collection/components/gov-toast/constants.js.map +1 -1
- package/dist/collection/components/gov-toast/gov-toast.js +43 -35
- package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
- package/dist/collection/components/gov-tooltip/constants.js +2 -2
- package/dist/collection/components/gov-tooltip/constants.js.map +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +10 -20
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +17 -27
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
- package/dist/collection/components/gov-wizard/constants.js +6 -8
- package/dist/collection/components/gov-wizard/constants.js.map +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.js +22 -108
- package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard.js +8 -14
- package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -1
- package/dist/collection/core/constants/colors.js +17 -0
- package/dist/collection/core/constants/colors.js.map +1 -0
- package/dist/collection/core/constants/tokens.js +15 -13
- package/dist/collection/core/constants/tokens.js.map +1 -1
- package/dist/collection/helpers/Accessibility/accessibility.js +10 -0
- package/dist/collection/helpers/Accessibility/accessibility.js.map +1 -0
- package/dist/collection/helpers/Accessibility/attributes.js +54 -0
- package/dist/collection/helpers/Accessibility/attributes.js.map +1 -0
- package/dist/collection/helpers/Dom/attribute.js +41 -0
- package/dist/collection/helpers/Dom/attribute.js.map +1 -0
- package/dist/collection/helpers/Dom/template.js +2 -1
- package/dist/collection/helpers/Dom/template.js.map +1 -1
- package/dist/collection/helpers/Log/gov.log.js +6 -6
- package/dist/collection/helpers/Log/gov.log.js.map +1 -1
- package/dist/collection/helpers/Validate/wcag.js +4 -3
- package/dist/collection/helpers/Validate/wcag.js.map +1 -1
- package/dist/collection/pages/Accordion.js +111 -50
- package/dist/collection/pages/Accordion.js.map +1 -1
- package/dist/collection/pages/Breadcrumbs.js +27 -2
- package/dist/collection/pages/Breadcrumbs.js.map +1 -1
- package/dist/collection/pages/Button.js +616 -530
- package/dist/collection/pages/Button.js.map +1 -1
- package/dist/collection/pages/Card.js +39 -66
- package/dist/collection/pages/Card.js.map +1 -1
- package/dist/collection/pages/Chip.js +134 -253
- package/dist/collection/pages/Chip.js.map +1 -1
- package/dist/collection/pages/Container.js +6 -0
- package/dist/collection/pages/Container.js.map +1 -1
- package/dist/collection/pages/ControlGroup.js +53 -218
- package/dist/collection/pages/ControlGroup.js.map +1 -1
- package/dist/collection/pages/CookieConsent.js +29 -0
- package/dist/collection/pages/CookieConsent.js.map +1 -0
- package/dist/collection/pages/Dialog.js +56 -0
- package/dist/collection/pages/Dialog.js.map +1 -0
- package/dist/collection/pages/Empty.js +26 -31
- package/dist/collection/pages/Empty.js.map +1 -1
- package/dist/collection/pages/Error.js +7 -5
- package/dist/collection/pages/Error.js.map +1 -1
- package/dist/collection/pages/FormMessage.js +10 -10
- package/dist/collection/pages/FormMessage.js.map +1 -1
- package/dist/collection/pages/Forms.js +1953 -1527
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/collection/pages/Home.js +40 -65
- package/dist/collection/pages/Home.js.map +1 -1
- package/dist/collection/pages/Icon.js +22 -0
- package/dist/collection/pages/Icon.js.map +1 -0
- package/dist/collection/pages/Infobar.js +83 -83
- package/dist/collection/pages/Infobar.js.map +1 -1
- package/dist/collection/pages/Layout.js +16 -16
- package/dist/collection/pages/Layout.js.map +1 -1
- package/dist/collection/pages/Loading.js +70 -80
- package/dist/collection/pages/Loading.js.map +1 -1
- package/dist/collection/pages/Message.js +43 -55
- package/dist/collection/pages/Message.js.map +1 -1
- package/dist/collection/pages/Pagination.js +6 -6
- package/dist/collection/pages/Pagination.js.map +1 -1
- package/dist/collection/pages/Stepper.js +45 -30
- package/dist/collection/pages/Stepper.js.map +1 -1
- package/dist/collection/pages/Tabs.js +261 -19
- package/dist/collection/pages/Tabs.js.map +1 -1
- package/dist/collection/pages/Tag.js +47 -127
- package/dist/collection/pages/Tag.js.map +1 -1
- package/dist/collection/pages/Tiles.js +319 -110
- package/dist/collection/pages/Tiles.js.map +1 -1
- package/dist/collection/pages/ToastMessage.js +5 -5
- package/dist/collection/pages/ToastMessage.js.map +1 -1
- package/dist/collection/pages/ToastMessageCountdown.js +5 -5
- package/dist/collection/pages/ToastMessageCountdown.js.map +1 -1
- package/dist/collection/pages/Tooltip.js +8 -8
- package/dist/collection/pages/Tooltip.js.map +1 -1
- package/dist/collection/pages/Wizard.js +38 -20
- package/dist/collection/pages/Wizard.js.map +1 -1
- package/dist/collection/utils/stencil.utils.js +2 -2
- package/dist/collection/utils/stencil.utils.js.map +1 -1
- package/dist/collection/utils/string.utils.js +1 -1
- package/dist/collection/utils/string.utils.js.map +1 -1
- package/dist/components/gov-accordion-item.js +1 -1
- package/dist/components/gov-accordion-item.js.map +1 -1
- package/dist/components/gov-accordion.js +1 -1
- package/dist/components/gov-accordion.js.map +1 -1
- package/dist/components/gov-attachments-item.js +1 -1
- package/dist/components/gov-attachments.js +1 -1
- package/dist/components/gov-backdrop.js +1 -1
- package/dist/components/gov-breadcrumbs.js +1 -1
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button.js +1 -1
- package/dist/components/gov-card.js +1 -1
- package/dist/components/gov-card.js.map +1 -1
- package/dist/components/gov-chip.js +1 -1
- package/dist/components/gov-container.js +1 -1
- package/dist/components/gov-container.js.map +1 -1
- package/dist/components/gov-control-group.js +1 -1
- package/dist/components/gov-control-group.js.map +1 -1
- package/dist/components/gov-cookiebar.js +1 -1
- package/dist/components/gov-cookiebar.js.map +1 -1
- package/dist/components/gov-dialog.d.ts +11 -0
- package/dist/components/gov-dialog.js +2 -0
- package/dist/components/gov-dialog.js.map +1 -0
- package/dist/components/gov-dropdown.js +1 -1
- package/dist/components/gov-dropdown.js.map +1 -1
- package/dist/components/gov-empty.js +1 -1
- package/dist/components/gov-empty.js.map +1 -1
- package/dist/components/gov-error-code.js +1 -1
- package/dist/components/gov-error-code.js.map +1 -1
- package/dist/components/gov-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox-group.js +1 -1
- package/dist/components/gov-form-checkbox-group.js.map +1 -1
- package/dist/components/gov-form-checkbox.js +1 -1
- package/dist/components/gov-form-checkbox.js.map +1 -1
- package/dist/components/gov-form-control.js +1 -1
- package/dist/components/gov-form-control.js.map +1 -1
- package/dist/components/gov-form-file.js +1 -1
- package/dist/components/gov-form-file.js.map +1 -1
- package/dist/components/gov-form-group.js +1 -1
- package/dist/components/gov-form-group.js.map +1 -1
- package/dist/components/gov-form-input.js +1 -1
- package/dist/components/gov-form-label.js +1 -1
- package/dist/components/gov-form-label.js.map +1 -1
- package/dist/components/gov-form-message.js +1 -1
- package/dist/components/gov-form-multi-select.js +1 -1
- package/dist/components/gov-form-multi-select.js.map +1 -1
- package/dist/components/gov-form-password-power.js +1 -1
- package/dist/components/gov-form-password-power.js.map +1 -1
- package/dist/components/gov-form-radio-group.js +1 -1
- package/dist/components/gov-form-radio-group.js.map +1 -1
- package/dist/components/gov-form-radio.js +1 -1
- package/dist/components/gov-form-radio.js.map +1 -1
- package/dist/components/gov-form-search.js +1 -1
- package/dist/components/gov-form-search.js.map +1 -1
- package/dist/components/gov-form-select.js +1 -1
- package/dist/components/gov-form-switch.js +1 -1
- package/dist/components/gov-form-switch.js.map +1 -1
- package/dist/components/gov-grid-item.js +1 -1
- package/dist/components/gov-grid-item.js.map +1 -1
- package/dist/components/gov-grid.js +1 -1
- package/dist/components/gov-grid.js.map +1 -1
- package/dist/components/gov-icon.js +1 -1
- package/dist/components/gov-infobar.js +1 -1
- package/dist/components/gov-infobar.js.map +1 -1
- package/dist/components/gov-layout-column.js +1 -1
- package/dist/components/gov-layout-column.js.map +1 -1
- package/dist/components/gov-layout.js +1 -1
- package/dist/components/gov-layout.js.map +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +1 -1
- package/dist/components/gov-message.js.map +1 -1
- package/dist/components/gov-pagination.js +1 -1
- package/dist/components/gov-pagination.js.map +1 -1
- package/dist/components/gov-skeleton.js +1 -1
- package/dist/components/gov-skeleton.js.map +1 -1
- package/dist/components/gov-spacer.js +1 -1
- package/dist/components/gov-spacer.js.map +1 -1
- package/dist/components/gov-stepper-item.js +1 -1
- package/dist/components/gov-stepper-item.js.map +1 -1
- package/dist/components/gov-stepper.js +1 -1
- package/dist/components/gov-stepper.js.map +1 -1
- package/dist/components/gov-tabs-item.js +1 -1
- package/dist/components/gov-tabs-item.js.map +1 -1
- package/dist/components/gov-tabs.js +1 -1
- package/dist/components/gov-tabs.js.map +1 -1
- package/dist/components/gov-tag.js +1 -1
- package/dist/components/gov-tag.js.map +1 -1
- package/dist/components/gov-theme-switch.d.ts +11 -0
- package/dist/components/gov-theme-switch.js +2 -0
- package/dist/components/gov-theme-switch.js.map +1 -0
- package/dist/components/gov-tile.js +1 -1
- package/dist/components/gov-tile.js.map +1 -1
- package/dist/components/gov-tiles.js +1 -1
- package/dist/components/gov-tiles.js.map +1 -1
- package/dist/components/gov-toast.js +1 -1
- package/dist/components/gov-toast.js.map +1 -1
- package/dist/components/gov-tooltip-content.js +1 -1
- package/dist/components/gov-tooltip-content.js.map +1 -1
- package/dist/components/gov-tooltip.js +1 -1
- package/dist/components/gov-tooltip.js.map +1 -1
- package/dist/components/gov-wizard-item.js +1 -1
- package/dist/components/gov-wizard-item.js.map +1 -1
- package/dist/components/gov-wizard.js +1 -1
- package/dist/components/gov-wizard.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-0075138f.js +2 -0
- package/dist/components/p-0075138f.js.map +1 -0
- package/dist/components/p-016bbea6.js.map +1 -1
- package/dist/components/p-08621bdf.js +2 -0
- package/dist/components/p-08621bdf.js.map +1 -0
- package/dist/components/p-0c93dd39.js +2 -0
- package/dist/components/p-0c93dd39.js.map +1 -0
- package/dist/components/p-19c681a3.js +2 -0
- package/dist/components/p-1a0b3b4f.js +2 -0
- package/dist/components/p-1a0b3b4f.js.map +1 -0
- package/dist/components/p-1e82b99e.js +2 -0
- package/dist/components/p-1e82b99e.js.map +1 -0
- package/dist/components/p-255d0471.js +2 -0
- package/dist/components/p-255d0471.js.map +1 -0
- package/dist/components/p-26618322.js +2 -0
- package/dist/components/p-26618322.js.map +1 -0
- package/dist/components/p-2aedc81e.js +2 -0
- package/dist/components/p-2aedc81e.js.map +1 -0
- package/dist/components/p-33d5d1ed.js +2 -0
- package/dist/components/p-33d5d1ed.js.map +1 -0
- package/dist/components/p-3dece5f7.js +2 -0
- package/dist/components/p-3dece5f7.js.map +1 -0
- package/dist/components/p-4a92317f.js +2 -0
- package/dist/components/p-4a92317f.js.map +1 -0
- package/dist/components/p-4ffeb83f.js +2 -0
- package/dist/components/p-4ffeb83f.js.map +1 -0
- package/dist/components/p-565120d5.js +2 -0
- package/dist/components/p-565120d5.js.map +1 -0
- package/dist/components/p-59737af9.js +2 -0
- package/dist/components/p-59737af9.js.map +1 -0
- package/dist/components/p-7501abe8.js +2 -0
- package/dist/components/p-7501abe8.js.map +1 -0
- package/dist/components/p-7f8a24a7.js +2 -0
- package/dist/components/p-7f8a24a7.js.map +1 -0
- package/dist/components/p-95d41a3b.js +2 -0
- package/dist/components/p-95d41a3b.js.map +1 -0
- package/dist/components/p-9a93146e.js +2 -0
- package/dist/components/p-9a93146e.js.map +1 -0
- package/dist/components/p-a14f8877.js +2 -0
- package/dist/components/p-a14f8877.js.map +1 -0
- package/dist/components/p-a5975d22.js +2 -0
- package/dist/components/p-a5975d22.js.map +1 -0
- package/dist/components/p-a99d125a.js +2 -0
- package/dist/components/p-a99d125a.js.map +1 -0
- package/dist/components/p-ae3dada7.js +3 -0
- package/dist/components/p-ae3dada7.js.map +1 -0
- package/dist/components/p-c0bb26c2.js +2 -0
- package/dist/components/p-c0bb26c2.js.map +1 -0
- package/dist/components/p-d4509899.js +2 -0
- package/dist/components/p-d4509899.js.map +1 -0
- package/dist/components/p-dd8d3279.js +2 -0
- package/dist/components/p-dd8d3279.js.map +1 -0
- package/dist/components/p-de3103e8.js +2 -0
- package/dist/components/p-de3103e8.js.map +1 -0
- package/dist/components/p-de8656dd.js +2 -0
- package/dist/components/p-de8656dd.js.map +1 -0
- package/dist/components/p-ded281e6.js +2 -0
- package/dist/components/p-ded281e6.js.map +1 -0
- package/dist/components/p-e3aeaca0.js +2 -0
- package/dist/components/p-e3aeaca0.js.map +1 -0
- package/dist/components/p-edd1417b.js +2 -0
- package/dist/components/p-edd1417b.js.map +1 -0
- package/dist/core/core.css +11473 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-0075138f.js +2 -0
- package/dist/core/p-0075138f.js.map +1 -0
- package/dist/core/p-016bbea6.js.map +1 -1
- package/dist/core/p-0225a96a.entry.js +2 -0
- package/dist/core/p-0225a96a.entry.js.map +1 -0
- package/dist/core/p-023787b3.entry.js +2 -0
- package/dist/core/p-023787b3.entry.js.map +1 -0
- package/dist/core/p-033bbbaa.entry.js +2 -0
- package/dist/core/p-033bbbaa.entry.js.map +1 -0
- package/dist/core/p-052cc573.js +2 -0
- package/dist/core/p-0d7b9167.entry.js +2 -0
- package/dist/core/p-0d7b9167.entry.js.map +1 -0
- package/dist/core/p-0ebc8365.entry.js +2 -0
- package/dist/core/p-0ebc8365.entry.js.map +1 -0
- package/dist/core/p-111e1a63.entry.js +2 -0
- package/dist/core/p-111e1a63.entry.js.map +1 -0
- package/dist/core/p-1638b12b.entry.js +2 -0
- package/dist/core/p-1638b12b.entry.js.map +1 -0
- package/dist/core/p-169b67af.js +2 -0
- package/dist/core/p-1bbc10c9.entry.js +2 -0
- package/dist/core/p-1bbc10c9.entry.js.map +1 -0
- package/dist/core/p-21bdd725.entry.js +2 -0
- package/dist/core/p-21bdd725.entry.js.map +1 -0
- package/dist/core/p-235869e6.entry.js +2 -0
- package/dist/core/p-235869e6.entry.js.map +1 -0
- package/dist/core/p-2614044c.js +2 -0
- package/dist/core/p-26618322.js +2 -0
- package/dist/core/p-26618322.js.map +1 -0
- package/dist/core/p-28a7d3f7.js +2 -0
- package/dist/core/p-28a7d3f7.js.map +1 -0
- package/dist/core/p-2ee0d589.entry.js +2 -0
- package/dist/core/p-2ee0d589.entry.js.map +1 -0
- package/dist/core/p-33ecbb38.entry.js +2 -0
- package/dist/core/p-33ecbb38.entry.js.map +1 -0
- package/dist/core/p-35e66bef.entry.js +2 -0
- package/dist/core/p-35e66bef.entry.js.map +1 -0
- package/dist/core/p-378e5294.entry.js +2 -0
- package/dist/core/p-378e5294.entry.js.map +1 -0
- package/dist/core/p-393a281e.entry.js +2 -0
- package/dist/core/p-393a281e.entry.js.map +1 -0
- package/dist/core/p-39d8e408.entry.js +2 -0
- package/dist/core/p-39d8e408.entry.js.map +1 -0
- package/dist/core/p-3a519b02.entry.js +2 -0
- package/dist/core/p-3a519b02.entry.js.map +1 -0
- package/dist/core/p-3db35bee.entry.js +2 -0
- package/dist/core/p-3db35bee.entry.js.map +1 -0
- package/dist/core/p-3ddfbc05.entry.js +2 -0
- package/dist/core/p-3ddfbc05.entry.js.map +1 -0
- package/dist/core/p-3e8b94c2.entry.js +2 -0
- package/dist/core/p-3e8b94c2.entry.js.map +1 -0
- package/dist/core/p-3f5f36e4.entry.js +2 -0
- package/dist/core/p-3f5f36e4.entry.js.map +1 -0
- package/dist/core/p-42d9924c.js +2 -0
- package/dist/core/p-42d9924c.js.map +1 -0
- package/dist/core/p-45a30859.js +2 -0
- package/dist/core/p-4898c95f.entry.js +2 -0
- package/dist/core/p-4898c95f.entry.js.map +1 -0
- package/dist/core/p-4bce896c.js +2 -0
- package/dist/core/p-4bce896c.js.map +1 -0
- package/dist/core/p-4e98412a.entry.js +2 -0
- package/dist/core/p-4e98412a.entry.js.map +1 -0
- package/dist/core/p-59c4574a.entry.js +2 -0
- package/dist/core/p-59c4574a.entry.js.map +1 -0
- package/dist/core/p-5f776da7.entry.js +2 -0
- package/dist/core/p-5f776da7.entry.js.map +1 -0
- package/dist/core/p-60658ae9.js +2 -0
- package/dist/core/p-60658ae9.js.map +1 -0
- package/dist/core/p-69d56f17.js +2 -0
- package/dist/core/p-69d56f17.js.map +1 -0
- package/dist/core/p-6aa40794.js +2 -0
- package/dist/core/p-6aa40794.js.map +1 -0
- package/dist/core/p-74e20474.entry.js +2 -0
- package/dist/core/p-74e20474.entry.js.map +1 -0
- package/dist/core/p-7cd2c877.entry.js +2 -0
- package/dist/core/p-7cd2c877.entry.js.map +1 -0
- package/dist/core/p-8321da17.entry.js +2 -0
- package/dist/core/p-8321da17.entry.js.map +1 -0
- package/dist/core/p-899e504a.entry.js +2 -0
- package/dist/core/p-899e504a.entry.js.map +1 -0
- package/dist/core/p-9100d24f.entry.js +2 -0
- package/dist/core/p-9100d24f.entry.js.map +1 -0
- package/dist/core/p-95d41a3b.js +2 -0
- package/dist/core/p-95d41a3b.js.map +1 -0
- package/dist/core/p-964f1729.entry.js +2 -0
- package/dist/core/p-964f1729.entry.js.map +1 -0
- package/dist/core/p-97927e2a.entry.js +2 -0
- package/dist/core/p-97927e2a.entry.js.map +1 -0
- package/dist/core/p-98091397.entry.js +2 -0
- package/dist/core/p-98091397.entry.js.map +1 -0
- package/dist/core/p-987388fd.entry.js +2 -0
- package/dist/core/p-987388fd.entry.js.map +1 -0
- package/dist/core/p-9ac55bd1.js +2 -0
- package/dist/core/p-9ac55bd1.js.map +1 -0
- package/dist/core/p-9b41ac88.entry.js +2 -0
- package/dist/core/p-9b41ac88.entry.js.map +1 -0
- package/dist/core/p-9d0c3dee.entry.js +2 -0
- package/dist/core/p-9d0c3dee.entry.js.map +1 -0
- package/dist/core/p-9d0f20ec.entry.js +2 -0
- package/dist/core/p-9d0f20ec.entry.js.map +1 -0
- package/dist/core/p-a1e95a5f.js +3 -0
- package/dist/core/p-a1e95a5f.js.map +1 -0
- package/dist/core/p-a21dc94f.js +2 -0
- package/dist/core/p-a21dc94f.js.map +1 -0
- package/dist/core/p-a42514f9.entry.js +2 -0
- package/dist/core/p-a42514f9.entry.js.map +1 -0
- package/dist/core/p-a4886f2d.entry.js +2 -0
- package/dist/core/p-a4886f2d.entry.js.map +1 -0
- package/dist/core/p-a693ffbf.js +2 -0
- package/dist/core/p-a693ffbf.js.map +1 -0
- package/dist/core/p-acff78c5.entry.js +2 -0
- package/dist/core/p-acff78c5.entry.js.map +1 -0
- package/dist/core/p-b215f99f.entry.js +2 -0
- package/dist/core/p-b215f99f.entry.js.map +1 -0
- package/dist/core/p-b48a4aa0.js +2 -0
- package/dist/core/p-b48a4aa0.js.map +1 -0
- package/dist/core/p-bdf1864e.entry.js +2 -0
- package/dist/core/p-bdf1864e.entry.js.map +1 -0
- package/dist/core/p-c5375a8a.entry.js +2 -0
- package/dist/core/p-c5375a8a.entry.js.map +1 -0
- package/dist/core/p-c6431085.entry.js +2 -0
- package/dist/core/p-c6431085.entry.js.map +1 -0
- package/dist/core/p-c990d746.js +2 -0
- package/dist/core/p-c990d746.js.map +1 -0
- package/dist/core/p-ca093025.entry.js +2 -0
- package/dist/core/p-ca093025.entry.js.map +1 -0
- package/dist/core/p-d56632e1.entry.js +2 -0
- package/dist/core/p-d56632e1.entry.js.map +1 -0
- package/dist/core/p-d9a299a4.js +2 -0
- package/dist/core/p-d9a299a4.js.map +1 -0
- package/dist/core/p-e0d428c9.js +2 -0
- package/dist/core/p-e0d428c9.js.map +1 -0
- package/dist/core/p-e3aeaca0.js +2 -0
- package/dist/core/p-e3aeaca0.js.map +1 -0
- package/dist/core/p-e49b1737.entry.js +2 -0
- package/dist/core/p-e49b1737.entry.js.map +1 -0
- package/dist/core/p-e5b95316.entry.js +2 -0
- package/dist/core/p-e5b95316.entry.js.map +1 -0
- package/dist/core/p-e9a6cd71.js +2 -0
- package/dist/core/p-e9a6cd71.js.map +1 -0
- package/dist/core/p-ea6cb030.entry.js +2 -0
- package/dist/core/p-ea6cb030.entry.js.map +1 -0
- package/dist/core/p-eb2af67a.entry.js +2 -0
- package/dist/core/p-eb2af67a.entry.js.map +1 -0
- package/dist/core/p-f0781e29.entry.js +2 -0
- package/dist/core/p-f0781e29.entry.js.map +1 -0
- package/dist/core/p-f4e04e98.entry.js +2 -0
- package/dist/core/p-f4e04e98.entry.js.map +1 -0
- package/dist/core/p-fe147dbf.entry.js +2 -0
- package/dist/core/p-fe147dbf.entry.js.map +1 -0
- package/dist/esm/accessibility-f83c991a.js +13 -0
- package/dist/esm/accessibility-f83c991a.js.map +1 -0
- package/dist/esm/attribute-5561aca4.js +98 -0
- package/dist/esm/attribute-5561aca4.js.map +1 -0
- package/dist/esm/colors-02c1ea96.js +20 -0
- package/dist/esm/colors-02c1ea96.js.map +1 -0
- package/dist/esm/constants-47e20524.js +31 -0
- package/dist/esm/constants-47e20524.js.map +1 -0
- package/dist/esm/constants-48177684.js +23 -0
- package/dist/esm/constants-48177684.js.map +1 -0
- package/dist/esm/constants-501eb756.js +22 -0
- package/dist/esm/constants-501eb756.js.map +1 -0
- package/dist/esm/constants-6d727976.js +15 -0
- package/dist/esm/constants-6d727976.js.map +1 -0
- package/dist/esm/constants-7307438d.js +14 -0
- package/dist/esm/constants-7307438d.js.map +1 -0
- package/dist/esm/constants-990365f1.js +22 -0
- package/dist/esm/constants-990365f1.js.map +1 -0
- package/dist/esm/constants-c716fa44.js +32 -0
- package/dist/esm/constants-c716fa44.js.map +1 -0
- package/dist/esm/constants-d42abf99.js +12 -0
- package/dist/esm/constants-d42abf99.js.map +1 -0
- package/dist/esm/constants-d6418889.js +23 -0
- package/dist/esm/constants-d6418889.js.map +1 -0
- package/dist/esm/constants-f4e4ede6.js +22 -0
- package/dist/esm/constants-f4e4ede6.js.map +1 -0
- package/dist/esm/core.js +3 -3
- package/dist/esm/form-472e078d.js +142 -0
- package/dist/esm/form-472e078d.js.map +1 -0
- package/dist/esm/gov-accordion-item.entry.js +27 -54
- package/dist/esm/gov-accordion-item.entry.js.map +1 -1
- package/dist/esm/gov-accordion.entry.js +12 -35
- package/dist/esm/gov-accordion.entry.js.map +1 -1
- package/dist/esm/gov-attachments_3.entry.js +29 -34
- package/dist/esm/gov-attachments_3.entry.js.map +1 -1
- package/dist/esm/gov-backdrop.entry.js +22 -20
- package/dist/esm/gov-backdrop.entry.js.map +1 -1
- package/dist/esm/gov-breadcrumbs.entry.js +19 -22
- package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
- package/dist/esm/gov-button.entry.js +42 -55
- package/dist/esm/gov-button.entry.js.map +1 -1
- package/dist/esm/gov-card.entry.js +21 -61
- package/dist/esm/gov-card.entry.js.map +1 -1
- package/dist/esm/gov-chip.entry.js +47 -33
- package/dist/esm/gov-chip.entry.js.map +1 -1
- package/dist/esm/gov-container.entry.js +3 -7
- package/dist/esm/gov-container.entry.js.map +1 -1
- package/dist/esm/gov-control-group.entry.js +14 -18
- package/dist/esm/gov-control-group.entry.js.map +1 -1
- package/dist/esm/gov-cookiebar.entry.js +6 -11
- package/dist/esm/gov-cookiebar.entry.js.map +1 -1
- package/dist/esm/gov-dialog.entry.js +104 -0
- package/dist/esm/gov-dialog.entry.js.map +1 -0
- package/dist/esm/gov-dropdown.entry.js +34 -30
- package/dist/esm/gov-dropdown.entry.js.map +1 -1
- package/dist/esm/gov-empty.entry.js +20 -9
- package/dist/esm/gov-empty.entry.js.map +1 -1
- package/dist/esm/gov-error-code.entry.js +3 -9
- package/dist/esm/gov-error-code.entry.js.map +1 -1
- package/dist/esm/gov-form-autocomplete.entry.js +27 -24
- package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
- package/dist/esm/gov-form-checkbox-group.entry.js +10 -10
- package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
- package/dist/esm/gov-form-checkbox.entry.js +34 -32
- package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
- package/dist/esm/gov-form-control.entry.js +13 -17
- package/dist/esm/gov-form-control.entry.js.map +1 -1
- package/dist/esm/gov-form-file.entry.js +33 -38
- package/dist/esm/gov-form-file.entry.js.map +1 -1
- package/dist/esm/gov-form-group.entry.js +8 -12
- package/dist/esm/gov-form-group.entry.js.map +1 -1
- package/dist/esm/gov-form-input_2.entry.js +279 -0
- package/dist/esm/gov-form-input_2.entry.js.map +1 -0
- package/dist/esm/gov-form-label.entry.js +4 -8
- package/dist/esm/gov-form-label.entry.js.map +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +39 -47
- package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
- package/dist/esm/gov-form-password-power.entry.js +2 -6
- package/dist/esm/gov-form-password-power.entry.js.map +1 -1
- package/dist/esm/gov-form-radio-group.entry.js +10 -10
- package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
- package/dist/esm/gov-form-radio.entry.js +33 -33
- package/dist/esm/gov-form-radio.entry.js.map +1 -1
- package/dist/esm/gov-form-search.entry.js +9 -12
- package/dist/esm/gov-form-search.entry.js.map +1 -1
- package/dist/esm/gov-form-select.entry.js +32 -45
- package/dist/esm/gov-form-select.entry.js.map +1 -1
- package/dist/esm/gov-form-switch.entry.js +34 -33
- package/dist/esm/gov-form-switch.entry.js.map +1 -1
- package/dist/esm/gov-grid-item.entry.js +3 -7
- package/dist/esm/gov-grid-item.entry.js.map +1 -1
- package/dist/esm/gov-grid.entry.js +3 -7
- package/dist/esm/gov-grid.entry.js.map +1 -1
- package/dist/esm/gov-icon.entry.js +43 -18
- package/dist/esm/gov-icon.entry.js.map +1 -1
- package/dist/esm/gov-infobar.entry.js +41 -48
- package/dist/esm/gov-infobar.entry.js.map +1 -1
- package/dist/esm/gov-layout-column.entry.js +3 -7
- package/dist/esm/gov-layout-column.entry.js.map +1 -1
- package/dist/esm/gov-layout.entry.js +3 -7
- package/dist/esm/gov-layout.entry.js.map +1 -1
- package/dist/esm/gov-loading.entry.js +19 -7
- package/dist/esm/gov-loading.entry.js.map +1 -1
- package/dist/esm/gov-message.entry.js +19 -19
- package/dist/esm/gov-message.entry.js.map +1 -1
- package/dist/esm/gov-pagination.entry.js +34 -38
- package/dist/esm/gov-pagination.entry.js.map +1 -1
- package/dist/esm/gov-spacer.entry.js +7 -11
- package/dist/esm/gov-spacer.entry.js.map +1 -1
- package/dist/esm/gov-stepper-item.entry.js +19 -48
- package/dist/esm/gov-stepper-item.entry.js.map +1 -1
- package/dist/esm/gov-stepper.entry.js +13 -13
- package/dist/esm/gov-stepper.entry.js.map +1 -1
- package/dist/esm/gov-tabs-item.entry.js +10 -11
- package/dist/esm/gov-tabs-item.entry.js.map +1 -1
- package/dist/esm/gov-tabs.entry.js +45 -45
- package/dist/esm/gov-tabs.entry.js.map +1 -1
- package/dist/esm/gov-tag.entry.js +23 -21
- package/dist/esm/gov-tag.entry.js.map +1 -1
- package/dist/esm/gov-theme-switch.entry.js +69 -0
- package/dist/esm/gov-theme-switch.entry.js.map +1 -0
- package/dist/esm/gov-tile.entry.js +13 -11
- package/dist/esm/gov-tile.entry.js.map +1 -1
- package/dist/esm/gov-tiles.entry.js +4 -12
- package/dist/esm/gov-tiles.entry.js.map +1 -1
- package/dist/esm/gov-toast.entry.js +39 -28
- package/dist/esm/gov-toast.entry.js.map +1 -1
- package/dist/esm/gov-tooltip-content.entry.js +7 -11
- package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
- package/dist/esm/gov-tooltip.entry.js +18 -22
- package/dist/esm/gov-tooltip.entry.js.map +1 -1
- package/dist/esm/gov-wizard-item.entry.js +22 -45
- package/dist/esm/gov-wizard-item.entry.js.map +1 -1
- package/dist/esm/gov-wizard.entry.js +17 -16
- package/dist/esm/gov-wizard.entry.js.map +1 -1
- package/dist/esm/gov.log-6e9faad2.js +19 -0
- package/dist/esm/gov.log-6e9faad2.js.map +1 -0
- package/dist/esm/helpers-5d179d4b.js.map +1 -1
- package/dist/esm/index-d8b4eb6c.js +1997 -0
- package/dist/esm/index-d8b4eb6c.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/props-c82e1abf.js +14 -0
- package/dist/esm/props-c82e1abf.js.map +1 -0
- package/dist/esm/stencil.utils-f3c6c68d.js +9 -0
- package/dist/esm/stencil.utils-f3c6c68d.js.map +1 -0
- package/dist/esm/string.utils-5ce3f551.js +20 -0
- package/dist/esm/string.utils-5ce3f551.js.map +1 -0
- package/dist/esm/template-3d84d705.js +124 -0
- package/dist/esm/template-3d84d705.js.map +1 -0
- package/dist/esm/utils-2b4ef320.js +35 -0
- package/dist/esm/utils-2b4ef320.js.map +1 -0
- package/dist/esm/wcag-fa5ce56c.js +52 -0
- package/dist/esm/wcag-fa5ce56c.js.map +1 -0
- package/dist/esm/win-cec370ad.js +31 -0
- package/dist/esm/win-cec370ad.js.map +1 -0
- package/dist/hydrate/index.js +1276 -1903
- package/dist/hydrate/index.mjs +1276 -1903
- package/dist/stencil.config.js +4 -2
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/components/gov-accordion/constants.d.ts +4 -7
- package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +6 -22
- package/dist/types/components/gov-accordion/gov-accordion.d.ts +3 -19
- package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +4 -4
- package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +8 -4
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +5 -5
- package/dist/types/components/gov-button/button/constants.d.ts +5 -6
- package/dist/types/components/gov-button/button/gov-button.d.ts +13 -70
- package/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +5 -4
- package/dist/types/components/gov-card/constants.d.ts +0 -1
- package/dist/types/components/gov-card/gov-card.d.ts +9 -27
- package/dist/types/components/gov-chip/constants.d.ts +8 -0
- package/dist/types/components/gov-chip/gov-chip.d.ts +18 -29
- package/dist/types/components/gov-control-group/constants.d.ts +3 -3
- package/dist/types/components/gov-control-group/gov-control-group.d.ts +7 -3
- package/dist/types/components/gov-cookiebar/constants.d.ts +1 -2
- package/dist/types/components/gov-dialog/constants.d.ts +11 -0
- package/dist/types/components/gov-dialog/gov-dialog.d.ts +67 -0
- package/dist/types/components/gov-empty/constants.d.ts +4 -2
- package/dist/types/components/gov-empty/gov-empty.d.ts +7 -0
- package/dist/types/components/gov-error-code/constants.d.ts +0 -2
- package/dist/types/components/gov-form/autocomplete/constants.d.ts +1 -4
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +7 -19
- package/dist/types/components/gov-form/checkbox/constants.d.ts +2 -1
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +11 -13
- package/dist/types/components/gov-form/file/constants.d.ts +0 -3
- package/dist/types/components/gov-form/file/gov-form-file.d.ts +10 -15
- package/dist/types/components/gov-form/input/constants.d.ts +1 -4
- package/dist/types/components/gov-form/input/gov-form-input.d.ts +13 -29
- package/dist/types/components/gov-form/message/constants.d.ts +6 -4
- package/dist/types/components/gov-form/message/gov-form-message.d.ts +8 -4
- package/dist/types/components/gov-form/multiselect/constants.d.ts +1 -4
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +7 -23
- package/dist/types/components/gov-form/radio/constants.d.ts +1 -2
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +7 -12
- package/dist/types/components/gov-form/search/constants.d.ts +6 -5
- package/dist/types/components/gov-form/search/gov-form-search.d.ts +6 -2
- package/dist/types/components/gov-form/select/constants.d.ts +1 -4
- package/dist/types/components/gov-form/select/gov-form-select.d.ts +7 -30
- package/dist/types/components/gov-form/switch/constants.d.ts +1 -0
- package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +7 -14
- package/dist/types/components/gov-icon/constants.d.ts +3 -0
- package/dist/types/components/gov-icon/gov-icon.d.ts +9 -3
- package/dist/types/components/gov-icon/helpers.d.ts +3 -2
- package/dist/types/components/gov-infobar/constants.d.ts +8 -5
- package/dist/types/components/gov-infobar/gov-infobar.d.ts +14 -16
- package/dist/types/components/gov-loading/loading/constants.d.ts +4 -0
- package/dist/types/components/gov-loading/loading/gov-loading.d.ts +7 -0
- package/dist/types/components/gov-loading/skeleton/constants.d.ts +7 -6
- package/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +13 -15
- package/dist/types/components/gov-message/constants.d.ts +8 -5
- package/dist/types/components/gov-message/gov-message.d.ts +7 -3
- package/dist/types/components/gov-pagination/constants.d.ts +3 -3
- package/dist/types/components/gov-pagination/gov-pagination.d.ts +11 -22
- package/dist/types/components/gov-spacer/constants.d.ts +1 -1
- package/dist/types/components/gov-stepper/constants.d.ts +6 -9
- package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +5 -22
- package/dist/types/components/gov-stepper/gov-stepper.d.ts +2 -0
- package/dist/types/components/gov-tabs/constants.d.ts +6 -3
- package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +8 -0
- package/dist/types/components/gov-tabs/gov-tabs.d.ts +19 -24
- package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +5 -0
- package/dist/types/components/gov-tag/constants.d.ts +9 -0
- package/dist/types/components/gov-tag/gov-tag.d.ts +9 -8
- package/dist/types/components/gov-theme-switch/constants.d.ts +4 -0
- package/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +18 -0
- package/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +10 -0
- package/dist/types/components/gov-tile/constants.d.ts +8 -4
- package/dist/types/components/gov-tile/container/gov-tiles.d.ts +1 -6
- package/dist/types/components/gov-tile/gov-tile.d.ts +13 -0
- package/dist/types/components/gov-toast/constants.d.ts +8 -6
- package/dist/types/components/gov-toast/gov-toast.d.ts +10 -5
- package/dist/types/components/gov-tooltip/constants.d.ts +3 -3
- package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +2 -2
- package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +3 -3
- package/dist/types/components/gov-wizard/constants.d.ts +7 -9
- package/dist/types/components/gov-wizard/gov-wizard-item.d.ts +5 -17
- package/dist/types/components/gov-wizard/gov-wizard.d.ts +2 -0
- package/dist/types/components.d.ts +650 -1505
- package/dist/types/core/constants/colors.d.ts +15 -0
- package/dist/types/helpers/Accessibility/accessibility.d.ts +1 -0
- package/dist/types/helpers/Accessibility/attributes.d.ts +1 -0
- package/dist/types/helpers/Dom/attribute.d.ts +13 -0
- package/dist/types/helpers/Log/gov.log.d.ts +3 -3
- package/dist/types/helpers/Validate/wcag.d.ts +1 -1
- package/dist/types/pages/CookieConsent.d.ts +3 -0
- package/dist/types/pages/Dialog.d.ts +3 -0
- package/dist/types/pages/Icon.d.ts +3 -0
- package/dist/types/utils/string.utils.d.ts +0 -1
- package/package.json +2 -2
- package/dist/cjs/constants-11f3de8f.js +0 -28
- package/dist/cjs/constants-11f3de8f.js.map +0 -1
- package/dist/cjs/constants-1b3eeb21.js +0 -20
- package/dist/cjs/constants-1b3eeb21.js.map +0 -1
- package/dist/cjs/constants-29b9825f.js +0 -33
- package/dist/cjs/constants-29b9825f.js.map +0 -1
- package/dist/cjs/constants-2f0a11e5.js +0 -30
- package/dist/cjs/constants-2f0a11e5.js.map +0 -1
- package/dist/cjs/constants-4fefc173.js +0 -37
- package/dist/cjs/constants-4fefc173.js.map +0 -1
- package/dist/cjs/constants-7a5540d0.js +0 -26
- package/dist/cjs/constants-7a5540d0.js.map +0 -1
- package/dist/cjs/constants-8f194b53.js +0 -30
- package/dist/cjs/constants-8f194b53.js.map +0 -1
- package/dist/cjs/constants-b7813ab1.js +0 -16
- package/dist/cjs/constants-b7813ab1.js.map +0 -1
- package/dist/cjs/constants-b8a9f758.js +0 -22
- package/dist/cjs/constants-b8a9f758.js.map +0 -1
- package/dist/cjs/constants-d5fe1cee.js +0 -29
- package/dist/cjs/constants-d5fe1cee.js.map +0 -1
- package/dist/cjs/constants-fb915aae.js +0 -21
- package/dist/cjs/constants-fb915aae.js.map +0 -1
- package/dist/cjs/constants-fdc5268a.js +0 -15
- package/dist/cjs/constants-fdc5268a.js.map +0 -1
- package/dist/cjs/form-f93c3a0a.js +0 -163
- package/dist/cjs/form-f93c3a0a.js.map +0 -1
- package/dist/cjs/gov-form-input.cjs.entry.js +0 -199
- package/dist/cjs/gov-form-input.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-lifecycle.cjs.entry.js +0 -47
- package/dist/cjs/gov-lifecycle.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-modal.cjs.entry.js +0 -112
- package/dist/cjs/gov-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-nav-item.cjs.entry.js +0 -40
- package/dist/cjs/gov-nav-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-nav.cjs.entry.js +0 -43
- package/dist/cjs/gov-nav.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-prompt.cjs.entry.js +0 -107
- package/dist/cjs/gov-prompt.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-side-nav-item.cjs.entry.js +0 -88
- package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-side-nav.cjs.entry.js +0 -57
- package/dist/cjs/gov-side-nav.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-skeleton.cjs.entry.js +0 -118
- package/dist/cjs/gov-skeleton.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-statsbar-item.cjs.entry.js +0 -41
- package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-statsbar.cjs.entry.js +0 -54
- package/dist/cjs/gov-statsbar.cjs.entry.js.map +0 -1
- package/dist/cjs/gov.log-8887c6bc.js +0 -28
- package/dist/cjs/gov.log-8887c6bc.js.map +0 -1
- package/dist/cjs/index-f53beed1.js +0 -2053
- package/dist/cjs/index-f53beed1.js.map +0 -1
- package/dist/cjs/props-edd0d46f.js +0 -16
- package/dist/cjs/props-edd0d46f.js.map +0 -1
- package/dist/cjs/stencil.utils-07182a8a.js +0 -11
- package/dist/cjs/stencil.utils-07182a8a.js.map +0 -1
- package/dist/cjs/string.utils-b84c81cf.js +0 -25
- package/dist/cjs/string.utils-b84c81cf.js.map +0 -1
- package/dist/cjs/template-431f0737.js +0 -132
- package/dist/cjs/template-431f0737.js.map +0 -1
- package/dist/cjs/variants-85b514ea.js +0 -18
- package/dist/cjs/variants-85b514ea.js.map +0 -1
- package/dist/cjs/wcag-0dfd29b6.js +0 -67
- package/dist/cjs/wcag-0dfd29b6.js.map +0 -1
- package/dist/cjs/win-03714165.js +0 -39
- package/dist/cjs/win-03714165.js.map +0 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.css +0 -524
- package/dist/collection/components/gov-accordion/gov-accordion.css +0 -240
- package/dist/collection/components/gov-attachments/gov-attachments.css +0 -247
- package/dist/collection/components/gov-backdrop/gov-backdrop.css +0 -246
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +0 -321
- package/dist/collection/components/gov-button/button/gov-button.css +0 -1154
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.css +0 -264
- package/dist/collection/components/gov-card/gov-card.css +0 -377
- package/dist/collection/components/gov-chip/gov-chip.css +0 -1251
- package/dist/collection/components/gov-container/gov-container.css +0 -247
- package/dist/collection/components/gov-control-group/gov-control-group.css +0 -280
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +0 -289
- package/dist/collection/components/gov-empty/gov-empty.css +0 -255
- package/dist/collection/components/gov-error-code/gov-error-code.css +0 -270
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +0 -290
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +0 -402
- package/dist/collection/components/gov-form/control/gov-form-control.css +0 -291
- package/dist/collection/components/gov-form/file/gov-form-file.css +0 -301
- package/dist/collection/components/gov-form/input/gov-form-input.css +0 -523
- package/dist/collection/components/gov-form/label/gov-form-label.css +0 -252
- package/dist/collection/components/gov-form/message/gov-form-message.css +0 -262
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +0 -640
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.css +0 -275
- package/dist/collection/components/gov-form/radio/gov-form-radio.css +0 -401
- package/dist/collection/components/gov-form/search/gov-form-search.css +0 -274
- package/dist/collection/components/gov-form/select/gov-form-select.css +0 -598
- package/dist/collection/components/gov-form/switch/gov-form-switch.css +0 -440
- package/dist/collection/components/gov-grid/gov-grid-item.css +0 -437
- package/dist/collection/components/gov-grid/gov-grid.css +0 -256
- package/dist/collection/components/gov-icon/gov-icon.css +0 -250
- package/dist/collection/components/gov-infobar/gov-infobar.css +0 -388
- package/dist/collection/components/gov-layout/gov-layout-column.css +0 -237
- package/dist/collection/components/gov-layout/gov-layout.css +0 -282
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +0 -39
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +0 -1
- package/dist/collection/components/gov-loading/loading/gov-loading.css +0 -261
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.css +0 -300
- package/dist/collection/components/gov-message/gov-message.css +0 -319
- package/dist/collection/components/gov-modal/constants.js +0 -15
- package/dist/collection/components/gov-modal/constants.js.map +0 -1
- package/dist/collection/components/gov-modal/gov-modal.css +0 -345
- package/dist/collection/components/gov-modal/gov-modal.js +0 -396
- package/dist/collection/components/gov-modal/gov-modal.js.map +0 -1
- package/dist/collection/components/gov-nav/constants.js +0 -9
- package/dist/collection/components/gov-nav/constants.js.map +0 -1
- package/dist/collection/components/gov-nav/gov-nav-item.css +0 -288
- package/dist/collection/components/gov-nav/gov-nav-item.js +0 -68
- package/dist/collection/components/gov-nav/gov-nav-item.js.map +0 -1
- package/dist/collection/components/gov-nav/gov-nav.css +0 -254
- package/dist/collection/components/gov-nav/gov-nav.js +0 -98
- package/dist/collection/components/gov-nav/gov-nav.js.map +0 -1
- package/dist/collection/components/gov-pagination/gov-pagination.css +0 -394
- package/dist/collection/components/gov-promp/constants.js +0 -13
- package/dist/collection/components/gov-promp/constants.js.map +0 -1
- package/dist/collection/components/gov-promp/gov-prompt.css +0 -348
- package/dist/collection/components/gov-promp/gov-prompt.js +0 -337
- package/dist/collection/components/gov-promp/gov-prompt.js.map +0 -1
- package/dist/collection/components/gov-side-nav/constants.js +0 -16
- package/dist/collection/components/gov-side-nav/constants.js.map +0 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +0 -384
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js +0 -2
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js.map +0 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +0 -336
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +0 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav.css +0 -237
- package/dist/collection/components/gov-side-nav/gov-side-nav.js +0 -171
- package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +0 -1
- package/dist/collection/components/gov-spacer/gov-spacer.css +0 -302
- package/dist/collection/components/gov-statsbar/constants.js +0 -18
- package/dist/collection/components/gov-statsbar/constants.js.map +0 -1
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +0 -296
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +0 -66
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +0 -1
- package/dist/collection/components/gov-statsbar/gov-statsbar.css +0 -281
- package/dist/collection/components/gov-statsbar/gov-statsbar.js +0 -104
- package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +0 -1
- package/dist/collection/components/gov-stepper/gov-stepper-item.css +0 -467
- package/dist/collection/components/gov-stepper/gov-stepper.css +0 -237
- package/dist/collection/components/gov-tabs/gov-tabs-item.css +0 -238
- package/dist/collection/components/gov-tabs/gov-tabs.css +0 -392
- package/dist/collection/components/gov-tag/gov-tag.css +0 -1164
- package/dist/collection/components/gov-tile/container/gov-tiles.css +0 -319
- package/dist/collection/components/gov-tile/gov-tile.css +0 -314
- package/dist/collection/components/gov-toast/gov-toast.css +0 -403
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +0 -348
- package/dist/collection/components/gov-tooltip/gov-tooltip.css +0 -241
- package/dist/collection/components/gov-wizard/gov-wizard-item.css +0 -474
- package/dist/collection/components/gov-wizard/gov-wizard.css +0 -240
- package/dist/collection/core/constants/variants.js +0 -15
- package/dist/collection/core/constants/variants.js.map +0 -1
- package/dist/collection/pages/Cookiebar.js +0 -29
- package/dist/collection/pages/Cookiebar.js.map +0 -1
- package/dist/collection/pages/Modal.js +0 -57
- package/dist/collection/pages/Modal.js.map +0 -1
- package/dist/collection/pages/Nav.js +0 -30
- package/dist/collection/pages/Nav.js.map +0 -1
- package/dist/collection/pages/Prompt.js +0 -48
- package/dist/collection/pages/Prompt.js.map +0 -1
- package/dist/collection/pages/SideNav.js +0 -117
- package/dist/collection/pages/SideNav.js.map +0 -1
- package/dist/collection/pages/Statsbar.js +0 -202
- package/dist/collection/pages/Statsbar.js.map +0 -1
- package/dist/components/gov-lifecycle.d.ts +0 -11
- package/dist/components/gov-lifecycle.js +0 -2
- package/dist/components/gov-lifecycle.js.map +0 -1
- package/dist/components/gov-modal.d.ts +0 -11
- package/dist/components/gov-modal.js +0 -2
- package/dist/components/gov-modal.js.map +0 -1
- package/dist/components/gov-nav-item.d.ts +0 -11
- package/dist/components/gov-nav-item.js +0 -2
- package/dist/components/gov-nav-item.js.map +0 -1
- package/dist/components/gov-nav.d.ts +0 -11
- package/dist/components/gov-nav.js +0 -2
- package/dist/components/gov-nav.js.map +0 -1
- package/dist/components/gov-prompt.d.ts +0 -11
- package/dist/components/gov-prompt.js +0 -2
- package/dist/components/gov-prompt.js.map +0 -1
- package/dist/components/gov-side-nav-item.d.ts +0 -11
- package/dist/components/gov-side-nav-item.js +0 -2
- package/dist/components/gov-side-nav-item.js.map +0 -1
- package/dist/components/gov-side-nav.d.ts +0 -11
- package/dist/components/gov-side-nav.js +0 -2
- package/dist/components/gov-side-nav.js.map +0 -1
- package/dist/components/gov-statsbar-item.d.ts +0 -11
- package/dist/components/gov-statsbar-item.js +0 -2
- package/dist/components/gov-statsbar-item.js.map +0 -1
- package/dist/components/gov-statsbar.d.ts +0 -11
- package/dist/components/gov-statsbar.js +0 -2
- package/dist/components/gov-statsbar.js.map +0 -1
- package/dist/components/p-0134b442.js +0 -2
- package/dist/components/p-0134b442.js.map +0 -1
- package/dist/components/p-016118d2.js +0 -2
- package/dist/components/p-016118d2.js.map +0 -1
- package/dist/components/p-03dbb8b1.js +0 -2
- package/dist/components/p-03dbb8b1.js.map +0 -1
- package/dist/components/p-11418445.js +0 -2
- package/dist/components/p-11418445.js.map +0 -1
- package/dist/components/p-145d1fa3.js +0 -2
- package/dist/components/p-145d1fa3.js.map +0 -1
- package/dist/components/p-20fd8011.js +0 -2
- package/dist/components/p-20fd8011.js.map +0 -1
- package/dist/components/p-240c302e.js +0 -2
- package/dist/components/p-240c302e.js.map +0 -1
- package/dist/components/p-2594e525.js +0 -2
- package/dist/components/p-2594e525.js.map +0 -1
- package/dist/components/p-2f537b87.js +0 -2
- package/dist/components/p-2f537b87.js.map +0 -1
- package/dist/components/p-344c72d7.js +0 -2
- package/dist/components/p-3983d290.js +0 -2
- package/dist/components/p-3983d290.js.map +0 -1
- package/dist/components/p-3f704a40.js +0 -2
- package/dist/components/p-3f704a40.js.map +0 -1
- package/dist/components/p-4faa3ba6.js +0 -2
- package/dist/components/p-4faa3ba6.js.map +0 -1
- package/dist/components/p-5262b9ce.js +0 -3
- package/dist/components/p-5262b9ce.js.map +0 -1
- package/dist/components/p-71cec4ef.js +0 -2
- package/dist/components/p-71cec4ef.js.map +0 -1
- package/dist/components/p-74915621.js +0 -2
- package/dist/components/p-74915621.js.map +0 -1
- package/dist/components/p-77a6e3be.js +0 -2
- package/dist/components/p-77a6e3be.js.map +0 -1
- package/dist/components/p-77cdc056.js +0 -2
- package/dist/components/p-77cdc056.js.map +0 -1
- package/dist/components/p-8cf6d23c.js +0 -2
- package/dist/components/p-8cf6d23c.js.map +0 -1
- package/dist/components/p-8dfac7d7.js +0 -2
- package/dist/components/p-8dfac7d7.js.map +0 -1
- package/dist/components/p-9370b15f.js +0 -2
- package/dist/components/p-9370b15f.js.map +0 -1
- package/dist/components/p-94dd1649.js +0 -2
- package/dist/components/p-94dd1649.js.map +0 -1
- package/dist/components/p-9d5a8ed9.js +0 -2
- package/dist/components/p-9d5a8ed9.js.map +0 -1
- package/dist/components/p-b6dd95ba.js +0 -2
- package/dist/components/p-b6dd95ba.js.map +0 -1
- package/dist/components/p-cd6c2938.js +0 -2
- package/dist/components/p-cd6c2938.js.map +0 -1
- package/dist/components/p-ce45c786.js +0 -2
- package/dist/components/p-ce45c786.js.map +0 -1
- package/dist/components/p-d0288df5.js +0 -2
- package/dist/components/p-d0288df5.js.map +0 -1
- package/dist/components/p-d0fe3cd8.js +0 -2
- package/dist/components/p-d0fe3cd8.js.map +0 -1
- package/dist/components/p-d687df8f.js +0 -2
- package/dist/components/p-d687df8f.js.map +0 -1
- package/dist/components/p-e296ca83.js +0 -2
- package/dist/components/p-e296ca83.js.map +0 -1
- package/dist/components/p-e618f1cb.js +0 -2
- package/dist/components/p-e618f1cb.js.map +0 -1
- package/dist/components/p-f0d542f2.js +0 -2
- package/dist/components/p-f0d542f2.js.map +0 -1
- package/dist/core/p-0134b442.js +0 -2
- package/dist/core/p-0134b442.js.map +0 -1
- package/dist/core/p-03dbb8b1.js +0 -2
- package/dist/core/p-03dbb8b1.js.map +0 -1
- package/dist/core/p-06e9e93b.entry.js +0 -2
- package/dist/core/p-06e9e93b.entry.js.map +0 -1
- package/dist/core/p-092b0437.entry.js +0 -2
- package/dist/core/p-092b0437.entry.js.map +0 -1
- package/dist/core/p-1011ca26.entry.js +0 -2
- package/dist/core/p-1011ca26.entry.js.map +0 -1
- package/dist/core/p-107a6a5c.entry.js +0 -2
- package/dist/core/p-107a6a5c.entry.js.map +0 -1
- package/dist/core/p-114a4d0b.entry.js +0 -2
- package/dist/core/p-114a4d0b.entry.js.map +0 -1
- package/dist/core/p-13520b30.entry.js +0 -2
- package/dist/core/p-13520b30.entry.js.map +0 -1
- package/dist/core/p-13ced376.entry.js +0 -2
- package/dist/core/p-13ced376.entry.js.map +0 -1
- package/dist/core/p-1b3143a8.entry.js +0 -2
- package/dist/core/p-1b3143a8.entry.js.map +0 -1
- package/dist/core/p-1bdc04bb.entry.js +0 -2
- package/dist/core/p-1bdc04bb.entry.js.map +0 -1
- package/dist/core/p-208c99c8.entry.js +0 -2
- package/dist/core/p-208c99c8.entry.js.map +0 -1
- package/dist/core/p-20ae3168.entry.js +0 -2
- package/dist/core/p-20ae3168.entry.js.map +0 -1
- package/dist/core/p-20fd8011.js +0 -2
- package/dist/core/p-20fd8011.js.map +0 -1
- package/dist/core/p-2186fcd5.entry.js +0 -2
- package/dist/core/p-2186fcd5.entry.js.map +0 -1
- package/dist/core/p-240659bb.js +0 -3
- package/dist/core/p-240659bb.js.map +0 -1
- package/dist/core/p-240c302e.js +0 -2
- package/dist/core/p-240c302e.js.map +0 -1
- package/dist/core/p-2c3697cf.entry.js +0 -2
- package/dist/core/p-2c3697cf.entry.js.map +0 -1
- package/dist/core/p-2e881577.entry.js +0 -2
- package/dist/core/p-2e881577.entry.js.map +0 -1
- package/dist/core/p-3309aed9.entry.js +0 -2
- package/dist/core/p-3309aed9.entry.js.map +0 -1
- package/dist/core/p-344c72d7.js +0 -2
- package/dist/core/p-348165e2.entry.js +0 -2
- package/dist/core/p-348165e2.entry.js.map +0 -1
- package/dist/core/p-34d7c203.entry.js +0 -2
- package/dist/core/p-34d7c203.entry.js.map +0 -1
- package/dist/core/p-3832de64.entry.js +0 -2
- package/dist/core/p-3832de64.entry.js.map +0 -1
- package/dist/core/p-3983d290.js +0 -2
- package/dist/core/p-3983d290.js.map +0 -1
- package/dist/core/p-3b8fb675.entry.js +0 -2
- package/dist/core/p-3b8fb675.entry.js.map +0 -1
- package/dist/core/p-3ccab2ba.entry.js +0 -2
- package/dist/core/p-3ccab2ba.entry.js.map +0 -1
- package/dist/core/p-3e041d63.entry.js +0 -2
- package/dist/core/p-3e041d63.entry.js.map +0 -1
- package/dist/core/p-3f0dd8fa.js +0 -2
- package/dist/core/p-3f0dd8fa.js.map +0 -1
- package/dist/core/p-4191acf2.js +0 -2
- package/dist/core/p-4191acf2.js.map +0 -1
- package/dist/core/p-45b869ae.js +0 -2
- package/dist/core/p-45b869ae.js.map +0 -1
- package/dist/core/p-4694b4b6.entry.js +0 -2
- package/dist/core/p-4694b4b6.entry.js.map +0 -1
- package/dist/core/p-4700508c.entry.js +0 -2
- package/dist/core/p-4700508c.entry.js.map +0 -1
- package/dist/core/p-489f5c82.entry.js +0 -2
- package/dist/core/p-489f5c82.entry.js.map +0 -1
- package/dist/core/p-4ed064db.entry.js +0 -2
- package/dist/core/p-4ed064db.entry.js.map +0 -1
- package/dist/core/p-4f77a766.entry.js +0 -2
- package/dist/core/p-4f77a766.entry.js.map +0 -1
- package/dist/core/p-4faa3ba6.js +0 -2
- package/dist/core/p-4faa3ba6.js.map +0 -1
- package/dist/core/p-551c9f44.entry.js +0 -2
- package/dist/core/p-551c9f44.entry.js.map +0 -1
- package/dist/core/p-55abc7bc.entry.js +0 -2
- package/dist/core/p-55abc7bc.entry.js.map +0 -1
- package/dist/core/p-55cd3fee.entry.js +0 -2
- package/dist/core/p-55cd3fee.entry.js.map +0 -1
- package/dist/core/p-5c3a0b02.entry.js +0 -2
- package/dist/core/p-5c3a0b02.entry.js.map +0 -1
- package/dist/core/p-64353313.entry.js +0 -2
- package/dist/core/p-64353313.entry.js.map +0 -1
- package/dist/core/p-6789b9d0.entry.js +0 -2
- package/dist/core/p-6789b9d0.entry.js.map +0 -1
- package/dist/core/p-6a82c6a1.entry.js +0 -2
- package/dist/core/p-6a82c6a1.entry.js.map +0 -1
- package/dist/core/p-6c33492a.entry.js +0 -2
- package/dist/core/p-6c33492a.entry.js.map +0 -1
- package/dist/core/p-6d894ec7.entry.js +0 -2
- package/dist/core/p-6d894ec7.entry.js.map +0 -1
- package/dist/core/p-6dfde487.entry.js +0 -2
- package/dist/core/p-6dfde487.entry.js.map +0 -1
- package/dist/core/p-74233183.entry.js +0 -2
- package/dist/core/p-74233183.entry.js.map +0 -1
- package/dist/core/p-77892071.entry.js +0 -2
- package/dist/core/p-77892071.entry.js.map +0 -1
- package/dist/core/p-7a896683.entry.js +0 -2
- package/dist/core/p-7a896683.entry.js.map +0 -1
- package/dist/core/p-7ba4ae8d.entry.js +0 -2
- package/dist/core/p-7ba4ae8d.entry.js.map +0 -1
- package/dist/core/p-7ba4daf4.js +0 -2
- package/dist/core/p-7d011c4b.entry.js +0 -2
- package/dist/core/p-7d011c4b.entry.js.map +0 -1
- package/dist/core/p-7e43f440.entry.js +0 -2
- package/dist/core/p-7e43f440.entry.js.map +0 -1
- package/dist/core/p-802909c5.entry.js +0 -2
- package/dist/core/p-802909c5.entry.js.map +0 -1
- package/dist/core/p-810f0d0c.entry.js +0 -2
- package/dist/core/p-810f0d0c.entry.js.map +0 -1
- package/dist/core/p-828e8bce.entry.js +0 -2
- package/dist/core/p-828e8bce.entry.js.map +0 -1
- package/dist/core/p-87b7b469.entry.js +0 -2
- package/dist/core/p-87b7b469.entry.js.map +0 -1
- package/dist/core/p-8dfac7d7.js +0 -2
- package/dist/core/p-8dfac7d7.js.map +0 -1
- package/dist/core/p-8fb45e7c.entry.js +0 -2
- package/dist/core/p-8fb45e7c.entry.js.map +0 -1
- package/dist/core/p-94dd1649.js +0 -2
- package/dist/core/p-94dd1649.js.map +0 -1
- package/dist/core/p-a3cff495.entry.js +0 -2
- package/dist/core/p-a3cff495.entry.js.map +0 -1
- package/dist/core/p-ab9aff3c.js +0 -2
- package/dist/core/p-ab9aff3c.js.map +0 -1
- package/dist/core/p-ae4321ea.entry.js +0 -2
- package/dist/core/p-ae4321ea.entry.js.map +0 -1
- package/dist/core/p-b2b254b6.entry.js +0 -2
- package/dist/core/p-b2b254b6.entry.js.map +0 -1
- package/dist/core/p-bcdf6cfc.entry.js +0 -2
- package/dist/core/p-bcdf6cfc.entry.js.map +0 -1
- package/dist/core/p-c98fe646.js +0 -2
- package/dist/core/p-c98fe646.js.map +0 -1
- package/dist/core/p-cc83b8cb.entry.js +0 -2
- package/dist/core/p-cc83b8cb.entry.js.map +0 -1
- package/dist/core/p-cd6c2938.js +0 -2
- package/dist/core/p-cd6c2938.js.map +0 -1
- package/dist/core/p-cdaeb7d8.entry.js +0 -2
- package/dist/core/p-cdaeb7d8.entry.js.map +0 -1
- package/dist/core/p-ce45c786.js +0 -2
- package/dist/core/p-ce45c786.js.map +0 -1
- package/dist/core/p-d0288df5.js +0 -2
- package/dist/core/p-d0288df5.js.map +0 -1
- package/dist/core/p-d4b50bcd.entry.js +0 -2
- package/dist/core/p-d4b50bcd.entry.js.map +0 -1
- package/dist/core/p-d4f2d6f9.entry.js +0 -2
- package/dist/core/p-d4f2d6f9.entry.js.map +0 -1
- package/dist/core/p-e0e2e9c1.js +0 -2
- package/dist/core/p-e296ca83.js +0 -2
- package/dist/core/p-e296ca83.js.map +0 -1
- package/dist/core/p-e44a0fee.js +0 -2
- package/dist/core/p-e618f1cb.js +0 -2
- package/dist/core/p-e618f1cb.js.map +0 -1
- package/dist/core/p-e9bcadf1.entry.js +0 -2
- package/dist/core/p-e9bcadf1.entry.js.map +0 -1
- package/dist/core/p-f0d542f2.js +0 -2
- package/dist/core/p-f0d542f2.js.map +0 -1
- package/dist/core/p-f16f9116.entry.js +0 -2
- package/dist/core/p-f16f9116.entry.js.map +0 -1
- package/dist/core/p-f2edcca7.entry.js +0 -2
- package/dist/core/p-f2edcca7.entry.js.map +0 -1
- package/dist/core/p-f6a98765.entry.js +0 -2
- package/dist/core/p-f6a98765.entry.js.map +0 -1
- package/dist/core/p-f9de3c09.entry.js +0 -2
- package/dist/core/p-f9de3c09.entry.js.map +0 -1
- package/dist/core/p-fdead70e.js +0 -2
- package/dist/core/p-fdead70e.js.map +0 -1
- package/dist/core/p-fe8bd4cf.entry.js +0 -2
- package/dist/core/p-fe8bd4cf.entry.js.map +0 -1
- package/dist/esm/constants-0014bc7f.js +0 -24
- package/dist/esm/constants-0014bc7f.js.map +0 -1
- package/dist/esm/constants-122ac484.js +0 -25
- package/dist/esm/constants-122ac484.js.map +0 -1
- package/dist/esm/constants-14f351fd.js +0 -23
- package/dist/esm/constants-14f351fd.js.map +0 -1
- package/dist/esm/constants-1998bac1.js +0 -19
- package/dist/esm/constants-1998bac1.js.map +0 -1
- package/dist/esm/constants-43f10674.js +0 -12
- package/dist/esm/constants-43f10674.js.map +0 -1
- package/dist/esm/constants-4da2b3c0.js +0 -22
- package/dist/esm/constants-4da2b3c0.js.map +0 -1
- package/dist/esm/constants-66db9786.js +0 -25
- package/dist/esm/constants-66db9786.js.map +0 -1
- package/dist/esm/constants-78d0d7ff.js +0 -13
- package/dist/esm/constants-78d0d7ff.js.map +0 -1
- package/dist/esm/constants-a2828485.js +0 -12
- package/dist/esm/constants-a2828485.js.map +0 -1
- package/dist/esm/constants-a5fadb10.js +0 -29
- package/dist/esm/constants-a5fadb10.js.map +0 -1
- package/dist/esm/constants-f63d2d63.js +0 -18
- package/dist/esm/constants-f63d2d63.js.map +0 -1
- package/dist/esm/constants-f6ecfd4e.js +0 -33
- package/dist/esm/constants-f6ecfd4e.js.map +0 -1
- package/dist/esm/constants-f98e7750.js +0 -22
- package/dist/esm/constants-f98e7750.js.map +0 -1
- package/dist/esm/constants-ff234810.js +0 -17
- package/dist/esm/constants-ff234810.js.map +0 -1
- package/dist/esm/form-738c5b12.js +0 -145
- package/dist/esm/form-738c5b12.js.map +0 -1
- package/dist/esm/gov-form-input.entry.js +0 -195
- package/dist/esm/gov-form-input.entry.js.map +0 -1
- package/dist/esm/gov-lifecycle.entry.js +0 -43
- package/dist/esm/gov-lifecycle.entry.js.map +0 -1
- package/dist/esm/gov-modal.entry.js +0 -108
- package/dist/esm/gov-modal.entry.js.map +0 -1
- package/dist/esm/gov-nav-item.entry.js +0 -36
- package/dist/esm/gov-nav-item.entry.js.map +0 -1
- package/dist/esm/gov-nav.entry.js +0 -39
- package/dist/esm/gov-nav.entry.js.map +0 -1
- package/dist/esm/gov-prompt.entry.js +0 -103
- package/dist/esm/gov-prompt.entry.js.map +0 -1
- package/dist/esm/gov-side-nav-item.entry.js +0 -84
- package/dist/esm/gov-side-nav-item.entry.js.map +0 -1
- package/dist/esm/gov-side-nav.entry.js +0 -53
- package/dist/esm/gov-side-nav.entry.js.map +0 -1
- package/dist/esm/gov-skeleton.entry.js +0 -114
- package/dist/esm/gov-skeleton.entry.js.map +0 -1
- package/dist/esm/gov-statsbar-item.entry.js +0 -37
- package/dist/esm/gov-statsbar-item.entry.js.map +0 -1
- package/dist/esm/gov-statsbar.entry.js +0 -50
- package/dist/esm/gov-statsbar.entry.js.map +0 -1
- package/dist/esm/gov.log-431da6b2.js +0 -25
- package/dist/esm/gov.log-431da6b2.js.map +0 -1
- package/dist/esm/index-c5251f2b.js +0 -2022
- package/dist/esm/index-c5251f2b.js.map +0 -1
- package/dist/esm/props-ec3beb91.js +0 -14
- package/dist/esm/props-ec3beb91.js.map +0 -1
- package/dist/esm/stencil.utils-5d8e3d11.js +0 -9
- package/dist/esm/stencil.utils-5d8e3d11.js.map +0 -1
- package/dist/esm/string.utils-1da8f8fb.js +0 -20
- package/dist/esm/string.utils-1da8f8fb.js.map +0 -1
- package/dist/esm/template-94812ab3.js +0 -123
- package/dist/esm/template-94812ab3.js.map +0 -1
- package/dist/esm/utils-e10e994d.js +0 -35
- package/dist/esm/utils-e10e994d.js.map +0 -1
- package/dist/esm/variants-69f013c1.js +0 -18
- package/dist/esm/variants-69f013c1.js.map +0 -1
- package/dist/esm/wcag-169f758a.js +0 -62
- package/dist/esm/wcag-169f758a.js.map +0 -1
- package/dist/esm/win-b64cd8a6.js +0 -31
- package/dist/esm/win-b64cd8a6.js.map +0 -1
- package/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +0 -14
- package/dist/types/components/gov-modal/constants.d.ts +0 -14
- package/dist/types/components/gov-modal/gov-modal.d.ts +0 -78
- package/dist/types/components/gov-nav/constants.d.ts +0 -8
- package/dist/types/components/gov-nav/gov-nav-item.d.ts +0 -12
- package/dist/types/components/gov-nav/gov-nav.d.ts +0 -17
- package/dist/types/components/gov-promp/constants.d.ts +0 -12
- package/dist/types/components/gov-promp/gov-prompt.d.ts +0 -66
- package/dist/types/components/gov-side-nav/constants.d.ts +0 -15
- package/dist/types/components/gov-side-nav/gov-side-nav-item.d.d.ts +0 -4
- package/dist/types/components/gov-side-nav/gov-side-nav-item.d.ts +0 -67
- package/dist/types/components/gov-side-nav/gov-side-nav.d.ts +0 -32
- package/dist/types/components/gov-statsbar/constants.d.ts +0 -18
- package/dist/types/components/gov-statsbar/gov-statsbar-item.d.ts +0 -14
- package/dist/types/components/gov-statsbar/gov-statsbar.d.ts +0 -19
- package/dist/types/core/constants/variants.d.ts +0 -12
- package/dist/types/pages/Cookiebar.d.ts +0 -3
- package/dist/types/pages/Modal.d.ts +0 -3
- package/dist/types/pages/Nav.d.ts +0 -3
- package/dist/types/pages/Prompt.d.ts +0 -3
- package/dist/types/pages/SideNav.d.ts +0 -3
- package/dist/types/pages/Statsbar.d.ts +0 -3
- /package/dist/components/{p-344c72d7.js.map → p-19c681a3.js.map} +0 -0
- /package/dist/core/{p-e44a0fee.js.map → p-052cc573.js.map} +0 -0
- /package/dist/core/{p-344c72d7.js.map → p-169b67af.js.map} +0 -0
- /package/dist/core/{p-7ba4daf4.js.map → p-2614044c.js.map} +0 -0
- /package/dist/core/{p-e0e2e9c1.js.map → p-45a30859.js.map} +0 -0
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-
|
|
2
|
-
import { c as createID } from './string.utils-
|
|
3
|
-
import { g as govHost,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { g as govForm } from './form-738c5b12.js';
|
|
8
|
-
import './gov.log-431da6b2.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
|
|
2
|
+
import { c as createID } from './string.utils-5ce3f551.js';
|
|
3
|
+
import { g as govHost, c as toBoolAttr, t as toBoolAttrIfDefined } from './template-3d84d705.js';
|
|
4
|
+
import { g as govForm } from './form-472e078d.js';
|
|
5
|
+
import { i as inheritAriaAttributes } from './accessibility-f83c991a.js';
|
|
6
|
+
import { A as AttributeObserver, a as ariaAttributes } from './attribute-5561aca4.js';
|
|
9
7
|
import './sizes-5b9e579f.js';
|
|
10
|
-
import './
|
|
11
|
-
import './constants-
|
|
12
|
-
import './
|
|
13
|
-
import './constants-
|
|
8
|
+
import './utils-2b4ef320.js';
|
|
9
|
+
import './constants-7307438d.js';
|
|
10
|
+
import './colors-02c1ea96.js';
|
|
11
|
+
import './constants-6d727976.js';
|
|
12
|
+
import './constants-d42abf99.js';
|
|
14
13
|
|
|
15
14
|
const FormFileClass = {
|
|
16
15
|
root: 'gov-form-file',
|
|
17
16
|
area: 'gov-form-file__area',
|
|
18
|
-
label: 'gov-form-file__label',
|
|
19
17
|
input: 'gov-form-file__input',
|
|
20
|
-
list: 'gov-form-file__list',
|
|
21
|
-
item: 'gov-form-file__item',
|
|
22
18
|
attachments: 'gov-form-file__attachments',
|
|
23
19
|
};
|
|
24
20
|
|
|
@@ -48,9 +44,6 @@ function fileSizeValidation(file, maxSize) {
|
|
|
48
44
|
return fileSize <= maxSize;
|
|
49
45
|
}
|
|
50
46
|
|
|
51
|
-
const govFormFileCss = ".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)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-form-file{position:relative;display:block;width:100%}.gov-form-file__label .gov-form-label__label>*:last-child{margin-bottom:0}.gov-form-file__input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0.0001;cursor:pointer}.gov-form-file__attachments{margin-top:1rem 0rem 0rem}.gov-form-file__item{display:flex;gap:1rem;align-items:center}.gov-form-file[disabled=\"\"] .gov-form-file__label .gov-form-label__label,.gov-form-file[disabled=true i] .gov-form-file__label .gov-form-label__label,.gov-form-file[disabled=\"1\"] .gov-form-file__label .gov-form-label__label{pointer-events:none}.gov-form-file[disabled=\"\"] .gov-form-file__label .gov-form-label__label *,.gov-form-file[disabled=true i] .gov-form-file__label .gov-form-label__label *,.gov-form-file[disabled=\"1\"] .gov-form-file__label .gov-form-label__label *{color:var(--gov-form-file-disabled-color, var(--gov-color-secondary-600))}.gov-form-file[expanded=\"\"] .gov-form-file__area,.gov-form-file[expanded=true i] .gov-form-file__area,.gov-form-file[expanded=\"1\"] .gov-form-file__area{position:relative;width:100%;padding:2rem 1.375rem 1.375rem;border:var(--gov-form-file-border, 0.0625rem dashed var(--gov-color-secondary-500));text-align:center;transition:background-color 150ms ease-in-out;will-change:background-color}.gov-form-file[expanded=\"\"] .gov-form-file__area.highlight,.gov-form-file[expanded=true i] .gov-form-file__area.highlight,.gov-form-file[expanded=\"1\"] .gov-form-file__area.highlight{background-color:var(--gov-color-primary-200)}.gov-form-file[expanded=\"\"] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=true i] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=\"1\"] .gov-form-file__label .gov-form-label__label{width:100%;padding:1.375rem;border:var(--gov-form-file-border, 0.0625rem dashed var(--gov-color-secondary-500));text-align:center}.gov-form-file[expanded=\"\"] .gov-form-file__attachments,.gov-form-file[expanded=true i] .gov-form-file__attachments,.gov-form-file[expanded=\"1\"] .gov-form-file__attachments{margin:1.5rem 0rem 0rem}.gov-form-file[expanded=\"\"][invalid=\"\"] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=\"\"][invalid=true i] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=\"\"][invalid=\"1\"] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=true i][invalid=\"\"] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=true i][invalid=true i] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=true i][invalid=\"1\"] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=\"1\"][invalid=\"\"] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=\"1\"][invalid=true i] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=\"1\"][invalid=\"1\"] .gov-form-file__label .gov-form-label__label{border-color:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-file[expanded=\"\"][invalid=\"\"] .gov-form-file__area,.gov-form-file[expanded=\"\"][invalid=true i] .gov-form-file__area,.gov-form-file[expanded=\"\"][invalid=\"1\"] .gov-form-file__area,.gov-form-file[expanded=true i][invalid=\"\"] .gov-form-file__area,.gov-form-file[expanded=true i][invalid=true i] .gov-form-file__area,.gov-form-file[expanded=true i][invalid=\"1\"] .gov-form-file__area,.gov-form-file[expanded=\"1\"][invalid=\"\"] .gov-form-file__area,.gov-form-file[expanded=\"1\"][invalid=true i] .gov-form-file__area,.gov-form-file[expanded=\"1\"][invalid=\"1\"] .gov-form-file__area{border-color:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-file[expanded=\"\"][disabled=\"\"] .gov-form-file__area,.gov-form-file[expanded=\"\"][disabled=true i] .gov-form-file__area,.gov-form-file[expanded=\"\"][disabled=\"1\"] .gov-form-file__area,.gov-form-file[expanded=true i][disabled=\"\"] .gov-form-file__area,.gov-form-file[expanded=true i][disabled=true i] .gov-form-file__area,.gov-form-file[expanded=true i][disabled=\"1\"] .gov-form-file__area,.gov-form-file[expanded=\"1\"][disabled=\"\"] .gov-form-file__area,.gov-form-file[expanded=\"1\"][disabled=true i] .gov-form-file__area,.gov-form-file[expanded=\"1\"][disabled=\"1\"] .gov-form-file__area{pointer-events:none;color:var(--gov-form-file-disabled-color, var(--gov-color-secondary-600))}@media (min-width: 30em){.gov-form-file[expanded=\"\"] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=true i] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=\"1\"] .gov-form-file__label .gov-form-label__label{padding:2rem}}";
|
|
52
|
-
const GovFormFileStyle0 = govFormFileCss;
|
|
53
|
-
|
|
54
47
|
const GovFormFile = class {
|
|
55
48
|
constructor(hostRef) {
|
|
56
49
|
registerInstance(this, hostRef);
|
|
@@ -62,7 +55,7 @@ const GovFormFile = class {
|
|
|
62
55
|
this.expanded = false;
|
|
63
56
|
this.required = false;
|
|
64
57
|
this.disabled = false;
|
|
65
|
-
this.resetAfterPick =
|
|
58
|
+
this.resetAfterPick = false;
|
|
66
59
|
this.ignoreFileDuplicationCheck = false;
|
|
67
60
|
this.displayAttachments = true;
|
|
68
61
|
this.name = undefined;
|
|
@@ -74,11 +67,10 @@ const GovFormFile = class {
|
|
|
74
67
|
this.errorSize = "Soubor je větší než povolená velikost {FILE_SIZE}";
|
|
75
68
|
this.errorAccept = "Soubor tohoto typu není povolen";
|
|
76
69
|
this.attachmentsLabel = "Přílohy";
|
|
77
|
-
this.
|
|
78
|
-
this.
|
|
79
|
-
this.wcagRemoveLabel = "Odebrat soubor {FILE_NAME}";
|
|
80
|
-
this.wcagAttachmentsLabel = "Přílohy";
|
|
70
|
+
this.accessibleRemoveLabel = "Odebrat soubor {FILE_NAME}";
|
|
71
|
+
this.accessibleAttachmentsLabel = "Přílohy";
|
|
81
72
|
this.files = [];
|
|
73
|
+
this.inheritedAttributes = {};
|
|
82
74
|
this.fileId = createID("GovInputFile");
|
|
83
75
|
this.h = govHost(this.host);
|
|
84
76
|
this.f = govForm(this.h);
|
|
@@ -162,17 +154,29 @@ const GovFormFile = class {
|
|
|
162
154
|
this.reset().finally();
|
|
163
155
|
}
|
|
164
156
|
}
|
|
165
|
-
|
|
157
|
+
componentDidLoad() {
|
|
158
|
+
this.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {
|
|
159
|
+
this.onAriaAttributeChange(attributeName, newValue);
|
|
160
|
+
});
|
|
161
|
+
this.attributeObserver.startObserving(ariaAttributes);
|
|
162
|
+
}
|
|
163
|
+
componentWillLoad() {
|
|
166
164
|
this.f.passAttrToLabel("required", String(this.required));
|
|
167
165
|
this.passControlAttrs();
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
166
|
+
this.inheritedAttributes = inheritAriaAttributes(this.host);
|
|
167
|
+
}
|
|
168
|
+
async componentDidRender() {
|
|
172
169
|
this.registerListeners();
|
|
173
170
|
}
|
|
171
|
+
disconnectedCallback() {
|
|
172
|
+
this.attributeObserver.stopObserving();
|
|
173
|
+
}
|
|
174
|
+
onAriaAttributeChange(attributeName, newValue) {
|
|
175
|
+
this.host.removeAttribute(attributeName);
|
|
176
|
+
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
177
|
+
}
|
|
174
178
|
render() {
|
|
175
|
-
return (h(Host, { key: '
|
|
179
|
+
return (h(Host, { key: '2df963d49d08bbb6f0ca9041537476932f4d6f60', class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, h("div", { key: 'a717c9e31dd719ed2c30c5ea169045df4867bddb', class: FormFileClass.area, ref: el => (this.areaRef = el) }, h("slot", { key: '9abd5561667dac90bd8554403250685b1ed54b65' }), h("input", Object.assign({ key: '2494399376b69a75eb136cad01568de49b8819a8', class: FormFileClass.input, ref: el => (this.inputRef = el), id: this.identifier || this.fileId, type: "file", name: this.name, accept: this.accept, multiple: this.multiple, onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, disabled: this.disabled }, this.inheritedAttributes, { "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled) }))), this.h.hasSlot("attachments") ? (h("div", { class: FormFileClass.attachments }, h("slot", { name: "attachments" }))) : null, this.files.length && this.displayAttachments ? (h("div", { class: FormFileClass.attachments }, h("gov-attachments", { label: this.accessibleAttachmentsLabel, "accessible-label": this.accessibleAttachmentsLabel }, this.files.map(item => (h("gov-attachments-item", { "accessible-remove-labelledby": item.id, "on-gov-remove": () => this.onRemoveFileHandler(item) }, h("span", { class: "sr-only", id: item.id }, this.accessibleRemoveLabel.replace("{FILE_NAME}", item.file.name)), item.file.name, item.acceptValid === false ? (h("gov-form-message", { slot: "message", color: "error" }, h("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), item.acceptValid === false ? this.errorAccept : null)) : null, item.sizeValid === false ? (h("gov-form-message", { slot: "message", color: "error" }, h("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), this.errorSize.replace("{FILE_SIZE}", formatBytes(this.maxFileSize)))) : null, h("span", { slot: "info" }, "(", formatBytes(item.file.size), ")"))))))) : null));
|
|
176
180
|
}
|
|
177
181
|
onRemoveFileHandler(file) {
|
|
178
182
|
const index = this.files.findIndex(item => item.id === file.id);
|
|
@@ -227,21 +231,12 @@ const GovFormFile = class {
|
|
|
227
231
|
this.files = [];
|
|
228
232
|
this.inputRef.value = '';
|
|
229
233
|
}
|
|
230
|
-
/**
|
|
231
|
-
* Validate the WCAG attributes of the component
|
|
232
|
-
*/
|
|
233
|
-
async validateWcag() {
|
|
234
|
-
validateWcagRef(this.wcagDescribedBy, "wcag-described-by", FormFileClass.root);
|
|
235
|
-
validateWcagRef(this.wcagLabelledBy, "wcag-labelled-by", FormFileClass.root);
|
|
236
|
-
validateWcagLabelFor(this.identifier || this.fileId, this.wcagLabelledBy, FormFileClass.root);
|
|
237
|
-
}
|
|
238
234
|
get host() { return getElement(this); }
|
|
239
235
|
static get watchers() { return {
|
|
240
236
|
"disabled": ["watchControlAttrs"],
|
|
241
237
|
"invalid": ["watchControlAttrs"]
|
|
242
238
|
}; }
|
|
243
239
|
};
|
|
244
|
-
GovFormFile.style = GovFormFileStyle0;
|
|
245
240
|
|
|
246
241
|
export { GovFormFile as gov_form_file };
|
|
247
242
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-form-file.entry.js","mappings":";;;;;;;;;;;;;;AAAO,MAAM,aAAa,GAAG;IAC5B,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE,sBA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":["../../../packages/core/src/components/gov-form/file/constants.ts","../../../packages/core/src/utils/file.utils.ts","../../../packages/core/src/components/gov-form/file/gov-form-file.scss?tag=gov-form-file","../../../packages/core/src/components/gov-form/file/gov-form-file.tsx"],"sourcesContent":["export const FormFileClass = {\n\troot: 'gov-form-file',\n\tarea: 'gov-form-file__area',\n\tlabel: 'gov-form-file__label',\n\tinput: 'gov-form-file__input',\n\tlist: 'gov-form-file__list',\n\titem: 'gov-form-file__item',\n\tattachments: 'gov-form-file__attachments',\n}\n","export function formatBytes(bytes: any): string {\n\tconst units = ['bytes', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']\n\tlet l = 0,\n\t\tn = parseInt(bytes, 10) || 0\n\n\twhile (n >= 1024 && ++l) {\n\t\tn = n / 1024\n\t}\n\n\treturn n.toFixed(n < 10 && l > 0 ? 1 : 0) + ' ' + units[l]\n}\n\nexport function fileAcceptValidation(file: File, accept: string): boolean {\n\tif (typeof accept === 'string' && accept.length) {\n\t\treturn (\n\t\t\taccept\n\t\t\t\t.replace(/\\s/g, '')\n\t\t\t\t.split(',')\n\t\t\t\t.filter(accept => {\n\t\t\t\t\treturn new RegExp(accept.replace('*', '.*')).test(file.type)\n\t\t\t\t}).length > 0\n\t\t)\n\t} else {\n\t\treturn true\n\t}\n}\n\nexport function fileSizeValidation(file: File, maxSize: number): boolean {\n\tconst fileSize = Math.round(file.size)\n\treturn fileSize <= maxSize\n}\n","/*\n * File\n */\n\n$class: \".gov-form-file\";\n\n#{$class} {\n\t@include base();\n\t&__label .gov-form-label__label {\n\t\t@include reset-last-margin();\n\t}\n\t&__input {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\topacity: 0.0001;\n\t\tcursor: pointer;\n\t}\n\t&__attachments {\n\t\tmargin-top: rem-calc(16 0 0);\n\t}\n\t&__item {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\talign-items: center;\n\t}\n\n\t// STATES\n\t@include parameter(\"disabled\") {\n\t\t#{$class} {\n\t\t\t&__label .gov-form-label__label {\n\t\t\t\tpointer-events: none;\n\t\t\t\t* {\n\t\t\t\t\tcolor: $form-file-disabled-color;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@include parameter(\"expanded\") {\n\t\t#{$class} {\n\t\t\t&__area {\n\t\t\t\tposition: relative;\n\t\t\t\twidth: 100%;\n\t\t\t\tpadding: rem-calc(32) rem-calc(22) rem-calc(22);\n\t\t\t\tborder: $form-file-border;\n\t\t\t\ttext-align: center;\n\t\t\t\ttransition: background-color $t ease-in-out;\n\t\t\t\twill-change: background-color;\n\t\t\t\t&.highlight {\n\t\t\t\t\tbackground-color: color(\"primary.200\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&__label .gov-form-label__label {\n\t\t\t\twidth: 100%;\n\t\t\t\tpadding: rem-calc(22);\n\t\t\t\tborder: $form-file-border;\n\t\t\t\ttext-align: center;\n\t\t\t}\n\t\t\t&__attachments {\n\t\t\t\tmargin: rem-calc(24 0 0);\n\t\t\t}\n\t\t}\n\n\t\t// STATES\n\t\t@include parameter(\"invalid\") {\n\t\t\t#{$class} {\n\t\t\t\t&__label .gov-form-label__label {\n\t\t\t\t\tborder-color: $form-state-color-error;\n\t\t\t\t}\n\t\t\t\t&__area {\n\t\t\t\t\tborder-color: $form-state-color-error;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@include parameter(\"disabled\") {\n\t\t\t#{$class} {\n\t\t\t\t&__area {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\tcolor: $form-file-disabled-color;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t@include parameter(\"expanded\") {\n\t\t\t#{$class} {\n\t\t\t\t&__label .gov-form-label__label {\n\t\t\t\t\tpadding: rem-calc(32);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {FormFileClass} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {validateWcagLabelFor, validateWcagRef} from \"../../../helpers/Validate/wcag\"\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\nimport {fileAcceptValidation, fileSizeValidation, formatBytes} from \"../../../utils/file.utils\"\nimport {delay} from \"../../../utils/utils\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport {GovFormFileEvent, GovFormFileItem} from \"./gov-form-file.types\"\n\n@Component({\n\ttag: \"gov-form-file\",\n\tstyleUrl: \"gov-form-file.scss\",\n})\nexport class GovFormFile {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\n\tprivate areaRef?: HTMLDivElement\n\tprivate inputRef?: HTMLInputElement\n\tprivate readonly fileId: string\n\n\tconstructor() {\n\t\tthis.fileId = createID(\"GovInputFile\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormFileElement\n\t/**\n\t * Expands the file input to fill 100% of the container width.\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the File component disabled.\n\t * This prevents users from being able to interact with the File, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * After selecting the files, the main input element will be reset.\n\t * The propagation of the event with the selected files will not be affected.\n\t */\n\t@Prop({attribute: \"reset-after-pick\"}) readonly resetAfterPick: boolean = true\n\t/**\n\t * Selected files will not be checked for duplicates based on name and size.\n\t */\n\t@Prop({attribute: \"ignore-file-duplication-check\"}) readonly ignoreFileDuplicationCheck: boolean = false\n\t/**\n\t * Show list of attachments\n\t */\n\t@Prop({attribute: \"display-attachments\"}) readonly displayAttachments: boolean = true\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept\n\t */\n\t@Prop() readonly accept: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple\n\t */\n\t@Prop() readonly multiple: boolean = false\n\t/**\n\t * Maximum embedded file size\n\t */\n\t@Prop({attribute: \"max-file-size\"}) readonly maxFileSize: number = -1\n\t/**\n\t * Custom File identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Error message when the maximum file size is exceeded\n\t */\n\t@Prop({attribute: \"error-size\"}) readonly errorSize: string = \"Soubor je větší než povolená velikost {FILE_SIZE}\"\n\t/**\n\t * Insert unsupported file error message\n\t */\n\t@Prop({attribute: \"error-accept\"}) readonly errorAccept: string = \"Soubor tohoto typu není povolen\"\n\t/**\n\t * Description of the list of attachments\n\t */\n\t@Prop({attribute: \"attachments-label\"}) readonly attachmentsLabel: string = \"Přílohy\"\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({attribute: \"wcag-described-by\"}) readonly wcagDescribedBy: string\n\t/**\n\t * Indicates the id of a component that labels the input.\n\t */\n\t@Prop({attribute: \"wcag-labelled-by\"}) readonly wcagLabelledBy: string\n\t/**\n\t * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: \"wcag-remove-label\"}) readonly wcagRemoveLabel: string = \"Odebrat soubor {FILE_NAME}\"\n\t/**\n\t * Adds accessible label for the list of attachments.\n\t */\n\t@Prop({attribute: \"wcag-attachments-label\"}) readonly wcagAttachmentsLabel: string = \"Přílohy\"\n\t/**\n\t * Emitted when the File has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Emitted when the File loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when the list of inserted files is changed\n\t */\n\t@Event({eventName: \"gov-files\"}) govFiles: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when a new file is added\n\t */\n\t@Event({eventName: \"gov-add-file\"}) govAddFile: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when a file is removed from the list\n\t */\n\t@Event({eventName: \"gov-remove-file\"}) govRemoveFile: EventEmitter<GovFormFileEvent>\n\n\t@State() files: GovFormFileItem[] = []\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"File\")\n\t}\n\n\n\tprivate registerListeners() {\n\t\tfunction highlight() {\n\t\t\tthis.areaRef.classList.add(\"highlight\")\n\t\t}\n\n\t\tfunction unhighlight() {\n\t\t\tthis.areaRef.classList.remove(\"highlight\")\n\t\t}\n\n\t\tthis.inputRef.addEventListener(\n\t\t\t\"change\",\n\t\t\te => {\n\t\t\t\te.preventDefault()\n\t\t\t\te.stopPropagation()\n\t\t\t\tconst files = (e.target as HTMLInputElement).files\n\t\t\t\tif (this.resetAfterPick) {\n\t\t\t\t\tif (files.length) {\n\t\t\t\t\t\tthis.validateFiles(files)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthis.validateFiles(files)\n\t\t\t\t}\n\t\t\t},\n\t\t\tfalse,\n\t\t)\n\n\t\tif (this.expanded) {\n\t\t\tconst events = [\"dragover\", \"dragleave\"]\n\t\t\tconst inEvents = [\"dragenter\", \"dragover\", \"mouseenter\"]\n\t\t\tconst outEvents = [\"dragleave\", \"drop\", \"mouseleave\"]\n\n\t\t\tevents.map(eventName => this.inputRef.addEventListener(eventName, this.preventDefaults.bind(this), false))\n\t\t\tinEvents.map(eventName => this.inputRef.addEventListener(eventName, highlight.bind(this), false))\n\t\t\toutEvents.forEach(eventName => this.inputRef.addEventListener(eventName, unhighlight.bind(this), false))\n\n\t\t\tthis.areaRef.addEventListener(\"drop\", this.handleDrop.bind(this), false)\n\t\t}\n\t}\n\n\tpreventDefaults(e) {\n\t\te.preventDefault()\n\t\te.stopPropagation()\n\t}\n\n\thandleDrop(e: DragEvent) {\n\t\tconst dataTransfer = e.dataTransfer\n\t\tthis.validateFiles(dataTransfer.files)\n\t}\n\n\tprivate validateFiles(files: FileList) {\n\t\tlet filesBuffer: GovFormFileItem[] = []\n\t\tArray.from(files).map(file => {\n\t\t\tconst isFile = this.files.find(item => item.file.name === file.name && item.file.size === file.size) || null\n\t\t\tif (isFile === null || this.ignoreFileDuplicationCheck) {\n\t\t\t\tconst isSizeValid = typeof this.maxFileSize === \"number\" && this.maxFileSize > 0 ? fileSizeValidation(file, this.maxFileSize) : true\n\t\t\t\tconst isAcceptValid = fileAcceptValidation(file, this.accept)\n\t\t\t\tconst newFile = {\n\t\t\t\t\tid: createID(\"GovFormFile\"),\n\t\t\t\t\tfile,\n\t\t\t\t\tacceptValid: isAcceptValid,\n\t\t\t\t\tsizeValid: isSizeValid,\n\t\t\t\t}\n\t\t\t\tif (this.displayAttachments) {\n\t\t\t\t\tthis.files = [...this.files, newFile]\n\t\t\t\t} else {\n\t\t\t\t\tfilesBuffer = [...filesBuffer, newFile]\n\t\t\t\t}\n\t\t\t\tthis.govAddFile.emit({\n\t\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\t\tfile: newFile,\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\n\t\tthis.govFiles.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\tfiles: filesBuffer.length ? filesBuffer : this.files,\n\t\t})\n\n\t\tif (this.resetAfterPick) {\n\t\t\tthis.reset().finally()\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\n\t\tthis.registerListeners()\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes([FormFileClass.root])} invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\texpanded={toBoolAttrIfDefined(this.expanded)}>\n\t\t\t\t<div class={FormFileClass.area} ref={el => (this.areaRef = el as HTMLDivElement)}>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t<input\n\t\t\t\t\t\tclass={FormFileClass.input}\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\tid={this.identifier || this.fileId}\n\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\taccept={this.accept}\n\t\t\t\t\t\tmultiple={this.multiple}\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\taria-describedby={this.wcagDescribedBy}\n\t\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot(\"attachments\") ? (\n\t\t\t\t\t<div class={FormFileClass.attachments}>\n\t\t\t\t\t\t<slot name={\"attachments\"}/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t{this.files.length && this.displayAttachments ? (\n\t\t\t\t\t<div class={FormFileClass.attachments}>\n\t\t\t\t\t\t<gov-attachments label={this.wcagAttachmentsLabel} wcag-label={this.wcagAttachmentsLabel}>\n\t\t\t\t\t\t\t{this.files.map(item => (\n\t\t\t\t\t\t\t\t<gov-attachments-item wcag-remove-labelled-by={item.id}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ton-gov-remove={() => this.onRemoveFileHandler(item)}>\n\t\t\t\t\t\t\t\t\t<span class={\"sr-only\"} id={item.id}>\n\t\t\t\t\t\t\t\t\t\t{this.wcagRemoveLabel.replace(\"{FILE_NAME}\", item.file.name)}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t{item.file.name}\n\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? (\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" variant=\"error\">\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\"></gov-icon>\n\t\t\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? this.errorAccept : null}\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\n\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t{item.sizeValid === false ? (\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" variant=\"error\">\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\"></gov-icon>\n\t\t\t\t\t\t\t\t\t\t\t{this.errorSize.replace(\"{FILE_SIZE}\", formatBytes(this.maxFileSize))}\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\n\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t<span slot=\"info\">({formatBytes(item.file.size)})</span>\n\t\t\t\t\t\t\t\t</gov-attachments-item>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</gov-attachments>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onRemoveFileHandler(file: GovFormFileItem) {\n\t\tconst index = this.files.findIndex(item => item.id === file.id)\n\t\tif (index !== -1) {\n\t\t\tconst files = this.files\n\t\t\tconst removeFile = this.files[index]\n\t\t\tfiles.splice(index, 1)\n\t\t\tthis.files = [...files]\n\t\t\tthis.govRemoveFile.emit({\n\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\tfile: removeFile,\n\t\t\t})\n\t\t\tthis.govFiles.emit({\n\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\tfiles,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n\n\t/**\n\t * Returns the reference of the native area element\n\t */\n\t@Method()\n\tasync getAreaRef(): Promise<HTMLDivElement> {\n\t\treturn this.areaRef\n\t}\n\n\t/**\n\t * Remove all files from component state\n\t */\n\t@Method()\n\tasync reset(): Promise<void> {\n\t\tthis.files = []\n\t\tthis.inputRef.value = '';\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagDescribedBy, \"wcag-described-by\", FormFileClass.root)\n\t\tvalidateWcagRef(this.wcagLabelledBy, \"wcag-labelled-by\", FormFileClass.root)\n\t\tvalidateWcagLabelFor(this.identifier || this.fileId, this.wcagLabelledBy, FormFileClass.root)\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"gov-form-file.entry.js","mappings":";;;;;;;;;;;;;AAAO,MAAM,aAAa,GAAG;IAC5B,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EAAE,4BAA4B;CACzC;;SCLe,WAAW,CAAC,KAAU;IACrC,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;IAC/E,IAAI,CAAC,GAAG,CAAC,EACR,CAAC,GAAG,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,CAAA;IAE7B,OAAO,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,EAAE;QACxB,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;KACZ;IAED,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;AAC3D,CAAC;SAEe,oBAAoB,CAAC,IAAU,EAAE,MAAc;IAC9D,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE;QAChD,QACC,MAAM;aACJ,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;aAClB,KAAK,CAAC,GAAG,CAAC;aACV,MAAM,CAA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AAI,CAAC,OAAO,CAAC,IAAI,CAAC;YACjB,SAAS,EAAE,aAAa,CAAC,IAAI;YAC7B,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;IAEO,eAAe,CAAC,CAAQ;QAC/B,CAAC,CAAC,eAAe,EAAE,CAAA;KACnB;;;;IAMD,MAAM,MAAM;QACX,OAAO,IAAI,CAAC,QAAQ,CAAA;KACpB;;;;IAMD,MAAM,UAAU;QACf,OAAO,IAAI,CAAC,OAAO,CAAA;KACnB;;;;IAMD,MAAM,KAAK;QACV,IAAI,CAAC,KAAK,GAAG,EAAE,CAAA;QACf,IAAI,CAAC,QAAQ,CAAC,KAAK,GAAG,EAAE,CAAC;KACzB;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-form/file/constants.ts","../../../packages/core/src/utils/file.utils.ts","../../../packages/core/src/components/gov-form/file/gov-form-file.tsx"],"sourcesContent":["export const FormFileClass = {\n\troot: 'gov-form-file',\n\tarea: 'gov-form-file__area',\n\tinput: 'gov-form-file__input',\n\tattachments: 'gov-form-file__attachments',\n}\n","export function formatBytes(bytes: any): string {\n\tconst units = ['bytes', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']\n\tlet l = 0,\n\t\tn = parseInt(bytes, 10) || 0\n\n\twhile (n >= 1024 && ++l) {\n\t\tn = n / 1024\n\t}\n\n\treturn n.toFixed(n < 10 && l > 0 ? 1 : 0) + ' ' + units[l]\n}\n\nexport function fileAcceptValidation(file: File, accept: string): boolean {\n\tif (typeof accept === 'string' && accept.length) {\n\t\treturn (\n\t\t\taccept\n\t\t\t\t.replace(/\\s/g, '')\n\t\t\t\t.split(',')\n\t\t\t\t.filter(accept => {\n\t\t\t\t\treturn new RegExp(accept.replace('*', '.*')).test(file.type)\n\t\t\t\t}).length > 0\n\t\t)\n\t} else {\n\t\treturn true\n\t}\n}\n\nexport function fileSizeValidation(file: File, maxSize: number): boolean {\n\tconst fileSize = Math.round(file.size)\n\treturn fileSize <= maxSize\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {FormFileClass} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {fileAcceptValidation, fileSizeValidation, formatBytes} from \"../../../utils/file.utils\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport {GovFormFileEvent, GovFormFileItem} from \"./gov-form-file.types\"\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\n\n@Component({\n\ttag: \"gov-form-file\",\n})\nexport class GovFormFile {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\n\tprivate areaRef?: HTMLDivElement\n\tprivate inputRef?: HTMLInputElement\n\tprivate readonly fileId: string\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.fileId = createID(\"GovInputFile\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormFileElement\n\t/**\n\t * Expands the file input to fill 100% of the container width.\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the File component disabled.\n\t * This prevents users from being able to interact with the File, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * After selecting the files, the main input element will be reset.\n\t * The propagation of the event with the selected files will not be affected.\n\t */\n\t@Prop({attribute: \"reset-after-pick\"}) readonly resetAfterPick: boolean = false\n\t/**\n\t * Selected files will not be checked for duplicates based on name and size.\n\t */\n\t@Prop({attribute: \"ignore-file-duplication-check\"}) readonly ignoreFileDuplicationCheck: boolean = false\n\t/**\n\t * Show list of attachments\n\t */\n\t@Prop({attribute: \"display-attachments\"}) readonly displayAttachments: boolean = true\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept\n\t */\n\t@Prop() readonly accept: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple\n\t */\n\t@Prop() readonly multiple: boolean = false\n\t/**\n\t * Maximum embedded file size\n\t */\n\t@Prop({attribute: \"max-file-size\"}) readonly maxFileSize: number = -1\n\t/**\n\t * Custom File identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Error message when the maximum file size is exceeded\n\t */\n\t@Prop({attribute: \"error-size\"}) readonly errorSize: string = \"Soubor je větší než povolená velikost {FILE_SIZE}\"\n\t/**\n\t * Insert unsupported file error message\n\t */\n\t@Prop({attribute: \"error-accept\"}) readonly errorAccept: string = \"Soubor tohoto typu není povolen\"\n\t/**\n\t * Description of the list of attachments\n\t */\n\t@Prop({attribute: \"attachments-label\"}) readonly attachmentsLabel: string = \"Přílohy\"\n\t/**\n\t * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: \"accessible-remove-label\"}) readonly accessibleRemoveLabel: string = \"Odebrat soubor {FILE_NAME}\"\n\t/**\n\t * Adds accessible label for the list of attachments.\n\t */\n\t@Prop({attribute: \"accessible-attachments-label\"}) readonly accessibleAttachmentsLabel: string = \"Přílohy\"\n\t/**\n\t * Emitted when the File has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Emitted when the File loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when the list of inserted files is changed\n\t */\n\t@Event({eventName: \"gov-files\"}) govFiles: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when a new file is added\n\t */\n\t@Event({eventName: \"gov-add-file\"}) govAddFile: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when a file is removed from the list\n\t */\n\t@Event({eventName: \"gov-remove-file\"}) govRemoveFile: EventEmitter<GovFormFileEvent>\n\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() files: GovFormFileItem[] = []\n\t@State() inheritedAttributes: Attributes = {}\n\n\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"File\")\n\t}\n\n\n\tprivate registerListeners() {\n\t\tfunction highlight() {\n\t\t\tthis.areaRef.classList.add(\"highlight\")\n\t\t}\n\n\t\tfunction unhighlight() {\n\t\t\tthis.areaRef.classList.remove(\"highlight\")\n\t\t}\n\n\t\tthis.inputRef.addEventListener(\n\t\t\t\"change\",\n\t\t\te => {\n\t\t\t\te.preventDefault()\n\t\t\t\te.stopPropagation()\n\t\t\t\tconst files = (e.target as HTMLInputElement).files\n\t\t\t\tif (this.resetAfterPick) {\n\t\t\t\t\tif (files.length) {\n\t\t\t\t\t\tthis.validateFiles(files)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthis.validateFiles(files)\n\t\t\t\t}\n\t\t\t},\n\t\t\tfalse,\n\t\t)\n\n\t\tif (this.expanded) {\n\t\t\tconst events = [\"dragover\", \"dragleave\"]\n\t\t\tconst inEvents = [\"dragenter\", \"dragover\", \"mouseenter\"]\n\t\t\tconst outEvents = [\"dragleave\", \"drop\", \"mouseleave\"]\n\n\t\t\tevents.map(eventName => this.inputRef.addEventListener(eventName, this.preventDefaults.bind(this), false))\n\t\t\tinEvents.map(eventName => this.inputRef.addEventListener(eventName, highlight.bind(this), false))\n\t\t\toutEvents.forEach(eventName => this.inputRef.addEventListener(eventName, unhighlight.bind(this), false))\n\n\t\t\tthis.areaRef.addEventListener(\"drop\", this.handleDrop.bind(this), false)\n\t\t}\n\t}\n\n\tpreventDefaults(e) {\n\t\te.preventDefault()\n\t\te.stopPropagation()\n\t}\n\n\thandleDrop(e: DragEvent) {\n\t\tconst dataTransfer = e.dataTransfer\n\t\tthis.validateFiles(dataTransfer.files)\n\t}\n\n\tprivate validateFiles(files: FileList) {\n\t\tlet filesBuffer: GovFormFileItem[] = []\n\t\tArray.from(files).map(file => {\n\t\t\tconst isFile = this.files.find(item => item.file.name === file.name && item.file.size === file.size) || null\n\t\t\tif (isFile === null || this.ignoreFileDuplicationCheck) {\n\t\t\t\tconst isSizeValid = typeof this.maxFileSize === \"number\" && this.maxFileSize > 0 ? fileSizeValidation(file, this.maxFileSize) : true\n\t\t\t\tconst isAcceptValid = fileAcceptValidation(file, this.accept)\n\t\t\t\tconst newFile = {\n\t\t\t\t\tid: createID(\"GovFormFile\"),\n\t\t\t\t\tfile,\n\t\t\t\t\tacceptValid: isAcceptValid,\n\t\t\t\t\tsizeValid: isSizeValid,\n\t\t\t\t}\n\t\t\t\tif (this.displayAttachments) {\n\t\t\t\t\tthis.files = [...this.files, newFile]\n\t\t\t\t} else {\n\t\t\t\t\tfilesBuffer = [...filesBuffer, newFile]\n\t\t\t\t}\n\t\t\t\tthis.govAddFile.emit({\n\t\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\t\tfile: newFile,\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\n\t\tthis.govFiles.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\tfiles: filesBuffer.length ? filesBuffer : this.files,\n\t\t})\n\n\t\tif (this.resetAfterPick) {\n\t\t\tthis.reset().finally()\n\t\t}\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.registerListeners()\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes([FormFileClass.root])}\n\t\t\t\t invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t expanded={toBoolAttrIfDefined(this.expanded)}>\n\t\t\t\t<div class={FormFileClass.area} ref={el => (this.areaRef = el as HTMLDivElement)}>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t<input\n\t\t\t\t\t\tclass={FormFileClass.input}\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\tid={this.identifier || this.fileId}\n\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\taccept={this.accept}\n\t\t\t\t\t\tmultiple={this.multiple}\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot(\"attachments\") ? (\n\t\t\t\t\t<div class={FormFileClass.attachments}>\n\t\t\t\t\t\t<slot name={\"attachments\"}/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t{this.files.length && this.displayAttachments ? (\n\t\t\t\t\t<div class={FormFileClass.attachments}>\n\t\t\t\t\t\t<gov-attachments label={this.accessibleAttachmentsLabel}\n\t\t\t\t\t\t\t\t\t\t accessible-label={this.accessibleAttachmentsLabel}>\n\t\t\t\t\t\t\t{this.files.map(item => (\n\t\t\t\t\t\t\t\t<gov-attachments-item accessible-remove-labelledby={item.id}\n\t\t\t\t\t\t\t\t\t\t\t\t\t on-gov-remove={() => this.onRemoveFileHandler(item)}>\n\t\t\t\t\t\t\t\t\t<span class={\"sr-only\"} id={item.id}>\n\t\t\t\t\t\t\t\t\t\t{this.accessibleRemoveLabel.replace(\"{FILE_NAME}\", item.file.name)}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t{item.file.name}\n\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? (\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" color=\"error\">\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\"></gov-icon>\n\t\t\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? this.errorAccept : null}\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\n\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t{item.sizeValid === false ? (\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" color=\"error\">\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\"></gov-icon>\n\t\t\t\t\t\t\t\t\t\t\t{this.errorSize.replace(\"{FILE_SIZE}\", formatBytes(this.maxFileSize))}\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\n\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t<span slot=\"info\">({formatBytes(item.file.size)})</span>\n\t\t\t\t\t\t\t\t</gov-attachments-item>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</gov-attachments>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onRemoveFileHandler(file: GovFormFileItem) {\n\t\tconst index = this.files.findIndex(item => item.id === file.id)\n\t\tif (index !== -1) {\n\t\t\tconst files = this.files\n\t\t\tconst removeFile = this.files[index]\n\t\t\tfiles.splice(index, 1)\n\t\t\tthis.files = [...files]\n\t\t\tthis.govRemoveFile.emit({\n\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\tfile: removeFile,\n\t\t\t})\n\t\t\tthis.govFiles.emit({\n\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\tfiles,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n\n\t/**\n\t * Returns the reference of the native area element\n\t */\n\t@Method()\n\tasync getAreaRef(): Promise<HTMLDivElement> {\n\t\treturn this.areaRef\n\t}\n\n\t/**\n\t * Remove all files from component state\n\t */\n\t@Method()\n\tasync reset(): Promise<void> {\n\t\tthis.files = []\n\t\tthis.inputRef.value = '';\n\t}\n}\n"],"version":3}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as Host, g as getElement } from './index-
|
|
2
|
-
import { a as FormGroupClass, b as FormGroupSizes, c as FormGroupOrientation } from './constants-
|
|
3
|
-
import { g as govHost } from './template-
|
|
4
|
-
import { v as validateProp } from './props-
|
|
5
|
-
import './utils-
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
|
|
2
|
+
import { a as FormGroupClass, b as FormGroupSizes, c as FormGroupOrientation } from './constants-501eb756.js';
|
|
3
|
+
import { g as govHost } from './template-3d84d705.js';
|
|
4
|
+
import { v as validateProp } from './props-c82e1abf.js';
|
|
5
|
+
import './utils-2b4ef320.js';
|
|
6
6
|
import './sizes-5b9e579f.js';
|
|
7
|
-
import './gov.log-
|
|
8
|
-
import './win-
|
|
9
|
-
|
|
10
|
-
const govFormGroupCss = ".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)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}gov-form-group,gov-form-radio-group,gov-form-checkbox-group,.gov-form-group{position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap=\"2xs\"],gov-form-radio-group[gap=\"2xs\"],gov-form-checkbox-group[gap=\"2xs\"],.gov-form-group[gap=\"2xs\"]{gap:0.25rem}gov-form-group[gap=xs],gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-group[gap=xs]{gap:0.5rem}gov-form-group[gap=s],gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-group[gap=s]{gap:0.75rem}gov-form-group[gap=m],gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-group[gap=m]{gap:1rem}gov-form-group[gap=l],gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-group[gap=l]{gap:1.25rem}";
|
|
11
|
-
const GovFormGroupStyle0 = govFormGroupCss;
|
|
7
|
+
import './gov.log-6e9faad2.js';
|
|
8
|
+
import './win-cec370ad.js';
|
|
12
9
|
|
|
13
10
|
const GovFormGroup = class {
|
|
14
11
|
constructor(hostRef) {
|
|
@@ -32,7 +29,7 @@ const GovFormGroup = class {
|
|
|
32
29
|
this.validateOrientation(this.orientation);
|
|
33
30
|
}
|
|
34
31
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: 'ffaed68014e833458faab71b22f44cea5b0e62b0', gap: this.gap, class: this.h.classes(FormGroupClass.root) }, h("slot", { key: '445fb49f6d1d4982fbf37d44fc6b66b030d5de6a' })));
|
|
36
33
|
}
|
|
37
34
|
get host() { return getElement(this); }
|
|
38
35
|
static get watchers() { return {
|
|
@@ -40,7 +37,6 @@ const GovFormGroup = class {
|
|
|
40
37
|
"orientation": ["validateOrientation"]
|
|
41
38
|
}; }
|
|
42
39
|
};
|
|
43
|
-
GovFormGroup.style = GovFormGroupStyle0;
|
|
44
40
|
|
|
45
41
|
export { GovFormGroup as gov_form_group };
|
|
46
42
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-form-group.entry.js","mappings":";;;;;;;;;
|
|
1
|
+
{"file":"gov-form-group.entry.js","mappings":";;;;;;;;;MAea,YAAY;IAGvB;;mBAQ4C,SAAS;2BAIK,UAAU;QAXlE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC5B;IAaD,WAAW,CAAC,QAAgB;QAC1B,IAAI,QAAQ,EAAE;YACZ,YAAY,CAAC,cAAc,EAAE,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,CAAA;SAC5D;KACF;IAGD,mBAAmB,CAAC,QAAgB;QAClC,IAAI,QAAQ,EAAE;YACZ,YAAY,CAAC,oBAAoB,EAAE,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,CAAA;SAClE;KACF;IAED,iBAAiB;QACf,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAC1B,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;KAC3C;IAID,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,IAC7D,8DAAa,CACR,EACR;KACF;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-form/group/gov-form-group.tsx"],"sourcesContent":["import {Component, Element, h, Host, Prop, Watch} from \"@stencil/core\"\nimport {\n FormGroupClass,\n FormGroupOrientation,\n FormGroupOrientationType,\n FormGroupSizes,\n FormGroupSizesType\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\n\n@Component({\n tag: \"gov-form-group\",\n})\nexport class GovFormGroup {\n private readonly h: GovHost\n\n constructor() {\n this.h = govHost(this.host)\n }\n\n @Element() host: HTMLGovFormGroupElement\n /**\n * Gap's size.\n */\n @Prop() readonly gap?: FormGroupSizesType = undefined\n /**\n * Elements orientation\n */\n @Prop() readonly orientation?: FormGroupOrientationType = 'vertical'\n\n @Watch(\"gap\")\n validateGap(newValue: string): void {\n if (newValue) {\n validateProp(FormGroupSizes, newValue, FormGroupClass.root)\n }\n }\n\n @Watch(\"orientation\")\n validateOrientation(newValue: string): void {\n if (newValue) {\n validateProp(FormGroupOrientation, newValue, FormGroupClass.root)\n }\n }\n\n componentWillLoad(): void {\n this.validateGap(this.gap)\n this.validateOrientation(this.orientation)\n }\n\n\n\n render() {\n return (\n <Host gap={this.gap} class={this.h.classes(FormGroupClass.root)}>\n <slot></slot>\n </Host>\n )\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
|
|
2
|
+
import { g as govForm, l as FormInputClass, m as FormInputSizes } from './form-472e078d.js';
|
|
3
|
+
import { g as govHost, c as toBoolAttr, t as toBoolAttrIfDefined, d as toOnOffAttrIfDefined } from './template-3d84d705.js';
|
|
4
|
+
import { v as validateProp } from './props-c82e1abf.js';
|
|
5
|
+
import { c as createID } from './string.utils-5ce3f551.js';
|
|
6
|
+
import { A as AttributeObserver, a as ariaAttributes } from './attribute-5561aca4.js';
|
|
7
|
+
import { i as inheritAriaAttributes } from './accessibility-f83c991a.js';
|
|
8
|
+
import { a as pick } from './utils-2b4ef320.js';
|
|
9
|
+
import { S as Sizes } from './sizes-5b9e579f.js';
|
|
10
|
+
import { C as Colors } from './colors-02c1ea96.js';
|
|
11
|
+
import './constants-7307438d.js';
|
|
12
|
+
import './constants-6d727976.js';
|
|
13
|
+
import './constants-d42abf99.js';
|
|
14
|
+
import './gov.log-6e9faad2.js';
|
|
15
|
+
import './win-cec370ad.js';
|
|
16
|
+
|
|
17
|
+
var Tags;
|
|
18
|
+
(function (Tags) {
|
|
19
|
+
Tags["INPUT"] = "input";
|
|
20
|
+
Tags["TEXTAREA"] = "textarea";
|
|
21
|
+
})(Tags || (Tags = {}));
|
|
22
|
+
const GovFormInput = class {
|
|
23
|
+
constructor(hostRef) {
|
|
24
|
+
registerInstance(this, hostRef);
|
|
25
|
+
this.govFocus = createEvent(this, "gov-focus", 7);
|
|
26
|
+
this.govBlur = createEvent(this, "gov-blur", 7);
|
|
27
|
+
this.govInput = createEvent(this, "gov-input", 7);
|
|
28
|
+
this.govKeyUp = createEvent(this, "gov-keyup", 7);
|
|
29
|
+
this.govHydrated = createEvent(this, "gov-hydrated", 7);
|
|
30
|
+
this.govKeyDown = createEvent(this, "gov-keydown", 7);
|
|
31
|
+
this.value = undefined;
|
|
32
|
+
this.identifier = undefined;
|
|
33
|
+
this.success = undefined;
|
|
34
|
+
this.size = "m";
|
|
35
|
+
this.name = undefined;
|
|
36
|
+
this.multiline = undefined;
|
|
37
|
+
this.rows = undefined;
|
|
38
|
+
this.cols = undefined;
|
|
39
|
+
this.required = false;
|
|
40
|
+
this.disabled = false;
|
|
41
|
+
this.placeholder = undefined;
|
|
42
|
+
this.readonly = undefined;
|
|
43
|
+
this.minlength = undefined;
|
|
44
|
+
this.maxlength = undefined;
|
|
45
|
+
this.min = undefined;
|
|
46
|
+
this.max = undefined;
|
|
47
|
+
this.autocomplete = undefined;
|
|
48
|
+
this.autocorrect = undefined;
|
|
49
|
+
this.spellcheck = undefined;
|
|
50
|
+
this.inputLang = undefined;
|
|
51
|
+
this.type = undefined;
|
|
52
|
+
this.inputType = "text";
|
|
53
|
+
this.role = undefined;
|
|
54
|
+
this.invalid = undefined;
|
|
55
|
+
this.accessibleShowPasswordLabel = 'Zobrazit heslo';
|
|
56
|
+
this.accessibleHidePasswordLabel = 'Skrýt heslo';
|
|
57
|
+
this.focused = undefined;
|
|
58
|
+
this.showPassword = false;
|
|
59
|
+
this.inheritedAttributes = {};
|
|
60
|
+
this.h = govHost(this.host);
|
|
61
|
+
this.inputId = createID("GovInput");
|
|
62
|
+
this.f = govForm(this.h);
|
|
63
|
+
}
|
|
64
|
+
validateSize(newValue) {
|
|
65
|
+
validateProp(FormInputSizes, newValue, FormInputClass.root);
|
|
66
|
+
}
|
|
67
|
+
watchControlAttrs() {
|
|
68
|
+
this.passControlAttrs();
|
|
69
|
+
}
|
|
70
|
+
passControlAttrs() {
|
|
71
|
+
this.f.passAttrToControl("size", this.size);
|
|
72
|
+
this.f.passAttrToControl("success", toBoolAttr(this.success));
|
|
73
|
+
this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
|
|
74
|
+
this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
|
|
75
|
+
this.f.passAttrToControl("type", this.multiline ? Tags.TEXTAREA : Tags.INPUT);
|
|
76
|
+
}
|
|
77
|
+
componentDidLoad() {
|
|
78
|
+
this.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {
|
|
79
|
+
this.onAriaAttributeChange(attributeName, newValue);
|
|
80
|
+
});
|
|
81
|
+
this.attributeObserver.startObserving(ariaAttributes);
|
|
82
|
+
this.govHydrated.emit();
|
|
83
|
+
}
|
|
84
|
+
componentWillLoad() {
|
|
85
|
+
this.validateSize(this.size);
|
|
86
|
+
this.inheritedAttributes = inheritAriaAttributes(this.host);
|
|
87
|
+
}
|
|
88
|
+
componentDidRender() {
|
|
89
|
+
this.passControlAttrs();
|
|
90
|
+
this.f.passAttrToLabel("required", String(this.required));
|
|
91
|
+
}
|
|
92
|
+
onAriaAttributeChange(attributeName, newValue) {
|
|
93
|
+
this.host.removeAttribute(attributeName);
|
|
94
|
+
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
95
|
+
}
|
|
96
|
+
disconnectedCallback() {
|
|
97
|
+
this.attributeObserver.stopObserving();
|
|
98
|
+
}
|
|
99
|
+
render() {
|
|
100
|
+
const Tag = this.multiline ? Tags.TEXTAREA : Tags.INPUT;
|
|
101
|
+
return (h(Host, { key: '8845cf9f05528f9f0d6406c57951a946bf0948e8', class: FormInputClass.root, size: this.size, type: this.type }, this.h.hasSlot("prefix") && h("slot", { key: '653ffd0d75243222bccdba1f16b9a35141cde25d', name: "prefix" }), h("span", { key: 'fee0c7cf371089fb4cb982c0cd4c4e255fab709c', class: "element" }, this.h.hasSlot("left-icon") && h("slot", { key: '4213ffac868698f292dde44c586a6575d66089a8', name: "left-icon" }), this.h.hasSlot("right-icon") && this.inputType !== 'password' && h("slot", { key: 'f75114749a810b0998c3a7b35edbda66b4de29f8', name: "right-icon" }), this.success && !this.multiline &&
|
|
102
|
+
h("gov-icon", { key: '6cd13a7efd2df0c09a5a60960038f2f1dc392e35', slot: "validation-icon", class: "icon-validation", name: "check-lg" }), this.invalid && !this.multiline &&
|
|
103
|
+
h("gov-icon", { key: 'b37db5aac85ded3bc53a185898d46235b675dd95', slot: "validation-icon", class: "icon-validation", name: "exclamation-lg" }), h(Tag, Object.assign({ key: '3ef5352821ef36d25146b43cec9b3f826088d0f1', type: this.inputType === 'password' && this.showPassword ? 'text' : 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), onKeyDown: this.onKeyDownHandler.bind(this), ref: el => (this.inputRef = el), placeholder: this.placeholder, spellcheck: toBoolAttrIfDefined(this.spellcheck), lang: this.inputLang, readonly: toBoolAttrIfDefined(this.readonly), autocomplete: toOnOffAttrIfDefined(this.autocomplete), autocorrect: toOnOffAttrIfDefined(this.autocorrect), minlength: this.minlength, maxlength: this.maxlength, min: this.min, max: this.max, required: this.required, rows: this.rows, cols: this.cols, role: this.role, value: this.value }, this.inheritedAttributes, { "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled) })), this.inputType === 'password' ? (h("gov-button", { color: 'primary', type: 'base', size: this.size, "aria-label": this.showPassword ? this.accessibleHidePasswordLabel : this.accessibleShowPasswordLabel, "on-gov-click": () => this.showPassword = !this.showPassword }, h("gov-icon", { slot: "left-icon", name: "eye", type: "basic" }))) : null), this.h.hasSlot("sufix") && h("slot", { key: '140b086664605e4b6ba88252a07681d7a89dbb95', name: "sufix" })));
|
|
104
|
+
}
|
|
105
|
+
onFocusHandler(e) {
|
|
106
|
+
e.stopPropagation();
|
|
107
|
+
this.focused = true;
|
|
108
|
+
this.govFocus.emit({
|
|
109
|
+
component: FormInputClass.root,
|
|
110
|
+
value: this.value,
|
|
111
|
+
originalEvent: e,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
onBlurHandler(e) {
|
|
115
|
+
e.stopPropagation();
|
|
116
|
+
this.focused = false;
|
|
117
|
+
this.govBlur.emit({
|
|
118
|
+
component: FormInputClass.root,
|
|
119
|
+
value: this.value,
|
|
120
|
+
originalEvent: e,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
onKeyUpHandler(e) {
|
|
124
|
+
e.stopPropagation();
|
|
125
|
+
this.govKeyUp.emit({
|
|
126
|
+
component: FormInputClass.root,
|
|
127
|
+
value: this.value,
|
|
128
|
+
originalEvent: e,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
onKeyDownHandler(e) {
|
|
132
|
+
e.stopPropagation();
|
|
133
|
+
this.govKeyDown.emit({
|
|
134
|
+
component: FormInputClass.root,
|
|
135
|
+
value: this.value,
|
|
136
|
+
originalEvent: e,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
onInputHandler(e) {
|
|
140
|
+
this.value = e.target.value;
|
|
141
|
+
e.stopPropagation();
|
|
142
|
+
this.govInput.emit({
|
|
143
|
+
component: FormInputClass.root,
|
|
144
|
+
value: this.value,
|
|
145
|
+
originalEvent: e,
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Returns the current state of the component
|
|
150
|
+
*/
|
|
151
|
+
async setFocus(options) {
|
|
152
|
+
return this.inputRef.focus(options);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Sets the ordered value of the element
|
|
156
|
+
*/
|
|
157
|
+
async setValue(value) {
|
|
158
|
+
this.value = value;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Clears input value
|
|
162
|
+
*/
|
|
163
|
+
async clearValue() {
|
|
164
|
+
this.value = "";
|
|
165
|
+
this.inputRef.value = "";
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Returns an instance of the native html input element
|
|
169
|
+
*/
|
|
170
|
+
async getRef() {
|
|
171
|
+
return this.inputRef;
|
|
172
|
+
}
|
|
173
|
+
get host() { return getElement(this); }
|
|
174
|
+
static get watchers() { return {
|
|
175
|
+
"size": ["validateSize", "watchControlAttrs"],
|
|
176
|
+
"disabled": ["watchControlAttrs"],
|
|
177
|
+
"invalid": ["watchControlAttrs"],
|
|
178
|
+
"success": ["watchControlAttrs"]
|
|
179
|
+
}; }
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
const SkeletonSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL']);
|
|
183
|
+
pick(Colors, ["PRIMARY", "NEUTRAL"]);
|
|
184
|
+
var SkeletonShapes;
|
|
185
|
+
(function (SkeletonShapes) {
|
|
186
|
+
SkeletonShapes["CIRCLE"] = "circle";
|
|
187
|
+
SkeletonShapes["LINE"] = "line";
|
|
188
|
+
})(SkeletonShapes || (SkeletonShapes = {}));
|
|
189
|
+
var SkeletonAnimation;
|
|
190
|
+
(function (SkeletonAnimation) {
|
|
191
|
+
SkeletonAnimation["PULSE"] = "pulse";
|
|
192
|
+
SkeletonAnimation["PROGRESS"] = "progress";
|
|
193
|
+
SkeletonAnimation["FALSE"] = "false";
|
|
194
|
+
})(SkeletonAnimation || (SkeletonAnimation = {}));
|
|
195
|
+
const SkeletonClass = {
|
|
196
|
+
root: 'gov-skeleton',
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
const GovSkeleton = class {
|
|
200
|
+
constructor(hostRef) {
|
|
201
|
+
registerInstance(this, hostRef);
|
|
202
|
+
this.items = [];
|
|
203
|
+
this.size = "m";
|
|
204
|
+
this.color = "neutral";
|
|
205
|
+
this.shape = "line";
|
|
206
|
+
this.width = null;
|
|
207
|
+
this.height = null;
|
|
208
|
+
this.animation = "progress";
|
|
209
|
+
this.inheritedAttributes = {};
|
|
210
|
+
this.h = govHost(this.host);
|
|
211
|
+
}
|
|
212
|
+
validateSize(newValue) {
|
|
213
|
+
validateProp(SkeletonSizes, newValue, SkeletonClass.root);
|
|
214
|
+
}
|
|
215
|
+
validateShape(newValue) {
|
|
216
|
+
validateProp(SkeletonShapes, newValue, SkeletonClass.root);
|
|
217
|
+
}
|
|
218
|
+
validateAnimation(newValue) {
|
|
219
|
+
validateProp(SkeletonAnimation, newValue, SkeletonClass.root);
|
|
220
|
+
}
|
|
221
|
+
componentDidLoad() {
|
|
222
|
+
this.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {
|
|
223
|
+
this.onAriaAttributeChange(attributeName, newValue);
|
|
224
|
+
});
|
|
225
|
+
this.attributeObserver.startObserving(ariaAttributes);
|
|
226
|
+
}
|
|
227
|
+
componentWillLoad() {
|
|
228
|
+
this.validateSize(this.size);
|
|
229
|
+
this.validateShape(this.shape);
|
|
230
|
+
this.validateAnimation(this.animation);
|
|
231
|
+
this.init();
|
|
232
|
+
this.inheritedAttributes = inheritAriaAttributes(this.host);
|
|
233
|
+
}
|
|
234
|
+
componentWillUpdate() {
|
|
235
|
+
this.init();
|
|
236
|
+
}
|
|
237
|
+
disconnectedCallback() {
|
|
238
|
+
this.attributeObserver.stopObserving();
|
|
239
|
+
}
|
|
240
|
+
onAriaAttributeChange(attributeName, newValue) {
|
|
241
|
+
this.host.removeAttribute(attributeName);
|
|
242
|
+
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
243
|
+
}
|
|
244
|
+
init() {
|
|
245
|
+
this.items.fill(1);
|
|
246
|
+
}
|
|
247
|
+
get style() {
|
|
248
|
+
const dimenssionsStyles = {
|
|
249
|
+
width: null,
|
|
250
|
+
height: null,
|
|
251
|
+
};
|
|
252
|
+
if (this.width) {
|
|
253
|
+
dimenssionsStyles.width = this.width;
|
|
254
|
+
}
|
|
255
|
+
if (this.height) {
|
|
256
|
+
dimenssionsStyles.height = this.height;
|
|
257
|
+
}
|
|
258
|
+
return Object.assign({}, dimenssionsStyles);
|
|
259
|
+
}
|
|
260
|
+
render() {
|
|
261
|
+
return (h(Host, Object.assign({ key: '4f5137faaa31d438e266648728a8c2050b3ab293', size: this.size, color: this.color, class: {
|
|
262
|
+
[SkeletonClass.root]: true,
|
|
263
|
+
circle: this.shape === "circle",
|
|
264
|
+
line: this.shape === "line",
|
|
265
|
+
progress: this.animation === "progress",
|
|
266
|
+
pulse: this.animation === "pulse",
|
|
267
|
+
} }, this.inheritedAttributes, { "aria-busy": "true", "aria-valuemin": "0", "aria-valuemax": "100", role: "progressbar", tabindex: "0", style: this.style })));
|
|
268
|
+
}
|
|
269
|
+
get host() { return getElement(this); }
|
|
270
|
+
static get watchers() { return {
|
|
271
|
+
"size": ["validateSize"],
|
|
272
|
+
"shape": ["validateShape"],
|
|
273
|
+
"animation": ["validateAnimation"]
|
|
274
|
+
}; }
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
export { GovFormInput as gov_form_input, GovSkeleton as gov_skeleton };
|
|
278
|
+
|
|
279
|
+
//# sourceMappingURL=gov-form-input_2.entry.js.map
|