@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,70 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Nullable } from '../../types/interfaces';
|
|
3
|
+
export declare class GovDialog {
|
|
4
|
+
private h;
|
|
5
|
+
private readonly labelId;
|
|
6
|
+
private readonly contentId;
|
|
7
|
+
private hydrated;
|
|
8
|
+
private closeCtaRef?;
|
|
9
|
+
private dialogRef?;
|
|
10
|
+
private lastActiveElementRef?;
|
|
11
|
+
constructor();
|
|
12
|
+
host: HTMLGovDialogElement;
|
|
13
|
+
/**
|
|
14
|
+
* Attribute for dialog window display
|
|
15
|
+
*/
|
|
16
|
+
open: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Attribute allowing blocking the dialog closing
|
|
19
|
+
*/
|
|
20
|
+
blockClose: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Attribute allowing blocking the backdrop dialog closing
|
|
23
|
+
*/
|
|
24
|
+
blockBackdropClose: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Role of dialog
|
|
27
|
+
*/
|
|
28
|
+
role: Nullable<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Used to change the HTML tag in the dialog label for correct semantic structure
|
|
31
|
+
*/
|
|
32
|
+
readonly labelTag: string;
|
|
33
|
+
/**
|
|
34
|
+
* String of id's that indicates alternative labels elements
|
|
35
|
+
*/
|
|
36
|
+
accessibleLabelledBy: string;
|
|
37
|
+
/**
|
|
38
|
+
* Indicates the id of a component that describes the dialog.
|
|
39
|
+
*/
|
|
40
|
+
accessibleDescribedBy: string;
|
|
41
|
+
/**
|
|
42
|
+
* Adds accessible label for the dialog close button that is only shown for screen readers.
|
|
43
|
+
*/
|
|
44
|
+
readonly accessibleCloseLabel: string;
|
|
45
|
+
/**
|
|
46
|
+
* A string of identifiers that indicate alternative label elements for closing the dialog window
|
|
47
|
+
*/
|
|
48
|
+
accessibleCloseLabelledBy: string;
|
|
49
|
+
/**
|
|
50
|
+
* Emitted when a dialog window closes.
|
|
51
|
+
*/
|
|
52
|
+
govClose: EventEmitter<PointerEvent>;
|
|
53
|
+
watchOpen(newValue: boolean): void;
|
|
54
|
+
private showDialog;
|
|
55
|
+
private hideDialog;
|
|
56
|
+
componentDidRender(): Promise<void>;
|
|
57
|
+
private focusTrap;
|
|
58
|
+
connectedCallback(): void;
|
|
59
|
+
disconnectedCallback(): void;
|
|
60
|
+
render(): any;
|
|
61
|
+
private onCloseHandler;
|
|
62
|
+
/**
|
|
63
|
+
* Sets the close button to focus
|
|
64
|
+
*/
|
|
65
|
+
setFocus(): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Validate the WCAG attributes of the component
|
|
68
|
+
*/
|
|
69
|
+
validateAccessibility(): Promise<void>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Sizes } from "../../core/constants/sizes";
|
|
2
|
+
import { ValueOf } from "../../types/interfaces";
|
|
3
|
+
export declare const EmptySizes: Pick<typeof Sizes, "_S" | "_M" | "_L">;
|
|
4
|
+
export type EmptySizesType = `${ValueOf<typeof EmptySizes>}`;
|
|
5
|
+
export declare enum EmptyDirection {
|
|
6
|
+
HORIZONTAL = "horizontal",
|
|
7
|
+
VERTICAL = "vertical"
|
|
8
|
+
}
|
|
9
|
+
export type EmptyDirectionType = `${ValueOf<typeof EmptyDirection>}`;
|
|
10
|
+
export declare enum EmptyAlign {
|
|
11
|
+
LEFT = "left",
|
|
12
|
+
CENTER = "center",
|
|
13
|
+
RIGHT = "right"
|
|
14
|
+
}
|
|
15
|
+
export type EmptyAlignType = `${ValueOf<typeof EmptyAlign>}`;
|
|
16
|
+
export declare const EmptyClass: {
|
|
17
|
+
root: string;
|
|
18
|
+
content: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EmptyAlignType, EmptyDirectionType, EmptySizesType } from './constants';
|
|
2
|
+
export declare class GovEmpty {
|
|
3
|
+
private h;
|
|
4
|
+
constructor();
|
|
5
|
+
host: HTMLGovEmptyElement;
|
|
6
|
+
/**
|
|
7
|
+
* Element size.
|
|
8
|
+
*/
|
|
9
|
+
readonly size?: EmptySizesType;
|
|
10
|
+
/**
|
|
11
|
+
* Element direction
|
|
12
|
+
*/
|
|
13
|
+
readonly direction: EmptyDirectionType;
|
|
14
|
+
/**
|
|
15
|
+
* Element alignment.
|
|
16
|
+
*/
|
|
17
|
+
readonly align?: EmptyAlignType;
|
|
18
|
+
validateSize(newValue: string): void;
|
|
19
|
+
componentWillLoad(): void;
|
|
20
|
+
render(): any;
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Sizes } from "../../core/constants/sizes";
|
|
2
|
+
import { ValueOf } from "../../types/interfaces";
|
|
3
|
+
export declare const FlexSizes: typeof Sizes;
|
|
4
|
+
export type FlexSizesType = `${ValueOf<typeof FlexSizes>}`;
|
|
5
|
+
export declare const FlexClass: {
|
|
6
|
+
root: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FlexSizesType } from './constants';
|
|
2
|
+
export declare class GovFlex {
|
|
3
|
+
private h;
|
|
4
|
+
constructor();
|
|
5
|
+
host: HTMLGovGridElement;
|
|
6
|
+
/**
|
|
7
|
+
* Controls the flex direction of the container.
|
|
8
|
+
*/
|
|
9
|
+
direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
10
|
+
/**
|
|
11
|
+
* Defines how the browser distributes space between and around content items along the main axis.
|
|
12
|
+
*/
|
|
13
|
+
justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
14
|
+
/**
|
|
15
|
+
* Aligns flex items along the cross axis.
|
|
16
|
+
*/
|
|
17
|
+
alignItems?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';
|
|
18
|
+
/**
|
|
19
|
+
* Controls whether the flex container is a single-line or multi-line flex container.
|
|
20
|
+
*/
|
|
21
|
+
wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
22
|
+
/**
|
|
23
|
+
* Aligns the flex container's lines within when there is extra space in the cross-axis.
|
|
24
|
+
*/
|
|
25
|
+
alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';
|
|
26
|
+
/**
|
|
27
|
+
* Sets the alignment of the flex container’s children along the flex container’s cross axis, overriding the `align-items` property for individual flex items.
|
|
28
|
+
*/
|
|
29
|
+
alignSelf?: 'auto' | 'normal' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch' | 'anchor-center';
|
|
30
|
+
/**
|
|
31
|
+
* The gap property creates consistent spacing between flex items in the container.
|
|
32
|
+
*/
|
|
33
|
+
gap?: FlexSizesType;
|
|
34
|
+
/**
|
|
35
|
+
* Option to turn off responsive
|
|
36
|
+
*/
|
|
37
|
+
readonly responsive: string;
|
|
38
|
+
render(): any;
|
|
39
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sizes } from '../../../core/constants/sizes';
|
|
2
|
+
import { ValueOf } from '../../../types/interfaces';
|
|
3
|
+
export declare const FormAutocompleteSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL">;
|
|
4
|
+
export type SizesType = `${ValueOf<typeof FormAutocompleteSizes>}`;
|
|
5
|
+
export declare const FormAutocompleteClass: {
|
|
6
|
+
root: string;
|
|
7
|
+
list: string;
|
|
8
|
+
item: string;
|
|
9
|
+
empty: string;
|
|
10
|
+
loading: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { SizesType } from './constants';
|
|
3
|
+
import { FormAutocompleteEvent, GovFormAutocompleteItem } from './gov-form-autocomplete.types';
|
|
4
|
+
import { Attributes } from "../../../helpers/Dom/attribute";
|
|
5
|
+
export declare class GovFormAutocomplete {
|
|
6
|
+
private inputRef?;
|
|
7
|
+
private listRef?;
|
|
8
|
+
private readonly listBoxId;
|
|
9
|
+
private searchCallback;
|
|
10
|
+
private fullOptions;
|
|
11
|
+
private templateResolver;
|
|
12
|
+
private attributeObserver;
|
|
13
|
+
private debouncedSearch;
|
|
14
|
+
constructor();
|
|
15
|
+
host: HTMLGovFormInputElement;
|
|
16
|
+
/**
|
|
17
|
+
* Value of input
|
|
18
|
+
*/
|
|
19
|
+
value: string;
|
|
20
|
+
/**
|
|
21
|
+
* Options of autocomplete
|
|
22
|
+
*/
|
|
23
|
+
options?: string | GovFormAutocompleteItem[];
|
|
24
|
+
/**
|
|
25
|
+
* Custom input identifier.
|
|
26
|
+
*/
|
|
27
|
+
readonly identifier: string;
|
|
28
|
+
/**
|
|
29
|
+
* Indicates the entered value of child form element does conform to the format expected by the application.
|
|
30
|
+
*/
|
|
31
|
+
readonly success: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Input’s size.
|
|
34
|
+
*/
|
|
35
|
+
readonly size?: SizesType;
|
|
36
|
+
/**
|
|
37
|
+
* Main key name in the object
|
|
38
|
+
*/
|
|
39
|
+
readonly nameKey: string;
|
|
40
|
+
/**
|
|
41
|
+
* Name of the input.
|
|
42
|
+
*/
|
|
43
|
+
readonly name: string;
|
|
44
|
+
/**
|
|
45
|
+
* 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.
|
|
46
|
+
* When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
|
|
47
|
+
*/
|
|
48
|
+
readonly required: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Makes the input component disabled.
|
|
51
|
+
* This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.
|
|
52
|
+
*/
|
|
53
|
+
readonly disabled: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Text that appears in the form control when it has no value set
|
|
56
|
+
*/
|
|
57
|
+
readonly placeholder: string;
|
|
58
|
+
/**
|
|
59
|
+
* The value is not editable
|
|
60
|
+
*/
|
|
61
|
+
readonly readonly: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Indicates the entered value does not conform to the format expected by the application.
|
|
64
|
+
*/
|
|
65
|
+
readonly invalid: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Minimum length (number of characters) of value
|
|
68
|
+
*/
|
|
69
|
+
readonly minlength: number;
|
|
70
|
+
/**
|
|
71
|
+
* Maximum length (number of characters) of value
|
|
72
|
+
*/
|
|
73
|
+
readonly maxlength: number;
|
|
74
|
+
/**
|
|
75
|
+
* Maximum number of items shown from a static `options` list (0 = unlimited).
|
|
76
|
+
* Applies only when no async search callback is set.
|
|
77
|
+
*/
|
|
78
|
+
readonly maxOptions: number;
|
|
79
|
+
/**
|
|
80
|
+
* Input throttle in milliseconds
|
|
81
|
+
*/
|
|
82
|
+
readonly throttleTime: number;
|
|
83
|
+
/**
|
|
84
|
+
* Custom message for when there is a blank sheet
|
|
85
|
+
*/
|
|
86
|
+
readonly messageEmpty: string;
|
|
87
|
+
/**
|
|
88
|
+
* Emitted when the input has focus.
|
|
89
|
+
*/
|
|
90
|
+
govFocus: EventEmitter<FormAutocompleteEvent>;
|
|
91
|
+
/**
|
|
92
|
+
* Emitted when the input loses focus.
|
|
93
|
+
*/
|
|
94
|
+
govBlur: EventEmitter<FormAutocompleteEvent>;
|
|
95
|
+
/**
|
|
96
|
+
* Emitted when the input change value.
|
|
97
|
+
*/
|
|
98
|
+
govInput: EventEmitter<FormAutocompleteEvent>;
|
|
99
|
+
/**
|
|
100
|
+
* Emitted when the input change value.
|
|
101
|
+
*/
|
|
102
|
+
govSelect: EventEmitter<FormAutocompleteEvent>;
|
|
103
|
+
focused: boolean;
|
|
104
|
+
processing: boolean;
|
|
105
|
+
arrowCounter: number;
|
|
106
|
+
list: GovFormAutocompleteItem[];
|
|
107
|
+
inheritedAttributes: Attributes;
|
|
108
|
+
validateSize(newValue: string): void;
|
|
109
|
+
watchOptions(newValue: string | GovFormAutocompleteItem[]): void;
|
|
110
|
+
private onArrowUp;
|
|
111
|
+
private onArrowDown;
|
|
112
|
+
private moveToView;
|
|
113
|
+
private doSearch;
|
|
114
|
+
private clearList;
|
|
115
|
+
get isValueAccepted(): boolean;
|
|
116
|
+
componentDidLoad(): void;
|
|
117
|
+
componentWillLoad(): void;
|
|
118
|
+
watchThrottleTime(): void;
|
|
119
|
+
private emitAndSearch;
|
|
120
|
+
disconnectedCallback(): void;
|
|
121
|
+
onAriaAttributeChange(attributeName: string, newValue: string): void;
|
|
122
|
+
render(): any;
|
|
123
|
+
private onFocusHandler;
|
|
124
|
+
private onBlurHandler;
|
|
125
|
+
private onInputHandler;
|
|
126
|
+
private onSelectHandler;
|
|
127
|
+
private onKeyUpHandler;
|
|
128
|
+
private onKeyDownHandler;
|
|
129
|
+
/**
|
|
130
|
+
* Focus main input element
|
|
131
|
+
*/
|
|
132
|
+
setFocus(options?: FocusOptions): Promise<void>;
|
|
133
|
+
/**
|
|
134
|
+
* Blur main input element
|
|
135
|
+
*/
|
|
136
|
+
setBlur(): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Set options for list
|
|
139
|
+
*/
|
|
140
|
+
setOptions(options: GovFormAutocompleteItem[]): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Clears whisperer value
|
|
143
|
+
*/
|
|
144
|
+
clearValue(): Promise<void>;
|
|
145
|
+
/**
|
|
146
|
+
* Clears whisperer value
|
|
147
|
+
*/
|
|
148
|
+
setProcessing(status: boolean): Promise<void>;
|
|
149
|
+
/**
|
|
150
|
+
* Set a custom asynchronous function for the whisperer
|
|
151
|
+
*/
|
|
152
|
+
setSearchCallback(callback: (value: string) => Promise<any>): Promise<void>;
|
|
153
|
+
/**
|
|
154
|
+
* Setting a custom whisper result template
|
|
155
|
+
* @param callback
|
|
156
|
+
*/
|
|
157
|
+
setTemplateResolver(callback: (item: GovFormAutocompleteItem) => string): Promise<void>;
|
|
158
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GovBaseEvent } from "../../../types/event.types";
|
|
2
|
+
import { Nullable } from "../../../types/interfaces";
|
|
3
|
+
export interface FormAutocompleteEvent extends GovBaseEvent {
|
|
4
|
+
value: string;
|
|
5
|
+
selected: Nullable<GovFormAutocompleteItem>;
|
|
6
|
+
}
|
|
7
|
+
export interface GovFormAutocompleteItem {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Sizes } from '../../../core/constants/sizes';
|
|
2
|
+
import { ValueOf } from '../../../types/interfaces';
|
|
3
|
+
export declare const FormCheckboxSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL">;
|
|
4
|
+
export type FormCheckboxSizesType = `${ValueOf<typeof FormCheckboxSizes>}`;
|
|
5
|
+
export declare const FormCheckboxClass: {
|
|
6
|
+
root: string;
|
|
7
|
+
check: string;
|
|
8
|
+
indeterminate: string;
|
|
9
|
+
label: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { FormCheckboxSizesType } from "./constants";
|
|
3
|
+
import { FormCheckboxEvent } from "./gov-form-checkbox.types";
|
|
4
|
+
import { Attributes } from "../../../helpers/Dom/attribute";
|
|
5
|
+
export declare class GovFormCheckbox {
|
|
6
|
+
private readonly h;
|
|
7
|
+
private f;
|
|
8
|
+
private inputRef?;
|
|
9
|
+
private attributeObserver;
|
|
10
|
+
private readonly checkboxId;
|
|
11
|
+
private hydrated;
|
|
12
|
+
constructor();
|
|
13
|
+
host: HTMLGovFormCheckboxElement;
|
|
14
|
+
/**
|
|
15
|
+
* Value of checkbox
|
|
16
|
+
*/
|
|
17
|
+
readonly value: string;
|
|
18
|
+
/**
|
|
19
|
+
* Checkbox button state
|
|
20
|
+
*/
|
|
21
|
+
checked: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 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.
|
|
24
|
+
* When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
|
|
25
|
+
*/
|
|
26
|
+
readonly required: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Makes the checkbox component disabled.
|
|
29
|
+
*/
|
|
30
|
+
readonly disabled: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Same as original parameter (https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate)
|
|
33
|
+
*/
|
|
34
|
+
readonly indeterminate: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Name of the checkbox.
|
|
37
|
+
*/
|
|
38
|
+
readonly name: string;
|
|
39
|
+
/**
|
|
40
|
+
* Checkboxes size.
|
|
41
|
+
*/
|
|
42
|
+
readonly size?: FormCheckboxSizesType;
|
|
43
|
+
/**
|
|
44
|
+
* Custom checkbox identifier.
|
|
45
|
+
*/
|
|
46
|
+
readonly identifier: string;
|
|
47
|
+
/**
|
|
48
|
+
* When you can't use the form label.
|
|
49
|
+
*/
|
|
50
|
+
readonly noLabel: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Indicates the entered value does not conform to the format expected by the application.
|
|
53
|
+
*/
|
|
54
|
+
readonly invalid: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Emitted when the checkbox has focus.
|
|
57
|
+
*/
|
|
58
|
+
govFocus: EventEmitter<FormCheckboxEvent>;
|
|
59
|
+
/**
|
|
60
|
+
* Emitted when the checkbox loses focus.
|
|
61
|
+
*/
|
|
62
|
+
govBlur: EventEmitter<FormCheckboxEvent>;
|
|
63
|
+
/**
|
|
64
|
+
* Emitted when the checkbox change value.
|
|
65
|
+
*/
|
|
66
|
+
govChange: EventEmitter<FormCheckboxEvent>;
|
|
67
|
+
validateSize(newValue: string): void;
|
|
68
|
+
watchControlAttrs(): void;
|
|
69
|
+
inheritedAttributes: Attributes;
|
|
70
|
+
private passControlAttrs;
|
|
71
|
+
componentWillLoad(): void;
|
|
72
|
+
componentDidLoad(): void;
|
|
73
|
+
componentDidRender(): Promise<void>;
|
|
74
|
+
connectedCallback(): void;
|
|
75
|
+
disconnectedCallback(): void;
|
|
76
|
+
onAriaAttributeChange(attributeName: string, newValue: string): void;
|
|
77
|
+
render(): any;
|
|
78
|
+
private onFocusHandler;
|
|
79
|
+
private onBlurHandler;
|
|
80
|
+
private onClickHandler;
|
|
81
|
+
private onChangeHandler;
|
|
82
|
+
/**
|
|
83
|
+
* Returns the reference of the native element
|
|
84
|
+
*/
|
|
85
|
+
getRef(): Promise<HTMLInputElement>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Sizes } from '../../../core/constants/sizes';
|
|
2
|
+
import { ValueOf } from '../../../types/interfaces';
|
|
3
|
+
export declare const FormControlSizes: Pick<typeof Sizes, "_M" | "_L" | "_XL">;
|
|
4
|
+
export type FormControlSizesType = `${ValueOf<typeof FormControlSizes>}`;
|
|
5
|
+
export declare const FormControlClass: {
|
|
6
|
+
root: string;
|
|
7
|
+
holder: string;
|
|
8
|
+
bottom: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { FormControlSizesType } from "./constants";
|
|
2
|
+
export declare class GovFormControl {
|
|
3
|
+
private readonly h;
|
|
4
|
+
private f;
|
|
5
|
+
private observer;
|
|
6
|
+
constructor();
|
|
7
|
+
host: HTMLGovFormControlElement;
|
|
8
|
+
/**
|
|
9
|
+
* Custom form element identifier
|
|
10
|
+
*/
|
|
11
|
+
readonly identifier: string;
|
|
12
|
+
/**
|
|
13
|
+
* Indicates the entered value of a child form element does not conform to the format expected by the application.
|
|
14
|
+
*/
|
|
15
|
+
readonly invalid: boolean;
|
|
16
|
+
/**
|
|
17
|
+
/**
|
|
18
|
+
* Indicates the form control is disabled
|
|
19
|
+
*/
|
|
20
|
+
readonly disabled: boolean;
|
|
21
|
+
/**
|
|
22
|
+
/**
|
|
23
|
+
* Indicates the entered value of a child form element does conform to the format expected by the application.
|
|
24
|
+
*/
|
|
25
|
+
readonly success: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Use control as a fieldset for better accessibility.
|
|
28
|
+
* Note: Remember to set the legend attribute of the gov-form-label component
|
|
29
|
+
*/
|
|
30
|
+
readonly fieldset: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Form element size.
|
|
33
|
+
*/
|
|
34
|
+
readonly size?: FormControlSizesType;
|
|
35
|
+
componentDidRender(): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
37
|
+
private formElementDescriptionControl;
|
|
38
|
+
private syncControlMessages;
|
|
39
|
+
render(): any;
|
|
40
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { GovFormFileEvent, GovFormFileItem } from "./gov-form-file.types";
|
|
3
|
+
import { Attributes } from "../../../helpers/Dom/attribute";
|
|
4
|
+
export declare class GovFormFile {
|
|
5
|
+
private f;
|
|
6
|
+
private readonly h;
|
|
7
|
+
private areaRef?;
|
|
8
|
+
private inputRef?;
|
|
9
|
+
private readonly fileId;
|
|
10
|
+
private attributeObserver;
|
|
11
|
+
private eventsRegistered;
|
|
12
|
+
constructor();
|
|
13
|
+
host: HTMLGovFormFileElement;
|
|
14
|
+
/**
|
|
15
|
+
* Expands the file input to fill 100% of the container width.
|
|
16
|
+
*/
|
|
17
|
+
readonly expanded: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 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.
|
|
20
|
+
* When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
|
|
21
|
+
*/
|
|
22
|
+
readonly required: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Makes the File component disabled.
|
|
25
|
+
* This prevents users from being able to interact with the File, and conveys its inactive state to assistive technologies.
|
|
26
|
+
*/
|
|
27
|
+
readonly disabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* After selecting the files, the main input element will be reset.
|
|
30
|
+
* The propagation of the event with the selected files will not be affected.
|
|
31
|
+
*/
|
|
32
|
+
readonly resetAfterPick: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Selected files will not be checked for duplicates based on name and size.
|
|
35
|
+
*/
|
|
36
|
+
readonly ignoreFileDuplicationCheck: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Show list of attachments
|
|
39
|
+
*/
|
|
40
|
+
readonly displayAttachments: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Name of the input.
|
|
43
|
+
*/
|
|
44
|
+
readonly name: string;
|
|
45
|
+
/**
|
|
46
|
+
* Same as original parameter
|
|
47
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
|
|
48
|
+
*/
|
|
49
|
+
readonly accept: string;
|
|
50
|
+
/**
|
|
51
|
+
* Same as original parameter
|
|
52
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple
|
|
53
|
+
*/
|
|
54
|
+
readonly multiple: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Maximum embedded file size
|
|
57
|
+
*/
|
|
58
|
+
readonly maxFileSize: number;
|
|
59
|
+
/**
|
|
60
|
+
* Custom File identifier.
|
|
61
|
+
*/
|
|
62
|
+
readonly identifier: string;
|
|
63
|
+
/**
|
|
64
|
+
* Indicates the entered value does not conform to the format expected by the application.
|
|
65
|
+
*/
|
|
66
|
+
readonly invalid: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Error message when the maximum file size is exceeded
|
|
69
|
+
*/
|
|
70
|
+
readonly errorSize: string;
|
|
71
|
+
/**
|
|
72
|
+
* Insert unsupported file error message
|
|
73
|
+
*/
|
|
74
|
+
readonly errorAccept: string;
|
|
75
|
+
/**
|
|
76
|
+
* Adds accessible label for the list of attachments.
|
|
77
|
+
*/
|
|
78
|
+
readonly accessibleAttachmentsLabel: string;
|
|
79
|
+
/**
|
|
80
|
+
* Emitted when the File has focus.
|
|
81
|
+
*/
|
|
82
|
+
govFocus: EventEmitter<GovFormFileEvent>;
|
|
83
|
+
/**
|
|
84
|
+
* Emitted when the File loses focus.
|
|
85
|
+
*/
|
|
86
|
+
govBlur: EventEmitter<GovFormFileEvent>;
|
|
87
|
+
/**
|
|
88
|
+
* Called when the list of inserted files is changed
|
|
89
|
+
*/
|
|
90
|
+
govFiles: EventEmitter<GovFormFileEvent>;
|
|
91
|
+
/**
|
|
92
|
+
* Called when a new file is added
|
|
93
|
+
*/
|
|
94
|
+
govAddFile: EventEmitter<GovFormFileEvent>;
|
|
95
|
+
/**
|
|
96
|
+
* Called when a file is removed from the list
|
|
97
|
+
*/
|
|
98
|
+
govRemoveFile: EventEmitter<GovFormFileEvent>;
|
|
99
|
+
watchControlAttrs(): void;
|
|
100
|
+
files: GovFormFileItem[];
|
|
101
|
+
inheritedAttributes: Attributes;
|
|
102
|
+
private passControlAttrs;
|
|
103
|
+
private registerListeners;
|
|
104
|
+
preventDefaults(e: any): void;
|
|
105
|
+
handleDrop(e: DragEvent): void;
|
|
106
|
+
private validateFiles;
|
|
107
|
+
private syncNativeInputFiles;
|
|
108
|
+
componentDidLoad(): void;
|
|
109
|
+
componentWillLoad(): void;
|
|
110
|
+
componentDidRender(): Promise<void>;
|
|
111
|
+
disconnectedCallback(): void;
|
|
112
|
+
onAriaAttributeChange(attributeName: string, newValue: string): void;
|
|
113
|
+
render(): any;
|
|
114
|
+
private onRemoveFileHandler;
|
|
115
|
+
private onFocusHandler;
|
|
116
|
+
private onBlurHandler;
|
|
117
|
+
private onChangeHandler;
|
|
118
|
+
/**
|
|
119
|
+
* Returns the reference of the native element
|
|
120
|
+
*/
|
|
121
|
+
getRef(): Promise<HTMLInputElement>;
|
|
122
|
+
/**
|
|
123
|
+
* Returns the reference of the native area element
|
|
124
|
+
*/
|
|
125
|
+
getAreaRef(): Promise<HTMLDivElement>;
|
|
126
|
+
/**
|
|
127
|
+
* Remove all files from component state
|
|
128
|
+
*/
|
|
129
|
+
reset(): Promise<void>;
|
|
130
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GovBaseEvent } from "../../../types/event.types";
|
|
2
|
+
export interface GovFormFileEvent extends GovBaseEvent {
|
|
3
|
+
files?: GovFormFileItem[];
|
|
4
|
+
file?: GovFormFileItem;
|
|
5
|
+
}
|
|
6
|
+
export interface GovFormFileItem {
|
|
7
|
+
id: string;
|
|
8
|
+
file: File;
|
|
9
|
+
sizeValid: boolean;
|
|
10
|
+
acceptValid: boolean;
|
|
11
|
+
}
|