@gov-design-system-ce/components 4.6.4 → 4.6.5
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/gov-flex_3.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +35 -11
- package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-file.entry.cjs.js.map +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js +7 -2
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
- package/dist/collection/utils/file.utils.js +28 -9
- package/dist/collection/utils/file.utils.js.map +1 -1
- package/dist/components/gov-accordion-item.js +1 -1
- package/dist/components/gov-attachments-item.js +1 -1
- package/dist/components/gov-blockquote.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-chip.js +1 -1
- package/dist/components/gov-collapsible.js +1 -1
- package/dist/components/gov-dialog.js +1 -1
- package/dist/components/gov-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox.js +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-input.js +1 -1
- package/dist/components/gov-form-multi-select.js +1 -1
- package/dist/components/gov-form-range.js +1 -1
- package/dist/components/gov-form-select.js +1 -1
- package/dist/components/gov-form-switch.js +1 -1
- package/dist/components/gov-icon.js +1 -1
- package/dist/components/gov-infobar.js +1 -1
- package/dist/components/gov-link.js +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-pagination.js +1 -1
- package/dist/components/gov-tabs.js +1 -1
- package/dist/components/gov-tag.js +1 -1
- package/dist/components/gov-theme-switch.js +1 -1
- package/dist/components/gov-tile.js +1 -1
- package/dist/components/gov-toast.js +1 -1
- package/dist/components/gov-tooltip-content.js +1 -1
- package/dist/components/gov-wizard-item.js +1 -1
- package/dist/components/{p-DEthsMuE.js → p-BIB-JMbL.js} +2 -2
- package/dist/components/{p-iTwUkISB.js → p-BVG9PtuQ.js} +2 -2
- package/dist/components/{p-yIpIIG5A.js → p-DV0Pdd1S.js} +2 -2
- package/dist/components/{p-CXPP9vec.js → p-Dj-FiQ37.js} +2 -2
- package/dist/components/{p-pJ_vPAO0.js → p-DlpZtTcv.js} +2 -2
- package/dist/components/{p-DN5pb9xA.js → p-Dw1o8KoZ.js} +2 -2
- package/dist/components/{p-ibUK7mfI.js → p-NU_8kxGz.js} +2 -2
- package/dist/components/{p-C_URF9Su.js → p-o4vVG5sG.js} +2 -2
- package/dist/core/core.esm.js +1 -1
- package/dist/core/gov-form-file.entry.esm.js.map +1 -1
- package/dist/core/{p-bec959c4.entry.js → p-002e72bf.entry.js} +2 -2
- package/dist/core/p-441e67f6.entry.js +2 -0
- package/dist/core/p-441e67f6.entry.js.map +1 -0
- package/dist/dist/components/gov-accordion-item.d.ts +11 -0
- package/dist/dist/components/gov-accordion.d.ts +11 -0
- package/dist/dist/components/gov-attachments-item.d.ts +11 -0
- package/dist/dist/components/gov-attachments.d.ts +11 -0
- package/dist/dist/components/gov-backdrop.d.ts +11 -0
- package/dist/dist/components/gov-banner.d.ts +11 -0
- package/dist/dist/components/gov-blockquote.d.ts +11 -0
- package/dist/dist/components/gov-breadcrumbs.d.ts +11 -0
- package/dist/dist/components/gov-button.d.ts +11 -0
- package/dist/dist/components/gov-card.d.ts +11 -0
- package/dist/dist/components/gov-chip.d.ts +11 -0
- package/dist/dist/components/gov-collapsible.d.ts +11 -0
- package/dist/dist/components/gov-container.d.ts +11 -0
- package/dist/dist/components/gov-control-group.d.ts +11 -0
- package/dist/dist/components/gov-cookiebar.d.ts +11 -0
- package/dist/dist/components/gov-dialog.d.ts +11 -0
- package/dist/dist/components/gov-dropdown.d.ts +11 -0
- package/dist/dist/components/gov-empty.d.ts +11 -0
- package/dist/dist/components/gov-error-code.d.ts +11 -0
- package/dist/dist/components/gov-flex.d.ts +11 -0
- package/dist/dist/components/gov-form-autocomplete.d.ts +11 -0
- package/dist/dist/components/gov-form-checkbox-group.d.ts +11 -0
- package/dist/dist/components/gov-form-checkbox.d.ts +11 -0
- package/dist/dist/components/gov-form-control.d.ts +11 -0
- package/dist/dist/components/gov-form-file.d.ts +11 -0
- package/dist/dist/components/gov-form-group.d.ts +11 -0
- package/dist/dist/components/gov-form-input.d.ts +11 -0
- package/dist/dist/components/gov-form-label.d.ts +11 -0
- package/dist/dist/components/gov-form-message.d.ts +11 -0
- package/dist/dist/components/gov-form-multi-select.d.ts +11 -0
- package/dist/dist/components/gov-form-password-power.d.ts +11 -0
- package/dist/dist/components/gov-form-radio-group.d.ts +11 -0
- package/dist/dist/components/gov-form-radio.d.ts +11 -0
- package/dist/dist/components/gov-form-range.d.ts +11 -0
- package/dist/dist/components/gov-form-search.d.ts +11 -0
- package/dist/dist/components/gov-form-select.d.ts +11 -0
- package/dist/dist/components/gov-form-switch.d.ts +11 -0
- package/dist/dist/components/gov-grid-item.d.ts +11 -0
- package/dist/dist/components/gov-grid.d.ts +11 -0
- package/dist/dist/components/gov-icon.d.ts +11 -0
- package/dist/dist/components/gov-infobar.d.ts +11 -0
- package/dist/dist/components/gov-layout-column.d.ts +11 -0
- package/dist/dist/components/gov-layout.d.ts +11 -0
- package/dist/dist/components/gov-lifecycle.d.ts +11 -0
- package/dist/dist/components/gov-link.d.ts +11 -0
- package/dist/dist/components/gov-loading.d.ts +11 -0
- package/dist/dist/components/gov-message.d.ts +11 -0
- package/dist/dist/components/gov-pagination.d.ts +11 -0
- package/dist/dist/components/gov-skeleton.d.ts +11 -0
- package/dist/dist/components/gov-spacer.d.ts +11 -0
- package/dist/dist/components/gov-stepper-item.d.ts +11 -0
- package/dist/dist/components/gov-stepper.d.ts +11 -0
- package/dist/dist/components/gov-tabs-item.d.ts +11 -0
- package/dist/dist/components/gov-tabs.d.ts +11 -0
- package/dist/dist/components/gov-tag.d.ts +11 -0
- package/dist/dist/components/gov-theme-switch.d.ts +11 -0
- package/dist/dist/components/gov-tile.d.ts +11 -0
- package/dist/dist/components/gov-toast.d.ts +11 -0
- package/dist/dist/components/gov-tooltip-content.d.ts +11 -0
- package/dist/dist/components/gov-tooltip.d.ts +11 -0
- package/dist/dist/components/gov-wizard-item.d.ts +11 -0
- package/dist/dist/components/gov-wizard.d.ts +11 -0
- package/dist/dist/components/index.d.ts +35 -0
- package/dist/dist/dist/components/gov-accordion-item.d.ts +11 -0
- package/dist/dist/dist/components/gov-accordion.d.ts +11 -0
- package/dist/dist/dist/components/gov-app.d.ts +11 -0
- package/dist/dist/dist/components/gov-attachments-item.d.ts +11 -0
- package/dist/dist/dist/components/gov-attachments.d.ts +11 -0
- package/dist/dist/dist/components/gov-backdrop.d.ts +11 -0
- package/dist/dist/dist/components/gov-banner.d.ts +11 -0
- package/dist/dist/dist/components/gov-blockquote.d.ts +11 -0
- package/dist/dist/dist/components/gov-breadcrumbs.d.ts +11 -0
- package/dist/dist/dist/components/gov-button.d.ts +11 -0
- package/dist/dist/dist/components/gov-card.d.ts +11 -0
- package/dist/dist/dist/components/gov-chip.d.ts +11 -0
- package/dist/dist/dist/components/gov-collapsible.d.ts +11 -0
- package/dist/dist/dist/components/gov-container.d.ts +11 -0
- package/dist/dist/dist/components/gov-control-group.d.ts +11 -0
- package/dist/dist/dist/components/gov-cookiebar.d.ts +11 -0
- package/dist/dist/dist/components/gov-dialog.d.ts +11 -0
- package/dist/dist/dist/components/gov-dropdown.d.ts +11 -0
- package/dist/dist/dist/components/gov-empty.d.ts +11 -0
- package/dist/dist/dist/components/gov-error-code.d.ts +11 -0
- package/dist/dist/dist/components/gov-flex.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-autocomplete.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-checkbox-group.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-checkbox.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-control.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-file.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-group.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-input.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-label.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-message.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-multi-select.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-password-power.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-radio-group.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-radio.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-range.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-search.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-select.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-switch.d.ts +11 -0
- package/dist/dist/dist/components/gov-grid-item.d.ts +11 -0
- package/dist/dist/dist/components/gov-grid.d.ts +11 -0
- package/dist/dist/dist/components/gov-icon.d.ts +11 -0
- package/dist/dist/dist/components/gov-infobar.d.ts +11 -0
- package/dist/dist/dist/components/gov-layout-column.d.ts +11 -0
- package/dist/dist/dist/components/gov-layout.d.ts +11 -0
- package/dist/dist/dist/components/gov-lifecycle.d.ts +11 -0
- package/dist/dist/dist/components/gov-link.d.ts +11 -0
- package/dist/dist/dist/components/gov-loading.d.ts +11 -0
- package/dist/dist/dist/components/gov-message.d.ts +11 -0
- package/dist/dist/dist/components/gov-pagination.d.ts +11 -0
- package/dist/dist/dist/components/gov-skeleton.d.ts +11 -0
- package/dist/dist/dist/components/gov-spacer.d.ts +11 -0
- package/dist/dist/dist/components/gov-stepper-item.d.ts +11 -0
- package/dist/dist/dist/components/gov-stepper.d.ts +11 -0
- package/dist/dist/dist/components/gov-tabs-item.d.ts +11 -0
- package/dist/dist/dist/components/gov-tabs.d.ts +11 -0
- package/dist/dist/dist/components/gov-tag.d.ts +11 -0
- package/dist/dist/dist/components/gov-theme-switch.d.ts +11 -0
- package/dist/dist/dist/components/gov-tile.d.ts +11 -0
- package/dist/dist/dist/components/gov-toast.d.ts +11 -0
- package/dist/dist/dist/components/gov-tooltip-content.d.ts +11 -0
- package/dist/dist/dist/components/gov-tooltip.d.ts +11 -0
- package/dist/dist/dist/components/gov-wizard-item.d.ts +11 -0
- package/dist/dist/dist/components/gov-wizard.d.ts +11 -0
- package/dist/dist/dist/components/index.d.ts +35 -0
- package/dist/dist/dist/globals.d.ts +2 -0
- package/dist/dist/dist/hydrate/index.d.ts +287 -0
- package/dist/dist/dist/types/components/gov-accordion/constants.d.ts +19 -0
- package/dist/dist/dist/types/components/gov-accordion/gov-accordion-item.d.ts +43 -0
- package/dist/dist/dist/types/components/gov-accordion/gov-accordion.d.ts +26 -0
- package/dist/dist/dist/types/components/gov-accordion/gov-accordion.types.d.ts +9 -0
- package/dist/dist/dist/types/components/gov-attachments/constants.d.ts +11 -0
- package/dist/dist/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-attachments/gov-attachments-item.d.ts +24 -0
- package/dist/dist/dist/types/components/gov-attachments/gov-attachments.d.ts +19 -0
- package/dist/dist/dist/types/components/gov-backdrop/constants.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-backdrop/gov-backdrop.d.ts +32 -0
- package/dist/dist/dist/types/components/gov-banner/constants.d.ts +26 -0
- package/dist/dist/dist/types/components/gov-banner/gov-banner.d.ts +28 -0
- package/dist/dist/dist/types/components/gov-blockquote/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-blockquote/gov-blockquote.d.ts +15 -0
- package/dist/dist/dist/types/components/gov-breadcrumbs/constants.d.ts +3 -0
- package/dist/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +42 -0
- package/dist/dist/dist/types/components/gov-button/button/constants.d.ts +29 -0
- package/dist/dist/dist/types/components/gov-button/button/gov-button.d.ts +133 -0
- package/dist/dist/dist/types/components/gov-button/button/gov-button.types.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-button/dropdown/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +40 -0
- package/dist/dist/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-card/constants.d.ts +16 -0
- package/dist/dist/dist/types/components/gov-card/gov-card.d.ts +57 -0
- package/dist/dist/dist/types/components/gov-card/interfaces.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-chip/constants.d.ts +21 -0
- package/dist/dist/dist/types/components/gov-chip/gov-chip.d.ts +82 -0
- package/dist/dist/dist/types/components/gov-collapsible/constants.d.ts +18 -0
- package/dist/dist/dist/types/components/gov-collapsible/gov-collapsible.d.ts +36 -0
- package/dist/dist/dist/types/components/gov-container/constants.d.ts +3 -0
- package/dist/dist/dist/types/components/gov-container/gov-container.d.ts +6 -0
- package/dist/dist/dist/types/components/gov-control-group/constants.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-control-group/gov-control-group.d.ts +24 -0
- package/dist/dist/dist/types/components/gov-cookiebar/constants.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-dialog/constants.d.ts +11 -0
- package/dist/dist/dist/types/components/gov-dialog/gov-dialog.d.ts +70 -0
- package/dist/dist/dist/types/components/gov-empty/constants.d.ts +19 -0
- package/dist/dist/dist/types/components/gov-empty/gov-empty.d.ts +21 -0
- package/dist/dist/dist/types/components/gov-error-code/constants.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
- package/dist/dist/dist/types/components/gov-flex/constants.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-flex/gov-flex.d.ts +39 -0
- package/dist/dist/dist/types/components/gov-form/autocomplete/autocomplete.utils.d.ts +2 -0
- package/dist/dist/dist/types/components/gov-form/autocomplete/constants.d.ts +11 -0
- package/dist/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +158 -0
- package/dist/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +9 -0
- package/dist/dist/dist/types/components/gov-form/checkbox/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +86 -0
- package/dist/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +5 -0
- package/dist/dist/dist/types/components/gov-form/control/constants.d.ts +9 -0
- package/dist/dist/dist/types/components/gov-form/control/gov-form-control.d.ts +40 -0
- package/dist/dist/dist/types/components/gov-form/file/constants.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-form/file/gov-form-file.d.ts +130 -0
- package/dist/dist/dist/types/components/gov-form/file/gov-form-file.types.d.ts +11 -0
- package/dist/dist/dist/types/components/gov-form/group/constants.d.ts +18 -0
- package/dist/dist/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +32 -0
- package/dist/dist/dist/types/components/gov-form/group/gov-form-group.d.ts +18 -0
- package/dist/dist/dist/types/components/gov-form/group/gov-form-group.types.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +32 -0
- package/dist/dist/dist/types/components/gov-form/input/constants.d.ts +28 -0
- package/dist/dist/dist/types/components/gov-form/input/gov-form-input.d.ts +178 -0
- package/dist/dist/dist/types/components/gov-form/input/gov-form-input.types.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-form/label/constants.d.ts +8 -0
- package/dist/dist/dist/types/components/gov-form/label/gov-form-label.d.ts +26 -0
- package/dist/dist/dist/types/components/gov-form/message/constants.d.ts +11 -0
- package/dist/dist/dist/types/components/gov-form/message/gov-form-message.d.ts +23 -0
- package/dist/dist/dist/types/components/gov-form/multiselect/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +127 -0
- package/dist/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
- package/dist/dist/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-form/radio/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-form/radio/gov-form-radio.d.ts +83 -0
- package/dist/dist/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +5 -0
- package/dist/dist/dist/types/components/gov-form/range/constants.d.ts +9 -0
- package/dist/dist/dist/types/components/gov-form/range/gov-form-range.d.ts +116 -0
- package/dist/dist/dist/types/components/gov-form/search/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-form/search/gov-form-search.d.ts +13 -0
- package/dist/dist/dist/types/components/gov-form/select/constants.d.ts +8 -0
- package/dist/dist/dist/types/components/gov-form/select/gov-form-select.d.ts +89 -0
- package/dist/dist/dist/types/components/gov-form/select/gov-form-select.types.d.ts +9 -0
- package/dist/dist/dist/types/components/gov-form/switch/constants.d.ts +12 -0
- package/dist/dist/dist/types/components/gov-form/switch/gov-form-switch.d.ts +81 -0
- package/dist/dist/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +5 -0
- package/dist/dist/dist/types/components/gov-grid/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-grid/gov-grid-item.d.ts +46 -0
- package/dist/dist/dist/types/components/gov-grid/gov-grid.d.ts +19 -0
- package/dist/dist/dist/types/components/gov-icon/constants.d.ts +18 -0
- package/dist/dist/dist/types/components/gov-icon/gov-icon.d.ts +34 -0
- package/dist/dist/dist/types/components/gov-icon/helpers.d.ts +6 -0
- package/dist/dist/dist/types/components/gov-icon/list.d.ts +3 -0
- package/dist/dist/dist/types/components/gov-infobar/constants.d.ts +16 -0
- package/dist/dist/dist/types/components/gov-infobar/gov-infobar.d.ts +51 -0
- package/dist/dist/dist/types/components/gov-infobar/gov-infobar.types.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-layout/constants.d.ts +20 -0
- package/dist/dist/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
- package/dist/dist/dist/types/components/gov-layout/gov-layout.d.ts +20 -0
- package/dist/dist/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
- package/dist/dist/dist/types/components/gov-link/constants.d.ts +8 -0
- package/dist/dist/dist/types/components/gov-link/gov-link.d.ts +34 -0
- package/dist/dist/dist/types/components/gov-loading/loading/constants.d.ts +9 -0
- package/dist/dist/dist/types/components/gov-loading/loading/gov-loading.d.ts +13 -0
- package/dist/dist/dist/types/components/gov-loading/skeleton/constants.d.ts +21 -0
- package/dist/dist/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +46 -0
- package/dist/dist/dist/types/components/gov-message/constants.d.ts +13 -0
- package/dist/dist/dist/types/components/gov-message/gov-message.d.ts +16 -0
- package/dist/dist/dist/types/components/gov-pagination/constants.d.ts +22 -0
- package/dist/dist/dist/types/components/gov-pagination/gov-pagination.d.ts +97 -0
- package/dist/dist/dist/types/components/gov-pagination/gov-pagination.types.d.ts +5 -0
- package/dist/dist/dist/types/components/gov-pagination/pagination.d.ts +12 -0
- package/dist/dist/dist/types/components/gov-spacer/constants.d.ts +15 -0
- package/dist/dist/dist/types/components/gov-spacer/gov-spacer.d.ts +18 -0
- package/dist/dist/dist/types/components/gov-stepper/stepper/constants.d.ts +21 -0
- package/dist/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +31 -0
- package/dist/dist/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +22 -0
- package/dist/dist/dist/types/components/gov-tabs/constants.d.ts +28 -0
- package/dist/dist/dist/types/components/gov-tabs/gov-tabs-item.d.ts +54 -0
- package/dist/dist/dist/types/components/gov-tabs/gov-tabs.d.ts +70 -0
- package/dist/dist/dist/types/components/gov-tabs/gov-tabs.types.d.ts +14 -0
- package/dist/dist/dist/types/components/gov-tag/constants.d.ts +12 -0
- package/dist/dist/dist/types/components/gov-tag/gov-tag.d.ts +35 -0
- package/dist/dist/dist/types/components/gov-theme-switch/constants.d.ts +12 -0
- package/dist/dist/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +46 -0
- package/dist/dist/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-tile/constants.d.ts +13 -0
- package/dist/dist/dist/types/components/gov-tile/gov-tile.d.ts +34 -0
- package/dist/dist/dist/types/components/gov-toast/constants.d.ts +17 -0
- package/dist/dist/dist/types/components/gov-toast/gov-toast.d.ts +58 -0
- package/dist/dist/dist/types/components/gov-tooltip/constants.d.ts +20 -0
- package/dist/dist/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +32 -0
- package/dist/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +61 -0
- package/dist/dist/dist/types/components/gov-wizard/constants.d.ts +19 -0
- package/dist/dist/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-wizard/gov-wizard-item.d.ts +60 -0
- package/dist/dist/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-wizard/gov-wizard.d.ts +35 -0
- package/dist/dist/dist/types/core/constants/colors.d.ts +13 -0
- package/dist/dist/dist/types/core/constants/sizes.d.ts +13 -0
- package/dist/dist/dist/types/core/constants/tags.d.ts +12 -0
- package/dist/dist/dist/types/core/constants/tokens.d.ts +1 -0
- package/dist/dist/dist/types/helpers/Accessibility/accessibility.d.ts +1 -0
- package/dist/dist/dist/types/helpers/Accessibility/attributes.d.ts +1 -0
- package/dist/dist/dist/types/helpers/Dom/attribute.d.ts +13 -0
- package/dist/dist/dist/types/helpers/Dom/document.d.ts +4 -0
- package/dist/dist/dist/types/helpers/Dom/form.d.ts +3 -0
- package/dist/dist/dist/types/helpers/Dom/form.types.d.ts +11 -0
- package/dist/dist/dist/types/helpers/Dom/template.d.ts +10 -0
- package/dist/dist/dist/types/helpers/Dom/template.types.d.ts +14 -0
- package/dist/dist/dist/types/helpers/Dom/win.d.ts +18 -0
- package/dist/dist/dist/types/helpers/Fragment.d.ts +2 -0
- package/dist/dist/dist/types/helpers/Log/gov.log.d.ts +8 -0
- package/dist/dist/dist/types/helpers/Validate/props.d.ts +1 -0
- package/dist/dist/dist/types/helpers/Validate/wcag.d.ts +4 -0
- package/dist/dist/dist/types/index.d.ts +0 -0
- package/dist/dist/dist/types/interfaces.d.ts +1 -0
- package/dist/dist/dist/types/stencil-public-runtime.d.ts +1861 -0
- package/dist/dist/dist/types/types/event.types.d.ts +4 -0
- package/dist/dist/dist/types/types/interfaces.d.ts +2 -0
- package/dist/dist/dist/types/types/typings.d.ts +6 -0
- package/dist/dist/dist/types/utils/array.utils.d.ts +2 -0
- package/dist/dist/dist/types/utils/bool.utils.d.ts +1 -0
- package/dist/dist/dist/types/utils/dom.utils.d.ts +1 -0
- package/dist/dist/dist/types/utils/ds.utils.d.ts +1 -0
- package/dist/dist/dist/types/utils/file.utils.d.ts +3 -0
- package/dist/dist/dist/types/utils/helpers.types.d.ts +49 -0
- package/dist/dist/dist/types/utils/icon.utils.d.ts +4 -0
- package/dist/dist/dist/types/utils/number.utils.d.ts +1 -0
- package/dist/dist/dist/types/utils/object.utils.d.ts +2 -0
- package/dist/dist/dist/types/utils/stencil.utils.d.ts +1 -0
- package/dist/dist/dist/types/utils/string.utils.d.ts +4 -0
- package/dist/dist/dist/types/utils/utils.d.ts +20 -0
- package/dist/dist/globals.d.ts +2 -0
- package/dist/dist/hydrate/index.d.ts +287 -0
- package/dist/dist/types/components/gov-accordion/constants.d.ts +19 -0
- package/dist/dist/types/components/gov-accordion/gov-accordion-item.d.ts +43 -0
- package/dist/dist/types/components/gov-accordion/gov-accordion.d.ts +26 -0
- package/dist/dist/types/components/gov-accordion/gov-accordion.types.d.ts +9 -0
- package/dist/dist/types/components/gov-attachments/constants.d.ts +11 -0
- package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
- package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.ts +24 -0
- package/dist/dist/types/components/gov-attachments/gov-attachments.d.ts +19 -0
- package/dist/dist/types/components/gov-backdrop/constants.d.ts +4 -0
- package/dist/dist/types/components/gov-backdrop/gov-backdrop.d.ts +32 -0
- package/dist/dist/types/components/gov-banner/constants.d.ts +26 -0
- package/dist/dist/types/components/gov-banner/gov-banner.d.ts +28 -0
- package/dist/dist/types/components/gov-blockquote/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-blockquote/gov-blockquote.d.ts +15 -0
- package/dist/dist/types/components/gov-breadcrumbs/constants.d.ts +3 -0
- package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
- package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +42 -0
- package/dist/dist/types/components/gov-button/button/constants.d.ts +29 -0
- package/dist/dist/types/components/gov-button/button/gov-button.d.ts +133 -0
- package/dist/dist/types/components/gov-button/button/gov-button.types.d.ts +4 -0
- package/dist/dist/types/components/gov-button/dropdown/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +40 -0
- package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +4 -0
- package/dist/dist/types/components/gov-card/constants.d.ts +16 -0
- package/dist/dist/types/components/gov-card/gov-card.d.ts +57 -0
- package/dist/dist/types/components/gov-card/interfaces.d.ts +4 -0
- package/dist/dist/types/components/gov-chip/constants.d.ts +21 -0
- package/dist/dist/types/components/gov-chip/gov-chip.d.ts +82 -0
- package/dist/dist/types/components/gov-collapsible/constants.d.ts +18 -0
- package/dist/dist/types/components/gov-collapsible/gov-collapsible.d.ts +36 -0
- package/dist/dist/types/components/gov-container/constants.d.ts +3 -0
- package/dist/dist/types/components/gov-container/gov-container.d.ts +6 -0
- package/dist/dist/types/components/gov-control-group/constants.d.ts +7 -0
- package/dist/dist/types/components/gov-control-group/gov-control-group.d.ts +24 -0
- package/dist/dist/types/components/gov-cookiebar/constants.d.ts +7 -0
- package/dist/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
- package/dist/dist/types/components/gov-dialog/constants.d.ts +11 -0
- package/dist/dist/types/components/gov-dialog/gov-dialog.d.ts +70 -0
- package/dist/dist/types/components/gov-empty/constants.d.ts +19 -0
- package/dist/dist/types/components/gov-empty/gov-empty.d.ts +21 -0
- package/dist/dist/types/components/gov-error-code/constants.d.ts +4 -0
- package/dist/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
- package/dist/dist/types/components/gov-flex/constants.d.ts +7 -0
- package/dist/dist/types/components/gov-flex/gov-flex.d.ts +39 -0
- package/dist/dist/types/components/gov-form/autocomplete/autocomplete.utils.d.ts +2 -0
- package/dist/dist/types/components/gov-form/autocomplete/constants.d.ts +11 -0
- package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +158 -0
- package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +9 -0
- package/dist/dist/types/components/gov-form/checkbox/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +86 -0
- package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +5 -0
- package/dist/dist/types/components/gov-form/control/constants.d.ts +9 -0
- package/dist/dist/types/components/gov-form/control/gov-form-control.d.ts +40 -0
- package/dist/dist/types/components/gov-form/file/constants.d.ts +7 -0
- package/dist/dist/types/components/gov-form/file/gov-form-file.d.ts +130 -0
- package/dist/dist/types/components/gov-form/file/gov-form-file.types.d.ts +11 -0
- package/dist/dist/types/components/gov-form/group/constants.d.ts +18 -0
- package/dist/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +32 -0
- package/dist/dist/types/components/gov-form/group/gov-form-group.d.ts +18 -0
- package/dist/dist/types/components/gov-form/group/gov-form-group.types.d.ts +7 -0
- package/dist/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +32 -0
- package/dist/dist/types/components/gov-form/input/constants.d.ts +28 -0
- package/dist/dist/types/components/gov-form/input/gov-form-input.d.ts +178 -0
- package/dist/dist/types/components/gov-form/input/gov-form-input.types.d.ts +4 -0
- package/dist/dist/types/components/gov-form/label/constants.d.ts +8 -0
- package/dist/dist/types/components/gov-form/label/gov-form-label.d.ts +26 -0
- package/dist/dist/types/components/gov-form/message/constants.d.ts +11 -0
- package/dist/dist/types/components/gov-form/message/gov-form-message.d.ts +23 -0
- package/dist/dist/types/components/gov-form/multiselect/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +127 -0
- package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +10 -0
- package/dist/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
- package/dist/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
- package/dist/dist/types/components/gov-form/radio/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-form/radio/gov-form-radio.d.ts +83 -0
- package/dist/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +5 -0
- package/dist/dist/types/components/gov-form/range/constants.d.ts +9 -0
- package/dist/dist/types/components/gov-form/range/gov-form-range.d.ts +116 -0
- package/dist/dist/types/components/gov-form/search/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-form/search/gov-form-search.d.ts +13 -0
- package/dist/dist/types/components/gov-form/select/constants.d.ts +8 -0
- package/dist/dist/types/components/gov-form/select/gov-form-select.d.ts +89 -0
- package/dist/dist/types/components/gov-form/select/gov-form-select.types.d.ts +9 -0
- package/dist/dist/types/components/gov-form/switch/constants.d.ts +12 -0
- package/dist/dist/types/components/gov-form/switch/gov-form-switch.d.ts +81 -0
- package/dist/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +5 -0
- package/dist/dist/types/components/gov-grid/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-grid/gov-grid-item.d.ts +46 -0
- package/dist/dist/types/components/gov-grid/gov-grid.d.ts +19 -0
- package/dist/dist/types/components/gov-icon/constants.d.ts +18 -0
- package/dist/dist/types/components/gov-icon/gov-icon.d.ts +34 -0
- package/dist/dist/types/components/gov-icon/helpers.d.ts +6 -0
- package/dist/dist/types/components/gov-icon/list.d.ts +3 -0
- package/dist/dist/types/components/gov-infobar/constants.d.ts +16 -0
- package/dist/dist/types/components/gov-infobar/gov-infobar.d.ts +51 -0
- package/dist/dist/types/components/gov-infobar/gov-infobar.types.d.ts +4 -0
- package/dist/dist/types/components/gov-layout/constants.d.ts +20 -0
- package/dist/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
- package/dist/dist/types/components/gov-layout/gov-layout.d.ts +20 -0
- package/dist/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
- package/dist/dist/types/components/gov-link/constants.d.ts +8 -0
- package/dist/dist/types/components/gov-link/gov-link.d.ts +34 -0
- package/dist/dist/types/components/gov-loading/loading/constants.d.ts +9 -0
- package/dist/dist/types/components/gov-loading/loading/gov-loading.d.ts +13 -0
- package/dist/dist/types/components/gov-loading/skeleton/constants.d.ts +21 -0
- package/dist/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +46 -0
- package/dist/dist/types/components/gov-message/constants.d.ts +13 -0
- package/dist/dist/types/components/gov-message/gov-message.d.ts +16 -0
- package/dist/dist/types/components/gov-pagination/constants.d.ts +22 -0
- package/dist/dist/types/components/gov-pagination/gov-pagination.d.ts +97 -0
- package/dist/dist/types/components/gov-pagination/gov-pagination.types.d.ts +5 -0
- package/dist/dist/types/components/gov-pagination/pagination.d.ts +12 -0
- package/dist/dist/types/components/gov-spacer/constants.d.ts +15 -0
- package/dist/dist/types/components/gov-spacer/gov-spacer.d.ts +18 -0
- package/dist/dist/types/components/gov-stepper/stepper/constants.d.ts +21 -0
- package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +4 -0
- package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +31 -0
- package/dist/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +22 -0
- package/dist/dist/types/components/gov-tabs/constants.d.ts +28 -0
- package/dist/dist/types/components/gov-tabs/gov-tabs-item.d.ts +54 -0
- package/dist/dist/types/components/gov-tabs/gov-tabs.d.ts +70 -0
- package/dist/dist/types/components/gov-tabs/gov-tabs.types.d.ts +14 -0
- package/dist/dist/types/components/gov-tag/constants.d.ts +12 -0
- package/dist/dist/types/components/gov-tag/gov-tag.d.ts +35 -0
- package/dist/dist/types/components/gov-theme-switch/constants.d.ts +12 -0
- package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +46 -0
- package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +10 -0
- package/dist/dist/types/components/gov-tile/constants.d.ts +13 -0
- package/dist/dist/types/components/gov-tile/gov-tile.d.ts +34 -0
- package/dist/dist/types/components/gov-toast/constants.d.ts +17 -0
- package/dist/dist/types/components/gov-toast/gov-toast.d.ts +58 -0
- package/dist/dist/types/components/gov-tooltip/constants.d.ts +20 -0
- package/dist/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +32 -0
- package/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +61 -0
- package/dist/dist/types/components/gov-wizard/constants.d.ts +19 -0
- package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +4 -0
- package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.ts +60 -0
- package/dist/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +4 -0
- package/dist/dist/types/components/gov-wizard/gov-wizard.d.ts +35 -0
- package/dist/dist/types/core/constants/colors.d.ts +13 -0
- package/dist/dist/types/core/constants/sizes.d.ts +13 -0
- package/dist/dist/types/core/constants/tags.d.ts +12 -0
- package/dist/dist/types/core/constants/tokens.d.ts +1 -0
- package/dist/dist/types/helpers/Accessibility/accessibility.d.ts +1 -0
- package/dist/dist/types/helpers/Accessibility/attributes.d.ts +1 -0
- package/dist/dist/types/helpers/Dom/attribute.d.ts +13 -0
- package/dist/dist/types/helpers/Dom/document.d.ts +4 -0
- package/dist/dist/types/helpers/Dom/form.d.ts +3 -0
- package/dist/dist/types/helpers/Dom/form.types.d.ts +11 -0
- package/dist/dist/types/helpers/Dom/template.d.ts +10 -0
- package/dist/dist/types/helpers/Dom/template.types.d.ts +14 -0
- package/dist/dist/types/helpers/Dom/win.d.ts +18 -0
- package/dist/dist/types/helpers/Fragment.d.ts +2 -0
- package/dist/dist/types/helpers/Log/gov.log.d.ts +8 -0
- package/dist/dist/types/helpers/Validate/props.d.ts +1 -0
- package/dist/dist/types/helpers/Validate/wcag.d.ts +4 -0
- package/dist/dist/types/index.d.ts +0 -0
- package/dist/dist/types/interfaces.d.ts +1 -0
- package/dist/dist/types/stencil-public-runtime.d.ts +1861 -0
- package/dist/dist/types/types/event.types.d.ts +4 -0
- package/dist/dist/types/types/interfaces.d.ts +2 -0
- package/dist/dist/types/types/typings.d.ts +6 -0
- package/dist/dist/types/utils/array.utils.d.ts +2 -0
- package/dist/dist/types/utils/bool.utils.d.ts +1 -0
- package/dist/dist/types/utils/dom.utils.d.ts +1 -0
- package/dist/dist/types/utils/ds.utils.d.ts +1 -0
- package/dist/dist/types/utils/file.utils.d.ts +3 -0
- package/dist/dist/types/utils/helpers.types.d.ts +49 -0
- package/dist/dist/types/utils/icon.utils.d.ts +4 -0
- package/dist/dist/types/utils/number.utils.d.ts +1 -0
- package/dist/dist/types/utils/object.utils.d.ts +2 -0
- package/dist/dist/types/utils/stencil.utils.d.ts +1 -0
- package/dist/dist/types/utils/string.utils.d.ts +4 -0
- package/dist/dist/types/utils/utils.d.ts +20 -0
- package/dist/esm/gov-flex_3.entry.js +1 -1
- package/dist/esm/gov-form-file.entry.js +35 -11
- package/dist/esm/gov-form-file.entry.js.map +1 -1
- package/dist/hydrate/index.js +36 -12
- package/dist/hydrate/index.mjs +36 -12
- package/package.json +2 -2
- package/dist/core/p-afe254cb.entry.js +0 -2
- package/dist/core/p-afe254cb.entry.js.map +0 -1
- package/readme.md +0 -9
- /package/dist/components/{p-DEthsMuE.js.map → p-BIB-JMbL.js.map} +0 -0
- /package/dist/components/{p-iTwUkISB.js.map → p-BVG9PtuQ.js.map} +0 -0
- /package/dist/components/{p-yIpIIG5A.js.map → p-DV0Pdd1S.js.map} +0 -0
- /package/dist/components/{p-CXPP9vec.js.map → p-Dj-FiQ37.js.map} +0 -0
- /package/dist/components/{p-pJ_vPAO0.js.map → p-DlpZtTcv.js.map} +0 -0
- /package/dist/components/{p-DN5pb9xA.js.map → p-Dw1o8KoZ.js.map} +0 -0
- /package/dist/components/{p-ibUK7mfI.js.map → p-NU_8kxGz.js.map} +0 -0
- /package/dist/components/{p-C_URF9Su.js.map → p-o4vVG5sG.js.map} +0 -0
- /package/dist/core/{p-bec959c4.entry.js.map → p-002e72bf.entry.js.map} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Sizes } from "../../../core/constants/sizes";
|
|
2
|
+
import { ValueOf } from "../../../types/interfaces";
|
|
3
|
+
export declare const FormGroupSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_2XL">;
|
|
4
|
+
export type FormGroupSizesType = `${ValueOf<typeof FormGroupSizes>}`;
|
|
5
|
+
export declare enum FormGroupOrientation {
|
|
6
|
+
HORIZONTAL = "horizontal",
|
|
7
|
+
VERTICAL = "vertical"
|
|
8
|
+
}
|
|
9
|
+
export type FormGroupOrientationType = `${ValueOf<typeof FormGroupOrientation>}`;
|
|
10
|
+
export declare const FormGroupClass: {
|
|
11
|
+
root: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const FormRadioGroupClass: {
|
|
14
|
+
root: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const FormCheckboxGroupClass: {
|
|
17
|
+
root: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { FormGroupOrientationType, FormGroupSizesType } from "./constants";
|
|
3
|
+
import { FormCheckboxEvent } from "../checkbox/gov-form-checkbox.types";
|
|
4
|
+
import { FormCheckboxGroupEvent } from "./gov-form-group.types";
|
|
5
|
+
export declare class GovFormCheckboxGroup {
|
|
6
|
+
private readonly h;
|
|
7
|
+
constructor();
|
|
8
|
+
host: HTMLGovFormGroupElement;
|
|
9
|
+
/**
|
|
10
|
+
* Gap's size.
|
|
11
|
+
*/
|
|
12
|
+
readonly gap?: FormGroupSizesType;
|
|
13
|
+
/**
|
|
14
|
+
* Elements orientation
|
|
15
|
+
*/
|
|
16
|
+
readonly orientation?: FormGroupOrientationType;
|
|
17
|
+
/**
|
|
18
|
+
* Group's value
|
|
19
|
+
*/
|
|
20
|
+
value?: string | string[];
|
|
21
|
+
/**
|
|
22
|
+
/* Emitted when the checkbox change value.
|
|
23
|
+
*/
|
|
24
|
+
govChange: EventEmitter<FormCheckboxGroupEvent>;
|
|
25
|
+
validateGap(newValue: string): void;
|
|
26
|
+
validateOrientation(newValue: string): void;
|
|
27
|
+
handleChange: (event: CustomEvent<FormCheckboxEvent>) => void;
|
|
28
|
+
componentWillLoad(): void;
|
|
29
|
+
componentDidRender(): void;
|
|
30
|
+
rerenderComponent(): void;
|
|
31
|
+
render(): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FormGroupOrientationType, FormGroupSizesType } from "./constants";
|
|
2
|
+
export declare class GovFormGroup {
|
|
3
|
+
private readonly h;
|
|
4
|
+
constructor();
|
|
5
|
+
host: HTMLGovFormGroupElement;
|
|
6
|
+
/**
|
|
7
|
+
* Gap's size.
|
|
8
|
+
*/
|
|
9
|
+
readonly gap?: FormGroupSizesType;
|
|
10
|
+
/**
|
|
11
|
+
* Elements orientation
|
|
12
|
+
*/
|
|
13
|
+
readonly orientation?: FormGroupOrientationType;
|
|
14
|
+
validateGap(newValue: string): void;
|
|
15
|
+
validateOrientation(newValue: string): void;
|
|
16
|
+
componentWillLoad(): void;
|
|
17
|
+
render(): any;
|
|
18
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { FormGroupOrientationType, FormGroupSizesType } from "./constants";
|
|
3
|
+
import { FormRadioEvent } from "../radio/gov-form-radio.types";
|
|
4
|
+
import { FormRadioGroupEvent } from "./gov-form-group.types";
|
|
5
|
+
export declare class GovFormRadioGroup {
|
|
6
|
+
private readonly h;
|
|
7
|
+
constructor();
|
|
8
|
+
host: HTMLGovFormGroupElement;
|
|
9
|
+
/**
|
|
10
|
+
* Gap's size.
|
|
11
|
+
*/
|
|
12
|
+
readonly gap?: FormGroupSizesType;
|
|
13
|
+
/**
|
|
14
|
+
* Elements orientation
|
|
15
|
+
*/
|
|
16
|
+
readonly orientation?: FormGroupOrientationType;
|
|
17
|
+
/**
|
|
18
|
+
* Group's value
|
|
19
|
+
*/
|
|
20
|
+
value?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Emitted when the checkbox change value.
|
|
23
|
+
*/
|
|
24
|
+
govChange: EventEmitter<FormRadioGroupEvent>;
|
|
25
|
+
validateGap(newValue: string): void;
|
|
26
|
+
validateOrientation(newValue: string): void;
|
|
27
|
+
handleChange: (event: CustomEvent<FormRadioEvent>) => void;
|
|
28
|
+
componentWillLoad(): void;
|
|
29
|
+
componentDidRender(): void;
|
|
30
|
+
rerenderComponent(): void;
|
|
31
|
+
render(): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Sizes } from '../../../core/constants/sizes';
|
|
2
|
+
import { ValueOf } from '../../../types/interfaces';
|
|
3
|
+
export declare const FormInputSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL">;
|
|
4
|
+
export type FormInputSizesType = `${ValueOf<typeof FormInputSizes>}`;
|
|
5
|
+
export declare enum InputTypes {
|
|
6
|
+
COLOR = "color",
|
|
7
|
+
DATE = "date",
|
|
8
|
+
DATETIME_LOCAL = "datetime-local",
|
|
9
|
+
EMAIL = "email",
|
|
10
|
+
MONTH = "month",
|
|
11
|
+
NUMBER = "number",
|
|
12
|
+
PASSWORD = "password",
|
|
13
|
+
SEARCH = "search",
|
|
14
|
+
TEL = "tel",
|
|
15
|
+
TEXT = "text",
|
|
16
|
+
TIME = "time",
|
|
17
|
+
URL = "url",
|
|
18
|
+
WEEK = "week"
|
|
19
|
+
}
|
|
20
|
+
export type InputType = `${ValueOf<typeof InputTypes>}`;
|
|
21
|
+
export declare enum Type {
|
|
22
|
+
RESET = "reset"
|
|
23
|
+
}
|
|
24
|
+
export type TypesType = `${ValueOf<typeof Type>}`;
|
|
25
|
+
export declare const FormInputClass: {
|
|
26
|
+
root: string;
|
|
27
|
+
icons: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { FormInputSizesType, InputType, Type } from "./constants";
|
|
3
|
+
import { FormInputEvent } from "./gov-form-input.types";
|
|
4
|
+
import { Nullable } from "../../../types/interfaces";
|
|
5
|
+
import { Attributes } from "../../../helpers/Dom/attribute";
|
|
6
|
+
export declare class GovFormInput {
|
|
7
|
+
private f;
|
|
8
|
+
private readonly h;
|
|
9
|
+
private inputRef?;
|
|
10
|
+
private readonly inputId;
|
|
11
|
+
private attributeObserver;
|
|
12
|
+
constructor();
|
|
13
|
+
host: HTMLGovFormInputElement;
|
|
14
|
+
/**
|
|
15
|
+
* Value of input
|
|
16
|
+
*/
|
|
17
|
+
value: string;
|
|
18
|
+
/**
|
|
19
|
+
* Custom input identifier.
|
|
20
|
+
*/
|
|
21
|
+
readonly identifier: string;
|
|
22
|
+
/**
|
|
23
|
+
* Indicates the entered value of child form element does conform to the format expected by the application.
|
|
24
|
+
*/
|
|
25
|
+
readonly success: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Input’s size.
|
|
28
|
+
*/
|
|
29
|
+
readonly size?: FormInputSizesType;
|
|
30
|
+
/**
|
|
31
|
+
* Name of the input.
|
|
32
|
+
*/
|
|
33
|
+
readonly name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Generates a texarea for the possibility of multiple lines
|
|
36
|
+
*/
|
|
37
|
+
readonly multiline: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-rows
|
|
40
|
+
*/
|
|
41
|
+
readonly rows: number;
|
|
42
|
+
/**
|
|
43
|
+
* Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-cols
|
|
44
|
+
*/
|
|
45
|
+
readonly cols: number;
|
|
46
|
+
/**
|
|
47
|
+
* 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.
|
|
48
|
+
* When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
|
|
49
|
+
*/
|
|
50
|
+
readonly required: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Makes the input component disabled.
|
|
53
|
+
*/
|
|
54
|
+
readonly disabled: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Text that appears in the form control when it has no value set
|
|
57
|
+
*/
|
|
58
|
+
readonly placeholder: string;
|
|
59
|
+
/**
|
|
60
|
+
* The value is not editable
|
|
61
|
+
*/
|
|
62
|
+
readonly readonly: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Minimum length (number of characters) of value
|
|
65
|
+
*/
|
|
66
|
+
readonly minlength: number;
|
|
67
|
+
/**
|
|
68
|
+
* Maximum length (number of characters) of value
|
|
69
|
+
*/
|
|
70
|
+
readonly maxlength: number;
|
|
71
|
+
/**
|
|
72
|
+
* Minimum value that is acceptable and valid for the input containing the attribute
|
|
73
|
+
*/
|
|
74
|
+
readonly min?: string | number;
|
|
75
|
+
/**
|
|
76
|
+
* Maximum value that is acceptable and valid for the input containing the attribute
|
|
77
|
+
*/
|
|
78
|
+
readonly max?: string | number;
|
|
79
|
+
/**
|
|
80
|
+
* Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocomplete
|
|
81
|
+
*/
|
|
82
|
+
readonly autocomplete: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocorrect
|
|
85
|
+
*/
|
|
86
|
+
readonly autocorrect: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck
|
|
89
|
+
*/
|
|
90
|
+
readonly spellcheck: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang
|
|
93
|
+
*/
|
|
94
|
+
readonly inputLang: string;
|
|
95
|
+
/**
|
|
96
|
+
* Defined the visual style of input
|
|
97
|
+
*/
|
|
98
|
+
readonly type?: Type;
|
|
99
|
+
/**
|
|
100
|
+
* Same as original parameter
|
|
101
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types
|
|
102
|
+
*/
|
|
103
|
+
readonly inputType: InputType;
|
|
104
|
+
/**
|
|
105
|
+
* Same as original parameter
|
|
106
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/input_role
|
|
107
|
+
*/
|
|
108
|
+
readonly role: Nullable<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Indicates the entered value does not conform to the format expected by the application.
|
|
111
|
+
*/
|
|
112
|
+
readonly invalid: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Accessible text for password display
|
|
115
|
+
*/
|
|
116
|
+
readonly accessibleShowPasswordLabel = "Zobrazit heslo";
|
|
117
|
+
/**
|
|
118
|
+
* Accessible text to hide the password
|
|
119
|
+
*/
|
|
120
|
+
readonly accessibleHidePasswordLabel = "Skr\u00FDt heslo";
|
|
121
|
+
/**
|
|
122
|
+
* Emitted when the input has focus.
|
|
123
|
+
*/
|
|
124
|
+
govFocus: EventEmitter<FormInputEvent>;
|
|
125
|
+
/**
|
|
126
|
+
* Emitted when the input loses focus.
|
|
127
|
+
*/
|
|
128
|
+
govBlur: EventEmitter<FormInputEvent>;
|
|
129
|
+
/**
|
|
130
|
+
* Emitted when the input change value.
|
|
131
|
+
*/
|
|
132
|
+
govInput: EventEmitter<FormInputEvent>;
|
|
133
|
+
/**
|
|
134
|
+
* Emitted when the input change value.
|
|
135
|
+
*/
|
|
136
|
+
govKeyUp: EventEmitter<FormInputEvent>;
|
|
137
|
+
/**
|
|
138
|
+
* Emitted when the input change value.
|
|
139
|
+
*/
|
|
140
|
+
govHydrated: EventEmitter<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Emitted when the input change value.
|
|
143
|
+
*/
|
|
144
|
+
govKeyDown: EventEmitter<FormInputEvent>;
|
|
145
|
+
focused: boolean;
|
|
146
|
+
showPassword: boolean;
|
|
147
|
+
validateSize(newValue: string): void;
|
|
148
|
+
watchControlAttrs(): void;
|
|
149
|
+
inheritedAttributes: Attributes;
|
|
150
|
+
private passControlAttrs;
|
|
151
|
+
componentDidLoad(): void;
|
|
152
|
+
componentWillLoad(): void;
|
|
153
|
+
componentDidRender(): void;
|
|
154
|
+
onAriaAttributeChange(attributeName: string, newValue: string): void;
|
|
155
|
+
disconnectedCallback(): void;
|
|
156
|
+
render(): any;
|
|
157
|
+
private onFocusHandler;
|
|
158
|
+
private onBlurHandler;
|
|
159
|
+
private onKeyUpHandler;
|
|
160
|
+
private onKeyDownHandler;
|
|
161
|
+
private onInputHandler;
|
|
162
|
+
/**
|
|
163
|
+
* Returns the current state of the component
|
|
164
|
+
*/
|
|
165
|
+
setFocus(options?: FocusOptions): Promise<void>;
|
|
166
|
+
/**
|
|
167
|
+
* Sets the ordered value of the element
|
|
168
|
+
*/
|
|
169
|
+
setValue(value: string): Promise<void>;
|
|
170
|
+
/**
|
|
171
|
+
* Clears input value
|
|
172
|
+
*/
|
|
173
|
+
clearValue(): Promise<void>;
|
|
174
|
+
/**
|
|
175
|
+
* Returns an instance of the native html input element
|
|
176
|
+
*/
|
|
177
|
+
getRef(): Promise<HTMLInputElement>;
|
|
178
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Sizes } from "../../../core/constants/sizes";
|
|
2
|
+
import { ValueOf } from "../../../types/interfaces";
|
|
3
|
+
export declare const FormLabelSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL">;
|
|
4
|
+
export type FormLabelSizesTypes = `${ValueOf<typeof FormLabelSizes>}`;
|
|
5
|
+
export declare const FormLabelClass: {
|
|
6
|
+
root: string;
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { FormLabelSizesTypes } from './constants';
|
|
3
|
+
export declare class GovFormLabel {
|
|
4
|
+
/**
|
|
5
|
+
* Identifier for label.
|
|
6
|
+
*/
|
|
7
|
+
readonly identifier: string;
|
|
8
|
+
/**
|
|
9
|
+
* Label's size.
|
|
10
|
+
*/
|
|
11
|
+
readonly size?: FormLabelSizesTypes;
|
|
12
|
+
/**
|
|
13
|
+
* Set whether the input is required or not.
|
|
14
|
+
*/
|
|
15
|
+
readonly required: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Use label as a legend for better accessibility.
|
|
18
|
+
* Note: Don't forget to set the fieldset attribute of the gov-form-control component
|
|
19
|
+
*/
|
|
20
|
+
readonly legend: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Emitted when the label click.
|
|
23
|
+
*/
|
|
24
|
+
govClick: EventEmitter<PointerEvent>;
|
|
25
|
+
render(): any;
|
|
26
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Colors } from '../../../core/constants/colors';
|
|
2
|
+
import { ValueOf } from '../../../types/interfaces';
|
|
3
|
+
import { Sizes } from "../../../core/constants/sizes";
|
|
4
|
+
export declare const FormMessageColors: Pick<typeof Colors, "NEUTRAL" | "SUCCESS" | "ERROR" | "WARNING">;
|
|
5
|
+
export type FormMessageColorType = `${ValueOf<typeof FormMessageColors>}`;
|
|
6
|
+
export declare const FormMessageSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL">;
|
|
7
|
+
export type FormMessageSizesTypes = `${ValueOf<typeof FormMessageSizes>}`;
|
|
8
|
+
export declare const FormMessageClass: {
|
|
9
|
+
root: string;
|
|
10
|
+
content: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FormMessageSizesTypes, FormMessageColorType } from './constants';
|
|
2
|
+
import { GovHost } from '../../../helpers/Dom/template.types';
|
|
3
|
+
export declare class GovFormMessage {
|
|
4
|
+
h: GovHost;
|
|
5
|
+
private readonly messageId;
|
|
6
|
+
constructor();
|
|
7
|
+
host: HTMLGovFormMessageElement;
|
|
8
|
+
/**
|
|
9
|
+
* Style variation of the message.
|
|
10
|
+
*/
|
|
11
|
+
readonly color?: FormMessageColorType;
|
|
12
|
+
/**
|
|
13
|
+
* Message's size.
|
|
14
|
+
*/
|
|
15
|
+
readonly size?: FormMessageSizesTypes;
|
|
16
|
+
validateColor(newValue: string): void;
|
|
17
|
+
componentWillLoad(): void;
|
|
18
|
+
render(): any;
|
|
19
|
+
/**
|
|
20
|
+
* Returns unique identifier of message
|
|
21
|
+
*/
|
|
22
|
+
identifier(): Promise<string>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Sizes } from '../../../core/constants/sizes';
|
|
2
|
+
import { ValueOf } from '../../../types/interfaces';
|
|
3
|
+
export declare const FormMultiselectSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL">;
|
|
4
|
+
export type FormMultiselectSizesType = `${ValueOf<typeof FormMultiselectSizes>}`;
|
|
5
|
+
export declare const FormMultiSelectClass: {
|
|
6
|
+
root: string;
|
|
7
|
+
wrap: string;
|
|
8
|
+
list: string;
|
|
9
|
+
item: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { FormMultiselectSizesType } from './constants';
|
|
3
|
+
import { FormMultiselectEvent, GovFormMultiSelectItem, GovFormMultiSelectSelectedItem } from './gov-form-multi-select.types';
|
|
4
|
+
import { Attributes } from "../../../helpers/Dom/attribute";
|
|
5
|
+
export declare class GovFormMultiSelect {
|
|
6
|
+
private f;
|
|
7
|
+
private readonly h;
|
|
8
|
+
private selectRef?;
|
|
9
|
+
private autocompleteRef?;
|
|
10
|
+
private attributeObserver;
|
|
11
|
+
private readonly selectId;
|
|
12
|
+
private readonly listId;
|
|
13
|
+
constructor();
|
|
14
|
+
host: HTMLGovFormSelectElement;
|
|
15
|
+
/**
|
|
16
|
+
* Value of multi-select
|
|
17
|
+
*/
|
|
18
|
+
value: string | GovFormMultiSelectSelectedItem[];
|
|
19
|
+
/**
|
|
20
|
+
* Options of multi-select
|
|
21
|
+
*/
|
|
22
|
+
options?: string | GovFormMultiSelectItem[];
|
|
23
|
+
/**
|
|
24
|
+
* Custom select identifier.
|
|
25
|
+
*/
|
|
26
|
+
readonly identifier: string;
|
|
27
|
+
/**
|
|
28
|
+
* Custom select placeholder.
|
|
29
|
+
*/
|
|
30
|
+
readonly placeholder: string;
|
|
31
|
+
/**
|
|
32
|
+
* Select’s size.
|
|
33
|
+
*/
|
|
34
|
+
readonly size?: FormMultiselectSizesType;
|
|
35
|
+
/**
|
|
36
|
+
* Name of the select.
|
|
37
|
+
*/
|
|
38
|
+
readonly name: string;
|
|
39
|
+
/**
|
|
40
|
+
* Option to hide the list of selected items
|
|
41
|
+
*/
|
|
42
|
+
readonly hideSelectedList: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* 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.
|
|
45
|
+
* When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
|
|
46
|
+
*/
|
|
47
|
+
readonly required: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Makes the select component disabled.
|
|
50
|
+
* This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.
|
|
51
|
+
*/
|
|
52
|
+
readonly disabled: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Indicates the entered value does not conform to the format expected by the application.
|
|
55
|
+
*/
|
|
56
|
+
readonly invalid: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Indicates the entered value of child form element does conform to the format expected by the application.
|
|
59
|
+
*/
|
|
60
|
+
readonly success: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Custom message for when there is a blank sheet
|
|
63
|
+
*/
|
|
64
|
+
readonly messageEmpty: string;
|
|
65
|
+
/**
|
|
66
|
+
* Custom message for when data is loaded
|
|
67
|
+
*/
|
|
68
|
+
readonly messageLoading: string;
|
|
69
|
+
/**
|
|
70
|
+
* Emitted when the select has focus.
|
|
71
|
+
*/
|
|
72
|
+
govFocus: EventEmitter<FormMultiselectEvent>;
|
|
73
|
+
/**
|
|
74
|
+
* Emitted when the select loses focus.
|
|
75
|
+
*/
|
|
76
|
+
govBlur: EventEmitter<FormMultiselectEvent>;
|
|
77
|
+
/**
|
|
78
|
+
* Emitted when the select change value.
|
|
79
|
+
*/
|
|
80
|
+
govChange: EventEmitter<FormMultiselectEvent>;
|
|
81
|
+
/**
|
|
82
|
+
* Emitted when an item is selected
|
|
83
|
+
*/
|
|
84
|
+
govSelect: EventEmitter<FormMultiselectEvent>;
|
|
85
|
+
/**
|
|
86
|
+
* Emitted when an item is removed
|
|
87
|
+
*/
|
|
88
|
+
govRemove: EventEmitter<FormMultiselectEvent>;
|
|
89
|
+
focused: boolean;
|
|
90
|
+
valueState: string;
|
|
91
|
+
selectedOptionsState: GovFormMultiSelectSelectedItem[];
|
|
92
|
+
optionsState: GovFormMultiSelectItem[];
|
|
93
|
+
validateSize(newValue: string): void;
|
|
94
|
+
watchOptions(newValue: string | GovFormMultiSelectItem[]): void;
|
|
95
|
+
watchValue(newValue: string | GovFormMultiSelectItem[]): void;
|
|
96
|
+
inheritedAttributes: Attributes;
|
|
97
|
+
componentDidLoad(): void;
|
|
98
|
+
componentWillLoad(): void;
|
|
99
|
+
disconnectedCallback(): void;
|
|
100
|
+
onAriaAttributeChange(attributeName: string, newValue: string): void;
|
|
101
|
+
private getAvailableOptions;
|
|
102
|
+
private initAutocomplete;
|
|
103
|
+
private selectedValueIndex;
|
|
104
|
+
private getOptionElement;
|
|
105
|
+
private getOption;
|
|
106
|
+
private selectOption;
|
|
107
|
+
private removeOption;
|
|
108
|
+
componentDidRender(): Promise<void>;
|
|
109
|
+
render(): any;
|
|
110
|
+
private onFocusHandler;
|
|
111
|
+
private onBlurHandler;
|
|
112
|
+
private onInputHandler;
|
|
113
|
+
private onSelectHandler;
|
|
114
|
+
private onTagRemove;
|
|
115
|
+
/**
|
|
116
|
+
* Returns the current state of the component
|
|
117
|
+
*/
|
|
118
|
+
setFocus(options?: FocusOptions): Promise<void>;
|
|
119
|
+
/**
|
|
120
|
+
* Sets the ordered value of the element
|
|
121
|
+
*/
|
|
122
|
+
setValue(value: string): Promise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* Returns an instance of the native html select element
|
|
125
|
+
*/
|
|
126
|
+
getRef(): Promise<HTMLSelectElement>;
|
|
127
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GovBaseEvent } from "../../../types/event.types";
|
|
2
|
+
export interface GovFormMultiSelectItem {
|
|
3
|
+
value: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export type GovFormMultiSelectSelectedItem = number | string;
|
|
8
|
+
export interface FormMultiselectEvent extends GovBaseEvent {
|
|
9
|
+
value: GovFormMultiSelectSelectedItem[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Sizes } from '../../../core/constants/sizes';
|
|
2
|
+
import { ValueOf } from '../../../types/interfaces';
|
|
3
|
+
export declare const FormRadioSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL">;
|
|
4
|
+
export type FormRadioSizesType = `${ValueOf<typeof FormRadioSizes>}`;
|
|
5
|
+
export declare const FormRadioClass: {
|
|
6
|
+
root: string;
|
|
7
|
+
input: string;
|
|
8
|
+
indicator: string;
|
|
9
|
+
label: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { FormRadioSizesType } from "./constants";
|
|
3
|
+
import { FormRadioEvent } from "./gov-form-radio.types";
|
|
4
|
+
import { Attributes } from "../../../helpers/Dom/attribute";
|
|
5
|
+
export declare class GovFormRadio {
|
|
6
|
+
private readonly h;
|
|
7
|
+
private f;
|
|
8
|
+
private inputRef?;
|
|
9
|
+
private attributeObserver;
|
|
10
|
+
private readonly radioId;
|
|
11
|
+
private hydrated;
|
|
12
|
+
constructor();
|
|
13
|
+
host: HTMLGovFormRadioElement;
|
|
14
|
+
/**
|
|
15
|
+
* Value of radio
|
|
16
|
+
*/
|
|
17
|
+
readonly value: string;
|
|
18
|
+
/**
|
|
19
|
+
* When you can't use the form label.
|
|
20
|
+
*/
|
|
21
|
+
readonly noLabel: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Radio button state
|
|
24
|
+
*/
|
|
25
|
+
checked: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 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.
|
|
28
|
+
* When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
|
|
29
|
+
*/
|
|
30
|
+
readonly required: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Makes the radio component disabled.
|
|
33
|
+
* This prevents users from being able to interact with the radio, and conveys its inactive state to assistive technologies.
|
|
34
|
+
*/
|
|
35
|
+
readonly disabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Name of the radio.
|
|
38
|
+
*/
|
|
39
|
+
readonly name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Radio's size.
|
|
42
|
+
*/
|
|
43
|
+
readonly size?: FormRadioSizesType;
|
|
44
|
+
/**
|
|
45
|
+
* Custom radio identifier.
|
|
46
|
+
*/
|
|
47
|
+
readonly identifier: string;
|
|
48
|
+
/**
|
|
49
|
+
* Indicates the entered value does not conform to the format expected by the application.
|
|
50
|
+
*/
|
|
51
|
+
readonly invalid: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Emitted when the radio has focus.
|
|
54
|
+
*/
|
|
55
|
+
govFocus: EventEmitter<FormRadioEvent>;
|
|
56
|
+
/**
|
|
57
|
+
* Emitted when the radio loses focus.
|
|
58
|
+
*/
|
|
59
|
+
govBlur: EventEmitter<FormRadioEvent>;
|
|
60
|
+
/**
|
|
61
|
+
* Emitted when the radio change value.
|
|
62
|
+
*/
|
|
63
|
+
govChange: EventEmitter<FormRadioEvent>;
|
|
64
|
+
validateSize(newValue: string): void;
|
|
65
|
+
watchControlAttrs(): void;
|
|
66
|
+
inheritedAttributes: Attributes;
|
|
67
|
+
private passControlAttrs;
|
|
68
|
+
componentWillLoad(): void;
|
|
69
|
+
componentDidLoad(): void;
|
|
70
|
+
componentDidRender(): Promise<void>;
|
|
71
|
+
connectedCallback(): void;
|
|
72
|
+
disconnectedCallback(): void;
|
|
73
|
+
onAriaAttributeChange(attributeName: string, newValue: string): void;
|
|
74
|
+
render(): any;
|
|
75
|
+
private onClickHandler;
|
|
76
|
+
private onFocusHandler;
|
|
77
|
+
private onBlurHandler;
|
|
78
|
+
private onChangeHandler;
|
|
79
|
+
/**
|
|
80
|
+
* Returns the reference of the native element
|
|
81
|
+
*/
|
|
82
|
+
getRef(): Promise<HTMLInputElement>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Sizes } from "../../../core/constants/sizes";
|
|
2
|
+
import { ValueOf } from "../../../types/interfaces";
|
|
3
|
+
export declare const FormRangeSizes: Pick<typeof Sizes, "_S" | "_M" | "_L">;
|
|
4
|
+
export type FormRangeSizesType = `${ValueOf<typeof FormRangeSizes>}`;
|
|
5
|
+
export declare const FormRangeClass: {
|
|
6
|
+
root: string;
|
|
7
|
+
fill: string;
|
|
8
|
+
input: string;
|
|
9
|
+
};
|