@gov-design-system-ce/components 4.6.0 → 4.6.2
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/LICENSE +21 -0
- package/package.json +29 -29
- package/readme.md +15 -0
- package/dist/cjs/Fragment-D4qSkFah.js +0 -8
- package/dist/cjs/Fragment-D4qSkFah.js.map +0 -1
- package/dist/cjs/accessibility-BQJmIVWV.js +0 -13
- package/dist/cjs/accessibility-BQJmIVWV.js.map +0 -1
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/array.utils-DOh1gCQS.js +0 -45
- package/dist/cjs/array.utils-DOh1gCQS.js.map +0 -1
- package/dist/cjs/attribute-CH1-zDDl.js +0 -103
- package/dist/cjs/attribute-CH1-zDDl.js.map +0 -1
- package/dist/cjs/colors-DgrrxjsX.js +0 -19
- package/dist/cjs/colors-DgrrxjsX.js.map +0 -1
- package/dist/cjs/constants-357ehBFU.js +0 -15
- package/dist/cjs/constants-357ehBFU.js.map +0 -1
- package/dist/cjs/constants-CFAhiwqu.js +0 -19
- package/dist/cjs/constants-CFAhiwqu.js.map +0 -1
- package/dist/cjs/constants-CYm8AK_D.js +0 -27
- package/dist/cjs/constants-CYm8AK_D.js.map +0 -1
- package/dist/cjs/constants-CbBhWRUQ.js +0 -26
- package/dist/cjs/constants-CbBhWRUQ.js.map +0 -1
- package/dist/cjs/constants-ChDSk4SZ.js +0 -16
- package/dist/cjs/constants-ChDSk4SZ.js.map +0 -1
- package/dist/cjs/constants-D6LZ31rS.js +0 -28
- package/dist/cjs/constants-D6LZ31rS.js.map +0 -1
- package/dist/cjs/constants-DcKnOyW4.js +0 -18
- package/dist/cjs/constants-DcKnOyW4.js.map +0 -1
- package/dist/cjs/constants-Dmmp9FHy.js +0 -37
- package/dist/cjs/constants-Dmmp9FHy.js.map +0 -1
- package/dist/cjs/constants-WvkMgj1j.js +0 -27
- package/dist/cjs/constants-WvkMgj1j.js.map +0 -1
- package/dist/cjs/constants-ymB2dvwV.js +0 -28
- package/dist/cjs/constants-ymB2dvwV.js.map +0 -1
- package/dist/cjs/constants-z2ZSS2je.js +0 -37
- package/dist/cjs/constants-z2ZSS2je.js.map +0 -1
- package/dist/cjs/core.cjs.js +0 -49
- package/dist/cjs/core.cjs.js.map +0 -1
- package/dist/cjs/form-GgXzZZ-E.js +0 -156
- package/dist/cjs/form-GgXzZZ-E.js.map +0 -1
- package/dist/cjs/gov-accordion-item.cjs.entry.js +0 -80
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-accordion-item.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +0 -59
- package/dist/cjs/gov-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-accordion.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-attachments.gov-attachments-item.gov-form-message.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +0 -121
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js +0 -55
- package/dist/cjs/gov-backdrop.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-backdrop.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-banner.cjs.entry.js +0 -91
- package/dist/cjs/gov-banner.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-banner.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-blockquote.cjs.entry.js +0 -34
- package/dist/cjs/gov-blockquote.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-blockquote.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +0 -76
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-breadcrumbs.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-button.cjs.entry.js +0 -186
- package/dist/cjs/gov-button.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-button.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-card.cjs.entry.js +0 -91
- package/dist/cjs/gov-card.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-card.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-chip.cjs.entry.js +0 -131
- package/dist/cjs/gov-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-chip.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-collapsible.cjs.entry.js +0 -86
- package/dist/cjs/gov-collapsible.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-collapsible.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-container.cjs.entry.js +0 -24
- package/dist/cjs/gov-container.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-container.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-control-group.cjs.entry.js +0 -51
- package/dist/cjs/gov-control-group.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-control-group.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-cookiebar.cjs.entry.js +0 -28
- package/dist/cjs/gov-cookiebar.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-cookiebar.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-dialog.cjs.entry.js +0 -169
- package/dist/cjs/gov-dialog.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-dialog.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-dropdown.cjs.entry.js +0 -146
- package/dist/cjs/gov-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-dropdown.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-empty.cjs.entry.js +0 -63
- package/dist/cjs/gov-empty.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-empty.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-error-code.cjs.entry.js +0 -25
- package/dist/cjs/gov-error-code.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-error-code.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-flex.gov-icon.gov-theme-switch.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-flex_3.cjs.entry.js +0 -338
- package/dist/cjs/gov-flex_3.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +0 -284
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-autocomplete.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +0 -92
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-checkbox-group.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +0 -151
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-checkbox.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +0 -85
- package/dist/cjs/gov-form-control.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-control.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +0 -283
- package/dist/cjs/gov-form-file.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-file.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-group.cjs.entry.js +0 -51
- package/dist/cjs/gov-form-group.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-group.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-input.gov-skeleton.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-input_2.cjs.entry.js +0 -290
- package/dist/cjs/gov-form-input_2.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-label.cjs.entry.js +0 -35
- package/dist/cjs/gov-form-label.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-label.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +0 -270
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-multi-select.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-password-power.cjs.entry.js +0 -23
- package/dist/cjs/gov-form-password-power.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-password-power.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +0 -80
- package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-radio-group.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +0 -147
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-radio.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-range.cjs.entry.js +0 -212
- package/dist/cjs/gov-form-range.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-range.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +0 -35
- package/dist/cjs/gov-form-search.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-search.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +0 -158
- package/dist/cjs/gov-form-select.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-select.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +0 -148
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-switch.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-grid-item.cjs.entry.js +0 -30
- package/dist/cjs/gov-grid-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-grid-item.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-grid.cjs.entry.js +0 -22
- package/dist/cjs/gov-grid.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-grid.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-infobar.cjs.entry.js +0 -107
- package/dist/cjs/gov-infobar.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-infobar.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-layout-column.cjs.entry.js +0 -21
- package/dist/cjs/gov-layout-column.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-layout-column.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-layout.cjs.entry.js +0 -35
- package/dist/cjs/gov-layout.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-layout.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-lifecycle.cjs.entry.js +0 -46
- package/dist/cjs/gov-lifecycle.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-lifecycle.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-link.cjs.entry.js +0 -59
- package/dist/cjs/gov-link.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-link.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-loading.cjs.entry.js +0 -44
- package/dist/cjs/gov-loading.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-loading.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-message.cjs.entry.js +0 -49
- package/dist/cjs/gov-message.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-message.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-pagination.cjs.entry.js +0 -257
- package/dist/cjs/gov-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-pagination.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +0 -55
- package/dist/cjs/gov-spacer.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-spacer.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js +0 -53
- package/dist/cjs/gov-stepper-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-stepper-item.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-stepper.cjs.entry.js +0 -53
- package/dist/cjs/gov-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-stepper.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-tabs-item.cjs.entry.js +0 -70
- package/dist/cjs/gov-tabs-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tabs-item.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-tabs.cjs.entry.js +0 -232
- package/dist/cjs/gov-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tabs.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-tag.cjs.entry.js +0 -65
- package/dist/cjs/gov-tag.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tag.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-tile.cjs.entry.js +0 -47
- package/dist/cjs/gov-tile.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tile.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-toast.cjs.entry.js +0 -125
- package/dist/cjs/gov-toast.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-toast.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-tooltip.gov-tooltip-content.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-tooltip_2.cjs.entry.js +0 -319
- package/dist/cjs/gov-tooltip_2.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-wizard-item.cjs.entry.js +0 -105
- package/dist/cjs/gov-wizard-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-wizard-item.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-wizard.cjs.entry.js +0 -70
- package/dist/cjs/gov-wizard.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-wizard.entry.cjs.js.map +0 -1
- package/dist/cjs/gov.log-C5EH15b_.js +0 -53
- package/dist/cjs/gov.log-C5EH15b_.js.map +0 -1
- package/dist/cjs/helpers-DmI-ZOAH.js +0 -20
- package/dist/cjs/helpers-DmI-ZOAH.js.map +0 -1
- package/dist/cjs/helpers.types-vap8QfRH.js +0 -17
- package/dist/cjs/helpers.types-vap8QfRH.js.map +0 -1
- package/dist/cjs/index-BEF5cZxd.js +0 -2743
- package/dist/cjs/index-BEF5cZxd.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -5
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -16
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/props-CPENhBnM.js +0 -17
- package/dist/cjs/props-CPENhBnM.js.map +0 -1
- package/dist/cjs/sizes-D5zsw2g5.js +0 -19
- package/dist/cjs/sizes-D5zsw2g5.js.map +0 -1
- package/dist/cjs/stencil.utils-8sCYbm34.js +0 -12
- package/dist/cjs/stencil.utils-8sCYbm34.js.map +0 -1
- package/dist/cjs/string.utils-BG4pUfEi.js +0 -26
- package/dist/cjs/string.utils-BG4pUfEi.js.map +0 -1
- package/dist/cjs/template-Cj6PcLmR.js +0 -119
- package/dist/cjs/template-Cj6PcLmR.js.map +0 -1
- package/dist/cjs/utils-NnC78QR3.js +0 -42
- package/dist/cjs/utils-NnC78QR3.js.map +0 -1
- package/dist/cjs/wcag-Bvzxnp5D.js +0 -56
- package/dist/cjs/wcag-Bvzxnp5D.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -73
- package/dist/collection/components/gov-accordion/constants.js +0 -19
- package/dist/collection/components/gov-accordion/constants.js.map +0 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +0 -226
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +0 -1
- package/dist/collection/components/gov-accordion/gov-accordion.js +0 -125
- package/dist/collection/components/gov-accordion/gov-accordion.js.map +0 -1
- package/dist/collection/components/gov-accordion/gov-accordion.types.js +0 -2
- package/dist/collection/components/gov-accordion/gov-accordion.types.js.map +0 -1
- package/dist/collection/components/gov-attachments/constants.js +0 -12
- package/dist/collection/components/gov-attachments/constants.js.map +0 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.css +0 -52
- package/dist/collection/components/gov-attachments/gov-attachments-item.d.js +0 -2
- package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +0 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.js +0 -131
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +0 -1
- package/dist/collection/components/gov-attachments/gov-attachments.js +0 -92
- package/dist/collection/components/gov-attachments/gov-attachments.js.map +0 -1
- package/dist/collection/components/gov-backdrop/constants.js +0 -5
- package/dist/collection/components/gov-backdrop/constants.js.map +0 -1
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +0 -166
- package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +0 -1
- package/dist/collection/components/gov-banner/constants.js +0 -26
- package/dist/collection/components/gov-banner/constants.js.map +0 -1
- package/dist/collection/components/gov-banner/gov-banner.js +0 -175
- package/dist/collection/components/gov-banner/gov-banner.js.map +0 -1
- package/dist/collection/components/gov-blockquote/constants.js +0 -10
- package/dist/collection/components/gov-blockquote/constants.js.map +0 -1
- package/dist/collection/components/gov-blockquote/gov-blockquote.js +0 -67
- package/dist/collection/components/gov-blockquote/gov-blockquote.js.map +0 -1
- package/dist/collection/components/gov-breadcrumbs/constants.js +0 -4
- package/dist/collection/components/gov-breadcrumbs/constants.js.map +0 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js +0 -2
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +0 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +0 -215
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +0 -1
- package/dist/collection/components/gov-button/button/constants.js +0 -28
- package/dist/collection/components/gov-button/button/constants.js.map +0 -1
- package/dist/collection/components/gov-button/button/gov-button.js +0 -710
- package/dist/collection/components/gov-button/button/gov-button.js.map +0 -1
- package/dist/collection/components/gov-button/button/gov-button.types.js +0 -2
- package/dist/collection/components/gov-button/button/gov-button.types.js.map +0 -1
- package/dist/collection/components/gov-button/dropdown/constants.js +0 -10
- package/dist/collection/components/gov-button/dropdown/constants.js.map +0 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +0 -205
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +0 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js +0 -2
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js.map +0 -1
- package/dist/collection/components/gov-card/constants.js +0 -16
- package/dist/collection/components/gov-card/constants.js.map +0 -1
- package/dist/collection/components/gov-card/gov-card.js +0 -287
- package/dist/collection/components/gov-card/gov-card.js.map +0 -1
- package/dist/collection/components/gov-card/interfaces.js +0 -2
- package/dist/collection/components/gov-card/interfaces.js.map +0 -1
- package/dist/collection/components/gov-chip/constants.js +0 -21
- package/dist/collection/components/gov-chip/constants.js.map +0 -1
- package/dist/collection/components/gov-chip/gov-chip.js +0 -437
- package/dist/collection/components/gov-chip/gov-chip.js.map +0 -1
- package/dist/collection/components/gov-collapsible/constants.js +0 -18
- package/dist/collection/components/gov-collapsible/constants.js.map +0 -1
- package/dist/collection/components/gov-collapsible/gov-collapsible.js +0 -182
- package/dist/collection/components/gov-collapsible/gov-collapsible.js.map +0 -1
- package/dist/collection/components/gov-container/constants.js +0 -4
- package/dist/collection/components/gov-container/constants.js.map +0 -1
- package/dist/collection/components/gov-container/gov-container.js +0 -14
- package/dist/collection/components/gov-container/gov-container.js.map +0 -1
- package/dist/collection/components/gov-control-group/constants.js +0 -7
- package/dist/collection/components/gov-control-group/constants.js.map +0 -1
- package/dist/collection/components/gov-control-group/gov-control-group.js +0 -131
- package/dist/collection/components/gov-control-group/gov-control-group.js.map +0 -1
- package/dist/collection/components/gov-cookiebar/constants.js +0 -8
- package/dist/collection/components/gov-cookiebar/constants.js.map +0 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +0 -14
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +0 -1
- package/dist/collection/components/gov-dialog/constants.js +0 -12
- package/dist/collection/components/gov-dialog/constants.js.map +0 -1
- package/dist/collection/components/gov-dialog/gov-dialog.js +0 -394
- package/dist/collection/components/gov-dialog/gov-dialog.js.map +0 -1
- package/dist/collection/components/gov-empty/constants.js +0 -19
- package/dist/collection/components/gov-empty/constants.js.map +0 -1
- package/dist/collection/components/gov-empty/gov-empty.js +0 -122
- package/dist/collection/components/gov-empty/gov-empty.js.map +0 -1
- package/dist/collection/components/gov-error-code/constants.js +0 -5
- package/dist/collection/components/gov-error-code/constants.js.map +0 -1
- package/dist/collection/components/gov-error-code/gov-error-code.js +0 -14
- package/dist/collection/components/gov-error-code/gov-error-code.js.map +0 -1
- package/dist/collection/components/gov-flex/constants.js +0 -6
- package/dist/collection/components/gov-flex/constants.js.map +0 -1
- package/dist/collection/components/gov-flex/gov-flex.js +0 -186
- package/dist/collection/components/gov-flex/gov-flex.js.map +0 -1
- package/dist/collection/components/gov-form/autocomplete/constants.js +0 -11
- package/dist/collection/components/gov-form/autocomplete/constants.js.map +0 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +0 -860
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +0 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js +0 -2
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +0 -1
- package/dist/collection/components/gov-form/checkbox/constants.js +0 -10
- package/dist/collection/components/gov-form/checkbox/constants.js.map +0 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +0 -448
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +0 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js +0 -2
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js.map +0 -1
- package/dist/collection/components/gov-form/control/constants.js +0 -9
- package/dist/collection/components/gov-form/control/constants.js.map +0 -1
- package/dist/collection/components/gov-form/control/gov-form-control.js +0 -202
- package/dist/collection/components/gov-form/control/gov-form-control.js.map +0 -1
- package/dist/collection/components/gov-form/file/constants.js +0 -8
- package/dist/collection/components/gov-form/file/constants.js.map +0 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js +0 -722
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +0 -1
- package/dist/collection/components/gov-form/file/gov-form-file.types.js +0 -2
- package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +0 -1
- package/dist/collection/components/gov-form/group/constants.js +0 -18
- package/dist/collection/components/gov-form/group/constants.js.map +0 -1
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +0 -192
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js.map +0 -1
- package/dist/collection/components/gov-form/group/gov-form-group.css +0 -67
- package/dist/collection/components/gov-form/group/gov-form-group.js +0 -102
- package/dist/collection/components/gov-form/group/gov-form-group.js.map +0 -1
- package/dist/collection/components/gov-form/group/gov-form-group.types.js +0 -2
- package/dist/collection/components/gov-form/group/gov-form-group.types.js.map +0 -1
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js +0 -181
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js.map +0 -1
- package/dist/collection/components/gov-form/input/constants.js +0 -28
- package/dist/collection/components/gov-form/input/constants.js.map +0 -1
- package/dist/collection/components/gov-form/input/gov-form-input.js +0 -934
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +0 -1
- package/dist/collection/components/gov-form/input/gov-form-input.types.js +0 -2
- package/dist/collection/components/gov-form/input/gov-form-input.types.js.map +0 -1
- package/dist/collection/components/gov-form/label/constants.js +0 -8
- package/dist/collection/components/gov-form/label/constants.js.map +0 -1
- package/dist/collection/components/gov-form/label/gov-form-label.js +0 -137
- package/dist/collection/components/gov-form/label/gov-form-label.js.map +0 -1
- package/dist/collection/components/gov-form/message/constants.js +0 -10
- package/dist/collection/components/gov-form/message/constants.js.map +0 -1
- package/dist/collection/components/gov-form/message/gov-form-message.js +0 -120
- package/dist/collection/components/gov-form/message/gov-form-message.js.map +0 -1
- package/dist/collection/components/gov-form/multiselect/constants.js +0 -10
- package/dist/collection/components/gov-form/multiselect/constants.js.map +0 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +0 -722
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +0 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js +0 -2
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +0 -1
- package/dist/collection/components/gov-form/password-power/constants.js +0 -6
- package/dist/collection/components/gov-form/password-power/constants.js.map +0 -1
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +0 -32
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +0 -1
- package/dist/collection/components/gov-form/radio/constants.js +0 -10
- package/dist/collection/components/gov-form/radio/constants.js.map +0 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +0 -424
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +0 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.types.js +0 -2
- package/dist/collection/components/gov-form/radio/gov-form-radio.types.js.map +0 -1
- package/dist/collection/components/gov-form/range/constants.js +0 -9
- package/dist/collection/components/gov-form/range/constants.js.map +0 -1
- package/dist/collection/components/gov-form/range/gov-form-range.js +0 -644
- package/dist/collection/components/gov-form/range/gov-form-range.js.map +0 -1
- package/dist/collection/components/gov-form/search/constants.js +0 -9
- package/dist/collection/components/gov-form/search/constants.js.map +0 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js +0 -76
- package/dist/collection/components/gov-form/search/gov-form-search.js.map +0 -1
- package/dist/collection/components/gov-form/select/constants.js +0 -8
- package/dist/collection/components/gov-form/select/constants.js.map +0 -1
- package/dist/collection/components/gov-form/select/gov-form-select.js +0 -471
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +0 -1
- package/dist/collection/components/gov-form/select/gov-form-select.types.js +0 -2
- package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +0 -1
- package/dist/collection/components/gov-form/switch/constants.js +0 -12
- package/dist/collection/components/gov-form/switch/constants.js.map +0 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +0 -425
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +0 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.types.js +0 -2
- package/dist/collection/components/gov-form/switch/gov-form-switch.types.js.map +0 -1
- package/dist/collection/components/gov-grid/constants.js +0 -9
- package/dist/collection/components/gov-grid/constants.js.map +0 -1
- package/dist/collection/components/gov-grid/gov-grid-item.js +0 -218
- package/dist/collection/components/gov-grid/gov-grid-item.js.map +0 -1
- package/dist/collection/components/gov-grid/gov-grid.js +0 -81
- package/dist/collection/components/gov-grid/gov-grid.js.map +0 -1
- package/dist/collection/components/gov-icon/constants.js +0 -27
- package/dist/collection/components/gov-icon/constants.js.map +0 -1
- package/dist/collection/components/gov-icon/gov-icon.js +0 -211
- package/dist/collection/components/gov-icon/gov-icon.js.map +0 -1
- package/dist/collection/components/gov-icon/helpers.js +0 -14
- package/dist/collection/components/gov-icon/helpers.js.map +0 -1
- package/dist/collection/components/gov-icon/list.js +0 -174
- package/dist/collection/components/gov-icon/list.js.map +0 -1
- package/dist/collection/components/gov-infobar/constants.js +0 -16
- package/dist/collection/components/gov-infobar/constants.js.map +0 -1
- package/dist/collection/components/gov-infobar/gov-infobar.js +0 -258
- package/dist/collection/components/gov-infobar/gov-infobar.js.map +0 -1
- package/dist/collection/components/gov-infobar/gov-infobar.types.js +0 -2
- package/dist/collection/components/gov-infobar/gov-infobar.types.js.map +0 -1
- package/dist/collection/components/gov-layout/constants.js +0 -19
- package/dist/collection/components/gov-layout/constants.js.map +0 -1
- package/dist/collection/components/gov-layout/gov-layout-column.js +0 -14
- package/dist/collection/components/gov-layout/gov-layout-column.js.map +0 -1
- package/dist/collection/components/gov-layout/gov-layout.js +0 -103
- package/dist/collection/components/gov-layout/gov-layout.js.map +0 -1
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +0 -39
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +0 -1
- package/dist/collection/components/gov-link/constants.js +0 -8
- package/dist/collection/components/gov-link/constants.js.map +0 -1
- package/dist/collection/components/gov-link/gov-link.js +0 -165
- package/dist/collection/components/gov-link/gov-link.js.map +0 -1
- package/dist/collection/components/gov-loading/loading/constants.js +0 -9
- package/dist/collection/components/gov-loading/loading/constants.js.map +0 -1
- package/dist/collection/components/gov-loading/loading/gov-loading.js +0 -61
- package/dist/collection/components/gov-loading/loading/gov-loading.js.map +0 -1
- package/dist/collection/components/gov-loading/skeleton/constants.js +0 -20
- package/dist/collection/components/gov-loading/skeleton/constants.js.map +0 -1
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +0 -251
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +0 -1
- package/dist/collection/components/gov-message/constants.js +0 -13
- package/dist/collection/components/gov-message/constants.js.map +0 -1
- package/dist/collection/components/gov-message/gov-message.js +0 -89
- package/dist/collection/components/gov-message/gov-message.js.map +0 -1
- package/dist/collection/components/gov-pagination/constants.js +0 -21
- package/dist/collection/components/gov-pagination/constants.js.map +0 -1
- package/dist/collection/components/gov-pagination/gov-pagination.js +0 -539
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +0 -1
- package/dist/collection/components/gov-pagination/gov-pagination.types.js +0 -2
- package/dist/collection/components/gov-pagination/gov-pagination.types.js.map +0 -1
- package/dist/collection/components/gov-pagination/pagination.js +0 -55
- package/dist/collection/components/gov-pagination/pagination.js.map +0 -1
- package/dist/collection/components/gov-spacer/constants.js +0 -15
- package/dist/collection/components/gov-spacer/constants.js.map +0 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js +0 -93
- package/dist/collection/components/gov-spacer/gov-spacer.js.map +0 -1
- package/dist/collection/components/gov-stepper/stepper/constants.js +0 -20
- package/dist/collection/components/gov-stepper/stepper/constants.js.map +0 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.d.js +0 -2
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.d.js.map +0 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js +0 -143
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js.map +0 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper.js +0 -98
- package/dist/collection/components/gov-stepper/stepper/gov-stepper.js.map +0 -1
- package/dist/collection/components/gov-tabs/constants.js +0 -27
- package/dist/collection/components/gov-tabs/constants.js.map +0 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +0 -285
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +0 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js +0 -471
- package/dist/collection/components/gov-tabs/gov-tabs.js.map +0 -1
- package/dist/collection/components/gov-tabs/gov-tabs.types.js +0 -2
- package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +0 -1
- package/dist/collection/components/gov-tag/constants.js +0 -12
- package/dist/collection/components/gov-tag/constants.js.map +0 -1
- package/dist/collection/components/gov-tag/gov-tag.js +0 -189
- package/dist/collection/components/gov-tag/gov-tag.js.map +0 -1
- package/dist/collection/components/gov-theme-switch/constants.js +0 -12
- package/dist/collection/components/gov-theme-switch/constants.js.map +0 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +0 -259
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +0 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.types.js +0 -7
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.types.js.map +0 -1
- package/dist/collection/components/gov-tile/constants.js +0 -13
- package/dist/collection/components/gov-tile/constants.js.map +0 -1
- package/dist/collection/components/gov-tile/gov-tile.js +0 -173
- package/dist/collection/components/gov-tile/gov-tile.js.map +0 -1
- package/dist/collection/components/gov-toast/constants.js +0 -17
- package/dist/collection/components/gov-toast/constants.js.map +0 -1
- package/dist/collection/components/gov-toast/gov-toast.js +0 -302
- package/dist/collection/components/gov-toast/gov-toast.js.map +0 -1
- package/dist/collection/components/gov-tooltip/constants.js +0 -19
- package/dist/collection/components/gov-tooltip/constants.js.map +0 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +0 -174
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +0 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +0 -434
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +0 -1
- package/dist/collection/components/gov-wizard/constants.js +0 -18
- package/dist/collection/components/gov-wizard/constants.js.map +0 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.d.js +0 -2
- package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +0 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.js +0 -327
- package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +0 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.types.js +0 -2
- package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +0 -1
- package/dist/collection/components/gov-wizard/gov-wizard.js +0 -174
- package/dist/collection/components/gov-wizard/gov-wizard.js.map +0 -1
- package/dist/collection/core/constants/colors.js +0 -15
- package/dist/collection/core/constants/colors.js.map +0 -1
- package/dist/collection/core/constants/sizes.js +0 -15
- package/dist/collection/core/constants/sizes.js.map +0 -1
- package/dist/collection/core/constants/tags.js +0 -14
- package/dist/collection/core/constants/tags.js.map +0 -1
- package/dist/collection/core/constants/tokens.js +0 -19
- package/dist/collection/core/constants/tokens.js.map +0 -1
- package/dist/collection/data/color-definitions.js +0 -494
- package/dist/collection/data/font-definitions.js +0 -132
- package/dist/collection/helpers/Accessibility/accessibility.js +0 -10
- package/dist/collection/helpers/Accessibility/accessibility.js.map +0 -1
- package/dist/collection/helpers/Accessibility/attributes.js +0 -54
- package/dist/collection/helpers/Accessibility/attributes.js.map +0 -1
- package/dist/collection/helpers/Dom/attribute.js +0 -41
- package/dist/collection/helpers/Dom/attribute.js.map +0 -1
- package/dist/collection/helpers/Dom/document.js +0 -46
- package/dist/collection/helpers/Dom/document.js.map +0 -1
- package/dist/collection/helpers/Dom/form.js +0 -72
- package/dist/collection/helpers/Dom/form.js.map +0 -1
- package/dist/collection/helpers/Dom/form.types.js +0 -2
- package/dist/collection/helpers/Dom/form.types.js.map +0 -1
- package/dist/collection/helpers/Dom/template.js +0 -107
- package/dist/collection/helpers/Dom/template.js.map +0 -1
- package/dist/collection/helpers/Dom/template.types.js +0 -2
- package/dist/collection/helpers/Dom/template.types.js.map +0 -1
- package/dist/collection/helpers/Dom/win.js +0 -27
- package/dist/collection/helpers/Dom/win.js.map +0 -1
- package/dist/collection/helpers/Fragment.js +0 -2
- package/dist/collection/helpers/Fragment.js.map +0 -1
- package/dist/collection/helpers/Log/gov.log.js +0 -21
- package/dist/collection/helpers/Log/gov.log.js.map +0 -1
- package/dist/collection/helpers/Validate/props.js +0 -10
- package/dist/collection/helpers/Validate/props.js.map +0 -1
- package/dist/collection/helpers/Validate/wcag.js +0 -59
- package/dist/collection/helpers/Validate/wcag.js.map +0 -1
- package/dist/collection/index.js +0 -3
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/types/event.types.js +0 -2
- package/dist/collection/types/event.types.js.map +0 -1
- package/dist/collection/types/interfaces.js +0 -2
- package/dist/collection/types/interfaces.js.map +0 -1
- package/dist/collection/utils/array.utils.js +0 -21
- package/dist/collection/utils/array.utils.js.map +0 -1
- package/dist/collection/utils/bool.utils.js +0 -15
- package/dist/collection/utils/bool.utils.js.map +0 -1
- package/dist/collection/utils/dom.utils.js +0 -6
- package/dist/collection/utils/dom.utils.js.map +0 -1
- package/dist/collection/utils/ds.utils.js +0 -5
- package/dist/collection/utils/ds.utils.js.map +0 -1
- package/dist/collection/utils/file.utils.js +0 -26
- package/dist/collection/utils/file.utils.js.map +0 -1
- package/dist/collection/utils/helpers.types.js +0 -54
- package/dist/collection/utils/helpers.types.js.map +0 -1
- package/dist/collection/utils/icon.utils.js +0 -31
- package/dist/collection/utils/icon.utils.js.map +0 -1
- package/dist/collection/utils/number.utils.js +0 -4
- package/dist/collection/utils/number.utils.js.map +0 -1
- package/dist/collection/utils/object.utils.js +0 -30
- package/dist/collection/utils/object.utils.js.map +0 -1
- package/dist/collection/utils/stencil.utils.js +0 -6
- package/dist/collection/utils/stencil.utils.js.map +0 -1
- package/dist/collection/utils/string.utils.js +0 -17
- package/dist/collection/utils/string.utils.js.map +0 -1
- package/dist/collection/utils/utils.js +0 -35
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/gov-accordion-item.d.ts +0 -11
- package/dist/components/gov-accordion-item.js +0 -2
- package/dist/components/gov-accordion-item.js.map +0 -1
- package/dist/components/gov-accordion.d.ts +0 -11
- package/dist/components/gov-accordion.js +0 -2
- package/dist/components/gov-accordion.js.map +0 -1
- package/dist/components/gov-attachments-item.d.ts +0 -11
- package/dist/components/gov-attachments-item.js +0 -2
- package/dist/components/gov-attachments-item.js.map +0 -1
- package/dist/components/gov-attachments.d.ts +0 -11
- package/dist/components/gov-attachments.js +0 -2
- package/dist/components/gov-attachments.js.map +0 -1
- package/dist/components/gov-backdrop.d.ts +0 -11
- package/dist/components/gov-backdrop.js +0 -2
- package/dist/components/gov-backdrop.js.map +0 -1
- package/dist/components/gov-banner.d.ts +0 -11
- package/dist/components/gov-banner.js +0 -2
- package/dist/components/gov-banner.js.map +0 -1
- package/dist/components/gov-blockquote.d.ts +0 -11
- package/dist/components/gov-blockquote.js +0 -2
- package/dist/components/gov-blockquote.js.map +0 -1
- package/dist/components/gov-breadcrumbs.d.ts +0 -11
- package/dist/components/gov-breadcrumbs.js +0 -2
- package/dist/components/gov-breadcrumbs.js.map +0 -1
- package/dist/components/gov-button.d.ts +0 -11
- package/dist/components/gov-button.js +0 -2
- package/dist/components/gov-button.js.map +0 -1
- package/dist/components/gov-card.d.ts +0 -11
- package/dist/components/gov-card.js +0 -2
- package/dist/components/gov-card.js.map +0 -1
- package/dist/components/gov-chip.d.ts +0 -11
- package/dist/components/gov-chip.js +0 -2
- package/dist/components/gov-chip.js.map +0 -1
- package/dist/components/gov-collapsible.d.ts +0 -11
- package/dist/components/gov-collapsible.js +0 -2
- package/dist/components/gov-collapsible.js.map +0 -1
- package/dist/components/gov-container.d.ts +0 -11
- package/dist/components/gov-container.js +0 -2
- package/dist/components/gov-container.js.map +0 -1
- package/dist/components/gov-control-group.d.ts +0 -11
- package/dist/components/gov-control-group.js +0 -2
- package/dist/components/gov-control-group.js.map +0 -1
- package/dist/components/gov-cookiebar.d.ts +0 -11
- package/dist/components/gov-cookiebar.js +0 -2
- package/dist/components/gov-cookiebar.js.map +0 -1
- package/dist/components/gov-dialog.d.ts +0 -11
- package/dist/components/gov-dialog.js +0 -2
- package/dist/components/gov-dialog.js.map +0 -1
- package/dist/components/gov-dropdown.d.ts +0 -11
- package/dist/components/gov-dropdown.js +0 -2
- package/dist/components/gov-dropdown.js.map +0 -1
- package/dist/components/gov-empty.d.ts +0 -11
- package/dist/components/gov-empty.js +0 -2
- package/dist/components/gov-empty.js.map +0 -1
- package/dist/components/gov-error-code.d.ts +0 -11
- package/dist/components/gov-error-code.js +0 -2
- package/dist/components/gov-error-code.js.map +0 -1
- package/dist/components/gov-flex.d.ts +0 -11
- package/dist/components/gov-flex.js +0 -2
- package/dist/components/gov-flex.js.map +0 -1
- package/dist/components/gov-form-autocomplete.d.ts +0 -11
- package/dist/components/gov-form-autocomplete.js +0 -2
- package/dist/components/gov-form-autocomplete.js.map +0 -1
- package/dist/components/gov-form-checkbox-group.d.ts +0 -11
- package/dist/components/gov-form-checkbox-group.js +0 -2
- package/dist/components/gov-form-checkbox-group.js.map +0 -1
- package/dist/components/gov-form-checkbox.d.ts +0 -11
- package/dist/components/gov-form-checkbox.js +0 -2
- package/dist/components/gov-form-checkbox.js.map +0 -1
- package/dist/components/gov-form-control.d.ts +0 -11
- package/dist/components/gov-form-control.js +0 -2
- package/dist/components/gov-form-control.js.map +0 -1
- package/dist/components/gov-form-file.d.ts +0 -11
- package/dist/components/gov-form-file.js +0 -2
- package/dist/components/gov-form-file.js.map +0 -1
- package/dist/components/gov-form-group.d.ts +0 -11
- package/dist/components/gov-form-group.js +0 -2
- package/dist/components/gov-form-group.js.map +0 -1
- package/dist/components/gov-form-input.d.ts +0 -11
- package/dist/components/gov-form-input.js +0 -2
- package/dist/components/gov-form-input.js.map +0 -1
- package/dist/components/gov-form-label.d.ts +0 -11
- package/dist/components/gov-form-label.js +0 -2
- package/dist/components/gov-form-label.js.map +0 -1
- package/dist/components/gov-form-message.d.ts +0 -11
- package/dist/components/gov-form-message.js +0 -2
- package/dist/components/gov-form-message.js.map +0 -1
- package/dist/components/gov-form-multi-select.d.ts +0 -11
- package/dist/components/gov-form-multi-select.js +0 -2
- package/dist/components/gov-form-multi-select.js.map +0 -1
- package/dist/components/gov-form-password-power.d.ts +0 -11
- package/dist/components/gov-form-password-power.js +0 -2
- package/dist/components/gov-form-password-power.js.map +0 -1
- package/dist/components/gov-form-radio-group.d.ts +0 -11
- package/dist/components/gov-form-radio-group.js +0 -2
- package/dist/components/gov-form-radio-group.js.map +0 -1
- package/dist/components/gov-form-radio.d.ts +0 -11
- package/dist/components/gov-form-radio.js +0 -2
- package/dist/components/gov-form-radio.js.map +0 -1
- package/dist/components/gov-form-range.d.ts +0 -11
- package/dist/components/gov-form-range.js +0 -2
- package/dist/components/gov-form-range.js.map +0 -1
- package/dist/components/gov-form-search.d.ts +0 -11
- package/dist/components/gov-form-search.js +0 -2
- package/dist/components/gov-form-search.js.map +0 -1
- package/dist/components/gov-form-select.d.ts +0 -11
- package/dist/components/gov-form-select.js +0 -2
- package/dist/components/gov-form-select.js.map +0 -1
- package/dist/components/gov-form-switch.d.ts +0 -11
- package/dist/components/gov-form-switch.js +0 -2
- package/dist/components/gov-form-switch.js.map +0 -1
- package/dist/components/gov-grid-item.d.ts +0 -11
- package/dist/components/gov-grid-item.js +0 -2
- package/dist/components/gov-grid-item.js.map +0 -1
- package/dist/components/gov-grid.d.ts +0 -11
- package/dist/components/gov-grid.js +0 -2
- package/dist/components/gov-grid.js.map +0 -1
- package/dist/components/gov-icon.d.ts +0 -11
- package/dist/components/gov-icon.js +0 -2
- package/dist/components/gov-icon.js.map +0 -1
- package/dist/components/gov-infobar.d.ts +0 -11
- package/dist/components/gov-infobar.js +0 -2
- package/dist/components/gov-infobar.js.map +0 -1
- package/dist/components/gov-layout-column.d.ts +0 -11
- package/dist/components/gov-layout-column.js +0 -2
- package/dist/components/gov-layout-column.js.map +0 -1
- package/dist/components/gov-layout.d.ts +0 -11
- package/dist/components/gov-layout.js +0 -2
- package/dist/components/gov-layout.js.map +0 -1
- package/dist/components/gov-lifecycle.d.ts +0 -11
- package/dist/components/gov-lifecycle.js +0 -2
- package/dist/components/gov-lifecycle.js.map +0 -1
- package/dist/components/gov-link.d.ts +0 -11
- package/dist/components/gov-link.js +0 -2
- package/dist/components/gov-link.js.map +0 -1
- package/dist/components/gov-loading.d.ts +0 -11
- package/dist/components/gov-loading.js +0 -2
- package/dist/components/gov-loading.js.map +0 -1
- package/dist/components/gov-message.d.ts +0 -11
- package/dist/components/gov-message.js +0 -2
- package/dist/components/gov-message.js.map +0 -1
- package/dist/components/gov-pagination.d.ts +0 -11
- package/dist/components/gov-pagination.js +0 -2
- package/dist/components/gov-pagination.js.map +0 -1
- package/dist/components/gov-skeleton.d.ts +0 -11
- package/dist/components/gov-skeleton.js +0 -2
- package/dist/components/gov-skeleton.js.map +0 -1
- package/dist/components/gov-spacer.d.ts +0 -11
- package/dist/components/gov-spacer.js +0 -2
- package/dist/components/gov-spacer.js.map +0 -1
- package/dist/components/gov-stepper-item.d.ts +0 -11
- package/dist/components/gov-stepper-item.js +0 -2
- package/dist/components/gov-stepper-item.js.map +0 -1
- package/dist/components/gov-stepper.d.ts +0 -11
- package/dist/components/gov-stepper.js +0 -2
- package/dist/components/gov-stepper.js.map +0 -1
- package/dist/components/gov-tabs-item.d.ts +0 -11
- package/dist/components/gov-tabs-item.js +0 -2
- package/dist/components/gov-tabs-item.js.map +0 -1
- package/dist/components/gov-tabs.d.ts +0 -11
- package/dist/components/gov-tabs.js +0 -2
- package/dist/components/gov-tabs.js.map +0 -1
- package/dist/components/gov-tag.d.ts +0 -11
- package/dist/components/gov-tag.js +0 -2
- package/dist/components/gov-tag.js.map +0 -1
- package/dist/components/gov-theme-switch.d.ts +0 -11
- package/dist/components/gov-theme-switch.js +0 -2
- package/dist/components/gov-theme-switch.js.map +0 -1
- package/dist/components/gov-tile.d.ts +0 -11
- package/dist/components/gov-tile.js +0 -2
- package/dist/components/gov-tile.js.map +0 -1
- package/dist/components/gov-toast.d.ts +0 -11
- package/dist/components/gov-toast.js +0 -2
- package/dist/components/gov-toast.js.map +0 -1
- package/dist/components/gov-tooltip-content.d.ts +0 -11
- package/dist/components/gov-tooltip-content.js +0 -2
- package/dist/components/gov-tooltip-content.js.map +0 -1
- package/dist/components/gov-tooltip.d.ts +0 -11
- package/dist/components/gov-tooltip.js +0 -2
- package/dist/components/gov-tooltip.js.map +0 -1
- package/dist/components/gov-wizard-item.d.ts +0 -11
- package/dist/components/gov-wizard-item.js +0 -2
- package/dist/components/gov-wizard-item.js.map +0 -1
- package/dist/components/gov-wizard.d.ts +0 -11
- package/dist/components/gov-wizard.js +0 -2
- package/dist/components/gov-wizard.js.map +0 -1
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -2
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-2_-up8FX.js +0 -2
- package/dist/components/p-2_-up8FX.js.map +0 -1
- package/dist/components/p-4i8qDRtu.js +0 -2
- package/dist/components/p-4i8qDRtu.js.map +0 -1
- package/dist/components/p-5itQzbON.js +0 -2
- package/dist/components/p-5itQzbON.js.map +0 -1
- package/dist/components/p-9VlKyZSl.js +0 -2
- package/dist/components/p-9VlKyZSl.js.map +0 -1
- package/dist/components/p-9imLQpxb.js +0 -2
- package/dist/components/p-9imLQpxb.js.map +0 -1
- package/dist/components/p-B0hcuYXk.js +0 -2
- package/dist/components/p-B0hcuYXk.js.map +0 -1
- package/dist/components/p-B3tdsiZv.js +0 -2
- package/dist/components/p-B3tdsiZv.js.map +0 -1
- package/dist/components/p-BJnSrRNH.js +0 -2
- package/dist/components/p-BJnSrRNH.js.map +0 -1
- package/dist/components/p-BKP-F1qP.js +0 -2
- package/dist/components/p-BKP-F1qP.js.map +0 -1
- package/dist/components/p-BTwdrNoS.js +0 -2
- package/dist/components/p-BTwdrNoS.js.map +0 -1
- package/dist/components/p-BUmDydor.js +0 -2
- package/dist/components/p-BUmDydor.js.map +0 -1
- package/dist/components/p-Ba8Z-AIX.js +0 -2
- package/dist/components/p-Ba8Z-AIX.js.map +0 -1
- package/dist/components/p-BcQO4NH2.js +0 -2
- package/dist/components/p-BcQO4NH2.js.map +0 -1
- package/dist/components/p-BnxqJyb_.js +0 -2
- package/dist/components/p-BnxqJyb_.js.map +0 -1
- package/dist/components/p-C6JN9gdb.js +0 -2
- package/dist/components/p-C6JN9gdb.js.map +0 -1
- package/dist/components/p-CJnwyVlG.js +0 -2
- package/dist/components/p-CJnwyVlG.js.map +0 -1
- package/dist/components/p-CNqoJU2V.js +0 -2
- package/dist/components/p-CNqoJU2V.js.map +0 -1
- package/dist/components/p-CQvUntGY.js +0 -2
- package/dist/components/p-CQvUntGY.js.map +0 -1
- package/dist/components/p-CUVZZBqo.js +0 -2
- package/dist/components/p-CUVZZBqo.js.map +0 -1
- package/dist/components/p-CWqMiVYH.js +0 -2
- package/dist/components/p-CWqMiVYH.js.map +0 -1
- package/dist/components/p-CXgom82_.js +0 -2
- package/dist/components/p-CXgom82_.js.map +0 -1
- package/dist/components/p-CZr7GBEo.js +0 -2
- package/dist/components/p-CZr7GBEo.js.map +0 -1
- package/dist/components/p-CgXcNDpE.js +0 -2
- package/dist/components/p-CgXcNDpE.js.map +0 -1
- package/dist/components/p-Cjg0wpDG.js +0 -2
- package/dist/components/p-Cjg0wpDG.js.map +0 -1
- package/dist/components/p-ClYmjarv.js +0 -2
- package/dist/components/p-ClYmjarv.js.map +0 -1
- package/dist/components/p-D8QfVS4O.js +0 -2
- package/dist/components/p-D8QfVS4O.js.map +0 -1
- package/dist/components/p-DBXGhafv.js +0 -2
- package/dist/components/p-DBXGhafv.js.map +0 -1
- package/dist/components/p-DKo9A5gq.js +0 -2
- package/dist/components/p-DKo9A5gq.js.map +0 -1
- package/dist/components/p-DW1DKFMF.js +0 -2
- package/dist/components/p-DW1DKFMF.js.map +0 -1
- package/dist/components/p-DZJk8GrA.js +0 -2
- package/dist/components/p-DZJk8GrA.js.map +0 -1
- package/dist/components/p-DfI_0WW6.js +0 -2
- package/dist/components/p-DfI_0WW6.js.map +0 -1
- package/dist/components/p-DhGb8cBK.js +0 -2
- package/dist/components/p-DhGb8cBK.js.map +0 -1
- package/dist/components/p-DrPpH_9c.js +0 -2
- package/dist/components/p-DrPpH_9c.js.map +0 -1
- package/dist/components/p-EeKNA85D.js +0 -2
- package/dist/components/p-EeKNA85D.js.map +0 -1
- package/dist/components/p-GYov8gU1.js +0 -2
- package/dist/components/p-GYov8gU1.js.map +0 -1
- package/dist/components/p-Nvj7WFs_.js +0 -2
- package/dist/components/p-Nvj7WFs_.js.map +0 -1
- package/dist/components/p-Q99QrOoi.js +0 -2
- package/dist/components/p-Q99QrOoi.js.map +0 -1
- package/dist/components/p-U40vKHrs.js +0 -2
- package/dist/components/p-U40vKHrs.js.map +0 -1
- package/dist/components/p-_FzmpyXv.js +0 -2
- package/dist/components/p-_FzmpyXv.js.map +0 -1
- package/dist/components/p-vN03FcXN.js +0 -2
- package/dist/components/p-vN03FcXN.js.map +0 -1
- package/dist/core/core.css +0 -14776
- package/dist/core/core.esm.js +0 -2
- package/dist/core/core.esm.js.map +0 -1
- package/dist/core/gov-accordion-item.entry.esm.js.map +0 -1
- package/dist/core/gov-accordion.entry.esm.js.map +0 -1
- package/dist/core/gov-attachments.gov-attachments-item.gov-form-message.entry.esm.js.map +0 -1
- package/dist/core/gov-backdrop.entry.esm.js.map +0 -1
- package/dist/core/gov-banner.entry.esm.js.map +0 -1
- package/dist/core/gov-blockquote.entry.esm.js.map +0 -1
- package/dist/core/gov-breadcrumbs.entry.esm.js.map +0 -1
- package/dist/core/gov-button.entry.esm.js.map +0 -1
- package/dist/core/gov-card.entry.esm.js.map +0 -1
- package/dist/core/gov-chip.entry.esm.js.map +0 -1
- package/dist/core/gov-collapsible.entry.esm.js.map +0 -1
- package/dist/core/gov-container.entry.esm.js.map +0 -1
- package/dist/core/gov-control-group.entry.esm.js.map +0 -1
- package/dist/core/gov-cookiebar.entry.esm.js.map +0 -1
- package/dist/core/gov-dialog.entry.esm.js.map +0 -1
- package/dist/core/gov-dropdown.entry.esm.js.map +0 -1
- package/dist/core/gov-empty.entry.esm.js.map +0 -1
- package/dist/core/gov-error-code.entry.esm.js.map +0 -1
- package/dist/core/gov-flex.gov-icon.gov-theme-switch.entry.esm.js.map +0 -1
- package/dist/core/gov-form-autocomplete.entry.esm.js.map +0 -1
- package/dist/core/gov-form-checkbox-group.entry.esm.js.map +0 -1
- package/dist/core/gov-form-checkbox.entry.esm.js.map +0 -1
- package/dist/core/gov-form-control.entry.esm.js.map +0 -1
- package/dist/core/gov-form-file.entry.esm.js.map +0 -1
- package/dist/core/gov-form-group.entry.esm.js.map +0 -1
- package/dist/core/gov-form-input.gov-skeleton.entry.esm.js.map +0 -1
- package/dist/core/gov-form-label.entry.esm.js.map +0 -1
- package/dist/core/gov-form-multi-select.entry.esm.js.map +0 -1
- package/dist/core/gov-form-password-power.entry.esm.js.map +0 -1
- package/dist/core/gov-form-radio-group.entry.esm.js.map +0 -1
- package/dist/core/gov-form-radio.entry.esm.js.map +0 -1
- package/dist/core/gov-form-range.entry.esm.js.map +0 -1
- package/dist/core/gov-form-search.entry.esm.js.map +0 -1
- package/dist/core/gov-form-select.entry.esm.js.map +0 -1
- package/dist/core/gov-form-switch.entry.esm.js.map +0 -1
- package/dist/core/gov-grid-item.entry.esm.js.map +0 -1
- package/dist/core/gov-grid.entry.esm.js.map +0 -1
- package/dist/core/gov-infobar.entry.esm.js.map +0 -1
- package/dist/core/gov-layout-column.entry.esm.js.map +0 -1
- package/dist/core/gov-layout.entry.esm.js.map +0 -1
- package/dist/core/gov-lifecycle.entry.esm.js.map +0 -1
- package/dist/core/gov-link.entry.esm.js.map +0 -1
- package/dist/core/gov-loading.entry.esm.js.map +0 -1
- package/dist/core/gov-message.entry.esm.js.map +0 -1
- package/dist/core/gov-pagination.entry.esm.js.map +0 -1
- package/dist/core/gov-spacer.entry.esm.js.map +0 -1
- package/dist/core/gov-stepper-item.entry.esm.js.map +0 -1
- package/dist/core/gov-stepper.entry.esm.js.map +0 -1
- package/dist/core/gov-tabs-item.entry.esm.js.map +0 -1
- package/dist/core/gov-tabs.entry.esm.js.map +0 -1
- package/dist/core/gov-tag.entry.esm.js.map +0 -1
- package/dist/core/gov-tile.entry.esm.js.map +0 -1
- package/dist/core/gov-toast.entry.esm.js.map +0 -1
- package/dist/core/gov-tooltip.gov-tooltip-content.entry.esm.js.map +0 -1
- package/dist/core/gov-wizard-item.entry.esm.js.map +0 -1
- package/dist/core/gov-wizard.entry.esm.js.map +0 -1
- package/dist/core/index.esm.js +0 -2
- package/dist/core/index.esm.js.map +0 -1
- package/dist/core/loader.esm.js.map +0 -1
- package/dist/core/p-017d6340.entry.js +0 -2
- package/dist/core/p-017d6340.entry.js.map +0 -1
- package/dist/core/p-01bc645f.entry.js +0 -2
- package/dist/core/p-01bc645f.entry.js.map +0 -1
- package/dist/core/p-0e06af2b.entry.js +0 -2
- package/dist/core/p-0e06af2b.entry.js.map +0 -1
- package/dist/core/p-1375d52d.entry.js +0 -2
- package/dist/core/p-1375d52d.entry.js.map +0 -1
- package/dist/core/p-264cbd4e.entry.js +0 -2
- package/dist/core/p-264cbd4e.entry.js.map +0 -1
- package/dist/core/p-2cfa670d.entry.js +0 -2
- package/dist/core/p-2cfa670d.entry.js.map +0 -1
- package/dist/core/p-33a62c22.entry.js +0 -2
- package/dist/core/p-33a62c22.entry.js.map +0 -1
- package/dist/core/p-37f6095e.entry.js +0 -2
- package/dist/core/p-37f6095e.entry.js.map +0 -1
- package/dist/core/p-3cf20b56.entry.js +0 -2
- package/dist/core/p-3cf20b56.entry.js.map +0 -1
- package/dist/core/p-46824842.entry.js +0 -2
- package/dist/core/p-46824842.entry.js.map +0 -1
- package/dist/core/p-46effc25.entry.js +0 -2
- package/dist/core/p-46effc25.entry.js.map +0 -1
- package/dist/core/p-495e25d8.entry.js +0 -2
- package/dist/core/p-495e25d8.entry.js.map +0 -1
- package/dist/core/p-4aea131f.entry.js +0 -2
- package/dist/core/p-4aea131f.entry.js.map +0 -1
- package/dist/core/p-4ce8e721.entry.js +0 -2
- package/dist/core/p-4ce8e721.entry.js.map +0 -1
- package/dist/core/p-5283672a.entry.js +0 -2
- package/dist/core/p-5283672a.entry.js.map +0 -1
- package/dist/core/p-54209c57.entry.js +0 -2
- package/dist/core/p-54209c57.entry.js.map +0 -1
- package/dist/core/p-56dc11ba.entry.js +0 -2
- package/dist/core/p-56dc11ba.entry.js.map +0 -1
- package/dist/core/p-5721cf9b.entry.js +0 -2
- package/dist/core/p-5721cf9b.entry.js.map +0 -1
- package/dist/core/p-58911028.entry.js +0 -2
- package/dist/core/p-58911028.entry.js.map +0 -1
- package/dist/core/p-5itQzbON.js +0 -2
- package/dist/core/p-5itQzbON.js.map +0 -1
- package/dist/core/p-617b0dbe.entry.js +0 -2
- package/dist/core/p-617b0dbe.entry.js.map +0 -1
- package/dist/core/p-6781bfc0.entry.js +0 -2
- package/dist/core/p-6781bfc0.entry.js.map +0 -1
- package/dist/core/p-67d1e6e2.entry.js +0 -2
- package/dist/core/p-67d1e6e2.entry.js.map +0 -1
- package/dist/core/p-6e42a12a.entry.js +0 -2
- package/dist/core/p-6e42a12a.entry.js.map +0 -1
- package/dist/core/p-6f173022.entry.js +0 -2
- package/dist/core/p-6f173022.entry.js.map +0 -1
- package/dist/core/p-7099beb0.entry.js +0 -2
- package/dist/core/p-7099beb0.entry.js.map +0 -1
- package/dist/core/p-715c0e2e.entry.js +0 -2
- package/dist/core/p-715c0e2e.entry.js.map +0 -1
- package/dist/core/p-7387370c.entry.js +0 -2
- package/dist/core/p-7387370c.entry.js.map +0 -1
- package/dist/core/p-768fe015.entry.js +0 -2
- package/dist/core/p-768fe015.entry.js.map +0 -1
- package/dist/core/p-7a3d4b6b.entry.js +0 -2
- package/dist/core/p-7a3d4b6b.entry.js.map +0 -1
- package/dist/core/p-7f4cf2f9.entry.js +0 -2
- package/dist/core/p-7f4cf2f9.entry.js.map +0 -1
- package/dist/core/p-8161e1fe.entry.js +0 -2
- package/dist/core/p-8161e1fe.entry.js.map +0 -1
- package/dist/core/p-820eb0fb.entry.js +0 -2
- package/dist/core/p-820eb0fb.entry.js.map +0 -1
- package/dist/core/p-8655fd24.entry.js +0 -2
- package/dist/core/p-8655fd24.entry.js.map +0 -1
- package/dist/core/p-8f6172d4.entry.js +0 -2
- package/dist/core/p-8f6172d4.entry.js.map +0 -1
- package/dist/core/p-90cd5ffe.entry.js +0 -2
- package/dist/core/p-90cd5ffe.entry.js.map +0 -1
- package/dist/core/p-98314c19.entry.js +0 -2
- package/dist/core/p-98314c19.entry.js.map +0 -1
- package/dist/core/p-B6CqPcY_.js +0 -2
- package/dist/core/p-B6CqPcY_.js.map +0 -1
- package/dist/core/p-BUmDydor.js +0 -2
- package/dist/core/p-BUmDydor.js.map +0 -1
- package/dist/core/p-BcQO4NH2.js +0 -2
- package/dist/core/p-BcQO4NH2.js.map +0 -1
- package/dist/core/p-BjcqOprh.js +0 -2
- package/dist/core/p-BjcqOprh.js.map +0 -1
- package/dist/core/p-Bo1ROm5Q.js +0 -2
- package/dist/core/p-Bo1ROm5Q.js.map +0 -1
- package/dist/core/p-Bz_RzYFb.js +0 -2
- package/dist/core/p-Bz_RzYFb.js.map +0 -1
- package/dist/core/p-C3R1T_pg.js +0 -2
- package/dist/core/p-C3R1T_pg.js.map +0 -1
- package/dist/core/p-C6JN9gdb.js +0 -2
- package/dist/core/p-C6JN9gdb.js.map +0 -1
- package/dist/core/p-CDIRBJsi.js +0 -2
- package/dist/core/p-CDIRBJsi.js.map +0 -1
- package/dist/core/p-CQvUntGY.js +0 -2
- package/dist/core/p-CQvUntGY.js.map +0 -1
- package/dist/core/p-Ccwpa1ck.js +0 -2
- package/dist/core/p-Ccwpa1ck.js.map +0 -1
- package/dist/core/p-CgDnDrq5.js +0 -2
- package/dist/core/p-CgDnDrq5.js.map +0 -1
- package/dist/core/p-Cjg0wpDG.js +0 -2
- package/dist/core/p-Cjg0wpDG.js.map +0 -1
- package/dist/core/p-ClISz4NF.js +0 -3
- package/dist/core/p-ClISz4NF.js.map +0 -1
- package/dist/core/p-CoD1xawt.js +0 -2
- package/dist/core/p-CoD1xawt.js.map +0 -1
- package/dist/core/p-Cx3bEC5v.js +0 -2
- package/dist/core/p-Cx3bEC5v.js.map +0 -1
- package/dist/core/p-CzXeijOj.js +0 -2
- package/dist/core/p-CzXeijOj.js.map +0 -1
- package/dist/core/p-D4TGB274.js +0 -2
- package/dist/core/p-D4TGB274.js.map +0 -1
- package/dist/core/p-DBXGhafv.js +0 -2
- package/dist/core/p-DBXGhafv.js.map +0 -1
- package/dist/core/p-DNztiAH0.js +0 -2
- package/dist/core/p-DNztiAH0.js.map +0 -1
- package/dist/core/p-DQuL1Twl.js +0 -2
- package/dist/core/p-DQuL1Twl.js.map +0 -1
- package/dist/core/p-DYcNEwSZ.js +0 -2
- package/dist/core/p-DYcNEwSZ.js.map +0 -1
- package/dist/core/p-EeKNA85D.js +0 -2
- package/dist/core/p-EeKNA85D.js.map +0 -1
- package/dist/core/p-GYov8gU1.js +0 -2
- package/dist/core/p-GYov8gU1.js.map +0 -1
- package/dist/core/p-NOJjz9dT.js +0 -2
- package/dist/core/p-NOJjz9dT.js.map +0 -1
- package/dist/core/p-Q99QrOoi.js +0 -2
- package/dist/core/p-Q99QrOoi.js.map +0 -1
- package/dist/core/p-U40vKHrs.js +0 -2
- package/dist/core/p-U40vKHrs.js.map +0 -1
- package/dist/core/p-ac962619.entry.js +0 -2
- package/dist/core/p-ac962619.entry.js.map +0 -1
- package/dist/core/p-ae6d0bcd.entry.js +0 -2
- package/dist/core/p-ae6d0bcd.entry.js.map +0 -1
- package/dist/core/p-b3b517f0.entry.js +0 -2
- package/dist/core/p-b3b517f0.entry.js.map +0 -1
- package/dist/core/p-b7306a6f.entry.js +0 -2
- package/dist/core/p-b7306a6f.entry.js.map +0 -1
- package/dist/core/p-b93548cc.entry.js +0 -2
- package/dist/core/p-b93548cc.entry.js.map +0 -1
- package/dist/core/p-be3bbe06.entry.js +0 -2
- package/dist/core/p-be3bbe06.entry.js.map +0 -1
- package/dist/core/p-c6b55c0a.entry.js +0 -2
- package/dist/core/p-c6b55c0a.entry.js.map +0 -1
- package/dist/core/p-cf06a38b.entry.js +0 -2
- package/dist/core/p-cf06a38b.entry.js.map +0 -1
- package/dist/core/p-dec65494.entry.js +0 -2
- package/dist/core/p-dec65494.entry.js.map +0 -1
- package/dist/core/p-df09f0be.entry.js +0 -2
- package/dist/core/p-df09f0be.entry.js.map +0 -1
- package/dist/core/p-e0634fae.entry.js +0 -2
- package/dist/core/p-e0634fae.entry.js.map +0 -1
- package/dist/core/p-e1b2af6b.entry.js +0 -2
- package/dist/core/p-e1b2af6b.entry.js.map +0 -1
- package/dist/core/p-e29cd545.entry.js +0 -2
- package/dist/core/p-e29cd545.entry.js.map +0 -1
- package/dist/core/p-e5e7abe0.entry.js +0 -2
- package/dist/core/p-e5e7abe0.entry.js.map +0 -1
- package/dist/core/p-e7f889c7.entry.js +0 -2
- package/dist/core/p-e7f889c7.entry.js.map +0 -1
- package/dist/core/p-ebd3d25f.entry.js +0 -2
- package/dist/core/p-ebd3d25f.entry.js.map +0 -1
- package/dist/core/p-f067af74.entry.js +0 -2
- package/dist/core/p-f067af74.entry.js.map +0 -1
- package/dist/core/p-f58a20af.entry.js +0 -2
- package/dist/core/p-f58a20af.entry.js.map +0 -1
- package/dist/core/p-f7bdb44a.entry.js +0 -2
- package/dist/core/p-f7bdb44a.entry.js.map +0 -1
- package/dist/core/p-fe3bd57c.entry.js +0 -2
- package/dist/core/p-fe3bd57c.entry.js.map +0 -1
- package/dist/core/p-vN03FcXN.js +0 -2
- package/dist/core/p-vN03FcXN.js.map +0 -1
- package/dist/dist/components/gov-accordion-item.d.ts +0 -11
- package/dist/dist/components/gov-accordion.d.ts +0 -11
- package/dist/dist/components/gov-app.d.ts +0 -11
- package/dist/dist/components/gov-attachments-item.d.ts +0 -11
- package/dist/dist/components/gov-attachments.d.ts +0 -11
- package/dist/dist/components/gov-backdrop.d.ts +0 -11
- package/dist/dist/components/gov-banner.d.ts +0 -11
- package/dist/dist/components/gov-blockquote.d.ts +0 -11
- package/dist/dist/components/gov-breadcrumbs.d.ts +0 -11
- package/dist/dist/components/gov-button.d.ts +0 -11
- package/dist/dist/components/gov-card.d.ts +0 -11
- package/dist/dist/components/gov-chip.d.ts +0 -11
- package/dist/dist/components/gov-collapsible.d.ts +0 -11
- package/dist/dist/components/gov-container.d.ts +0 -11
- package/dist/dist/components/gov-control-group.d.ts +0 -11
- package/dist/dist/components/gov-cookiebar.d.ts +0 -11
- package/dist/dist/components/gov-dialog.d.ts +0 -11
- package/dist/dist/components/gov-dropdown.d.ts +0 -11
- package/dist/dist/components/gov-empty.d.ts +0 -11
- package/dist/dist/components/gov-error-code.d.ts +0 -11
- package/dist/dist/components/gov-flex.d.ts +0 -11
- package/dist/dist/components/gov-form-autocomplete.d.ts +0 -11
- package/dist/dist/components/gov-form-checkbox-group.d.ts +0 -11
- package/dist/dist/components/gov-form-checkbox.d.ts +0 -11
- package/dist/dist/components/gov-form-control.d.ts +0 -11
- package/dist/dist/components/gov-form-file.d.ts +0 -11
- package/dist/dist/components/gov-form-group.d.ts +0 -11
- package/dist/dist/components/gov-form-input.d.ts +0 -11
- package/dist/dist/components/gov-form-label.d.ts +0 -11
- package/dist/dist/components/gov-form-message.d.ts +0 -11
- package/dist/dist/components/gov-form-multi-select.d.ts +0 -11
- package/dist/dist/components/gov-form-password-power.d.ts +0 -11
- package/dist/dist/components/gov-form-radio-group.d.ts +0 -11
- package/dist/dist/components/gov-form-radio.d.ts +0 -11
- package/dist/dist/components/gov-form-range.d.ts +0 -11
- package/dist/dist/components/gov-form-search.d.ts +0 -11
- package/dist/dist/components/gov-form-select.d.ts +0 -11
- package/dist/dist/components/gov-form-switch.d.ts +0 -11
- package/dist/dist/components/gov-grid-item.d.ts +0 -11
- package/dist/dist/components/gov-grid.d.ts +0 -11
- package/dist/dist/components/gov-icon.d.ts +0 -11
- package/dist/dist/components/gov-infobar.d.ts +0 -11
- package/dist/dist/components/gov-layout-column.d.ts +0 -11
- package/dist/dist/components/gov-layout.d.ts +0 -11
- package/dist/dist/components/gov-lifecycle.d.ts +0 -11
- package/dist/dist/components/gov-link.d.ts +0 -11
- package/dist/dist/components/gov-loading.d.ts +0 -11
- package/dist/dist/components/gov-message.d.ts +0 -11
- package/dist/dist/components/gov-pagination.d.ts +0 -11
- package/dist/dist/components/gov-skeleton.d.ts +0 -11
- package/dist/dist/components/gov-spacer.d.ts +0 -11
- package/dist/dist/components/gov-stepper-item.d.ts +0 -11
- package/dist/dist/components/gov-stepper.d.ts +0 -11
- package/dist/dist/components/gov-tabs-item.d.ts +0 -11
- package/dist/dist/components/gov-tabs.d.ts +0 -11
- package/dist/dist/components/gov-tag.d.ts +0 -11
- package/dist/dist/components/gov-theme-switch.d.ts +0 -11
- package/dist/dist/components/gov-tile.d.ts +0 -11
- package/dist/dist/components/gov-toast.d.ts +0 -11
- package/dist/dist/components/gov-tooltip-content.d.ts +0 -11
- package/dist/dist/components/gov-tooltip.d.ts +0 -11
- package/dist/dist/components/gov-wizard-item.d.ts +0 -11
- package/dist/dist/components/gov-wizard.d.ts +0 -11
- package/dist/dist/components/index.d.ts +0 -33
- package/dist/dist/dist/components/index.d.ts +0 -33
- package/dist/dist/dist/globals.d.ts +0 -2
- package/dist/dist/dist/hydrate/index.d.ts +0 -273
- package/dist/dist/dist/types/interfaces.d.ts +0 -1
- package/dist/dist/dist/types/stencil-public-runtime.d.ts +0 -1702
- package/dist/dist/globals.d.ts +0 -2
- package/dist/dist/hydrate/index.d.ts +0 -273
- package/dist/dist/types/components/gov-accordion/constants.d.ts +0 -19
- package/dist/dist/types/components/gov-accordion/gov-accordion-item.d.ts +0 -43
- package/dist/dist/types/components/gov-accordion/gov-accordion.d.ts +0 -26
- package/dist/dist/types/components/gov-accordion/gov-accordion.types.d.ts +0 -9
- package/dist/dist/types/components/gov-attachments/constants.d.ts +0 -11
- package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +0 -4
- package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.ts +0 -24
- package/dist/dist/types/components/gov-attachments/gov-attachments.d.ts +0 -19
- package/dist/dist/types/components/gov-backdrop/constants.d.ts +0 -4
- package/dist/dist/types/components/gov-backdrop/gov-backdrop.d.ts +0 -32
- package/dist/dist/types/components/gov-banner/constants.d.ts +0 -26
- package/dist/dist/types/components/gov-banner/gov-banner.d.ts +0 -28
- package/dist/dist/types/components/gov-blockquote/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-blockquote/gov-blockquote.d.ts +0 -15
- package/dist/dist/types/components/gov-breadcrumbs/constants.d.ts +0 -3
- package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +0 -4
- package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +0 -42
- package/dist/dist/types/components/gov-button/button/constants.d.ts +0 -29
- package/dist/dist/types/components/gov-button/button/gov-button.d.ts +0 -133
- package/dist/dist/types/components/gov-button/button/gov-button.types.d.ts +0 -4
- package/dist/dist/types/components/gov-button/dropdown/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +0 -40
- package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +0 -4
- package/dist/dist/types/components/gov-card/constants.d.ts +0 -16
- package/dist/dist/types/components/gov-card/gov-card.d.ts +0 -57
- package/dist/dist/types/components/gov-card/interfaces.d.ts +0 -4
- package/dist/dist/types/components/gov-chip/constants.d.ts +0 -21
- package/dist/dist/types/components/gov-chip/gov-chip.d.ts +0 -82
- package/dist/dist/types/components/gov-collapsible/constants.d.ts +0 -18
- package/dist/dist/types/components/gov-collapsible/gov-collapsible.d.ts +0 -36
- package/dist/dist/types/components/gov-container/constants.d.ts +0 -3
- package/dist/dist/types/components/gov-container/gov-container.d.ts +0 -6
- package/dist/dist/types/components/gov-control-group/constants.d.ts +0 -7
- package/dist/dist/types/components/gov-control-group/gov-control-group.d.ts +0 -24
- package/dist/dist/types/components/gov-cookiebar/constants.d.ts +0 -7
- package/dist/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +0 -7
- package/dist/dist/types/components/gov-dialog/constants.d.ts +0 -11
- package/dist/dist/types/components/gov-dialog/gov-dialog.d.ts +0 -70
- package/dist/dist/types/components/gov-empty/constants.d.ts +0 -19
- package/dist/dist/types/components/gov-empty/gov-empty.d.ts +0 -21
- package/dist/dist/types/components/gov-error-code/constants.d.ts +0 -4
- package/dist/dist/types/components/gov-error-code/gov-error-code.d.ts +0 -6
- package/dist/dist/types/components/gov-flex/constants.d.ts +0 -7
- package/dist/dist/types/components/gov-flex/gov-flex.d.ts +0 -39
- package/dist/dist/types/components/gov-form/autocomplete/constants.d.ts +0 -11
- package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +0 -149
- package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +0 -9
- package/dist/dist/types/components/gov-form/checkbox/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +0 -86
- package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +0 -5
- package/dist/dist/types/components/gov-form/control/constants.d.ts +0 -9
- package/dist/dist/types/components/gov-form/control/gov-form-control.d.ts +0 -40
- package/dist/dist/types/components/gov-form/file/constants.d.ts +0 -7
- package/dist/dist/types/components/gov-form/file/gov-form-file.d.ts +0 -129
- package/dist/dist/types/components/gov-form/file/gov-form-file.types.d.ts +0 -11
- package/dist/dist/types/components/gov-form/group/constants.d.ts +0 -18
- package/dist/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +0 -32
- package/dist/dist/types/components/gov-form/group/gov-form-group.d.ts +0 -18
- package/dist/dist/types/components/gov-form/group/gov-form-group.types.d.ts +0 -7
- package/dist/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +0 -32
- package/dist/dist/types/components/gov-form/input/constants.d.ts +0 -28
- package/dist/dist/types/components/gov-form/input/gov-form-input.d.ts +0 -178
- package/dist/dist/types/components/gov-form/input/gov-form-input.types.d.ts +0 -4
- package/dist/dist/types/components/gov-form/label/constants.d.ts +0 -8
- package/dist/dist/types/components/gov-form/label/gov-form-label.d.ts +0 -26
- package/dist/dist/types/components/gov-form/message/constants.d.ts +0 -11
- package/dist/dist/types/components/gov-form/message/gov-form-message.d.ts +0 -23
- package/dist/dist/types/components/gov-form/multiselect/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -127
- package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +0 -10
- package/dist/dist/types/components/gov-form/password-power/constants.d.ts +0 -5
- package/dist/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +0 -7
- package/dist/dist/types/components/gov-form/radio/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-form/radio/gov-form-radio.d.ts +0 -83
- package/dist/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +0 -5
- package/dist/dist/types/components/gov-form/range/constants.d.ts +0 -9
- package/dist/dist/types/components/gov-form/range/gov-form-range.d.ts +0 -116
- package/dist/dist/types/components/gov-form/search/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-form/search/gov-form-search.d.ts +0 -13
- package/dist/dist/types/components/gov-form/select/constants.d.ts +0 -8
- package/dist/dist/types/components/gov-form/select/gov-form-select.d.ts +0 -89
- package/dist/dist/types/components/gov-form/select/gov-form-select.types.d.ts +0 -9
- package/dist/dist/types/components/gov-form/switch/constants.d.ts +0 -12
- package/dist/dist/types/components/gov-form/switch/gov-form-switch.d.ts +0 -81
- package/dist/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +0 -5
- package/dist/dist/types/components/gov-grid/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-grid/gov-grid-item.d.ts +0 -46
- package/dist/dist/types/components/gov-grid/gov-grid.d.ts +0 -19
- package/dist/dist/types/components/gov-icon/constants.d.ts +0 -18
- package/dist/dist/types/components/gov-icon/gov-icon.d.ts +0 -34
- package/dist/dist/types/components/gov-icon/helpers.d.ts +0 -6
- package/dist/dist/types/components/gov-icon/list.d.ts +0 -3
- package/dist/dist/types/components/gov-infobar/constants.d.ts +0 -16
- package/dist/dist/types/components/gov-infobar/gov-infobar.d.ts +0 -51
- package/dist/dist/types/components/gov-infobar/gov-infobar.types.d.ts +0 -4
- package/dist/dist/types/components/gov-layout/constants.d.ts +0 -20
- package/dist/dist/types/components/gov-layout/gov-layout-column.d.ts +0 -6
- package/dist/dist/types/components/gov-layout/gov-layout.d.ts +0 -20
- package/dist/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +0 -14
- package/dist/dist/types/components/gov-link/constants.d.ts +0 -8
- package/dist/dist/types/components/gov-link/gov-link.d.ts +0 -34
- package/dist/dist/types/components/gov-loading/loading/constants.d.ts +0 -9
- package/dist/dist/types/components/gov-loading/loading/gov-loading.d.ts +0 -13
- package/dist/dist/types/components/gov-loading/skeleton/constants.d.ts +0 -21
- package/dist/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +0 -46
- package/dist/dist/types/components/gov-message/constants.d.ts +0 -13
- package/dist/dist/types/components/gov-message/gov-message.d.ts +0 -16
- package/dist/dist/types/components/gov-pagination/constants.d.ts +0 -22
- package/dist/dist/types/components/gov-pagination/gov-pagination.d.ts +0 -97
- package/dist/dist/types/components/gov-pagination/gov-pagination.types.d.ts +0 -5
- package/dist/dist/types/components/gov-pagination/pagination.d.ts +0 -12
- package/dist/dist/types/components/gov-spacer/constants.d.ts +0 -15
- package/dist/dist/types/components/gov-spacer/gov-spacer.d.ts +0 -18
- package/dist/dist/types/components/gov-stepper/stepper/constants.d.ts +0 -21
- package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +0 -4
- package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +0 -31
- package/dist/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +0 -22
- package/dist/dist/types/components/gov-tabs/constants.d.ts +0 -28
- package/dist/dist/types/components/gov-tabs/gov-tabs-item.d.ts +0 -54
- package/dist/dist/types/components/gov-tabs/gov-tabs.d.ts +0 -70
- package/dist/dist/types/components/gov-tabs/gov-tabs.types.d.ts +0 -14
- package/dist/dist/types/components/gov-tag/constants.d.ts +0 -12
- package/dist/dist/types/components/gov-tag/gov-tag.d.ts +0 -35
- package/dist/dist/types/components/gov-theme-switch/constants.d.ts +0 -12
- package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +0 -46
- package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +0 -10
- package/dist/dist/types/components/gov-tile/constants.d.ts +0 -13
- package/dist/dist/types/components/gov-tile/gov-tile.d.ts +0 -34
- package/dist/dist/types/components/gov-toast/constants.d.ts +0 -17
- package/dist/dist/types/components/gov-toast/gov-toast.d.ts +0 -58
- package/dist/dist/types/components/gov-tooltip/constants.d.ts +0 -20
- package/dist/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +0 -28
- package/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +0 -58
- package/dist/dist/types/components/gov-wizard/constants.d.ts +0 -19
- package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +0 -4
- package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.ts +0 -60
- package/dist/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +0 -4
- package/dist/dist/types/components/gov-wizard/gov-wizard.d.ts +0 -35
- package/dist/dist/types/core/constants/colors.d.ts +0 -13
- package/dist/dist/types/core/constants/sizes.d.ts +0 -13
- package/dist/dist/types/core/constants/tags.d.ts +0 -12
- package/dist/dist/types/core/constants/tokens.d.ts +0 -1
- package/dist/dist/types/helpers/Accessibility/accessibility.d.ts +0 -1
- package/dist/dist/types/helpers/Accessibility/attributes.d.ts +0 -1
- package/dist/dist/types/helpers/Dom/attribute.d.ts +0 -13
- package/dist/dist/types/helpers/Dom/document.d.ts +0 -4
- package/dist/dist/types/helpers/Dom/form.d.ts +0 -3
- package/dist/dist/types/helpers/Dom/form.types.d.ts +0 -11
- package/dist/dist/types/helpers/Dom/template.d.ts +0 -10
- package/dist/dist/types/helpers/Dom/template.types.d.ts +0 -14
- package/dist/dist/types/helpers/Dom/win.d.ts +0 -18
- package/dist/dist/types/helpers/Fragment.d.ts +0 -2
- package/dist/dist/types/helpers/Log/gov.log.d.ts +0 -8
- package/dist/dist/types/helpers/Validate/props.d.ts +0 -1
- package/dist/dist/types/helpers/Validate/wcag.d.ts +0 -4
- package/dist/dist/types/index.d.ts +0 -0
- package/dist/dist/types/interfaces.d.ts +0 -1
- package/dist/dist/types/stencil-public-runtime.d.ts +0 -1702
- package/dist/dist/types/types/event.types.d.ts +0 -4
- package/dist/dist/types/types/interfaces.d.ts +0 -2
- package/dist/dist/types/types/typings.d.ts +0 -6
- package/dist/dist/types/utils/array.utils.d.ts +0 -2
- package/dist/dist/types/utils/bool.utils.d.ts +0 -1
- package/dist/dist/types/utils/dom.utils.d.ts +0 -1
- package/dist/dist/types/utils/ds.utils.d.ts +0 -1
- package/dist/dist/types/utils/file.utils.d.ts +0 -3
- package/dist/dist/types/utils/helpers.types.d.ts +0 -49
- package/dist/dist/types/utils/icon.utils.d.ts +0 -4
- package/dist/dist/types/utils/number.utils.d.ts +0 -1
- package/dist/dist/types/utils/object.utils.d.ts +0 -2
- package/dist/dist/types/utils/stencil.utils.d.ts +0 -1
- package/dist/dist/types/utils/string.utils.d.ts +0 -4
- package/dist/dist/types/utils/utils.d.ts +0 -20
- package/dist/esm/Fragment-5itQzbON.js +0 -6
- package/dist/esm/Fragment-5itQzbON.js.map +0 -1
- package/dist/esm/accessibility-wqNV8djF.js +0 -11
- package/dist/esm/accessibility-wqNV8djF.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/array.utils-CJ0U_ONv.js +0 -42
- package/dist/esm/array.utils-CJ0U_ONv.js.map +0 -1
- package/dist/esm/attribute-Bz_RzYFb.js +0 -99
- package/dist/esm/attribute-Bz_RzYFb.js.map +0 -1
- package/dist/esm/colors-U40vKHrs.js +0 -19
- package/dist/esm/colors-U40vKHrs.js.map +0 -1
- package/dist/esm/constants-BNBB_29K.js +0 -33
- package/dist/esm/constants-BNBB_29K.js.map +0 -1
- package/dist/esm/constants-BegH8u6i.js +0 -15
- package/dist/esm/constants-BegH8u6i.js.map +0 -1
- package/dist/esm/constants-BiWo5BNa.js +0 -13
- package/dist/esm/constants-BiWo5BNa.js.map +0 -1
- package/dist/esm/constants-CysDgoMA.js +0 -13
- package/dist/esm/constants-CysDgoMA.js.map +0 -1
- package/dist/esm/constants-DHvN41Ek.js +0 -32
- package/dist/esm/constants-DHvN41Ek.js.map +0 -1
- package/dist/esm/constants-DbTQsVRc.js +0 -23
- package/dist/esm/constants-DbTQsVRc.js.map +0 -1
- package/dist/esm/constants-Du0ZtfYe.js +0 -23
- package/dist/esm/constants-Du0ZtfYe.js.map +0 -1
- package/dist/esm/constants-Q99QrOoi.js +0 -23
- package/dist/esm/constants-Q99QrOoi.js.map +0 -1
- package/dist/esm/constants-YOtDGTm5.js +0 -23
- package/dist/esm/constants-YOtDGTm5.js.map +0 -1
- package/dist/esm/constants-aqe7GX2n.js +0 -16
- package/dist/esm/constants-aqe7GX2n.js.map +0 -1
- package/dist/esm/constants-oYp2tkdN.js +0 -22
- package/dist/esm/constants-oYp2tkdN.js.map +0 -1
- package/dist/esm/core.js +0 -45
- package/dist/esm/core.js.map +0 -1
- package/dist/esm/form-DvhJiKwA.js +0 -141
- package/dist/esm/form-DvhJiKwA.js.map +0 -1
- package/dist/esm/gov-accordion-item.entry.js +0 -78
- package/dist/esm/gov-accordion-item.entry.js.map +0 -1
- package/dist/esm/gov-accordion.entry.js +0 -57
- package/dist/esm/gov-accordion.entry.js.map +0 -1
- package/dist/esm/gov-attachments.gov-attachments-item.gov-form-message.entry.js.map +0 -1
- package/dist/esm/gov-attachments_3.entry.js +0 -117
- package/dist/esm/gov-attachments_3.entry.js.map +0 -1
- package/dist/esm/gov-backdrop.entry.js +0 -53
- package/dist/esm/gov-backdrop.entry.js.map +0 -1
- package/dist/esm/gov-banner.entry.js +0 -89
- package/dist/esm/gov-banner.entry.js.map +0 -1
- package/dist/esm/gov-blockquote.entry.js +0 -32
- package/dist/esm/gov-blockquote.entry.js.map +0 -1
- package/dist/esm/gov-breadcrumbs.entry.js +0 -74
- package/dist/esm/gov-breadcrumbs.entry.js.map +0 -1
- package/dist/esm/gov-button.entry.js +0 -184
- package/dist/esm/gov-button.entry.js.map +0 -1
- package/dist/esm/gov-card.entry.js +0 -89
- package/dist/esm/gov-card.entry.js.map +0 -1
- package/dist/esm/gov-chip.entry.js +0 -129
- package/dist/esm/gov-chip.entry.js.map +0 -1
- package/dist/esm/gov-collapsible.entry.js +0 -84
- package/dist/esm/gov-collapsible.entry.js.map +0 -1
- package/dist/esm/gov-container.entry.js +0 -22
- package/dist/esm/gov-container.entry.js.map +0 -1
- package/dist/esm/gov-control-group.entry.js +0 -49
- package/dist/esm/gov-control-group.entry.js.map +0 -1
- package/dist/esm/gov-cookiebar.entry.js +0 -26
- package/dist/esm/gov-cookiebar.entry.js.map +0 -1
- package/dist/esm/gov-dialog.entry.js +0 -167
- package/dist/esm/gov-dialog.entry.js.map +0 -1
- package/dist/esm/gov-dropdown.entry.js +0 -144
- package/dist/esm/gov-dropdown.entry.js.map +0 -1
- package/dist/esm/gov-empty.entry.js +0 -61
- package/dist/esm/gov-empty.entry.js.map +0 -1
- package/dist/esm/gov-error-code.entry.js +0 -23
- package/dist/esm/gov-error-code.entry.js.map +0 -1
- package/dist/esm/gov-flex.gov-icon.gov-theme-switch.entry.js.map +0 -1
- package/dist/esm/gov-flex_3.entry.js +0 -334
- package/dist/esm/gov-flex_3.entry.js.map +0 -1
- package/dist/esm/gov-form-autocomplete.entry.js +0 -282
- package/dist/esm/gov-form-autocomplete.entry.js.map +0 -1
- package/dist/esm/gov-form-checkbox-group.entry.js +0 -90
- package/dist/esm/gov-form-checkbox-group.entry.js.map +0 -1
- package/dist/esm/gov-form-checkbox.entry.js +0 -149
- package/dist/esm/gov-form-checkbox.entry.js.map +0 -1
- package/dist/esm/gov-form-control.entry.js +0 -83
- package/dist/esm/gov-form-control.entry.js.map +0 -1
- package/dist/esm/gov-form-file.entry.js +0 -281
- package/dist/esm/gov-form-file.entry.js.map +0 -1
- package/dist/esm/gov-form-group.entry.js +0 -49
- package/dist/esm/gov-form-group.entry.js.map +0 -1
- package/dist/esm/gov-form-input.gov-skeleton.entry.js.map +0 -1
- package/dist/esm/gov-form-input_2.entry.js +0 -287
- package/dist/esm/gov-form-input_2.entry.js.map +0 -1
- package/dist/esm/gov-form-label.entry.js +0 -33
- package/dist/esm/gov-form-label.entry.js.map +0 -1
- package/dist/esm/gov-form-multi-select.entry.js +0 -268
- package/dist/esm/gov-form-multi-select.entry.js.map +0 -1
- package/dist/esm/gov-form-password-power.entry.js +0 -21
- package/dist/esm/gov-form-password-power.entry.js.map +0 -1
- package/dist/esm/gov-form-radio-group.entry.js +0 -78
- package/dist/esm/gov-form-radio-group.entry.js.map +0 -1
- package/dist/esm/gov-form-radio.entry.js +0 -145
- package/dist/esm/gov-form-radio.entry.js.map +0 -1
- package/dist/esm/gov-form-range.entry.js +0 -210
- package/dist/esm/gov-form-range.entry.js.map +0 -1
- package/dist/esm/gov-form-search.entry.js +0 -33
- package/dist/esm/gov-form-search.entry.js.map +0 -1
- package/dist/esm/gov-form-select.entry.js +0 -156
- package/dist/esm/gov-form-select.entry.js.map +0 -1
- package/dist/esm/gov-form-switch.entry.js +0 -146
- package/dist/esm/gov-form-switch.entry.js.map +0 -1
- package/dist/esm/gov-grid-item.entry.js +0 -28
- package/dist/esm/gov-grid-item.entry.js.map +0 -1
- package/dist/esm/gov-grid.entry.js +0 -20
- package/dist/esm/gov-grid.entry.js.map +0 -1
- package/dist/esm/gov-infobar.entry.js +0 -105
- package/dist/esm/gov-infobar.entry.js.map +0 -1
- package/dist/esm/gov-layout-column.entry.js +0 -19
- package/dist/esm/gov-layout-column.entry.js.map +0 -1
- package/dist/esm/gov-layout.entry.js +0 -33
- package/dist/esm/gov-layout.entry.js.map +0 -1
- package/dist/esm/gov-lifecycle.entry.js +0 -44
- package/dist/esm/gov-lifecycle.entry.js.map +0 -1
- package/dist/esm/gov-link.entry.js +0 -57
- package/dist/esm/gov-link.entry.js.map +0 -1
- package/dist/esm/gov-loading.entry.js +0 -42
- package/dist/esm/gov-loading.entry.js.map +0 -1
- package/dist/esm/gov-message.entry.js +0 -47
- package/dist/esm/gov-message.entry.js.map +0 -1
- package/dist/esm/gov-pagination.entry.js +0 -255
- package/dist/esm/gov-pagination.entry.js.map +0 -1
- package/dist/esm/gov-spacer.entry.js +0 -53
- package/dist/esm/gov-spacer.entry.js.map +0 -1
- package/dist/esm/gov-stepper-item.entry.js +0 -51
- package/dist/esm/gov-stepper-item.entry.js.map +0 -1
- package/dist/esm/gov-stepper.entry.js +0 -51
- package/dist/esm/gov-stepper.entry.js.map +0 -1
- package/dist/esm/gov-tabs-item.entry.js +0 -68
- package/dist/esm/gov-tabs-item.entry.js.map +0 -1
- package/dist/esm/gov-tabs.entry.js +0 -230
- package/dist/esm/gov-tabs.entry.js.map +0 -1
- package/dist/esm/gov-tag.entry.js +0 -63
- package/dist/esm/gov-tag.entry.js.map +0 -1
- package/dist/esm/gov-tile.entry.js +0 -45
- package/dist/esm/gov-tile.entry.js.map +0 -1
- package/dist/esm/gov-toast.entry.js +0 -123
- package/dist/esm/gov-toast.entry.js.map +0 -1
- package/dist/esm/gov-tooltip.gov-tooltip-content.entry.js.map +0 -1
- package/dist/esm/gov-tooltip_2.entry.js +0 -316
- package/dist/esm/gov-tooltip_2.entry.js.map +0 -1
- package/dist/esm/gov-wizard-item.entry.js +0 -103
- package/dist/esm/gov-wizard-item.entry.js.map +0 -1
- package/dist/esm/gov-wizard.entry.js +0 -68
- package/dist/esm/gov-wizard.entry.js.map +0 -1
- package/dist/esm/gov.log-BtqD9K8d.js +0 -46
- package/dist/esm/gov.log-BtqD9K8d.js.map +0 -1
- package/dist/esm/helpers-GYov8gU1.js +0 -18
- package/dist/esm/helpers-GYov8gU1.js.map +0 -1
- package/dist/esm/helpers.types-DNztiAH0.js +0 -12
- package/dist/esm/helpers.types-DNztiAH0.js.map +0 -1
- package/dist/esm/index-ClISz4NF.js +0 -2714
- package/dist/esm/index-ClISz4NF.js.map +0 -1
- package/dist/esm/index.js +0 -4
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -14
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/props-CJZgTDla.js +0 -15
- package/dist/esm/props-CJZgTDla.js.map +0 -1
- package/dist/esm/sizes-BcQO4NH2.js +0 -19
- package/dist/esm/sizes-BcQO4NH2.js.map +0 -1
- package/dist/esm/stencil.utils-Cjg0wpDG.js +0 -10
- package/dist/esm/stencil.utils-Cjg0wpDG.js.map +0 -1
- package/dist/esm/string.utils-vN03FcXN.js +0 -21
- package/dist/esm/string.utils-vN03FcXN.js.map +0 -1
- package/dist/esm/template-CoD1xawt.js +0 -111
- package/dist/esm/template-CoD1xawt.js.map +0 -1
- package/dist/esm/utils-CQvUntGY.js +0 -36
- package/dist/esm/utils-CQvUntGY.js.map +0 -1
- package/dist/esm/wcag-CD6_13JO.js +0 -52
- package/dist/esm/wcag-CD6_13JO.js.map +0 -1
- package/dist/globals.d.ts +0 -2
- package/dist/hydrate/index.d.ts +0 -273
- package/dist/hydrate/index.js +0 -25828
- package/dist/hydrate/index.mjs +0 -25820
- package/dist/hydrate/package.json +0 -12
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stencil.config.js +0 -91
- package/dist/stencil.config.js.map +0 -1
- package/dist/types/Users/KameraT/Desktop/Projects/DIA/Sarka/designSystemFinal/gov-design-system/packages/core/.stencil/packages/core/stencil.config.d.ts +0 -2
- package/dist/types/components/gov-accordion/constants.d.ts +0 -19
- package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +0 -43
- package/dist/types/components/gov-accordion/gov-accordion.d.ts +0 -26
- package/dist/types/components/gov-accordion/gov-accordion.types.d.ts +0 -9
- package/dist/types/components/gov-attachments/constants.d.ts +0 -11
- package/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +0 -4
- package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +0 -24
- package/dist/types/components/gov-attachments/gov-attachments.d.ts +0 -19
- package/dist/types/components/gov-backdrop/constants.d.ts +0 -4
- package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +0 -32
- package/dist/types/components/gov-banner/constants.d.ts +0 -26
- package/dist/types/components/gov-banner/gov-banner.d.ts +0 -28
- package/dist/types/components/gov-blockquote/constants.d.ts +0 -10
- package/dist/types/components/gov-blockquote/gov-blockquote.d.ts +0 -15
- package/dist/types/components/gov-breadcrumbs/constants.d.ts +0 -3
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +0 -4
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +0 -42
- package/dist/types/components/gov-button/button/constants.d.ts +0 -29
- package/dist/types/components/gov-button/button/gov-button.d.ts +0 -133
- package/dist/types/components/gov-button/button/gov-button.types.d.ts +0 -4
- package/dist/types/components/gov-button/dropdown/constants.d.ts +0 -10
- package/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +0 -40
- package/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +0 -4
- package/dist/types/components/gov-card/constants.d.ts +0 -16
- package/dist/types/components/gov-card/gov-card.d.ts +0 -57
- package/dist/types/components/gov-card/interfaces.d.ts +0 -4
- package/dist/types/components/gov-chip/constants.d.ts +0 -21
- package/dist/types/components/gov-chip/gov-chip.d.ts +0 -82
- package/dist/types/components/gov-collapsible/constants.d.ts +0 -18
- package/dist/types/components/gov-collapsible/gov-collapsible.d.ts +0 -36
- package/dist/types/components/gov-container/constants.d.ts +0 -3
- package/dist/types/components/gov-container/gov-container.d.ts +0 -6
- package/dist/types/components/gov-control-group/constants.d.ts +0 -7
- package/dist/types/components/gov-control-group/gov-control-group.d.ts +0 -24
- package/dist/types/components/gov-cookiebar/constants.d.ts +0 -7
- package/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +0 -7
- package/dist/types/components/gov-dialog/constants.d.ts +0 -11
- package/dist/types/components/gov-dialog/gov-dialog.d.ts +0 -70
- package/dist/types/components/gov-empty/constants.d.ts +0 -19
- package/dist/types/components/gov-empty/gov-empty.d.ts +0 -21
- package/dist/types/components/gov-error-code/constants.d.ts +0 -4
- package/dist/types/components/gov-error-code/gov-error-code.d.ts +0 -6
- package/dist/types/components/gov-flex/constants.d.ts +0 -7
- package/dist/types/components/gov-flex/gov-flex.d.ts +0 -39
- package/dist/types/components/gov-form/autocomplete/constants.d.ts +0 -11
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +0 -149
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +0 -9
- package/dist/types/components/gov-form/checkbox/constants.d.ts +0 -10
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +0 -86
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +0 -5
- package/dist/types/components/gov-form/control/constants.d.ts +0 -9
- package/dist/types/components/gov-form/control/gov-form-control.d.ts +0 -40
- package/dist/types/components/gov-form/file/constants.d.ts +0 -7
- package/dist/types/components/gov-form/file/gov-form-file.d.ts +0 -129
- package/dist/types/components/gov-form/file/gov-form-file.types.d.ts +0 -11
- package/dist/types/components/gov-form/group/constants.d.ts +0 -18
- package/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +0 -32
- package/dist/types/components/gov-form/group/gov-form-group.d.ts +0 -18
- package/dist/types/components/gov-form/group/gov-form-group.types.d.ts +0 -7
- package/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +0 -32
- package/dist/types/components/gov-form/input/constants.d.ts +0 -28
- package/dist/types/components/gov-form/input/gov-form-input.d.ts +0 -178
- package/dist/types/components/gov-form/input/gov-form-input.types.d.ts +0 -4
- package/dist/types/components/gov-form/label/constants.d.ts +0 -8
- package/dist/types/components/gov-form/label/gov-form-label.d.ts +0 -26
- package/dist/types/components/gov-form/message/constants.d.ts +0 -11
- package/dist/types/components/gov-form/message/gov-form-message.d.ts +0 -23
- package/dist/types/components/gov-form/multiselect/constants.d.ts +0 -10
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -127
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +0 -10
- package/dist/types/components/gov-form/password-power/constants.d.ts +0 -5
- package/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +0 -7
- package/dist/types/components/gov-form/radio/constants.d.ts +0 -10
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +0 -83
- package/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +0 -5
- package/dist/types/components/gov-form/range/constants.d.ts +0 -9
- package/dist/types/components/gov-form/range/gov-form-range.d.ts +0 -116
- package/dist/types/components/gov-form/search/constants.d.ts +0 -10
- package/dist/types/components/gov-form/search/gov-form-search.d.ts +0 -13
- package/dist/types/components/gov-form/select/constants.d.ts +0 -8
- package/dist/types/components/gov-form/select/gov-form-select.d.ts +0 -89
- package/dist/types/components/gov-form/select/gov-form-select.types.d.ts +0 -9
- package/dist/types/components/gov-form/switch/constants.d.ts +0 -12
- package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +0 -81
- package/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +0 -5
- package/dist/types/components/gov-grid/constants.d.ts +0 -10
- package/dist/types/components/gov-grid/gov-grid-item.d.ts +0 -46
- package/dist/types/components/gov-grid/gov-grid.d.ts +0 -19
- package/dist/types/components/gov-icon/constants.d.ts +0 -18
- package/dist/types/components/gov-icon/gov-icon.d.ts +0 -34
- package/dist/types/components/gov-icon/helpers.d.ts +0 -6
- package/dist/types/components/gov-icon/list.d.ts +0 -3
- package/dist/types/components/gov-infobar/constants.d.ts +0 -16
- package/dist/types/components/gov-infobar/gov-infobar.d.ts +0 -51
- package/dist/types/components/gov-infobar/gov-infobar.types.d.ts +0 -4
- package/dist/types/components/gov-layout/constants.d.ts +0 -20
- package/dist/types/components/gov-layout/gov-layout-column.d.ts +0 -6
- package/dist/types/components/gov-layout/gov-layout.d.ts +0 -20
- package/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +0 -14
- package/dist/types/components/gov-link/constants.d.ts +0 -8
- package/dist/types/components/gov-link/gov-link.d.ts +0 -34
- package/dist/types/components/gov-loading/loading/constants.d.ts +0 -9
- package/dist/types/components/gov-loading/loading/gov-loading.d.ts +0 -13
- package/dist/types/components/gov-loading/skeleton/constants.d.ts +0 -21
- package/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +0 -46
- package/dist/types/components/gov-message/constants.d.ts +0 -13
- package/dist/types/components/gov-message/gov-message.d.ts +0 -16
- package/dist/types/components/gov-pagination/constants.d.ts +0 -22
- package/dist/types/components/gov-pagination/gov-pagination.d.ts +0 -97
- package/dist/types/components/gov-pagination/gov-pagination.types.d.ts +0 -5
- package/dist/types/components/gov-pagination/pagination.d.ts +0 -12
- package/dist/types/components/gov-spacer/constants.d.ts +0 -15
- package/dist/types/components/gov-spacer/gov-spacer.d.ts +0 -18
- package/dist/types/components/gov-stepper/stepper/constants.d.ts +0 -21
- package/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +0 -4
- package/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +0 -31
- package/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +0 -22
- package/dist/types/components/gov-tabs/constants.d.ts +0 -28
- package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +0 -54
- package/dist/types/components/gov-tabs/gov-tabs.d.ts +0 -70
- package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +0 -14
- package/dist/types/components/gov-tag/constants.d.ts +0 -12
- package/dist/types/components/gov-tag/gov-tag.d.ts +0 -35
- package/dist/types/components/gov-theme-switch/constants.d.ts +0 -12
- package/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +0 -46
- package/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +0 -10
- package/dist/types/components/gov-tile/constants.d.ts +0 -13
- package/dist/types/components/gov-tile/gov-tile.d.ts +0 -34
- package/dist/types/components/gov-toast/constants.d.ts +0 -17
- package/dist/types/components/gov-toast/gov-toast.d.ts +0 -58
- package/dist/types/components/gov-tooltip/constants.d.ts +0 -20
- package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +0 -28
- package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +0 -58
- package/dist/types/components/gov-wizard/constants.d.ts +0 -19
- package/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +0 -4
- package/dist/types/components/gov-wizard/gov-wizard-item.d.ts +0 -60
- package/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +0 -4
- package/dist/types/components/gov-wizard/gov-wizard.d.ts +0 -35
- package/dist/types/components.d.ts +0 -5210
- package/dist/types/core/constants/colors.d.ts +0 -13
- package/dist/types/core/constants/sizes.d.ts +0 -13
- package/dist/types/core/constants/tags.d.ts +0 -12
- package/dist/types/core/constants/tokens.d.ts +0 -1
- package/dist/types/helpers/Accessibility/accessibility.d.ts +0 -1
- package/dist/types/helpers/Accessibility/attributes.d.ts +0 -1
- package/dist/types/helpers/Dom/attribute.d.ts +0 -13
- package/dist/types/helpers/Dom/document.d.ts +0 -4
- package/dist/types/helpers/Dom/form.d.ts +0 -3
- package/dist/types/helpers/Dom/form.types.d.ts +0 -11
- package/dist/types/helpers/Dom/template.d.ts +0 -10
- package/dist/types/helpers/Dom/template.types.d.ts +0 -14
- package/dist/types/helpers/Dom/win.d.ts +0 -18
- package/dist/types/helpers/Fragment.d.ts +0 -2
- package/dist/types/helpers/Log/gov.log.d.ts +0 -8
- package/dist/types/helpers/Validate/props.d.ts +0 -1
- package/dist/types/helpers/Validate/wcag.d.ts +0 -4
- package/dist/types/index.d.ts +0 -0
- package/dist/types/interfaces.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1702
- package/dist/types/types/event.types.d.ts +0 -4
- package/dist/types/types/interfaces.d.ts +0 -2
- package/dist/types/types/typings.d.ts +0 -6
- package/dist/types/utils/array.utils.d.ts +0 -2
- package/dist/types/utils/bool.utils.d.ts +0 -1
- package/dist/types/utils/dom.utils.d.ts +0 -1
- package/dist/types/utils/ds.utils.d.ts +0 -1
- package/dist/types/utils/file.utils.d.ts +0 -3
- package/dist/types/utils/helpers.types.d.ts +0 -49
- package/dist/types/utils/icon.utils.d.ts +0 -4
- package/dist/types/utils/number.utils.d.ts +0 -1
- package/dist/types/utils/object.utils.d.ts +0 -2
- package/dist/types/utils/stencil.utils.d.ts +0 -1
- package/dist/types/utils/string.utils.d.ts +0 -4
- package/dist/types/utils/utils.d.ts +0 -20
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-loading.entry.esm.js","sources":["../../../packages/core/src/components/gov-loading/loading/constants.ts","../../../packages/core/src/components/gov-loading/loading/gov-loading.tsx"],"sourcesContent":["import {pick} from \"../../../utils/utils\";\r\nimport {Sizes} from \"../../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../../types/interfaces\";\r\n\r\nexport const LoadingSizes = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type LoadingSizesType = `${ValueOf<typeof LoadingSizes>}`\r\n\r\nexport const LoadingClass = {\r\n\troot: 'gov-loading',\r\n\tcontent: 'gov-loading__content',\r\n\ticon: 'gov-loading__icon',\r\n}\r\n","import {Component, Element, h, Host, Prop, Watch} from \"@stencil/core\"\r\nimport {LoadingClass, LoadingSizes, LoadingSizesType} from \"./constants\"\r\nimport { govHost, prepareClasses } from \"../../../helpers/Dom/template\"\r\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\r\nimport {validateProp} from \"../../../helpers/Validate/props\";\r\n\r\n@Component({\r\n\ttag: \"gov-loading\",\r\n})\r\nexport class GovLoading {\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: HTMLGovLoadingElement\r\n\t/**\r\n\t * Loading size\r\n\t */\r\n\t@Prop() readonly size?: LoadingSizesType = 'm'\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(LoadingSizes, newValue, LoadingClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(LoadingClass.root)} size={this.size}>\r\n\t\t\t\t<div class={LoadingClass.content}>\r\n\t\t\t\t\t<gov-icon\r\n\t\t\t\t\t\tclass={prepareClasses([LoadingClass.icon, \"gov-spin-animation\"])}\r\n\t\t\t\t\t\tname=\"loader\"\r\n\t\t\t\t\t\ttype=\"components\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<slot />\r\n\t\t\t\t</div>\r\n\t\t\t\t<gov-backdrop inverse={true} />\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;AAIO,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAGpD,MAAM,YAAY,GAAG;AAC3B,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,IAAI,EAAE,mBAAmB;CACzB;;MCFY,UAAU,GAAA,MAAA;AAGtB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAKA;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAsB,GAAG;QAP7C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AASD,IAAA,YAAY,CAAC,QAAgB,EAAA;QAC5B,YAAY,CAAC,YAAY,EAAE,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC;;IAGxD,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;;IAG7B,MAAM,GAAA;QACL,QACC,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAA,EAC9D,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAE,YAAY,CAAC,OAAO,EAAA,EAC/B,CACC,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,cAAc,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC,EAChE,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,YAAY,EAChB,CAAA,EACF,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACH,EACN,CAAA,CAAA,cAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAc,OAAO,EAAE,IAAI,EAAI,CAAA,CACzB;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-message.entry.esm.js","sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\r\nimport { pick } from '../../utils/utils'\r\nimport { ValueOf } from '../../types/interfaces'\r\n\r\nexport const MessageColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\r\nexport type MessageColorType = `${ValueOf<typeof MessageColors>}`\r\n\r\nexport enum MessageType {\r\n\tBOLD = 'bold',\r\n\tSUBTLE = 'subtle',\r\n}\r\nexport type MessageTypesType = `${ValueOf<typeof MessageType>}`\r\n\r\nexport const MessageClass = {\r\n\troot: 'gov-message',\r\n\tcontent: 'gov-message__content',\r\n}\r\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\r\nimport { validateProp } from \"../../helpers/Validate/props\"\r\nimport { MessageTypesType, MessageClass, MessageColorType} from \"./constants\"\r\nimport { govHost } from \"../../helpers/Dom/template\"\r\nimport { GovHost } from \"../../helpers/Dom/template.types\"\r\nimport { Colors } from \"../../core/constants/colors\"\r\n\r\n@Component({\r\n\ttag: \"gov-message\",\r\n})\r\nexport class GovMessage {\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovMessageElement\r\n\r\n\t/**\r\n\t * Style variation of the content message.\r\n\t */\r\n\t@Prop() readonly color: MessageColorType = Colors.PRIMARY\r\n\t/**\r\n\t * Message type\r\n\t */\r\n\t@Prop() readonly type?: MessageTypesType = \"subtle\"\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(Colors, newValue, MessageClass.root)\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(MessageClass.root)} color={this.color} type={this.type} role=\"status\">\r\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\r\n\t\t\t\t\t<span>\r\n\t\t\t\t\t\t<slot name=\"icon\" />\r\n\t\t\t\t\t</span>\r\n\t\t\t\t)}\r\n\r\n\t\t\t\t<div class={MessageClass.content}>\r\n\t\t\t\t\t<slot />\r\n\t\t\t\t</div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,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,MAAM,EAAA,CAAG,CACd,CACP,EAED,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAE,YAAY,CAAC,OAAO,EAAA,EAC/B,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACH,CACA;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-pagination.entry.esm.js","sources":["../../../packages/core/src/components/gov-pagination/constants.ts","../../../packages/core/src/components/gov-pagination/pagination.ts","../../../packages/core/src/components/gov-pagination/gov-pagination.tsx"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\r\nimport { Colors } from '../../core/constants/colors'\r\nimport { pick } from '../../utils/utils'\r\nimport { ValueOf } from '../../types/interfaces'\r\n\r\nexport const PaginationSizes = pick(Sizes, ['_S', '_M'])\r\nexport type PaginationSizeType = `${ValueOf<typeof PaginationSizes>}`\r\n\r\nexport const PaginationColors = pick(Colors, ['PRIMARY', 'NEUTRAL'])\r\nexport type PaginationColorType = `${ValueOf<typeof PaginationColors>}`\r\n\r\nexport enum PaginationTypes {\r\n\tBUTTON = 'button',\r\n\tSELECT = 'select',\r\n}\r\nexport type PaginationType = `${ValueOf<typeof PaginationTypes>}`\r\n\r\nexport const PaginationClass = {\r\n\troot: 'gov-pagination',\r\n\tlist: 'gov-pagination__list',\r\n\titem: 'gov-pagination__item',\r\n\titemArrow: 'gov-pagination__item--arrow',\r\n\titemMore: 'gov-pagination__item--more',\r\n\titemSelect: 'gov-pagination__item--select',\r\n\tinner: 'gov-pagination__inner',\r\n\tarrow: 'gov-pagination__arrow',\r\n}\r\n","export interface Pagination {\r\n\ttotalItems: number\r\n\tcurrentPage: number\r\n\tpageSize: number\r\n\ttotalPages: number\r\n\tstartPage: number\r\n\tendPage: number\r\n\tstartIndex: number\r\n\tendIndex: number\r\n\tpages: number[]\r\n}\r\n\r\nexport function paginate(totalItems: number, currentPage = 1, pageSize = 10, maxPages = 10): Pagination {\r\n\t// calculate total pages\r\n\tconst totalPages = Math.ceil(totalItems / pageSize)\r\n\r\n\t// ensure current page isn't out of range\r\n\tif (currentPage < 1) {\r\n\t\tcurrentPage = 1\r\n\t} else if (currentPage > totalPages) {\r\n\t\tcurrentPage = totalPages\r\n\t}\r\n\r\n\tlet startPage: number, endPage: number\r\n\tif (totalPages <= maxPages) {\r\n\t\t// total pages less than max so show all pages\r\n\t\tstartPage = 1\r\n\t\tendPage = totalPages\r\n\t} else {\r\n\t\t// total pages more than max so calculate start and end pages\r\n\t\tconst maxPagesBeforeCurrentPage = Math.floor(maxPages / 2)\r\n\t\tconst maxPagesAfterCurrentPage = Math.ceil(maxPages / 2) - 1\r\n\t\tif (currentPage <= maxPagesBeforeCurrentPage) {\r\n\t\t\t// current page near the start\r\n\t\t\tstartPage = 1\r\n\t\t\tendPage = maxPages\r\n\t\t} else if (currentPage + maxPagesAfterCurrentPage >= totalPages) {\r\n\t\t\t// current page near the end\r\n\t\t\tstartPage = totalPages - maxPages + 1\r\n\t\t\tendPage = totalPages\r\n\t\t} else {\r\n\t\t\t// current page somewhere in the middle\r\n\t\t\tstartPage = currentPage - maxPagesBeforeCurrentPage\r\n\t\t\tendPage = currentPage + maxPagesAfterCurrentPage\r\n\t\t}\r\n\t}\r\n\r\n\t// calculate start and end item indexes\r\n\tconst startIndex = (currentPage - 1) * pageSize\r\n\tconst endIndex = Math.min(startIndex + pageSize - 1, totalItems - 1)\r\n\r\n\t// create an array of pages to ng-repeat in the pager control\r\n\tconst pages = Array.from(Array(endPage + 1 - startPage).keys()).map(i => startPage + i)\r\n\r\n\t// return object with all pager properties required by the view\r\n\treturn {\r\n\t\ttotalItems: totalItems,\r\n\t\tcurrentPage: currentPage,\r\n\t\tpageSize: pageSize,\r\n\t\ttotalPages: totalPages,\r\n\t\tstartPage: startPage,\r\n\t\tendPage: endPage,\r\n\t\tstartIndex: startIndex,\r\n\t\tendIndex: endIndex,\r\n\t\tpages: pages,\r\n\t}\r\n}\r\n","import Fragment from \"../../helpers/Fragment\"\r\nimport {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from \"@stencil/core\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {\r\n\tPaginationClass,\r\n\tPaginationColors,\r\n\tPaginationColorType,\r\n\tPaginationSizes,\r\n\tPaginationSizeType,\r\n\tPaginationType,\r\n\tPaginationTypes,\r\n} from \"./constants\"\r\nimport {govHost, prepareClasses, toBoolAttrIfDefined} from \"../../helpers/Dom/template\"\r\nimport {paginate, Pagination} from \"./pagination\"\r\nimport {createID} from \"../../utils/string.utils\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {createArrayRange} from \"../../utils/array.utils\"\r\nimport {FormSelectEvent} from \"../gov-form/select/gov-form-select.types\"\r\nimport {PaginationEvent} from \"./gov-pagination.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-pagination\",\r\n})\r\nexport class GovPagination {\r\n\tprivate h: GovHost\r\n\tprivate readonly pageSelectId: string\r\n\tprivate readonly selectId: string\r\n\r\n\tprivate spreadSelectRef?: HTMLGovFormSelectElement\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.pageSelectId = createID(\"GovPageSelect\")\r\n\t\tthis.selectId = createID(\"GovSelect\")\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovPaginationElement\r\n\t/**\r\n\t * Pagination type\r\n\t */\r\n\t@Prop() readonly type: PaginationType = \"button\"\r\n\t/**\r\n\t * Currently displayed page\r\n\t */\r\n\t@Prop() readonly current: number = 1\r\n\t/**\r\n\t * Total count of entries\r\n\t */\r\n\t@Prop() readonly total: number = 0\r\n\t/**\r\n\t * Custom select identifier.\r\n\t */\r\n\t@Prop({attribute: 'select-identifier'}) readonly selectIdentifier: string\r\n\t/**\r\n\t * Pagination's size\r\n\t */\r\n\t@Prop() readonly size?: PaginationSizeType = \"m\"\r\n\t/**\r\n\t * Style variation of the pagination.\r\n\t */\r\n\t@Prop() readonly color?: PaginationColorType = \"primary\"\r\n\t/**\r\n\t * Maximum number of entries per page\r\n\t */\r\n\t@Prop({attribute: \"page-size\"}) readonly pageSize: number = 10\r\n\t/**\r\n\t * Maximum pages displayed for selection\r\n\t */\r\n\t@Prop({attribute: \"max-pages\"}) readonly maxPages: number = 5\r\n\t/**\r\n\t * Setting a link to redirect to a given page.\r\n\t * The {PAGE} wildcard can be used in the link to replace the page number.\r\n\t * Note that in the case of paging through a link, it is always necessary to send to the component the current page where the user is.\r\n\t */\r\n\t@Prop() readonly link: string\r\n\t/**\r\n\t * Adds accessible label for the page select\r\n\t */\r\n\t@Prop({attribute: \"accessible-select-label\"}) readonly accessibleSelectLabel: string = \"Vybrat stranu\"\r\n\t/**\r\n\t * Adds accessible label for the page item\r\n\t */\r\n\t@Prop({attribute: \"accessible-page-label\"}) readonly accessiblePageLabel: string = \"Strana\"\r\n\t/**\r\n\t * Description of the possibility to go back one page\r\n\t */\r\n\t@Prop({attribute: \"label-prev\"}) readonly labelPrev = 'Přejít o stranu zpět'\r\n\t/**\r\n\t * Description of the option to go to the top of paging\r\n\t */\r\n\t@Prop({attribute: \"label-start\"}) readonly labelStart = 'Přejít na začátek'\r\n\t/**\r\n\t * Description of the option to go to the end of paging\r\n\t */\r\n\t@Prop({attribute: \"label-next\"}) readonly labelNext = 'Přejít na další stranu'\r\n\t/**\r\n\t * Description of the option to move one page forward\r\n\t */\r\n\t@Prop({attribute: \"label-end\"}) readonly labelEnd = 'Přejít na konec'\r\n\t/**\r\n\t * Event called when changing the page with the current setting of the whole paging\r\n\t */\r\n\t@Event({eventName: \"gov-page\"}) govPage: EventEmitter<PaginationEvent>\r\n\r\n\t@State() pagination: Pagination\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\t@Watch(\"type\")\r\n\tvalidateType(newValue: string): void {\r\n\t\tvalidateProp(PaginationTypes, newValue, PaginationClass.root)\r\n\t}\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(PaginationSizes, newValue, PaginationClass.root)\r\n\t}\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(PaginationColors, newValue, PaginationClass.root)\r\n\t}\r\n\r\n\t@Watch(\"current\")\r\n\t@Watch(\"total\")\r\n\t@Watch(\"pageSize\")\r\n\t@Watch(\"maxPages\")\r\n\trecalculate(): void {\r\n\t\tthis.recalculatePagination(this.current)\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.recalculatePagination(this.current)\r\n\t\tthis.validateSize(this.size)\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\tprivate recalculatePagination(currentPage: number) {\r\n\t\tthis.pagination = paginate(this.total, currentPage, this.pageSize, this.maxPages)\r\n\t}\r\n\r\n\tprivate isActivePageClass(originalClass: string, page: number) {\r\n\t\tif (this.pagination.currentPage === page) {\r\n\t\t\treturn originalClass + \" is-active\"\r\n\t\t} else {\r\n\t\t\treturn originalClass\r\n\t\t}\r\n\t}\r\n\r\n\tprivate prepareLinkUrl(page: number) {\r\n\t\tif (this.link) {\r\n\t\t\treturn String(this.link).replace(\"{PAGE}\", String(page))\r\n\t\t}\r\n\t\treturn undefined\r\n\t}\r\n\r\n\tprivate resetSelectValue() {\r\n\t\tif (this.spreadSelectRef) {\r\n\t\t\tthis.spreadSelectRef.getRef()\r\n\t\t\t\t.then((el: HTMLSelectElement) => {\r\n\t\t\t\t\tel.value = '...'\r\n\t\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst pageResolver = (page: number, content: any, description: string) => {\r\n\t\t\tconst isDisabled = page === -1\r\n\t\t\tconst ariaCurrent = toBoolAttrIfDefined(this.pagination.currentPage === page ? true : undefined)\r\n\t\t\treturn (\r\n\t\t\t\t<gov-button\r\n\t\t\t\t\thref={this.prepareLinkUrl(page)}\r\n\t\t\t\t\tcolor={this.color}\r\n\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\ttype=\"base\"\r\n\t\t\t\t\tdisabled={isDisabled}\r\n\t\t\t\t\ton-gov-click={(e) => this.onClickHandler(e, page)}\r\n\t\t\t\t\taria-label={description ? description : page > -1 ? `${this.accessiblePageLabel} ${page}` : undefined}\r\n\t\t\t\t\taria-current={ariaCurrent}\r\n\t\t\t\t\tclass={PaginationClass.inner}\r\n\t\t\t\t\tfocusable={true}>\r\n\t\t\t\t\t{content}\r\n\t\t\t\t</gov-button>\r\n\t\t\t)\r\n\t\t}\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(PaginationClass.root)} type={this.type} color={this.color} size={this.size}>\r\n\t\t\t\t<nav {...this.inheritedAttributes}>\r\n\t\t\t\t\t<ul class={PaginationClass.list}>\r\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\r\n\t\t\t\t\t\t\t{pageResolver(\r\n\t\t\t\t\t\t\t\tthis.pagination.currentPage > 1 ? 1 : -1,\r\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-double-left\" type=\"components\"></gov-icon>,\r\n\t\t\t\t\t\t\t\tthis.labelStart\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t</li>\r\n\r\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\r\n\t\t\t\t\t\t\t{pageResolver(\r\n\t\t\t\t\t\t\t\tthis.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1,\r\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-left\" type=\"components\"></gov-icon>,\r\n\t\t\t\t\t\t\t\tthis.labelPrev\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t</li>\r\n\r\n\t\t\t\t\t\t{this.type == \"select\" ? (\r\n\t\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemSelect])}>\r\n\t\t\t\t\t\t\t\t<span class={PaginationClass.inner}>\r\n\t\t\t\t\t\t\t\t\t<span id={this.pageSelectId} hidden>\r\n\t\t\t\t\t\t\t\t\t\t{this.accessibleSelectLabel}\r\n\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t<gov-form-select\r\n\t\t\t\t\t\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\t\t\t\t\t\tcolor={this.color}\r\n\t\t\t\t\t\t\t\t\t\tidentifier={this.selectIdentifier || this.selectId}\r\n\t\t\t\t\t\t\t\t\t\taria-labelledby={this.pageSelectId}\r\n\t\t\t\t\t\t\t\t\t\ton-gov-change={this.onSelectHandler.bind(this)}>\r\n\t\t\t\t\t\t\t\t\t\t{createArrayRange(1, this.pagination.totalPages).map(page => (\r\n\t\t\t\t\t\t\t\t\t\t\t<option value={page} selected={this.pagination.currentPage === page}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{page}\r\n\t\t\t\t\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t</gov-form-select>\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t<Fragment>\r\n\t\t\t\t\t\t\t\t{this.pagination.pages.map(page => (\r\n\t\t\t\t\t\t\t\t\t<li class={this.isActivePageClass(PaginationClass.item, page)}>{pageResolver(page, page, '')}</li>\r\n\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t{this.pagination.totalPages ? (\r\n\t\t\t\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemMore])}>\r\n\t\t\t\t\t\t\t\t\t<span class={PaginationClass.inner}>\r\n\t\t\t\t\t\t\t\t\t\t<span id={this.pageSelectId} hidden>\r\n\t\t\t\t\t\t\t\t\t\t\t{this.accessibleSelectLabel}\r\n\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t<gov-form-select\r\n\t\t\t\t\t\t\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\t\t\t\t\t\t\tcolor={this.color}\r\n\t\t\t\t\t\t\t\t\t\t\tidentifier={this.selectIdentifier || this.selectId}\r\n\t\t\t\t\t\t\t\t\t\t\taria-labelledby={this.pageSelectId}\r\n\t\t\t\t\t\t\t\t\t\t\tref={el => (this.spreadSelectRef = el as HTMLGovFormSelectElement)}\r\n\t\t\t\t\t\t\t\t\t\t\ton-gov-change={this.onSelectHandler.bind(this)}>\r\n\t\t\t\t\t\t\t\t\t\t\t<option selected hidden>...</option>\r\n\t\t\t\t\t\t\t\t\t\t\t{createArrayRange(1, this.pagination.totalPages).map(page => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value={page} selected={false}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{page}\r\n\t\t\t\t\t\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t</gov-form-select>\r\n\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t\t) : null}\r\n\t\t\t\t\t\t\t</Fragment>\r\n\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\r\n\t\t\t\t\t\t\t{pageResolver(\r\n\t\t\t\t\t\t\t\tthis.pagination.totalPages > this.pagination.currentPage ? this.pagination.currentPage + 1 : -1,\r\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-right\" type=\"components\"></gov-icon>,\r\n\t\t\t\t\t\t\t\tthis.labelNext\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t</li>\r\n\r\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\r\n\t\t\t\t\t\t\t{pageResolver(\r\n\t\t\t\t\t\t\t\tthis.pagination.totalPages > this.pagination.currentPage ? this.pagination.totalPages : -1,\r\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-double-right\" type=\"components\"></gov-icon>,\r\n\t\t\t\t\t\t\t\tthis.labelEnd\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t</li>\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t</nav>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onClickHandler(e: CustomEvent, page: number): void {\r\n\t\te.stopPropagation()\r\n\t\tthis.recalculatePagination(page)\r\n\t\tthis.govPage.emit({\r\n\t\t\tcomponent: PaginationClass.root,\r\n\t\t\tpagination: this.pagination\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onSelectHandler(e: CustomEvent<FormSelectEvent>): void {\r\n\t\te.stopPropagation()\r\n\t\tconst value = e.detail.value\r\n\t\tconst page = parseInt(value)\r\n\t\tthis.resetSelectValue()\r\n\t\tif (isNaN(page) === false) {\r\n\t\t\tthis.recalculatePagination(page)\r\n\t\t\tif (this.link) {\r\n\t\t\t\twindow.location.href = this.prepareLinkUrl(page)\r\n\t\t\t} else {\r\n\t\t\t\tthis.govPage.emit({\r\n\t\t\t\t\tcomponent: PaginationClass.root,\r\n\t\t\t\t\tpagination: this.pagination\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAKO,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAGjD,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAGpE,IAAY,eAGX;AAHD,CAAA,UAAY,eAAe,EAAA;AAC1B,IAAA,eAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,eAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAHW,eAAe,KAAf,eAAe,GAG1B,EAAA,CAAA,CAAA;AAGM,MAAM,eAAe,GAAG;AAC9B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,IAAI,EAAE,sBAAsB;AAC5B,IAAA,IAAI,EAAE,sBAAsB;AAC5B,IAAA,SAAS,EAAE,6BAA6B;AACxC,IAAA,QAAQ,EAAE,4BAA4B;AACtC,IAAA,UAAU,EAAE,8BAA8B;AAC1C,IAAA,KAAK,EAAE,uBAAuB;AAC9B,IAAA,KAAK,EAAE,uBAAuB;CAC9B;;ACde,SAAA,QAAQ,CAAC,UAAkB,EAAE,WAAW,GAAG,CAAC,EAAE,QAAQ,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAA;;IAEzF,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC;;AAGnD,IAAA,IAAI,WAAW,GAAG,CAAC,EAAE;QACpB,W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;YAC/B,UAAU,EAAE,IAAI,CAAC;AACjB,SAAA,CAAC;;AAGK,IAAA,eAAe,CAAC,CAA+B,EAAA;QACtD,CAAC,CAAC,eAAe,EAAE;AACnB,QAAA,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK;AAC5B,QAAA,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,gBAAgB,EAAE;AACvB,QAAA,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK,EAAE;AAC1B,YAAA,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC;AAChC,YAAA,IAAI,IAAI,CAAC,IAAI,EAAE;gBACd,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;;iBAC1C;AACN,gBAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;oBACjB,SAAS,EAAE,eAAe,CAAC,IAAI;oBAC/B,UAAU,EAAE,IAAI,CAAC;AACjB,iBAAA,CAAC;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-spacer.entry.esm.js","sources":["../../../packages/core/src/components/gov-spacer/constants.tsx","../../../packages/core/src/components/gov-spacer/gov-spacer.tsx"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\r\nimport { pick } from '../../utils/utils'\r\nimport { ValueOf } from '../../types/interfaces'\r\n\r\nexport const SpacerSize = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL'])\r\nexport type SpacerSizeType = `${ValueOf<typeof SpacerSize>}`\r\n\r\nexport enum SpacerBreakpoints {\r\n\tNONE = 'none',\r\n\tSM = 'sm',\r\n\tMD = 'md',\r\n\tLG = 'lg',\r\n\tXL = 'xl',\r\n}\r\nexport type SpacerBreakpointsType = `${ValueOf<typeof SpacerBreakpoints>}`\r\n\r\nexport const SpacerClass = {\r\n\troot: 'gov-spacer',\r\n}\r\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core'\r\nimport { validateProp } from '../../helpers/Validate/props'\r\nimport { SpacerBreakpoints, SpacerBreakpointsType, SpacerClass, SpacerSize, SpacerSizeType } 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-spacer',\r\n})\r\nexport class GovSpacer {\r\n\tprivate h: GovHost\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\t@Element() host: HTMLGovSpacerElement\r\n\t/**\r\n\t * Spacer’s size\r\n\t */\r\n\t@Prop() readonly size?: SpacerSizeType\r\n\t/**\r\n\t * Breakpoint\r\n\t */\r\n\t@Prop() readonly breakpoint?: SpacerBreakpointsType = undefined\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(SpacerSize, newValue, SpacerClass.root)\r\n\t}\r\n\r\n\t@Watch('breakpoint')\r\n\tvalidateBreakpoint(newValue: string): void {\r\n\t\tvalidateProp(SpacerBreakpoints, newValue, SpacerClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.validateBreakpoint(this.breakpoint)\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn <Host class={this.h.classes(SpacerClass.root)} size={this.size} breakpoint={this.breakpoint}></Host>\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;AAIO,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAGvG,IAAY,iBAMX;AAND,CAAA,UAAY,iBAAiB,EAAA;AAC5B,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,iB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stepper-item.tsx"],"sourcesContent":["import { Component, Element, h, Prop, Watch, Host, Event, EventEmitter } from '@stencil/core'\r\nimport { validateProp } from '../../../helpers/Validate/props'\r\nimport { StepperSizesType, StepperItemClass, StepperColorType, StepperColors } from './constants'\r\nimport { createID } from '../../../utils/string.utils'\r\nimport { govHost } from '../../../helpers/Dom/template'\r\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\r\nimport { GovHost } from '../../../helpers/Dom/template.types'\r\n\r\n@Component({\r\n\ttag: 'gov-stepper-item',\r\n})\r\nexport class GovStepperItem {\r\n\tprivate h: GovHost\r\n\tprivate readonly triggerId: string\r\n\tprivate readonly contentId: string\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.triggerId = createID('GovStepperItem')\r\n\t\tthis.contentId = createID('GovStepperContent')\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovStepperItemElement\r\n\r\n\t/**\r\n\t * Style variation of the button.\r\n\t */\r\n\t@Prop() readonly color?: StepperColorType = 'primary'\r\n\t/**\r\n\t * Size of stepper\r\n\t */\r\n\t@Prop() readonly size?: StepperSizesType = 'm'\r\n\t/**\r\n\t * Custom stepper item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly identifier: string\r\n\t/**\r\n\t * Called when the accordion state changes\r\n\t */\r\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\r\n\r\n\t@Watch('color')\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(StepperColors, newValue, StepperItemClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\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 triggerId = this.identifier || this.triggerId\r\n\t\tconst contentId = this.contentId\r\n\r\n\t\treturn (\r\n\t\t\t<Host id={triggerId} class={this.h.classes(StepperItemClass.root)} color={this.color} role=\"listitem\" hydrated={this.hydrated}>\r\n\t\t\t\t<div>\r\n\t\t\t\t\t<div class={StepperItemClass.steps}>\r\n\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t\t<span class={StepperItemClass.prefix}>\r\n\t\t\t\t\t\t\t<slot name=\"prefix\"/>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class={StepperItemClass.main}>\r\n\t\t\t\t\t\t<span class={StepperItemClass.headline}>\r\n\t\t\t\t\t\t\t<slot name=\"headline\"/>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t<slot name=\"annotation\"/>\r\n\r\n\t\t\t\t\t\t{this.h.hasSlot('content') && (\r\n\t\t\t\t\t\t\t<div class={StepperItemClass.content} id={contentId} aria-labelledby={triggerId}\r\n\t\t\t\t\t\t\t\t role=\"tabpanel\">\r\n\t\t\t\t\t\t\t\t<slot name=\"content\"/>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;MAWa,cAAc,GAAA,MAAA;AAM1B,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAFQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAUxB;;AAEG;AACc,QAAA,IAAK,CAAA,KAAA,GAAsB,SAAS;AACrD;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAsB,GAAG;QAd7C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B,QAAA,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,gBAAgB,CAAC;AAC3C,QAAA,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,mBAAmB,CAAC;AAC9C;AAsBD,IAAA,aAAa,CAAC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,EAChC,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAE,gBAAgB,CAAC,QAAQ,EAAA,EACrC,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,UAAU,EAAA,CAAE,CACjB,EACP,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,YAAY,EAAE,CAAA,EAExB,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,KACzB,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAE,gBAAgB,CAAC,OAAO,EAAE,EAAE,EAAE,SAAS,qBAAmB,SAAS,EAC7E,IAAI,EAAC,UAAU,EAAA,EAChB,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,SAAS,EAAE,CAAA,CACjB,CACN,CACI,CACD,CACA;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-stepper.entry.esm.js","sources":["../../../packages/core/src/components/gov-stepper/stepper/gov-stepper.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Prop, Watch } from '@stencil/core'\r\nimport { validateProp } from '../../../helpers/Validate/props'\r\nimport { StepperClass, StepperItemClass, StepperSizes, StepperSizesType } from './constants'\r\nimport { GovStepperItemCustomEvent } from '../../../components'\r\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\r\nimport { GovHost } from '../../../helpers/Dom/template.types'\r\nimport { govHost } from '../../../helpers/Dom/template'\r\n\r\n@Component({\r\n\ttag: 'gov-stepper',\r\n})\r\nexport class GovStepper {\r\n\tprivate h: GovHost\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovStepperElement\r\n\t/**\r\n\t * Size of stepper\r\n\t */\r\n\t@Prop() readonly size?: StepperSizesType = 'm'\r\n\t/**\r\n\t * Called when the Stepper state changes\r\n\t */\r\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(StepperSizes, newValue, StepperClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.host.querySelectorAll(StepperItemClass.root).forEach((child: HTMLGovStepperItemElement) => {\r\n\t\t\tchild.setAttribute('size', this.size)\r\n\t\t\tchild.addEventListener('gov-change', (e: GovStepperItemCustomEvent<GovStepperItemChangeEvent>) => {\r\n\t\t\t\te.stopPropagation()\r\n\t\t\t\tthis.govChange.emit(e.detail)\r\n\t\t\t})\r\n\t\t})\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(StepperClass.root)} role=\"list\" size={this.size} hydrated={this.hydrated}>\r\n\t\t\t\t<slot />\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;MAWa,UAAU,GAAA,MAAA;AAItB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAFQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAOxB;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAsB,GAAG;QAP7C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AAaD,IAAA,YAAY,CAAC,QAAgB,EAAA;QAC5B,YAAY,CAAC,YAAY,EAAE,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC;;IAGxD,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;;IAG7B,gBAAgB,GAAA;AACf,QAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAgC,KAAI;YAC9F,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC;YACrC,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAuD,KAAI;gBAChG,CAAC,CAAC,eAAe,EAAE;gBACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;AAC9B,aAAC,CAAC;AACH,SAAC,CAAC;;IAGH,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;;IAGrB,MAAM,GAAA;QACL,QACC,CAAA,CAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,EACnG,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACF;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-tabs-item.entry.esm.js","sources":["../../../packages/core/src/components/gov-tabs/gov-tabs-item.tsx"],"sourcesContent":["import {Component, Element, h, Host, Method, Prop, State, Watch} from '@stencil/core'\r\nimport {createID} from '../../utils/string.utils'\r\nimport {govHost, toBoolAttrIfDefined} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\nimport {TabsClass, TabsItemClass} from './constants'\r\n\r\n@Component({\r\n\ttag: 'gov-tabs-item',\r\n})\r\nexport class GovTabsItem {\r\n\tprivate h: GovHost\r\n\tprivate readonly contentId: string\r\n\tprivate readonly triggerId: string\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.contentId = createID('GovTabContent')\r\n\t\tthis.triggerId = createID('GovTabTrigger')\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTabsItemElement\r\n\t/**\r\n\t * Custom tab item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly identifier: string\r\n\t/**\r\n\t * Custom tab trigger item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly triggerIdentifier: string\r\n\t/**\r\n\t * Item name of the tab\r\n\t */\r\n\t@Prop({reflect: true}) readonly label: string\r\n\t/**\r\n\t * Item disable state\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Icon definition at the stat. Use the type/name notation\r\n\t */\r\n\t@Prop({reflect: true, attribute: 'icon-start'}) readonly iconStart: string\r\n\t/**\r\n\t * Icon definition at the end. Use the type/name notation\r\n\t */\r\n\t@Prop({reflect: true, attribute: 'icon-end'}) readonly iconEnd: string\r\n\t/**\r\n\t * Default selected tab\r\n\t */\r\n\t@Prop() readonly default: boolean = false\r\n\t@State() isActive = false\r\n\r\n\t@Watch('label')\r\n\t@Watch('disabled')\r\n\trerenderParent() {\r\n\t\tconst element = this.h.getParent(TabsClass.root) as HTMLGovTabsElement;\r\n\t\tif (element) {\r\n\t\t\telement.rerender().catch()\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(TabsItemClass.root)} default={this.default}>\r\n\t\t\t\t<div\r\n\t\t\t\t\tclass={TabsItemClass.inner}\r\n\t\t\t\t\trole=\"tabpanel\"\r\n\t\t\t\t\tid={this.identifier || this.contentId}\r\n\t\t\t\t\thidden={!this.isActive}\r\n\t\t\t\t\taria-labelledby={this.triggerIdentifier || this.triggerId}\r\n\t\t\t\t\taria-hidden={toBoolAttrIfDefined(!this.isActive)}\r\n\t\t\t\t>\r\n\t\t\t\t\t<slot></slot>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a unique tab content identifier\r\n\t */\r\n\t@Method()\r\n\tasync getIdentifier(): Promise<string> {\r\n\t\treturn this.identifier || this.contentId\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a unique tab trigger identifier\r\n\t */\r\n\t@Method()\r\n\tasync getTriggerIdentifier(): Promise<string> {\r\n\t\treturn this.triggerIdentifier || this.triggerId\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a unique tab trigger identifier\r\n\t */\r\n\t@Method()\r\n\tasync getDisableState(): Promise<boolean> {\r\n\t\treturn this.disabled\r\n\t}\r\n\r\n\t/**\r\n\t * Set status of tab-item\r\n\t */\r\n\t@Method()\r\n\tasync setActiveStatus(status: boolean): Promise<void> {\r\n\t\tthis.isActive = status\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;;MASa,WAAW,GAAA,MAAA;AAKvB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAmBA;;AAEG;AAC6B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;AASzD;;AAEG;AACc,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;AAChC,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;QAlCxB,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B,QAAA,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,eAAe,CAAC;AAC1C,QAAA,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,eAAe,CAAC;AAC1C;IAmCD,cAAc,GAAA;AACb,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAuB;QACtE,IAAI,OAAO,EAAE;AACZ,YAAA,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;;;IAI5B,MAAM,GAAA;QACL,QACC,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAA,EACrE,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACC,KAAK,EAAE,aAAa,CAAC,KAAK,EAC1B,IAAI,EAAC,UAAU,EACf,EAAE,EAAE,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,SAAS,EACrC,MAAM,EAAE,CAAC,IAAI,CAAC,QAAQ,EACL,iBAAA,EAAA,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,SAAS,iBAC5C,mBAAmB,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAA,EAEhD,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACR,CACA;;AAIT;;AAEG;AAEH,IAAA,MAAM,aAAa,GAAA;AAClB,QAAA,OAAO,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,SAAS;;AAGzC;;AAEG;AAEH,IAAA,MAAM,oBAAoB,GAAA;AACzB,QAAA,OAAO,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,SAAS;;AAGhD;;AAEG;AAEH,IAAA,MAAM,eAAe,GAAA;QACpB,OAAO,IAAI,CAAC,QAAQ;;AAGrB;;AAEG;IAEH,MAAM,eAAe,CAAC,MAAe,EAAA;AACpC,QAAA,IAAI,CAAC,QAAQ,GAAG,MAAM;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-tabs.entry.esm.js","sources":["../../../packages/core/src/components/gov-tabs/gov-tabs.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {\r\n\tColorType,\r\n\tTabColors,\r\n\tTabOrientationType,\r\n\tTabsClass,\r\n\tTabsItemClass,\r\n\tTabSizes,\r\n\tTabSizeType,\r\n\tTabType,\r\n\tTabTypes\r\n} from \"./constants\"\r\nimport {GovTabControllerItem} from \"./gov-tabs.types\"\r\nimport {booleanString, govHost, toBoolAttr} from \"../../helpers/Dom/template\"\r\nimport {Nullable} from \"../../types/interfaces\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {hasOwnProperty} from \"../../utils/helpers.types\";\r\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\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\r\n@Component({\r\n\ttag: \"gov-tabs\",\r\n})\r\nexport class GovTabs {\r\n\tprivate h: GovHost\r\n\tprivate triggerRefs: Record<string, HTMLButtonElement | HTMLGovChipElement> = {}\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTabsElement\r\n\t/**\r\n\t * Tabs type\r\n\t */\r\n\t@Prop() readonly type: TabType = \"text\"\r\n\t/**\r\n\t * Tabs size.\r\n\t */\r\n\t@Prop() readonly size?: TabSizeType = 'm'\r\n\t/**\r\n\t * Style variation of the tab chips.\r\n\t */\r\n\t@Prop() readonly color?: ColorType = \"primary\"\r\n\t/**\r\n\t * Tabs orientation\r\n\t */\r\n\t@Prop() readonly orientation: TabOrientationType = \"horizontal\"\r\n\t/**\r\n\t * Icon and description display direction\r\n\t */\r\n\t@Prop({reflect: true}) readonly direction: 'row' | 'column' = 'row'\r\n\t/**\r\n\t * Emitted when the tab is changed.\r\n\t */\r\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<HTMLGovTabsItemElement>\r\n\r\n\t@Watch(\"type\")\r\n\tvalidateType(newValue: string): void {\r\n\t\tvalidateProp(TabTypes, newValue, TabsClass.root)\r\n\t}\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(TabColors, newValue, TabsClass.root)\r\n\t}\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(TabSizes, newValue, TabsClass.root)\r\n\t}\r\n\r\n\t@State() controllers: GovTabControllerItem[] = []\r\n\t@State() focusIndex = 0\r\n\t@State() inheritedAttributes: Attributes = {}\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.prepareControllers()\r\n\t\tthis.validateSize(this.size)\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\tprivate prepareControllers(skipDefault = false): void {\r\n\t\tthis.controllers = []\r\n\t\tconst promises: Promise<GovTabControllerItem>[] = []\r\n\t\tthis.host.querySelectorAll(':scope > ' + TabsItemClass.root).forEach((tab: HTMLGovTabsItemElement) => {\r\n\t\t\tconst controlItem = Promise.all([\r\n\t\t\t\ttab.getIdentifier(),\r\n\t\t\t\ttab.getTriggerIdentifier(),\r\n\t\t\t\ttab.getDisableState()\r\n\t\t\t]).then(([identifier, triggerIdentifier, disabled]) => {\r\n\t\t\t\tconst isDefault = typeof tab.getAttribute(\"default\") === \"string\"\r\n\t\t\t\tconst iconStart = prepareIconFormat(tab.getAttribute('icon-start'))\r\n\t\t\t\tconst iconEnd = prepareIconFormat(tab.getAttribute('icon-end'))\r\n\t\t\t\treturn {\r\n\t\t\t\t\tlabel: tab.getAttribute(\"label\"),\r\n\t\t\t\t\tdirection: tab.getAttribute(\"direction\"),\r\n\t\t\t\t\tcontentIdentifier: identifier,\r\n\t\t\t\t\tdisabled: disabled,\r\n\t\t\t\t\ttriggerIdentifier: triggerIdentifier,\r\n\t\t\t\t\telement: tab,\r\n\t\t\t\t\tactive: false,\r\n\t\t\t\t\tdefault: isDefault,\r\n\t\t\t\t\ticonStart,\r\n\t\t\t\t\ticonEnd\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tpromises.push(controlItem)\r\n\t\t});\r\n\t\tPromise.all(promises).then(controllers => {\r\n\t\t\tif (skipDefault === false) {\r\n\t\t\t\tlet defaultTabIndex = controllers.findIndex(controller => controller.default)\r\n\t\t\t\tif (defaultTabIndex === -1) defaultTabIndex = 0\r\n\t\t\t\tthis.focusIndex = defaultTabIndex\r\n\t\t\t\tcontrollers[defaultTabIndex].active = true\r\n\t\t\t} else if (this.focusIndex > -1 && hasOwnProperty(controllers, this.focusIndex)) {\r\n\t\t\t\tcontrollers[this.focusIndex].active = true\r\n\t\t\t}\r\n\t\t\tconst isWrongCombination = controllers.findIndex((controller) => controller.active && controller.disabled)\r\n\t\t\tif (isWrongCombination > -1) {\r\n\t\t\t\tcontrollers[isWrongCombination].active = false;\r\n\t\t\t\tconst firstGoodTab = controllers.findIndex((controller) => !controller.disabled)\r\n\t\t\t\tif (firstGoodTab > -1) {\r\n\t\t\t\t\tcontrollers[firstGoodTab].active = true\r\n\t\t\t\t\tthis.focusIndex = firstGoodTab;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.controllers = [...controllers]\r\n\t\t\tthis.reRender()\r\n\t\t})\r\n\t}\r\n\r\n\tprivate setActiveByIdentifier(identifier: string) {\r\n\t\tconst temp = []\r\n\t\tthis.controllers.map(item => {\r\n\t\t\titem.active = identifier === item.triggerIdentifier || identifier === item.contentIdentifier\r\n\t\t\ttemp.push(item)\r\n\t\t})\r\n\t\tthis.controllers = [...temp]\r\n\t}\r\n\r\n\tprivate reRender() {\r\n\t\tthis.controllers.map(control => {\r\n\t\t\tcontrol.element.setActiveStatus(control.active).catch()\r\n\t\t})\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tclass={this.h.classes(TabsClass.root)}\r\n\t\t\t\tsize={this.size}\r\n\t\t\t\tcolor={this.color}\r\n\t\t\t\ttype={this.type}\r\n\t\t\t\tdirection={this.direction}\r\n\t\t\t\tonKeyDown={this.onKeydownHandler.bind(this)}\r\n\t\t\t>\r\n\t\t\t\t<div class={TabsClass.tabs}\r\n\t\t\t\t\t role=\"tablist\"\r\n\t\t\t\t\t {...this.inheritedAttributes}>\r\n\t\t\t\t\t<ul class={TabsClass.list}>\r\n\t\t\t\t\t\t{this.controllers.map(control => (\r\n\t\t\t\t\t\t\t<li class={TabsClass.item}>\r\n\t\t\t\t\t\t\t\t{this.type == \"text\" ? (\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\tclass={TabsClass.btn}\r\n\t\t\t\t\t\t\t\t\t\tid={control.triggerIdentifier}\r\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\tonClick={() => this.onSelectHandler(control)}\r\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\r\n\t\t\t\t\t\t\t\t\t\taria-disabled={toBoolAttr(control.disabled)}\r\n\t\t\t\t\t\t\t\t\t\taria-selected={toBoolAttr(control.active)}\r\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\r\n\t\t\t\t\t\t\t\t\t\ttabindex={control.active && !control.disabled ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLButtonElement)}\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t\t{control.label}\r\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t<gov-chip\r\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\r\n\t\t\t\t\t\t\t\t\t\ttag={'button'}\r\n\t\t\t\t\t\t\t\t\t\tidentifier={control.triggerIdentifier}\r\n\t\t\t\t\t\t\t\t\t\taria-selected={booleanString(control.active)}\r\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\r\n\t\t\t\t\t\t\t\t\t\tfocusable={control.active}\r\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\r\n\t\t\t\t\t\t\t\t\t\tcolor={this.color}\r\n\t\t\t\t\t\t\t\t\t\tsize={this.size === \"xs\" ? \"xs\" : (this.size === \"s\" ? \"s\" : \"m\")}\r\n\t\t\t\t\t\t\t\t\t\ttype={control.active ? \"solid\" : \"outlined\"}\r\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLGovChipElement)}\r\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.onSelectHandler(control)}\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}\r\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-start\"></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t\t{control.label}\r\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}\r\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-end\"></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t</gov-chip>\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t))}\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t</div>\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\tprivate getCurrentTab(): GovTabControllerItem | null {\r\n\t\treturn this.controllers.find(control => control.active) || null\r\n\t}\r\n\r\n\tprivate onSelectHandler(control: GovTabControllerItem) {\r\n\t\tconst index = this.controllers.findIndex(t => t.triggerIdentifier === control.triggerIdentifier);\r\n\t\tthis.focusIndex = index\r\n\t\tthis.setActiveByIdentifier(control.triggerIdentifier)\r\n\t\tthis.reRender()\r\n\t\tthis.govChange.emit(this.getCurrentTab().element)\r\n\t}\r\n\r\n\tprivate onKeydownHandler(e: KeyboardEvent) {\r\n\t\tconst keyCode = e.keyCode\r\n\r\n\t\te.stopPropagation()\r\n\t\tthis.goToPrevNext(keyCode)\r\n\t}\r\n\r\n\tprivate goToPrevNext(keyCode: number) {\r\n\t\tif ([37, 38, 39, 40].includes(keyCode)) {\r\n\t\t\tif (false === (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1)) {\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\r\n\t\t\tthis.controllers[this.focusIndex].active = false\r\n\r\n\t\t\tif (keyCode === 39 || keyCode === 40) {\r\n\t\t\t\tthis.focusIndex++\r\n\t\t\t\tif (this.focusIndex >= this.controllers.length) {\r\n\t\t\t\t\tthis.focusIndex = 0\r\n\t\t\t\t}\r\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\r\n\t\t\t\t\tthis.goToPrevNext(40)\r\n\t\t\t\t}\r\n\t\t\t} else if (keyCode === 37 || keyCode === 38) {\r\n\t\t\t\tthis.focusIndex--\r\n\t\t\t\tif (this.focusIndex < 0) {\r\n\t\t\t\t\tthis.focusIndex = this.controllers.length - 1\r\n\t\t\t\t}\r\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\r\n\t\t\t\t\tthis.goToPrevNext(38)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1) {\r\n\t\t\t\tconst current = this.controllers[this.focusIndex]\r\n\t\t\t\tcurrent.active = true\r\n\t\t\t\tconst trigger = this.triggerRefs[current.triggerIdentifier]\r\n\t\t\t\tif (trigger.nodeName.toLowerCase() === 'gov-chip') {\r\n\t\t\t\t\t(this.triggerRefs[current.triggerIdentifier] as HTMLGovChipElement).setFocus()\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.triggerRefs[current.triggerIdentifier].focus()\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.controllers = [...this.controllers]\r\n\t\t\t\tthis.reRender()\r\n\t\t\t\tthis.govChange.emit(this.getCurrentTab().element)\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Regenerate tabs controllers\r\n\t */\r\n\t@Method()\r\n\tasync refresh(): Promise<void> {\r\n\t\tthis.prepareControllers()\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the currently selected tabs-item\r\n\t */\r\n\t@Method()\r\n\tasync currentTab(): Promise<Nullable<HTMLGovTabsItemElement>> {\r\n\t\treturn this.getCurrentTab().element || null\r\n\t}\r\n\r\n\t/**\r\n\t * Regenerate tabs controllers\r\n\t */\r\n\t@Method()\r\n\tasync setActiveTab(identifier: string): Promise<void> {\r\n\t\tthis.setActiveByIdentifier(identifier)\r\n\t\tthis.reRender()\r\n\t}\r\n\r\n\t/**\r\n\t * Regenerate tabs controllers\r\n\t */\r\n\t@Method()\r\n\tasync rerender(): Promise<void> {\r\n\t\tthis.prepareControllers(true);\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;;MA2Ba,OAAO,GAAA,MAAA;AAKnB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAHQ,QAAA,IAAW,CAAA,WAAA,GAA2D,EAAE;AAQhF;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAY,MAAM;AACvC;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAiB,GAAG;AACzC;;AAEG;AACc,QAAA,IAAK,CAAA,KAAA,GAAe,SAAS;AAC9C;;AAEG;AACc,QAAA,IAAW,CAAA,WAAA,GAAuB,YAAY;AAC/D;;AAEG;AAC6B,QAAA,IAAS,CAAA,SAAA,GAAqB,KAAK;AAqB1D,QAAA,IAAW,CAAA,WAAA,GAA2B,EAAE;AACxC,QAAA,IAAU,CAAA,UAAA,GAAG,CAAC;AACd,QAAA,IAAmB,CAAA,mBAAA,GAAe,EAAE;QA9C5C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AA6BD,IAAA,YAAY,CAAC,QAAgB,EAAA;QAC5B,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC;;AAIjD,IAAA,aAAa,CAAC,QAAgB,EAAA;QAC7B,YAAY,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC;;AAIlD,IAAA,YAAY,CAAC,QAAgB,EAAA;QAC5B,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC;;IAOjD,gBAAgB,GAAA;AACf,QAAA,IAAI,CAAC,iBAAiB,GAAG,IAAI,iBA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AAC,IAAI,CAAC,UAAU,CAAC;AACjD,gBAAA,OAAO,CAAC,MAAM,GAAG,IAAI;gBACrB,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,iBAAiB,CAAC;gBAC3D,IAAI,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,UAAU,EAAE;oBACjD,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,iBAAiB,CAAwB,CAAC,QAAQ,EAAE;;qBACxE;oBACN,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,KAAK,EAAE;;gBAGpD,IAAI,CAAC,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;gBACxC,IAAI,CAAC,QAAQ,EAAE;AACf,gBAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC;;;;AAKpD;;AAEG;AAEH,IAAA,MAAM,OAAO,GAAA;QACZ,IAAI,CAAC,kBAAkB,EAAE;;AAG1B;;AAEG;AAEH,IAAA,MAAM,UAAU,GAAA;QACf,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,IAAI,IAAI;;AAG5C;;AAEG;IAEH,MAAM,YAAY,CAAC,UAAkB,EAAA;AACpC,QAAA,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC;QACtC,IAAI,CAAC,QAAQ,EAAE;;AAGhB;;AAEG;AAEH,IAAA,MAAM,QAAQ,GAAA;AACb,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-tag.entry.esm.js","sources":["../../../packages/core/src/components/gov-tag/constants.ts","../../../packages/core/src/components/gov-tag/gov-tag.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const TagSizes = pick(Sizes, ['_XS', '_S', '_M'])\r\nexport type TagSizesType = `${ValueOf<typeof TagSizes>}`\r\n\r\nexport enum TagType {\r\n\tBOLD = 'bold',\r\n\tSUBTLE = 'subtle',\r\n}\r\nexport type TagTypesType = `${ValueOf<typeof TagType>}`\r\n\r\nexport const TagClass = {\r\n\troot: 'gov-tag',\r\n}\r\n","import {Component, Element, h, Host, Prop, Watch} from '@stencil/core'\r\nimport {govHost} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\nimport {validateProp} from '../../helpers/Validate/props'\r\nimport {ButtonSizes, ButtonColors, ButtonColorType} from '../gov-button/button/constants'\r\nimport {TagClass, TagSizes, TagSizesType, TagTypesType} from './constants'\r\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\r\n\r\n@Component({\r\n\ttag: 'gov-tag',\r\n})\r\nexport class GovTag {\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: HTMLGovTagElement\r\n\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\r\n\t/**\r\n\t * Tag’s size.\r\n\t */\r\n\t@Prop({reflect: true}) readonly size: TagSizesType = TagSizes._S\r\n\t/**\r\n\t * Style variation of the tag.\r\n\t */\r\n\t@Prop({reflect: true}) readonly color: ButtonColorType = ButtonColors.PRIMARY\r\n\t/**\r\n\t * Tag’s type\r\n\t */\r\n\t@Prop({reflect: true}) readonly type: TagTypesType\r\n\t/**\r\n\t * Expands the tag to fill 100% of the container width\r\n\t */\r\n\t@Prop({reflect: true}) readonly expanded: boolean = false\r\n\r\n\t@Watch('color')\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(ButtonColors, newValue, TagClass.root)\r\n\t}\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(ButtonSizes, newValue, TagClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\r\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(TagClass.root)}\r\n\t\t\t\tcolor={this.color}\r\n\t\t\t\tsize={this.size}\r\n\t\t\t\ttype={this.type}\r\n\t\t\t>\r\n\t\t\t\t<span class=\"element\">\r\n\t\t\t\t\t<slot name=\"icon-start\">\r\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t\t<slot/>\r\n\t\t\t\t\t<slot name=\"icon-end\">\r\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t</span>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;AAIO,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAGxD,IAAY,OAGX;AAHD,CAAA,UAAY,OAAO,EAAA;AAClB,IAAA,OAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,OAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAHW,OAAO,KAAP,OAAO,GAGlB,EAAA,CAAA,CAAA;AAGM,MAAM,QAAQ,GAAG;AACvB,IAAA,IAAI,EAAE,SAAS;CACf;;MCJY,MAAM,GAAA,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,IAAI,EAAC,YAAY,IACrB,SAAS,IAAI,iEAAU,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,GAAa,CACzE,EACP,CAAO,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,EACP,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,UAAU,EAAA,EACnB,OAAO,IAAI,CAAA,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAU,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,GAAa,CACnE,CACD,CACD;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-tile.entry.esm.js","sources":["../../../packages/core/src/components/gov-tile/constants.ts","../../../packages/core/src/components/gov-tile/gov-tile.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const TileSizes = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type TileSizesType = `${ValueOf<typeof TileSizes>}`\r\n\r\nexport const TileClass = {\r\n\troot: 'gov-tile',\r\n\tlink: 'gov-tile__link',\r\n\tcontent: 'gov-tile__content',\r\n\ttext: 'gov-tile__text',\r\n\ttitle: 'gov-tile__title',\r\n\ticon: 'gov-tile__icon',\r\n\tannotation: 'gov-tile__annotation',\r\n}\r\n","import {Component, Element, Fragment, h, Host, Method, Prop} from \"@stencil/core\"\r\nimport {TileClass, TileSizesType} from \"./constants\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {ButtonTargetType} from \"../gov-button/button/constants\"\r\n\r\n@Component({\r\n\ttag: \"gov-tile\",\r\n})\r\nexport class GovTile {\r\n\t@Element() host: HTMLGovTileElement\r\n\t/**\r\n\t * Tile’s size\r\n\t */\r\n\t@Prop({reflect: true}) readonly size?: TileSizesType = \"m\"\r\n\t/**\r\n\t * Style variation of the tile.\r\n\t */\r\n\t@Prop() readonly orientation: \"vertical\" | \"horizontal\"\r\n\t/**\r\n\t * Tiles border\r\n\t */\r\n\t@Prop({ attribute: 'no-border' }) readonly noBorder: boolean = false\r\n\t/**\r\n\t * Link on whole tile\r\n\t */\r\n\t@Prop({reflect: true}) 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?: ButtonTargetType\r\n\tprivate triggerRef?: HTMLLinkElement | HTMLSpanElement\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\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(TileClass.root)}\r\n\t\t\t\t size={this.size}\r\n\t\t\t\t orientation={this.orientation}\r\n\t\t\t\t clickable={this.href ? true : null}\r\n\t\t\t>\r\n\t\t\t\t<slot name=\"icon\"/>\r\n\t\t\t\t<div class={TileClass.content}>\r\n\t\t\t\t\t<div class={TileClass.text}>\r\n\t\t\t\t\t\t<div class={TileClass.title}>\r\n\t\t\t\t\t\t\t{this.href ? (\r\n\t\t\t\t\t\t\t\t<Fragment>\r\n\t\t\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\t\t\thref={this.href}\r\n\t\t\t\t\t\t\t\t\t\ttarget={this.target}\r\n\t\t\t\t\t\t\t\t\t\tclass={TileClass.link}\r\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLSpanElement)}>\r\n\t\t\t\t\t\t\t\t\t\t<slot name=\"title\"/>\r\n\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t<span class={TileClass.icon}>\r\n\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-right\" type=\"components\"></gov-icon>\r\n\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t</Fragment>\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t<slot name=\"title\"/>\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class={`${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}`}>\r\n\t\t\t\t\t\t\t<slot/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<slot name=\"button\"/>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a clickable element instance\r\n\t */\r\n\t@Method()\r\n\tasync getTriggerRef() {\r\n\t\treturn this.triggerRef\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;AAIyB,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;AAGhD,MAAM,SAAS,GAAG;AACxB,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,KAAK,EAAE,iBAAiB;AACxB,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,UAAU,EAAE,sBAAsB;CAClC;;MCNY,OAAO,GAAA,MAAA;AA0BnB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAxBA;;AAEG;AAC6B,QAAA,IAAI,CAAA,IAAA,GAAmB,GAAG;AAK1D;;AAEG;AACwC,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;QAcnE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;IAED,MAAM,GAAA;AACL,QAAA,QACC,CAAC,CAAA,IAAI,qDAAC,KAAK,EAAE,IAAI,CA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G,EAAA,SAAS,CAAC,UAAU,CAAI,CAAA,EAAA,IAAI,CAAC,IAAI,GAAG,CAAG,EAAA,SAAS,CAAC,UAAU,WAAW,GAAG,EAAE,CAAE,CAAA,EAAA,EAC3F,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAO,CACF,CACD,EACN,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,QAAQ,GAAE,CAChB,CACA;;AAIT;;AAEG;AAEH,IAAA,MAAM,aAAa,GAAA;QAClB,OAAO,IAAI,CAAC,UAAU;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-toast.entry.esm.js","sources":["../../../packages/core/src/components/gov-toast/constants.ts","../../../packages/core/src/components/gov-toast/gov-toast.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\r\nimport { pick } from '../../utils/utils'\r\nimport { ValueOf } from '../../types/interfaces'\r\n\r\nexport const ToastColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\r\nexport type ToastColorType = `${ValueOf<typeof ToastColors>}`\r\n\r\nexport enum ToastType {\r\n\tBOLD = 'bold',\r\n\tSUBTLE = 'subtle',\r\n}\r\nexport type ToastTypesType = `${ValueOf<typeof ToastType>}`\r\n\r\nexport const ToastClass = {\r\n\troot: 'gov-toast',\r\n\thidden: 'gov-toast--hidden',\r\n\tcontent: 'gov-toast__content',\r\n\ticon: 'gov-toast__icon',\r\n\tclose: 'gov-toast__close',\r\n\ttimer: 'gov-toast__timer',\r\n}\r\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {ToastClass, ToastColors, ToastColorType, ToastTypesType} from \"./constants\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {createID} from \"../../utils/string.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-toast\",\r\n})\r\nexport class GovToast {\r\n\tprivate h: GovHost\r\n\tprivate timeout\r\n\tprivate readonly toastId: string\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.toastId = createID(\"GovToast\")\r\n\t}\r\n\r\n\t@Element() host: HTMLGovToastElement\r\n\t/**\r\n\t * Style variation of the toast message.\r\n\t */\r\n\t@Prop() readonly color?: ToastColorType = \"primary\"\r\n\r\n\t/**\r\n\t * Toast’s gravity\r\n\t */\r\n\t@Prop() readonly gravity: \"top\" | \"bottom\" = \"top\"\r\n\t/**\r\n\t * Toast’s position\r\n\t */\r\n\t@Prop() readonly position: \"left\" | \"center\" | \"right\" = \"right\"\r\n\t/**\r\n\t * Toast type\r\n\t */\r\n\t@Prop() readonly type?: ToastTypesType = \"bold\"\r\n\t/**\r\n\t * Number of milliseconds to wait before Toast disappear\r\n\t */\r\n\t@Prop() readonly time: number = 0\r\n\t/**\r\n\t * Closing button texting instead of icons\r\n\t */\r\n\t@Prop({attribute: \"close-label\"}) readonly closeLabel: string\r\n\t/**\r\n\t * Aria label for the closing button. It is mandatory if the alert is closable\r\n\t */\r\n\t@Prop({attribute: \"accessible-close-label\"}) readonly accessibleCloseLabel: string\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<string>\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(ToastColors, newValue, ToastClass.root)\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\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.runTimer()\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\r\n\tdisconnectedCallback() {\r\n\t\tclearTimeout(this.timeout)\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\tprivate runTimer() {\r\n\t\tif (this.isTimer) {\r\n\t\t\tthis.timeout = setTimeout(() => {\r\n\t\t\t\tthis.host.classList.add(ToastClass.hidden)\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.destroy().catch()\r\n\t\t\t\t\tthis.govClose.emit(this.toastId)\r\n\t\t\t\t}, 600)\r\n\t\t\t}, this.time)\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tclass={this.h.classes(ToastClass.root)}\r\n\t\t\t\tdata-toast-id={this.toastId}\r\n\t\t\t\tgravity={this.gravity}\r\n\t\t\t\tposition={this.position}\r\n\t\t\t\tcolor={this.color}\r\n\t\t\t\ttype={this.type}\r\n\t\t\t\tstyle={{\"--toast-duration\": this.time + \"ms\"}}\r\n\t\t\t>\r\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\r\n\t\t\t\t\t<span class={ToastClass.icon}>\r\n\t\t\t\t\t\t<slot name=\"icon\"/>\r\n\t\t\t\t\t</span>\r\n\t\t\t\t)}\r\n\r\n\t\t\t\t<div class={ToastClass.content} {...this.inheritedAttributes} aria-live=\"polite\" role=\"status\">\r\n\t\t\t\t\t<slot/>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<gov-button\r\n\t\t\t\t\tsize=\"s\"\r\n\t\t\t\t\taria-label={this.accessibleCloseLabel}\r\n\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\r\n\t\t\t\t\ttype=\"base\"\r\n\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\r\n\t\t\t\t\tclass={ToastClass.close}\r\n\t\t\t\t>\r\n\t\t\t\t\t{this.closeLabel ? this.closeLabel : <gov-icon name=\"x-lg\" type=\"components\"></gov-icon>}\r\n\t\t\t\t</gov-button>\r\n\r\n\t\t\t\t<div class={ToastClass.timer}></div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onCloseHandler(): void {\r\n\t\tthis.govClose.emit(this.toastId)\r\n\t\tthis.destroy().catch()\r\n\t}\r\n\r\n\tget isBold(): boolean {\r\n\t\treturn this.type === \"bold\"\r\n\t}\r\n\r\n\tget isTimer(): boolean {\r\n\t\treturn Number.isInteger(this.time) && this.time > 0\r\n\t}\r\n\r\n\t/**\r\n\t * Remove toast from dom\r\n\t */\r\n\t@Method()\r\n\tasync destroy(): Promise<void> {\r\n\t\tclearTimeout(this.timeout)\r\n\t\tconst toast = document.querySelector(`[data-toast-id=\"${this.toastId}\"]`)\r\n\t\tif (toast) {\r\n\t\t\ttoast.classList.add(ToastClass.hidden)\r\n\t\t\tif (typeof toast.remove === \"function\") {\r\n\t\t\t\ttoast.remove()\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;AAIO,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAG9F,IAAY,SAGX;AAHD,CAAA,UAAY,SAAS,EAAA;AACpB,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AAC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AI,EAAC,MAAM,EAAC,IAAI,EAAC,YAAY,GAAY,CAC5E,EAEb,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,UAAU,CAAC,KAAK,EAAQ,CAAA,CAC9B;;IAID,cAAc,GAAA;QACrB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;AAChC,QAAA,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE;;AAGvB,IAAA,IAAI,MAAM,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,IAAI,KAAK,MAAM;;AAG5B,IAAA,IAAI,OAAO,GAAA;AACV,QAAA,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC;;AAGpD;;AAEG;AAEH,IAAA,MAAM,OAAO,GAAA;AACZ,QAAA,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC;AAC1B,QAAA,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAmB,gBAAA,EAAA,IAAI,CAAC,OAAO,CAAI,EAAA,CAAA,CAAC;QACzE,IAAI,KAAK,EAAE;YACV,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC;AACtC,YAAA,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,UAAU,EAAE;gBACvC,KAAK,CAAC,MAAM,EAAE;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-tooltip.gov-tooltip-content.entry.esm.js","sources":["../../../packages/core/src/components/gov-tooltip/constants.tsx","../../../packages/core/src/components/gov-tooltip/gov-tooltip.tsx","../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\r\nimport { Sizes } from '../../core/constants/sizes'\r\nimport { ValueOf } from '../../types/interfaces'\r\nimport { pick } from '../../utils/utils'\r\n\r\nexport const TooltipColors = pick(Colors, ['PRIMARY', 'NEUTRAL'])\r\nexport type TooltipColorType = `${ValueOf<typeof TooltipColors>}`\r\n\r\nexport const TooltipSize = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type TooltipSizeType = `${ValueOf<typeof TooltipSize>}`\r\n\r\nexport enum TooltipPosition {\r\n\tTOP = 'top',\r\n\tRIGHT = 'right',\r\n\tBOTTOM = 'bottom',\r\n\tLEFT = 'left',\r\n}\r\nexport type TooltipPositionType = `${ValueOf<typeof TooltipPosition>}`\r\n\r\nexport const TooltipClass = {\r\n\troot: 'gov-tooltip',\r\n}\r\n\r\nexport const TooltipContentClass = {\r\n\troot: 'gov-tooltip-content',\r\n}\r\n","import {Component, Element, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {\r\n\tTooltipClass,\r\n\tTooltipContentClass,\r\n\tTooltipPosition,\r\n\tTooltipPositionType,\r\n\tTooltipSize,\r\n\tTooltipSizeType,\r\n\tTooltipColors,\r\n\tTooltipColorType,\r\n} from \"./constants\"\r\nimport {createID} from \"../../utils/string.utils\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {documentNode} from \"../../helpers/Dom/win\";\r\nimport {Nullable} from \"../../utils/helpers.types\";\r\nimport {tick} from \"../../utils/stencil.utils\";\r\n\r\n@Component({\r\n\ttag: \"gov-tooltip\",\r\n})\r\nexport class GovTooltip {\r\n\tprivate h: GovHost\r\n\tprivate readonly tooltipContentId = undefined\r\n\tprivate readonly tooltipId = undefined\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.tooltipId = createID(\"GovTooltip\")\r\n\t\tthis.tooltipContentId = createID(\"GovContentTooltip\")\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTooltipElement\r\n\t/**\r\n\t * Style variation of the tooltip\r\n\t */\r\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\r\n\t/**\r\n\t * Tooltip’s size.\r\n\t */\r\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\r\n\t/**\r\n\t * Tooltip display position\r\n\t */\r\n\t@Prop({mutable: true}) position: TooltipPositionType = \"right\"\r\n\t/**\r\n\t * Information contained in the tooltip\r\n\t */\r\n\t@Prop() readonly message: string = undefined\r\n\t/**\r\n\t * Custom tooltip identifier.\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Trigger is just an icon\r\n\t */\r\n\t@Prop({reflect: true}) readonly icon: boolean = undefined\r\n\r\n\t@State() persist = false\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(TooltipColors, newValue, TooltipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(TooltipSize, newValue, TooltipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"position\")\r\n\tvalidatePosition(newValue: string): void {\r\n\t\tvalidateProp(TooltipPosition, newValue, TooltipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"message\")\r\n\trerenderMessage(): void {\r\n\t\tthis.createContentWrapper();\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.createContentWrapper()\r\n\t\tthis.registerListeners()\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.validatePosition(this.position)\r\n\t}\r\n\r\n\tcomponentDidUpdate() {\r\n\t\tthis.createContentWrapper()\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.removeContent()\r\n\t}\r\n\r\n\tprivate createContentWrapper() {\r\n\t\tif (this.tooltipContent) {\r\n\t\t\tif (this.message) {\r\n\t\t\t\tthis.tooltipContent.innerHTML = this.message\r\n\t\t\t} else if (this.insideContent) {\r\n\t\t\t\tthis.tooltipContent.innerHTML = this.insideContent.innerHTML\r\n\t\t\t}\r\n\t\t\treturn\r\n\t\t}\r\n\r\n\t\tlet content: HTMLGovTooltipContentElement;\r\n\t\tif (this.insideContent) {\r\n\t\t\tcontent = this.insideContent\r\n\t\t} else {\r\n\t\t\tcontent = documentNode().createElement(TooltipContentClass.root) as HTMLGovTooltipContentElement\r\n\t\t\tcontent.innerHTML = this.message\r\n\t\t}\r\n\r\n\t\tcontent.setAttribute(\"id\", this.identifier ?? this.tooltipContentId)\r\n\t\tcontent.setAttribute(\"parent-id\", this.tooltipId)\r\n\t\tcontent.setAttribute(\"color\", this.color)\r\n\t\tcontent.setAttribute(\"size\", this.size)\r\n\t\tdocumentNode().body.appendChild(content)\r\n\t}\r\n\r\n\tprivate get tooltipContent(): Nullable<HTMLGovTooltipContentElement> {\r\n\t\treturn documentNode().body.querySelector(`#${this.identifier ?? this.tooltipContentId}`);\r\n\t}\r\n\r\n\tprivate get insideContent(): Nullable<HTMLGovTooltipContentElement> {\r\n\t\treturn this.host.querySelector(TooltipContentClass.root)\r\n\t}\r\n\r\n\tprivate registerListeners() {\r\n\t\tthis.host.addEventListener(\"click\", e => {\r\n\t\t\te.preventDefault()\r\n\t\t\tthis.persist = true\r\n\t\t\tif (this.tooltipContent) {\r\n\t\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"true\")\r\n\t\t\t}\r\n\t\t\tthis.showTooltip()\r\n\t\t})\r\n\t\tthis.host.addEventListener(\"mouseenter\", e => {\r\n\t\t\te.preventDefault()\r\n\t\t\tthis.showTooltip()\r\n\t\t})\r\n\t\tthis.host.addEventListener(\"mouseleave\", e => {\r\n\t\t\te.preventDefault()\r\n\t\t\tif (this.persist === false) {\r\n\t\t\t\tthis.hideTooltip()\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n\tprivate verifyPositionSpace() {\r\n\t\tconst offset = 12\r\n\t\tconst windowWidth = window.innerWidth - (window.innerWidth - document.documentElement.clientWidth);\r\n\t\tconst trigger = this.host.getBoundingClientRect()\r\n\t\tconst trgWidth = this.host.offsetWidth\r\n\t\tconst trgHeight = this.host.offsetHeight\r\n\t\tconst contentWidth = this.tooltipContent.offsetWidth\r\n\t\tconst contentHeight = this.tooltipContent.offsetHeight\r\n\t\tconst triggerPos = {\r\n\t\t\tleft: trigger.left + document.documentElement.scrollLeft,\r\n\t\t\ttop: trigger.top + document.documentElement.scrollTop,\r\n\t\t}\r\n\r\n\t\tconst isRightSpace = ((triggerPos.left + offset + trigger.width) + contentWidth) <= windowWidth;\r\n\t\tconst isLeftSpace = triggerPos.left > contentWidth;\r\n\r\n\t\t// LEFT/RIGHT\r\n\t\tif (this.position === TooltipPosition.LEFT || this.position === TooltipPosition.RIGHT) {\r\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - ((contentHeight - trgHeight) / 2)) + \"px\";\r\n\t\t\tif (isRightSpace === false && isLeftSpace === false) {\r\n\t\t\t\tthis.position = TooltipPosition.TOP\r\n\t\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\r\n\t\t\t}\r\n\t\t\tif (isLeftSpace && isRightSpace === false && this.position === TooltipPosition.RIGHT) {\r\n\t\t\t\tthis.position = TooltipPosition.LEFT\r\n\t\t\t}\r\n\t\t\tif (isRightSpace && isLeftSpace === false && this.position === TooltipPosition.LEFT) {\r\n\t\t\t\tthis.position = TooltipPosition.RIGHT\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.RIGHT) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.RIGHT)\r\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left + offset + trigger.width) + \"px\"\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.LEFT) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.LEFT)\r\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left - (contentWidth + offset)) + \"px\"\r\n\t\t}\r\n\r\n\t\t// LEFT/RIGHT FOR TOP/BOTTOM\r\n\t\tif (this.position === TooltipPosition.TOP || this.position === TooltipPosition.BOTTOM) {\r\n\t\t\tif (contentWidth > trgWidth) {\r\n\t\t\t\tlet leftPosition = (triggerPos.left - ((contentWidth - trgWidth) / 2));\r\n\t\t\t\tconst isNotLeftSpace = leftPosition < 0;\r\n\t\t\t\tconst isNotRightSpace = (leftPosition + contentWidth) > windowWidth;\r\n\t\t\t\tif (isNotLeftSpace && isNotRightSpace) {\r\n\t\t\t\t\tthis.tooltipContent.style.width = \"auto\";\r\n\t\t\t\t\tthis.tooltipContent.style.left = offset + \"px\";\r\n\t\t\t\t\tthis.tooltipContent.style.right = offset + \"px\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (isNotLeftSpace) {\r\n\t\t\t\t\t\tleftPosition = offset\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (isNotRightSpace) {\r\n\t\t\t\t\t\tleftPosition = leftPosition - ((windowWidth - (leftPosition + contentWidth + offset)) * -1)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tconst leftPosition = (triggerPos.left + ((trgWidth - contentWidth) / 2))\r\n\r\n\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.TOP) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\r\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - (contentHeight + offset)) + \"px\"\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.BOTTOM) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.BOTTOM)\r\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top + (trgHeight + offset)) + \"px\"\r\n\t\t}\r\n\r\n\t\tthis.tooltipContent.style.opacity = '1'\r\n\r\n\t}\r\n\r\n\tprivate showTooltip() {\r\n\t\tif (this.tooltipContent) {\r\n\t\t\tthis.tooltipContent.style.opacity = '0'\r\n\t\t\tthis.tooltipContent.hidden = false\r\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"true\")\r\n\t\t\ttick(() => {\r\n\t\t\t\tthis.verifyPositionSpace()\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tprivate hideTooltip() {\r\n\t\tif (this.tooltipContent) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"false\")\r\n\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"false\")\r\n\t\t\tthis.tooltipContent.removeAttribute('style')\r\n\t\t}\r\n\t}\r\n\r\n\tprivate removeContent() {\r\n\t\tconst contentEl = document.getElementById(this.tooltipContentId)\r\n\t\tif (contentEl) {\r\n\t\t\tcontentEl.remove()\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tid={this.tooltipId}\r\n\t\t\t\tclass={this.h.classes(TooltipClass.root)}\r\n\t\t\t\tposition={this.position}>\r\n\t\t\t\t<span role={'button'}\r\n\t\t\t\t\t\t\ttabindex={0}\r\n\t\t\t\t\t\t\tonKeyPress={() => this.showTooltip()}\r\n\t\t\t\t\t\t\tonBlur={() => {\r\n\t\t\t\t\t\t\t\tif (this.persist === false) {\r\n\t\t\t\t\t\t\t\t\tthis.hideTooltip()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\taria-describedby={this.identifier ?? this.tooltipContentId}><slot/></span>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Showing the modal\r\n\t */\r\n\t@Method()\r\n\tasync show(): Promise<void> {\r\n\t\tthis.showTooltip()\r\n\t}\r\n\r\n\t/**\r\n\t * Hiding the modal\r\n\t */\r\n\t@Method()\r\n\tasync hide(): Promise<void> {\r\n\t\tthis.persist = false\r\n\t\tthis.hideTooltip()\r\n\t}\r\n}\r\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\r\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipColors, TooltipColorType } from \"./constants\"\r\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\r\n\r\n@Component({\r\n\ttag: \"gov-tooltip-content\",\r\n})\r\nexport class GovTooltipContent {\r\n\tprivate timeout\r\n\r\n\t@Element() host: HTMLGovTooltipContentElement\r\n\t/**\r\n\t * Style variation of the tooltip\r\n\t */\r\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\r\n\t/**\r\n\t * Tooltip’s size.\r\n\t */\r\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\r\n\t/**\r\n\t * Tooltip is still visible.\r\n\t */\r\n\t@Prop() persist?: boolean = false\r\n\t/**\r\n\t * Indicates display of tooltip content\r\n\t */\r\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\r\n\t/**\r\n\t * Indicates display of tooltip content\r\n\t */\r\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\r\n\r\n\t@Watch(\"isVisible\")\r\n\tvisibleContent(newValue: boolean): void {\r\n\t\tclearTimeout(this.timeout)\r\n\t\tif (newValue === false) {\r\n\t\t\tthis.timeout = setTimeout(() => {\r\n\t\t\t\tthis.host.style.visibility = \"hidden\"\r\n\t\t\t}, 250)\r\n\t\t} else {\r\n\t\t\tthis.host.style.visibility = \"visible\"\r\n\t\t}\r\n\t}\r\n\r\n\thideContent() {\r\n\t\tthis.isVisible = false\r\n\t\tthis.persist = false\r\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\r\n\t\tif (parentEl) {\r\n\t\t\tparentEl.hide().catch()\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tclass={TooltipContentClass.root}\r\n\t\t\t\trole={\"tooltip\"}\r\n\t\t\t\thidden={!this.isVisible}\r\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\r\n\t\t\t\tis-visible={this.isVisible}>\r\n\t\t\t\t<slot></slot>\r\n\t\t\t\t{this.persist ? (\r\n\t\t\t\t\t<gov-button\r\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\r\n\t\t\t\t\t\tcolor={this.color}\r\n\t\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\t\ttype={\"base\"}>\r\n\t\t\t\t\t\t<gov-icon slot={\"icon-start\"} name={\"x-lg\"} type={\"components\"}></gov-icon>\r\n\t\t\t\t\t</gov-button>\r\n\t\t\t\t) : null}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;AAKO,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAG1D,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAG1D,IAAY,eAKX;AALD,CAAA,UAAY,eAAe,EAAA;AAC1B,IAAA,eAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,eAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACd,CAAC,EALW,eAAe,KAAf,eAAe,GAK1B,EAAA,CAAA,CAAA;AAGM,MAAM,YAAY,GAAG;AAC3B,IAAA,IAAI,EAAE,aAAa;CACnB;AAEM,MAAM,mBAAmB,GAAG;AAClC,IAAA,IAAI,EAAE,qBAAqB;CAC3B;;MCHY,UAAU,GAAA,MAAA;AAKtB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAHiB,QAAA,IAAgB,CAAA,gBAAA,GAAG,SAAS;AAC5B,QAAA,IAAS,CAAA,SAAA,GAAG,SAA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AA,EAAA,0CAAA,EACJ,KAAK,EAAE,mBAAmB,CAAC,IAAI,EAC/B,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,CAAC,IAAI,CAAC,SAAS,EAAA,aAAA,EACV,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAC5B,YAAA,EAAA,IAAI,CAAC,SAAS,EAAA,EAC1B,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,EACZ,IAAI,CAAC,OAAO,IACZ,CACe,CAAA,YAAA,EAAA,EAAA,cAAA,EAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EACzC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,MAAM,EAAA,EACZ,CAAU,CAAA,UAAA,EAAA,EAAA,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAa,CAAA,CAC/D,IACV,IAAI,CACF;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-wizard-item.entry.esm.js","sources":["../../../packages/core/src/components/gov-wizard/gov-wizard-item.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\r\nimport { validateProp } from \"../../helpers/Validate/props\"\r\nimport { WizardSizesType, WizardColors, WizardColorType, WizardItemClass } from \"./constants\"\r\nimport { createID } from \"../../utils/string.utils\"\r\nimport { booleanString, govHost, toBoolAttrIfDefined } from \"../../helpers/Dom/template\"\r\nimport { GovHost } from \"../../helpers/Dom/template.types\"\r\nimport { WizardItemEvent } from \"./gov-wizard-item.types\"\r\n\r\nenum Tags {\r\n\tDIV = \"div\",\r\n\tBUTTON = \"button\",\r\n}\r\n\r\n@Component({\r\n\ttag: \"gov-wizard-item\",\r\n})\r\nexport class GovWizardItem {\r\n\tprivate h: GovHost\r\n\tprivate readonly triggerId: string\r\n\tprivate readonly contentId: string\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.triggerId = createID(\"GovWizardItem\")\r\n\t\tthis.contentId = createID(\"GovWizardContent\")\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovWizardItemElement\r\n\t/**\r\n\t * Style variation of the button.\r\n\t */\r\n\t@Prop() readonly color?: WizardColorType = \"primary\"\r\n\t/**\r\n\t * Size of wizard\r\n\t */\r\n\t@Prop() readonly size?: WizardSizesType = \"m\"\r\n\t/**\r\n\t * Custom wizard item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly identifier: string\r\n\t/**\r\n\t * Defines weather the wizard item can be collapsible\r\n\t */\r\n\t@Prop() readonly collapsible: boolean = false\r\n\t/**\r\n\t * Makes the wizard component disabled.\r\n\t */\r\n\t@Prop() readonly disabled: boolean = false\r\n\t/**\r\n\t * Defines whether the accordion is open or closed by button\r\n\t */\r\n\t@Prop({ attribute: \"is-expanded\", mutable: true }) isExpanded = false\r\n\t/**\r\n\t * Called when the accordion state changes\r\n\t */\r\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<WizardItemEvent>\r\n\r\n\t@Watch(\"color\")\r\n\tprivate validateColor(newValue: string): void {\r\n\t\tvalidateProp(WizardColors, newValue, WizardItemClass.root)\r\n\t}\r\n\r\n\tprivate emmitChange(): void {\r\n\t\tthis.govChange.emit({ expanded: this.isExpanded, component: WizardItemClass.root })\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\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 triggerId = this.identifier || this.triggerId\r\n\t\tconst Tag = this.collapsible ? Tags.BUTTON : Tags.DIV\r\n\t\tconst prefixSlot = this.h.hasSlot(\"prefix\") && (<span class={WizardItemClass.prefix}><slot name=\"prefix\" /></span>)\r\n\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(WizardItemClass.root)}\r\n\t\t\t\t is-expanded={this.isExpanded}\r\n\t\t\t\t color={this.color}\r\n\t\t\t\t size={this.size}\r\n\t\t\t\t role=\"listitem\"\r\n\t\t\t\t collapsible={this.collapsible}\r\n\t\t\t\t hydrated={this.hydrated}>\r\n\t\t\t\t<div class={WizardItemClass.header}>\r\n\t\t\t\t\t{prefixSlot}\r\n\t\t\t\t\t{this.collapsible ? (\r\n\t\t\t\t\t\t<Tag\r\n\t\t\t\t\t\t\tid={triggerId}\r\n\t\t\t\t\t\t\tclass={this.h.classes(WizardItemClass.label)}\r\n\t\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\r\n\t\t\t\t\t\t\taria-controls={this.contentId}\r\n\t\t\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t\t\t\tonClick={(e) => {\r\n\t\t\t\t\t\t\t\te.preventDefault()\r\n\t\t\t\t\t\t\t\te.stopPropagation()\r\n\t\t\t\t\t\t\t\tthis.toggle()\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class={WizardItemClass.headline}>\r\n\t\t\t\t\t\t\t\t<slot name=\"headline\" />\r\n\t\t\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizardItemClass.chevron} name=\"chevron-down\" 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=\"annotation\"/>\r\n\t\t\t\t\t\t</Tag>\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t<Tag class={this.h.classes(WizardItemClass.label)}>\r\n\t\t\t\t\t\t\t<span class={WizardItemClass.headline}>\r\n\t\t\t\t\t\t\t\t<slot name=\"headline\" />\r\n\t\t\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizardItemClass.chevron} name=\"chevron-down\" 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=\"annotation\"/>\r\n\t\t\t\t\t\t</Tag>\r\n\t\t\t\t\t)}\r\n\t\t\t\t</div>\r\n\t\t\t\t{this.collapsible ? (\r\n\t\t\t\t\t<div\r\n\t\t\t\t\t\tclass={WizardItemClass.content}\r\n\t\t\t\t\t\tid={this.contentId}\r\n\t\t\t\t\t\taria-hidden={booleanString(!this.isExpanded)}\r\n\t\t\t\t\t\thidden={!this.isExpanded}\r\n\t\t\t\t\t\taria-labelledby={triggerId}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<slot />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t) : (\r\n\t\t\t\t\t<div class={WizardItemClass.content}\r\n\t\t\t\t\t\t aria-hidden={booleanString(!this.isExpanded)}\r\n\t\t\t\t\t\t hidden={!this.isExpanded}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<slot />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t)}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Opening the Wizard\r\n\t */\r\n\t@Method()\r\n\tasync open(): Promise<void> {\r\n\t\tthis.isExpanded = true\r\n\t\tthis.emmitChange()\r\n\t}\r\n\r\n\t/**\r\n\t * Closing the Wizard\r\n\t */\r\n\t@Method()\r\n\tpublic async close(): Promise<void> {\r\n\t\tthis.isExpanded = false\r\n\t\tthis.emmitChange()\r\n\t}\r\n\r\n\t/**\r\n\t * Wizard switch\r\n\t */\r\n\t@Method()\r\n\tpublic async toggle(): Promise<void> {\r\n\t\tthis.isExpanded = !this.isExpanded\r\n\t\tthis.emmitChange()\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\tpublic async currentState(): Promise<boolean> {\r\n\t\treturn this.isExpanded\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;AAQA,IAAK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AK,KAAK,EAAE,eAAe,CAAC,OAAO,EAAA,aAAA,EACpB,aAAa,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,EAC5C,MAAM,EAAE,CAAC,IAAI,CAAC,UAAU,EAAA,EAEzB,CAAA,CAAA,MAAA,EAAA,IAAA,CAAQ,CACH,CACN,CACK;;AAIT;;AAEG;AAEH,IAAA,MAAM,IAAI,GAAA;AACT,QAAA,IAAI,CAAC,UAAU,GAAG,IAAI;QACtB,IAAI,CAAC,WAAW,EAAE;;AAGnB;;AAEG;AAEI,IAAA,MAAM,KAAK,GAAA;AACjB,QAAA,IAAI,CAAC,UAAU,GAAG,KAAK;QACvB,IAAI,CAAC,WAAW,EAAE;;AAGnB;;AAEG;AAEI,IAAA,MAAM,MAAM,GAAA;AAClB,QAAA,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU;QAClC,IAAI,CAAC,WAAW,EAAE;;AAGnB;;AAEG;AAEI,IAAA,MAAM,YAAY,GAAA;QACxB,OAAO,IAAI,CAAC,UAAU;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-wizard.entry.esm.js","sources":["../../../packages/core/src/components/gov-wizard/gov-wizard.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\r\nimport { validateProp } from \"../../helpers/Validate/props\"\r\nimport { WizardSizes, WizardSizesType, WizardClass, WizardItemClass } from \"./constants\"\r\nimport { GovWizardItemChangeEvent } from \"./gov-wizard-item.d\"\r\nimport { govHost } from \"../../helpers/Dom/template\"\r\nimport { GovHost } from \"../../helpers/Dom/template.types\"\r\nimport { validateAccessibleLabel } from \"../../helpers/Validate/wcag\"\r\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\r\nimport { delay } from \"../../utils/utils\"\r\n\r\n@Component({\r\n\ttag: \"gov-wizard\",\r\n})\r\nexport class GovWizard {\r\n\tprivate h: GovHost\r\n\tprivate hydrated = false\r\n\r\n\t@Element() readonly host: HTMLGovWizardElement\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t/**\r\n\t * Size of wizard\r\n\t */\r\n\t@Prop() readonly size?: WizardSizesType = \"m\"\r\n\t/**\r\n\t * Adds accessible label for the wizard that is only shown for screen readers.\r\n\t */\r\n\t@Prop({ attribute: \"wcag-label\" }) readonly wcagLabel: string\r\n\t/**\r\n\t * String of id's that indicate alternative labels elements\r\n\t */\r\n\t@Prop({ attribute: \"wcag-labelled-by\" }) readonly wcagLabelledBy: string\r\n\t/**\r\n\t * Called when the wizard children state changes\r\n\t */\r\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<GovWizardItemChangeEvent>\r\n\r\n\t@Watch(\"size\")\r\n\tprivate validateSize(newValue: string): void {\r\n\t\tvalidateProp(WizardSizes, newValue, WizardClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.host.querySelectorAll(WizardItemClass.root).forEach((child: HTMLGovWizardItemElement) => {\r\n\t\t\tchild.setAttribute(\"size\", this.size)\r\n\t\t\t/*\r\n\t\t\tchild.addEventListener('gov-change', (e: GovWizardItemCustomEvent<GovWizardItemChangeEvent>) => {\r\n\t\t\t\te.stopPropagation()\r\n\t\t\t\tthis.govChange.emit(e.detail)\r\n\t\t\t})\r\n\t\t\t*/\r\n\t\t})\r\n\t}\r\n\r\n\tasync componentDidRender() {\r\n\t\tif (canValidateWcagOnRender()) {\r\n\t\t\tawait delay(500)\r\n\t\t\tawait this.validateWcag()\r\n\t\t}\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(WizardClass.root)} role=\"list\" size={this.size} hydrated={this.hydrated}>\r\n\t\t\t\t<slot />\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Validate the WCAG attributes of the component\r\n\t */\r\n\t@Method()\r\n\tpublic async validateWcag(): Promise<void> {\r\n\t\tvalidateAccessibleLabel(this.wcagLabel, this.wcagLabelledBy, WizardClass.root)\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;MAaa,SAAS,GAAA,MAAA;AAMrB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAJQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAQxB;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAqB,GAAG;QAN5C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AAoBO,IAAA,YAAY,CAAC,QAAgB,EAAA;QACpC,YAAY,CAAC,WAAW,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;;IAGtD,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;;IAG7B,gBAAgB,GAAA;AACf,QAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAA+B,KAAI;YAC5F,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC;AACrC;;;;;AAKE;AACH,SAAC,CAAC;;AAGH,IAAA,MAAM,kBAAkB,GAAA;QACvB,IAAI,uBAAuB,EAAE,EAAE;AAC9B,YAAA,MAAM,KAAK,CAAC,GAAG,CAAC;AAChB,YAAA,MAAM,IAAI,CAAC,YAAY,EAAE;;;IAI3B,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;;IAGrB,MAAM,GAAA;QACL,QACC,CAAA,CAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,EAClG,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACF;;AAIT;;AAEG;AAEI,IAAA,MAAM,YAAY,GAAA;AACxB,QAAA,uBAAuB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC;;;;;;;;;;"}
|
package/dist/core/index.esm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader.esm.js","sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"names":[],"mappings":";;;;AAGY,MAAC,oBAAoB,GAAG,OAAO,GAAG,EAAE,OAAO,KAAK;AAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS;AACrD,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D;;;;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,g as o}from"./p-ClISz4NF.js";import{g as r,a as n}from"./p-CoD1xawt.js";import{c as a}from"./p-vN03FcXN.js";import{b as c}from"./p-Bo1ROm5Q.js";import"./p-BcQO4NH2.js";import"./p-U40vKHrs.js";import"./p-CQvUntGY.js";const h={triggerEvents:"click",exclude:""};function l(t,i,s,e=h){const o=f(e);p(e).forEach((e=>{window.addEventListener(e,(e=>{d(e,t,i,s,o)}),false)}))}function d(t,i,s,e,o){const r=t.target;if(!s.contains(r)&&!u(r,o)){e.call(i)}}function p(t){if(t.triggerEvents){return t.triggerEvents.split(",").map((t=>t.trim()))}return["click"]}function f(t){if(t.exclude){try{return Array.from(document.querySelectorAll(t.exclude))}catch(i){console.warn(`@ClickOutside: Exclude: '${t.exclude}' will not be evaluated. Check your exclude selector syntax.`,i)}}return}function u(t,i){if(t&&i){for(let s of i){if(s.contains(t)){return true}}}return false}var g;(function(t){t["LEFT"]="left";t["RIGHT"]="right"})(g||(g={}));const v={root:"gov-dropdown",list:"gov-dropdown__list"};const m=class{constructor(s){t(this,s);this.govChange=i(this,"gov-change");this.open=false;this.position=g.LEFT;this.h=r(this.host);this.listId=a("GovDropdownList");this.controlId=a("GovDropdownControl")}watchOpen(){var t;(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-expanded",n(this.open))}get trigger(){return this.host.querySelector(`* > ${c.root}`)}get list(){return this.h.getSlot("list")}componentWillLoad(){var t;if(!this.trigger)return;this.trigger.setAttribute("aria-controls",this.listId);this.trigger.setAttribute("aria-haspopup",n(!!this.list));this.trigger.setAttribute("aria-expanded",n(this.open));this.trigger.setAttribute("identifier",(t=this.identifier)!==null&&t!==void 0?t:this.controlId);this.trigger.addEventListener("gov-click",(t=>{t.preventDefault();t.stopPropagation();this.open=!this.open;this.govChange.emit({component:v.root,originalEvent:t,open:this.open})}))}render(){return s(e,{key:"24e596043840ec3b4e2ae0c59cecd1ec5425f5b5",class:this.h.classes([v.root]),open:this.open,position:this.position},s("slot",{key:"5c9c344162c6842585b134b327e9d45e4c1df19e"}),s("div",{key:"b424408e77eaebc2eedfe5ac1c7a916808af21f7",ref:t=>l(this,t,(()=>this.open=false)),class:v.list,id:this.listId,"aria-labelledby":this.controlId,"aria-hidden":n(!this.open),hidden:!this.open},s("slot",{key:"b39d21fd27642fd5e7ece4b9d68de2e8468b93ae",name:"list"})))}async getState(){return this.open}async toggle(){this.open=!this.open}get host(){return o(this)}static get watchers(){return{open:["watchOpen"]}}};export{m as gov_dropdown};
|
|
2
|
-
//# sourceMappingURL=p-017d6340.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ClickOutsideOptionsDefaults","triggerEvents","exclude","registerClickOutside","component","element","callback","opt","excludedNodes","getExcludedNodes","getTriggerEvents","forEach","triggerEvent","window","addEventListener","e","initClickOutside","event","target","contains","isExcluded","call","split","map","trim","Array","from","document","querySelectorAll","err","console","warn","excudedNodes","excludedNode","Position","DropdownClass","root","list","GovDropdown","constructor","hostRef","this","open","position","LEFT","h","govHost","host","listId","createID","controlId","watchOpen","_a","trigger","setAttribute","toBoolAttr","querySelector","ButtonClass","getSlot","componentWillLoad","identifier","preventDefault","stopPropagation","govChange","emit","originalEvent","render","Host","key","class","classes","ref","el","id","hidden","name","getState","toggle"],"sources":["../../../node_modules/stencil-click-outside/dist/esm/index.js","../../../packages/core/src/components/gov-button/dropdown/constants.ts","../../../packages/core/src/components/gov-button/dropdown/gov-dropdown.tsx"],"sourcesContent":["import { Build as BUILD, getElement } from '@stencil/core';\nconst ClickOutsideOptionsDefaults = {\n triggerEvents: \"click\",\n exclude: \"\"\n};\n/**\n * Call this function as soon as the click outside of annotated method's host is done.\n * @example\n```\n@ClickOutside()\ncallback() {\n // this will run when click outside of element (host component) is done.\n}\n```\n */\nexport function ClickOutside(opt = ClickOutsideOptionsDefaults) {\n return (proto, methodName) => {\n // this is to resolve the 'compiler optimization issue':\n // lifecycle events not being called when not explicitly declared in at least one of components from bundle\n BUILD.connectedCallback = true;\n BUILD.disconnectedCallback = true;\n const { connectedCallback, disconnectedCallback } = proto;\n proto.connectedCallback = function () {\n const host = getElement(this);\n const method = this[methodName];\n registerClickOutside(this, host, method, opt);\n return connectedCallback && connectedCallback.call(this);\n };\n proto.disconnectedCallback = function () {\n const host = getElement(this);\n const method = this[methodName];\n removeClickOutside(this, host, method, opt);\n return disconnectedCallback && disconnectedCallback.call(this);\n };\n };\n}\n/**\n * Register callback function for HTMLElement to be executed when user clicks outside of element.\n * @example\n```\n<span\n ref={spanEl => registerClickOutside(this, spanEl, () => this.test())}>\n Hello, World!\n</span>;\n```\n */\nexport function registerClickOutside(component, element, callback, opt = ClickOutsideOptionsDefaults) {\n const excludedNodes = getExcludedNodes(opt);\n getTriggerEvents(opt).forEach(triggerEvent => {\n window.addEventListener(triggerEvent, (e) => {\n initClickOutside(e, component, element, callback, excludedNodes);\n }, false);\n });\n}\n/**\n * Remove click outside callback function for HTMLElement.\n */\nexport function removeClickOutside(component, element, callback, opt = ClickOutsideOptionsDefaults) {\n getTriggerEvents(opt).forEach(triggerEvent => {\n window.removeEventListener(triggerEvent, (e) => {\n initClickOutside(e, component, element, callback);\n }, false);\n });\n}\nfunction initClickOutside(event, component, element, callback, excludedNodes) {\n const target = event.target;\n if (!element.contains(target) && !isExcluded(target, excludedNodes)) {\n callback.call(component);\n }\n}\nfunction getTriggerEvents(opt) {\n if (opt.triggerEvents) {\n return opt.triggerEvents.split(\",\").map(e => e.trim());\n }\n return [\"click\"];\n}\nfunction getExcludedNodes(opt) {\n if (opt.exclude) {\n try {\n return Array.from(document.querySelectorAll(opt.exclude));\n }\n catch (err) {\n console.warn(`@ClickOutside: Exclude: '${opt.exclude}' will not be evaluated. Check your exclude selector syntax.`, err);\n }\n }\n return;\n}\nfunction isExcluded(target, excudedNodes) {\n if (target && excudedNodes) {\n for (let excludedNode of excudedNodes) {\n if (excludedNode.contains(target)) {\n return true;\n }\n }\n }\n return false;\n}\n","import { ValueOf } from \"../../../types/interfaces\"\r\n\r\nexport enum Position {\r\n\tLEFT = 'left',\r\n\tRIGHT = 'right',\r\n}\r\n\r\nexport type PositionType = `${ValueOf<typeof Position>}`\r\n\r\nexport const DropdownClass = {\r\n\troot: 'gov-dropdown',\r\n\tlist: 'gov-dropdown__list'\r\n}\r\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch} from \"@stencil/core\"\r\nimport {registerClickOutside} from \"stencil-click-outside\"\r\nimport {govHost, toBoolAttr} from \"../../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\r\nimport {Nullable} from \"../../../types/interfaces\"\r\nimport {createID} from \"../../../utils/string.utils\"\r\nimport {ButtonClass} from \"../button/constants\"\r\nimport {DropdownClass, Position, PositionType} from \"./constants\"\r\nimport {DropdownEvent} from \"./gov-dropdown.types\"\r\n\r\n@Component({\r\n\ttag: \"gov-dropdown\",\r\n})\r\nexport class GovDropdown {\r\n\tprivate h: GovHost\r\n\tprivate readonly listId: string\r\n\tprivate readonly controlId: string\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.listId = createID(\"GovDropdownList\")\r\n\t\tthis.controlId = createID(\"GovDropdownControl\")\r\n\t}\r\n\r\n\t@Element() host: HTMLGovButtonElement\r\n\r\n\t/**\r\n\t * Custom trigger identifier\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Dropdown state\r\n\t */\r\n\t@Prop({mutable: true}) open = false\r\n\t/**\r\n\t * Menu display position\r\n\t */\r\n\t@Prop() readonly position: PositionType = Position.LEFT\r\n\t/**\r\n\t * Emitted when the dropdown change state\r\n\t */\r\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<DropdownEvent>\r\n\r\n\t@Watch('open')\r\n\twatchOpen() {\r\n\t\tthis.trigger?.setAttribute(\"aria-expanded\", toBoolAttr(this.open))\r\n\t}\r\n\r\n\tget trigger() {\r\n\t\treturn this.host.querySelector(`* > ${ButtonClass.root}`) as HTMLGovButtonElement\r\n\t}\r\n\r\n\tget list() {\r\n\t\treturn this.h.getSlot(\"list\") as Nullable<HTMLUListElement>\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tif (!this.trigger) return;\r\n\r\n\t\tthis.trigger.setAttribute(\"aria-controls\", this.listId)\r\n\t\tthis.trigger.setAttribute(\"aria-haspopup\", toBoolAttr(!!this.list))\r\n\t\tthis.trigger.setAttribute(\"aria-expanded\", toBoolAttr(this.open))\r\n\t\tthis.trigger.setAttribute(\"identifier\", this.identifier ?? this.controlId)\r\n\r\n\t\tthis.trigger.addEventListener(\"gov-click\", (e) => {\r\n\t\t\te.preventDefault()\r\n\t\t\te.stopPropagation()\r\n\t\t\tthis.open = !this.open\r\n\r\n\t\t\tthis.govChange.emit({\r\n\t\t\t\tcomponent: DropdownClass.root,\r\n\t\t\t\toriginalEvent: e,\r\n\t\t\t\topen: this.open,\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={this.h.classes([DropdownClass.root])} open={this.open} position={this.position}>\r\n\t\t\t\t<slot></slot>\r\n\t\t\t\t<div\r\n\t\t\t\t\tref={el => registerClickOutside(this, el, () => this.open = false)}\r\n\t\t\t\t\tclass={DropdownClass.list}\r\n\t\t\t\t\tid={this.listId}\r\n\t\t\t\t\taria-labelledby={this.controlId}\r\n\t\t\t\t\taria-hidden={toBoolAttr(!this.open)}\r\n\t\t\t\t\thidden={!this.open}>\r\n\t\t\t\t\t<slot name=\"list\"></slot>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the current state of the dropdown\r\n\t */\r\n\t@Method()\r\n\tasync getState() {\r\n\t\treturn this.open\r\n\t}\r\n\r\n\t/**\r\n\t * Toggle state of dropdown\r\n\t */\r\n\t@Method()\r\n\tasync toggle() {\r\n\t\tthis.open = !this.open\r\n\t}\r\n}\r\n"],"mappings":"2PACA,MAAMA,EAA8B,CAChCC,cAAe,QACfC,QAAS,IA2CN,SAASC,EAAqBC,EAAWC,EAASC,EAAUC,EAAMP,GACrE,MAAMQ,EAAgBC,EAAiBF,GACvCG,EAAiBH,GAAKI,SAAQC,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g as r}from"./p-B6CqPcY_.js";import{i as c}from"./p-CzXeijOj.js";import{A as f,a as m}from"./p-Bz_RzYFb.js";import"./p-BcQO4NH2.js";import"./p-CQvUntGY.js";import"./p-EeKNA85D.js";import"./p-U40vKHrs.js";import"./p-DYcNEwSZ.js";import"./p-DBXGhafv.js";const d={root:"gov-form-file",area:"gov-form-file__area",input:"gov-form-file__input",inputFocus:"gov-form-file__input-focus",attachments:"gov-form-file__attachments"};function p(t){const s=["bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let i=0,e=parseInt(t,10)||0;while(e>=1024&&++i){e=e/1024}return e.toFixed(e<10&&i>0?1:0)+" "+s[i]}function u(t,s){if(typeof s==="string"&&s.length){return s.replace(/\s/g,"").split(",").filter((s=>new RegExp(s.replace("*",".*")).test(t.type))).length>0}else{return true}}function v(t,s){const i=Math.round(t.size);return i<=s}const g=class{constructor(i){t(this,i);this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govFiles=s(this,"gov-files");this.govAddFile=s(this,"gov-add-file");this.govRemoveFile=s(this,"gov-remove-file");this.eventsRegistered=false;this.expanded=false;this.required=false;this.disabled=false;this.resetAfterPick=false;this.ignoreFileDuplicationCheck=false;this.displayAttachments=true;this.multiple=false;this.maxFileSize=-1;this.errorSize="Soubor je větší než povolená velikost {FILE_SIZE}";this.errorAccept="Soubor tohoto typu není povolen";this.accessibleAttachmentsLabel="Přílohy";this.files=[];this.inheritedAttributes={};this.fileId=h("GovInputFile");this.h=n(this.host);this.f=r(this.h)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("invalid",a(this.invalid));this.f.passAttrToControl("disabled",a(this.disabled));this.f.passAttrToControl("type","File")}registerListeners(){if(this.eventsRegistered){return}this.eventsRegistered=true;function t(){this.areaRef.classList.add("highlight")}function s(){this.areaRef.classList.remove("highlight")}this.inputRef.addEventListener("change",(t=>{t.preventDefault();t.stopPropagation();const s=t.target.files;if(this.resetAfterPick){if(s.length){this.validateFiles(s)}}else{this.validateFiles(s)}}),false);if(this.expanded){const i=["dragover","dragleave"];const e=["dragenter","dragover","mouseenter"];const o=["dragleave","mouseleave"];i.map((t=>this.inputRef.addEventListener(t,this.preventDefaults.bind(this),false)));e.map((s=>this.inputRef.addEventListener(s,t.bind(this),false)));o.forEach((t=>this.inputRef.addEventListener(t,s.bind(this),false)))}}preventDefaults(t){t.preventDefault();t.stopPropagation()}handleDrop(t){const s=t.dataTransfer;this.validateFiles(s.files)}validateFiles(t){let s=[];Array.from(t).map((t=>{const i=this.files.find((s=>s.file.name===t.name&&s.file.size===t.size))||null;if(i===null||this.ignoreFileDuplicationCheck){const i=typeof this.maxFileSize==="number"&&this.maxFileSize>0?v(t,this.maxFileSize):true;const e=u(t,this.accept);const o={id:h("GovFormFile"),file:t,acceptValid:e,sizeValid:i};if(this.displayAttachments){this.files=[...this.files,o]}else{s=[...s,o]}this.govAddFile.emit({component:d.root,file:o})}}));this.govFiles.emit({component:d.root,files:s.length?s:this.files});if(this.resetAfterPick){this.reset().finally()}}componentDidLoad(){this.attributeObserver=new f(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(m)}componentWillLoad(){this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs();this.inheritedAttributes=c(this.host)}async componentDidRender(){this.registerListeners()}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){return i(e,{key:"59bdd8c7d3bf9594fa545146ca44a00f060fccab",class:this.h.classes([d.root]),invalid:l(this.invalid),expanded:l(this.expanded)},i("div",{key:"fd1714f4eb7596fdc1eb67fe8b6d25e4ec93f454",class:d.area,ref:t=>this.areaRef=t},i("slot",{key:"2712d87a6889321616b1b4cb03ea0c61aefcd241"}),i("input",Object.assign({key:"ac998000d9551871016d4c2ab802040634ff6256",class:d.input,ref:t=>this.inputRef=t,id:this.identifier||this.fileId,type:"file",name:this.name,accept:this.accept,multiple:this.multiple,onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,disabled:this.disabled},this.inheritedAttributes,{"aria-required":l(this.required),"aria-invalid":l(this.invalid),"aria-disabled":l(this.disabled)})),i("div",{key:"54a896ed65deef09f11a8b497f926d079fb599d1",class:d.inputFocus})),this.h.hasSlot("attachments")?i("div",{class:d.attachments},i("slot",{name:"attachments"})):null,this.files.length&&this.displayAttachments?i("div",{class:d.attachments},i("gov-attachments",{label:this.accessibleAttachmentsLabel,"accessible-label":this.accessibleAttachmentsLabel},this.files.map((t=>i("gov-attachments-item",{"accessible-remove-labelledby":t.id,"on-gov-remove":()=>this.onRemoveFileHandler(t)},t.file.name,i("span",{slot:"name"},t.file.name),t.acceptValid===false?i("gov-form-message",{slot:"message",color:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill",type:"components"}),t.acceptValid===false?this.errorAccept:null):null,t.sizeValid===false?i("gov-form-message",{slot:"message",color:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill",type:"components"}),this.errorSize.replace("{FILE_SIZE}",p(this.maxFileSize))):null,i("span",{slot:"info"},"(",p(t.file.size),")")))))):null)}onRemoveFileHandler(t){const s=this.files.findIndex((s=>s.id===t.id));if(s!==-1){const t=this.files;const i=this.files[s];t.splice(s,1);this.files=[...t];this.govRemoveFile.emit({component:d.root,file:i});this.govFiles.emit({component:d.root,files:t})}}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:d.root,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:d.root,originalEvent:t})}onChangeHandler(t){t.stopPropagation()}async getRef(){return this.inputRef}async getAreaRef(){return this.areaRef}async reset(){this.files=[];this.inputRef.value=""}get host(){return o(this)}static get watchers(){return{disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}};export{g as gov_form_file};
|
|
2
|
-
//# sourceMappingURL=p-01bc645f.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["FormFileClass","root","area","input","inputFocus","attachments","formatBytes","bytes","units","l","n","parseInt","toFixed","fileAcceptValidation","file","accept","length","replace","split","filter","RegExp","test","type","fileSizeValidation","maxSize","fileSize","Math","round","size","GovFormFile","constructor","hostRef","this","eventsRegistered","expanded","required","disabled","resetAfterPick","ignoreFileDuplicationCheck","displayAttachments","multiple","maxFileSize","errorSize","errorAccept","accessibleAttachmentsLabel","files","inheritedAttributes","fileId","createID","h","govHost","host","f","govForm","watchControlAttrs","passControlAttrs","passAttrToControl","toBoolAttr","invalid","registerListeners","highlight","areaRef","classList","add","unhighlight","remove","inputRef","addEventListener","e","preventDefault","stopPropagation","target","validateFiles","events","inEvents","outEvents","map","eventName","preventDefaults","bind","forEach","handleDrop","dataTransfer","filesBuffer","Array","from","isFile","find","item","name","isSizeValid","isAcceptValid","newFile","id","acceptValid","sizeValid","govAddFile","emit","component","govFiles","reset","finally","componentDidLoad","attributeObserver","AttributeObserver","attributeName","newValue","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","passAttrToLabel","String","inheritAriaAttributes","componentDidRender","disconnectedCallback","_a","stopObserving","removeAttribute","Object","assign","render","Host","key","class","classes","toBoolAttrIfDefined","ref","el","identifier","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","hasSlot","label","onRemoveFileHandler","slot","color","index","findIndex","removeFile","splice","govRemoveFile","govFocus","originalEvent","govBlur","getRef","getAreaRef","value"],"sources":["../../../packages/core/src/components/gov-form/file/constants.ts","../../../packages/core/src/utils/file.utils.ts","../../../packages/core/src/components/gov-form/file/gov-form-file.tsx"],"sourcesContent":["export const FormFileClass = {\r\n\troot: 'gov-form-file',\r\n\tarea: 'gov-form-file__area',\r\n\tinput: 'gov-form-file__input',\r\n\tinputFocus: 'gov-form-file__input-focus',\r\n\tattachments: 'gov-form-file__attachments',\r\n}\r\n","export function formatBytes(bytes: any): string {\r\n\tconst units = ['bytes', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']\r\n\tlet l = 0,\r\n\t\tn = parseInt(bytes, 10) || 0\r\n\r\n\twhile (n >= 1024 && ++l) {\r\n\t\tn = n / 1024\r\n\t}\r\n\r\n\treturn n.toFixed(n < 10 && l > 0 ? 1 : 0) + ' ' + units[l]\r\n}\r\n\r\nexport function fileAcceptValidation(file: File, accept: string): boolean {\r\n\tif (typeof accept === 'string' && accept.length) {\r\n\t\treturn (\r\n\t\t\taccept\r\n\t\t\t\t.replace(/\\s/g, '')\r\n\t\t\t\t.split(',')\r\n\t\t\t\t.filter(accept => {\r\n\t\t\t\t\treturn new RegExp(accept.replace('*', '.*')).test(file.type)\r\n\t\t\t\t}).length > 0\r\n\t\t)\r\n\t} else {\r\n\t\treturn true\r\n\t}\r\n}\r\n\r\nexport function fileSizeValidation(file: File, maxSize: number): boolean {\r\n\tconst fileSize = Math.round(file.size)\r\n\treturn fileSize <= maxSize\r\n}\r\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {createID} from \"../../../utils/string.utils\"\r\nimport {FormFileClass} from \"./constants\"\r\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\r\nimport {fileAcceptValidation, fileSizeValidation, formatBytes} from \"../../../utils/file.utils\"\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 {GovFormFileEvent, GovFormFileItem} from \"./gov-form-file.types\"\r\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\r\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\r\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\r\n\r\n@Component({\r\n\ttag: \"gov-form-file\",\r\n})\r\nexport class GovFormFile {\r\n\tprivate f: GovForm\r\n\tprivate readonly h: GovHost\r\n\r\n\tprivate areaRef?: HTMLDivElement\r\n\tprivate inputRef?: HTMLInputElement\r\n\tprivate readonly fileId: string\r\n\tprivate attributeObserver: AttributeObserver\r\n\tprivate eventsRegistered = false\r\n\r\n\tconstructor() {\r\n\t\tthis.fileId = createID(\"GovInputFile\")\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: HTMLGovFormFileElement\r\n\t/**\r\n\t * Expands the file input to fill 100% of the container width.\r\n\t */\r\n\t@Prop() readonly expanded: boolean = 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 * 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 * Makes the File component disabled.\r\n\t * This prevents users from being able to interact with the File, 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 * After selecting the files, the main input element will be reset.\r\n\t * The propagation of the event with the selected files will not be affected.\r\n\t */\r\n\t@Prop({attribute: \"reset-after-pick\"}) readonly resetAfterPick: boolean = false\r\n\t/**\r\n\t * Selected files will not be checked for duplicates based on name and size.\r\n\t */\r\n\t@Prop({attribute: \"ignore-file-duplication-check\"}) readonly ignoreFileDuplicationCheck: boolean = false\r\n\t/**\r\n\t * Show list of attachments\r\n\t */\r\n\t@Prop({attribute: \"display-attachments\"}) readonly displayAttachments: boolean = true\r\n\t/**\r\n\t * Name of the input.\r\n\t */\r\n\t@Prop() readonly name: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept\r\n\t */\r\n\t@Prop() readonly accept: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple\r\n\t */\r\n\t@Prop() readonly multiple: boolean = false\r\n\t/**\r\n\t * Maximum embedded file size\r\n\t */\r\n\t@Prop({attribute: \"max-file-size\"}) readonly maxFileSize: number = -1\r\n\t/**\r\n\t * Custom File 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 * Error message when the maximum file size is exceeded\r\n\t */\r\n\t@Prop({attribute: \"error-size\"}) readonly errorSize: string = \"Soubor je větší než povolená velikost {FILE_SIZE}\"\r\n\t/**\r\n\t * Insert unsupported file error message\r\n\t */\r\n\t@Prop({attribute: \"error-accept\"}) readonly errorAccept: string = \"Soubor tohoto typu není povolen\"\r\n\t/**\r\n\t * Adds accessible label for the list of attachments.\r\n\t */\r\n\t@Prop({attribute: \"accessible-attachments-label\"}) readonly accessibleAttachmentsLabel: string = \"Přílohy\"\r\n\t/**\r\n\t * Emitted when the File has focus.\r\n\t */\r\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<GovFormFileEvent>\r\n\t/**\r\n\t * Emitted when the File loses focus.\r\n\t */\r\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<GovFormFileEvent>\r\n\t/**\r\n\t * Called when the list of inserted files is changed\r\n\t */\r\n\t@Event({eventName: \"gov-files\"}) govFiles: EventEmitter<GovFormFileEvent>\r\n\t/**\r\n\t * Called when a new file is added\r\n\t */\r\n\t@Event({eventName: \"gov-add-file\"}) govAddFile: EventEmitter<GovFormFileEvent>\r\n\t/**\r\n\t * Called when a file is removed from the list\r\n\t */\r\n\t@Event({eventName: \"gov-remove-file\"}) govRemoveFile: EventEmitter<GovFormFileEvent>\r\n\r\n\r\n\t@Watch(\"disabled\")\r\n\t@Watch(\"invalid\")\r\n\twatchControlAttrs(): void {\r\n\t\tthis.passControlAttrs()\r\n\t}\r\n\r\n\t@State() files: GovFormFileItem[] = []\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\r\n\r\n\tprivate passControlAttrs() {\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\", \"File\")\r\n\t}\r\n\r\n\r\n\tprivate registerListeners() {\r\n\t\tif (this.eventsRegistered) {\r\n\t\t\treturn\r\n\t\t}\r\n\t\tthis.eventsRegistered = true\r\n\r\n\t\tfunction highlight() {\r\n\t\t\tthis.areaRef.classList.add(\"highlight\")\r\n\t\t}\r\n\r\n\t\tfunction unhighlight() {\r\n\t\t\tthis.areaRef.classList.remove(\"highlight\")\r\n\t\t}\r\n\r\n\t\tthis.inputRef.addEventListener(\r\n\t\t\t\"change\",\r\n\t\t\te => {\r\n\t\t\t\te.preventDefault()\r\n\t\t\t\te.stopPropagation()\r\n\t\t\t\tconst files = (e.target as HTMLInputElement).files\r\n\t\t\t\tif (this.resetAfterPick) {\r\n\t\t\t\t\tif (files.length) {\r\n\t\t\t\t\t\tthis.validateFiles(files)\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.validateFiles(files)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tfalse,\r\n\t\t)\r\n\r\n\t\tif (this.expanded) {\r\n\t\t\tconst events = [\"dragover\", \"dragleave\"]\r\n\t\t\tconst inEvents = [\"dragenter\", \"dragover\", \"mouseenter\"]\r\n\t\t\tconst outEvents = [\"dragleave\", \"mouseleave\"]\r\n\r\n\t\t\tevents.map(eventName => this.inputRef.addEventListener(eventName, this.preventDefaults.bind(this), false))\r\n\t\t\tinEvents.map(eventName => this.inputRef.addEventListener(eventName, highlight.bind(this), false))\r\n\t\t\toutEvents.forEach(eventName => this.inputRef.addEventListener(eventName, unhighlight.bind(this), false))\r\n\t\t}\r\n\t}\r\n\r\n\tpreventDefaults(e) {\r\n\t\te.preventDefault()\r\n\t\te.stopPropagation()\r\n\t}\r\n\r\n\thandleDrop(e: DragEvent) {\r\n\t\tconst dataTransfer = e.dataTransfer\r\n\t\tthis.validateFiles(dataTransfer.files)\r\n\t}\r\n\r\n\tprivate validateFiles(files: FileList) {\r\n\t\tlet filesBuffer: GovFormFileItem[] = []\r\n\t\tArray.from(files).map(file => {\r\n\t\t\tconst isFile = this.files.find(item => item.file.name === file.name && item.file.size === file.size) || null\r\n\t\t\tif (isFile === null || this.ignoreFileDuplicationCheck) {\r\n\t\t\t\tconst isSizeValid = typeof this.maxFileSize === \"number\" && this.maxFileSize > 0 ? fileSizeValidation(file, this.maxFileSize) : true\r\n\t\t\t\tconst isAcceptValid = fileAcceptValidation(file, this.accept)\r\n\t\t\t\tconst newFile = {\r\n\t\t\t\t\tid: createID(\"GovFormFile\"),\r\n\t\t\t\t\tfile,\r\n\t\t\t\t\tacceptValid: isAcceptValid,\r\n\t\t\t\t\tsizeValid: isSizeValid,\r\n\t\t\t\t}\r\n\t\t\t\tif (this.displayAttachments) {\r\n\t\t\t\t\tthis.files = [...this.files, newFile]\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfilesBuffer = [...filesBuffer, newFile]\r\n\t\t\t\t}\r\n\t\t\t\tthis.govAddFile.emit({\r\n\t\t\t\t\tcomponent: FormFileClass.root,\r\n\t\t\t\t\tfile: newFile,\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t})\r\n\r\n\t\tthis.govFiles.emit({\r\n\t\t\tcomponent: FormFileClass.root,\r\n\t\t\tfiles: filesBuffer.length ? filesBuffer : this.files,\r\n\t\t})\r\n\r\n\t\tif (this.resetAfterPick) {\r\n\t\t\tthis.reset().finally()\r\n\t\t}\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.f.passAttrToLabel(\"required\", String(this.required))\r\n\t\tthis.passControlAttrs()\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tasync componentDidRender() {\r\n\t\tthis.registerListeners()\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\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes([FormFileClass.root])}\r\n\t\t\t\t invalid={toBoolAttrIfDefined(this.invalid)}\r\n\t\t\t\t expanded={toBoolAttrIfDefined(this.expanded)}>\r\n\t\t\t\t<div class={FormFileClass.area} ref={el => (this.areaRef = el as HTMLDivElement)}>\r\n\t\t\t\t\t<slot/>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\tclass={FormFileClass.input}\r\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\r\n\t\t\t\t\t\tid={this.identifier || this.fileId}\r\n\t\t\t\t\t\ttype=\"file\"\r\n\t\t\t\t\t\tname={this.name}\r\n\t\t\t\t\t\taccept={this.accept}\r\n\t\t\t\t\t\tmultiple={this.multiple}\r\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\r\n\t\t\t\t\t\tonFocus={this.onFocusHandler.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\tdisabled={this.disabled}\r\n\t\t\t\t\t\t{...this.inheritedAttributes}\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\taria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div class={FormFileClass.inputFocus}/>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t{this.h.hasSlot(\"attachments\") ? (\r\n\t\t\t\t\t<div class={FormFileClass.attachments}>\r\n\t\t\t\t\t\t<slot name={\"attachments\"}/>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t) : null}\r\n\r\n\t\t\t\t{this.files.length && this.displayAttachments ? (\r\n\t\t\t\t\t<div class={FormFileClass.attachments}>\r\n\t\t\t\t\t\t<gov-attachments label={this.accessibleAttachmentsLabel}\r\n\t\t\t\t\t\t\t\t\t\t accessible-label={this.accessibleAttachmentsLabel}>\r\n\t\t\t\t\t\t\t{this.files.map(item => (\r\n\t\t\t\t\t\t\t\t<gov-attachments-item accessible-remove-labelledby={item.id}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t on-gov-remove={() => this.onRemoveFileHandler(item)}>\r\n\t\t\t\t\t\t\t\t\t{item.file.name}\r\n\t\t\t\t\t\t\t\t\t<span slot=\"name\">{item.file.name}</span>\r\n\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? (\r\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" color=\"error\">\r\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\" type=\"components\"></gov-icon>\r\n\t\t\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? this.errorAccept : null}\r\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\r\n\t\t\t\t\t\t\t\t\t) : null}\r\n\t\t\t\t\t\t\t\t\t{item.sizeValid === false ? (\r\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" color=\"error\">\r\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\" type=\"components\"></gov-icon>\r\n\t\t\t\t\t\t\t\t\t\t\t{this.errorSize.replace(\"{FILE_SIZE}\", formatBytes(this.maxFileSize))}\r\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\r\n\t\t\t\t\t\t\t\t\t) : null}\r\n\t\t\t\t\t\t\t\t\t<span slot=\"info\">({formatBytes(item.file.size)})</span>\r\n\t\t\t\t\t\t\t\t</gov-attachments-item>\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t</gov-attachments>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t) : null}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onRemoveFileHandler(file: GovFormFileItem) {\r\n\t\tconst index = this.files.findIndex(item => item.id === file.id)\r\n\t\tif (index !== -1) {\r\n\t\t\tconst files = this.files\r\n\t\t\tconst removeFile = this.files[index]\r\n\t\t\tfiles.splice(index, 1)\r\n\t\t\tthis.files = [...files]\r\n\t\t\tthis.govRemoveFile.emit({\r\n\t\t\t\tcomponent: FormFileClass.root,\r\n\t\t\t\tfile: removeFile,\r\n\t\t\t})\r\n\t\t\tthis.govFiles.emit({\r\n\t\t\t\tcomponent: FormFileClass.root,\r\n\t\t\t\tfiles,\r\n\t\t\t})\r\n\t\t}\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: FormFileClass.root,\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: FormFileClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onChangeHandler(e: Event) {\r\n\t\te.stopPropagation()\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\t/**\r\n\t * Returns the reference of the native area element\r\n\t */\r\n\t@Method()\r\n\tasync getAreaRef(): Promise<HTMLDivElement> {\r\n\t\treturn this.areaRef\r\n\t}\r\n\r\n\t/**\r\n\t * Remove all files from component state\r\n\t */\r\n\t@Method()\r\n\tasync reset(): Promise<void> {\r\n\t\tthis.files = []\r\n\t\tthis.inputRef.value = '';\r\n\t}\r\n}\r\n"],"mappings":"oZAAO,MAAMA,EAAgB,CAC5BC,KAAM,gBACNC,KAAM,sBACNC,MAAO,uBACPC,WAAY,6BACZC,YAAa,8BCLR,SAAUC,EAAYC,GAC3B,MAAMC,EAAQ,CAAC,QAAS,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,OACzE,IAAIC,EAAI,EACPC,EAAIC,SAASJ,EAAO,KAAO,EAE5B,MAAOG,GAAK,QAAUD,EAAG,CACxBC,EAAIA,EAAI,I,CAGT,OAAOA,EAAEE,QAAQF,EAAI,IAAMD,EAAI,EAAI,EAAI,GAAK,IAAMD,EAAMC,EACzD,CAEgB,SAAAI,EAAqBC,EAAYC,GAChD,UAAWA,IAAW,UAAYA,EAAOC,OAAQ,CAChD,OACCD,EACEE,QAAQ,MAAO,IACfC,MAAM,KACNC,QAAOJ,GACA,IAAIK,OAAOL,EAAOE,QAAQ,IAAK,OAAOI,KAAKP,EAAKQ,QACrDN,OAAS,C,KAER,CACN,OAAO,I,CAET,CAEgB,SAAAO,EAAmBT,EAAYU,GAC9C,MAAMC,EAAWC,KAAKC,MAAMb,EAAKc,MACjC,OAAOH,GAAYD,CACpB,C,MCdaK,EAAW,MAUvB,WAAAC,CAAAC,G,kMAFQC,KAAgBC,iBAAG,MAaVD,KAAQE,SAAY,MAKpBF,KAAQG,SAAY,MAKLH,KAAQI,SAAY,MAKJJ,KAAcK,eAAY,MAIbL,KAA0BM,2BAAY,MAIhDN,KAAkBO,mBAAY,KAchEP,KAAQQ,SAAY,MAIQR,KAAWS,aAAW,E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ACzB4C,S,EAKK,cAAAwF,CAAejE,GACtBA,EAAEE,kBACFtC,KAAKkH,SAASjD,KAAK,CAClBC,UAAWlG,EAAcC,KACzBkJ,cAAe/E,G,CAIT,aAAAmE,CAAcnE,GACrBA,EAAEE,kBACFtC,KAAKoH,QAAQnD,KAAK,CACjBC,UAAWlG,EAAcC,KACzBkJ,cAAe/E,G,CAIT,eAAA+D,CAAgB/D,GACvBA,EAAEE,iB,CAOH,YAAM+E,GACL,OAAOrH,KAAKkC,Q,CAOb,gBAAMoF,GACL,OAAOtH,KAAK6B,O,CAOb,WAAMuC,GACLpE,KAAKa,MAAQ,GACbb,KAAKkC,SAASqF,MAAQ,E","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,F as s,H as i,g as a}from"./p-ClISz4NF.js";import{p as o}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{g as c}from"./p-CoD1xawt.js";o(n,["_S","_M","_L"]);const l={root:"gov-tile",link:"gov-tile__link",content:"gov-tile__content",text:"gov-tile__text",title:"gov-tile__title",icon:"gov-tile__icon",annotation:"gov-tile__annotation"};const r=class{constructor(e){t(this,e);this.size="m";this.noBorder=false;this.h=c(this.host)}render(){return e(i,{key:"31fcebee125c753089b2229cea0033dce9aa3133",class:this.h.classes(l.root),size:this.size,orientation:this.orientation,clickable:this.href?true:null},e("slot",{key:"b79748ea55bb2e86d887860c1143d82d75497966",name:"icon"}),e("div",{key:"db8b61554f6943612c9d7165174926cfd205fcfb",class:l.content},e("div",{key:"e844267c106109d0470176d3c89539f8f987c70f",class:l.text},e("div",{key:"e4771f568d8848b87045293ebb10af5679f1a3b7",class:l.title},this.href?e(s,null,e("a",{href:this.href,target:this.target,class:l.link,ref:t=>this.triggerRef=t},e("slot",{name:"title"})),e("span",{class:l.icon},e("gov-icon",{name:"chevron-right",type:"components"}))):e("slot",{name:"title"})),e("div",{key:"cf1bf1a1c29e8879dc509b484325b82808db792a",class:`${l.annotation} ${this.href?`${l.annotation}--padding`:""}`},e("slot",{key:"9a10f28fd144f1131eae6735342da9a5d93665e2"}))),e("slot",{key:"067476f1a27bad0fb50d86789a729f93b1f1e5ad",name:"button"})))}async getTriggerRef(){return this.triggerRef}get host(){return a(this)}};export{r as gov_tile};
|
|
2
|
-
//# sourceMappingURL=p-0e06af2b.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["pick","Sizes","TileClass","root","link","content","text","title","icon","annotation","GovTile","constructor","hostRef","this","size","noBorder","h","govHost","host","render","Host","key","class","classes","orientation","clickable","href","name","Fragment","target","ref","el","triggerRef","type","getTriggerRef"],"sources":["../../../packages/core/src/components/gov-tile/constants.ts","../../../packages/core/src/components/gov-tile/gov-tile.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const TileSizes = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type TileSizesType = `${ValueOf<typeof TileSizes>}`\r\n\r\nexport const TileClass = {\r\n\troot: 'gov-tile',\r\n\tlink: 'gov-tile__link',\r\n\tcontent: 'gov-tile__content',\r\n\ttext: 'gov-tile__text',\r\n\ttitle: 'gov-tile__title',\r\n\ticon: 'gov-tile__icon',\r\n\tannotation: 'gov-tile__annotation',\r\n}\r\n","import {Component, Element, Fragment, h, Host, Method, Prop} from \"@stencil/core\"\r\nimport {TileClass, TileSizesType} from \"./constants\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {ButtonTargetType} from \"../gov-button/button/constants\"\r\n\r\n@Component({\r\n\ttag: \"gov-tile\",\r\n})\r\nexport class GovTile {\r\n\t@Element() host: HTMLGovTileElement\r\n\t/**\r\n\t * Tile’s size\r\n\t */\r\n\t@Prop({reflect: true}) readonly size?: TileSizesType = \"m\"\r\n\t/**\r\n\t * Style variation of the tile.\r\n\t */\r\n\t@Prop() readonly orientation: \"vertical\" | \"horizontal\"\r\n\t/**\r\n\t * Tiles border\r\n\t */\r\n\t@Prop({ attribute: 'no-border' }) readonly noBorder: boolean = false\r\n\t/**\r\n\t * Link on whole tile\r\n\t */\r\n\t@Prop({reflect: true}) 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?: ButtonTargetType\r\n\tprivate triggerRef?: HTMLLinkElement | HTMLSpanElement\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\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(TileClass.root)}\r\n\t\t\t\t size={this.size}\r\n\t\t\t\t orientation={this.orientation}\r\n\t\t\t\t clickable={this.href ? true : null}\r\n\t\t\t>\r\n\t\t\t\t<slot name=\"icon\"/>\r\n\t\t\t\t<div class={TileClass.content}>\r\n\t\t\t\t\t<div class={TileClass.text}>\r\n\t\t\t\t\t\t<div class={TileClass.title}>\r\n\t\t\t\t\t\t\t{this.href ? (\r\n\t\t\t\t\t\t\t\t<Fragment>\r\n\t\t\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\t\t\thref={this.href}\r\n\t\t\t\t\t\t\t\t\t\ttarget={this.target}\r\n\t\t\t\t\t\t\t\t\t\tclass={TileClass.link}\r\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLSpanElement)}>\r\n\t\t\t\t\t\t\t\t\t\t<slot name=\"title\"/>\r\n\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t<span class={TileClass.icon}>\r\n\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-right\" type=\"components\"></gov-icon>\r\n\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t</Fragment>\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t<slot name=\"title\"/>\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class={`${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}`}>\r\n\t\t\t\t\t\t\t<slot/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<slot name=\"button\"/>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a clickable element instance\r\n\t */\r\n\t@Method()\r\n\tasync getTriggerRef() {\r\n\t\treturn this.triggerRef\r\n\t}\r\n}\r\n"],"mappings":"4KAIyBA,EAAKC,EAAO,CAAC,KAAM,KAAM,OAG3C,MAAMC,EAAY,CACxBC,KAAM,WACNC,KAAM,iBACNC,QAAS,oBACTC,KAAM,iBACNC,MAAO,kBACPC,KAAM,iBACNC,WAAY,wB,MCLAC,EAAO,MA0BnB,WAAAC,CAAAC,G,UArBgCC,KAAIC,KAAmB,IAQZD,KAAQE,SAAY,MAc9DF,KAAKG,EAAIC,EAAQJ,KAAKK,KACtB,CAED,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOT,KAAKG,EAAEO,QAAQrB,EAAUC,MACnCW,KAAMD,KAAKC,KACXU,YAAaX,KAAKW,YAClBC,UAAWZ,KAAKa,KAAO,KAAO,MAEhCV,EAAM,QAAAK,IAAA,2CAAAM,KAAK,SACXX,EAAA,OAAAK,IAAA,2CAAKC,MAAOpB,EAAUG,SACrBW,EAAA,OAAAK,IAAA,2CAAKC,MAAOpB,EAAUI,MACrBU,EAAA,OAAAK,IAAA,2CAAKC,MAAOpB,EAAUK,OACpBM,KAAKa,KACLV,EAACY,EAAQ,KACRZ,EAAA,KACCU,KAAMb,KAAKa,KACXG,OAAQhB,KAAKgB,OACbP,MAAOpB,EAAUE,KACjB0B,IAAKC,GAAOlB,KAAKmB,WAAaD,GAC9Bf,EAAA,QAAMW,KAAK,WAEZX,EAAA,QAAMM,MAAOpB,EAAUM,MACtBQ,EAAU,YAAAW,KAAK,gBAAgBM,KAAK,iBAItCjB,EAAA,QAAMW,KAAK,WAGbX,EAAK,OAAAK,IAAA,2CAAAC,MAAO,GAAGpB,EAAUO,cAAcI,KAAKa,KAAO,GAAGxB,EAAUO,sBAAwB,MACvFO,EAAA,QAAAK,IAAA,+CAGFL,EAAA,QAAAK,IAAA,2CAAMM,KAAK,Y,CAUf,mBAAMO,GACL,OAAOrB,KAAKmB,U","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s,H as e,g as i,c as n}from"./p-ClISz4NF.js";import{S as o}from"./p-BcQO4NH2.js";import{g as a}from"./p-CoD1xawt.js";import{p as c}from"./p-CQvUntGY.js";import{C as r}from"./p-U40vKHrs.js";import{i as h,a as l,b as f}from"./p-CgDnDrq5.js";import{v as u}from"./p-NOJjz9dT.js";const m={root:"gov-flex"};const d=class{constructor(s){t(this,s);this.direction="row";this.responsive="true";this.h=a(this.host)}render(){return s(e,{key:"1c88a4c6aaf69a13c514bc24c10fd2a32316a7c0",class:this.h.classes(m.root)},s("slot",{key:"b055e2aff7056be660e53d5036341fbaabe796b1"}))}get host(){return i(this)}};c(o,["_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL","_5XL"]);const p=c(r,["DEFAULT","PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING","DISABLED","WHITE","BLACK"]);var b;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(b||(b={}));const v={root:"gov-icon"};const g="4.6.0";const w=()=>g;const _={};const y={};const S=t=>t.startsWith("http://")||t.startsWith("https://");const C=(t,s,e)=>{if(S(t)){return`${t}/${e}/${s}.svg?v=${w()}`}return`${t}/${e}/${s}.svg`+`?v=${w()}`};async function k({name:t,type:s}){const e=s+"-"+t;if(_[e]){return _[e]}if(!y[e]){y[e]=fetch(C(h(),t,s)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const i=await y[e];_[e]=i;return i}const L=(t,s,e)=>{if(!l){return}let i="";document.cookie=`${t}=${encodeURIComponent(s)}${i}; path=/`};const D=t=>{if(!l){return null}const s=t+"=";const e=document.cookie.split(";");for(let t=0;t<e.length;t++){let i=e[t].trim();if(i.startsWith(s)){return decodeURIComponent(i.substring(s.length))}}return null};const I=t=>{try{const s=new DOMParser;const e=s.parseFromString(t,"image/svg+xml");const i=e.querySelector("parsererror");if(i){return false}const n=e.documentElement;if(n.tagName.toLowerCase()!=="svg"){return false}return true}catch(t){return false}};const $=class{constructor(s){t(this,s);this.name=null;this.type="components";this.visible=false;this.error=false;this.h=a(this.host)}validateSize(t){u(o,t,v.root)}validateColor(t){u(p,t,v.root)}async loadIconPathData(){const{name:t,visible:s}=this;if(!t||!s){return}await this.loadIcon()}connectedCallback(){if(f()){this.visible=true;this.loadIconPathData().finally()}else{this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){this.validateSize(this.size);this.validateColor(this.color);await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((s=>{s.forEach((s=>{if(s.isIntersecting){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}async loadIcon(){try{const{name:t,type:s}=this;const e=await k({name:t,type:s});const i=I(e);this.host.innerHTML=i?e:null}catch(t){this.host.innerHTML="";this.error=true}}render(){if(this.error){return null}return s(e,{class:this.h.classes(v.root),size:this.size,color:this.color})}static get assetsDirs(){return["assets"]}get host(){return i(this)}static get watchers(){return{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}}};const j=c(o,["_XS","_S","_M","_L","_XL"]);const z={root:"gov-theme-switch",indicator:"gov-theme-switch__indicator",label:"gov-theme-switch__label",iconLight:"gov-theme-switch__icon-light",iconDark:"gov-theme-switch__icon-dark"};const R="data-theme";var E;(function(t){t["auto"]="auto";t["light"]="light";t["dark"]="dark"})(E||(E={}));const x=class{constructor(s){t(this,s);this.govChange=n(this,"gov-change");this.size="m";this.displayLabel=false;this.ariaLabelLight="Přepnout na tmavý mód";this.ariaLabelDark="Přepnout na světlý mód";this.labelLight="Světlý mód";this.labelDark="Tmavý mód";this.theme=E.auto;this.setThemeState=t=>{this.theme=t;this.govChange.emit({component:z.root,state:this.theme,ref:this.host})};this.h=a(this.host)}validateSize(t){u(j,t,z.root)}watchTheme(t){this.htmlElement.setAttribute(R,t);this.htmlElement.classList.remove(...Object.keys(E));this.htmlElement.classList.add(t);L(R,t)}get storageValue(){return D(R)}get htmlElement(){return document.documentElement}get isSystemPrefersColorDark(){return l&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}componentWillLoad(){this.initDefaultState();this.validateSize(this.size)}initDefaultState(){const t=Object.keys(E);let s=this.storageValue;const e=this.htmlElement.getAttribute(R);if(s&&t.includes(s)){this.theme=s}else if(e&&t.includes(e)){this.theme=e}else{this.theme=E.auto}}render(){let t=this.theme===E.dark;if(this.theme===E.auto){t=this.isSystemPrefersColorDark}return s(e,{key:"77b26165b2a824ff9649ac9c28d7b300cdb76280",class:this.h.classes(z.root),theme:t?E.dark:E.light,size:this.size},s("button",{key:"c46058c2a0e797fef9c7e1ab4975ff379bbc3fb4",onClick:()=>this.setThemeState(t?E.light:E.dark),"aria-current":this.theme,"aria-label":t?this.ariaLabelDark:this.ariaLabelLight},s("span",{key:"c1d8824467dc7bfa5d23f1f99db686e91e93087b"},s("span",{key:"62da0a9fecc5fc713b98ac9e4e728e3e19b9aa67",class:z.indicator},E.light&&s("gov-icon",{key:"7c9dd1cf819afbd7f63609916d6c845c2236fbca",name:"sun",class:z.iconLight,type:"components"}),E.dark&&s("gov-icon",{key:"3f1acf71f8afb5ca893c460b7d0b6e49fe6f5c2d",name:"moon",class:z.iconDark,type:"components"})),this.displayLabel?s("span",{class:z.label},t?this.labelDark:this.labelLight):null)))}get host(){return i(this)}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}};export{d as gov_flex,$ as gov_icon,x as gov_theme_switch};
|
|
2
|
-
//# sourceMappingURL=p-1375d52d.entry.js.map
|