@gov-design-system-ce/components 4.2.8 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Fragment-D4qSkFah.js.map +1 -1
- package/dist/cjs/accessibility-BQJmIVWV.js.map +1 -1
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
- package/dist/cjs/array.utils-DOh1gCQS.js.map +1 -1
- package/dist/cjs/attribute-CH1-zDDl.js.map +1 -1
- package/dist/cjs/colors-DgrrxjsX.js.map +1 -1
- package/dist/cjs/constants-357ehBFU.js.map +1 -1
- package/dist/cjs/constants-CFAhiwqu.js.map +1 -1
- package/dist/cjs/constants-CYm8AK_D.js.map +1 -1
- package/dist/cjs/constants-CbBhWRUQ.js.map +1 -1
- package/dist/cjs/constants-ChDSk4SZ.js.map +1 -1
- package/dist/cjs/constants-D6LZ31rS.js.map +1 -1
- package/dist/cjs/constants-DcKnOyW4.js.map +1 -1
- package/dist/cjs/constants-Dmmp9FHy.js.map +1 -1
- package/dist/cjs/constants-WvkMgj1j.js.map +1 -1
- package/dist/cjs/constants-ymB2dvwV.js.map +1 -1
- package/dist/cjs/constants-z2ZSS2je.js.map +1 -1
- package/dist/cjs/core.cjs.js +3 -3
- package/dist/cjs/core.cjs.js.map +1 -1
- package/dist/cjs/form-GgXzZZ-E.js.map +1 -1
- package/dist/cjs/gov-accordion-item.cjs.entry.js +5 -5
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-accordion-item.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +3 -3
- package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-accordion.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-attachments.gov-attachments-item.gov-form-message.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +11 -7
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js +3 -3
- package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-backdrop.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-banner.cjs.entry.js +4 -4
- package/dist/cjs/gov-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-banner.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-blockquote.cjs.entry.js +3 -3
- package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-blockquote.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +3 -3
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-breadcrumbs.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-button.cjs.entry.js +6 -6
- package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-button.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-card.cjs.entry.js +3 -3
- package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-card.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-chip.cjs.entry.js +4 -4
- package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-chip.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-collapsible.cjs.entry.js +86 -0
- package/dist/cjs/gov-collapsible.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-collapsible.entry.cjs.js.map +1 -0
- package/dist/cjs/gov-container.cjs.entry.js +3 -3
- package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-container.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-control-group.cjs.entry.js +9 -5
- package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-control-group.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-cookiebar.cjs.entry.js +3 -3
- package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-cookiebar.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-dialog.cjs.entry.js +3 -3
- package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-dialog.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-dropdown.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js +3 -3
- package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-empty.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-error-code.cjs.entry.js +3 -3
- package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-error-code.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-flex.gov-icon.gov-theme-switch.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-flex_3.cjs.entry.js +5 -5
- package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-autocomplete.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +4 -4
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-checkbox-group.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-checkbox.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-control.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +3 -7
- 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/cjs/gov-form-group.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-group.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-input.gov-skeleton.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-input_2.cjs.entry.js +8 -8
- package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-label.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-label.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +4 -4
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-multi-select.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-password-power.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio-group.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-range.cjs.entry.js +4 -4
- package/dist/cjs/gov-form-range.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-range.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-search.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +4 -4
- package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-select.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-switch.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-grid-item.cjs.entry.js +3 -3
- package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-grid-item.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-grid.cjs.entry.js +3 -3
- package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-grid.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-infobar.cjs.entry.js +4 -4
- package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-infobar.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-layout-column.cjs.entry.js +3 -3
- package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-layout-column.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-layout.cjs.entry.js +3 -3
- package/dist/cjs/gov-layout.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-layout.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-lifecycle.cjs.entry.js +2 -2
- package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-lifecycle.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-link.cjs.entry.js +3 -3
- package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-link.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-loading.cjs.entry.js +3 -3
- package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-loading.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-message.cjs.entry.js +3 -3
- package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-message.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-pagination.cjs.entry.js +2 -2
- package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-pagination.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +3 -3
- package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-spacer.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-stepper-item.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-stepper.cjs.entry.js +3 -3
- package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-stepper.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-tabs-item.cjs.entry.js +3 -3
- package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tabs-item.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-tabs.cjs.entry.js +3 -3
- package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tabs.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-tag.cjs.entry.js +3 -3
- package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tag.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-tile.cjs.entry.js +3 -3
- package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tile.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-toast.cjs.entry.js +3 -3
- package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-toast.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-tooltip.gov-tooltip-content.entry.cjs.js.map +1 -0
- package/dist/cjs/{gov-tooltip.cjs.entry.js → gov-tooltip_2.cjs.entry.js} +101 -33
- package/dist/cjs/gov-tooltip_2.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-wizard-item.cjs.entry.js +4 -4
- package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizard-item.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-wizard.cjs.entry.js +3 -3
- package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizard.entry.cjs.js.map +1 -1
- package/dist/cjs/gov.log-C5EH15b_.js.map +1 -1
- package/dist/cjs/helpers-DmI-ZOAH.js.map +1 -1
- package/dist/cjs/helpers.types-vap8QfRH.js.map +1 -1
- package/dist/cjs/{index-pjwoybrU.js → index-BEF5cZxd.js} +148 -490
- package/dist/cjs/index-BEF5cZxd.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/props-CPENhBnM.js.map +1 -1
- package/dist/cjs/sizes-D5zsw2g5.js.map +1 -1
- package/dist/cjs/stencil.utils-8sCYbm34.js.map +1 -1
- package/dist/cjs/string.utils-BG4pUfEi.js.map +1 -1
- package/dist/cjs/{template-DS4pSCTb.js → template-Cj6PcLmR.js} +6 -2
- package/dist/cjs/template-Cj6PcLmR.js.map +1 -0
- package/dist/cjs/utils-NnC78QR3.js.map +1 -1
- package/dist/cjs/wcag-Bvzxnp5D.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/gov-accordion/constants.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +3 -3
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion.js +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion.types.js.map +1 -1
- package/dist/collection/components/gov-attachments/constants.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.css +20 -23
- package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.js +8 -2
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments.js +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
- package/dist/collection/components/gov-backdrop/constants.js.map +1 -1
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +1 -1
- package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
- package/dist/collection/components/gov-banner/constants.js.map +1 -1
- package/dist/collection/components/gov-banner/gov-banner.js +2 -2
- package/dist/collection/components/gov-banner/gov-banner.js.map +1 -1
- package/dist/collection/components/gov-blockquote/constants.js.map +1 -1
- package/dist/collection/components/gov-blockquote/gov-blockquote.js +1 -1
- package/dist/collection/components/gov-blockquote/gov-blockquote.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
- package/dist/collection/components/gov-button/button/constants.js.map +1 -1
- package/dist/collection/components/gov-button/button/gov-button.js +14 -14
- package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
- package/dist/collection/components/gov-button/button/gov-button.types.js.map +1 -1
- package/dist/collection/components/gov-button/dropdown/constants.js.map +1 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js.map +1 -1
- package/dist/collection/components/gov-card/constants.js.map +1 -1
- package/dist/collection/components/gov-card/gov-card.js +1 -1
- package/dist/collection/components/gov-card/gov-card.js.map +1 -1
- package/dist/collection/components/gov-card/interfaces.js.map +1 -1
- package/dist/collection/components/gov-chip/constants.js.map +1 -1
- package/dist/collection/components/gov-chip/gov-chip.js +8 -8
- package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
- package/dist/collection/components/gov-collapsible/constants.js +18 -0
- package/dist/collection/components/gov-collapsible/constants.js.map +1 -0
- package/dist/collection/components/gov-collapsible/gov-collapsible.js +182 -0
- package/dist/collection/components/gov-collapsible/gov-collapsible.js.map +1 -0
- package/dist/collection/components/gov-container/constants.js.map +1 -1
- package/dist/collection/components/gov-container/gov-container.js +1 -1
- package/dist/collection/components/gov-container/gov-container.js.map +1 -1
- package/dist/collection/components/gov-control-group/constants.js +1 -1
- package/dist/collection/components/gov-control-group/constants.js.map +1 -1
- package/dist/collection/components/gov-control-group/gov-control-group.js +28 -4
- package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
- package/dist/collection/components/gov-cookiebar/constants.js.map +1 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
- package/dist/collection/components/gov-dialog/constants.js.map +1 -1
- package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
- package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
- package/dist/collection/components/gov-empty/constants.js.map +1 -1
- package/dist/collection/components/gov-empty/gov-empty.js +1 -1
- package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
- package/dist/collection/components/gov-error-code/constants.js.map +1 -1
- package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
- package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
- package/dist/collection/components/gov-flex/constants.js.map +1 -1
- package/dist/collection/components/gov-flex/gov-flex.js +1 -1
- package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +3 -3
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +1 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js.map +1 -1
- package/dist/collection/components/gov-form/control/constants.js.map +1 -1
- package/dist/collection/components/gov-form/control/gov-form-control.js +4 -4
- package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
- package/dist/collection/components/gov-form/file/constants.js.map +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js +4 -28
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +1 -1
- package/dist/collection/components/gov-form/group/constants.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-group.css +12 -23
- package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-group.types.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js.map +1 -1
- package/dist/collection/components/gov-form/input/constants.js.map +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.js +6 -6
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.types.js.map +1 -1
- package/dist/collection/components/gov-form/label/constants.js.map +1 -1
- package/dist/collection/components/gov-form/label/gov-form-label.js +2 -2
- package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
- package/dist/collection/components/gov-form/message/constants.js.map +1 -1
- package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
- package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -4
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +1 -1
- package/dist/collection/components/gov-form/password-power/constants.js.map +1 -1
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -1
- package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +2 -2
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.types.js.map +1 -1
- package/dist/collection/components/gov-form/range/constants.js.map +1 -1
- package/dist/collection/components/gov-form/range/gov-form-range.js +2 -2
- package/dist/collection/components/gov-form/range/gov-form-range.js.map +1 -1
- package/dist/collection/components/gov-form/search/constants.js.map +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
- package/dist/collection/components/gov-form/select/constants.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.js +4 -4
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +1 -1
- package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.types.js.map +1 -1
- package/dist/collection/components/gov-grid/constants.js.map +1 -1
- package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
- package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
- package/dist/collection/components/gov-grid/gov-grid.js +1 -1
- package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
- package/dist/collection/components/gov-icon/constants.js.map +1 -1
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
- package/dist/collection/components/gov-icon/helpers.js.map +1 -1
- package/dist/collection/components/gov-icon/list.js.map +1 -1
- package/dist/collection/components/gov-infobar/constants.js.map +1 -1
- package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
- package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
- package/dist/collection/components/gov-infobar/gov-infobar.types.js.map +1 -1
- package/dist/collection/components/gov-layout/constants.js.map +1 -1
- package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
- package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -1
- package/dist/collection/components/gov-layout/gov-layout.js +1 -1
- package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -1
- package/dist/collection/components/gov-link/constants.js.map +1 -1
- package/dist/collection/components/gov-link/gov-link.js +1 -1
- package/dist/collection/components/gov-link/gov-link.js.map +1 -1
- package/dist/collection/components/gov-loading/loading/constants.js.map +1 -1
- package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
- package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
- package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -1
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
- package/dist/collection/components/gov-message/constants.js.map +1 -1
- package/dist/collection/components/gov-message/gov-message.js +1 -1
- package/dist/collection/components/gov-message/gov-message.js.map +1 -1
- package/dist/collection/components/gov-pagination/constants.js.map +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.types.js.map +1 -1
- package/dist/collection/components/gov-pagination/pagination.js.map +1 -1
- package/dist/collection/components/gov-spacer/constants.js.map +1 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
- package/dist/collection/components/gov-stepper/stepper/constants.js.map +1 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.d.js.map +1 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js +1 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js.map +1 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper.js +1 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper.js.map +1 -1
- package/dist/collection/components/gov-tabs/constants.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -1
- package/dist/collection/components/gov-tag/constants.js.map +1 -1
- package/dist/collection/components/gov-tag/gov-tag.js +1 -1
- package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
- package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.types.js.map +1 -1
- package/dist/collection/components/gov-tile/constants.js.map +1 -1
- package/dist/collection/components/gov-tile/gov-tile.js +1 -1
- package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
- package/dist/collection/components/gov-toast/constants.js.map +1 -1
- package/dist/collection/components/gov-toast/gov-toast.js +1 -1
- package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
- package/dist/collection/components/gov-tooltip/constants.js.map +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
- package/dist/collection/components/gov-wizard/constants.js.map +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
- package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -1
- package/dist/collection/core/constants/colors.js.map +1 -1
- package/dist/collection/core/constants/sizes.js.map +1 -1
- package/dist/collection/core/constants/tags.js.map +1 -1
- package/dist/collection/core/constants/tokens.js.map +1 -1
- package/dist/collection/data/color-definitions.js +494 -494
- package/dist/collection/data/font-definitions.js +132 -132
- package/dist/collection/helpers/Accessibility/accessibility.js.map +1 -1
- package/dist/collection/helpers/Accessibility/attributes.js.map +1 -1
- package/dist/collection/helpers/Dom/attribute.js.map +1 -1
- package/dist/collection/helpers/Dom/document.js.map +1 -1
- package/dist/collection/helpers/Dom/form.js.map +1 -1
- package/dist/collection/helpers/Dom/form.types.js.map +1 -1
- package/dist/collection/helpers/Dom/template.js +4 -0
- package/dist/collection/helpers/Dom/template.js.map +1 -1
- package/dist/collection/helpers/Dom/template.types.js.map +1 -1
- package/dist/collection/helpers/Dom/win.js.map +1 -1
- package/dist/collection/helpers/Fragment.js.map +1 -1
- package/dist/collection/helpers/Log/gov.log.js.map +1 -1
- package/dist/collection/helpers/Validate/props.js.map +1 -1
- package/dist/collection/helpers/Validate/wcag.js.map +1 -1
- package/dist/collection/index.js +2 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/types/event.types.js.map +1 -1
- package/dist/collection/types/interfaces.js.map +1 -1
- package/dist/collection/utils/array.utils.js.map +1 -1
- package/dist/collection/utils/bool.utils.js.map +1 -1
- package/dist/collection/utils/dom.utils.js.map +1 -1
- package/dist/collection/utils/ds.utils.js.map +1 -1
- package/dist/collection/utils/file.utils.js.map +1 -1
- package/dist/collection/utils/helpers.types.js.map +1 -1
- package/dist/collection/utils/icon.utils.js.map +1 -1
- package/dist/collection/utils/number.utils.js.map +1 -1
- package/dist/collection/utils/object.utils.js.map +1 -1
- package/dist/collection/utils/stencil.utils.js.map +1 -1
- package/dist/collection/utils/string.utils.js.map +1 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/gov-accordion-item.js +1 -1
- package/dist/components/gov-accordion-item.js.map +1 -1
- package/dist/components/gov-accordion.js +1 -1
- package/dist/components/gov-accordion.js.map +1 -1
- package/dist/components/gov-attachments-item.js +1 -1
- package/dist/components/gov-attachments.js +1 -1
- package/dist/components/gov-backdrop.js +1 -1
- package/dist/components/gov-banner.js +1 -1
- package/dist/components/gov-banner.js.map +1 -1
- package/dist/components/gov-blockquote.js +1 -1
- package/dist/components/gov-blockquote.js.map +1 -1
- package/dist/components/gov-breadcrumbs.js +1 -1
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button.js +1 -1
- package/dist/components/gov-card.js +1 -1
- package/dist/components/gov-card.js.map +1 -1
- package/dist/components/gov-chip.js +1 -1
- package/dist/components/gov-collapsible.d.ts +11 -0
- package/dist/components/gov-collapsible.js +2 -0
- package/dist/components/gov-collapsible.js.map +1 -0
- package/dist/components/gov-container.js +1 -1
- package/dist/components/gov-container.js.map +1 -1
- package/dist/components/gov-control-group.js +1 -1
- package/dist/components/gov-control-group.js.map +1 -1
- package/dist/components/gov-cookiebar.js +1 -1
- package/dist/components/gov-cookiebar.js.map +1 -1
- package/dist/components/gov-dialog.js +1 -1
- package/dist/components/gov-dialog.js.map +1 -1
- package/dist/components/gov-dropdown.js +1 -1
- package/dist/components/gov-dropdown.js.map +1 -1
- package/dist/components/gov-empty.js +1 -1
- package/dist/components/gov-empty.js.map +1 -1
- package/dist/components/gov-error-code.js +1 -1
- package/dist/components/gov-error-code.js.map +1 -1
- package/dist/components/gov-flex.js +1 -1
- package/dist/components/gov-flex.js.map +1 -1
- package/dist/components/gov-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox-group.js +1 -1
- package/dist/components/gov-form-checkbox-group.js.map +1 -1
- package/dist/components/gov-form-checkbox.js +1 -1
- package/dist/components/gov-form-checkbox.js.map +1 -1
- package/dist/components/gov-form-control.js +1 -1
- package/dist/components/gov-form-control.js.map +1 -1
- package/dist/components/gov-form-file.js +1 -1
- package/dist/components/gov-form-file.js.map +1 -1
- package/dist/components/gov-form-group.js +1 -1
- package/dist/components/gov-form-group.js.map +1 -1
- package/dist/components/gov-form-input.js +1 -1
- package/dist/components/gov-form-label.js +1 -1
- package/dist/components/gov-form-label.js.map +1 -1
- package/dist/components/gov-form-message.js +1 -1
- package/dist/components/gov-form-multi-select.js +1 -1
- package/dist/components/gov-form-multi-select.js.map +1 -1
- package/dist/components/gov-form-password-power.js +1 -1
- package/dist/components/gov-form-password-power.js.map +1 -1
- package/dist/components/gov-form-radio-group.js +1 -1
- package/dist/components/gov-form-radio-group.js.map +1 -1
- package/dist/components/gov-form-radio.js +1 -1
- package/dist/components/gov-form-radio.js.map +1 -1
- package/dist/components/gov-form-range.js +1 -1
- package/dist/components/gov-form-range.js.map +1 -1
- package/dist/components/gov-form-search.js +1 -1
- package/dist/components/gov-form-search.js.map +1 -1
- package/dist/components/gov-form-select.js +1 -1
- package/dist/components/gov-form-switch.js +1 -1
- package/dist/components/gov-form-switch.js.map +1 -1
- package/dist/components/gov-grid-item.js +1 -1
- package/dist/components/gov-grid-item.js.map +1 -1
- package/dist/components/gov-grid.js +1 -1
- package/dist/components/gov-grid.js.map +1 -1
- package/dist/components/gov-icon.js +1 -1
- package/dist/components/gov-infobar.js +1 -1
- package/dist/components/gov-infobar.js.map +1 -1
- package/dist/components/gov-layout-column.js +1 -1
- package/dist/components/gov-layout-column.js.map +1 -1
- package/dist/components/gov-layout.js +1 -1
- package/dist/components/gov-layout.js.map +1 -1
- package/dist/components/gov-lifecycle.js +1 -1
- package/dist/components/gov-lifecycle.js.map +1 -1
- package/dist/components/gov-link.js +1 -1
- package/dist/components/gov-link.js.map +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +1 -1
- package/dist/components/gov-message.js.map +1 -1
- package/dist/components/gov-pagination.js +1 -1
- package/dist/components/gov-pagination.js.map +1 -1
- package/dist/components/gov-skeleton.js +1 -1
- package/dist/components/gov-spacer.js +1 -1
- package/dist/components/gov-spacer.js.map +1 -1
- package/dist/components/gov-stepper-item.js +1 -1
- package/dist/components/gov-stepper-item.js.map +1 -1
- package/dist/components/gov-stepper.js +1 -1
- package/dist/components/gov-stepper.js.map +1 -1
- package/dist/components/gov-tabs-item.js +1 -1
- package/dist/components/gov-tabs-item.js.map +1 -1
- package/dist/components/gov-tabs.js +1 -1
- package/dist/components/gov-tabs.js.map +1 -1
- package/dist/components/gov-tag.js +1 -1
- package/dist/components/gov-tag.js.map +1 -1
- package/dist/components/gov-theme-switch.js +1 -1
- package/dist/components/gov-theme-switch.js.map +1 -1
- package/dist/components/gov-tile.js +1 -1
- package/dist/components/gov-tile.js.map +1 -1
- package/dist/components/gov-toast.js +1 -1
- package/dist/components/gov-toast.js.map +1 -1
- package/dist/components/gov-tooltip-content.js +1 -1
- package/dist/components/gov-tooltip-content.js.map +1 -1
- package/dist/components/gov-tooltip.js +1 -1
- package/dist/components/gov-tooltip.js.map +1 -1
- package/dist/components/gov-wizard-item.js +1 -1
- package/dist/components/gov-wizard-item.js.map +1 -1
- package/dist/components/gov-wizard.js +1 -1
- package/dist/components/gov-wizard.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-2_-up8FX.js +2 -0
- package/dist/components/p-2_-up8FX.js.map +1 -0
- package/dist/components/p-4i8qDRtu.js.map +1 -1
- package/dist/components/p-5itQzbON.js.map +1 -1
- package/dist/components/p-9VlKyZSl.js +2 -0
- package/dist/components/p-9VlKyZSl.js.map +1 -0
- package/dist/components/p-9imLQpxb.js.map +1 -1
- package/dist/components/p-B0hcuYXk.js.map +1 -1
- package/dist/components/p-B3tdsiZv.js.map +1 -1
- package/dist/components/{p-WmFNIuTf.js → p-BJnSrRNH.js} +2 -2
- package/dist/components/p-BJnSrRNH.js.map +1 -0
- package/dist/components/p-BKP-F1qP.js.map +1 -1
- package/dist/components/p-BTwdrNoS.js.map +1 -1
- package/dist/components/p-BUmDydor.js.map +1 -1
- package/dist/components/{p-CSjqhysd.js → p-Ba8Z-AIX.js} +2 -2
- package/dist/components/p-Ba8Z-AIX.js.map +1 -0
- package/dist/components/p-BcQO4NH2.js.map +1 -1
- package/dist/components/p-BnxqJyb_.js +2 -0
- package/dist/components/p-BnxqJyb_.js.map +1 -0
- package/dist/components/p-C6JN9gdb.js.map +1 -1
- package/dist/components/p-CJnwyVlG.js +2 -0
- package/dist/components/p-CJnwyVlG.js.map +1 -0
- package/dist/components/p-CNqoJU2V.js.map +1 -1
- package/dist/components/p-CQvUntGY.js.map +1 -1
- package/dist/components/p-CUVZZBqo.js.map +1 -1
- package/dist/components/p-CWqMiVYH.js +2 -0
- package/dist/components/p-CWqMiVYH.js.map +1 -0
- package/dist/components/p-CXgom82_.js.map +1 -1
- package/dist/components/p-CZr7GBEo.js.map +1 -1
- package/dist/components/p-CgXcNDpE.js +2 -0
- package/dist/components/p-CgXcNDpE.js.map +1 -0
- package/dist/components/p-Cjg0wpDG.js.map +1 -1
- package/dist/components/p-ClYmjarv.js.map +1 -1
- package/dist/components/{p-wlTP5ZEU.js → p-D8QfVS4O.js} +2 -2
- package/dist/components/p-D8QfVS4O.js.map +1 -0
- package/dist/components/p-DBXGhafv.js.map +1 -1
- package/dist/components/p-DKo9A5gq.js +2 -0
- package/dist/components/p-DKo9A5gq.js.map +1 -0
- package/dist/components/p-DW1DKFMF.js +2 -0
- package/dist/components/p-DW1DKFMF.js.map +1 -0
- package/dist/components/p-DZJk8GrA.js +2 -0
- package/dist/components/p-DZJk8GrA.js.map +1 -0
- package/dist/components/p-DfI_0WW6.js.map +1 -1
- package/dist/components/{p-C4pc6Rox.js → p-DhGb8cBK.js} +2 -2
- package/dist/components/p-DhGb8cBK.js.map +1 -0
- package/dist/components/p-DrPpH_9c.js.map +1 -1
- package/dist/components/p-EeKNA85D.js.map +1 -1
- package/dist/components/p-GYov8gU1.js.map +1 -1
- package/dist/components/p-Nvj7WFs_.js.map +1 -1
- package/dist/components/p-Q99QrOoi.js.map +1 -1
- package/dist/components/p-U40vKHrs.js.map +1 -1
- package/dist/components/{p-Btw6IAjS.js → p-_FzmpyXv.js} +2 -2
- package/dist/components/p-_FzmpyXv.js.map +1 -0
- package/dist/components/p-vN03FcXN.js.map +1 -1
- package/dist/core/core.css +1312 -635
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/gov-accordion-item.entry.esm.js.map +1 -1
- package/dist/core/gov-accordion.entry.esm.js.map +1 -1
- package/dist/core/gov-attachments.gov-attachments-item.gov-form-message.entry.esm.js.map +1 -1
- package/dist/core/gov-backdrop.entry.esm.js.map +1 -1
- package/dist/core/gov-banner.entry.esm.js.map +1 -1
- package/dist/core/gov-blockquote.entry.esm.js.map +1 -1
- package/dist/core/gov-breadcrumbs.entry.esm.js.map +1 -1
- package/dist/core/gov-button.entry.esm.js.map +1 -1
- package/dist/core/gov-card.entry.esm.js.map +1 -1
- package/dist/core/gov-chip.entry.esm.js.map +1 -1
- package/dist/core/gov-collapsible.entry.esm.js.map +1 -0
- package/dist/core/gov-container.entry.esm.js.map +1 -1
- package/dist/core/gov-control-group.entry.esm.js.map +1 -1
- package/dist/core/gov-cookiebar.entry.esm.js.map +1 -1
- package/dist/core/gov-dialog.entry.esm.js.map +1 -1
- package/dist/core/gov-dropdown.entry.esm.js.map +1 -1
- package/dist/core/gov-empty.entry.esm.js.map +1 -1
- package/dist/core/gov-error-code.entry.esm.js.map +1 -1
- package/dist/core/gov-flex.gov-icon.gov-theme-switch.entry.esm.js.map +1 -1
- package/dist/core/gov-form-autocomplete.entry.esm.js.map +1 -1
- package/dist/core/gov-form-checkbox-group.entry.esm.js.map +1 -1
- package/dist/core/gov-form-checkbox.entry.esm.js.map +1 -1
- package/dist/core/gov-form-control.entry.esm.js.map +1 -1
- package/dist/core/gov-form-file.entry.esm.js.map +1 -1
- package/dist/core/gov-form-group.entry.esm.js.map +1 -1
- package/dist/core/gov-form-input.gov-skeleton.entry.esm.js.map +1 -1
- package/dist/core/gov-form-label.entry.esm.js.map +1 -1
- package/dist/core/gov-form-multi-select.entry.esm.js.map +1 -1
- package/dist/core/gov-form-password-power.entry.esm.js.map +1 -1
- package/dist/core/gov-form-radio-group.entry.esm.js.map +1 -1
- package/dist/core/gov-form-radio.entry.esm.js.map +1 -1
- package/dist/core/gov-form-range.entry.esm.js.map +1 -1
- package/dist/core/gov-form-search.entry.esm.js.map +1 -1
- package/dist/core/gov-form-select.entry.esm.js.map +1 -1
- package/dist/core/gov-form-switch.entry.esm.js.map +1 -1
- package/dist/core/gov-grid-item.entry.esm.js.map +1 -1
- package/dist/core/gov-grid.entry.esm.js.map +1 -1
- package/dist/core/gov-infobar.entry.esm.js.map +1 -1
- package/dist/core/gov-layout-column.entry.esm.js.map +1 -1
- package/dist/core/gov-layout.entry.esm.js.map +1 -1
- package/dist/core/gov-lifecycle.entry.esm.js.map +1 -1
- package/dist/core/gov-link.entry.esm.js.map +1 -1
- package/dist/core/gov-loading.entry.esm.js.map +1 -1
- package/dist/core/gov-message.entry.esm.js.map +1 -1
- package/dist/core/gov-pagination.entry.esm.js.map +1 -1
- package/dist/core/gov-spacer.entry.esm.js.map +1 -1
- package/dist/core/gov-stepper-item.entry.esm.js.map +1 -1
- package/dist/core/gov-stepper.entry.esm.js.map +1 -1
- package/dist/core/gov-tabs-item.entry.esm.js.map +1 -1
- package/dist/core/gov-tabs.entry.esm.js.map +1 -1
- package/dist/core/gov-tag.entry.esm.js.map +1 -1
- package/dist/core/gov-tile.entry.esm.js.map +1 -1
- package/dist/core/gov-toast.entry.esm.js.map +1 -1
- package/dist/core/gov-tooltip.gov-tooltip-content.entry.esm.js.map +1 -0
- package/dist/core/gov-wizard-item.entry.esm.js.map +1 -1
- package/dist/core/gov-wizard.entry.esm.js.map +1 -1
- package/dist/core/{p-c1a1fc45.entry.js → p-017d6340.entry.js} +2 -2
- package/dist/core/p-017d6340.entry.js.map +1 -0
- package/dist/core/p-01bc645f.entry.js +2 -0
- package/dist/core/p-01bc645f.entry.js.map +1 -0
- package/dist/core/p-0e06af2b.entry.js +2 -0
- package/dist/core/p-0e06af2b.entry.js.map +1 -0
- package/dist/core/{p-658c1d84.entry.js → p-1375d52d.entry.js} +2 -2
- package/dist/core/p-1375d52d.entry.js.map +1 -0
- package/dist/core/p-264cbd4e.entry.js +2 -0
- package/dist/core/p-264cbd4e.entry.js.map +1 -0
- package/dist/core/{p-2142c481.entry.js → p-2cfa670d.entry.js} +2 -2
- package/dist/core/p-2cfa670d.entry.js.map +1 -0
- package/dist/core/p-33a62c22.entry.js +2 -0
- package/dist/core/p-33a62c22.entry.js.map +1 -0
- package/dist/core/p-37f6095e.entry.js +2 -0
- package/dist/core/p-37f6095e.entry.js.map +1 -0
- package/dist/core/p-3cf20b56.entry.js +2 -0
- package/dist/core/p-3cf20b56.entry.js.map +1 -0
- package/dist/core/{p-0dbda4ab.entry.js → p-46824842.entry.js} +2 -2
- package/dist/core/p-46824842.entry.js.map +1 -0
- package/dist/core/p-46effc25.entry.js +2 -0
- package/dist/core/p-46effc25.entry.js.map +1 -0
- package/dist/core/{p-19a408eb.entry.js → p-495e25d8.entry.js} +2 -2
- package/dist/core/p-495e25d8.entry.js.map +1 -0
- package/dist/core/p-4aea131f.entry.js +2 -0
- package/dist/core/p-4aea131f.entry.js.map +1 -0
- package/dist/core/p-4ce8e721.entry.js +2 -0
- package/dist/core/p-4ce8e721.entry.js.map +1 -0
- package/dist/core/p-5283672a.entry.js +2 -0
- package/dist/core/p-5283672a.entry.js.map +1 -0
- package/dist/core/{p-90ff56f4.entry.js → p-54209c57.entry.js} +2 -2
- package/dist/core/p-54209c57.entry.js.map +1 -0
- package/dist/core/p-56dc11ba.entry.js +2 -0
- package/dist/core/p-56dc11ba.entry.js.map +1 -0
- package/dist/core/{p-d4440adf.entry.js → p-5721cf9b.entry.js} +2 -2
- package/dist/core/p-5721cf9b.entry.js.map +1 -0
- package/dist/core/p-58911028.entry.js +2 -0
- package/dist/core/p-58911028.entry.js.map +1 -0
- package/dist/core/p-5itQzbON.js.map +1 -1
- package/dist/core/p-617b0dbe.entry.js +2 -0
- package/dist/core/p-617b0dbe.entry.js.map +1 -0
- package/dist/core/{p-8873dc4b.entry.js → p-6781bfc0.entry.js} +2 -2
- package/dist/core/p-6781bfc0.entry.js.map +1 -0
- package/dist/core/p-67d1e6e2.entry.js +2 -0
- package/dist/core/p-67d1e6e2.entry.js.map +1 -0
- package/dist/core/p-6e42a12a.entry.js +2 -0
- package/dist/core/p-6e42a12a.entry.js.map +1 -0
- package/dist/core/{p-bbe0d727.entry.js → p-6f173022.entry.js} +2 -2
- package/dist/core/p-6f173022.entry.js.map +1 -0
- package/dist/core/p-7099beb0.entry.js +2 -0
- package/dist/core/p-7099beb0.entry.js.map +1 -0
- package/dist/core/{p-962d5767.entry.js → p-715c0e2e.entry.js} +2 -2
- package/dist/core/p-715c0e2e.entry.js.map +1 -0
- package/dist/core/p-7387370c.entry.js +2 -0
- package/dist/core/p-7387370c.entry.js.map +1 -0
- package/dist/core/p-768fe015.entry.js +2 -0
- package/dist/core/p-768fe015.entry.js.map +1 -0
- package/dist/core/p-7a3d4b6b.entry.js +2 -0
- package/dist/core/p-7a3d4b6b.entry.js.map +1 -0
- package/dist/core/p-7f4cf2f9.entry.js +2 -0
- package/dist/core/p-7f4cf2f9.entry.js.map +1 -0
- package/dist/core/{p-aaa73dc8.entry.js → p-8161e1fe.entry.js} +2 -2
- package/dist/core/p-8161e1fe.entry.js.map +1 -0
- package/dist/core/p-820eb0fb.entry.js +2 -0
- package/dist/core/p-820eb0fb.entry.js.map +1 -0
- package/dist/core/{p-e169f098.entry.js → p-8655fd24.entry.js} +2 -2
- package/dist/core/p-8655fd24.entry.js.map +1 -0
- package/dist/core/p-8f6172d4.entry.js +2 -0
- package/dist/core/p-8f6172d4.entry.js.map +1 -0
- package/dist/core/p-90cd5ffe.entry.js +2 -0
- package/dist/core/p-90cd5ffe.entry.js.map +1 -0
- package/dist/core/p-98314c19.entry.js +2 -0
- package/dist/core/p-98314c19.entry.js.map +1 -0
- package/dist/core/p-B6CqPcY_.js.map +1 -1
- package/dist/core/p-BUmDydor.js.map +1 -1
- package/dist/core/p-BcQO4NH2.js.map +1 -1
- package/dist/core/p-BjcqOprh.js.map +1 -1
- package/dist/core/p-Bo1ROm5Q.js.map +1 -1
- package/dist/core/p-Bz_RzYFb.js.map +1 -1
- package/dist/core/p-C3R1T_pg.js.map +1 -1
- package/dist/core/p-C6JN9gdb.js.map +1 -1
- package/dist/core/p-CDIRBJsi.js.map +1 -1
- package/dist/core/p-CQvUntGY.js.map +1 -1
- package/dist/core/p-Ccwpa1ck.js.map +1 -1
- package/dist/core/p-CgDnDrq5.js.map +1 -1
- package/dist/core/p-Cjg0wpDG.js.map +1 -1
- package/dist/core/p-ClISz4NF.js +3 -0
- package/dist/core/p-ClISz4NF.js.map +1 -0
- package/dist/core/p-CoD1xawt.js +2 -0
- package/dist/core/p-CoD1xawt.js.map +1 -0
- package/dist/core/p-Cx3bEC5v.js.map +1 -1
- package/dist/core/p-CzXeijOj.js.map +1 -1
- package/dist/core/p-D4TGB274.js.map +1 -1
- package/dist/core/p-DBXGhafv.js.map +1 -1
- package/dist/core/p-DNztiAH0.js.map +1 -1
- package/dist/core/p-DQuL1Twl.js.map +1 -1
- package/dist/core/p-DYcNEwSZ.js.map +1 -1
- package/dist/core/p-EeKNA85D.js.map +1 -1
- package/dist/core/p-GYov8gU1.js.map +1 -1
- package/dist/core/p-NOJjz9dT.js.map +1 -1
- package/dist/core/p-Q99QrOoi.js.map +1 -1
- package/dist/core/p-U40vKHrs.js.map +1 -1
- package/dist/core/p-ac962619.entry.js +2 -0
- package/dist/core/p-ac962619.entry.js.map +1 -0
- package/dist/core/p-ae6d0bcd.entry.js +2 -0
- package/dist/core/p-ae6d0bcd.entry.js.map +1 -0
- package/dist/core/p-b3b517f0.entry.js +2 -0
- package/dist/core/p-b3b517f0.entry.js.map +1 -0
- package/dist/core/p-b7306a6f.entry.js +2 -0
- package/dist/core/p-b7306a6f.entry.js.map +1 -0
- package/dist/core/{p-d48d5870.entry.js → p-b93548cc.entry.js} +2 -2
- package/dist/core/p-b93548cc.entry.js.map +1 -0
- package/dist/core/p-be3bbe06.entry.js +2 -0
- package/dist/core/p-be3bbe06.entry.js.map +1 -0
- package/dist/core/{p-5c9371da.entry.js → p-c6b55c0a.entry.js} +2 -2
- package/dist/core/p-c6b55c0a.entry.js.map +1 -0
- package/dist/core/p-cf06a38b.entry.js +2 -0
- package/dist/core/p-cf06a38b.entry.js.map +1 -0
- package/dist/core/p-dec65494.entry.js +2 -0
- package/dist/core/p-dec65494.entry.js.map +1 -0
- package/dist/core/p-df09f0be.entry.js +2 -0
- package/dist/core/p-df09f0be.entry.js.map +1 -0
- package/dist/core/p-e0634fae.entry.js +2 -0
- package/dist/core/p-e0634fae.entry.js.map +1 -0
- package/dist/core/{p-f0505205.entry.js → p-e1b2af6b.entry.js} +2 -2
- package/dist/core/p-e1b2af6b.entry.js.map +1 -0
- package/dist/core/p-e29cd545.entry.js +2 -0
- package/dist/core/p-e29cd545.entry.js.map +1 -0
- package/dist/core/p-e5e7abe0.entry.js +2 -0
- package/dist/core/p-e5e7abe0.entry.js.map +1 -0
- package/dist/core/{p-48a3bb49.entry.js → p-e7f889c7.entry.js} +2 -2
- package/dist/core/p-e7f889c7.entry.js.map +1 -0
- package/dist/core/p-ebd3d25f.entry.js +2 -0
- package/dist/core/p-ebd3d25f.entry.js.map +1 -0
- package/dist/core/p-f067af74.entry.js +2 -0
- package/dist/core/p-f067af74.entry.js.map +1 -0
- package/dist/core/p-f58a20af.entry.js +2 -0
- package/dist/core/p-f58a20af.entry.js.map +1 -0
- package/dist/core/{p-984b6020.entry.js → p-f7bdb44a.entry.js} +2 -2
- package/dist/core/p-f7bdb44a.entry.js.map +1 -0
- package/dist/core/p-fe3bd57c.entry.js +2 -0
- package/dist/core/p-fe3bd57c.entry.js.map +1 -0
- package/dist/core/p-vN03FcXN.js.map +1 -1
- 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-app.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 +33 -0
- package/dist/dist/dist/components/index.d.ts +33 -0
- package/dist/dist/dist/globals.d.ts +2 -0
- package/dist/dist/dist/hydrate/index.d.ts +273 -0
- package/dist/dist/dist/types/interfaces.d.ts +1 -0
- package/dist/dist/dist/types/stencil-public-runtime.d.ts +1702 -0
- package/dist/dist/globals.d.ts +2 -0
- package/dist/dist/hydrate/index.d.ts +273 -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/constants.d.ts +11 -0
- package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +149 -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 +129 -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 +28 -0
- package/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +58 -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 +1702 -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/Fragment-5itQzbON.js.map +1 -1
- package/dist/esm/accessibility-wqNV8djF.js.map +1 -1
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
- package/dist/esm/array.utils-CJ0U_ONv.js.map +1 -1
- package/dist/esm/attribute-Bz_RzYFb.js.map +1 -1
- package/dist/esm/colors-U40vKHrs.js.map +1 -1
- package/dist/esm/constants-BNBB_29K.js.map +1 -1
- package/dist/esm/constants-BegH8u6i.js.map +1 -1
- package/dist/esm/constants-BiWo5BNa.js.map +1 -1
- package/dist/esm/constants-CysDgoMA.js.map +1 -1
- package/dist/esm/constants-DHvN41Ek.js.map +1 -1
- package/dist/esm/constants-DbTQsVRc.js.map +1 -1
- package/dist/esm/constants-Du0ZtfYe.js.map +1 -1
- package/dist/esm/constants-Q99QrOoi.js.map +1 -1
- package/dist/esm/constants-YOtDGTm5.js.map +1 -1
- package/dist/esm/constants-aqe7GX2n.js.map +1 -1
- package/dist/esm/constants-oYp2tkdN.js.map +1 -1
- package/dist/esm/core.js +4 -4
- package/dist/esm/core.js.map +1 -1
- package/dist/esm/form-DvhJiKwA.js.map +1 -1
- package/dist/esm/gov-accordion-item.entry.js +5 -5
- package/dist/esm/gov-accordion-item.entry.js.map +1 -1
- package/dist/esm/gov-accordion.entry.js +3 -3
- package/dist/esm/gov-accordion.entry.js.map +1 -1
- package/dist/esm/gov-attachments.gov-attachments-item.gov-form-message.entry.js.map +1 -1
- package/dist/esm/gov-attachments_3.entry.js +11 -7
- package/dist/esm/gov-attachments_3.entry.js.map +1 -1
- package/dist/esm/gov-backdrop.entry.js +3 -3
- package/dist/esm/gov-backdrop.entry.js.map +1 -1
- package/dist/esm/gov-banner.entry.js +4 -4
- package/dist/esm/gov-banner.entry.js.map +1 -1
- package/dist/esm/gov-blockquote.entry.js +3 -3
- package/dist/esm/gov-blockquote.entry.js.map +1 -1
- package/dist/esm/gov-breadcrumbs.entry.js +3 -3
- package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
- package/dist/esm/gov-button.entry.js +6 -6
- package/dist/esm/gov-button.entry.js.map +1 -1
- package/dist/esm/gov-card.entry.js +3 -3
- package/dist/esm/gov-card.entry.js.map +1 -1
- package/dist/esm/gov-chip.entry.js +4 -4
- package/dist/esm/gov-chip.entry.js.map +1 -1
- package/dist/esm/gov-collapsible.entry.js +84 -0
- package/dist/esm/gov-collapsible.entry.js.map +1 -0
- package/dist/esm/gov-container.entry.js +3 -3
- package/dist/esm/gov-container.entry.js.map +1 -1
- package/dist/esm/gov-control-group.entry.js +9 -5
- package/dist/esm/gov-control-group.entry.js.map +1 -1
- package/dist/esm/gov-cookiebar.entry.js +3 -3
- package/dist/esm/gov-cookiebar.entry.js.map +1 -1
- package/dist/esm/gov-dialog.entry.js +3 -3
- package/dist/esm/gov-dialog.entry.js.map +1 -1
- package/dist/esm/gov-dropdown.entry.js +3 -3
- package/dist/esm/gov-dropdown.entry.js.map +1 -1
- package/dist/esm/gov-empty.entry.js +3 -3
- package/dist/esm/gov-empty.entry.js.map +1 -1
- package/dist/esm/gov-error-code.entry.js +3 -3
- package/dist/esm/gov-error-code.entry.js.map +1 -1
- package/dist/esm/gov-flex.gov-icon.gov-theme-switch.entry.js.map +1 -1
- package/dist/esm/gov-flex_3.entry.js +5 -5
- package/dist/esm/gov-flex_3.entry.js.map +1 -1
- package/dist/esm/gov-form-autocomplete.entry.js +3 -3
- package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
- package/dist/esm/gov-form-checkbox-group.entry.js +4 -4
- package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
- package/dist/esm/gov-form-checkbox.entry.js +2 -2
- package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
- package/dist/esm/gov-form-control.entry.js +3 -3
- package/dist/esm/gov-form-control.entry.js.map +1 -1
- package/dist/esm/gov-form-file.entry.js +3 -7
- package/dist/esm/gov-form-file.entry.js.map +1 -1
- package/dist/esm/gov-form-group.entry.js +3 -3
- package/dist/esm/gov-form-group.entry.js.map +1 -1
- package/dist/esm/gov-form-input.gov-skeleton.entry.js.map +1 -1
- package/dist/esm/gov-form-input_2.entry.js +8 -8
- package/dist/esm/gov-form-input_2.entry.js.map +1 -1
- package/dist/esm/gov-form-label.entry.js +2 -2
- package/dist/esm/gov-form-label.entry.js.map +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +4 -4
- package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
- package/dist/esm/gov-form-password-power.entry.js +2 -2
- package/dist/esm/gov-form-password-power.entry.js.map +1 -1
- package/dist/esm/gov-form-radio-group.entry.js +4 -4
- package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
- package/dist/esm/gov-form-radio.entry.js +2 -2
- package/dist/esm/gov-form-radio.entry.js.map +1 -1
- package/dist/esm/gov-form-range.entry.js +4 -4
- package/dist/esm/gov-form-range.entry.js.map +1 -1
- package/dist/esm/gov-form-search.entry.js +2 -2
- package/dist/esm/gov-form-search.entry.js.map +1 -1
- package/dist/esm/gov-form-select.entry.js +4 -4
- package/dist/esm/gov-form-select.entry.js.map +1 -1
- package/dist/esm/gov-form-switch.entry.js +2 -2
- package/dist/esm/gov-form-switch.entry.js.map +1 -1
- package/dist/esm/gov-grid-item.entry.js +3 -3
- package/dist/esm/gov-grid-item.entry.js.map +1 -1
- package/dist/esm/gov-grid.entry.js +3 -3
- package/dist/esm/gov-grid.entry.js.map +1 -1
- package/dist/esm/gov-infobar.entry.js +4 -4
- package/dist/esm/gov-infobar.entry.js.map +1 -1
- package/dist/esm/gov-layout-column.entry.js +3 -3
- package/dist/esm/gov-layout-column.entry.js.map +1 -1
- package/dist/esm/gov-layout.entry.js +3 -3
- package/dist/esm/gov-layout.entry.js.map +1 -1
- package/dist/esm/gov-lifecycle.entry.js +2 -2
- package/dist/esm/gov-lifecycle.entry.js.map +1 -1
- package/dist/esm/gov-link.entry.js +3 -3
- package/dist/esm/gov-link.entry.js.map +1 -1
- package/dist/esm/gov-loading.entry.js +3 -3
- package/dist/esm/gov-loading.entry.js.map +1 -1
- package/dist/esm/gov-message.entry.js +3 -3
- package/dist/esm/gov-message.entry.js.map +1 -1
- package/dist/esm/gov-pagination.entry.js +2 -2
- package/dist/esm/gov-pagination.entry.js.map +1 -1
- package/dist/esm/gov-spacer.entry.js +3 -3
- package/dist/esm/gov-spacer.entry.js.map +1 -1
- package/dist/esm/gov-stepper-item.entry.js +3 -3
- package/dist/esm/gov-stepper-item.entry.js.map +1 -1
- package/dist/esm/gov-stepper.entry.js +3 -3
- package/dist/esm/gov-stepper.entry.js.map +1 -1
- package/dist/esm/gov-tabs-item.entry.js +3 -3
- package/dist/esm/gov-tabs-item.entry.js.map +1 -1
- package/dist/esm/gov-tabs.entry.js +3 -3
- package/dist/esm/gov-tabs.entry.js.map +1 -1
- package/dist/esm/gov-tag.entry.js +3 -3
- package/dist/esm/gov-tag.entry.js.map +1 -1
- package/dist/esm/gov-tile.entry.js +3 -3
- package/dist/esm/gov-tile.entry.js.map +1 -1
- package/dist/esm/gov-toast.entry.js +3 -3
- package/dist/esm/gov-toast.entry.js.map +1 -1
- package/dist/esm/gov-tooltip.gov-tooltip-content.entry.js.map +1 -0
- package/dist/esm/{gov-tooltip.entry.js → gov-tooltip_2.entry.js} +78 -11
- package/dist/esm/gov-tooltip_2.entry.js.map +1 -0
- package/dist/esm/gov-wizard-item.entry.js +4 -4
- package/dist/esm/gov-wizard-item.entry.js.map +1 -1
- package/dist/esm/gov-wizard.entry.js +3 -3
- package/dist/esm/gov-wizard.entry.js.map +1 -1
- package/dist/esm/gov.log-BtqD9K8d.js.map +1 -1
- package/dist/esm/helpers-GYov8gU1.js.map +1 -1
- package/dist/esm/helpers.types-DNztiAH0.js.map +1 -1
- package/dist/esm/{index-DT2tslUp.js → index-ClISz4NF.js} +148 -490
- package/dist/esm/index-ClISz4NF.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/props-CJZgTDla.js.map +1 -1
- package/dist/esm/sizes-BcQO4NH2.js.map +1 -1
- package/dist/esm/stencil.utils-Cjg0wpDG.js.map +1 -1
- package/dist/esm/string.utils-vN03FcXN.js.map +1 -1
- package/dist/esm/{template-BBOh2pxy.js → template-CoD1xawt.js} +6 -2
- package/dist/esm/template-CoD1xawt.js.map +1 -0
- package/dist/esm/utils-CQvUntGY.js.map +1 -1
- package/dist/esm/wcag-CD6_13JO.js.map +1 -1
- package/dist/globals.d.ts +2 -2
- package/dist/hydrate/index.js +373 -412
- package/dist/hydrate/index.mjs +373 -412
- package/dist/stencil.config.js +2 -4
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/Users/KameraT/Desktop/Projects/DIA/Sarka/designSystemFinal/gov-design-system/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
- package/dist/types/components/gov-button/button/gov-button.d.ts +2 -2
- package/dist/types/components/gov-chip/gov-chip.d.ts +1 -1
- package/dist/types/components/gov-collapsible/constants.d.ts +18 -0
- package/dist/types/components/gov-collapsible/gov-collapsible.d.ts +36 -0
- package/dist/types/components/gov-control-group/constants.d.ts +1 -1
- package/dist/types/components/gov-control-group/gov-control-group.d.ts +4 -0
- package/dist/types/components/gov-form/file/gov-form-file.d.ts +0 -4
- package/dist/types/components.d.ts +73 -16
- package/dist/types/helpers/Dom/template.types.d.ts +2 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/interfaces.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +5 -12
- package/dist/types/types/typings.d.ts +6 -6
- package/package.json +29 -29
- package/dist/cjs/constants-CS58GJeI.js +0 -29
- package/dist/cjs/constants-CS58GJeI.js.map +0 -1
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +0 -65
- package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tooltip-content.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tooltip.entry.cjs.js.map +0 -1
- package/dist/cjs/index-pjwoybrU.js.map +0 -1
- package/dist/cjs/template-DS4pSCTb.js.map +0 -1
- package/dist/collection/pages/Accordion.js +0 -300
- package/dist/collection/pages/Accordion.js.map +0 -1
- package/dist/collection/pages/AttributeSection.js +0 -59
- package/dist/collection/pages/AttributeSection.js.map +0 -1
- package/dist/collection/pages/Avatar.js +0 -47
- package/dist/collection/pages/Avatar.js.map +0 -1
- package/dist/collection/pages/Badge.js +0 -29
- package/dist/collection/pages/Badge.js.map +0 -1
- package/dist/collection/pages/Banner.js +0 -278
- package/dist/collection/pages/Banner.js.map +0 -1
- package/dist/collection/pages/Blockquote.js +0 -25
- package/dist/collection/pages/Blockquote.js.map +0 -1
- package/dist/collection/pages/Breadcrumbs.js +0 -62
- package/dist/collection/pages/Breadcrumbs.js.map +0 -1
- package/dist/collection/pages/Button.js +0 -1450
- package/dist/collection/pages/Button.js.map +0 -1
- package/dist/collection/pages/Card.js +0 -78
- package/dist/collection/pages/Card.js.map +0 -1
- package/dist/collection/pages/Chip.js +0 -265
- package/dist/collection/pages/Chip.js.map +0 -1
- package/dist/collection/pages/Collapsible.js +0 -43
- package/dist/collection/pages/Collapsible.js.map +0 -1
- package/dist/collection/pages/Container.js +0 -21
- package/dist/collection/pages/Container.js.map +0 -1
- package/dist/collection/pages/ControlGroup.js +0 -136
- package/dist/collection/pages/ControlGroup.js.map +0 -1
- package/dist/collection/pages/CookieConsent.js +0 -29
- package/dist/collection/pages/CookieConsent.js.map +0 -1
- package/dist/collection/pages/Dialog.js +0 -56
- package/dist/collection/pages/Dialog.js.map +0 -1
- package/dist/collection/pages/Empty.js +0 -64
- package/dist/collection/pages/Empty.js.map +0 -1
- package/dist/collection/pages/Error.js +0 -18
- package/dist/collection/pages/Error.js.map +0 -1
- package/dist/collection/pages/Flex.js +0 -62
- package/dist/collection/pages/Flex.js.map +0 -1
- package/dist/collection/pages/FormLabel.js +0 -13
- package/dist/collection/pages/FormLabel.js.map +0 -1
- package/dist/collection/pages/FormMessage.js +0 -82
- package/dist/collection/pages/FormMessage.js.map +0 -1
- package/dist/collection/pages/Forms.js +0 -2318
- package/dist/collection/pages/Forms.js.map +0 -1
- package/dist/collection/pages/FormsRestructure.js +0 -13
- package/dist/collection/pages/FormsRestructure.js.map +0 -1
- package/dist/collection/pages/Grid.js +0 -113
- package/dist/collection/pages/Grid.js.map +0 -1
- package/dist/collection/pages/Home.js +0 -114
- package/dist/collection/pages/Home.js.map +0 -1
- package/dist/collection/pages/HorizontalStepper.js +0 -85
- package/dist/collection/pages/HorizontalStepper.js.map +0 -1
- package/dist/collection/pages/Icon.js +0 -32
- package/dist/collection/pages/Icon.js.map +0 -1
- package/dist/collection/pages/Infobar.js +0 -129
- package/dist/collection/pages/Infobar.js.map +0 -1
- package/dist/collection/pages/Layout.js +0 -97
- package/dist/collection/pages/Layout.js.map +0 -1
- package/dist/collection/pages/Loading.js +0 -89
- package/dist/collection/pages/Loading.js.map +0 -1
- package/dist/collection/pages/Message.js +0 -82
- package/dist/collection/pages/Message.js.map +0 -1
- package/dist/collection/pages/Pagination.js +0 -38
- package/dist/collection/pages/Pagination.js.map +0 -1
- package/dist/collection/pages/Spacer.js +0 -26
- package/dist/collection/pages/Spacer.js.map +0 -1
- package/dist/collection/pages/Stepper.js +0 -103
- package/dist/collection/pages/Stepper.js.map +0 -1
- package/dist/collection/pages/Tabs.js +0 -611
- package/dist/collection/pages/Tabs.js.map +0 -1
- package/dist/collection/pages/Tag.js +0 -220
- package/dist/collection/pages/Tag.js.map +0 -1
- package/dist/collection/pages/Tiles.js +0 -107
- package/dist/collection/pages/Tiles.js.map +0 -1
- package/dist/collection/pages/ToastMessage.js +0 -47
- package/dist/collection/pages/ToastMessage.js.map +0 -1
- package/dist/collection/pages/ToastMessageCountdown.js +0 -47
- package/dist/collection/pages/ToastMessageCountdown.js.map +0 -1
- package/dist/collection/pages/Tooltip.js +0 -168
- package/dist/collection/pages/Tooltip.js.map +0 -1
- package/dist/collection/pages/Typography.js +0 -161
- package/dist/collection/pages/Typography.js.map +0 -1
- package/dist/collection/pages/UserNavigation.js +0 -134
- package/dist/collection/pages/UserNavigation.js.map +0 -1
- package/dist/collection/pages/Wizard.js +0 -106
- package/dist/collection/pages/Wizard.js.map +0 -1
- package/dist/components/p-8QWehgod.js +0 -2
- package/dist/components/p-8QWehgod.js.map +0 -1
- package/dist/components/p-BcZ7-N5H.js +0 -2
- package/dist/components/p-BcZ7-N5H.js.map +0 -1
- package/dist/components/p-BlBAryxm.js +0 -2
- package/dist/components/p-BlBAryxm.js.map +0 -1
- package/dist/components/p-Btw6IAjS.js.map +0 -1
- package/dist/components/p-C4pc6Rox.js.map +0 -1
- package/dist/components/p-CSjqhysd.js.map +0 -1
- package/dist/components/p-Cta_74Ps.js +0 -2
- package/dist/components/p-Cta_74Ps.js.map +0 -1
- package/dist/components/p-D4Z6jWqx.js +0 -2
- package/dist/components/p-D4Z6jWqx.js.map +0 -1
- package/dist/components/p-DfJDyRCE.js +0 -2
- package/dist/components/p-DfJDyRCE.js.map +0 -1
- package/dist/components/p-DnZEr-aq.js +0 -2
- package/dist/components/p-DnZEr-aq.js.map +0 -1
- package/dist/components/p-WmFNIuTf.js.map +0 -1
- package/dist/components/p-wlTP5ZEU.js.map +0 -1
- package/dist/core/gov-tooltip-content.entry.esm.js.map +0 -1
- package/dist/core/gov-tooltip.entry.esm.js.map +0 -1
- package/dist/core/p-01482eb2.entry.js +0 -2
- package/dist/core/p-01482eb2.entry.js.map +0 -1
- package/dist/core/p-0dbda4ab.entry.js.map +0 -1
- package/dist/core/p-19a408eb.entry.js.map +0 -1
- package/dist/core/p-1bfbad36.entry.js +0 -2
- package/dist/core/p-1bfbad36.entry.js.map +0 -1
- package/dist/core/p-1f4450cc.entry.js +0 -2
- package/dist/core/p-1f4450cc.entry.js.map +0 -1
- package/dist/core/p-2142c481.entry.js.map +0 -1
- package/dist/core/p-25a33448.entry.js +0 -2
- package/dist/core/p-25a33448.entry.js.map +0 -1
- package/dist/core/p-2affc4c0.entry.js +0 -2
- package/dist/core/p-2affc4c0.entry.js.map +0 -1
- package/dist/core/p-3477fcf1.entry.js +0 -2
- package/dist/core/p-3477fcf1.entry.js.map +0 -1
- package/dist/core/p-35c24ac5.entry.js +0 -2
- package/dist/core/p-35c24ac5.entry.js.map +0 -1
- package/dist/core/p-35f784be.entry.js +0 -2
- package/dist/core/p-35f784be.entry.js.map +0 -1
- package/dist/core/p-37770cee.entry.js +0 -2
- package/dist/core/p-37770cee.entry.js.map +0 -1
- package/dist/core/p-37b98852.entry.js +0 -2
- package/dist/core/p-37b98852.entry.js.map +0 -1
- package/dist/core/p-48a3bb49.entry.js.map +0 -1
- package/dist/core/p-4e170f53.entry.js +0 -2
- package/dist/core/p-4e170f53.entry.js.map +0 -1
- package/dist/core/p-57aac00e.entry.js +0 -2
- package/dist/core/p-57aac00e.entry.js.map +0 -1
- package/dist/core/p-5c9371da.entry.js.map +0 -1
- package/dist/core/p-6508f953.entry.js +0 -2
- package/dist/core/p-6508f953.entry.js.map +0 -1
- package/dist/core/p-658c1d84.entry.js.map +0 -1
- package/dist/core/p-730b823a.entry.js +0 -2
- package/dist/core/p-730b823a.entry.js.map +0 -1
- package/dist/core/p-7f46f70a.entry.js +0 -2
- package/dist/core/p-7f46f70a.entry.js.map +0 -1
- package/dist/core/p-83507d07.entry.js +0 -2
- package/dist/core/p-83507d07.entry.js.map +0 -1
- package/dist/core/p-871d4318.entry.js +0 -2
- package/dist/core/p-871d4318.entry.js.map +0 -1
- package/dist/core/p-8873dc4b.entry.js.map +0 -1
- package/dist/core/p-8c942041.entry.js +0 -2
- package/dist/core/p-8c942041.entry.js.map +0 -1
- package/dist/core/p-8d42ee97.entry.js +0 -2
- package/dist/core/p-8d42ee97.entry.js.map +0 -1
- package/dist/core/p-8dceba0b.entry.js +0 -2
- package/dist/core/p-8dceba0b.entry.js.map +0 -1
- package/dist/core/p-901cbf94.entry.js +0 -2
- package/dist/core/p-901cbf94.entry.js.map +0 -1
- package/dist/core/p-90b277bb.entry.js +0 -2
- package/dist/core/p-90b277bb.entry.js.map +0 -1
- package/dist/core/p-90ff56f4.entry.js.map +0 -1
- package/dist/core/p-962d5767.entry.js.map +0 -1
- package/dist/core/p-984b6020.entry.js.map +0 -1
- package/dist/core/p-9d2a4eb1.entry.js +0 -2
- package/dist/core/p-9d2a4eb1.entry.js.map +0 -1
- package/dist/core/p-9ff7e018.entry.js +0 -2
- package/dist/core/p-9ff7e018.entry.js.map +0 -1
- package/dist/core/p-BBOh2pxy.js +0 -2
- package/dist/core/p-BBOh2pxy.js.map +0 -1
- package/dist/core/p-CLBboRhb.js +0 -2
- package/dist/core/p-CLBboRhb.js.map +0 -1
- package/dist/core/p-DT2tslUp.js +0 -3
- package/dist/core/p-DT2tslUp.js.map +0 -1
- package/dist/core/p-a18c600d.entry.js +0 -2
- package/dist/core/p-a18c600d.entry.js.map +0 -1
- package/dist/core/p-aaa73dc8.entry.js.map +0 -1
- package/dist/core/p-ade69b24.entry.js +0 -2
- package/dist/core/p-ade69b24.entry.js.map +0 -1
- package/dist/core/p-b19afdd8.entry.js +0 -2
- package/dist/core/p-b19afdd8.entry.js.map +0 -1
- package/dist/core/p-b97b4439.entry.js +0 -2
- package/dist/core/p-b97b4439.entry.js.map +0 -1
- package/dist/core/p-bbe0d727.entry.js.map +0 -1
- package/dist/core/p-bedd75e1.entry.js +0 -2
- package/dist/core/p-bedd75e1.entry.js.map +0 -1
- package/dist/core/p-c1a1fc45.entry.js.map +0 -1
- package/dist/core/p-c6f52c6f.entry.js +0 -2
- package/dist/core/p-c6f52c6f.entry.js.map +0 -1
- package/dist/core/p-c99cc786.entry.js +0 -2
- package/dist/core/p-c99cc786.entry.js.map +0 -1
- package/dist/core/p-c9edada1.entry.js +0 -2
- package/dist/core/p-c9edada1.entry.js.map +0 -1
- package/dist/core/p-cddfc899.entry.js +0 -2
- package/dist/core/p-cddfc899.entry.js.map +0 -1
- package/dist/core/p-ce588d98.entry.js +0 -2
- package/dist/core/p-ce588d98.entry.js.map +0 -1
- package/dist/core/p-d4440adf.entry.js.map +0 -1
- package/dist/core/p-d48d5870.entry.js.map +0 -1
- package/dist/core/p-e169f098.entry.js.map +0 -1
- package/dist/core/p-e3e3e9f2.entry.js +0 -2
- package/dist/core/p-e3e3e9f2.entry.js.map +0 -1
- package/dist/core/p-e8507630.entry.js +0 -2
- package/dist/core/p-e8507630.entry.js.map +0 -1
- package/dist/core/p-e9284c2b.entry.js +0 -2
- package/dist/core/p-e9284c2b.entry.js.map +0 -1
- package/dist/core/p-f01eb407.entry.js +0 -2
- package/dist/core/p-f01eb407.entry.js.map +0 -1
- package/dist/core/p-f0505205.entry.js.map +0 -1
- package/dist/core/p-f3c873f5.entry.js +0 -2
- package/dist/core/p-f3c873f5.entry.js.map +0 -1
- package/dist/esm/constants-TT_l4YYj.js +0 -24
- package/dist/esm/constants-TT_l4YYj.js.map +0 -1
- package/dist/esm/gov-tooltip-content.entry.js +0 -63
- package/dist/esm/gov-tooltip-content.entry.js.map +0 -1
- package/dist/esm/gov-tooltip.entry.js.map +0 -1
- package/dist/esm/index-DT2tslUp.js.map +0 -1
- package/dist/esm/template-BBOh2pxy.js.map +0 -1
- package/dist/types/Users/iwory/iWork/asseco/mv/gov-design-system-ce/packages/core/.stencil/packages/core/stencil.config.d.ts +0 -2
- package/dist/types/pages/Accordion.d.ts +0 -3
- package/dist/types/pages/AttributeSection.d.ts +0 -3
- package/dist/types/pages/Avatar.d.ts +0 -3
- package/dist/types/pages/Badge.d.ts +0 -3
- package/dist/types/pages/Banner.d.ts +0 -3
- package/dist/types/pages/Blockquote.d.ts +0 -3
- package/dist/types/pages/Breadcrumbs.d.ts +0 -3
- package/dist/types/pages/Button.d.ts +0 -3
- package/dist/types/pages/Card.d.ts +0 -3
- package/dist/types/pages/Chip.d.ts +0 -3
- package/dist/types/pages/Collapsible.d.ts +0 -3
- package/dist/types/pages/Container.d.ts +0 -3
- package/dist/types/pages/ControlGroup.d.ts +0 -3
- package/dist/types/pages/CookieConsent.d.ts +0 -3
- package/dist/types/pages/Dialog.d.ts +0 -3
- package/dist/types/pages/Empty.d.ts +0 -3
- package/dist/types/pages/Error.d.ts +0 -3
- package/dist/types/pages/Flex.d.ts +0 -3
- package/dist/types/pages/FormLabel.d.ts +0 -3
- package/dist/types/pages/FormMessage.d.ts +0 -3
- package/dist/types/pages/Forms.d.ts +0 -8
- package/dist/types/pages/FormsRestructure.d.ts +0 -3
- package/dist/types/pages/Grid.d.ts +0 -3
- package/dist/types/pages/Home.d.ts +0 -3
- package/dist/types/pages/HorizontalStepper.d.ts +0 -3
- package/dist/types/pages/Icon.d.ts +0 -3
- package/dist/types/pages/Infobar.d.ts +0 -3
- package/dist/types/pages/Layout.d.ts +0 -3
- package/dist/types/pages/Loading.d.ts +0 -3
- package/dist/types/pages/Message.d.ts +0 -3
- package/dist/types/pages/Pagination.d.ts +0 -3
- package/dist/types/pages/Spacer.d.ts +0 -3
- package/dist/types/pages/Stepper.d.ts +0 -3
- package/dist/types/pages/Tabs.d.ts +0 -3
- package/dist/types/pages/Tag.d.ts +0 -3
- package/dist/types/pages/Tiles.d.ts +0 -3
- package/dist/types/pages/ToastMessage.d.ts +0 -3
- package/dist/types/pages/ToastMessageCountdown.d.ts +0 -3
- package/dist/types/pages/Tooltip.d.ts +0 -3
- package/dist/types/pages/Typography.d.ts +0 -3
- package/dist/types/pages/UserNavigation.d.ts +0 -24
- package/dist/types/pages/Wizard.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-DYcNEwSZ.js","sources":["../../../packages/core/src/components/gov-form/autocomplete/constants.ts"],"sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormAutocompleteSizes = pick(Sizes, ['_XS','_S', '_M', '_L', '_XL'])\nexport type SizesType = `${ValueOf<typeof FormAutocompleteSizes>}`\n\nexport const FormAutocompleteClass = {\n\troot: 'gov-form-autocomplete',\n\tlist: 'gov-form-autocomplete__list',\n\titem: 'gov-form-autocomplete__item',\n\tempty: 'gov-form-autocomplete__item--empty',\n\tloading: 'gov-form-autocomplete__item--loading',\n}\n"],"names":[],"mappings":";;;MAIa,qBAAqB,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC;AAGnE,MAAA,qBAAqB,GAAG;AACpC,IAAA,IAAI,EAAE,uBAAuB;AAC7B,IAAA,IAAI,EAAE,6BAA6B;AACnC,IAAA,IAAI,EAAE,6BAA6B;AACnC,IAAA,KAAK,EAAE,oCAAoC;AAC3C,IAAA,OAAO,EAAE,sCAAsC;;;;;"}
|
|
1
|
+
{"version":3,"file":"p-DYcNEwSZ.js","sources":["../../../packages/core/src/components/gov-form/autocomplete/constants.ts"],"sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\r\nimport { pick } from '../../../utils/utils'\r\nimport { ValueOf } from '../../../types/interfaces'\r\n\r\nexport const FormAutocompleteSizes = pick(Sizes, ['_XS','_S', '_M', '_L', '_XL'])\r\nexport type SizesType = `${ValueOf<typeof FormAutocompleteSizes>}`\r\n\r\nexport const FormAutocompleteClass = {\r\n\troot: 'gov-form-autocomplete',\r\n\tlist: 'gov-form-autocomplete__list',\r\n\titem: 'gov-form-autocomplete__item',\r\n\tempty: 'gov-form-autocomplete__item--empty',\r\n\tloading: 'gov-form-autocomplete__item--loading',\r\n}\r\n"],"names":[],"mappings":";;;MAIa,qBAAqB,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC;AAGnE,MAAA,qBAAqB,GAAG;AACpC,IAAA,IAAI,EAAE,uBAAuB;AAC7B,IAAA,IAAI,EAAE,6BAA6B;AACnC,IAAA,IAAI,EAAE,6BAA6B;AACnC,IAAA,KAAK,EAAE,oCAAoC;AAC3C,IAAA,OAAO,EAAE,sCAAsC;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-EeKNA85D.js","sources":["../../../packages/core/src/components/gov-form/message/constants.ts"],"sourcesContent":["import { Colors } from '../../../core/constants/colors'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\nimport {Sizes} from \"../../../core/constants/sizes\";\n\nexport const FormMessageColors = pick(Colors, ['NEUTRAL', 'ERROR', 'WARNING', 'SUCCESS'])\nexport type FormMessageColorType = `${ValueOf<typeof FormMessageColors>}`\n\nexport const FormMessageSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type FormMessageSizesTypes = `${ValueOf<typeof FormMessageSizes>}`\n\nexport const FormMessageClass = {\n\troot: 'gov-form-message',\n\tcontent: 'gov-form-message__content',\n}\n"],"names":[],"mappings":";;;;AAKa,MAAA,iBAAiB,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC;AAGxD,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC;AAG/D,MAAA,gBAAgB,GAAG;AAC/B,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,OAAO,EAAE,2BAA2B;;;;;"}
|
|
1
|
+
{"version":3,"file":"p-EeKNA85D.js","sources":["../../../packages/core/src/components/gov-form/message/constants.ts"],"sourcesContent":["import { Colors } from '../../../core/constants/colors'\r\nimport { pick } from '../../../utils/utils'\r\nimport { ValueOf } from '../../../types/interfaces'\r\nimport {Sizes} from \"../../../core/constants/sizes\";\r\n\r\nexport const FormMessageColors = pick(Colors, ['NEUTRAL', 'ERROR', 'WARNING', 'SUCCESS'])\r\nexport type FormMessageColorType = `${ValueOf<typeof FormMessageColors>}`\r\n\r\nexport const FormMessageSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\r\nexport type FormMessageSizesTypes = `${ValueOf<typeof FormMessageSizes>}`\r\n\r\nexport const FormMessageClass = {\r\n\troot: 'gov-form-message',\r\n\tcontent: 'gov-form-message__content',\r\n}\r\n"],"names":[],"mappings":";;;;AAKa,MAAA,iBAAiB,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC;AAGxD,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC;AAG/D,MAAA,gBAAgB,GAAG;AAC/B,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,OAAO,EAAE,2BAA2B;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-GYov8gU1.js","sources":["../../../packages/core/src/components/gov-icon/helpers.ts"],"sourcesContent":["import {Nullable} from \"../../types/interfaces\";\n\nexport type IconType = { type: string, name: string }\n\nexport const prepareIconFormat = (value: string): Nullable<IconType> => {\n\tif (typeof value === 'string' && value.length) {\n\t\tconst regexPattern = /^[a-z-]+\\/[a-z-]+$/;\n\t\tif (regexPattern.test(value)) {\n\t\t\tconst icon = value.split(\"/\");\n\t\t\treturn {\n\t\t\t\ttype: icon[0],\n\t\t\t\tname: icon[1],\n\t\t\t}\n\t\t}\n\t}\n\treturn null\n}\n"],"names":[],"mappings":"AAIa,MAAA,iBAAiB,GAAG,CAAC,KAAa,KAAwB;IACtE,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,EAAE;QAC9C,MAAM,YAAY,GAAG,oBAAoB;AACzC,QAAA,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YAC7B,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;YAC7B,OAAO;AACN,gBAAA,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AACb,gBAAA,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;aACb;;;AAGH,IAAA,OAAO,IAAI;AACZ;;;;"}
|
|
1
|
+
{"version":3,"file":"p-GYov8gU1.js","sources":["../../../packages/core/src/components/gov-icon/helpers.ts"],"sourcesContent":["import {Nullable} from \"../../types/interfaces\";\r\n\r\nexport type IconType = { type: string, name: string }\r\n\r\nexport const prepareIconFormat = (value: string): Nullable<IconType> => {\r\n\tif (typeof value === 'string' && value.length) {\r\n\t\tconst regexPattern = /^[a-z-]+\\/[a-z-]+$/;\r\n\t\tif (regexPattern.test(value)) {\r\n\t\t\tconst icon = value.split(\"/\");\r\n\t\t\treturn {\r\n\t\t\t\ttype: icon[0],\r\n\t\t\t\tname: icon[1],\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn null\r\n}\r\n"],"names":[],"mappings":"AAIa,MAAA,iBAAiB,GAAG,CAAC,KAAa,KAAwB;IACtE,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,EAAE;QAC9C,MAAM,YAAY,GAAG,oBAAoB;AACzC,QAAA,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YAC7B,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;YAC7B,OAAO;AACN,gBAAA,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AACb,gBAAA,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;aACb;;;AAGH,IAAA,OAAO,IAAI;AACZ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-NOJjz9dT.js","sources":["../../../packages/core/src/helpers/Validate/props.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\n\n// @TODO: deal with optional values\nexport const validateProp = <T extends Record<string, string>>(valueEnum: T, value: string, component: string): void => {\n\tconst values = Object.values(valueEnum)\n\tconst isValid = values.indexOf(value) > -1\n\tif (!isValid) {\n\t\tgovWarningLog(`[${component}]: Bad parameter with value (${value}). Available parameters are (${values.join(', ')}).`)\n\t}\n}\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,YAAY,GAAG,CAAmC,SAAY,EAAE,KAAa,EAAE,SAAiB,KAAU;IACtH,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;IACvC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE;IAC1C,IAAI,CAAC,OAAO,EAAE;AACb,QAAA,aAAa,CAAC,CAAA,CAAA,EAAI,SAAS,CAAA,6BAAA,EAAgC,KAAK,CAAgC,6BAAA,EAAA,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,EAAA,CAAI,CAAC;;AAExH;;;;"}
|
|
1
|
+
{"version":3,"file":"p-NOJjz9dT.js","sources":["../../../packages/core/src/helpers/Validate/props.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\r\n\r\n// @TODO: deal with optional values\r\nexport const validateProp = <T extends Record<string, string>>(valueEnum: T, value: string, component: string): void => {\r\n\tconst values = Object.values(valueEnum)\r\n\tconst isValid = values.indexOf(value) > -1\r\n\tif (!isValid) {\r\n\t\tgovWarningLog(`[${component}]: Bad parameter with value (${value}). Available parameters are (${values.join(', ')}).`)\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,YAAY,GAAG,CAAmC,SAAY,EAAE,KAAa,EAAE,SAAiB,KAAU;IACtH,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;IACvC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE;IAC1C,IAAI,CAAC,OAAO,EAAE;AACb,QAAA,aAAa,CAAC,CAAA,CAAA,EAAI,SAAS,CAAA,6BAAA,EAAgC,KAAK,CAAgC,6BAAA,EAAA,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,EAAA,CAAI,CAAC;;AAExH;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-Q99QrOoi.js","sources":["../../../packages/core/src/components/gov-layout/constants.ts"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\n\nexport const LayoutClass = {\n\troot: 'gov-layout',\n\tsection: 'gov-layout__section',\n}\n\nenum LayoutTypes {\n\tSTRETCH = 'stretch',\n\tASIDE = 'aside',\n\tTEXT = 'text',\n}\nexport type LayoutType = `${ValueOf<typeof LayoutTypes>}`\n\nenum LayoutVariant {\n\tLEFT = 'left',\n\tRIGHT = 'right',\n}\n\nexport type LayoutVariantType = `${ValueOf<typeof LayoutVariant>}`\n\nexport const LayoutColumnClass = {\n\troot: 'gov-layout-column',\n}\n"],"names":[],"mappings":"AAEa,MAAA,WAAW,GAAG;AAC1B,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,OAAO,EAAE,qBAAqB;;AAG/B,IAAK,WAIJ;AAJD,CAAA,UAAK,WAAW,EAAA;AACf,IAAA,WAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,WAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACd,CAAC,EAJI,WAAW,KAAX,WAAW,GAIf,EAAA,CAAA,CAAA;AAGD,IAAK,aAGJ;AAHD,CAAA,UAAK,aAAa,EAAA;AACjB,IAAA,aAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,aAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AAChB,CAAC,EAHI,aAAa,KAAb,aAAa,GAGjB,EAAA,CAAA,CAAA;AAIY,MAAA,iBAAiB,GAAG;AAChC,IAAA,IAAI,EAAE,mBAAmB;;;;;"}
|
|
1
|
+
{"version":3,"file":"p-Q99QrOoi.js","sources":["../../../packages/core/src/components/gov-layout/constants.ts"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\r\n\r\nexport const LayoutClass = {\r\n\troot: 'gov-layout',\r\n\tsection: 'gov-layout__section',\r\n}\r\n\r\nenum LayoutTypes {\r\n\tSTRETCH = 'stretch',\r\n\tASIDE = 'aside',\r\n\tTEXT = 'text',\r\n}\r\nexport type LayoutType = `${ValueOf<typeof LayoutTypes>}`\r\n\r\nenum LayoutVariant {\r\n\tLEFT = 'left',\r\n\tRIGHT = 'right',\r\n}\r\n\r\nexport type LayoutVariantType = `${ValueOf<typeof LayoutVariant>}`\r\n\r\nexport const LayoutColumnClass = {\r\n\troot: 'gov-layout-column',\r\n}\r\n"],"names":[],"mappings":"AAEa,MAAA,WAAW,GAAG;AAC1B,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,OAAO,EAAE,qBAAqB;;AAG/B,IAAK,WAIJ;AAJD,CAAA,UAAK,WAAW,EAAA;AACf,IAAA,WAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,WAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACd,CAAC,EAJI,WAAW,KAAX,WAAW,GAIf,EAAA,CAAA,CAAA;AAGD,IAAK,aAGJ;AAHD,CAAA,UAAK,aAAa,EAAA;AACjB,IAAA,aAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,aAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AAChB,CAAC,EAHI,aAAa,KAAb,aAAa,GAGjB,EAAA,CAAA,CAAA;AAIY,MAAA,iBAAiB,GAAG;AAChC,IAAA,IAAI,EAAE,mBAAmB;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-U40vKHrs.js","sources":["../../../packages/core/src/core/constants/colors.ts"],"sourcesContent":["export enum Colors {\n\tDEFAULT = 'default',\n\tPRIMARY = 'primary',\n\tSECONDARY = 'secondary',\n\tNEUTRAL = 'neutral',\n\tERROR = 'error',\n\tSUCCESS = 'success',\n\tWARNING = 'warning',\n\tDISABLED = 'disabled',\n\tBLACK = 'black',\n\tWHITE = 'white',\n\tCUSTOM = 'custom',\n}\n"],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,MAAM,EAAA;AACjB,IAAA,MAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,MAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,MAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACvB,IAAA,MAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,MAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,MAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,MAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,MAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,MAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,MAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,MAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAZW,MAAM,KAAN,MAAM,GAYjB,EAAA,CAAA,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"p-U40vKHrs.js","sources":["../../../packages/core/src/core/constants/colors.ts"],"sourcesContent":["export enum Colors {\r\n\tDEFAULT = 'default',\r\n\tPRIMARY = 'primary',\r\n\tSECONDARY = 'secondary',\r\n\tNEUTRAL = 'neutral',\r\n\tERROR = 'error',\r\n\tSUCCESS = 'success',\r\n\tWARNING = 'warning',\r\n\tDISABLED = 'disabled',\r\n\tBLACK = 'black',\r\n\tWHITE = 'white',\r\n\tCUSTOM = 'custom',\r\n}\r\n"],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,MAAM,EAAA;AACjB,IAAA,MAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,MAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,MAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACvB,IAAA,MAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,MAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,MAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,MAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,MAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,MAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,MAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,MAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAZW,MAAM,KAAN,MAAM,GAYjB,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as s,H as i,g as e}from"./p-ClISz4NF.js";import{v as o}from"./p-NOJjz9dT.js";import{C as h}from"./p-U40vKHrs.js";import{S as n}from"./p-BcQO4NH2.js";import{p as a}from"./p-CQvUntGY.js";import{c as r}from"./p-vN03FcXN.js";import{g as l,a as c}from"./p-CoD1xawt.js";import{d as f}from"./p-CgDnDrq5.js";import{t as d}from"./p-Cjg0wpDG.js";const p=a(h,["PRIMARY","NEUTRAL"]);const u=a(n,["_S","_M","_L"]);var v;(function(t){t["TOP"]="top";t["RIGHT"]="right";t["BOTTOM"]="bottom";t["LEFT"]="left"})(v||(v={}));const m={root:"gov-tooltip"};const b={root:"gov-tooltip-content"};const g=class{constructor(s){t(this,s);this.tooltipContentId=undefined;this.tooltipId=undefined;this.color=p.PRIMARY;this.size=u._M;this.position="right";this.message=undefined;this.icon=undefined;this.persist=false;this.h=l(this.host);this.tooltipId=r("GovTooltip");this.tooltipContentId=r("GovContentTooltip")}validateColor(t){o(p,t,m.root)}validateSize(t){o(u,t,m.root)}validatePosition(t){o(v,t,m.root)}rerenderMessage(){this.createContentWrapper()}connectedCallback(){this.createContentWrapper();this.registerListeners()}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.validatePosition(this.position)}componentDidUpdate(){this.createContentWrapper()}disconnectedCallback(){this.removeContent()}createContentWrapper(){var t;if(this.tooltipContent){if(this.message){this.tooltipContent.innerHTML=this.message}else if(this.insideContent){this.tooltipContent.innerHTML=this.insideContent.innerHTML}return}let s;if(this.insideContent){s=this.insideContent}else{s=f().createElement(b.root);s.innerHTML=this.message}s.setAttribute("id",(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId);s.setAttribute("parent-id",this.tooltipId);s.setAttribute("color",this.color);s.setAttribute("size",this.size);f().body.appendChild(s)}get tooltipContent(){var t;return f().body.querySelector(`#${(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId}`)}get insideContent(){return this.host.querySelector(b.root)}registerListeners(){this.host.addEventListener("click",(t=>{t.preventDefault();this.persist=true;if(this.tooltipContent){this.tooltipContent.setAttribute("persist","true")}this.showTooltip()}));this.host.addEventListener("mouseenter",(t=>{t.preventDefault();this.showTooltip()}));this.host.addEventListener("mouseleave",(t=>{t.preventDefault();if(this.persist===false){this.hideTooltip()}}))}verifyPositionSpace(){const t=12;const s=window.innerWidth-(window.innerWidth-document.documentElement.clientWidth);const i=this.host.getBoundingClientRect();const e=this.host.offsetWidth;const o=this.host.offsetHeight;const h=this.tooltipContent.offsetWidth;const n=this.tooltipContent.offsetHeight;const a={left:i.left+document.documentElement.scrollLeft,top:i.top+document.documentElement.scrollTop};const r=a.left+t+i.width+h<=s;const l=a.left>h;if(this.position===v.LEFT||this.position===v.RIGHT){this.tooltipContent.style.top=a.top-(n-o)/2+"px";if(r===false&&l===false){this.position=v.TOP;this.tooltipContent.setAttribute("position",v.TOP)}if(l&&r===false&&this.position===v.RIGHT){this.position=v.LEFT}if(r&&l===false&&this.position===v.LEFT){this.position=v.RIGHT}}if(this.position===v.RIGHT){this.tooltipContent.setAttribute("position",v.RIGHT);this.tooltipContent.style.left=a.left+t+i.width+"px"}if(this.position===v.LEFT){this.tooltipContent.setAttribute("position",v.LEFT);this.tooltipContent.style.left=a.left-(h+t)+"px"}if(this.position===v.TOP||this.position===v.BOTTOM){if(h>e){let i=a.left-(h-e)/2;const o=i<0;const n=i+h>s;if(o&&n){this.tooltipContent.style.width="auto";this.tooltipContent.style.left=t+"px";this.tooltipContent.style.right=t+"px"}else{if(o){i=t}if(n){i=i-(s-(i+h+t))*-1}this.tooltipContent.style.left=i+"px"}}else{const t=a.left+(e-h)/2;this.tooltipContent.style.left=t+"px"}}if(this.position===v.TOP){this.tooltipContent.setAttribute("position",v.TOP);this.tooltipContent.style.top=a.top-(n+t)+"px"}if(this.position===v.BOTTOM){this.tooltipContent.setAttribute("position",v.BOTTOM);this.tooltipContent.style.top=a.top+(o+t)+"px"}this.tooltipContent.style.opacity="1"}showTooltip(){if(this.tooltipContent){this.tooltipContent.style.opacity="0";this.tooltipContent.hidden=false;this.tooltipContent.setAttribute("is-visible","true");d((()=>{this.verifyPositionSpace()}))}}hideTooltip(){if(this.tooltipContent){this.tooltipContent.setAttribute("is-visible","false");this.tooltipContent.setAttribute("persist","false");this.tooltipContent.removeAttribute("style")}}removeContent(){const t=document.getElementById(this.tooltipContentId);if(t){t.remove()}}render(){var t;return s(i,{key:"f64ba7c26358426ead39dadbb17687a39a4fb876",id:this.tooltipId,class:this.h.classes(m.root),position:this.position},s("span",{key:"d51fc3b886df342fe8fbcaa9452be316658c24b2",role:"button",tabindex:0,onKeyPress:()=>this.showTooltip(),onBlur:()=>{if(this.persist===false){this.hideTooltip()}},"aria-describedby":(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId},s("slot",{key:"6687d0562b3e99ea0e44ec97dadc5a2e085ff0a8"})))}async show(){this.showTooltip()}async hide(){this.persist=false;this.hideTooltip()}get host(){return e(this)}static get watchers(){return{color:["validateColor"],size:["validateSize"],position:["validatePosition"],message:["rerenderMessage"]}}};const C=class{constructor(s){t(this,s);this.color=p.PRIMARY;this.size=u._M;this.persist=false;this.isVisible=false;this.parentId=null}visibleContent(t){clearTimeout(this.timeout);if(t===false){this.timeout=setTimeout((()=>{this.host.style.visibility="hidden"}),250)}else{this.host.style.visibility="visible"}}hideContent(){this.isVisible=false;this.persist=false;const t=document.getElementById(this.parentId);if(t){t.hide().catch()}}render(){return s(i,{key:"a826527fe9f7851ad25f700156d987c1b29f3adc",class:b.root,role:"tooltip",hidden:!this.isVisible,"aria-hidden":!c(this.isVisible),"is-visible":this.isVisible},s("slot",{key:"d3891d8a3f3df7ee7f852db8485c7ecc2f61992c"}),this.persist?s("gov-button",{"on-gov-click":this.hideContent.bind(this),color:this.color,size:this.size,type:"base"},s("gov-icon",{slot:"icon-start",name:"x-lg",type:"components"})):null)}get host(){return e(this)}static get watchers(){return{isVisible:["visibleContent"]}}};export{g as gov_tooltip,C as gov_tooltip_content};
|
|
2
|
+
//# sourceMappingURL=p-ac962619.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TooltipColors","pick","Colors","TooltipSize","Sizes","TooltipPosition","TooltipClass","root","TooltipContentClass","GovTooltip","constructor","hostRef","this","tooltipContentId","undefined","tooltipId","color","PRIMARY","size","_M","position","message","icon","persist","h","govHost","host","createID","validateColor","newValue","validateProp","validateSize","validatePosition","rerenderMessage","createContentWrapper","connectedCallback","registerListeners","componentWillLoad","componentDidUpdate","disconnectedCallback","removeContent","tooltipContent","innerHTML","insideContent","content","documentNode","createElement","setAttribute","_a","identifier","body","appendChild","querySelector","addEventListener","e","preventDefault","showTooltip","hideTooltip","verifyPositionSpace","offset","windowWidth","window","innerWidth","document","documentElement","clientWidth","trigger","getBoundingClientRect","trgWidth","offsetWidth","trgHeight","offsetHeight","contentWidth","contentHeight","triggerPos","left","scrollLeft","top","scrollTop","isRightSpace","width","isLeftSpace","LEFT","RIGHT","style","TOP","BOTTOM","leftPosition","isNotLeftSpace","isNotRightSpace","right","opacity","hidden","tick","removeAttribute","contentEl","getElementById","remove","render","Host","key","id","class","classes","role","tabindex","onKeyPress","onBlur","show","hide","GovTooltipContent","isVisible","parentId","visibleContent","clearTimeout","timeout","setTimeout","visibility","hideContent","parentEl","catch","toBoolAttr","bind","type","slot","name"],"sources":["../../../packages/core/src/components/gov-tooltip/constants.tsx","../../../packages/core/src/components/gov-tooltip/gov-tooltip.tsx","../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\r\nimport { Sizes } from '../../core/constants/sizes'\r\nimport { ValueOf } from '../../types/interfaces'\r\nimport { pick } from '../../utils/utils'\r\n\r\nexport const TooltipColors = pick(Colors, ['PRIMARY', 'NEUTRAL'])\r\nexport type TooltipColorType = `${ValueOf<typeof TooltipColors>}`\r\n\r\nexport const TooltipSize = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type TooltipSizeType = `${ValueOf<typeof TooltipSize>}`\r\n\r\nexport enum TooltipPosition {\r\n\tTOP = 'top',\r\n\tRIGHT = 'right',\r\n\tBOTTOM = 'bottom',\r\n\tLEFT = 'left',\r\n}\r\nexport type TooltipPositionType = `${ValueOf<typeof TooltipPosition>}`\r\n\r\nexport const TooltipClass = {\r\n\troot: 'gov-tooltip',\r\n}\r\n\r\nexport const TooltipContentClass = {\r\n\troot: 'gov-tooltip-content',\r\n}\r\n","import {Component, Element, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {\r\n\tTooltipClass,\r\n\tTooltipContentClass,\r\n\tTooltipPosition,\r\n\tTooltipPositionType,\r\n\tTooltipSize,\r\n\tTooltipSizeType,\r\n\tTooltipColors,\r\n\tTooltipColorType,\r\n} from \"./constants\"\r\nimport {createID} from \"../../utils/string.utils\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {documentNode} from \"../../helpers/Dom/win\";\r\nimport {Nullable} from \"../../utils/helpers.types\";\r\nimport {tick} from \"../../utils/stencil.utils\";\r\n\r\n@Component({\r\n\ttag: \"gov-tooltip\",\r\n})\r\nexport class GovTooltip {\r\n\tprivate h: GovHost\r\n\tprivate readonly tooltipContentId = undefined\r\n\tprivate readonly tooltipId = undefined\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.tooltipId = createID(\"GovTooltip\")\r\n\t\tthis.tooltipContentId = createID(\"GovContentTooltip\")\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTooltipElement\r\n\t/**\r\n\t * Style variation of the tooltip\r\n\t */\r\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\r\n\t/**\r\n\t * Tooltip’s size.\r\n\t */\r\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\r\n\t/**\r\n\t * Tooltip display position\r\n\t */\r\n\t@Prop({mutable: true}) position: TooltipPositionType = \"right\"\r\n\t/**\r\n\t * Information contained in the tooltip\r\n\t */\r\n\t@Prop() readonly message: string = undefined\r\n\t/**\r\n\t * Custom tooltip identifier.\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Trigger is just an icon\r\n\t */\r\n\t@Prop({reflect: true}) readonly icon: boolean = undefined\r\n\r\n\t@State() persist = false\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(TooltipColors, newValue, TooltipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(TooltipSize, newValue, TooltipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"position\")\r\n\tvalidatePosition(newValue: string): void {\r\n\t\tvalidateProp(TooltipPosition, newValue, TooltipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"message\")\r\n\trerenderMessage(): void {\r\n\t\tthis.createContentWrapper();\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.createContentWrapper()\r\n\t\tthis.registerListeners()\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.validatePosition(this.position)\r\n\t}\r\n\r\n\tcomponentDidUpdate() {\r\n\t\tthis.createContentWrapper()\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.removeContent()\r\n\t}\r\n\r\n\tprivate createContentWrapper() {\r\n\t\tif (this.tooltipContent) {\r\n\t\t\tif (this.message) {\r\n\t\t\t\tthis.tooltipContent.innerHTML = this.message\r\n\t\t\t} else if (this.insideContent) {\r\n\t\t\t\tthis.tooltipContent.innerHTML = this.insideContent.innerHTML\r\n\t\t\t}\r\n\t\t\treturn\r\n\t\t}\r\n\r\n\t\tlet content: HTMLGovTooltipContentElement;\r\n\t\tif (this.insideContent) {\r\n\t\t\tcontent = this.insideContent\r\n\t\t} else {\r\n\t\t\tcontent = documentNode().createElement(TooltipContentClass.root) as HTMLGovTooltipContentElement\r\n\t\t\tcontent.innerHTML = this.message\r\n\t\t}\r\n\r\n\t\tcontent.setAttribute(\"id\", this.identifier ?? this.tooltipContentId)\r\n\t\tcontent.setAttribute(\"parent-id\", this.tooltipId)\r\n\t\tcontent.setAttribute(\"color\", this.color)\r\n\t\tcontent.setAttribute(\"size\", this.size)\r\n\t\tdocumentNode().body.appendChild(content)\r\n\t}\r\n\r\n\tprivate get tooltipContent(): Nullable<HTMLGovTooltipContentElement> {\r\n\t\treturn documentNode().body.querySelector(`#${this.identifier ?? this.tooltipContentId}`);\r\n\t}\r\n\r\n\tprivate get insideContent(): Nullable<HTMLGovTooltipContentElement> {\r\n\t\treturn this.host.querySelector(TooltipContentClass.root)\r\n\t}\r\n\r\n\tprivate registerListeners() {\r\n\t\tthis.host.addEventListener(\"click\", e => {\r\n\t\t\te.preventDefault()\r\n\t\t\tthis.persist = true\r\n\t\t\tif (this.tooltipContent) {\r\n\t\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"true\")\r\n\t\t\t}\r\n\t\t\tthis.showTooltip()\r\n\t\t})\r\n\t\tthis.host.addEventListener(\"mouseenter\", e => {\r\n\t\t\te.preventDefault()\r\n\t\t\tthis.showTooltip()\r\n\t\t})\r\n\t\tthis.host.addEventListener(\"mouseleave\", e => {\r\n\t\t\te.preventDefault()\r\n\t\t\tif (this.persist === false) {\r\n\t\t\t\tthis.hideTooltip()\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n\tprivate verifyPositionSpace() {\r\n\t\tconst offset = 12\r\n\t\tconst windowWidth = window.innerWidth - (window.innerWidth - document.documentElement.clientWidth);\r\n\t\tconst trigger = this.host.getBoundingClientRect()\r\n\t\tconst trgWidth = this.host.offsetWidth\r\n\t\tconst trgHeight = this.host.offsetHeight\r\n\t\tconst contentWidth = this.tooltipContent.offsetWidth\r\n\t\tconst contentHeight = this.tooltipContent.offsetHeight\r\n\t\tconst triggerPos = {\r\n\t\t\tleft: trigger.left + document.documentElement.scrollLeft,\r\n\t\t\ttop: trigger.top + document.documentElement.scrollTop,\r\n\t\t}\r\n\r\n\t\tconst isRightSpace = ((triggerPos.left + offset + trigger.width) + contentWidth) <= windowWidth;\r\n\t\tconst isLeftSpace = triggerPos.left > contentWidth;\r\n\r\n\t\t// LEFT/RIGHT\r\n\t\tif (this.position === TooltipPosition.LEFT || this.position === TooltipPosition.RIGHT) {\r\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - ((contentHeight - trgHeight) / 2)) + \"px\";\r\n\t\t\tif (isRightSpace === false && isLeftSpace === false) {\r\n\t\t\t\tthis.position = TooltipPosition.TOP\r\n\t\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\r\n\t\t\t}\r\n\t\t\tif (isLeftSpace && isRightSpace === false && this.position === TooltipPosition.RIGHT) {\r\n\t\t\t\tthis.position = TooltipPosition.LEFT\r\n\t\t\t}\r\n\t\t\tif (isRightSpace && isLeftSpace === false && this.position === TooltipPosition.LEFT) {\r\n\t\t\t\tthis.position = TooltipPosition.RIGHT\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.RIGHT) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.RIGHT)\r\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left + offset + trigger.width) + \"px\"\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.LEFT) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.LEFT)\r\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left - (contentWidth + offset)) + \"px\"\r\n\t\t}\r\n\r\n\t\t// LEFT/RIGHT FOR TOP/BOTTOM\r\n\t\tif (this.position === TooltipPosition.TOP || this.position === TooltipPosition.BOTTOM) {\r\n\t\t\tif (contentWidth > trgWidth) {\r\n\t\t\t\tlet leftPosition = (triggerPos.left - ((contentWidth - trgWidth) / 2));\r\n\t\t\t\tconst isNotLeftSpace = leftPosition < 0;\r\n\t\t\t\tconst isNotRightSpace = (leftPosition + contentWidth) > windowWidth;\r\n\t\t\t\tif (isNotLeftSpace && isNotRightSpace) {\r\n\t\t\t\t\tthis.tooltipContent.style.width = \"auto\";\r\n\t\t\t\t\tthis.tooltipContent.style.left = offset + \"px\";\r\n\t\t\t\t\tthis.tooltipContent.style.right = offset + \"px\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (isNotLeftSpace) {\r\n\t\t\t\t\t\tleftPosition = offset\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (isNotRightSpace) {\r\n\t\t\t\t\t\tleftPosition = leftPosition - ((windowWidth - (leftPosition + contentWidth + offset)) * -1)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tconst leftPosition = (triggerPos.left + ((trgWidth - contentWidth) / 2))\r\n\r\n\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.TOP) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\r\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - (contentHeight + offset)) + \"px\"\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.BOTTOM) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.BOTTOM)\r\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top + (trgHeight + offset)) + \"px\"\r\n\t\t}\r\n\r\n\t\tthis.tooltipContent.style.opacity = '1'\r\n\r\n\t}\r\n\r\n\tprivate showTooltip() {\r\n\t\tif (this.tooltipContent) {\r\n\t\t\tthis.tooltipContent.style.opacity = '0'\r\n\t\t\tthis.tooltipContent.hidden = false\r\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"true\")\r\n\t\t\ttick(() => {\r\n\t\t\t\tthis.verifyPositionSpace()\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tprivate hideTooltip() {\r\n\t\tif (this.tooltipContent) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"false\")\r\n\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"false\")\r\n\t\t\tthis.tooltipContent.removeAttribute('style')\r\n\t\t}\r\n\t}\r\n\r\n\tprivate removeContent() {\r\n\t\tconst contentEl = document.getElementById(this.tooltipContentId)\r\n\t\tif (contentEl) {\r\n\t\t\tcontentEl.remove()\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tid={this.tooltipId}\r\n\t\t\t\tclass={this.h.classes(TooltipClass.root)}\r\n\t\t\t\tposition={this.position}>\r\n\t\t\t\t<span role={'button'}\r\n\t\t\t\t\t\t\ttabindex={0}\r\n\t\t\t\t\t\t\tonKeyPress={() => this.showTooltip()}\r\n\t\t\t\t\t\t\tonBlur={() => {\r\n\t\t\t\t\t\t\t\tif (this.persist === false) {\r\n\t\t\t\t\t\t\t\t\tthis.hideTooltip()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\taria-describedby={this.identifier ?? this.tooltipContentId}><slot/></span>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Showing the modal\r\n\t */\r\n\t@Method()\r\n\tasync show(): Promise<void> {\r\n\t\tthis.showTooltip()\r\n\t}\r\n\r\n\t/**\r\n\t * Hiding the modal\r\n\t */\r\n\t@Method()\r\n\tasync hide(): Promise<void> {\r\n\t\tthis.persist = false\r\n\t\tthis.hideTooltip()\r\n\t}\r\n}\r\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\r\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipColors, TooltipColorType } from \"./constants\"\r\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\r\n\r\n@Component({\r\n\ttag: \"gov-tooltip-content\",\r\n})\r\nexport class GovTooltipContent {\r\n\tprivate timeout\r\n\r\n\t@Element() host: HTMLGovTooltipContentElement\r\n\t/**\r\n\t * Style variation of the tooltip\r\n\t */\r\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\r\n\t/**\r\n\t * Tooltip’s size.\r\n\t */\r\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\r\n\t/**\r\n\t * Tooltip is still visible.\r\n\t */\r\n\t@Prop() persist?: boolean = false\r\n\t/**\r\n\t * Indicates display of tooltip content\r\n\t */\r\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\r\n\t/**\r\n\t * Indicates display of tooltip content\r\n\t */\r\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\r\n\r\n\t@Watch(\"isVisible\")\r\n\tvisibleContent(newValue: boolean): void {\r\n\t\tclearTimeout(this.timeout)\r\n\t\tif (newValue === false) {\r\n\t\t\tthis.timeout = setTimeout(() => {\r\n\t\t\t\tthis.host.style.visibility = \"hidden\"\r\n\t\t\t}, 250)\r\n\t\t} else {\r\n\t\t\tthis.host.style.visibility = \"visible\"\r\n\t\t}\r\n\t}\r\n\r\n\thideContent() {\r\n\t\tthis.isVisible = false\r\n\t\tthis.persist = false\r\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\r\n\t\tif (parentEl) {\r\n\t\t\tparentEl.hide().catch()\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tclass={TooltipContentClass.root}\r\n\t\t\t\trole={\"tooltip\"}\r\n\t\t\t\thidden={!this.isVisible}\r\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\r\n\t\t\t\tis-visible={this.isVisible}>\r\n\t\t\t\t<slot></slot>\r\n\t\t\t\t{this.persist ? (\r\n\t\t\t\t\t<gov-button\r\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\r\n\t\t\t\t\t\tcolor={this.color}\r\n\t\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\t\ttype={\"base\"}>\r\n\t\t\t\t\t\t<gov-icon slot={\"icon-start\"} name={\"x-lg\"} type={\"components\"}></gov-icon>\r\n\t\t\t\t\t</gov-button>\r\n\t\t\t\t) : null}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"mappings":"gWAKO,MAAMA,EAAgBC,EAAKC,EAAQ,CAAC,UAAW,YAG/C,MAAMC,EAAcF,EAAKG,EAAO,CAAC,KAAM,KAAM,OAGpD,IAAYC,GAAZ,SAAYA,GACXA,EAAA,aACAA,EAAA,iBACAA,EAAA,mBACAA,EAAA,cACA,EALD,CAAYA,MAKX,KAGM,MAAMC,EAAe,CAC3BC,KAAM,eAGA,MAAMC,EAAsB,CAClCD,KAAM,uB,MCFME,EAAU,MAKtB,WAAAC,CAAAC,G,UAHiBC,KAAgBC,iBAAGC,UACnBF,KAASG,UAAGD,UAYZF,KAAAI,MAA2BhB,EAAciB,QAI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./p-BcQO4NH2.js";import{g as c,b as r}from"./p-CoD1xawt.js";import{v as h}from"./p-NOJjz9dT.js";import{A as n,a as l}from"./p-Bz_RzYFb.js";import{c as d}from"./p-vN03FcXN.js";import{i as p}from"./p-CzXeijOj.js";import"./p-CgDnDrq5.js";const b=o(a,["_XS","_S","_M","_L","_XL"]);var f;(function(t){t["DOWN"]="down";t["UP"]="up"})(f||(f={}));const m={root:"gov-collapsible",content:"gov-collapsible__content",disabled:"gov-collapsible--disabled"};const v=class{constructor(s){t(this,s);this.hydrated=false;this.size="m";this.disabled=false;this.open=false;this.inheritedAttributes={};this.h=c(this.host);this.triggerId=d("GovCollapsibleControl");this.contentId=d("GovCollapsibleContent")}validateSize(t){h(b,t,m.root)}componentDidLoad(){this.attributeObserver=new n(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(l)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=p(this.host)}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}connectedCallback(){this.hydrated=true}render(){return s(i,{key:"3c9284a4fdbf445f402693b15c5269c8e5b98372",hydrated:this.hydrated,class:this.h.classes([m.root,this.disabled&&m.disabled]),size:this.size},s("gov-button",Object.assign({key:"db793476b0b8ed5ecc44dd2191b3cf26c0a97e86",color:"primary",size:this.size,type:"link",disabled:this.disabled,"onGov-click":t=>{t.stopPropagation();t.preventDefault();this.open=!this.open}},this.inheritedAttributes,{identifier:this.triggerId,"aria-controls":this.contentId,"aria-expanded":r(this.open),"aria-haspopup":"true"}),this.label,s("gov-icon",{key:"c230a7d2553c0858ddf24c6f9c7afbc249cd7f8e",slot:"icon-end",name:this.open?"chevron-up":"chevron-down",type:"components"})),s("div",{key:"64e787e14f8773dae11f0e54658984f3622b8b47",class:m.content,hidden:!this.open,id:this.contentId,"aria-labelledby":this.triggerId,"aria-hidden":r(!this.open)},s("slot",{key:"1e09e5a7242946af30012b68beb38119865003ec"})))}get host(){return e(this)}static get watchers(){return{size:["validateSize"]}}};export{v as gov_collapsible};
|
|
2
|
+
//# sourceMappingURL=p-ae6d0bcd.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CollapsibleSizes","pick","Sizes","CollapsibleDirection","CollapsibleClass","root","content","disabled","GovCollapsible","constructor","hostRef","this","hydrated","size","open","inheritedAttributes","h","govHost","host","triggerId","createID","contentId","validateSize","newValue","validateProp","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","inheritAriaAttributes","removeAttribute","Object","assign","disconnectedCallback","_a","stopObserving","connectedCallback","render","Host","key","class","classes","color","type","e","stopPropagation","preventDefault","identifier","booleanString","label","slot","name","hidden","id"],"sources":["../../../packages/core/src/components/gov-collapsible/constants.ts","../../../packages/core/src/components/gov-collapsible/gov-collapsible.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const CollapsibleSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\r\nexport type CollapsibleSizesType = `${ValueOf<typeof CollapsibleSizes>}`\r\n\r\nexport enum CollapsibleDirection {\r\n\tDOWN = 'down',\r\n\tUP = 'up',\r\n}\r\nexport type CollapsibleDirectionType = `${ValueOf<typeof CollapsibleDirection>}`\r\n\r\nexport const CollapsibleClass = {\r\n\troot: 'gov-collapsible',\r\n\tdetails: 'gov-collapsible__details',\r\n\tsummary: 'gov-collapsible__summary',\r\n\ttitle: 'gov-collapsible__title',\r\n\tarrow: 'gov-collapsible__arrow',\r\n\tcontent: 'gov-collapsible__content',\r\n\tdisabled: 'gov-collapsible--disabled',\r\n}\r\n","import {Component, Element, h, Host, Prop, State, Watch} from '@stencil/core'\r\nimport {CollapsibleClass, CollapsibleSizes, CollapsibleSizesType,} from './constants'\r\nimport {booleanString, govHost} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\nimport {validateProp} from \"../../helpers/Validate/props\";\r\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\r\nimport {createID} from \"../../utils/string.utils\";\r\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\r\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\r\n\r\n\r\n@Component({\r\n\ttag: 'gov-collapsible',\r\n})\r\nexport class GovCollapsible {\r\n\tprivate h: GovHost\r\n\tprivate hydrated = false\r\n\tprivate readonly triggerId: string\r\n\tprivate readonly contentId: string\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.triggerId = createID(\"GovCollapsibleControl\")\r\n\t\tthis.contentId = createID(\"GovCollapsibleContent\")\r\n\t}\r\n\r\n\t@Element() host: HTMLGovCollapsibleElement\r\n\t/**\r\n\t * Element size.\r\n\t */\r\n\t@Prop() readonly size?: CollapsibleSizesType = 'm'\r\n\t/**\r\n\t * Custom input identifier.\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\r\n\t@Prop() readonly label: string\r\n\t/**\r\n\t * Makes component disabled.\r\n\t */\r\n\t@Prop() readonly disabled: boolean = false\r\n\t/**\r\n\t * Defines whether the collapsible is open or closed\r\n\t */\r\n\t@Prop({attribute: \"open\", mutable: true}) open = false\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(CollapsibleSizes, newValue, CollapsibleClass.root)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.validateSize(this.size)\r\n\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host hydrated={this.hydrated}\r\n\t\t\t\t class={this.h.classes([CollapsibleClass.root, this.disabled && CollapsibleClass.disabled])}\r\n\t\t\t\t size={this.size}>\r\n\t\t\t\t<gov-button color={'primary'}\r\n\t\t\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\t\t\ttype={'link'}\r\n\t\t\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\t\t\tonGov-click={(e) => {\r\n\t\t\t\t\t\t\t\te.stopPropagation();\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tthis.open = !this.open;\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\r\n\t\t\t\t\t\t\tidentifier={this.triggerId}\r\n\t\t\t\t\t\t\taria-controls={this.contentId}\r\n\t\t\t\t\t\t\taria-expanded={booleanString(this.open)}\r\n\t\t\t\t\t\t\taria-haspopup=\"true\">\r\n\t\t\t\t\t{this.label}\r\n\t\t\t\t\t<gov-icon slot={'icon-end'}\r\n\t\t\t\t\t\t\t name={this.open ? 'chevron-up' : 'chevron-down'}\r\n\t\t\t\t\t\t\t type=\"components\"></gov-icon>\r\n\t\t\t\t</gov-button>\r\n\r\n\t\t\t\t<div class={CollapsibleClass.content}\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AAAA,EAAAC,e,CAGzB,iBAAAC,GACC7B,KAAKC,SAAW,I,CAGjB,MAAA6B,GACC,OACCzB,EAAC0B,EAAK,CAAAC,IAAA,2CAAA/B,SAAUD,KAAKC,SAClBgC,MAAOjC,KAAKK,EAAE6B,QAAQ,CAACzC,EAAiBC,KAAMM,KAAKJ,UAAYH,EAAiBG,WAChFM,KAAMF,KAAKE,MACbG,EAAY,aAAAmB,OAAAC,OAAA,CAAAO,IAAA,2CAAAG,MAAO,UAChBjC,KAAMF,KAAKE,KACXkC,KAAM,OACNxC,SAAUI,KAAKJ,SACF,cAACyC,IACbA,EAAEC,kBACFD,EAAEE,iBACFvC,KAAKG,MAAQH,KAAKG,IAAI,GAEnBH,KAAKI,oBAAmB,CAC5BoC,WAAYxC,KAAKQ,UAAS,gBACXR,KAAKU,UAAS,gBACd+B,EAAczC,KAAKG,MAAK,gBACzB,SACfH,KAAK0C,MACNrC,EAAU,YAAA2B,IAAA,2CAAAW,KAAM,WACZC,KAAM5C,KAAKG,KAAO,aAAe,eACjCiC,KAAK,gBAGV/B,EAAA,OAAA2B,IAAA,2CAAKC,MAAOxC,EAAiBE,QAC3BkD,QAAS7C,KAAKG,KACd2C,GAAI9C,KAAKU,UACQ,kBAAAV,KAAKQ,UACT,cAAAiC,GAAezC,KAAKG,OAClCE,EAAO,QAAA2B,IAAA,8C","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as s,h as t,H as e,g as i}from"./p-ClISz4NF.js";import{g as o,b as r}from"./p-B6CqPcY_.js";import{g as a}from"./p-CoD1xawt.js";import{s as f}from"./p-vN03FcXN.js";import{i as c}from"./p-DNztiAH0.js";import"./p-BcQO4NH2.js";import"./p-CQvUntGY.js";import"./p-EeKNA85D.js";import"./p-U40vKHrs.js";import"./p-DYcNEwSZ.js";import"./p-DBXGhafv.js";const b=class{constructor(t){s(this,t);this.invalid=false;this.disabled=false;this.success=false;this.fieldset=false;this.size="m";this.h=a(this.host);this.f=o(this.h)}componentDidRender(){this.syncControlMessages();this.formElementDescriptionControl()}disconnectedCallback(){var s;(s=this.observer)===null||s===void 0?void 0:s.disconnect()}formElementDescriptionControl(){const s=this.host.querySelector("."+r.bottom);if(!s)return;this.observer=new MutationObserver(function(){this.syncControlMessages()}.bind(this));this.observer.observe(s,{childList:true})}syncControlMessages(){Promise.all(this.f.messageElements.map((s=>s.identifier()))).then((s=>{this.f.mainElementsInControl.forEach((t=>{const e=f(t.getAttribute("aria-describedby"));t.removeAttribute("aria-describedby");if(Array.isArray(e)){e.forEach((t=>c(t)&&t.indexOf("GovFormMessage")===-1?s.push(t):null))}if(s.length){t.setAttribute("aria-describedby",s.join(" "))}}))}))}render(){const s=this.fieldset?"fieldset":"div";return t(e,{key:"04e4ab3533f5d22939573fa20a354a0b76319986",size:this.size,class:this.h.classes(r.root)},t(s,{key:"9851627baf138775fe24a673d6a095fc8980b6e9",class:r.holder},this.h.hasSlot("top")&&t("slot",{key:"beffe147db943648861b9775dee76ef6b20dffa3",name:"top"}),t("slot",{key:"6667b41d2720045a93b10a92ef300e2842ff57b4"}),this.h.hasSlot("bottom")&&t("div",{key:"fe117fdc7d64b3c2b4e18e95d1f213c8a8fe3766",class:r.bottom},t("slot",{key:"07eabb48c2849d624bed7f59ba14811ed35732fb",name:"bottom"}))))}get host(){return i(this)}};export{b as gov_form_control};
|
|
2
|
+
//# sourceMappingURL=p-b3b517f0.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GovFormControl","constructor","hostRef","this","invalid","disabled","success","fieldset","size","h","govHost","host","f","govForm","componentDidRender","syncControlMessages","formElementDescriptionControl","disconnectedCallback","_a","observer","disconnect","bottomSlot","querySelector","FormControlClass","bottom","MutationObserver","bind","observe","childList","Promise","all","messageElements","map","message","identifier","then","ids","mainElementsInControl","forEach","element","currentValue","splitByWhitespace","getAttribute","removeAttribute","Array","isArray","id","isString","indexOf","push","length","setAttribute","join","render","Tag","Host","key","class","classes","root","holder","hasSlot","name"],"sources":["../../../packages/core/src/components/gov-form/control/gov-form-control.tsx"],"sourcesContent":["import {Component, Element, h, Host, Prop} from \"@stencil/core\"\r\nimport {govForm} from \"../../../helpers/Dom/form\"\r\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\r\nimport {govHost} from \"../../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\r\nimport {splitByWhitespace} from \"../../../utils/string.utils\"\r\nimport {FormControlClass, FormControlSizesType} from \"./constants\"\r\nimport {isString} from \"../../../utils/helpers.types\";\r\n\r\n@Component({\r\n\ttag: \"gov-form-control\",\r\n})\r\nexport class GovFormControl {\r\n\tprivate readonly h: GovHost\r\n\tprivate f: GovForm\r\n\tprivate observer: MutationObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.f = govForm(this.h)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovFormControlElement\r\n\t/**\r\n\t * Custom form element identifier\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Indicates the entered value of a child form element does not conform to the format expected by the application.\r\n\t */\r\n\t@Prop({reflect: true}) readonly invalid: boolean = false\r\n\t/**\r\n\t/**\r\n\t* Indicates the form control is disabled\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t/**\r\n\t* Indicates the entered value of a child form element does conform to the format expected by the application.\r\n\t */\r\n\t@Prop({reflect: true}) readonly success: boolean = false\r\n\t/**\r\n\t * Use control as a fieldset for better accessibility.\r\n\t * Note: Remember to set the legend attribute of the gov-form-label component\r\n\t */\r\n\t@Prop() readonly fieldset: boolean = false\r\n\t/**\r\n\t * Form element size.\r\n\t */\r\n\t@Prop() readonly size?: FormControlSizesType = \"m\"\r\n\r\n\tcomponentDidRender() {\r\n\t\tthis.syncControlMessages()\r\n\t\tthis.formElementDescriptionControl()\r\n\t}\r\n\r\n\tdisconnectedCallback(): void {\r\n\t\tthis.observer?.disconnect()\r\n\t}\r\n\r\n\tprivate formElementDescriptionControl() {\r\n\t\tconst bottomSlot = this.host.querySelector(\".\" + FormControlClass.bottom)\r\n\t\tif (!bottomSlot) return\r\n\t\tthis.observer = new MutationObserver(\r\n\t\t\tfunction () {\r\n\t\t\t\tthis.syncControlMessages()\r\n\t\t\t}.bind(this),\r\n\t\t)\r\n\r\n\t\tthis.observer.observe(bottomSlot, {childList: true})\r\n\t}\r\n\r\n\tprivate syncControlMessages() {\r\n\t\tPromise.all(this.f.messageElements.map((message: HTMLGovFormMessageElement) => message.identifier())).then((ids: string[]) => {\r\n\t\t\tthis.f.mainElementsInControl.forEach((element: Element) => {\r\n\t\t\t\tconst currentValue = splitByWhitespace(element.getAttribute(\"aria-describedby\"))\r\n\t\t\t\telement.removeAttribute(\"aria-describedby\")\r\n\t\t\t\tif (Array.isArray(currentValue)) {\r\n\t\t\t\t\tcurrentValue.forEach(id => (isString(id) && id.indexOf(\"GovFormMessage\") === -1 ? ids.push(id) : null))\r\n\t\t\t\t}\r\n\t\t\t\tif (ids.length) {\r\n\t\t\t\t\telement.setAttribute(\"aria-describedby\", ids.join(\" \"))\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t})\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst Tag = this.fieldset ? \"fieldset\" : \"div\"\r\n\t\treturn (\r\n\t\t\t<Host size={this.size} class={this.h.classes(FormControlClass.root)}>\r\n\t\t\t\t<Tag class={FormControlClass.holder}>\r\n\t\t\t\t\t{this.h.hasSlot(\"top\") && <slot name=\"top\"></slot>}\r\n\t\t\t\t\t<slot></slot>\r\n\t\t\t\t\t{this.h.hasSlot(\"bottom\") && (\r\n\t\t\t\t\t\t<div class={FormControlClass.bottom}>\r\n\t\t\t\t\t\t\t<slot name=\"bottom\"/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t)}\r\n\t\t\t\t</Tag>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r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C,QAC3BzD,KAAKM,EAAEoD,QAAQ,QAAUpD,EAAM,QAAA+C,IAAA,2CAAAM,KAAK,QACrCrD,EAAa,QAAA+C,IAAA,6CACZrD,KAAKM,EAAEoD,QAAQ,WACfpD,EAAK,OAAA+C,IAAA,2CAAAC,MAAOlC,EAAiBC,QAC5Bf,EAAM,QAAA+C,IAAA,2CAAAM,KAAK,a","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,h as a,H as o,g as t}from"./p-ClISz4NF.js";import{g as s}from"./p-CoD1xawt.js";const r={root:"gov-error-code",content:"gov-error-code__content"};const c=class{constructor(a){e(this,a);this.h=s(this.host)}render(){return a(o,{key:"7f4adeeba8a13e44b4e06957ae57c2766869991a",class:this.h.classes(r.root),align:"center"},this.h.hasSlot("icon")&&a("slot",{key:"bdfcff23dd37e182812701064f92e60d20464525",name:"icon"}),a("div",{key:"fa5491ab7ca31a23ca2a14d0b1a7f7c05875bc5e",class:r.content},a("slot",{key:"406e89f47b0785f885eaa5016d34d1fb35551aee",name:"headline"}),a("slot",{key:"af90cf6361b88506a0ca5687daf4b5f7b7157e62"})))}get host(){return t(this)}};export{c as gov_error_code};
|
|
2
|
+
//# sourceMappingURL=p-b7306a6f.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ErrorCodeClass","root","content","GovErrorCode","constructor","hostRef","this","h","govHost","host","render","Host","key","class","classes","align","hasSlot","name"],"sources":["../../../packages/core/src/components/gov-error-code/constants.ts","../../../packages/core/src/components/gov-error-code/gov-error-code.tsx"],"sourcesContent":["export const ErrorCodeClass = {\r\n\troot: 'gov-error-code',\r\n\tcontent: 'gov-error-code__content',\r\n}\r\n","import { Component, Element, h, Host } from '@stencil/core'\r\nimport { ErrorCodeClass } from './constants'\r\nimport { govHost } from '../../helpers/Dom/template'\r\nimport { GovHost } from '../../helpers/Dom/template.types'\r\n\r\n@Component({\r\n\ttag: 'gov-error-code',\r\n})\r\nexport class GovErrorCode {\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovErrorCodeElement\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(ErrorCodeClass.root)} align=\"center\">\r\n\t\t\t\t\t{this.h.hasSlot('icon') && (\r\n\t\t\t\t\t\t<slot name=\"icon\" />\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t<div class={ErrorCodeClass.content}>\r\n\t\t\t\t\t\t<slot name=\"headline\" />\r\n\t\t\t\t\t\t<slot />\r\n\t\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"mappings":"6FAAO,MAAMA,EAAiB,CAC7BC,KAAM,iBACNC,QAAS,2B,MCMGC,EAAY,MAGxB,WAAAC,CAAAC,G,UACCC,KAAKC,EAAIC,EAAQF,KAAKG,KACtB,CAID,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQd,EAAeC,MAAOc,MAAM,UACrDT,KAAKC,EAAES,QAAQ,SACfT,EAAM,QAAAK,IAAA,2CAAAK,KAAK,SAEZV,EAAA,OAAAK,IAAA,2CAAKC,MAAOb,EAAeE,SAC1BK,EAAM,QAAAK,IAAA,2CAAAK,KAAK,aACXV,EAAQ,QAAAK,IAAA,8C","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as e,g as a}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as s,h as i,H as e,g as a}from"./p-ClISz4NF.js";import{g as o,j as h,k as c}from"./p-B6CqPcY_.js";import{g as r,a as n,t as d}from"./p-CoD1xawt.js";import{v as l}from"./p-NOJjz9dT.js";import{c as p}from"./p-vN03FcXN.js";import{p as m}from"./p-Ccwpa1ck.js";import{t as f}from"./p-Cjg0wpDG.js";import{A as v,a as b}from"./p-Bz_RzYFb.js";import{i as u}from"./p-CzXeijOj.js";import"./p-BcQO4NH2.js";import"./p-CQvUntGY.js";import"./p-EeKNA85D.js";import"./p-U40vKHrs.js";import"./p-DYcNEwSZ.js";import"./p-DBXGhafv.js";import"./p-CgDnDrq5.js";import"./p-DNztiAH0.js";const g=class{constructor(i){t(this,i);this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govChange=s(this,"gov-change");this.size="m";this.required=false;this.disabled=false;this.optionsState=[];this.inheritedAttributes={};this.h=r(this.host);this.f=o(this.h);this.selectId=p("GovSelect")}validateSize(t){l(c,t,h.root)}watchOptions(t){this.optionsState=m(t)}watchControlAttrs(){this.passControlAttrs()}watchValue(){this.markSelectedValue()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",n(this.invalid));this.f.passAttrToControl("success",n(this.success));this.f.passAttrToControl("disabled",n(this.disabled));this.f.passAttrToControl("type","select")}componentDidLoad(){this.attributeObserver=new v(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}componentWillLoad(){this.validateSize(this.size);this.markSelectedValue();this.optionsState=m(this.options);this.inheritedAttributes=u(this.host)}async componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));f((()=>this.markSelectedValue()))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}markSelectedValue(){this.host.querySelectorAll("option").forEach((t=>{if(t.value===this.value){t.setAttribute("selected","selected")}else{t.removeAttribute("selected")}}))}render(){return i(e,{key:"784373d222b67be86b39d3ed61bfdf81d9648a36",class:h.root,size:this.size},this.h.hasSlot("prefix")&&i("slot",{key:"23b99e07df8d0d135c93bdd8c14556de4b4a5433",name:"prefix"}),i("span",{key:"f4c931f58a53db5cc2f8379b2dc6b688bbe84bc8",class:"element"},i("select",Object.assign({key:"e259f55116a12a7b821fac43db61b9ed35457c17",id:this.identifier||this.selectId,onFocus:this.onFocusHandler.bind(this),onChange:this.onChangeHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,name:this.name,disabled:this.disabled,ref:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":d(this.disabled),"aria-required":d(this.required),"aria-invalid":d(this.invalid)}),i("slot",{key:"223133e692d0c7a4c2c9c4706aee2d447f37c37b"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var s;return i("option",{value:t.value,selected:t.value===this.value,disabled:t===null||t===void 0?void 0:t.disabled},(s=t.label)!==null&&s!==void 0?s:t.value)}))),this.success&&i("gov-icon",{key:"97ceacc7ec59f13a9d994dc6df3b58201b5f68ae",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&i("gov-icon",{key:"bd9f33ef6da150e5a3f4a5711d41282fe35df49f",class:"validation-icon",name:"exclamation-lg",type:"components"}),i("gov-icon",{key:"c5ca08441cb8f425a4e310e402d6f208c8a75e15",class:"arrow-icon",name:"chevron-down",type:"components"})),this.h.hasSlot("sufix")&&i("slot",{key:"af16a1bd05ed5d665888cea9a811eee2c0fe5749",name:"sufix"}))}onFocusHandler(t){this.focused=true;this.govFocus.emit({component:h.root,originalEvent:t,value:this.value})}onBlurHandler(t){this.focused=false;this.govBlur.emit({component:h.root,originalEvent:t,value:this.value})}onChangeHandler(t){this.value=t.target.value;t.stopPropagation();this.govChange.emit({component:h.root,originalEvent:t,value:this.value})}async setFocus(t){return this.selectRef.focus(t)}async getRef(){return this.selectRef}get host(){return a(this)}static get watchers(){return{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}}};export{g as gov_form_select};
|
|
2
|
+
//# sourceMappingURL=p-b93548cc.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GovFormSelect","constructor","hostRef","this","size","required","disabled","optionsState","inheritedAttributes","h","govHost","host","f","govForm","selectId","createID","validateSize","newValue","validateProp","FormSelectSizes","FormSelectClass","root","watchOptions","propsValueToArray","watchControlAttrs","passControlAttrs","watchValue","markSelectedValue","passAttrToControl","toBoolAttr","invalid","success","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","disconnectedCallback","_a","stopObserving","componentWillLoad","options","inheritAriaAttributes","componentDidRender","passAttrToLabel","String","tick","removeAttribute","Object","assign","querySelectorAll","forEach","option","value","setAttribute","render","Host","key","class","hasSlot","name","id","identifier","onFocus","onFocusHandler","bind","onChange","onChangeHandler","onBlur","onBlurHandler","ref","el","selectRef","toBoolAttrIfDefined","Array","isArray","map","selected","label","type","e","focused","govFocus","emit","component","originalEvent","govBlur","target","stopPropagation","govChange","setFocus","focus","getRef"],"sources":["../../../packages/core/src/components/gov-form/select/gov-form-select.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\r\nimport {govForm} from '../../../helpers/Dom/form'\r\nimport {GovForm} from '../../../helpers/Dom/form.types'\r\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from '../../../helpers/Dom/template'\r\nimport {GovHost} from '../../../helpers/Dom/template.types'\r\nimport {validateProp} from '../../../helpers/Validate/props'\r\nimport {createID} from '../../../utils/string.utils'\r\nimport {FormSelectClass, FormSelectSizes, FormSelectSizesType,} from './constants'\r\nimport {FormSelectEvent, FormSelectOption} from './gov-form-select.types'\r\nimport {propsValueToArray} from \"../../../utils/array.utils\";\r\nimport {tick} from \"../../../utils/stencil.utils\";\r\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\r\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\r\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\r\n\r\n@Component({\r\n\ttag: 'gov-form-select',\r\n})\r\nexport class GovFormSelect {\r\n\tprivate f: GovForm\r\n\tprivate readonly h: GovHost\r\n\tprivate selectRef?: HTMLSelectElement\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tprivate readonly selectId: string\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.f = govForm(this.h)\r\n\t\tthis.selectId = createID('GovSelect')\r\n\t}\r\n\r\n\t@Element() host: HTMLGovFormSelectElement\r\n\t/**\r\n\t * Value of select\r\n\t */\r\n\t@Prop({reflect: true, mutable: true}) value: string\r\n\t/**\r\n\t * Options of select\r\n\t */\r\n\t@Prop({reflect: true, mutable: true}) options?: string | FormSelectOption[]\r\n\t/**\r\n\t * Custom select identifier.\r\n\t */\r\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\r\n\t/**\r\n\t * Select’s size.\r\n\t */\r\n\t@Prop() readonly size?: FormSelectSizesType = 'm'\r\n\t/**\r\n\t * Name of the select.\r\n\t */\r\n\t@Prop() readonly name: string\r\n\t/**\r\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\r\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\r\n\t */\r\n\t@Prop() readonly required: boolean = false\r\n\t/**\r\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\r\n\t */\r\n\t@Prop({reflect: true}) readonly success: boolean\r\n\t/**\r\n\t * Makes the select component disabled.\r\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Indicates the entered value does not conform to the format expected by the application.\r\n\t */\r\n\t@Prop() readonly invalid: boolean\r\n\t/**\r\n\t * Emitted when the select has focus.\r\n\t */\r\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormSelectEvent>\r\n\t/**\r\n\t * Emitted when the select loses focus.\r\n\t */\r\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormSelectEvent>\r\n\t/**\r\n\t * Emitted when the select change value.\r\n\t */\r\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<FormSelectEvent>\r\n\t@State() focused: boolean\r\n\t@State() optionsState: FormSelectOption[] = []\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(FormSelectSizes, newValue, FormSelectClass.root)\r\n\t}\r\n\r\n\t@Watch('options')\r\n\twatchOptions(newValue: string | FormSelectOption[]): void {\r\n\t\tthis.optionsState = propsValueToArray(newValue)\r\n\t}\r\n\r\n\t@Watch('disabled')\r\n\t@Watch('invalid')\r\n\t@Watch('success')\r\n\t@Watch('size')\r\n\twatchControlAttrs(): void {\r\n\t\tthis.passControlAttrs()\r\n\t}\r\n\r\n\t@Watch('value')\r\n\twatchValue(): void {\r\n\t\tthis.markSelectedValue()\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tprivate passControlAttrs() {\r\n\t\tthis.f.passAttrToControl('size', this.size)\r\n\t\tthis.f.passAttrToControl('invalid', toBoolAttr(this.invalid))\r\n\t\tthis.f.passAttrToControl('success', toBoolAttr(this.success))\r\n\t\tthis.f.passAttrToControl('disabled', toBoolAttr(this.disabled))\r\n\t\tthis.f.passAttrToControl('type', 'select')\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.validateSize(this.size)\r\n\r\n\t\tthis.markSelectedValue()\r\n\r\n\t\tthis.optionsState = propsValueToArray(this.options)\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tasync componentDidRender() {\r\n\t\tthis.passControlAttrs()\r\n\t\tthis.f.passAttrToLabel('required', String(this.required))\r\n\t\ttick(() => this.markSelectedValue())\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\tprivate markSelectedValue() {\r\n\t\tthis.host.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\r\n\t\t\tif (option.value === this.value) {\r\n\t\t\t\toption.setAttribute('selected', 'selected')\r\n\t\t\t} else {\r\n\t\t\t\toption.removeAttribute('selected')\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={FormSelectClass.root} size={this.size}>\r\n\t\t\t\t{this.h.hasSlot('prefix') && <slot name=\"prefix\"></slot>}\r\n\t\t\t\t<span class=\"element\">\r\n\t\t\t\t\t<select\r\n\t\t\t\t\t\tid={this.identifier || this.selectId}\r\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\r\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\r\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\r\n\t\t\t\t\t\trequired={this.required}\r\n\t\t\t\t\t\tname={this.name}\r\n\t\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\t\tref={el => (this.selectRef = el as HTMLSelectElement)}\r\n\t\t\t\t\t\t{...this.inheritedAttributes}\r\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\r\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<slot />\r\n\t\t\t\t\t\t{Array.isArray(this.optionsState) && this.optionsState.map((option) => {\r\n\t\t\t\t\t\t\treturn (<option value={option.value} selected={option.value === this.value}\r\n\t\t\t\t\t\t\t\t\t\t\tdisabled={option?.disabled}>{option.label ?? option.value}</option>)\r\n\t\t\t\t\t\t})}\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t{this.success && <gov-icon class=\"validation-icon\" name=\"check-lg\" type=\"components\"></gov-icon>}\r\n\t\t\t\t\t{this.invalid && <gov-icon class=\"validation-icon\" name=\"exclamation-lg\" type=\"components\"></gov-icon>}\r\n\t\t\t\t\t<gov-icon class=\"arrow-icon\" name=\"chevron-down\" type=\"components\"></gov-icon>\r\n\t\t\t\t</span>\r\n\t\t\t\t{this.h.hasSlot('sufix') && <slot name=\"sufix\"></slot>}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onFocusHandler(e: FocusEvent) {\r\n\t\tthis.focused = true\r\n\t\tthis.govFocus.emit({\r\n\t\t\tcomponent: FormSelectClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t\tvalue: this.value,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onBlurHandler(e: FocusEvent) {\r\n\t\tthis.focused = false\r\n\t\tthis.govBlur.emit({\r\n\t\t\tcomponent: FormSelectClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t\tvalue: this.value,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onChangeHandler(e: Event) {\r\n\t\tthis.value = (e.target as HTMLSelectElement).value\r\n\t\te.stopPropagation()\r\n\t\tthis.govChange.emit({\r\n\t\t\tcomponent: FormSelectClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t\tvalue: this.value,\r\n\t\t})\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the current state of the component\r\n\t */\r\n\t@Method()\r\n\tasync setFocus(options?: FocusOptions): Promise<void> {\r\n\t\treturn this.selectRef.focus(options)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns an instance of the native html select element\r\n\t */\r\n\t@Method()\r\n\tasync getRef(): Promise<HTMLSelectElement> {\r\n\t\treturn this.selectRef\r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,SAAM,SAANA,EAAQhD,WAAWkC,EAAAc,EAAO0B,SAAS,MAAAxC,SAAA,EAAAA,EAAAc,EAAOC,MAAe,KAGxEpD,KAAK4B,SAAWtB,EAAA,YAAAkD,IAAA,2CAAUC,MAAM,kBAAkBE,KAAK,WAAWmB,KAAK,eACvE9E,KAAK2B,SAAWrB,EAAA,YAAAkD,IAAA,2CAAUC,MAAM,kBAAkBE,KAAK,iBAAiBmB,KAAK,eAC9ExE,EAAA,YAAAkD,IAAA,2CAAUC,MAAM,aAAaE,KAAK,eAAemB,KAAK,gBAEtD9E,KAAKM,EAAEoD,QAAQ,UAAYpD,EAAA,QAAAkD,IAAA,2CAAMG,KAAK,U,CAKlC,cAAAI,CAAegB,GACtB/E,KAAKgF,QAAU,KACfhF,KAAKiF,SAASC,KAAK,CAClBC,UAAWlE,EAAgBC,KAC3BkE,cAAeL,EACf3B,MAAOpD,KAAKoD,O,CAIN,aAAAgB,CAAcW,GACrB/E,KAAKgF,QAAU,MACfhF,KAAKqF,QAAQH,KAAK,CACjBC,UAAWlE,EAAgBC,KAC3BkE,cAAeL,EACf3B,MAAOpD,KAAKoD,O,CAIN,eAAAc,CAAgBa,GACvB/E,KAAKoD,MAAS2B,EAAEO,OAA6BlC,MAC7C2B,EAAEQ,kBACFvF,KAAKwF,UAAUN,KAAK,CACnBC,UAAWlE,EAAgBC,KAC3BkE,cAAeL,EACf3B,MAAOpD,KAAKoD,O,CAQd,cAAMqC,CAASjD,GACd,OAAOxC,KAAKuE,UAAUmB,MAAMlD,E,CAO7B,YAAMmD,GACL,OAAO3F,KAAKuE,S","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as a,H as e,g as o}from"./p-ClISz4NF.js";import{g as s}from"./p-CoD1xawt.js";import{p as i}from"./p-CQvUntGY.js";import{S as r}from"./p-BcQO4NH2.js";import{v as n}from"./p-NOJjz9dT.js";import"./p-CgDnDrq5.js";const d=i(r,["_S","_M","_L","_XL"]);var c;(function(t){t["SIMPLE"]="simple";t["WAVES"]="waves";t["STRIPES"]="stripes";t["LINES"]="lines"})(c||(c={}));var l;(function(t){t["IMAGE"]="image";t["LOGO"]="logo";t["ICON"]="icon"})(l||(l={}));var b;(function(t){t["LIGHT"]="light";t["DARK"]="dark"})(b||(b={}));const h={root:"gov-banner",content:"gov-banner__content"};const f=class{constructor(a){t(this,a);this.size=d._M;this.background=c.SIMPLE;this.foreground=l.LOGO;this.textColor=b.LIGHT;this.h=s(this.host)}validateSize(t){n(d,t,h.root)}validateBackground(t){n(c,t,h.root)}validateForeground(t){n(l,t,h.root)}validateTextColor(t){n(b,t,h.root)}componentWillLoad(){this.validateSize(this.size);this.validateBackground(this.background);this.validateForeground(this.foreground);this.validateTextColor(this.textColor)}render(){return a(e,Object.assign({key:"c035b04b0715ffcc996d66a1f673d1bd9518284c",class:this.h.classes(h.root),role:"region",size:this.size},this.size!=="xl"?{background:this.background,foreground:this.foreground}:{"text-color":this.textColor}),a("div",{key:"d5a59901f7a1a707c3679ffc20677163bbf31dc7"},a("div",{key:"366d4ce913119a38f3166fdc70d9ae06181e7a5d",class:h.content},a("slot",{key:"92baa67137573e91b5eb74884b2fa1cb68d5bf90",name:"headline"}),a("slot",{key:"2630dbd6c23e8ec71b136d76df977b0bef7aa830"})),this.h.hasSlot("button")&&a("slot",{key:"0e8b200648c9a4af27da49a5f725be48159ad595",name:"button"})),a("slot",{key:"79bdb4c7d136d66561aab55012c8d5669503469f",name:"image"}))}get host(){return o(this)}static get watchers(){return{size:["validateSize"],background:["validateBackground"],foreground:["validateForeground"],"text-color":["validateTextColor"]}}};export{f as gov_banner};
|
|
2
|
+
//# sourceMappingURL=p-be3bbe06.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BannerSizes","pick","Sizes","BannerBackground","BannerForeground","BannerTextColor","BannerClass","root","content","GovBanner","constructor","hostRef","this","size","_M","background","SIMPLE","foreground","LOGO","textColor","LIGHT","h","govHost","host","validateSize","newValue","validateProp","validateBackground","validateForeground","validateTextColor","componentWillLoad","render","Host","Object","assign","key","class","classes","role","name","hasSlot"],"sources":["../../../packages/core/src/components/gov-banner/constants.ts","../../../packages/core/src/components/gov-banner/gov-banner.tsx"],"sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\r\nimport {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\n\r\nexport const BannerSizes = pick(Sizes, ['_S', '_M', '_L', '_XL'])\r\nexport type BannerSizesType = `${ValueOf<typeof BannerSizes>}`\r\n\r\nexport enum BannerBackground {\r\n\tSIMPLE = 'simple',\r\n\tWAVES = 'waves',\r\n\tSTRIPES = 'stripes',\r\n\tLINES = 'lines',\r\n}\r\nexport type BannerBackgroundsType = `${ValueOf<typeof BannerBackground>}`\r\n\r\nexport enum BannerForeground {\r\n\tIMAGE = 'image',\r\n\tLOGO = 'logo',\r\n\tICON = 'icon',\r\n}\r\nexport type BannerForegroundsType = `${ValueOf<typeof BannerForeground>}`\r\n\r\nexport enum BannerTextColor {\r\n\tLIGHT = 'light',\r\n\tDARK = 'dark',\r\n}\r\nexport type BannerTextColorsType = `${ValueOf<typeof BannerTextColor>}`\r\n\r\nexport const BannerClass = {\r\n\troot: 'gov-banner',\r\n\tcontent: 'gov-banner__content',\r\n}\r\n","import {Component, Element, h, Host, Prop, Watch} from '@stencil/core'\r\nimport {govHost} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\nimport {\r\n BannerBackground,\r\n BannerBackgroundsType,\r\n BannerClass,\r\n BannerForeground,\r\n BannerForegroundsType,\r\n BannerSizes,\r\n BannerSizesType,\r\n BannerTextColor,\r\n BannerTextColorsType\r\n} from \"./constants\";\r\nimport {validateProp} from \"../../helpers/Validate/props\";\r\n\r\n@Component({\r\n tag: 'gov-banner',\r\n})\r\nexport class GovBanner {\r\n private h: GovHost\r\n\r\n constructor() {\r\n this.h = govHost(this.host)\r\n }\r\n\r\n @Element() host: HTMLGovBannerElement\r\n /**\r\n * Banner’s size.\r\n */\r\n @Prop({reflect: true}) readonly size: BannerSizesType = BannerSizes._M\r\n /**\r\n * Banner’s background\r\n */\r\n @Prop() readonly background: BannerBackgroundsType = BannerBackground.SIMPLE\r\n /**\r\n * Banner’s foreground\r\n */\r\n @Prop() readonly foreground: BannerForegroundsType = BannerForeground.LOGO\r\n /**\r\n * XL Banner’s text color\r\n */\r\n @Prop({attribute: 'text-color'}) readonly textColor: BannerTextColorsType = BannerTextColor.LIGHT\r\n\r\n @Watch('size')\r\n validateSize(newValue: string): void {\r\n validateProp(BannerSizes, newValue, BannerClass.root)\r\n }\r\n\r\n @Watch('background')\r\n validateBackground(newValue: string): void {\r\n validateProp(BannerBackground, newValue, BannerClass.root)\r\n }\r\n\r\n @Watch('foreground')\r\n validateForeground(newValue: string): void {\r\n validateProp(BannerForeground, newValue, BannerClass.root)\r\n }\r\n\r\n @Watch('text-color')\r\n validateTextColor(newValue: string): void {\r\n validateProp(BannerTextColor, newValue, BannerClass.root)\r\n }\r\n\r\n componentWillLoad(): void {\r\n this.validateSize(this.size)\r\n this.validateBackground(this.background)\r\n this.validateForeground(this.foreground)\r\n this.validateTextColor(this.textColor)\r\n }\r\n\r\n render() {\r\n return (\r\n <Host class={this.h.classes(BannerClass.root)}\r\n role=\"region\"\r\n size={this.size}\r\n {...(this.size !== \"xl\" ? {\r\n background: this.background,\r\n foreground: this.foreground\r\n } : {'text-color': this.textColor})}>\r\n <div>\r\n <div class={BannerClass.content}>\r\n <slot name=\"headline\"/>\r\n <slot/>\r\n </div>\r\n {this.h.hasSlot('button') && (\r\n <slot name=\"button\"/>\r\n )}\r\n </div>\r\n <slot name=\"image\"/>\r\n </Host>\r\n )\r\n }\r\n}\r\n"],"mappings":"iOAIO,MAAMA,EAAcC,EAAKC,EAAO,CAAC,KAAM,KAAM,KAAM,QAG1D,IAAYC,GAAZ,SAAYA,GACXA,EAAA,mBACAA,EAAA,iBACAA,EAAA,qBAC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,aACXlB,EAAA,QAAAc,IAAA,8CAEHvB,KAAKS,EAAEmB,QAAQ,WACZnB,EAAA,QAAAc,IAAA,2CAAMI,KAAK,YAGnBlB,EAAA,QAAAc,IAAA,2CAAMI,KAAK,U","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,c as t,h as i,H as h,g as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,c as t,h as i,H as h,g as e}from"./p-ClISz4NF.js";import{c as a}from"./p-vN03FcXN.js";import{v as o}from"./p-NOJjz9dT.js";import{g as n,h as r,i as c}from"./p-B6CqPcY_.js";import{g as l,a as d,t as p}from"./p-CoD1xawt.js";import{F as m}from"./p-5itQzbON.js";import{A as v,a as u}from"./p-Bz_RzYFb.js";import{i as b}from"./p-CzXeijOj.js";import"./p-CgDnDrq5.js";import"./p-CQvUntGY.js";import"./p-BcQO4NH2.js";import"./p-EeKNA85D.js";import"./p-U40vKHrs.js";import"./p-DYcNEwSZ.js";import"./p-DBXGhafv.js";const g=class{constructor(i){s(this,i);this.govFocus=t(this,"gov-focus");this.govBlur=t(this,"gov-blur");this.govChange=t(this,"gov-change");this.hydrated=false;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.size="m";this.inheritedAttributes={};this.checkboxId=a("GovCheckbox");this.h=l(this.host);this.f=n(this.h)}validateSize(s){o(c,s,r.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",d(this.invalid));this.f.passAttrToControl("disabled",d(this.disabled));this.f.passAttrToControl("type","switch")}componentDidLoad(){this.attributeObserver=new v(this.host,((s,t)=>{this.onAriaAttributeChange(s,t)}));this.attributeObserver.startObserving(u)}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=b(this.host)}disconnectedCallback(){var s;(s=this.attributeObserver)===null||s===void 0?void 0:s.stopObserving()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(s,t){this.host.removeAttribute(s);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[s]:t})}render(){const s=s=>{if(this.noLabel){return i("label",{class:r.label},s)}return s};const t=!this.host.querySelector('[slot="label"]');const e=`${this.h.classes(r.root)}${t?` ${r.noLabel}`:""}`;return i(h,{class:e,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:p(this.invalid)},s(i(m,null,i("input",Object.assign({class:r.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:s=>this.inputRef=s,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":p(this.required),"aria-invalid":p(this.invalid),"aria-disabled":p(this.disabled)})),i("span",null,i("span",{class:r.indicator},this.checked&&i("gov-icon",{name:"check-lg",type:"components"})),i("slot",{name:"label"})))))}onClickHandler(s){s.stopPropagation()}onFocusHandler(s){s.stopPropagation();this.govFocus.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}onBlurHandler(s){s.stopPropagation();this.govBlur.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}onChangeHandler(s){this.checked=s.target.checked;s.stopPropagation();this.govChange.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}async getRef(){return this.inputRef}get host(){return e(this)}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}};export{g as gov_form_switch};
|
|
2
|
+
//# sourceMappingURL=p-c6b55c0a.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GovFormSwitch","constructor","hostRef","this","hydrated","noLabel","checked","required","disabled","size","inheritedAttributes","checkboxId","createID","h","govHost","host","f","govForm","validateSize","newValue","validateProp","FormSwitchSizes","FormSwitchClass","root","watchDisabled","passControlAttrs","passAttrToControl","toBoolAttr","invalid","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","inheritAriaAttributes","disconnectedCallback","_a","stopObserving","componentDidRender","passAttrToLabel","identifier","String","connectedCallback","removeAttribute","Object","assign","render","wrapSwitch","children","class","label","noLabelSlot","querySelector","hostClasses","classes","Host","toBoolAttrIfDefined","Fragment","input","id","type","value","name","onClick","onClickHandler","bind","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","ref","el","inputRef","indicator","e","stopPropagation","govFocus","emit","component","originalEvent","govBlur","target","govChange","getRef"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {createID} from \"../../../utils/string.utils\"\r\nimport {validateProp} from \"../../../helpers/Validate/props\"\r\nimport {FormSwitchClass, FormSwitchSizes, FormSwitchSizesType} from \"./constants\"\r\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\r\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\r\nimport {govForm} from \"../../../helpers/Dom/form\"\r\nimport Fragment from \"../../../helpers/Fragment\"\r\nimport {FormSwitchEvent} from \"./gov-form-switch.types\"\r\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\r\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\r\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\r\n\r\n@Component({\r\n\ttag: \"gov-form-switch\",\r\n})\r\nexport class GovFormSwitch {\r\n\tprivate readonly h: GovHost\r\n\tprivate f: GovForm\r\n\tprivate inputRef?: HTMLInputElement\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tprivate readonly checkboxId: string\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\r\n\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.f = govForm(this.h)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovFormSwitchElement\r\n\t/**\r\n\t * Value of switch\r\n\t */\r\n\t@Prop() readonly value: string\r\n\t/**\r\n\t * When you can't use the form label.\r\n\t */\r\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\r\n\t/**\r\n\t * Switch button state\r\n\t */\r\n\t@Prop({reflect: true, mutable: true}) checked = false\r\n\t/**\r\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\r\n\t */\r\n\t@Prop() readonly required: boolean = false\r\n\t/**\r\n\t * Makes the switch component disabled.\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Name of the switch.\r\n\t */\r\n\t@Prop() readonly name: string\r\n\t/**\r\n\t * Switch's size.\r\n\t */\r\n\t@Prop({reflect: true}) readonly size?: FormSwitchSizesType = \"m\"\r\n\t/**\r\n\t * Custom switch identifier.\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Indicates the entered value does not conform to the format expected by the application.\r\n\t */\r\n\t@Prop() readonly invalid: boolean\r\n\t/**\r\n\t * Emitted when the switch has focus.\r\n\t */\r\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormSwitchEvent>\r\n\t/**\r\n\t * Emitted when the switch loses focus.\r\n\t */\r\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormSwitchEvent>\r\n\t/**\r\n\t * Emitted when the switch change value.\r\n\t */\r\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormSwitchEvent>\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.root)\r\n\t}\r\n\r\n\t@Watch(\"disabled\")\r\n\t@Watch(\"invalid\")\r\n\t@Watch(\"size\")\r\n\twatchDisabled(): void {\r\n\t\tthis.passControlAttrs()\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tprivate passControlAttrs() {\r\n\t\tthis.f.passAttrToControl(\"size\", this.size)\r\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\r\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\r\n\t\tthis.f.passAttrToControl(\"type\", \"switch\")\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.passControlAttrs()\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tasync componentDidRender() {\r\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\r\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\r\n\t\tthis.passControlAttrs()\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst wrapSwitch = (children) => {\r\n\t\t\tif (this.noLabel) {\r\n\t\t\t\treturn (\r\n\t\t\t\t\t<label class={FormSwitchClass.label}>\r\n\t\t\t\t\t\t{children}\r\n\t\t\t\t\t</label>\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t\treturn children\r\n\t\t}\r\n\r\n\t\tconst noLabelSlot = !this.host.querySelector('[slot=\"label\"]');\r\n\t\tconst hostClasses = `${this.h.classes(FormSwitchClass.root)}${noLabelSlot ? ` ${FormSwitchClass.noLabel}` : ''}`;\r\n\r\n\t\treturn (\r\n\t\t\t<Host class={hostClasses} hydrated={this.hydrated} checked={this.checked}\r\n\t\t\t\t size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\r\n\t\t\t\t{wrapSwitch(\r\n\t\t\t\t\t<Fragment>\r\n\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\tclass={FormSwitchClass.input}\r\n\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\r\n\t\t\t\t\t\t\ttype=\"checkbox\"\r\n\t\t\t\t\t\t\tvalue={this.value}\r\n\t\t\t\t\t\t\tname={this.name}\r\n\t\t\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\t\t\tchecked={this.checked}\r\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\r\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\r\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\r\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\r\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\r\n\t\t\t\t\t\t\trequired={this.required}\r\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\r\n\t\t\t\t\t\t\taria-checked={this.checked}\r\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\r\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\r\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t<span class={FormSwitchClass.indicator}>\r\n\t\t\t\t\t\t\t\t{this.checked && <gov-icon name=\"check-lg\" type=\"components\"></gov-icon>}\r\n\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t</Fragment>,\r\n\t\t\t\t)}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onClickHandler(e: Event) {\r\n\t\te.stopPropagation()\r\n\t}\r\n\r\n\tprivate onFocusHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govFocus.emit({\r\n\t\t\tcomponent: FormSwitchClass.root,\r\n\t\t\tchecked: this.checked,\r\n\t\t\tvalue: this.value,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onBlurHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govBlur.emit({\r\n\t\t\tcomponent: FormSwitchClass.root,\r\n\t\t\tchecked: this.checked,\r\n\t\t\tvalue: this.value,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onChangeHandler(e: Event) {\r\n\t\tthis.checked = (e.target as HTMLInputElement).checked\r\n\t\te.stopPropagation()\r\n\t\tthis.govChange.emit({\r\n\t\t\tcomponent: FormSwitchClass.root,\r\n\t\t\tchecked: this.checked,\r\n\t\t\tvalue: this.value,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the reference of the native element\r\n\t */\r\n\t@Method()\r\n\tasync getRef(): Promise<HTMLInputElement> {\r\n\t\treturn this.inputRef\r\n\t}\r\n}\r\n"],"mappings":"6gBAiBaA,EAAa,MASzB,WAAAC,CAAAC,G,gHAFQC,KAAQC,SAAG,MAiBqBD,KAAOE,QAAY,MAIrBF,KAAOG,QAAG,MAI/BH,KAAQI,SAAY,MAILJ,KAAQK,SAAY,MAQpBL,KAAIM,KAAyB,IAkCpDN,KAAmBO,oBAAe,GApE1CP,KAAKQ,WAAaC,EAA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AEC,kBACF7E,KAAKkF,QAAQH,KAAK,CACjBC,UAAW7D,EAAgBC,KAC3BjB,QAASH,KAAKG,QACd0D,MAAO7D,KAAK6D,MACZoB,cAAeL,G,CAIT,eAAAT,CAAgBS,GACvB5E,KAAKG,QAAWyE,EAAEO,OAA4BhF,QAC9CyE,EAAEC,kBACF7E,KAAKoF,UAAUL,KAAK,CACnBC,UAAW7D,EAAgBC,KAC3BjB,QAASH,KAAKG,QACd0D,MAAO7D,KAAK6D,MACZoB,cAAeL,G,CAQjB,YAAMS,GACL,OAAOrF,KAAK0E,Q","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as s,h as t,H as a,g as o}from"./p-ClISz4NF.js";import{a as r}from"./p-Q99QrOoi.js";import{g as c}from"./p-CoD1xawt.js";const e=class{constructor(t){s(this,t);this.h=c(this.host)}render(){return t(a,{key:"31bb2635262a61c69776cce49de189302c53b5fa",class:this.h.classes(r.root)},t("slot",{key:"99244dabacca9f48252bc506e26ae57b0f6f93bb"}))}get host(){return o(this)}};export{e as gov_layout_column};
|
|
2
|
+
//# sourceMappingURL=p-cf06a38b.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GovLayoutColumn","constructor","hostRef","this","h","govHost","host","render","Host","key","class","classes","LayoutColumnClass","root"],"sources":["../../../packages/core/src/components/gov-layout/gov-layout-column.tsx"],"sourcesContent":["import { Component, Element, h, Host } from '@stencil/core'\r\nimport { LayoutColumnClass } from './constants'\r\nimport { govHost } from '../../helpers/Dom/template'\r\nimport { GovHost } from '../../helpers/Dom/template.types'\r\n\r\n@Component({\r\n\ttag: 'gov-layout-column',\r\n})\r\nexport class GovLayoutColumn {\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovLayoutColumnElement\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(LayoutColumnClass.root)}>\r\n\t\t\t\t<slot />\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"mappings":"uIAQaA,EAAe,MAG3B,WAAAC,CAAAC,G,UACCC,KAAKC,EAAIC,EAAQF,KAAKG,KACtB,CAID,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQC,EAAkBC,OAC7CT,EAAQ,QAAAK,IAAA,6C","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as s,c as t,h as a,H as e,g as i}from"./p-ClISz4NF.js";import{v as o}from"./p-NOJjz9dT.js";import{A as r,a as c,b as h}from"./p-Cx3bEC5v.js";import{g as n}from"./p-CoD1xawt.js";import"./p-CgDnDrq5.js";import"./p-CQvUntGY.js";import"./p-BcQO4NH2.js";const p=class{constructor(a){s(this,a);this.govChange=t(this,"gov-change");this.hydrated=false;this.size="m";this.noBorder=false;this.h=n(this.host)}validateSize(s){o(h,s,c.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(r.root).forEach((s=>{s.addEventListener("gov-change",(s=>{s.stopPropagation();this.govChange.emit({component:c.root,open:s.detail.open,ref:s.detail.ref})}))}))}connectedCallback(){this.hydrated=true}render(){return a(e,{key:"62ad311346ed2f7caa86f8085b4ee9a7a81c5f92",hydrated:this.hydrated,class:this.h.classes(c.root),size:this.size,role:"list"},a("slot",{key:"c4fade9da340c36695c6781e411abac9202ffdf8"}))}get host(){return i(this)}static get watchers(){return{size:["validateSize"]}}};export{p as gov_accordion};
|
|
2
|
+
//# sourceMappingURL=p-dec65494.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GovAccordion","constructor","hostRef","this","hydrated","size","noBorder","h","govHost","host","validateSize","newValue","validateProp","AccordionSizes","AccordionClass","root","componentWillLoad","componentDidLoad","querySelectorAll","AccordionItemClass","forEach","child","addEventListener","e","stopPropagation","govChange","emit","component","open","detail","ref","connectedCallback","render","Host","key","class","classes","role"],"sources":["../../../packages/core/src/components/gov-accordion/gov-accordion.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Prop, Watch} from '@stencil/core'\r\nimport {validateProp} from '../../helpers/Validate/props'\r\nimport {AccordionClass, AccordionItemClass, AccordionSizes, AccordionSizeType} from './constants'\r\nimport {govHost} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\nimport {AccordionEvent, AccordionItemEvent} from \"./gov-accordion.types\"\r\n\r\n@Component({\r\n\ttag: 'gov-accordion',\r\n})\r\nexport class GovAccordion {\r\n\tprivate h: GovHost\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovAccordionElement\r\n\t/**\r\n\t * Accordion’s size.\r\n\t */\r\n\t@Prop() readonly size?: AccordionSizeType = 'm'\r\n\t/**\r\n\t * Accordion item underline\r\n\t */\r\n\t@Prop({attribute: 'no-border'}) readonly noBorder: boolean = false\r\n\t/**\r\n\t * Called when the accordion state changes\r\n\t */\r\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<AccordionEvent>\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(AccordionSizes, newValue, AccordionClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.host.querySelectorAll(AccordionItemClass.root).forEach((child: HTMLGovAccordionItemElement) => {\r\n\t\t\tchild.addEventListener('gov-change', (e: CustomEvent<AccordionItemEvent>) => {\r\n\t\t\t\te.stopPropagation()\r\n\t\t\t\tthis.govChange.emit({\r\n\t\t\t\t\tcomponent: AccordionClass.root,\r\n\t\t\t\t\topen: e.detail.open,\r\n\t\t\t\t\tref: e.detail.ref\r\n\t\t\t\t})\r\n\t\t\t})\r\n\t\t})\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\thydrated={this.hydrated}\r\n\t\t\t\tclass={this.h.classes(AccordionClass.root)}\r\n\t\t\t\tsize={this.size}\r\n\t\t\t\trole={'list'}>\r\n\t\t\t\t<slot/>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"mappings":"wQAUaA,EAAY,MAIxB,WAAAC,CAAAC,G,8CAFQC,KAAQC,SAAG,MAUFD,KAAIE,KAAuB,IAIHF,KAAQG,SAAY,MAX5DH,KAAKI,EAAIC,EAAQL,KAAKM,KACtB,CAiBD,YAAAC,CAAaC,GACZC,EAAaC,EAAgBF,EAAUG,EAAeC,K,CAGvD,iBAAAC,GACCb,KAAKO,aAAaP,KAAKE,K,CAGxB,gBAAAY,GACCd,KAAKM,KAAKS,iBAAiBC,EAAmBJ,MAAMK,SAASC,IAC5DA,EAAMC,iBAAiB,cAAeC,IACrCA,EAAEC,kBACFrB,KAAKsB,UAAUC,KAAK,CACnBC,UAAWb,EAAeC,KAC1Ba,KAAML,EAAEM,OAAOD,KACfE,IAAKP,EAAEM,OAAOC,KACb,GACD,G,CAIJ,iBAAAC,GACC5B,KAAKC,SAAW,I,CAGjB,MAAA4B,GACC,OACCzB,EAAC0B,EAAI,CAAAC,IAAA,2CACJ9B,SAAUD,KAAKC,SACf+B,MAAOhC,KAAKI,EAAE6B,QAAQtB,EAAeC,MACrCV,KAAMF,KAAKE,KACXgC,KAAM,QACN9B,EAAO,QAAA2B,IAAA,6C","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as a,h as c,H as o,g as s}from"./p-ClISz4NF.js";import{g as e}from"./p-CoD1xawt.js";const t={root:"gov-cookiebar",content:"gov-cookiebar__content",actions:"gov-cookiebar__actions",actionsPrimary:"gov-cookiebar__actions--primary",actionsSecondary:"gov-cookiebar__actions--secondary"};const d=class{constructor(c){a(this,c);this.h=e(this.host)}render(){return c(o,{key:"7d8ea9cb10b863d70680e34a8359bb7d4b3b54af",class:this.h.classes(t.root)},c("div",{key:"4f2790507b522d5dc274e5ce5a5e62487a890c6d",class:t.content},c("slot",{key:"aba847e24ad18dea0d9ea8fd7190bdcff108f758",name:"headline"}),c("slot",{key:"d6227ad2ccf538201f2d8f1feac0db38f2633f22"})),(this.h.hasSlot("actions-primary")||this.h.hasSlot("actions-secondary"))&&c("div",{key:"65363bcb6e8371d3d46f6517b7e22fcde33ff2bf",class:t.actions},this.h.hasSlot("actions-primary")&&c("div",{key:"2c4f265a2114f493e2806af2d0956c7cd5f19a71",class:t.actionsPrimary},c("slot",{key:"fa4276041012ed1828ddb788f26b1aa52f7c82a7",name:"actions-primary"})),this.h.hasSlot("actions-secondary")&&c("div",{key:"1080ea743d6cbf8545c72858ac35bbac2b0b1d21",class:t.actionsSecondary},c("slot",{key:"bf0d5811a3965b52943e6f842dda315b747c6845",name:"actions-secondary"}))))}get host(){return s(this)}};export{d as gov_cookiebar};
|
|
2
|
+
//# sourceMappingURL=p-df09f0be.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CookieConsentClass","root","content","actions","actionsPrimary","actionsSecondary","GovCookiebar","constructor","hostRef","this","h","govHost","host","render","Host","key","class","classes","name","hasSlot"],"sources":["../../../packages/core/src/components/gov-cookiebar/constants.tsx","../../../packages/core/src/components/gov-cookiebar/gov-cookiebar.tsx"],"sourcesContent":["export const CookieConsentClass = {\r\n\troot: 'gov-cookiebar',\r\n\tcontent: 'gov-cookiebar__content',\r\n\tactions: 'gov-cookiebar__actions',\r\n\tactionsPrimary: 'gov-cookiebar__actions--primary',\r\n\tactionsSecondary: 'gov-cookiebar__actions--secondary',\r\n}\r\n","import { Component, Element, h, Host } from '@stencil/core'\r\nimport { govHost } from '../../helpers/Dom/template'\r\nimport { GovHost } from '../../helpers/Dom/template.types'\r\nimport { CookieConsentClass } from './constants'\r\n\r\n@Component({\r\n\ttag: 'gov-cookiebar',\r\n})\r\nexport class GovCookiebar {\r\n\th: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovCookiebarElement\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(CookieConsentClass.root)}>\r\n\t\t\t\t<div class={CookieConsentClass.content}>\r\n\t\t\t\t\t<slot name=\"headline\" />\r\n\t\t\t\t\t<slot />\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t{(this.h.hasSlot('actions-primary') || this.h.hasSlot('actions-secondary')) && (\r\n\t\t\t\t\t<div class={CookieConsentClass.actions}>\r\n\t\t\t\t\t\t{this.h.hasSlot('actions-primary') && (\r\n\t\t\t\t\t\t\t<div class={CookieConsentClass.actionsPrimary}>\r\n\t\t\t\t\t\t\t\t<slot name=\"actions-primary\" />\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t{this.h.hasSlot('actions-secondary') && (\r\n\t\t\t\t\t\t\t<div class={CookieConsentClass.actionsSecondary}>\r\n\t\t\t\t\t\t\t\t<slot name=\"actions-secondary\" />\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t)}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"mappings":"6FAAO,MAAMA,EAAqB,CACjCC,KAAM,gBACNC,QAAS,yBACTC,QAAS,yBACTC,eAAgB,kCAChBC,iBAAkB,qC,MCGNC,EAAY,MAGxB,WAAAC,CAAAC,G,UACCC,KAAKC,EAAIC,EAAQF,KAAKG,KACtB,CAID,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQjB,EAAmBC,OAC9CS,EAAA,OAAAK,IAAA,2CAAKC,MAAOhB,EAAmBE,SAC9BQ,EAAM,QAAAK,IAAA,2CAAAG,KAAK,aACXR,EAAA,QAAAK,IAAA,+CAGCN,KAAKC,EAAES,QAAQ,oBAAsBV,KAAKC,EAAES,QAAQ,uBACrDT,EAAA,OAAAK,IAAA,2CAAKC,MAAOhB,EAAmBG,SAC7BM,KAAKC,EAAES,QAAQ,oBACfT,EAAK,OAAAK,IAAA,2CAAAC,MAAOhB,EAAmBI,gBAC9BM,EAAA,QAAAK,IAAA,2CAAMG,KAAK,qBAIZT,KAAKC,EAAES,QAAQ,sBACfT,EAAK,OAAAK,IAAA,2CAAAC,MAAOhB,EAAmBK,kBAC9BK,EAAM,QAAAK,IAAA,2CAAAG,KAAK,wB","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as s,c as t,h as i,H as a,g as r}from"./p-ClISz4NF.js";import{v as o}from"./p-NOJjz9dT.js";import{W as e,a as p,b as c}from"./p-BjcqOprh.js";import{g as h}from"./p-CoD1xawt.js";import{v as m}from"./p-CDIRBJsi.js";import{c as n}from"./p-CgDnDrq5.js";import{d}from"./p-CQvUntGY.js";import"./p-U40vKHrs.js";import"./p-BcQO4NH2.js";import"./p-vN03FcXN.js";import"./p-DNztiAH0.js";const l=class{constructor(i){s(this,i);this.govChange=t(this,"gov-change");this.hydrated=false;this.size="m";this.h=h(this.host)}validateSize(s){o(c,s,p.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(e.root).forEach((s=>{s.setAttribute("size",this.size)}))}async componentDidRender(){if(n()){await d(500);await this.validateWcag()}}connectedCallback(){this.hydrated=true}render(){return i(a,{key:"0b400b9a4f82a9477e87a314eb54928b66038912",class:this.h.classes(p.root),role:"list",size:this.size,hydrated:this.hydrated},i("slot",{key:"27f601048d97c94aca98594c98028209081b5690"}))}async validateWcag(){m(this.wcagLabel,this.wcagLabelledBy,p.root)}get host(){return r(this)}static get watchers(){return{size:["validateSize"]}}};export{l as gov_wizard};
|
|
2
|
+
//# sourceMappingURL=p-e0634fae.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GovWizard","constructor","hostRef","this","hydrated","size","h","govHost","host","validateSize","newValue","validateProp","WizardSizes","WizardClass","root","componentWillLoad","componentDidLoad","querySelectorAll","WizardItemClass","forEach","child","setAttribute","componentDidRender","canValidateWcagOnRender","delay","validateWcag","connectedCallback","render","Host","key","class","classes","role","validateAccessibleLabel","wcagLabel","wcagLabelledBy"],"sources":["../../../packages/core/src/components/gov-wizard/gov-wizard.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\r\nimport { validateProp } from \"../../helpers/Validate/props\"\r\nimport { WizardSizes, WizardSizesType, WizardClass, WizardItemClass } from \"./constants\"\r\nimport { GovWizardItemChangeEvent } from \"./gov-wizard-item.d\"\r\nimport { govHost } from \"../../helpers/Dom/template\"\r\nimport { GovHost } from \"../../helpers/Dom/template.types\"\r\nimport { validateAccessibleLabel } from \"../../helpers/Validate/wcag\"\r\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\r\nimport { delay } from \"../../utils/utils\"\r\n\r\n@Component({\r\n\ttag: \"gov-wizard\",\r\n})\r\nexport class GovWizard {\r\n\tprivate h: GovHost\r\n\tprivate hydrated = false\r\n\r\n\t@Element() readonly host: HTMLGovWizardElement\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t/**\r\n\t * Size of wizard\r\n\t */\r\n\t@Prop() readonly size?: WizardSizesType = \"m\"\r\n\t/**\r\n\t * Adds accessible label for the wizard that is only shown for screen readers.\r\n\t */\r\n\t@Prop({ attribute: \"wcag-label\" }) readonly wcagLabel: string\r\n\t/**\r\n\t * String of id's that indicate alternative labels elements\r\n\t */\r\n\t@Prop({ attribute: \"wcag-labelled-by\" }) readonly wcagLabelledBy: string\r\n\t/**\r\n\t * Called when the wizard children state changes\r\n\t */\r\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<GovWizardItemChangeEvent>\r\n\r\n\t@Watch(\"size\")\r\n\tprivate validateSize(newValue: string): void {\r\n\t\tvalidateProp(WizardSizes, newValue, WizardClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.host.querySelectorAll(WizardItemClass.root).forEach((child: HTMLGovWizardItemElement) => {\r\n\t\t\tchild.setAttribute(\"size\", this.size)\r\n\t\t\t/*\r\n\t\t\tchild.addEventListener('gov-change', (e: GovWizardItemCustomEvent<GovWizardItemChangeEvent>) => {\r\n\t\t\t\te.stopPropagation()\r\n\t\t\t\tthis.govChange.emit(e.detail)\r\n\t\t\t})\r\n\t\t\t*/\r\n\t\t})\r\n\t}\r\n\r\n\tasync componentDidRender() {\r\n\t\tif (canValidateWcagOnRender()) {\r\n\t\t\tawait delay(500)\r\n\t\t\tawait this.validateWcag()\r\n\t\t}\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(WizardClass.root)} role=\"list\" size={this.size} hydrated={this.hydrated}>\r\n\t\t\t\t<slot />\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Validate the WCAG attributes of the component\r\n\t */\r\n\t@Method()\r\n\tpublic async validateWcag(): Promise<void> {\r\n\t\tvalidateAccessibleLabel(this.wcagLabel, this.wcagLabelledBy, WizardClass.root)\r\n\t}\r\n}\r\n"],"mappings":"uYAaaA,EAAS,MAMrB,WAAAC,CAAAC,G,8CAJQC,KAAQC,SAAG,MAWFD,KAAIE,KAAqB,IANzCF,KAAKG,EAAIC,EAAQJ,KAAKK,KACtB,CAoBO,YAAAC,CAAaC,GACpBC,EAAaC,EAAaF,EAAUG,EAAYC,K,CAGjD,iBAAAC,GACCZ,KAAKM,aAAaN,KAAKE,K,CAGxB,gBAAAW,GACCb,KAAKK,KAAKS,iBAAiBC,EAAgBJ,MAAMK,SAASC,IACzDA,EAAMC,aAAa,OAAQlB,KAAKE,KAAK,G,CAUvC,wBAAMiB,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNrB,KAAKsB,c,EAIb,iBAAAC,GACCvB,KAAKC,SAAW,I,CAGjB,MAAAuB,GACC,OACCrB,EAACsB,EAAI,CAAAC,IAAA,2CAACC,MAAO3B,KAAKG,EAAEyB,QAAQlB,EAAYC,MAAOkB,KAAK,OAAO3B,KAAMF,KAAKE,KAAMD,SAAUD,KAAKC,UAC1FE,EAAQ,QAAAuB,IAAA,6C,CASJ,kBAAMJ,GACZQ,EAAwB9B,KAAK+B,UAAW/B,KAAKgC,eAAgBtB,EAAYC,K","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as e,g as a}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as s,h as i,H as e,g as a}from"./p-ClISz4NF.js";import{v as o}from"./p-NOJjz9dT.js";import{g as h}from"./p-CoD1xawt.js";import{p as c}from"./p-CQvUntGY.js";import{S as r}from"./p-BcQO4NH2.js";import{B as n,a as f}from"./p-Bo1ROm5Q.js";import{c as d}from"./p-vN03FcXN.js";import{p as l}from"./p-GYov8gU1.js";import{i as p}from"./p-CzXeijOj.js";import{A as b,a as m}from"./p-Bz_RzYFb.js";import"./p-CgDnDrq5.js";import"./p-U40vKHrs.js";const v=c(r,["_XS","_S","_M"]);var g;(function(t){t["SOLID"]="solid";t["OUTLINED"]="outlined"})(g||(g={}));var j;(function(t){t["A"]="a";t["SPAN"]="span";t["BUTTON"]="button"})(j||(j={}));const u={root:"gov-chip",hasRight:"gov-chip--has-right",hasLeft:"gov-chip--has-left"};const y=class{constructor(i){t(this,i);this.govClick=s(this,"gov-click");this.hydrated=false;this.disabled=false;this.size=v._M;this.tag="span";this.color=n.PRIMARY;this.focusable=true;this.inheritedAttributes={};this.h=h(this.host);this.chipId=d("GovChip")}validateColor(t){o(n,t,u.root)}validateSize(t){o(f,t,u.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.inheritedAttributes=p(this.host)}componentDidLoad(){this.attributeObserver=new b(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(m)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=this.href?j.A:this.tag;const s=t==j.BUTTON?j.BUTTON:undefined;const a=l(this.iconStart);const o=l(this.iconEnd);return i(e,{key:"ef86316065b17ea753e6f46944203be579c9669c",class:this.h.classes([u.root,this.h.hasSlot("right")?u.hasRight:undefined,this.h.hasSlot("left")?u.hasLeft:undefined]),disabled:this.disabled,href:this.href,color:this.color,type:this.type,size:this.size,focusable:this.focusable,hydrated:this.hydrated},i(t,Object.assign({key:"0ecb833e5c5f4e30914d9f12764b78bfd22973b6",class:"element",href:this.href,target:this.target,ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),tabindex:this.h.hasSlot("left")||this.h.hasSlot("right")||this.disabled||!this.focusable?"-1":"0",id:this.identifier||this.chipId,type:s},this.inheritedAttributes,{"aria-disabled":this.disabled}),i("slot",{key:"9793b743f288573932aec95f68c0f1b1bb617add",name:"left"}),i("slot",{key:"be7cc7cb0a94c666faf842d8ee70701245305001",name:"icon-start"},a&&i("gov-icon",{key:"464ebc3d08b609a17e5e126eca9b0fb8eefc2bd4",type:a.type,name:a.name})),i("slot",{key:"faffc742599b65f40b61b8cbd45e32891f43a869"}),i("slot",{key:"dce2fa1d55332f8cc3d51e8a11e56735f5bcf683",name:"icon-end"},o&&i("gov-icon",{key:"afc841c471bc376cc650150e168d307f3393ef15",type:o.type,name:o.name})),i("slot",{key:"16dc2b17d2b813c2ced12ae44c12d621a82c6cb5",name:"right"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false&&this.tag===j.BUTTON){this.govClick.emit(t)}}async geRef(){return this.triggerRef}async setFocus(){this.triggerRef.focus()}get host(){return a(this)}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}};export{y as gov_chip};
|
|
2
|
+
//# sourceMappingURL=p-e1b2af6b.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ChipSizes","pick","Sizes","ChipType","NativeType","ChipClass","root","hasRight","hasLeft","GovChip","constructor","hostRef","this","hydrated","disabled","size","_M","tag","color","ButtonColors","PRIMARY","focusable","inheritedAttributes","h","govHost","host","chipId","createID","validateColor","newValue","validateProp","validateSize","ButtonSizes","componentWillLoad","inheritAriaAttributes","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","disconnectedCallback","_a","stopObserving","connectedCallback","removeAttribute","Object","assign","render","Tag","href","A","nativeType","BUTTON","undefined","iconStart","prepareIconFormat","iconEnd","Host","key","class","classes","hasSlot","type","target","ref","el","triggerRef","onClick","onClickHandler","bind","tabindex","id","identifier","name","e","stopPropagation","govClick","emit","geRef","setFocus","focus"],"sources":["../../../packages/core/src/components/gov-chip/constants.ts","../../../packages/core/src/components/gov-chip/gov-chip.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\r\nimport {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\n\r\nexport const ChipSizes = pick(Sizes, ['_XS', '_S', '_M'])\r\nexport type ChipSizesType = `${ValueOf<typeof ChipSizes>}`\r\n\r\nexport enum ChipType {\r\n\tSOLID = 'solid',\r\n\tOUTLINED = 'outlined',\r\n}\r\nexport type ChipTypesType = `${ValueOf<typeof ChipType>}`\r\n\r\nexport enum NativeType {\r\n\tA = 'a',\r\n\tSPAN = 'span',\r\n\tBUTTON = 'button',\r\n}\r\nexport type NativeTypesType = `${ValueOf<typeof NativeType>}`\r\n\r\nexport const ChipClass = {\r\n\troot: 'gov-chip',\r\n\tinner: 'gov-chip__inner',\r\n\thasRight: 'gov-chip--has-right',\r\n\thasLeft: 'gov-chip--has-left',\r\n}\r\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {ChipClass, ChipSizes, ChipSizesType, ChipTypesType, NativeType, NativeTypesType} from \"./constants\"\r\nimport {ButtonColors, ButtonColorType, ButtonSizes} from \"../gov-button/button/constants\"\r\nimport {createID} from \"../../utils/string.utils\"\r\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\r\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\r\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\r\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\r\n\r\n@Component({\r\n\ttag: \"gov-chip\",\r\n})\r\nexport class GovChip {\r\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement | HTMLSpanElement\r\n\tprivate h: GovHost\r\n\tprivate readonly chipId: string\r\n\tprivate hydrated = false\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.chipId = createID('GovChip')\r\n\t}\r\n\r\n\t@Element() host: HTMLGovChipElement\r\n\r\n\t/**\r\n\t * Makes the chip component disabled.\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\r\n\t */\r\n\t@Prop() readonly href: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\r\n\t */\r\n\t@Prop() readonly target: string\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\r\n\t/**\r\n\t * Chip’s size.\r\n\t */\r\n\t@Prop() readonly size: ChipSizesType = ChipSizes._M\r\n\t/**\r\n\t * Used to change the HTML tag in the chip\r\n\t */\r\n\t@Prop() readonly tag: NativeTypesType = \"span\"\r\n\t/**\r\n\t * Style variation of the chip.\r\n\t */\r\n\t@Prop() readonly color: ButtonColorType = ButtonColors.PRIMARY\r\n\t/**\r\n\t * Chip’s type\r\n\t */\r\n\t@Prop({reflect: true}) readonly type: ChipTypesType\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\r\n\t */\r\n\t@Prop() readonly focusable: boolean = true\r\n\t/**\r\n\t * Custom chip identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly identifier: string\r\n\t/**\r\n\t * Emitted when the button click.\r\n\t */\r\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<PointerEvent>\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(ButtonColors, newValue, ChipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(ButtonSizes, newValue, ChipClass.root)\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst Tag = this.href ? NativeType.A : this.tag\r\n\t\tconst nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined\r\n\r\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\r\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\r\n\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tclass={this.h.classes([\r\n\t\t\t\t\tChipClass.root,\r\n\t\t\t\t\tthis.h.hasSlot(\"right\") ? ChipClass.hasRight : undefined,\r\n\t\t\t\t\tthis.h.hasSlot(\"left\") ? ChipClass.hasLeft : undefined,\r\n\t\t\t\t])}\r\n\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\thref={this.href}\r\n\t\t\t\tcolor={this.color}\r\n\t\t\t\ttype={this.type}\r\n\t\t\t\tsize={this.size}\r\n\t\t\t\tfocusable={this.focusable}\r\n\t\t\t\thydrated={this.hydrated}\r\n\t\t\t>\r\n\t\t\t\t<Tag\r\n\t\t\t\t\tclass=\"element\"\r\n\t\t\t\t\thref={this.href}\r\n\t\t\t\t\ttarget={this.target}\r\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLButtonElement | HTMLSpanElement)}\r\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\r\n\t\t\t\t\ttabindex={(this.h.hasSlot(\"left\") || this.h.hasSlot(\"right\") || this.disabled || !this.focusable) ? \"-1\" : \"0\"}\r\n\t\t\t\t\tid={this.identifier || this.chipId}\r\n\t\t\t\t\ttype={nativeType}\r\n\t\t\t\t\t{...this.inheritedAttributes}\r\n\t\t\t\t\taria-disabled={this.disabled}>\r\n\t\t\t\t\t<slot name=\"left\"></slot>\r\n\t\t\t\t\t<slot name=\"icon-start\">\r\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t\t<slot/>\r\n\t\t\t\t\t<slot name=\"icon-end\">\r\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t\t<slot name=\"right\"></slot>\r\n\t\t\t\t</Tag>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onClickHandler(e: PointerEvent): void {\r\n\t\te.stopPropagation()\r\n\t\tif (this.disabled === false && this.tag === NativeType.BUTTON) {\r\n\t\t\tthis.govClick.emit(e)\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a clickable element instance\r\n\t */\r\n\t@Method()\r\n\tasync geRef() {\r\n\t\treturn this.triggerRef\r\n\t}\r\n\r\n\t/**\r\n\t * Focus button element\r\n\t */\r\n\t@Method()\r\n\tasync setFocus(): Promise<void> {\r\n\t\tthis.triggerRef.focus()\r\n\t}\r\n}\r\n"],"mappings":"kcAIO,MAAMA,EAAYC,EAAKC,EAAO,CAAC,MAAO,KAAM,OAGnD,IAAYC,GAAZ,SAAYA,GACXA,EAAA,iBACAA,EAAA,sBACA,EAHD,CAAYA,MAGX,KAGD,IAAYC,GAAZ,SAAYA,GACXA,EAAA,SACAA,EAAA,eACAA,EAAA,kBACA,EAJD,CAAYA,MAIX,KAGM,MAAMC,EAAY,CACxBC,KAAM,WAENC,SAAU,sBACVC,QAAS,sB,M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ACL,OAAOpE,KAAKwD,U,CAOb,cAAMa,GACLrE,KAAKwD,WAAWc,O","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,h as a,H as s}from"./p-ClISz4NF.js";const c={root:"gov-form-password-power",bar:"gov-form-password-power__bar",text:"gov-form-password-power__text"};const o=class{constructor(a){e(this,a)}render(){return a(s,{key:"95bbc5fb2e55470ec4cd18b0b1ecece89a4df502",class:c.root},a("span",{key:"513c89318f7f4ded2e91c420dba95fa7852942db",class:c.bar},a("span",{key:"524f84e45276cb043999d41560b62320ba701343"}),a("span",{key:"4d2a5ff935ca8d293bde0ab11d5f5e2fba0aacc4"}),a("span",{key:"270276edf333b84e7c06c741c9cfc84eeadef2c4"})),a("span",{key:"6b092b79e2e8934b1eba3c448e56c4aea6eab279",class:c.text},a("slot",{key:"4d24610c752886264b453df0965af10812946490"})))}};export{o as gov_form_password_power};
|
|
2
|
+
//# sourceMappingURL=p-e29cd545.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["FormPasswordPowerClass","root","bar","text","GovFormPasswordPower","render","h","Host","key","class"],"sources":["../../../packages/core/src/components/gov-form/password-power/constants.ts","../../../packages/core/src/components/gov-form/password-power/gov-form-password-power.tsx"],"sourcesContent":["export const FormPasswordPowerClass = {\r\n\troot: 'gov-form-password-power',\r\n bar: 'gov-form-password-power__bar',\r\n text: 'gov-form-password-power__text',\r\n}\r\n","import {Component, h, Host, Prop} from '@stencil/core'\r\nimport {FormPasswordPowerClass} from './constants'\r\n\r\n@Component({\r\n\ttag: 'gov-form-password-power',\r\n})\r\nexport class GovFormPasswordPower {\r\n\t/**\r\n\t * Password power: 0 - none, 1 - weak, 2 - medium, 3 - strong\r\n\t */\r\n\t@Prop({reflect: true}) readonly power: number\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={FormPasswordPowerClass.root}>\r\n\t\t\t\t\t<span class={FormPasswordPowerClass.bar}>\r\n\t\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<span class={FormPasswordPowerClass.text}>\r\n\t\t\t\t\t\t\t<slot/>\r\n\t\t\t\t\t</span>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"mappings":"kDAAO,MAAMA,EAAyB,CACrCC,KAAM,0BACHC,IAAK,+BACLC,KAAM,iC,MCGGC,EAAoB,M,yBAMhC,MAAAC,GACC,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOT,EAAuBC,MAClCK,EAAA,QAAAE,IAAA,2CAAMC,MAAOT,EAAuBE,KAClCI,EAAa,QAAAE,IAAA,6CACbF,EAAa,QAAAE,IAAA,6CACbF,EAAA,QAAAE,IAAA,8CAEFF,EAAA,QAAAE,IAAA,2CAAMC,MAAOT,EAAuBG,MAClCG,EAAO,QAAAE,IAAA,8C","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as s,h as t,H as a,g as o}from"./p-ClISz4NF.js";import{v as e}from"./p-NOJjz9dT.js";import{C as r}from"./p-U40vKHrs.js";import{p as c}from"./p-CQvUntGY.js";import{g as i}from"./p-CoD1xawt.js";import"./p-CgDnDrq5.js";c(r,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var b;(function(s){s["BOLD"]="bold";s["SUBTLE"]="subtle"})(b||(b={}));const d={root:"gov-message",content:"gov-message__content"};const n=class{constructor(t){s(this,t);this.color=r.PRIMARY;this.type="subtle";this.h=i(this.host)}validateColor(s){e(r,s,d.root)}render(){return t(a,{key:"646b418ce94ae2c4a0e68ae7662b6a0cdcb5abdf",class:this.h.classes(d.root),color:this.color,type:this.type,role:"status"},this.h.hasSlot("icon")&&t("span",{key:"c628baa7a9302fd2422418f6cb643ab188630d19"},t("slot",{key:"3e06254836e945da56d642ca358730c59da0575d",name:"icon"})),t("div",{key:"e9732388652c00c5bb4292d61ba71a62b3a6ca07",class:d.content},t("slot",{key:"71b74db9ecbfa2fcd0bbb102e6d77accbcd1d3f0"})))}get host(){return o(this)}static get watchers(){return{color:["validateColor"]}}};export{n as gov_message};
|
|
2
|
+
//# sourceMappingURL=p-e5e7abe0.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pick","Colors","MessageType","MessageClass","root","content","GovMessage","constructor","hostRef","this","color","PRIMARY","type","h","govHost","host","validateColor","newValue","validateProp","render","Host","key","class","classes","role","hasSlot","name"],"sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\r\nimport { pick } from '../../utils/utils'\r\nimport { ValueOf } from '../../types/interfaces'\r\n\r\nexport const MessageColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\r\nexport type MessageColorType = `${ValueOf<typeof MessageColors>}`\r\n\r\nexport enum MessageType {\r\n\tBOLD = 'bold',\r\n\tSUBTLE = 'subtle',\r\n}\r\nexport type MessageTypesType = `${ValueOf<typeof MessageType>}`\r\n\r\nexport const MessageClass = {\r\n\troot: 'gov-message',\r\n\tcontent: 'gov-message__content',\r\n}\r\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\r\nimport { validateProp } from \"../../helpers/Validate/props\"\r\nimport { MessageTypesType, MessageClass, MessageColorType} from \"./constants\"\r\nimport { govHost } from \"../../helpers/Dom/template\"\r\nimport { GovHost } from \"../../helpers/Dom/template.types\"\r\nimport { Colors } from \"../../core/constants/colors\"\r\n\r\n@Component({\r\n\ttag: \"gov-message\",\r\n})\r\nexport class GovMessage {\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovMessageElement\r\n\r\n\t/**\r\n\t * Style variation of the content message.\r\n\t */\r\n\t@Prop() readonly color: MessageColorType = Colors.PRIMARY\r\n\t/**\r\n\t * Message type\r\n\t */\r\n\t@Prop() readonly type?: MessageTypesType = \"subtle\"\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(Colors, newValue, MessageClass.root)\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(MessageClass.root)} color={this.color} type={this.type} role=\"status\">\r\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\r\n\t\t\t\t\t<span>\r\n\t\t\t\t\t\t<slot name=\"icon\" />\r\n\t\t\t\t\t</span>\r\n\t\t\t\t)}\r\n\r\n\t\t\t\t<div class={MessageClass.content}>\r\n\t\t\t\t\t<slot />\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"mappings":"iOAI6BA,EAAKC,EAAQ,CAAC,UAAW,UAAW,QAAS,UAAW,YAGrF,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,kBACA,EAHD,CAAYA,MAGX,KAGM,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,wB,MCLGC,EAAU,MAGtB,WAAAC,CAAAC,G,UASiBC,KAAAC,MAA0BT,EAAOU,QAIjCF,KAAIG,KAAsB,SAZ1CH,KAAKI,EAAIC,EAAQL,KAAKM,KACtB,CAcD,aAAAC,CAAcC,GACbC,EAAajB,EAAQgB,EAAUd,EAAaC,K,CAG7C,MAAAe,GACC,OACCN,EAACO,EAAI,CAAAC,IAAA,2CAACC,MAAOb,KAAKI,EAAEU,QAAQpB,EAAaC,MAAOM,MAAOD,KAAKC,MAAOE,KAAMH,KAAKG,KAAMY,KAAK,UACvFf,KAAKI,EAAEY,QAAQ,SACfZ,EAAA,QAAAQ,IAAA,4CACCR,EAAA,QAAAQ,IAAA,2CAAMK,KAAK,UAIbb,EAAA,OAAAQ,IAAA,2CAAKC,MAAOnB,EAAaE,SACxBQ,EAAQ,QAAAQ,IAAA,8C","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as e,g as
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as s,h as i,H as e,g as h}from"./p-ClISz4NF.js";import{g as a,l as o,m as n}from"./p-B6CqPcY_.js";import{g as r,a as c,d as l,t as d}from"./p-CoD1xawt.js";import{v as p}from"./p-NOJjz9dT.js";import{c as m}from"./p-vN03FcXN.js";import{A as u,a as b}from"./p-Bz_RzYFb.js";import{i as v}from"./p-CzXeijOj.js";import{p as f}from"./p-CQvUntGY.js";import{S as g}from"./p-BcQO4NH2.js";import{C as y}from"./p-U40vKHrs.js";import"./p-EeKNA85D.js";import"./p-DYcNEwSZ.js";import"./p-DBXGhafv.js";import"./p-CgDnDrq5.js";var k;(function(t){t["INPUT"]="input";t["TEXTAREA"]="textarea"})(k||(k={}));const j=class{constructor(i){t(this,i);this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govInput=s(this,"gov-input");this.govKeyUp=s(this,"gov-keyup");this.govHydrated=s(this,"gov-hydrated");this.govKeyDown=s(this,"gov-keydown");this.size="m";this.required=false;this.disabled=false;this.inputType="text";this.accessibleShowPasswordLabel="Zobrazit heslo";this.accessibleHidePasswordLabel="Skrýt heslo";this.showPassword=false;this.inheritedAttributes={};this.h=r(this.host);this.inputId=m("GovInput");this.f=a(this.h)}validateSize(t){p(n,t,o.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",c(this.success));this.f.passAttrToControl("disabled",c(this.disabled));this.f.passAttrToControl("invalid",c(this.invalid));this.f.passAttrToControl("type",this.multiline?k.TEXTAREA:k.INPUT)}componentDidLoad(){this.attributeObserver=new u(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b);this.govHydrated.emit()}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=v(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}render(){const t=this.multiline?k.TEXTAREA:k.INPUT;return i(e,{key:"77dae47e06d063a2487a5ddbb1259306b5cdbfc3",class:o.root,size:this.size,type:this.type},this.h.hasSlot("prefix")&&i("slot",{key:"e8e2f433d1ef4132ea11deccd0430d1e629b939b",name:"prefix"}),i("span",{key:"d6ccd3199c302f2bdefec80c9b1d41e221f5c996",class:"element"},this.h.hasSlot("icon-start")&&!this.multiline&&i("div",{key:"9bdfc91aeb6b5f9c9c16cf902d092caeb5c5d9c5",class:o.icons,onClick:()=>this.inputRef.focus()},i("slot",{key:"2a2d7b03fbe85a18353ac360a822721b2e76da78",name:"icon-start"})),i(t,Object.assign({key:"e43d026dbb5138a6b69363805df462d18d3e1e1f",type:this.inputType==="password"&&this.showPassword?"text":this.inputType,disabled:this.disabled,id:this.identifier||this.inputId,name:this.name,onFocus:this.onFocusHandler.bind(this),onInput:this.onInputHandler.bind(this),onBlur:this.onBlurHandler.bind(this),onKeyUp:this.onKeyUpHandler.bind(this),onKeyDown:this.onKeyDownHandler.bind(this),ref:t=>this.inputRef=t,placeholder:this.placeholder,spellcheck:d(this.spellcheck),lang:this.inputLang,readonly:d(this.readonly),autocomplete:l(this.autocomplete),autocorrect:l(this.autocorrect),minlength:this.minlength,maxlength:this.maxlength,min:this.min,max:this.max,required:this.required,rows:this.rows,cols:this.cols,role:this.role,value:this.value},this.inheritedAttributes,{"aria-required":d(this.required),"aria-invalid":d(this.invalid),"aria-disabled":d(this.disabled)})),(this.success||this.invalid||this.h.hasSlot("icon-end")||this.inputType==="password")&&!this.multiline&&i("div",{key:"43025915f216c0153e069acdddbece0e059f3ec7",class:o.icons,onClick:()=>this.inputRef.focus()},this.success&&!this.multiline&&i("gov-icon",{key:"13b34f7a5e705afdb92877850f116895318bb876",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&!this.multiline&&i("gov-icon",{key:"d671025577334714519c12956863a3a3c6f3af81",class:"validation-icon",name:"exclamation-lg",type:"components"}),this.h.hasSlot("icon-end")&&this.inputType!=="password"&&i("slot",{key:"f26ff9842ab606917ff1fe10e5fa83e0707f923f",name:"icon-end"}),this.inputType==="password"?i("gov-button",{color:"primary",type:"base",size:this.size,"aria-label":this.showPassword?this.accessibleHidePasswordLabel:this.accessibleShowPasswordLabel,"on-gov-click":()=>this.showPassword=!this.showPassword},i("gov-icon",{slot:"icon-start",name:"eye",type:"components"})):null)),this.h.hasSlot("sufix")&&i("slot",{key:"666b152801bc34d6cdb66e88c22d695c4b4d169c",name:"sufix"}))}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:o.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.focused=false;this.govBlur.emit({component:o.root,value:this.value,originalEvent:t})}onKeyUpHandler(t){t.stopPropagation();this.govKeyUp.emit({component:o.root,value:this.value,originalEvent:t})}onKeyDownHandler(t){t.stopPropagation();this.govKeyDown.emit({component:o.root,value:this.value,originalEvent:t})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:o.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return h(this)}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}};const w=f(g,["_XS","_S","_M","_L","_XL"]);f(y,["PRIMARY","NEUTRAL"]);var C;(function(t){t["CIRCLE"]="circle";t["LINE"]="line"})(C||(C={}));var z;(function(t){t["PULSE"]="pulse";t["PROGRESS"]="progress";t["FALSE"]="false"})(z||(z={}));const A={root:"gov-skeleton"};const x=class{constructor(s){t(this,s);this.size="m";this.color="neutral";this.shape="line";this.width=null;this.height=null;this.animation="progress";this.items=[];this.inheritedAttributes={};this.h=r(this.host)}validateSize(t){p(w,t,A.root)}validateShape(t){p(C,t,A.root)}validateAnimation(t){p(z,t,A.root)}componentDidLoad(){this.attributeObserver=new u(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.validateSize(this.size);this.validateShape(this.shape);this.validateAnimation(this.animation);this.init();this.inheritedAttributes=v(this.host)}componentWillUpdate(){this.init()}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}init(){this.items.fill(1)}render(){return i(e,Object.assign({key:"871f22b2b3bd0c92c75b81b4d649246414c01b97",size:this.size,color:this.color,class:{[A.root]:true,circle:this.shape==="circle",line:this.shape==="line",progress:this.animation==="progress",pulse:this.animation==="pulse"}},this.inheritedAttributes,{"aria-busy":"true","aria-valuemin":"0","aria-valuemax":"100",role:"progressbar",tabindex:"0",style:{width:this.width,height:this.height}}))}get host(){return h(this)}static get watchers(){return{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}}};export{j as gov_form_input,x as gov_skeleton};
|
|
2
|
+
//# sourceMappingURL=p-e7f889c7.entry.js.map
|