@gov-design-system-ce/components 4.2.9 → 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 +3 -3
- 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.map +1 -1
- package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
- 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-B03Rpjps.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-9COKmDO0.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-Cy7Wk3yM.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-DJ1DN3ks.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 +1252 -629
- 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-35cd4ecd.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 +3 -3
- 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 +366 -410
- package/dist/hydrate/index.mjs +366 -410
- 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-form/file/gov-form-file.d.ts +0 -4
- package/dist/types/components.d.ts +61 -14
- 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 -227
- 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 -2329
- 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-9COKmDO0.js.map +0 -1
- package/dist/components/p-B03Rpjps.js.map +0 -1
- package/dist/components/p-CXbpWAIF.js +0 -2
- package/dist/components/p-CXbpWAIF.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-Cy7Wk3yM.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-DJ1DN3ks.js.map +0 -1
- package/dist/components/p-DTn9nVrF.js +0 -2
- package/dist/components/p-DTn9nVrF.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-Dmr81UhL.js +0 -2
- package/dist/components/p-Dmr81UhL.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-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-35cd4ecd.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-730b823a.entry.js +0 -2
- package/dist/core/p-730b823a.entry.js.map +0 -1
- package/dist/core/p-7b623100.entry.js +0 -2
- package/dist/core/p-7b623100.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-d8264763.entry.js +0 -2
- package/dist/core/p-d8264763.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-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":"gov-form-select.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/select/gov-form-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAA;AAEj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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {govForm} from '../../../helpers/Dom/form'\nimport {GovForm} from '../../../helpers/Dom/form.types'\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from '../../../helpers/Dom/template'\nimport {GovHost} from '../../../helpers/Dom/template.types'\nimport {validateProp} from '../../../helpers/Validate/props'\nimport {createID} from '../../../utils/string.utils'\nimport {FormSelectClass, FormSelectSizes, FormSelectSizesType,} from './constants'\nimport {FormSelectEvent, FormSelectOption} from './gov-form-select.types'\nimport {propsValueToArray} from \"../../../utils/array.utils\";\nimport {tick} from \"../../../utils/stencil.utils\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-form-select',\n})\nexport class GovFormSelect {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate selectRef?: HTMLSelectElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly selectId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t\tthis.selectId = createID('GovSelect')\n\t}\n\n\t@Element() host: HTMLGovFormSelectElement\n\t/**\n\t * Value of select\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Options of select\n\t */\n\t@Prop({reflect: true, mutable: true}) options?: string | FormSelectOption[]\n\t/**\n\t * Custom select identifier.\n\t */\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\n\t/**\n\t * Select’s size.\n\t */\n\t@Prop() readonly size?: FormSelectSizesType = 'm'\n\t/**\n\t * Name of the select.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop({reflect: true}) readonly success: boolean\n\t/**\n\t * Makes the select component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the select has focus.\n\t */\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select loses focus.\n\t */\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select change value.\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<FormSelectEvent>\n\t@State() focused: boolean\n\t@State() optionsState: FormSelectOption[] = []\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSelectSizes, newValue, FormSelectClass.root)\n\t}\n\n\t@Watch('options')\n\twatchOptions(newValue: string | FormSelectOption[]): void {\n\t\tthis.optionsState = propsValueToArray(newValue)\n\t}\n\n\t@Watch('disabled')\n\t@Watch('invalid')\n\t@Watch('success')\n\t@Watch('size')\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@Watch('value')\n\twatchValue(): void {\n\t\tthis.markSelectedValue()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl('size', this.size)\n\t\tthis.f.passAttrToControl('invalid', toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl('success', toBoolAttr(this.success))\n\t\tthis.f.passAttrToControl('disabled', toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl('type', 'select')\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\n\t\tthis.markSelectedValue()\n\n\t\tthis.optionsState = propsValueToArray(this.options)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel('required', String(this.required))\n\t\ttick(() => this.markSelectedValue())\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate markSelectedValue() {\n\t\tthis.host.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\n\t\t\tif (option.value === this.value) {\n\t\t\t\toption.setAttribute('selected', 'selected')\n\t\t\t} else {\n\t\t\t\toption.removeAttribute('selected')\n\t\t\t}\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormSelectClass.root} size={this.size}>\n\t\t\t\t{this.h.hasSlot('prefix') && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t<select\n\t\t\t\t\t\tid={this.identifier || this.selectId}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tref={el => (this.selectRef = el as HTMLSelectElement)}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t{Array.isArray(this.optionsState) && this.optionsState.map((option) => {\n\t\t\t\t\t\t\treturn (<option value={option.value} selected={option.value === this.value}\n\t\t\t\t\t\t\t\t\t\t\tdisabled={option?.disabled}>{option.label ?? option.value}</option>)\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t\t{this.success && <gov-icon class=\"validation-icon\" name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t{this.invalid && <gov-icon class=\"validation-icon\" name=\"exclamation-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t<gov-icon class=\"arrow-icon\" name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot('sufix') && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.value = (e.target as HTMLSelectElement).value\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.selectRef.focus(options)\n\t}\n\n\t/**\n\t * Returns an instance of the native html select element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLSelectElement> {\n\t\treturn this.selectRef\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"gov-form-select.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/select/gov-form-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAA;AAEjD,OAAO,EAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AAEtF,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAC,eAAe,EAAE,eAAe,GAAuB,MAAM,aAAa,CAAA;AAElF,OAAO,EAAC,iBAAiB,EAAC,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAC,IAAI,EAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,EAAC,iBAAiB,EAAa,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAC,cAAc,EAAC,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAC,qBAAqB,EAAC,MAAM,8CAA8C,CAAC;AAKnF,MAAM,OAAO,aAAa;IAQzB;QAmBA;;WAEG;QACc,SAAI,GAAyB,GAAG,CAAA;QAKjD;;;WAGG;QACc,aAAQ,GA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,KAAK,GAAI,CAAC,CAAC,MAA4B,CAAC,KAAK,CAAA;QAClD,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACnB,SAAS,EAAE,eAAe,CAAC,IAAI;YAC/B,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC,CAAA;IACH,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,QAAQ,CAAC,OAAsB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IACrC,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,MAAM;QACX,OAAO,IAAI,CAAC,SAAS,CAAA;IACtB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","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\n\t}\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-form-select.types.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/select/gov-form-select.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../../types/event.types\"\n\nexport interface FormSelectEvent extends GovBaseEvent {\n\tvalue: string\n}\n\nexport interface FormSelectOption {\n\tvalue: string\n\tlabel?: string\n\tdisabled?: boolean\n}\n"]}
|
|
1
|
+
{"version":3,"file":"gov-form-select.types.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/select/gov-form-select.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../../types/event.types\"\r\n\r\nexport interface FormSelectEvent extends GovBaseEvent {\r\n\tvalue: string\r\n}\r\n\r\nexport interface FormSelectOption {\r\n\tvalue: string\r\n\tlabel?: string\r\n\tdisabled?: boolean\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/switch/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAErD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAG5E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,IAAI,EAAE,iBAAiB;IACvB,MAAM,EAAE,yBAAyB;IACjC,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,4BAA4B;IACvC,KAAK,EAAE,wBAAwB;IAC/B,OAAO,EAAE,2BAA2B;CACpC,CAAA","sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\nimport { ValueOf } from '../../../types/interfaces'\nimport { pick } from '../../../utils/utils'\n\nexport const FormSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type FormSwitchSizesType = `${ValueOf<typeof FormSwitchSizes>}`\n\nexport const FormSwitchClass = {\n\troot: 'gov-form-switch',\n\tholder: 'gov-form-switch__holder',\n\tinput: 'gov-form-switch__input',\n\tindicator: 'gov-form-switch__indicator',\n\tlabel: 'gov-form-switch__label',\n\tnoLabel: 'gov-form-switch__no-label',\n}\n"]}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/switch/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAErD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAG5E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,IAAI,EAAE,iBAAiB;IACvB,MAAM,EAAE,yBAAyB;IACjC,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,4BAA4B;IACvC,KAAK,EAAE,wBAAwB;IAC/B,OAAO,EAAE,2BAA2B;CACpC,CAAA","sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\r\nimport { ValueOf } from '../../../types/interfaces'\r\nimport { pick } from '../../../utils/utils'\r\n\r\nexport const FormSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\r\nexport type FormSwitchSizesType = `${ValueOf<typeof FormSwitchSizes>}`\r\n\r\nexport const FormSwitchClass = {\r\n\troot: 'gov-form-switch',\r\n\tholder: 'gov-form-switch__holder',\r\n\tinput: 'gov-form-switch__input',\r\n\tindicator: 'gov-form-switch__indicator',\r\n\tlabel: 'gov-form-switch__label',\r\n\tnoLabel: 'gov-form-switch__no-label',\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-form-switch.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/switch/gov-form-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EAAC,eAAe,EAAE,eAAe,EAAsB,MAAM,aAAa,CAAA;AACjF,OAAO,EAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AAGtF,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAA;AACjD,OAAO,QAAQ,MAAM,2BAA2B,CAAA;AAEhD,OAAO,EAAC,iBAAiB,EAAa,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAC,cAAc,EAAC,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAC,qBAAqB,EAAC,MAAM,8CAA8C,CAAC;AAKnF,MAAM,OAAO,aAAa;IASzB;QAFQ,aAAQ,GAAG,KAAK,CAAA;QAcxB;;WAEG;QACqC,YAAO,GAAY,KAAK,CAAA;QAChE;;WAEG;QACmC,YAAO,GAAG,KAAK,CAAA;QACrD;;WAEG;QACc,aAAQ,GAAY,KAAK,CAAA;QAC1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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormSwitchClass, FormSwitchSizes, FormSwitchSizesType} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport {FormSwitchEvent} from \"./gov-form-switch.types\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-form-switch\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly checkboxId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\n\t/**\n\t * Switch button state\n\t */\n\t@Prop({reflect: true, mutable: true}) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop({reflect: true}) readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the switch has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"switch\")\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.passControlAttrs()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst wrapSwitch = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label class={FormSwitchClass.label}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\tconst noLabelSlot = !this.host.querySelector('[slot=\"label\"]');\n\t\tconst hostClasses = `${this.h.classes(FormSwitchClass.root)}${noLabelSlot ? ` ${FormSwitchClass.noLabel}` : ''}`;\n\n\t\treturn (\n\t\t\t<Host class={hostClasses} hydrated={this.hydrated} checked={this.checked}\n\t\t\t\t size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapSwitch(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<span class={FormSwitchClass.indicator}>\n\t\t\t\t\t\t\t\t{this.checked && <gov-icon name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Fragment>,\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"gov-form-switch.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/switch/gov-form-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EAAC,eAAe,EAAE,eAAe,EAAsB,MAAM,aAAa,CAAA;AACjF,OAAO,EAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AAGtF,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAA;AACjD,OAAO,QAAQ,MAAM,2BAA2B,CAAA;AAEhD,OAAO,EAAC,iBAAiB,EAAa,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAC,cAAc,EAAC,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAC,qBAAqB,EAAC,MAAM,8CAA8C,CAAC;AAKnF,MAAM,OAAO,aAAa;IASzB;QAFQ,aAAQ,GAAG,KAAK,CAAA;QAcxB;;WAEG;QACqC,YAAO,GAAY,KAAK,CAAA;QAChE;;WAEG;QACmC,YAAO,GAAG,KAAK,CAAA;QACrD;;WAEG;QACc,aAAQ,GAAY,KAAK,CAAA;QAC1C;;WAEG;QAC6B,aAAQ,GAAY,KAAK,CAAA;QAKzD;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","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"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-form-switch.types.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/switch/gov-form-switch.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../../types/event.types\"\n\nexport interface FormSwitchEvent extends GovBaseEvent {\n\tchecked: boolean,\n\tvalue: string\n}\n"]}
|
|
1
|
+
{"version":3,"file":"gov-form-switch.types.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/switch/gov-form-switch.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../../types/event.types\"\r\n\r\nexport interface FormSwitchEvent extends GovBaseEvent {\r\n\tchecked: boolean,\r\n\tvalue: string\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-grid/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAA;AAG9B,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;CAChB,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,IAAI,EAAE,eAAe;CACrB,CAAA","sourcesContent":["import {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const GridSizes = Sizes\nexport type GridSizesType = `${ValueOf<typeof GridSizes>}`\n\nexport const GridClass = {\n\troot: 'gov-grid',\n}\n\nexport const GridItemClass = {\n\troot: 'gov-grid-item',\n}\n"]}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-grid/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAA;AAG9B,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;CAChB,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,IAAI,EAAE,eAAe;CACrB,CAAA","sourcesContent":["import {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const GridSizes = Sizes\r\nexport type GridSizesType = `${ValueOf<typeof GridSizes>}`\r\n\r\nexport const GridClass = {\r\n\troot: 'gov-grid',\r\n}\r\n\r\nexport const GridItemClass = {\r\n\troot: 'gov-grid-item',\r\n}\r\n"]}
|
|
@@ -14,7 +14,7 @@ export class GovGridItem {
|
|
|
14
14
|
this.h = govHost(this.host);
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: 'f0bd487f13430180ee5ba1ea47b42a96c792a844', class: this.h.classes(GridItemClass.root), role: "listitem" }, h("slot", { key: '31abf23d589818b1f8ca2d7adf527619d470739f' })));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "gov-grid-item"; }
|
|
20
20
|
static get properties() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-grid-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-grid/gov-grid-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAMpD,MAAM,OAAO,WAAW;IAGvB;QAKA;;WAEG;QACuC,WAAM,GAAW,IAAI,CAAC;QAiBhE;;WAEG;QACuC,QAAG,GAAW,GAAG,CAAC;QA3B3D,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IA6CD,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDACJ,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,EACzC,IAAI,EAAC,UAAU;YAEf,8DAAQ,CACF,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridItemClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid-item',\n})\nexport class GovGridItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovGridItemElement\n\t/**\n\t * Cell size as a fraction of 1/12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span' }) readonly column: string = \"12\";\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-sm' }) readonly columnSm?: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-md' }) readonly columnMd?: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-lg' }) readonly columnLg?: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-xl' }) readonly columnXl?: string\n\t/**\n\t * Connects rows in the grid\n\t */\n\t@Prop({ attribute: 'row-span' }) readonly row: string = \"1\";\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-sm' }) readonly rowSm?: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-md' }) readonly rowMd?: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-lg' }) readonly rowLg?: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-xl' }) readonly rowXl?: string\n\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(GridItemClass.root)}\n\t\t\t\trole=\"listitem\"\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"gov-grid-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-grid/gov-grid-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAMpD,MAAM,OAAO,WAAW;IAGvB;QAKA;;WAEG;QACuC,WAAM,GAAW,IAAI,CAAC;QAiBhE;;WAEG;QACuC,QAAG,GAAW,GAAG,CAAC;QA3B3D,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IA6CD,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDACJ,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,EACzC,IAAI,EAAC,UAAU;YAEf,8DAAQ,CACF,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\r\nimport { GridItemClass } 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-grid-item',\r\n})\r\nexport class GovGridItem {\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: HTMLGovGridItemElement\r\n\t/**\r\n\t * Cell size as a fraction of 1/12 of the grid size\r\n\t */\r\n\t@Prop({ attribute: 'col-span' }) readonly column: string = \"12\";\r\n\t/**\r\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\r\n\t */\r\n\t@Prop({ attribute: 'col-span-sm' }) readonly columnSm?: string\r\n\t/**\r\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\r\n\t */\r\n\t@Prop({ attribute: 'col-span-md' }) readonly columnMd?: string\r\n\t/**\r\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\r\n\t */\r\n\t@Prop({ attribute: 'col-span-lg' }) readonly columnLg?: string\r\n\t/**\r\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\r\n\t */\r\n\t@Prop({ attribute: 'col-span-xl' }) readonly columnXl?: string\r\n\t/**\r\n\t * Connects rows in the grid\r\n\t */\r\n\t@Prop({ attribute: 'row-span' }) readonly row: string = \"1\";\r\n\t/**\r\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\r\n\t */\r\n\t@Prop({ attribute: 'row-span-sm' }) readonly rowSm?: string\r\n\t/**\r\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\r\n\t */\r\n\t@Prop({ attribute: 'row-span-md' }) readonly rowMd?: string\r\n\t/**\r\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\r\n\t */\r\n\t@Prop({ attribute: 'row-span-lg' }) readonly rowLg?: string\r\n\t/**\r\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\r\n\t */\r\n\t@Prop({ attribute: 'row-span-xl' }) readonly rowXl?: string\r\n\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tclass={this.h.classes(GridItemClass.root)}\r\n\t\t\t\trole=\"listitem\"\r\n\t\t\t>\r\n\t\t\t\t<slot />\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"]}
|
|
@@ -6,7 +6,7 @@ export class GovGrid {
|
|
|
6
6
|
this.h = govHost(this.host);
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: 'c3ab0c523d11db70b02a8abb75f18199a5a0e5a2', class: this.h.classes(GridClass.root), role: "list" }, h("slot", { key: '98eac108759934ee4dd5b008e988a5761e642b27' })));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "gov-grid"; }
|
|
12
12
|
static get properties() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-grid.js","sourceRoot":"","sources":["../../../../../../src/components/gov-grid/gov-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,SAAS,EAAiB,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAMpD,MAAM,OAAO,OAAO;IAGnB;QACC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAmBD,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,MAAM;YACvD,8DAAa,CACP,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridClass, GridSizesType } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid',\n})\nexport class GovGrid {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Horizontal align of cells\n\t */\n\t@Prop({ attribute: 'align-items', reflect: true }) alignItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * Vertical align of cells\n\t */\n\t@Prop({ attribute: 'justify-items', reflect: true }) justifyItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * The gap property creates consistent spacing between flex items in the container.\n\t */\n\t@Prop({ attribute: 'gap', reflect: true }) gap?: GridSizesType;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(GridClass.root)} role=\"list\">\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"gov-grid.js","sourceRoot":"","sources":["../../../../../../src/components/gov-grid/gov-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,SAAS,EAAiB,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAMpD,MAAM,OAAO,OAAO;IAGnB;QACC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAmBD,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,MAAM;YACvD,8DAAa,CACP,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\r\nimport { GridClass, GridSizesType } 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-grid',\r\n})\r\nexport class GovGrid {\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: HTMLGovGridElement\r\n\r\n\t/**\r\n\t * Horizontal align of cells\r\n\t */\r\n\t@Prop({ attribute: 'align-items', reflect: true }) alignItems?: 'start' | 'center' | 'end' | 'stretch';\r\n\r\n\t/**\r\n\t * Vertical align of cells\r\n\t */\r\n\t@Prop({ attribute: 'justify-items', reflect: true }) justifyItems?: 'start' | 'center' | 'end' | 'stretch';\r\n\r\n\t/**\r\n\t * The gap property creates consistent spacing between flex items in the container.\r\n\t */\r\n\t@Prop({ attribute: 'gap', reflect: true }) gap?: GridSizesType;\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(GridClass.root)} role=\"list\">\r\n\t\t\t\t<slot></slot>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAEjD,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAGtG,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE;IACtC,SAAS;IACT,SAAS;IACT,WAAW;IACX,SAAS;IACT,OAAO;IACP,SAAS;IACT,SAAS;IACT,UAAU;IACV,OAAO;IACP,OAAO;CACP,CAAC,CAAA;AAGF,IAAK,KAIJ;AAJD,WAAK,KAAK;IACT,wBAAe,CAAA;IACf,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;AACpB,CAAC,EAJI,KAAK,KAAL,KAAK,QAIT;AAGD,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,kBAAkB;CAC1B,CAAA","sourcesContent":["import { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils';\nimport { Colors } from '../../core/constants/colors';\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const IconSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL', '_5XL'])\nexport type IconSizesType = `${ValueOf<typeof IconSizes>}`\n\nexport const IconColors = pick(Colors, [\n\t'DEFAULT',\n\t'PRIMARY',\n\t'SECONDARY',\n\t'NEUTRAL',\n\t'ERROR',\n\t'SUCCESS',\n\t'WARNING',\n\t'DISABLED',\n\t'WHITE',\n\t'BLACK',\n])\nexport type IconColorType = `${ValueOf<typeof IconColors>}`\n\nenum Types {\n\tBASIC = 'basic',\n\tCOMPLEX = 'complex',\n\tCOLORED = 'colored',\n}\nexport type Type = `${ValueOf<typeof Types>}`\n\nexport const IconClass = {\n\troot: 'gov-icon',\n\tholder: 'gov-icon__holder',\n}\n"]}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAEjD,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAGtG,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE;IACtC,SAAS;IACT,SAAS;IACT,WAAW;IACX,SAAS;IACT,OAAO;IACP,SAAS;IACT,SAAS;IACT,UAAU;IACV,OAAO;IACP,OAAO;CACP,CAAC,CAAA;AAGF,IAAK,KAIJ;AAJD,WAAK,KAAK;IACT,wBAAe,CAAA;IACf,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;AACpB,CAAC,EAJI,KAAK,KAAL,KAAK,QAIT;AAGD,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,kBAAkB;CAC1B,CAAA","sourcesContent":["import { ValueOf } from '../../types/interfaces'\r\nimport { pick } from '../../utils/utils';\r\nimport { Colors } from '../../core/constants/colors';\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\n\r\nexport const IconSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL', '_5XL'])\r\nexport type IconSizesType = `${ValueOf<typeof IconSizes>}`\r\n\r\nexport const IconColors = pick(Colors, [\r\n\t'DEFAULT',\r\n\t'PRIMARY',\r\n\t'SECONDARY',\r\n\t'NEUTRAL',\r\n\t'ERROR',\r\n\t'SUCCESS',\r\n\t'WARNING',\r\n\t'DISABLED',\r\n\t'WHITE',\r\n\t'BLACK',\r\n])\r\nexport type IconColorType = `${ValueOf<typeof IconColors>}`\r\n\r\nenum Types {\r\n\tBASIC = 'basic',\r\n\tCOMPLEX = 'complex',\r\n\tCOLORED = 'colored',\r\n}\r\nexport type Type = `${ValueOf<typeof Types>}`\r\n\r\nexport const IconClass = {\r\n\troot: 'gov-icon',\r\n\tholder: 'gov-icon__holder',\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-icon.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/gov-icon.tsx"],"names":[],"mappings":"AAAA,OA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jC,CAAC;oBACD,QAAQ,EAAE,CAAA;gBACX,CAAC;YACF,CAAC,CAAC,CAAA;QACH,CAAC,EACD,EAAC,UAAU,EAAE,MAAM,EAAC,CACpB,CAAA;QACD,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC7C,CAAC;IAEO,KAAK,CAAC,QAAQ;QACrB,IAAI,CAAC;YACJ,MAAM,EAAC,IAAI,EAAE,IAAI,EAAC,GAAG,IAAI,CAAA;YACzB,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAA;YAC1C,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;YAChC,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;QAC7C,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACZ,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;YACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QAClB,CAAC;IACF,CAAC;IAED,MAAM;QACL,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,OAAO,IAAI,CAAA;QACZ,CAAC;QACD,OAAO,CACN,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,GAAG,CAClF,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Build, Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {IconClass, IconColors, type IconColorType, IconSizesType} from \"./constants\"\nimport {fetchIcon} from \"../../utils/icon.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {iconsLazyLoad} from \"../../helpers/Dom/win\"\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {isValidSVG} from \"../../helpers/Dom/document\";\n\n@Component({\n\tassetsDirs: [\"assets\"],\n\ttag: \"gov-icon\",\n})\nexport class GovIcon {\n\tprivate h: GovHost\n\tprivate intersectionObserver: IntersectionObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovIconElement\n\t/**\n\t * Icon size\n\t */\n\t@Prop({reflect: true}) readonly size?: IconSizesType\n\t/**\n\t * Icon color\n\t */\n\t@Prop({reflect: true}) readonly color?: IconColorType\n\t/**\n\t * Name of icon in folder\n\t */\n\t@Prop({reflect: true}) name: string = null\n\t/**\n\t * Type (folder) of icon\n\t */\n\t@Prop({reflect: true}) type = \"components\"\n\n\t@State() private visible = false\n\t@State() private error = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(IconColors, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"name\")\n\tprivate async loadIconPathData(): Promise<void> {\n\t\tconst {name, visible} = this\n\t\tif (!Build.isBrowser || !name || !visible) {\n\t\t\treturn\n\t\t}\n\t\tawait this.loadIcon()\n\t}\n\n\tconnectedCallback(): void {\n\t\tif (iconsLazyLoad()) {\n\t\t\tthis.visible = true\n\t\t\tthis.loadIconPathData().finally()\n\t\t} else {\n\t\t\tthis.waitUntilVisible(async () => {\n\t\t\t\tthis.visible = true\n\t\t\t\tawait this.loadIconPathData()\n\t\t\t})\n\t\t}\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tif (this.intersectionObserver) {\n\t\t\tthis.intersectionObserver.disconnect()\n\t\t\tthis.intersectionObserver = null\n\t\t}\n\t}\n\n\tasync componentWillLoad(): Promise<void> {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateColor(this.color)\n\t\tawait this.loadIconPathData()\n\t}\n\n\tprivate waitUntilVisible(callback: () => void): void {\n\t\tif (!Build.isBrowser || typeof window === \"undefined\" || !(window as any).IntersectionObserver) {\n\t\t\tcallback()\n\t\t\treturn\n\t\t}\n\t\tthis.intersectionObserver = new IntersectionObserver(\n\t\t\tentries => {\n\t\t\t\tentries.forEach(entry => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tif (this.intersectionObserver) {\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\n\t\t\t\t\t\t\tthis.intersectionObserver = null\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcallback()\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t{rootMargin: \"50px\"},\n\t\t)\n\t\tthis.intersectionObserver.observe(this.host)\n\t}\n\n\tprivate async loadIcon() {\n\t\ttry {\n\t\t\tconst {name, type} = this\n\t\t\tconst data = await fetchIcon({name, type})\n\t\t\tconst isValid = isValidSVG(data)\n\t\t\tthis.host.innerHTML = isValid ? data : null;\n\t\t} catch (e) {\n\t\t\tthis.host.innerHTML = ''\n\t\t\tthis.error = true\n\t\t}\n\t}\n\n\trender() {\n\t\tif (this.error) {\n\t\t\treturn null\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(IconClass.root)} size={this.size} color={this.color}/>\n\t\t)\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"gov-icon.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/gov-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAA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CAAA;QACD,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC7C,CAAC;IAEO,KAAK,CAAC,QAAQ;QACrB,IAAI,CAAC;YACJ,MAAM,EAAC,IAAI,EAAE,IAAI,EAAC,GAAG,IAAI,CAAA;YACzB,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAA;YAC1C,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;YAChC,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;QAC7C,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACZ,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;YACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QAClB,CAAC;IACF,CAAC;IAED,MAAM;QACL,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,OAAO,IAAI,CAAA;QACZ,CAAC;QACD,OAAO,CACN,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,GAAG,CAClF,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Build, Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\r\nimport {IconClass, IconColors, type IconColorType, IconSizesType} from \"./constants\"\r\nimport {fetchIcon} from \"../../utils/icon.utils\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {iconsLazyLoad} from \"../../helpers/Dom/win\"\r\nimport {validateProp} from \"../../helpers/Validate/props\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {isValidSVG} from \"../../helpers/Dom/document\";\r\n\r\n@Component({\r\n\tassetsDirs: [\"assets\"],\r\n\ttag: \"gov-icon\",\r\n})\r\nexport class GovIcon {\r\n\tprivate h: GovHost\r\n\tprivate intersectionObserver: IntersectionObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovIconElement\r\n\t/**\r\n\t * Icon size\r\n\t */\r\n\t@Prop({reflect: true}) readonly size?: IconSizesType\r\n\t/**\r\n\t * Icon color\r\n\t */\r\n\t@Prop({reflect: true}) readonly color?: IconColorType\r\n\t/**\r\n\t * Name of icon in folder\r\n\t */\r\n\t@Prop({reflect: true}) name: string = null\r\n\t/**\r\n\t * Type (folder) of icon\r\n\t */\r\n\t@Prop({reflect: true}) type = \"components\"\r\n\r\n\t@State() private visible = false\r\n\t@State() private error = false\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(Sizes, newValue, IconClass.root)\r\n\t}\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(IconColors, newValue, IconClass.root)\r\n\t}\r\n\r\n\t@Watch(\"name\")\r\n\tprivate async loadIconPathData(): Promise<void> {\r\n\t\tconst {name, visible} = this\r\n\t\tif (!Build.isBrowser || !name || !visible) {\r\n\t\t\treturn\r\n\t\t}\r\n\t\tawait this.loadIcon()\r\n\t}\r\n\r\n\tconnectedCallback(): void {\r\n\t\tif (iconsLazyLoad()) {\r\n\t\t\tthis.visible = true\r\n\t\t\tthis.loadIconPathData().finally()\r\n\t\t} else {\r\n\t\t\tthis.waitUntilVisible(async () => {\r\n\t\t\t\tthis.visible = true\r\n\t\t\t\tawait this.loadIconPathData()\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tdisconnectedCallback(): void {\r\n\t\tif (this.intersectionObserver) {\r\n\t\t\tthis.intersectionObserver.disconnect()\r\n\t\t\tthis.intersectionObserver = null\r\n\t\t}\r\n\t}\r\n\r\n\tasync componentWillLoad(): Promise<void> {\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.validateColor(this.color)\r\n\t\tawait this.loadIconPathData()\r\n\t}\r\n\r\n\tprivate waitUntilVisible(callback: () => void): void {\r\n\t\tif (!Build.isBrowser || typeof window === \"undefined\" || !(window as any).IntersectionObserver) {\r\n\t\t\tcallback()\r\n\t\t\treturn\r\n\t\t}\r\n\t\tthis.intersectionObserver = new IntersectionObserver(\r\n\t\t\tentries => {\r\n\t\t\t\tentries.forEach(entry => {\r\n\t\t\t\t\tif (entry.isIntersecting) {\r\n\t\t\t\t\t\tif (this.intersectionObserver) {\r\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\r\n\t\t\t\t\t\t\tthis.intersectionObserver = null\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcallback()\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t{rootMargin: \"50px\"},\r\n\t\t)\r\n\t\tthis.intersectionObserver.observe(this.host)\r\n\t}\r\n\r\n\tprivate async loadIcon() {\r\n\t\ttry {\r\n\t\t\tconst {name, type} = this\r\n\t\t\tconst data = await fetchIcon({name, type})\r\n\t\t\tconst isValid = isValidSVG(data)\r\n\t\t\tthis.host.innerHTML = isValid ? data : null;\r\n\t\t} catch (e) {\r\n\t\t\tthis.host.innerHTML = ''\r\n\t\t\tthis.error = true\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tif (this.error) {\r\n\t\t\treturn null\r\n\t\t}\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(IconClass.root)} size={this.size} color={this.color}/>\r\n\t\t)\r\n\t}\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/helpers.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAa,EAAsB,EAAE;IACtE,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;QAC/C,MAAM,YAAY,GAAG,oBAAoB,CAAC;QAC1C,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC9B,OAAO;gBACN,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;gBACb,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;aACb,CAAA;QACF,CAAC;IACF,CAAC;IACD,OAAO,IAAI,CAAA;AACZ,CAAC,CAAA","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"]}
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/helpers.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAa,EAAsB,EAAE;IACtE,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;QAC/C,MAAM,YAAY,GAAG,oBAAoB,CAAC;QAC1C,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC9B,OAAO;gBACN,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;gBACb,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;aACb,CAAA;QACF,CAAC;IACF,CAAC;IACD,OAAO,IAAI,CAAA;AACZ,CAAC,CAAA","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"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/list.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,cAAc;IACd,kBAAkB;IAClB,uBAAuB;IACvB,qBAAqB;IACrB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,uBAAuB;IACvB,eAAe;IACf,uBAAuB;IACvB,mBAAmB;IACnB,iBAAiB;IACjB,eAAe;IACf,eAAe;IACf,iBAAiB;IACjB,oBAAoB;IACpB,uBAAuB;IACvB,wBAAwB;IACxB,sBAAsB;IACtB,4BAA4B;IAC5B,qBAAqB;IACrB,yBAAyB;IACzB,sBAAsB;IACtB,oBAAoB;IACpB,oBAAoB;IACpB,sBAAsB;IACtB,qBAAqB;IACrB,2BAA2B;IAC3B,sBAAsB;IACtB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aAAa;IACb,oBAAoB;IACpB,cAAc;IACd,mBAAmB;IACnB,oBAAoB;IACpB,iBAAiB;CACjB,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,iBAAiB;IACjB,sBAAsB;IACtB,+BAA+B;IAC/B,6BAA6B;IAC7B,qBAAqB;IACrB,gCAAgC;IAChC,iCAAiC;IACjC,yBAAyB;IACzB,yBAAyB;IACzB,0BAA0B;IAC1B,uBAAuB;IACvB,iBAAiB;IACjB,oBAAoB;IACpB,qBAAqB;IACrB,0BAA0B;IAC1B,2BAA2B;IAC3B,sCAAsC;IACtC,gBAAgB;IAChB,iBAAiB;IACjB,yBAAyB;IACzB,4BAA4B;IAC5B,6BAA6B;IAC7B,wBAAwB;IACxB,iBAAiB;IACjB,2BAA2B;IAC3B,iBAAiB;IACjB,mBAAmB;IACnB,iBAAiB;IACjB,mBAAmB;IACnB,sBAAsB;IACtB,gBAAgB;IAChB,sBAAsB;IACtB,sBAAsB;IACtB,mBAAmB;IACnB,iBAAiB;IACjB,cAAc;CACd,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAG,YAAY,EAAE,GAAG,eAAe,CAAC,CAAA","sourcesContent":["export const complexIcons = [\n\t'complex/24-7',\n\t'complex/all',\n\t'complex/arrival',\n\t'complex/bell',\n\t'complex/big-help',\n\t'complex/business-file',\n\t'complex/businessman',\n\t'complex/cactus',\n\t'complex/camera',\n\t'complex/car',\n\t'complex/card-400',\n\t'complex/card-401',\n\t'complex/card-403',\n\t'complex/card-404',\n\t'complex/card-500',\n\t'complex/card-502',\n\t'complex/certification',\n\t'complex/coins',\n\t'complex/communication',\n\t'complex/confusion',\n\t'complex/contact',\n\t'complex/court',\n\t'complex/covid',\n\t'complex/digital',\n\t'complex/disability',\n\t'complex/doc-agreement',\n\t'complex/doc-basic-info',\n\t'complex/doc-business',\n\t'complex/doc-car-point-list',\n\t'complex/doc-diploma',\n\t'complex/doc-driver-info',\n\t'complex/doc-election',\n\t'complex/doc-filled',\n\t'complex/doc-health',\n\t'complex/doc-judgment',\n\t'complex/doc-patient',\n\t'complex/doc-personal-info',\n\t'complex/doc-petition',\n\t'complex/doc-registers',\n\t'complex/doc-review',\n\t'complex/doc-search',\n\t'complex/doc-stamp',\n\t'complex/doc-state',\n\t'complex/doc-taxes',\n\t'complex/documents',\n\t'complex/doc-universal',\n\t'complex/doc-visa',\n\t'complex/driver',\n\t'complex/driver-file',\n\t'complex/driving-licence',\n\t'complex/email-notification',\n\t'complex/energy',\n\t'complex/envelope',\n\t'complex/european-parliament',\n\t'complex/family',\n\t'complex/globe',\n\t'complex/graduate',\n\t'complex/hand',\n\t'complex/hand-400',\n\t'complex/hand-401',\n\t'complex/hand-403',\n\t'complex/hand-404',\n\t'complex/hand-500',\n\t'complex/hand-502',\n\t'complex/health',\n\t'complex/healthcare',\n\t'complex/help',\n\t'complex/history',\n\t'complex/holiday',\n\t'complex/hourglass',\n\t'complex/house',\n\t'complex/chamber-deputies',\n\t'complex/chamber-deputies-200',\n\t'complex/chamber-deputies-cr',\n\t'complex/chat',\n\t'complex/cities',\n\t'complex/city-office',\n\t'complex/id',\n\t'complex/id-card',\n\t'complex/id-info',\n\t'complex/illness',\n\t'complex/incognito',\n\t'complex/info',\n\t'complex/info-list',\n\t'complex/institute-file',\n\t'complex/institution',\n\t'complex/job',\n\t'complex/job-loss',\n\t'complex/map',\n\t'complex/mobile-phone',\n\t'complex/mouse',\n\t'complex/my-filing',\n\t'complex/my-state-data',\n\t'complex/newborn',\n\t'complex/new-comments',\n\t'complex/news',\n\t'complex/packet',\n\t'complex/passport',\n\t'complex/personal-file',\n\t'complex/pet',\n\t'complex/petrol-station',\n\t'complex/pills',\n\t'complex/population-register',\n\t'complex/portal',\n\t'complex/pregnant',\n\t'complex/president',\n\t'complex/presidential-election',\n\t'complex/profile-settings',\n\t'complex/property',\n\t'complex/queue',\n\t'complex/quotes',\n\t'complex/region',\n\t'complex/regional-elections',\n\t'complex/regional-elections-clear',\n\t'complex/register-of-persons',\n\t'complex/remove-id',\n\t'complex/retiree',\n\t'complex/rings',\n\t'complex/secured',\n\t'complex/secured-phone',\n\t'complex/senate',\n\t'complex/senate-81',\n\t'complex/senior',\n\t'complex/settings',\n\t'complex/simple-envelope',\n\t'complex/sms-notification',\n\t'complex/sos',\n\t'complex/state-file',\n\t'complex/time',\n\t'complex/tombstone',\n\t'complex/user-login',\n\t'complex/vaccine',\n]\n\nexport const componentsIcons = [\n\t'components/book',\n\t'components/bookmarks',\n\t'components/box-arrow-up-right',\n\t'components/caret-right-fill',\n\t'components/check-lg',\n\t'components/chevron-double-left',\n\t'components/chevron-double-right',\n\t'components/chevron-down',\n\t'components/chevron-left',\n\t'components/chevron-right',\n\t'components/chevron-up',\n\t'components/copy',\n\t'components/dash-lg',\n\t'components/download',\n\t'components/envelope-fill',\n\t'components/exclamation-lg',\n\t'components/exclamation-triangle-fill',\n\t'components/eye',\n\t'components/gear',\n\t'components/geo-alt-fill',\n\t'components/house-door-fill',\n\t'components/info-circle-fill',\n\t'components/info-circle',\n\t'components/info',\n\t'components/lightbulb-fill',\n\t'components/list',\n\t'components/loader',\n\t'components/moon',\n\t'components/search',\n\t'components/star-fill',\n\t'components/sun',\n\t'components/telephone',\n\t'components/twitter-x',\n\t'components/upload',\n\t'components/x-lg',\n\t'components/x',\n]\n\nexport const icons = [...complexIcons, ...componentsIcons]\n"]}
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/list.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,cAAc;IACd,kBAAkB;IAClB,uBAAuB;IACvB,qBAAqB;IACrB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,uBAAuB;IACvB,eA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nB,+BAA+B;IAC/B,0BAA0B;IAC1B,kBAAkB;IAClB,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,4BAA4B;IAC5B,kCAAkC;IAClC,6BAA6B;IAC7B,mBAAmB;IACnB,iBAAiB;IACjB,eAAe;IACf,iBAAiB;IACjB,uBAAuB;IACvB,gBAAgB;IAChB,mBAAmB;IACnB,gBAAgB;IAChB,kBAAkB;IAClB,yBAAyB;IACzB,0BAA0B;IAC1B,aAAa;IACb,oBAAoB;IACpB,cAAc;IACd,mBAAmB;IACnB,oBAAoB;IACpB,iBAAiB;CACjB,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,iBAAiB;IACjB,sBAAsB;IACtB,+BAA+B;IAC/B,6BAA6B;IAC7B,qBAAqB;IACrB,gCAAgC;IAChC,iCAAiC;IACjC,yBAAyB;IACzB,yBAAyB;IACzB,0BAA0B;IAC1B,uBAAuB;IACvB,iBAAiB;IACjB,oBAAoB;IACpB,qBAAqB;IACrB,0BAA0B;IAC1B,2BAA2B;IAC3B,sCAAsC;IACtC,gBAAgB;IAChB,iBAAiB;IACjB,yBAAyB;IACzB,4BAA4B;IAC5B,6BAA6B;IAC7B,wBAAwB;IACxB,iBAAiB;IACjB,2BAA2B;IAC3B,iBAAiB;IACjB,mBAAmB;IACnB,iBAAiB;IACjB,mBAAmB;IACnB,sBAAsB;IACtB,gBAAgB;IAChB,sBAAsB;IACtB,sBAAsB;IACtB,mBAAmB;IACnB,iBAAiB;IACjB,cAAc;CACd,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAG,YAAY,EAAE,GAAG,eAAe,CAAC,CAAA","sourcesContent":["export const complexIcons = [\r\n\t'complex/24-7',\r\n\t'complex/all',\r\n\t'complex/arrival',\r\n\t'complex/bell',\r\n\t'complex/big-help',\r\n\t'complex/business-file',\r\n\t'complex/businessman',\r\n\t'complex/cactus',\r\n\t'complex/camera',\r\n\t'complex/car',\r\n\t'complex/card-400',\r\n\t'complex/card-401',\r\n\t'complex/card-403',\r\n\t'complex/card-404',\r\n\t'complex/card-500',\r\n\t'complex/card-502',\r\n\t'complex/certification',\r\n\t'complex/coins',\r\n\t'complex/communication',\r\n\t'complex/confusion',\r\n\t'complex/contact',\r\n\t'complex/court',\r\n\t'complex/covid',\r\n\t'complex/digital',\r\n\t'complex/disability',\r\n\t'complex/doc-agreement',\r\n\t'complex/doc-basic-info',\r\n\t'complex/doc-business',\r\n\t'complex/doc-car-point-list',\r\n\t'complex/doc-diploma',\r\n\t'complex/doc-driver-info',\r\n\t'complex/doc-election',\r\n\t'complex/doc-filled',\r\n\t'complex/doc-health',\r\n\t'complex/doc-judgment',\r\n\t'complex/doc-patient',\r\n\t'complex/doc-personal-info',\r\n\t'complex/doc-petition',\r\n\t'complex/doc-registers',\r\n\t'complex/doc-review',\r\n\t'complex/doc-search',\r\n\t'complex/doc-stamp',\r\n\t'complex/doc-state',\r\n\t'complex/doc-taxes',\r\n\t'complex/documents',\r\n\t'complex/doc-universal',\r\n\t'complex/doc-visa',\r\n\t'complex/driver',\r\n\t'complex/driver-file',\r\n\t'complex/driving-licence',\r\n\t'complex/email-notification',\r\n\t'complex/energy',\r\n\t'complex/envelope',\r\n\t'complex/european-parliament',\r\n\t'complex/family',\r\n\t'complex/globe',\r\n\t'complex/graduate',\r\n\t'complex/hand',\r\n\t'complex/hand-400',\r\n\t'complex/hand-401',\r\n\t'complex/hand-403',\r\n\t'complex/hand-404',\r\n\t'complex/hand-500',\r\n\t'complex/hand-502',\r\n\t'complex/health',\r\n\t'complex/healthcare',\r\n\t'complex/help',\r\n\t'complex/history',\r\n\t'complex/holiday',\r\n\t'complex/hourglass',\r\n\t'complex/house',\r\n\t'complex/chamber-deputies',\r\n\t'complex/chamber-deputies-200',\r\n\t'complex/chamber-deputies-cr',\r\n\t'complex/chat',\r\n\t'complex/cities',\r\n\t'complex/city-office',\r\n\t'complex/id',\r\n\t'complex/id-card',\r\n\t'complex/id-info',\r\n\t'complex/illness',\r\n\t'complex/incognito',\r\n\t'complex/info',\r\n\t'complex/info-list',\r\n\t'complex/institute-file',\r\n\t'complex/institution',\r\n\t'complex/job',\r\n\t'complex/job-loss',\r\n\t'complex/map',\r\n\t'complex/mobile-phone',\r\n\t'complex/mouse',\r\n\t'complex/my-filing',\r\n\t'complex/my-state-data',\r\n\t'complex/newborn',\r\n\t'complex/new-comments',\r\n\t'complex/news',\r\n\t'complex/packet',\r\n\t'complex/passport',\r\n\t'complex/personal-file',\r\n\t'complex/pet',\r\n\t'complex/petrol-station',\r\n\t'complex/pills',\r\n\t'complex/population-register',\r\n\t'complex/portal',\r\n\t'complex/pregnant',\r\n\t'complex/president',\r\n\t'complex/presidential-election',\r\n\t'complex/profile-settings',\r\n\t'complex/property',\r\n\t'complex/queue',\r\n\t'complex/quotes',\r\n\t'complex/region',\r\n\t'complex/regional-elections',\r\n\t'complex/regional-elections-clear',\r\n\t'complex/register-of-persons',\r\n\t'complex/remove-id',\r\n\t'complex/retiree',\r\n\t'complex/rings',\r\n\t'complex/secured',\r\n\t'complex/secured-phone',\r\n\t'complex/senate',\r\n\t'complex/senate-81',\r\n\t'complex/senior',\r\n\t'complex/settings',\r\n\t'complex/simple-envelope',\r\n\t'complex/sms-notification',\r\n\t'complex/sos',\r\n\t'complex/state-file',\r\n\t'complex/time',\r\n\t'complex/tombstone',\r\n\t'complex/user-login',\r\n\t'complex/vaccine',\r\n]\r\n\r\nexport const componentsIcons = [\r\n\t'components/book',\r\n\t'components/bookmarks',\r\n\t'components/box-arrow-up-right',\r\n\t'components/caret-right-fill',\r\n\t'components/check-lg',\r\n\t'components/chevron-double-left',\r\n\t'components/chevron-double-right',\r\n\t'components/chevron-down',\r\n\t'components/chevron-left',\r\n\t'components/chevron-right',\r\n\t'components/chevron-up',\r\n\t'components/copy',\r\n\t'components/dash-lg',\r\n\t'components/download',\r\n\t'components/envelope-fill',\r\n\t'components/exclamation-lg',\r\n\t'components/exclamation-triangle-fill',\r\n\t'components/eye',\r\n\t'components/gear',\r\n\t'components/geo-alt-fill',\r\n\t'components/house-door-fill',\r\n\t'components/info-circle-fill',\r\n\t'components/info-circle',\r\n\t'components/info',\r\n\t'components/lightbulb-fill',\r\n\t'components/list',\r\n\t'components/loader',\r\n\t'components/moon',\r\n\t'components/search',\r\n\t'components/star-fill',\r\n\t'components/sun',\r\n\t'components/telephone',\r\n\t'components/twitter-x',\r\n\t'components/upload',\r\n\t'components/x-lg',\r\n\t'components/x',\r\n]\r\n\r\nexport const icons = [...complexIcons, ...componentsIcons]\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-infobar/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAGxC,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAG7G,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AAClB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAGD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,sBAAsB;IAC/B,QAAQ,EAAE,uBAAuB;IACjC,KAAK,EAAE,oBAAoB;CAC3B,CAAA","sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\n\nexport enum InfobarType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n"]}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-infobar/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAGxC,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAG7G,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AAClB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAGD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,sBAAsB;IAC/B,QAAQ,EAAE,uBAAuB;IACjC,KAAK,EAAE,oBAAoB;CAC3B,CAAA","sourcesContent":["import { Colors } from '../../core/constants/colors'\r\nimport { pick } from '../../utils/utils'\r\nimport { ValueOf } from '../../types/interfaces'\r\n\r\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\r\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\r\n\r\nexport enum InfobarType {\r\n\tBOLD = 'bold',\r\n\tSUBTLE = 'subtle',\r\n}\r\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\r\n\r\nexport const InfobarClass = {\r\n\troot: 'gov-infobar',\r\n\tsection: 'gov-infobar__section',\r\n\tcontent: 'gov-infobar__content',\r\n\theadline: 'gov-infobar__headline',\r\n\tclose: 'gov-infobar__close',\r\n}\r\n"]}
|
|
@@ -62,8 +62,8 @@ export class GovInfobar {
|
|
|
62
62
|
this.hydrated = true;
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
const closeButton = (h("gov-button", { key: '
|
|
66
|
-
return (h(Host, { key: '
|
|
65
|
+
const closeButton = (h("gov-button", { key: 'aaaf43a5b48ccded5f30061b7b6dfd09da11e970', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, h("gov-icon", { key: '3f4f5c3b15842ff258035badfbf9286dacdba8b5', name: "x-lg", type: "components" })));
|
|
66
|
+
return (h(Host, { key: '7d52bcf1a541c5c536755a16e13dd66209d7ba98', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type, hydrated: this.hydrated }, h("section", Object.assign({ key: 'e52815b07de6e3fae05bb4429ab925300fde0a50', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), this.h.hasSlot("icon") && (h("span", { key: 'd1424933f1f122693d45803eb500aff8c7b45dd7' }, h("slot", { key: '94ab048d5e2e506773402a55d399f3c315307153', name: "icon" }))), h("div", { key: 'b59bbe4b7516d0b4e96e19618613d9e82551cd39', class: InfobarClass.content }, this.h.hasSlot('headline') ? (h(Fragment, null, h("div", { class: InfobarClass.headline }, h("slot", { name: "headline" }), h("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), h("div", { hidden: !this.toggleContent, "aria-hidden": toBoolAttr(this.toggleContent) }, h("slot", null)))) : (h("slot", null))), this.closable && closeButton)));
|
|
67
67
|
}
|
|
68
68
|
onCloseHandler(e) {
|
|
69
69
|
this.govClose.emit({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-infobar.js","sourceRoot":"","sources":["../../../../../../src/components/gov-infobar/gov-infobar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAClG,OAAO,EAAC,OAAO,EAAE,UAAU,EAAC,MAAM,4BAA4B,CAAA;AAE9D,OAAO,QAAQ,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAA;AAEzD,OAAO,EAAY,YAAY,EAAE,aAAa,EAAmB,MAAM,aAAa,CAAA;AAEpF,OAAO,EAAC,iBAAiB,EAAa,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAC,cAAc,EAAC,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAC,qBAAqB,EAAC,MAAM,2CAA2C,CAAC;AAKhF,MAAM,OAAO,UAAU;IAMtB;QAFQ,aAAQ,GAAG,KAAK,CAAA;QAQxB;;WAEG;QACc,UAAK,GAAc,SAAS,CAAA;QAC7C;;WAEG;QACc,SAAI,GAAsB,MAAM,CAAA;QACjD;;WAEG;QACc,SAAI,GAAwB,SAAS,CAAA;QACtD;;WAEG;QACmD,yBAAoB,GAAW,yBAAyB,CAAA;QAC9G;;WAEG;QACoD,0BAAqB,GAAW,yBAAyB,CAAA;QAKhH;;WAEG;QACc,aAAQ,GAAa,KAAK,CAAA;QAElC,kBAAa,GAAG,KAAK,CAAA;QACrB,wBAAmB,GAAe,EAAE,CAAA;QAnC5C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAqCD,aAAa,CAAC,QAAgB;QAC7B,YAAY,CAAC,aAAa,EAAE,QAAQ,EAA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I;gBACL,IAAI,CAAC,QAAQ,IAAI,WAAW,CACpB,CACJ,CACP,CAAA;IACF,CAAC;IAED,cAAc,CAAC,CAA2B;QACzC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAClB,SAAS,EAAE,YAAY,CAAC,IAAI;YAC5B,GAAG,EAAE,IAAI,CAAC,IAAI;YACd,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;IACH,CAAC;IAED,IAAI,MAAM;QACT,OAAO,IAAI,CAAC,IAAI,KAAK,MAAM,CAAA;IAC5B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type} hydrated={this.hydrated}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'} type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"gov-infobar.js","sourceRoot":"","sources":["../../../../../../src/components/gov-infobar/gov-infobar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAClG,OAAO,EAAC,OAAO,EAAE,UAAU,EAAC,MAAM,4BAA4B,CAAA;AAE9D,OAAO,QAAQ,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAA;AAEzD,OAAO,EAAY,YAAY,EAAE,aAAa,EAAmB,MAAM,aAAa,CAAA;AAEpF,OAAO,EAAC,iBAAiB,EAAa,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAC,cAAc,EAAC,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAC,qBAAqB,EAAC,MAAM,2CAA2C,CAAC;AAKhF,MAAM,OAAO,UAAU;IAMtB;QAFQ,aAAQ,GAAG,KAAK,CAAA;QAQxB;;WAEG;QACc,UAAK,GAAc,SAAS,CAAA;QAC7C;;WAEG;QACc,SAAI,GAAsB,MAAM,CAAA;QACjD;;WAEG;QACc,SAAI,GAAwB,SAAS,CAAA;QACtD;;WAEG;QACmD,yBAAoB,GAAW,yBAAyB,CAAA;QAC9G;;WAEG;QACoD,0BAAqB,GAAW,yBAAyB,CAAA;QAKhH;;WAEG;QACc,aAAQ,GAAa,KAAK,CAAA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CAAC,CAAC,cAAc,EAAE,IAAI,EAAC,YAAY,GAAY,CACrF,CACR;oBACN,WAAK,MAAM,EAAE,CAAC,IAAI,CAAC,aAAa,iBAAe,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC;wBAC5E,eAAO,CACF,CACI,CACX,CAAC,CAAC,CAAC,CACH,eAAO,CACP,CACI;gBACL,IAAI,CAAC,QAAQ,IAAI,WAAW,CACpB,CACJ,CACP,CAAA;IACF,CAAC;IAED,cAAc,CAAC,CAA2B;QACzC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAClB,SAAS,EAAE,YAAY,CAAC,IAAI;YAC5B,GAAG,EAAE,IAAI,CAAC,IAAI;YACd,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;IACH,CAAC;IAED,IAAI,MAAM;QACT,OAAO,IAAI,CAAC,IAAI,KAAK,MAAM,CAAA;IAC5B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\r\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\nimport Fragment from '../../helpers/Fragment'\r\nimport {validateProp} from '../../helpers/Validate/props'\r\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\r\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\r\nimport {InfobarEvent} from './gov-infobar.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-infobar',\r\n})\r\nexport class GovInfobar {\r\n\tprivate h: GovHost\r\n\tprivate attributeObserver: AttributeObserver\r\n\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() host: HTMLGovInfobarElement\r\n\r\n\t/**\r\n\t * Style variation of the button.\r\n\t */\r\n\t@Prop() readonly color: ColorType = 'primary'\r\n\t/**\r\n\t * Infobar appearance\r\n\t */\r\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\r\n\t/**\r\n\t * Style variation of the button.\r\n\t */\r\n\t@Prop() readonly role: HTMLElement['role'] = undefined\r\n\t/**\r\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\r\n\t */\r\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\r\n\t/**\r\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\r\n\t */\r\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\r\n\t/**\r\n\t * Called when the close button is clicked\r\n\t */\r\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\r\n\t/**\r\n\t * Displays the option to close the infobar\r\n\t */\r\n\t@Prop() readonly closable?: boolean = false\r\n\r\n\t@State() toggleContent = false\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\t@Watch('color')\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.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(): void {\r\n\t\tthis.validateColor(this.color)\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\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\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst closeButton = (\r\n\t\t\t<gov-button size=\"s\"\r\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\r\n\t\t\t\t\t\ttype=\"base\"\r\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\r\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\r\n\t\t\t\t\t\tclass={InfobarClass.close}>\r\n\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\r\n\t\t\t</gov-button>\r\n\t\t)\r\n\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type} hydrated={this.hydrated}>\r\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\r\n\t\t\t\t\t{this.h.hasSlot(\"icon\") && (\r\n\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t<div class={InfobarClass.content}>\r\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\r\n\t\t\t\t\t\t\t<Fragment>\r\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\r\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\r\n\t\t\t\t\t\t\t\t\t<gov-button\r\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\r\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\r\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\r\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\r\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'} type=\"components\"></gov-icon>\r\n\t\t\t\t\t\t\t\t\t</gov-button>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\r\n\t\t\t\t\t\t\t\t\t<slot/>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</Fragment>\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t<slot/>\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t{this.closable && closeButton}\r\n\t\t\t\t</section>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\r\n\t\tthis.govClose.emit({\r\n\t\t\tcomponent: InfobarClass.root,\r\n\t\t\tref: this.host,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tget isBold(): boolean {\r\n\t\treturn this.type === \"bold\"\r\n\t}\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-infobar.types.js","sourceRoot":"","sources":["../../../../../../src/components/gov-infobar/gov-infobar.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../types/event.types\"\n\nexport interface InfobarEvent extends GovBaseEvent {\n\tref: HTMLGovInfobarElement\n}\n\n"]}
|
|
1
|
+
{"version":3,"file":"gov-infobar.types.js","sourceRoot":"","sources":["../../../../../../src/components/gov-infobar/gov-infobar.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../types/event.types\"\r\n\r\nexport interface InfobarEvent extends GovBaseEvent {\r\n\tref: HTMLGovInfobarElement\r\n}\r\n\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-layout/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,qBAAqB;CAC9B,CAAA;AAED,IAAK,WAIJ;AAJD,WAAK,WAAW;IACf,kCAAmB,CAAA;IACnB,8BAAe,CAAA;IACf,4BAAa,CAAA;AACd,CAAC,EAJI,WAAW,KAAX,WAAW,QAIf;AAGD,IAAK,aAGJ;AAHD,WAAK,aAAa;IACjB,8BAAa,CAAA;IACb,gCAAe,CAAA;AAChB,CAAC,EAHI,aAAa,KAAb,aAAa,QAGjB;AAID,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC,IAAI,EAAE,mBAAmB;CACzB,CAAA","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"]}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-layout/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,qBAAqB;CAC9B,CAAA;AAED,IAAK,WAIJ;AAJD,WAAK,WAAW;IACf,kCAAmB,CAAA;IACnB,8BAAe,CAAA;IACf,4BAAa,CAAA;AACd,CAAC,EAJI,WAAW,KAAX,WAAW,QAIf;AAGD,IAAK,aAGJ;AAHD,WAAK,aAAa;IACjB,8BAAa,CAAA;IACb,gCAAe,CAAA;AAChB,CAAC,EAHI,aAAa,KAAb,aAAa,QAGjB;AAID,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC,IAAI,EAAE,mBAAmB;CACzB,CAAA","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"]}
|
|
@@ -6,7 +6,7 @@ export class GovLayoutColumn {
|
|
|
6
6
|
this.h = govHost(this.host);
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: '31bb2635262a61c69776cce49de189302c53b5fa', class: this.h.classes(LayoutColumnClass.root) }, h("slot", { key: '99244dabacca9f48252bc506e26ae57b0f6f93bb' })));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "gov-layout-column"; }
|
|
12
12
|
static get elementRef() { return "host"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-layout-column.js","sourceRoot":"","sources":["../../../../../../src/components/gov-layout/gov-layout-column.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAMpD,MAAM,OAAO,eAAe;IAG3B;QACC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAID,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC;YAClD,8DAAQ,CACF,CACP,CAAA;IACF,CAAC;;;CACD","sourcesContent":["import { Component, Element, h, Host } from '@stencil/core'\nimport { LayoutColumnClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-layout-column',\n})\nexport class GovLayoutColumn {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovLayoutColumnElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LayoutColumnClass.root)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"gov-layout-column.js","sourceRoot":"","sources":["../../../../../../src/components/gov-layout/gov-layout-column.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAMpD,MAAM,OAAO,eAAe;IAG3B;QACC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAID,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC;YAClD,8DAAQ,CACF,CACP,CAAA;IACF,CAAC;;;CACD","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"]}
|
|
@@ -20,7 +20,7 @@ export class GovLayout {
|
|
|
20
20
|
return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '1a034fd2efc16f8ec93aa5a7d482b30674b14cc4', type: this.type, class: this.h.classes(LayoutClass.root) }, h("section", { key: 'af904b136b68d778d5c687e654a4172a8c08fc92', class: this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse) }, h("slot", { key: 'b867248fdb072fc3999406d6113bdc435cce78fc' }))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "gov-layout"; }
|
|
26
26
|
static get properties() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-layout.js","sourceRoot":"","sources":["../../../../../../src/components/gov-layout/gov-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,WAAW,EAAiC,MAAM,aAAa,CAAA;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKpD,MAAM,OAAO,SAAS;IAGrB;QAKA;;WAEG;QACc,SAAI,GAAgB,SAAS,CAAA;QAK9C;;WAEG;QACc,YAAO,GAAY,KAAK,CAAA;QAfxC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAgBO,SAAS,CAAC,aAAqB,EAAE,IAAY,EAAE,OAAe,EAAE,OAAgB;QACvF,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,CAAA;QACrC,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAA;QAC9C,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAA;QAC3C,OAAO,aAAa,GAAG,GAAG,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;IAC5E,CAAC;IAED,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC;YAC7D,gEAAS,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;gBACzF,8DAAQ,CACC,CACJ,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { LayoutClass, LayoutType, LayoutVariantType } from './constants'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { govHost } from '../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-layout',\n})\nexport class GovLayout {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLayoutElement\n\t/**\n\t * Layout type\n\t */\n\t@Prop() readonly type?: LayoutType = 'stretch'\n\t/**\n\t * Layout align\n\t */\n\t@Prop() readonly variant?: LayoutVariantType\n\t/**\n\t * Determine if component should have inverse column order\n\t */\n\t@Prop() readonly inverse: boolean = false\n\n\tprivate typeClass(originalClass: string, type: string, variant: string, inverse: boolean) {\n\t\tconst isType = type ? '-' + type : ''\n\t\tconst isVariant = variant ? '-' + variant : ''\n\t\tconst isInverse = inverse ? '-inverse' : ''\n\t\treturn originalClass + ' ' + originalClass + isType + isVariant + isInverse\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host type={this.type} class={this.h.classes(LayoutClass.root)}>\n\t\t\t\t<section class={this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse)}>\n\t\t\t\t\t<slot />\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"gov-layout.js","sourceRoot":"","sources":["../../../../../../src/components/gov-layout/gov-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,WAAW,EAAiC,MAAM,aAAa,CAAA;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKpD,MAAM,OAAO,SAAS;IAGrB;QAKA;;WAEG;QACc,SAAI,GAAgB,SAAS,CAAA;QAK9C;;WAEG;QACc,YAAO,GAAY,KAAK,CAAA;QAfxC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAgBO,SAAS,CAAC,aAAqB,EAAE,IAAY,EAAE,OAAe,EAAE,OAAgB;QACvF,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,CAAA;QACrC,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAA;QAC9C,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAA;QAC3C,OAAO,aAAa,GAAG,GAAG,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;IAC5E,CAAC;IAED,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC;YAC7D,gEAAS,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;gBACzF,8DAAQ,CACC,CACJ,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\r\nimport { LayoutClass, LayoutType, LayoutVariantType } from './constants'\r\nimport { GovHost } from '../../helpers/Dom/template.types'\r\nimport { govHost } from '../../helpers/Dom/template'\r\n\r\n@Component({\r\n\ttag: 'gov-layout',\r\n})\r\nexport class GovLayout {\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: HTMLGovLayoutElement\r\n\t/**\r\n\t * Layout type\r\n\t */\r\n\t@Prop() readonly type?: LayoutType = 'stretch'\r\n\t/**\r\n\t * Layout align\r\n\t */\r\n\t@Prop() readonly variant?: LayoutVariantType\r\n\t/**\r\n\t * Determine if component should have inverse column order\r\n\t */\r\n\t@Prop() readonly inverse: boolean = false\r\n\r\n\tprivate typeClass(originalClass: string, type: string, variant: string, inverse: boolean) {\r\n\t\tconst isType = type ? '-' + type : ''\r\n\t\tconst isVariant = variant ? '-' + variant : ''\r\n\t\tconst isInverse = inverse ? '-inverse' : ''\r\n\t\treturn originalClass + ' ' + originalClass + isType + isVariant + isInverse\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host type={this.type} class={this.h.classes(LayoutClass.root)}>\r\n\t\t\t\t<section class={this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse)}>\r\n\t\t\t\t\t<slot />\r\n\t\t\t\t</section>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"]}
|
|
@@ -32,7 +32,7 @@ export class GovLifecycle {
|
|
|
32
32
|
console.log('componentDidUpdate', this.uniqueId);
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '5764a6d1dd18127a3b71f9a9a5bfac9116b94d1e', identifier: this.uniqueId }, h("span", { key: 'd5ae2d686dcc55523aa9a0ea500aff9e4de4fb3f' }, "lifecycle ", this.uniqueId)));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "gov-lifecycle"; }
|
|
38
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-lifecycle-tester.js","sourceRoot":"","sources":["../../../../../../src/components/gov-lifecycle-tester/gov-lifecycle-tester.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;AAK9C,MAAM,OAAO,YAAY;IAGxB;QACC,IAAI,CAAC,QAAQ,GAAG,YAAY,GAAG,IAAI,EAAE,CAAC;KACtC;IAED,iBAAiB;QAChB,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED,oBAAoB;QACnB,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpD,CAAC;IAED,iBAAiB;QAChB,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED,gBAAgB;QACf,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;IAED,qBAAqB;QACpB,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAED,mBAAmB;QAClB,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED,kBAAkB;QACjB,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,mBAAmB;QAClB,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED,kBAAkB;QACjB,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,UAAU,EAAE,IAAI,CAAC,QAAQ;YAC9B;;gBAAiB,IAAI,CAAC,QAAQ,CAAQ,CAChC,CACP,CAAC;IACH,CAAC;;CACD","sourcesContent":["import {Component, h, Host} from '@stencil/core';\nimport {chr4} from \"../../utils/string.utils\";\n\n@Component({\n\ttag: 'gov-lifecycle',\n})\nexport class GovLifecycle {\n\tprivate readonly uniqueId: string;\n\n\tconstructor() {\n\t\tthis.uniqueId = 'lifecycle-' + chr4();\n\t}\n\n\tconnectedCallback() {\n\t\tconsole.log('connectedCallback', this.uniqueId);\n\t}\n\n\tdisconnectedCallback() {\n\t\tconsole.log('disconnectedCallback', this.uniqueId);\n\t}\n\n\tcomponentWillLoad() {\n\t\tconsole.log('componentWillLoad', this.uniqueId);\n\t}\n\n\tcomponentDidLoad() {\n\t\tconsole.log('componentDidLoad', this.uniqueId);\n\t}\n\n\tcomponentShouldUpdate() {\n\t\tconsole.log('componentShouldUpdate', this.uniqueId);\n\t}\n\n\tcomponentWillRender() {\n\t\tconsole.log('componentWillRender', this.uniqueId);\n\t}\n\n\tcomponentDidRender() {\n\t\tconsole.log('componentDidRender', this.uniqueId);\n\t}\n\n\tcomponentWillUpdate() {\n\t\tconsole.log('componentWillUpdate', this.uniqueId);\n\t}\n\n\tcomponentDidUpdate() {\n\t\tconsole.log('componentDidUpdate', this.uniqueId);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host identifier={this.uniqueId}>\n\t\t\t\t<span>lifecycle {this.uniqueId}</span>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"gov-lifecycle-tester.js","sourceRoot":"","sources":["../../../../../../src/components/gov-lifecycle-tester/gov-lifecycle-tester.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;AAK9C,MAAM,OAAO,YAAY;IAGxB;QACC,IAAI,CAAC,QAAQ,GAAG,YAAY,GAAG,IAAI,EAAE,CAAC;KACtC;IAED,iBAAiB;QAChB,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED,oBAAoB;QACnB,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpD,CAAC;IAED,iBAAiB;QAChB,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED,gBAAgB;QACf,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;IAED,qBAAqB;QACpB,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAED,mBAAmB;QAClB,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED,kBAAkB;QACjB,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,mBAAmB;QAClB,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED,kBAAkB;QACjB,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,UAAU,EAAE,IAAI,CAAC,QAAQ;YAC9B;;gBAAiB,IAAI,CAAC,QAAQ,CAAQ,CAChC,CACP,CAAC;IACH,CAAC;;CACD","sourcesContent":["import {Component, h, Host} from '@stencil/core';\r\nimport {chr4} from \"../../utils/string.utils\";\r\n\r\n@Component({\r\n\ttag: 'gov-lifecycle',\r\n})\r\nexport class GovLifecycle {\r\n\tprivate readonly uniqueId: string;\r\n\r\n\tconstructor() {\r\n\t\tthis.uniqueId = 'lifecycle-' + chr4();\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tconsole.log('connectedCallback', this.uniqueId);\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tconsole.log('disconnectedCallback', this.uniqueId);\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tconsole.log('componentWillLoad', this.uniqueId);\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tconsole.log('componentDidLoad', this.uniqueId);\r\n\t}\r\n\r\n\tcomponentShouldUpdate() {\r\n\t\tconsole.log('componentShouldUpdate', this.uniqueId);\r\n\t}\r\n\r\n\tcomponentWillRender() {\r\n\t\tconsole.log('componentWillRender', this.uniqueId);\r\n\t}\r\n\r\n\tcomponentDidRender() {\r\n\t\tconsole.log('componentDidRender', this.uniqueId);\r\n\t}\r\n\r\n\tcomponentWillUpdate() {\r\n\t\tconsole.log('componentWillUpdate', this.uniqueId);\r\n\t}\r\n\r\n\tcomponentDidUpdate() {\r\n\t\tconsole.log('componentDidUpdate', this.uniqueId);\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host identifier={this.uniqueId}>\r\n\t\t\t\t<span>lifecycle {this.uniqueId}</span>\r\n\t\t\t</Host>\r\n\t\t);\r\n\t}\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-link/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGxD,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,oBAAoB;CAC9B,CAAA","sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const LinkSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type LinkSizesType = `${ValueOf<typeof LinkSizes>}`\n\nexport const LinkClass = {\n\troot: 'gov-link',\n\texternal: 'gov-link--external',\n}\n"]}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-link/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGxD,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,oBAAoB;CAC9B,CAAA","sourcesContent":["import {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const LinkSizes = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type LinkSizesType = `${ValueOf<typeof LinkSizes>}`\r\n\r\nexport const LinkClass = {\r\n\troot: 'gov-link',\r\n\texternal: 'gov-link--external',\r\n}\r\n"]}
|
|
@@ -32,7 +32,7 @@ export class GovLink {
|
|
|
32
32
|
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '87da124a14ecd5515767b8583a98c8a24ea6b21b', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external, truncate: this.truncate }, h("a", Object.assign({ key: '7e9b80a7eb6527214cea32a1a6b2dfa7bdba56a9', class: "element", href: this.href, target: this.external ? '_blank' : this.target, rel: this.external ? "noreferrer" : null }, this.inheritedAttributes), h("slot", { key: '0620fa97529d8966460cd664ff4285719954ca26', name: "icon-start" }), h("span", { key: 'fc56fe240cda4ab1dde314deac56937fa9d53717' }, h("slot", { key: 'fdb01c25b213ee2c093136ff86a9f3d56a0b12ca' })), h("slot", { key: '1d077305b248a77e6b6730c32d5136ce4a9b2858', name: "icon-end" }), this.external && h("gov-icon", { key: 'c9d155610f0cbd4ddf1fd1945b8da78357ba2767', name: "box-arrow-up-right", type: "components", size: this.size, class: LinkClass.external }))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "gov-link"; }
|
|
38
38
|
static get properties() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-link.js","sourceRoot":"","sources":["../../../../../../src/components/gov-link/gov-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAC,SAAS,EAAE,SAAS,EAAgB,MAAM,aAAa,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAC,qBAAqB,EAAC,MAAM,2CAA2C,CAAC;AAKhF,MAAM,OAAO,OAAO;IAGnB;QAKA;;WAEG;QACc,SAAI,GAAmB,GAAG,CAAA;QAC3C;;WAEG;QACc,aAAQ,GAAa,KAAK,CAAA;QAC3C;;WAEG;QACc,aAAQ,GAAa,KAAK,CAAA;QAkBlC,wBAAmB,GAAe,EAAE,CAAA;QAjC5C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IA4BD,YAAY,CAAC,QAAgB;QAC5B,YAAY,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAClD,CAAC;IAID,iBAAiB;QAChB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC5B,IAAI,CAAC,mBAAmB,GA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Host, h, Prop, Watch, State} from '@stencil/core'\nimport {LinkClass, LinkSizes, LinkSizesType} from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Attributes} from \"../../helpers/Dom/attribute\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-link',\n})\nexport class GovLink {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLinkElement\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly size?: LinkSizesType = 'm'\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly external?: boolean = false\n\t/**\n\t * Cutting text to one line\n\t */\n\t@Prop() readonly truncate?: boolean = false\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(LinkSizes, newValue, LinkClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LinkClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t href={this.href}\n\t\t\t\t external={this.external}\n\t\t\t\t truncate={this.truncate}>\n\t\t\t\t<a class=\"element\"\n\t\t\t\t href={this.href}\n\t\t\t\t target={this.external ? '_blank' : this.target}\n\t\t\t\t rel={this.external ? \"noreferrer\" : null}\n\t\t\t\t {...this.inheritedAttributes}>\n\t\t\t\t\t<slot name=\"icon-start\"/>\n\t\t\t\t\t<span><slot/></span>\n\t\t\t\t\t<slot name=\"icon-end\"/>\n\t\t\t\t\t{this.external && <gov-icon name=\"box-arrow-up-right\" type=\"components\" size={this.size} class={LinkClass.external}></gov-icon>}\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"gov-link.js","sourceRoot":"","sources":["../../../../../../src/components/gov-link/gov-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAC,SAAS,EAAE,SAAS,EAAgB,MAAM,aAAa,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAC,qBAAqB,EAAC,MAAM,2CAA2C,CAAC;AAKhF,MAAM,OAAO,OAAO;IAGnB;QAKA;;WAEG;QACc,SAAI,GAAmB,GAAG,CAAA;QAC3C;;WAEG;QACc,aAAQ,GAAa,KAAK,CAAA;QAC3C;;WAEG;QACc,aAAQ,GAAa,KAAK,CAAA;QAkBlC,wBAAmB,GAAe,EAAE,CAAA;QAjC5C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IA4BD,YAAY,CAAC,QAAgB;QAC5B,YAAY,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAClD,CAAC;IAID,iBAAiB;QAChB,IAAI,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Host, h, Prop, Watch, State} from '@stencil/core'\r\nimport {LinkClass, LinkSizes, LinkSizesType} from './constants'\r\nimport { govHost } from '../../helpers/Dom/template'\r\nimport { GovHost } from '../../helpers/Dom/template.types'\r\nimport {validateProp} from \"../../helpers/Validate/props\";\r\nimport {Attributes} from \"../../helpers/Dom/attribute\";\r\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\r\n\r\n@Component({\r\n\ttag: 'gov-link',\r\n})\r\nexport class GovLink {\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: HTMLGovLinkElement\r\n\t/**\r\n\t * Element size.\r\n\t */\r\n\t@Prop() readonly size?: LinkSizesType = 'm'\r\n\t/**\r\n\t * Element size.\r\n\t */\r\n\t@Prop() readonly external?: boolean = false\r\n\t/**\r\n\t * Cutting text to one line\r\n\t */\r\n\t@Prop() readonly truncate?: 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\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(LinkSizes, newValue, LinkClass.root)\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\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\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(LinkClass.root)}\r\n\t\t\t\t size={this.size}\r\n\t\t\t\t href={this.href}\r\n\t\t\t\t external={this.external}\r\n\t\t\t\t truncate={this.truncate}>\r\n\t\t\t\t<a class=\"element\"\r\n\t\t\t\t href={this.href}\r\n\t\t\t\t target={this.external ? '_blank' : this.target}\r\n\t\t\t\t rel={this.external ? \"noreferrer\" : null}\r\n\t\t\t\t {...this.inheritedAttributes}>\r\n\t\t\t\t\t<slot name=\"icon-start\"/>\r\n\t\t\t\t\t<span><slot/></span>\r\n\t\t\t\t\t<slot name=\"icon-end\"/>\r\n\t\t\t\t\t{this.external && <gov-icon name=\"box-arrow-up-right\" type=\"components\" size={this.size} class={LinkClass.external}></gov-icon>}\r\n\t\t\t\t</a>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"]}
|