@gov-design-system-ce/components 4.1.3-BETA-6 → 4.1.3-BETA-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core.cjs.js +2 -2
- package/dist/cjs/gov-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/gov-accordion.cjs.entry.js +3 -3
- package/dist/cjs/gov-attachments_3.cjs.entry.js +4 -4
- package/dist/cjs/gov-backdrop.cjs.entry.js +3 -3
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +3 -3
- package/dist/cjs/gov-button.cjs.entry.js +4 -4
- package/dist/cjs/gov-card.cjs.entry.js +3 -3
- package/dist/cjs/gov-chip.cjs.entry.js +3 -3
- package/dist/cjs/gov-container.cjs.entry.js +1 -1
- package/dist/cjs/gov-control-group.cjs.entry.js +3 -3
- package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/gov-dialog.cjs.entry.js +3 -3
- package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js +3 -3
- package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
- package/dist/cjs/gov-flex_3.cjs.entry.js +204 -24
- package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-group.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-input_2.cjs.entry.js +4 -4
- package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-radio.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-switch.cjs.entry.js +3 -3
- package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-grid.cjs.entry.js +1 -1
- package/dist/cjs/gov-infobar.cjs.entry.js +5 -5
- package/dist/cjs/gov-layout-column.cjs.entry.js +2 -2
- package/dist/cjs/gov-layout.cjs.entry.js +2 -2
- package/dist/cjs/gov-lifecycle.cjs.entry.js +2 -2
- package/dist/cjs/gov-link.cjs.entry.js +4 -4
- package/dist/cjs/gov-loading.cjs.entry.js +4 -4
- package/dist/cjs/gov-message.cjs.entry.js +4 -4
- package/dist/cjs/gov-pagination.cjs.entry.js +3 -3
- package/dist/cjs/gov-spacer.cjs.entry.js +4 -4
- package/dist/cjs/gov-stepper-item.cjs.entry.js +4 -4
- package/dist/cjs/gov-stepper.cjs.entry.js +4 -4
- package/dist/cjs/gov-tabs-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-tabs.cjs.entry.js +4 -4
- package/dist/cjs/gov-tag.cjs.entry.js +4 -4
- package/dist/cjs/gov-tile.cjs.entry.js +2 -2
- package/dist/cjs/gov-tiles.cjs.entry.js +2 -2
- package/dist/cjs/gov-toast.cjs.entry.js +4 -4
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +2 -2
- package/dist/cjs/gov-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/gov-wizard-item.cjs.entry.js +5 -5
- package/dist/cjs/gov-wizard.cjs.entry.js +5 -5
- package/dist/cjs/{gov.log-21ea2c96.js → gov.log-bfea3151.js} +5 -1
- package/dist/cjs/gov.log-bfea3151.js.map +1 -0
- package/dist/cjs/{index-0e4f24f9.js → index-67e87c27.js} +15 -1
- package/dist/cjs/index-67e87c27.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{props-b079c32b.js → props-d189860c.js} +2 -2
- package/dist/cjs/{props-b079c32b.js.map → props-d189860c.js.map} +1 -1
- package/dist/cjs/{wcag-efe9bf16.js → wcag-2927ff73.js} +2 -2
- package/dist/cjs/{wcag-efe9bf16.js.map → wcag-2927ff73.js.map} +1 -1
- package/dist/collection/components/gov-icon/gov-icon.js +208 -2
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
- package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
- package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
- package/dist/collection/components/gov-layout/gov-layout.js +1 -1
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
- package/dist/collection/components/gov-link/gov-link.js +1 -1
- package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
- package/dist/collection/components/gov-message/gov-message.js +1 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
- package/dist/collection/components/gov-tag/gov-tag.js +1 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
- package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
- package/dist/collection/components/gov-tile/gov-tile.js +1 -1
- package/dist/collection/components/gov-toast/gov-toast.js +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
- package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
- package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
- package/dist/collection/utils/icon.utils.js +2 -0
- package/dist/collection/utils/icon.utils.js.map +1 -1
- package/dist/components/gov-accordion-item.js +1 -1
- package/dist/components/gov-accordion.js +1 -1
- package/dist/components/gov-attachments-item.js +1 -1
- package/dist/components/gov-attachments.js +1 -1
- package/dist/components/gov-backdrop.js +1 -1
- package/dist/components/gov-breadcrumbs.js +1 -1
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button.js +1 -1
- package/dist/components/gov-card.js +1 -1
- package/dist/components/gov-chip.js +1 -1
- package/dist/components/gov-container.js +1 -1
- package/dist/components/gov-control-group.js +1 -1
- package/dist/components/gov-cookiebar.js +1 -1
- package/dist/components/gov-dialog.js +1 -1
- package/dist/components/gov-dropdown.js +1 -1
- package/dist/components/gov-dropdown.js.map +1 -1
- package/dist/components/gov-empty.js +1 -1
- package/dist/components/gov-error-code.js +1 -1
- package/dist/components/gov-flex.js +1 -1
- package/dist/components/gov-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox-group.js +1 -1
- package/dist/components/gov-form-checkbox.js +1 -1
- package/dist/components/gov-form-control.js +1 -1
- package/dist/components/gov-form-file.js +1 -1
- package/dist/components/gov-form-group.js +1 -1
- package/dist/components/gov-form-input.js +1 -1
- package/dist/components/gov-form-label.js +1 -1
- package/dist/components/gov-form-message.js +1 -1
- package/dist/components/gov-form-multi-select.js +1 -1
- package/dist/components/gov-form-password-power.js +1 -1
- package/dist/components/gov-form-radio-group.js +1 -1
- package/dist/components/gov-form-radio.js +1 -1
- package/dist/components/gov-form-radio.js.map +1 -1
- package/dist/components/gov-form-search.js +1 -1
- package/dist/components/gov-form-select.js +1 -1
- package/dist/components/gov-form-switch.js +1 -1
- package/dist/components/gov-grid-item.js +1 -1
- package/dist/components/gov-grid.js +1 -1
- package/dist/components/gov-icon.js +1 -1
- package/dist/components/gov-infobar.js +1 -1
- package/dist/components/gov-layout-column.js +1 -1
- package/dist/components/gov-layout.js +1 -1
- package/dist/components/gov-lifecycle.js +1 -1
- package/dist/components/gov-link.js +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +1 -1
- package/dist/components/gov-pagination.js +1 -1
- package/dist/components/gov-skeleton.js +1 -1
- package/dist/components/gov-spacer.js +1 -1
- package/dist/components/gov-stepper-item.js +1 -1
- package/dist/components/gov-stepper.js +1 -1
- package/dist/components/gov-tabs-item.js +1 -1
- package/dist/components/gov-tabs.js +1 -1
- package/dist/components/gov-tag.js +1 -1
- package/dist/components/gov-theme-switch.js +1 -1
- package/dist/components/gov-theme-switch.js.map +1 -1
- package/dist/components/gov-tile.js +1 -1
- package/dist/components/gov-tile.js.map +1 -1
- package/dist/components/gov-tiles.js +1 -1
- package/dist/components/gov-toast.js +1 -1
- package/dist/components/gov-tooltip-content.js +1 -1
- package/dist/components/gov-tooltip.js +1 -1
- package/dist/components/gov-wizard-item.js +1 -1
- package/dist/components/gov-wizard.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-56399a9b.js → p-03ad4e0f.js} +2 -2
- package/dist/components/{p-52fcba77.js → p-0679f3d6.js} +2 -2
- package/dist/components/p-0b3574c2.js +2 -0
- package/dist/components/p-115b9cf3.js +3 -0
- package/dist/components/p-115b9cf3.js.map +1 -0
- package/dist/components/{p-495b793e.js → p-350e060c.js} +2 -2
- package/dist/components/{p-de0a517f.js → p-384c7f2a.js} +2 -2
- package/dist/components/{p-d7d988d7.js → p-51693b62.js} +2 -2
- package/dist/components/p-7f0c6ba3.js +2 -0
- package/dist/components/p-7f0c6ba3.js.map +1 -0
- package/dist/components/{p-454ce5f2.js → p-80dad64b.js} +2 -2
- package/dist/components/{p-a63665c2.js → p-884d8f16.js} +2 -2
- package/dist/components/{p-ab3a34b0.js → p-887df980.js} +2 -2
- package/dist/components/{p-080d5d41.js → p-8ee6f2f3.js} +2 -2
- package/dist/components/{p-ff5e9e32.js → p-8f40dfec.js} +2 -2
- package/dist/components/{p-6a473654.js → p-9b0f446d.js} +2 -2
- package/dist/components/p-bfce6f99.js +2 -0
- package/dist/components/p-bfce6f99.js.map +1 -0
- package/dist/components/p-e8ec030e.js +2 -0
- package/dist/components/{p-ceafa242.js.map → p-e8ec030e.js.map} +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-017ff5a5.entry.js +2 -0
- package/dist/core/{p-9ee41510.entry.js.map → p-017ff5a5.entry.js.map} +1 -1
- package/dist/core/{p-b2c00946.entry.js → p-032accfb.entry.js} +2 -2
- package/dist/core/{p-5802e37e.entry.js → p-058e6fe2.entry.js} +2 -2
- package/dist/core/{p-b36f84d2.entry.js → p-063b70a2.entry.js} +2 -2
- package/dist/core/{p-38287e92.entry.js → p-0724cb6a.entry.js} +2 -2
- package/dist/core/p-09c9eba6.entry.js +2 -0
- package/dist/core/p-0b3574c2.js +2 -0
- package/dist/core/{p-b404f53c.entry.js → p-0c076b21.entry.js} +2 -2
- package/dist/core/p-0f0f7302.entry.js +2 -0
- package/dist/core/{p-df338d69.entry.js.map → p-0f0f7302.entry.js.map} +1 -1
- package/dist/core/p-10f773c2.entry.js +2 -0
- package/dist/core/p-14d66f26.entry.js +2 -0
- package/dist/core/{p-54d924fc.entry.js.map → p-14d66f26.entry.js.map} +1 -1
- package/dist/core/{p-3abf57dc.entry.js → p-1aa7450e.entry.js} +2 -2
- package/dist/core/p-237a5b91.entry.js +2 -0
- package/dist/core/{p-e6b08d9b.entry.js.map → p-237a5b91.entry.js.map} +1 -1
- package/dist/core/p-2642cc66.entry.js +2 -0
- package/dist/core/p-2642cc66.entry.js.map +1 -0
- package/dist/core/p-269071f5.entry.js +2 -0
- package/dist/core/{p-2f3228e4.js → p-29ac15d2.js} +2 -2
- package/dist/core/p-2ee042d4.js +3 -0
- package/dist/core/p-2ee042d4.js.map +1 -0
- package/dist/core/{p-8a063925.entry.js → p-33310735.entry.js} +2 -2
- package/dist/core/p-347d15d5.entry.js +2 -0
- package/dist/core/{p-07b1fa1c.entry.js.map → p-347d15d5.entry.js.map} +1 -1
- package/dist/core/{p-8e5f45d0.entry.js → p-37473c34.entry.js} +2 -2
- package/dist/core/{p-9514520c.entry.js → p-3849ca02.entry.js} +2 -2
- package/dist/core/p-3a7381e7.entry.js +2 -0
- package/dist/core/{p-e078dab3.entry.js.map → p-3a7381e7.entry.js.map} +1 -1
- package/dist/core/p-43d3dbc0.entry.js +2 -0
- package/dist/core/p-45b759f4.entry.js +2 -0
- package/dist/core/{p-123d26eb.entry.js.map → p-45b759f4.entry.js.map} +1 -1
- package/dist/core/p-4c60e125.entry.js +2 -0
- package/dist/core/p-4e29744a.entry.js +2 -0
- package/dist/core/{p-402f36af.entry.js.map → p-4e29744a.entry.js.map} +1 -1
- package/dist/core/{p-3b8b331f.entry.js → p-4fa0320d.entry.js} +2 -2
- package/dist/core/p-50af9ae8.entry.js +2 -0
- package/dist/core/{p-4ea79bda.entry.js → p-5c3f4cfe.entry.js} +2 -2
- package/dist/core/{p-75ff8ad0.entry.js → p-6b7c3a96.entry.js} +2 -2
- package/dist/core/p-71f5d4ff.entry.js +2 -0
- package/dist/core/{p-0a49e852.entry.js → p-77daba72.entry.js} +2 -2
- package/dist/core/{p-cb76cda0.entry.js → p-7a21fb90.entry.js} +2 -2
- package/dist/core/{p-c723877b.entry.js → p-7baee44f.entry.js} +2 -2
- package/dist/core/{p-7f7c31e2.entry.js → p-7dfb7e36.entry.js} +2 -2
- package/dist/core/{p-9897ac81.entry.js → p-8bb6c816.entry.js} +2 -2
- package/dist/core/p-8cc5ad01.entry.js +2 -0
- package/dist/core/{p-9410ca28.entry.js.map → p-8cc5ad01.entry.js.map} +1 -1
- package/dist/core/p-906865d0.entry.js +2 -0
- package/dist/core/{p-9096ac3f.entry.js.map → p-906865d0.entry.js.map} +1 -1
- package/dist/core/p-927c31dd.entry.js +2 -0
- package/dist/core/{p-2800bec9.entry.js → p-967a1094.entry.js} +2 -2
- package/dist/core/{p-1399f929.entry.js → p-9846fd13.entry.js} +2 -2
- package/dist/core/{p-87e5b1d0.entry.js → p-994385ca.entry.js} +2 -2
- package/dist/core/{p-f35f3261.entry.js → p-9f8d69a9.entry.js} +2 -2
- package/dist/core/{p-47d27845.entry.js → p-a6a9de9a.entry.js} +2 -2
- package/dist/core/p-b62e49ee.entry.js +2 -0
- package/dist/core/p-c0800e6d.entry.js +2 -0
- package/dist/core/p-cecbe73f.entry.js +2 -0
- package/dist/core/{p-0087a816.entry.js.map → p-cecbe73f.entry.js.map} +1 -1
- package/dist/core/p-d795a421.entry.js +2 -0
- package/dist/core/{p-80c7db1f.entry.js.map → p-d795a421.entry.js.map} +1 -1
- package/dist/core/{p-bf0712e0.entry.js → p-d9b42773.entry.js} +2 -2
- package/dist/core/{p-6cf9500c.entry.js → p-e0a199ff.entry.js} +2 -2
- package/dist/core/{p-c34dad75.entry.js → p-e215f3ee.entry.js} +2 -2
- package/dist/core/p-e8ec030e.js +2 -0
- package/dist/core/{p-ceafa242.js.map → p-e8ec030e.js.map} +1 -1
- package/dist/core/{p-368aa2f4.entry.js → p-ed02945f.entry.js} +2 -2
- package/dist/core/p-ee55932a.entry.js +2 -0
- package/dist/core/{p-f9474bb3.entry.js → p-f2bb8c29.entry.js} +2 -2
- package/dist/core/{p-16a3deca.entry.js → p-f54edd6c.entry.js} +2 -2
- package/dist/core/p-f7f60f91.entry.js +2 -0
- package/dist/core/{p-1043fe0d.entry.js.map → p-f7f60f91.entry.js.map} +1 -1
- package/dist/core/{p-fc795b0e.entry.js → p-fcac8531.entry.js} +2 -2
- package/dist/esm/core.js +3 -3
- package/dist/esm/gov-accordion-item.entry.js +3 -3
- package/dist/esm/gov-accordion.entry.js +3 -3
- package/dist/esm/gov-attachments_3.entry.js +4 -4
- package/dist/esm/gov-backdrop.entry.js +3 -3
- package/dist/esm/gov-breadcrumbs.entry.js +3 -3
- package/dist/esm/gov-button.entry.js +4 -4
- package/dist/esm/gov-card.entry.js +3 -3
- package/dist/esm/gov-chip.entry.js +3 -3
- package/dist/esm/gov-container.entry.js +1 -1
- package/dist/esm/gov-control-group.entry.js +3 -3
- package/dist/esm/gov-cookiebar.entry.js +1 -1
- package/dist/esm/gov-dialog.entry.js +3 -3
- package/dist/esm/gov-dropdown.entry.js +1 -1
- package/dist/esm/gov-empty.entry.js +3 -3
- package/dist/esm/gov-error-code.entry.js +1 -1
- package/dist/esm/gov-flex_3.entry.js +204 -24
- package/dist/esm/gov-flex_3.entry.js.map +1 -1
- package/dist/esm/gov-form-autocomplete.entry.js +3 -3
- package/dist/esm/gov-form-checkbox-group.entry.js +3 -3
- package/dist/esm/gov-form-checkbox.entry.js +3 -3
- package/dist/esm/gov-form-control.entry.js +1 -1
- package/dist/esm/gov-form-file.entry.js +1 -1
- package/dist/esm/gov-form-group.entry.js +3 -3
- package/dist/esm/gov-form-input_2.entry.js +4 -4
- package/dist/esm/gov-form-label.entry.js +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +3 -3
- package/dist/esm/gov-form-password-power.entry.js +1 -1
- package/dist/esm/gov-form-radio-group.entry.js +3 -3
- package/dist/esm/gov-form-radio.entry.js +3 -3
- package/dist/esm/gov-form-search.entry.js +1 -1
- package/dist/esm/gov-form-select.entry.js +3 -3
- package/dist/esm/gov-form-switch.entry.js +3 -3
- package/dist/esm/gov-grid-item.entry.js +1 -1
- package/dist/esm/gov-grid.entry.js +1 -1
- package/dist/esm/gov-infobar.entry.js +5 -5
- package/dist/esm/gov-layout-column.entry.js +2 -2
- package/dist/esm/gov-layout.entry.js +2 -2
- package/dist/esm/gov-lifecycle.entry.js +2 -2
- package/dist/esm/gov-link.entry.js +4 -4
- package/dist/esm/gov-loading.entry.js +4 -4
- package/dist/esm/gov-message.entry.js +4 -4
- package/dist/esm/gov-pagination.entry.js +3 -3
- package/dist/esm/gov-spacer.entry.js +4 -4
- package/dist/esm/gov-stepper-item.entry.js +4 -4
- package/dist/esm/gov-stepper.entry.js +4 -4
- package/dist/esm/gov-tabs-item.entry.js +2 -2
- package/dist/esm/gov-tabs.entry.js +4 -4
- package/dist/esm/gov-tag.entry.js +4 -4
- package/dist/esm/gov-tile.entry.js +2 -2
- package/dist/esm/gov-tiles.entry.js +2 -2
- package/dist/esm/gov-toast.entry.js +4 -4
- package/dist/esm/gov-tooltip-content.entry.js +2 -2
- package/dist/esm/gov-tooltip.entry.js +5 -5
- package/dist/esm/gov-wizard-item.entry.js +5 -5
- package/dist/esm/gov-wizard.entry.js +5 -5
- package/dist/esm/{gov.log-55c240b2.js → gov.log-6b64cda6.js} +4 -2
- package/dist/esm/gov.log-6b64cda6.js.map +1 -0
- package/dist/esm/{index-bf8a6f64.js → index-087b155c.js} +14 -2
- package/dist/esm/index-087b155c.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{props-c54f7897.js → props-9d3c7ac1.js} +2 -2
- package/dist/esm/{props-c54f7897.js.map → props-9d3c7ac1.js.map} +1 -1
- package/dist/esm/{wcag-1a5ae5e3.js → wcag-253a4421.js} +2 -2
- package/dist/esm/{wcag-1a5ae5e3.js.map → wcag-253a4421.js.map} +1 -1
- package/dist/hydrate/index.js +242 -55
- package/dist/hydrate/index.mjs +242 -55
- package/dist/types/components/gov-icon/gov-icon.d.ts +32 -0
- package/dist/types/components.d.ts +34 -0
- package/package.json +1 -1
- package/dist/cjs/gov.log-21ea2c96.js.map +0 -1
- package/dist/cjs/index-0e4f24f9.js.map +0 -1
- package/dist/components/p-16e68a91.js +0 -2
- package/dist/components/p-16e68a91.js.map +0 -1
- package/dist/components/p-42200001.js +0 -3
- package/dist/components/p-42200001.js.map +0 -1
- package/dist/components/p-ceafa242.js +0 -2
- package/dist/components/p-d8135701.js +0 -2
- package/dist/core/p-0087a816.entry.js +0 -2
- package/dist/core/p-07b1fa1c.entry.js +0 -2
- package/dist/core/p-1043fe0d.entry.js +0 -2
- package/dist/core/p-123d26eb.entry.js +0 -2
- package/dist/core/p-1d5cc2b1.entry.js +0 -2
- package/dist/core/p-200a0be4.entry.js +0 -2
- package/dist/core/p-26726401.entry.js +0 -2
- package/dist/core/p-2b62c4ee.entry.js +0 -2
- package/dist/core/p-2f693f59.entry.js +0 -2
- package/dist/core/p-402f36af.entry.js +0 -2
- package/dist/core/p-54d924fc.entry.js +0 -2
- package/dist/core/p-80c7db1f.entry.js +0 -2
- package/dist/core/p-8f21a858.entry.js +0 -2
- package/dist/core/p-9096ac3f.entry.js +0 -2
- package/dist/core/p-93b747c1.entry.js +0 -2
- package/dist/core/p-9410ca28.entry.js +0 -2
- package/dist/core/p-9dea2efa.js +0 -3
- package/dist/core/p-9dea2efa.js.map +0 -1
- package/dist/core/p-9ee41510.entry.js +0 -2
- package/dist/core/p-b480cda1.entry.js +0 -2
- package/dist/core/p-c742b08e.entry.js +0 -2
- package/dist/core/p-ceafa242.js +0 -2
- package/dist/core/p-d8135701.js +0 -2
- package/dist/core/p-df338d69.entry.js +0 -2
- package/dist/core/p-e078dab3.entry.js +0 -2
- package/dist/core/p-e6b08d9b.entry.js +0 -2
- package/dist/core/p-fe5030a6.entry.js +0 -2
- package/dist/core/p-fe9ca9e6.entry.js +0 -2
- package/dist/core/p-ff03dcd3.entry.js +0 -2
- package/dist/core/p-ff03dcd3.entry.js.map +0 -1
- package/dist/esm/gov.log-55c240b2.js.map +0 -1
- package/dist/esm/index-bf8a6f64.js.map +0 -1
- /package/dist/components/{p-56399a9b.js.map → p-03ad4e0f.js.map} +0 -0
- /package/dist/components/{p-52fcba77.js.map → p-0679f3d6.js.map} +0 -0
- /package/dist/components/{p-d8135701.js.map → p-0b3574c2.js.map} +0 -0
- /package/dist/components/{p-495b793e.js.map → p-350e060c.js.map} +0 -0
- /package/dist/components/{p-de0a517f.js.map → p-384c7f2a.js.map} +0 -0
- /package/dist/components/{p-d7d988d7.js.map → p-51693b62.js.map} +0 -0
- /package/dist/components/{p-454ce5f2.js.map → p-80dad64b.js.map} +0 -0
- /package/dist/components/{p-a63665c2.js.map → p-884d8f16.js.map} +0 -0
- /package/dist/components/{p-ab3a34b0.js.map → p-887df980.js.map} +0 -0
- /package/dist/components/{p-080d5d41.js.map → p-8ee6f2f3.js.map} +0 -0
- /package/dist/components/{p-ff5e9e32.js.map → p-8f40dfec.js.map} +0 -0
- /package/dist/components/{p-6a473654.js.map → p-9b0f446d.js.map} +0 -0
- /package/dist/core/{p-b2c00946.entry.js.map → p-032accfb.entry.js.map} +0 -0
- /package/dist/core/{p-5802e37e.entry.js.map → p-058e6fe2.entry.js.map} +0 -0
- /package/dist/core/{p-b36f84d2.entry.js.map → p-063b70a2.entry.js.map} +0 -0
- /package/dist/core/{p-38287e92.entry.js.map → p-0724cb6a.entry.js.map} +0 -0
- /package/dist/core/{p-2b62c4ee.entry.js.map → p-09c9eba6.entry.js.map} +0 -0
- /package/dist/core/{p-d8135701.js.map → p-0b3574c2.js.map} +0 -0
- /package/dist/core/{p-b404f53c.entry.js.map → p-0c076b21.entry.js.map} +0 -0
- /package/dist/core/{p-1d5cc2b1.entry.js.map → p-10f773c2.entry.js.map} +0 -0
- /package/dist/core/{p-3abf57dc.entry.js.map → p-1aa7450e.entry.js.map} +0 -0
- /package/dist/core/{p-26726401.entry.js.map → p-269071f5.entry.js.map} +0 -0
- /package/dist/core/{p-2f3228e4.js.map → p-29ac15d2.js.map} +0 -0
- /package/dist/core/{p-8a063925.entry.js.map → p-33310735.entry.js.map} +0 -0
- /package/dist/core/{p-8e5f45d0.entry.js.map → p-37473c34.entry.js.map} +0 -0
- /package/dist/core/{p-9514520c.entry.js.map → p-3849ca02.entry.js.map} +0 -0
- /package/dist/core/{p-93b747c1.entry.js.map → p-43d3dbc0.entry.js.map} +0 -0
- /package/dist/core/{p-fe9ca9e6.entry.js.map → p-4c60e125.entry.js.map} +0 -0
- /package/dist/core/{p-3b8b331f.entry.js.map → p-4fa0320d.entry.js.map} +0 -0
- /package/dist/core/{p-200a0be4.entry.js.map → p-50af9ae8.entry.js.map} +0 -0
- /package/dist/core/{p-4ea79bda.entry.js.map → p-5c3f4cfe.entry.js.map} +0 -0
- /package/dist/core/{p-75ff8ad0.entry.js.map → p-6b7c3a96.entry.js.map} +0 -0
- /package/dist/core/{p-8f21a858.entry.js.map → p-71f5d4ff.entry.js.map} +0 -0
- /package/dist/core/{p-0a49e852.entry.js.map → p-77daba72.entry.js.map} +0 -0
- /package/dist/core/{p-cb76cda0.entry.js.map → p-7a21fb90.entry.js.map} +0 -0
- /package/dist/core/{p-c723877b.entry.js.map → p-7baee44f.entry.js.map} +0 -0
- /package/dist/core/{p-7f7c31e2.entry.js.map → p-7dfb7e36.entry.js.map} +0 -0
- /package/dist/core/{p-9897ac81.entry.js.map → p-8bb6c816.entry.js.map} +0 -0
- /package/dist/core/{p-fe5030a6.entry.js.map → p-927c31dd.entry.js.map} +0 -0
- /package/dist/core/{p-2800bec9.entry.js.map → p-967a1094.entry.js.map} +0 -0
- /package/dist/core/{p-1399f929.entry.js.map → p-9846fd13.entry.js.map} +0 -0
- /package/dist/core/{p-87e5b1d0.entry.js.map → p-994385ca.entry.js.map} +0 -0
- /package/dist/core/{p-f35f3261.entry.js.map → p-9f8d69a9.entry.js.map} +0 -0
- /package/dist/core/{p-47d27845.entry.js.map → p-a6a9de9a.entry.js.map} +0 -0
- /package/dist/core/{p-c742b08e.entry.js.map → p-b62e49ee.entry.js.map} +0 -0
- /package/dist/core/{p-2f693f59.entry.js.map → p-c0800e6d.entry.js.map} +0 -0
- /package/dist/core/{p-bf0712e0.entry.js.map → p-d9b42773.entry.js.map} +0 -0
- /package/dist/core/{p-6cf9500c.entry.js.map → p-e0a199ff.entry.js.map} +0 -0
- /package/dist/core/{p-c34dad75.entry.js.map → p-e215f3ee.entry.js.map} +0 -0
- /package/dist/core/{p-368aa2f4.entry.js.map → p-ed02945f.entry.js.map} +0 -0
- /package/dist/core/{p-b480cda1.entry.js.map → p-ee55932a.entry.js.map} +0 -0
- /package/dist/core/{p-f9474bb3.entry.js.map → p-f2bb8c29.entry.js.map} +0 -0
- /package/dist/core/{p-16a3deca.entry.js.map → p-f54edd6c.entry.js.map} +0 -0
- /package/dist/core/{p-fc795b0e.entry.js.map → p-fcac8531.entry.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const gov_log = require('./gov.log-
|
|
3
|
+
const gov_log = require('./gov.log-bfea3151.js');
|
|
4
4
|
|
|
5
5
|
// @TODO: deal with optional values
|
|
6
6
|
const validateProp = (valueEnum, value, component) => {
|
|
@@ -13,4 +13,4 @@ const validateProp = (valueEnum, value, component) => {
|
|
|
13
13
|
|
|
14
14
|
exports.validateProp = validateProp;
|
|
15
15
|
|
|
16
|
-
//# sourceMappingURL=props-
|
|
16
|
+
//# sourceMappingURL=props-d189860c.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"props-
|
|
1
|
+
{"file":"props-d189860c.js","mappings":";;;;AAEA;MACa,YAAY,GAAG,CAAmC,SAAY,EAAE,KAAa,EAAE,SAAiB;IAC5G,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IACvC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,IAAI,CAAC,OAAO,EAAE;QACbA,qBAAa,CAAC,IAAI,SAAS,gCAAgC,KAAK,gCAAgC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KACtH;AACF;;;;","names":["govWarningLog"],"sources":["../../../packages/core/src/helpers/Validate/props.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\n\n// @TODO: deal with optional values\nexport const validateProp = <T extends Record<string, string>>(valueEnum: T, value: string, component: string): void => {\n\tconst values = Object.values(valueEnum)\n\tconst isValid = values.indexOf(value) > -1\n\tif (!isValid) {\n\t\tgovWarningLog(`[${component}]: Bad parameter with value (${value}). Available parameters are (${values.join(', ')}).`)\n\t}\n}\n"],"version":3}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const gov_log = require('./gov.log-
|
|
3
|
+
const gov_log = require('./gov.log-bfea3151.js');
|
|
4
4
|
const string_utils = require('./string.utils-b84c81cf.js');
|
|
5
5
|
const helpers_types = require('./helpers.types-ff60c9bd.js');
|
|
6
6
|
|
|
@@ -52,4 +52,4 @@ exports.validateAccessibleLabel = validateAccessibleLabel;
|
|
|
52
52
|
exports.validateWcagProp = validateWcagProp;
|
|
53
53
|
exports.validateWcagRef = validateWcagRef;
|
|
54
54
|
|
|
55
|
-
//# sourceMappingURL=wcag-
|
|
55
|
+
//# sourceMappingURL=wcag-2927ff73.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"wcag-
|
|
1
|
+
{"file":"wcag-2927ff73.js","mappings":";;;;;;MAKa,gBAAgB,GAAG,CAAC,KAAyB,EAAE,QAAgB,EAAE,SAAiB;IAC9F,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QACtDA,qBAAa,CAAC,IAAI,SAAS,WAAW,QAAQ,qDAAqD,CAAC,CAAA;KACpG;AACF,EAAC;MAEY,eAAe,GAAG,CAAC,WAAmB,EAAE,IAAY,EAAE,SAAiB;IACnF,IAAI,OAAO,WAAW,KAAK,WAAW,IAAI,WAAW,KAAK,SAAS,EAAE;QACpE,OAAO,IAAI,CAAA;KACX;IACD,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QACrCA,qBAAa,CAAC,IAAI,SAAS,iBAAiB,IAAI,mCAAmC,CAAC,CAAA;QACpF,OAAO,KAAK,CAAA;KACZ;IACD,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,MAAM,YAAY,GAAGC,8BAAiB,CAAC,WAAW,CAAC,CAAA;IACnD,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QAChC,OAAO,GAAG,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;YACxC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAA;SAC1B,CAAC,CAAA;KACF;IAED,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW;QAClC,IAAIC,oBAAY,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE;;YAExD,OAAO,KAAK,CAAA;SACZ;aAAM;YACN,OAAO,IAAI,CAAA;SACX;KACD,CAAC,CAAC,MAAM,CAAA;AACV,EAAC;MAcY,uBAAuB,GAAG,CAAC,KAAyB,EAAE,UAA8B,EAAE,SAAiB,EAAE,KAAkB,SAAS;IAChJ,IAAIC,sBAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACxC,OAAO,IAAI,CAAA;KACX;IACD,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;QAC5D,MAAM,YAAY,GAAGD,oBAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;QAC9D,IAAI,YAAY,EAAE;YACjB,OAAO,IAAI,CAAA;SACX;KACD;IACDF,qBAAa,CAAC,IAAI,SAAS,wEAAwE,EAAE,EAAE,CAAC,CAAA;IACxG,OAAO,KAAK,CAAA;AACb;;;;;;","names":["govWarningLog","splitByWhitespace","documentNode","isString"],"sources":["../../../packages/core/src/helpers/Validate/wcag.ts"],"sourcesContent":["import {govWarningLog} from '../Log/gov.log'\nimport {splitByWhitespace} from '../../utils/string.utils'\nimport {documentNode} from '../Dom/win'\nimport {isString} from \"../../utils/helpers.types\";\n\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\n\tif (value === undefined || String(value).length === 0) {\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\n\t}\n}\n\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\n\t\treturn true\n\t}\n\tif (String(referenceId).length === 0) {\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\n\t\treturn false\n\t}\n\tlet strings = []\n\tconst referenceIds = splitByWhitespace(referenceId)\n\tif (Array.isArray(referenceIds)) {\n\t\tstrings = referenceIds.filter(function (e) {\n\t\t\treturn e.trim().length > 0\n\t\t})\n\t}\n\n\treturn !!strings.filter(referenceId => {\n\t\tif (documentNode().getElementById(referenceId) === null) {\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\n\t\t\treturn false\n\t\t} else {\n\t\t\treturn true\n\t\t}\n\t}).length\n}\n\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\n\tif (labelEl === null) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl === null) {\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}\n\nexport const validateAccessibleLabel = (label: string | undefined, labelledBy: string | undefined, component: string, el: HTMLElement = undefined): boolean => {\n\tif (isString(label) && label.length > 0) {\n\t\treturn true\n\t}\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl) {\n\t\t\treturn true\n\t\t}\n\t}\n\tgovWarningLog(`[${component}]: The element has no defined aria-label or aria-labelledby attribute.`, el)\n\treturn false\n}\n"],"version":3}
|
|
@@ -1,8 +1,214 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
1
|
+
import { Build, h, Host } from "@stencil/core";
|
|
2
|
+
import { IconClass, IconColors } from "./constants";
|
|
3
|
+
import { fetchIcon } from "../../utils/icon.utils";
|
|
4
|
+
import { govHost } from "../../helpers/Dom/template";
|
|
5
|
+
import { iconsLazyLoad } from "../../helpers/Dom/win";
|
|
6
|
+
import { validateProp } from "../../helpers/Validate/props";
|
|
7
|
+
import { Sizes } from "../../core/constants/sizes";
|
|
8
|
+
import { isValidSVG } from "../../helpers/Dom/document";
|
|
2
9
|
export class GovIcon {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.size = undefined;
|
|
12
|
+
this.color = undefined;
|
|
13
|
+
this.name = null;
|
|
14
|
+
this.type = "components";
|
|
15
|
+
this.visible = false;
|
|
16
|
+
this.error = false;
|
|
17
|
+
console.log('GovIcon');
|
|
18
|
+
this.h = govHost(this.host);
|
|
19
|
+
}
|
|
20
|
+
validateSize(newValue) {
|
|
21
|
+
validateProp(Sizes, newValue, IconClass.root);
|
|
22
|
+
}
|
|
23
|
+
validateColor(newValue) {
|
|
24
|
+
validateProp(IconColors, newValue, IconClass.root);
|
|
25
|
+
}
|
|
26
|
+
watchError(newValue) {
|
|
27
|
+
console.log('error', newValue);
|
|
28
|
+
}
|
|
29
|
+
async loadIconPathData() {
|
|
30
|
+
const { name, visible } = this;
|
|
31
|
+
console.log('name, visible', name, visible);
|
|
32
|
+
console.log('Build.isBrowser', Build.isBrowser);
|
|
33
|
+
if (!Build.isBrowser || !name || !visible) {
|
|
34
|
+
console.log('return');
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
await this.loadIcon();
|
|
38
|
+
}
|
|
39
|
+
connectedCallback() {
|
|
40
|
+
console.log('connectedCallback icon', this.name);
|
|
41
|
+
console.log('iconsLazyLoad()', iconsLazyLoad());
|
|
42
|
+
if (iconsLazyLoad()) {
|
|
43
|
+
this.visible = true;
|
|
44
|
+
this.loadIconPathData().finally();
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this.waitUntilVisible(async () => {
|
|
48
|
+
this.visible = true;
|
|
49
|
+
await this.loadIconPathData();
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
disconnectedCallback() {
|
|
54
|
+
console.log('disconnectedCallback');
|
|
55
|
+
if (this.intersectionObserver) {
|
|
56
|
+
this.intersectionObserver.disconnect();
|
|
57
|
+
this.intersectionObserver = null;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
async componentWillLoad() {
|
|
61
|
+
console.log('componentWillLoad');
|
|
62
|
+
this.validateSize(this.size);
|
|
63
|
+
this.validateColor(this.color);
|
|
64
|
+
await this.loadIconPathData();
|
|
65
|
+
}
|
|
66
|
+
waitUntilVisible(callback) {
|
|
67
|
+
if (!Build.isBrowser || typeof window === "undefined" || !window.IntersectionObserver) {
|
|
68
|
+
callback();
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
this.intersectionObserver = new IntersectionObserver(entries => {
|
|
72
|
+
entries.forEach(entry => {
|
|
73
|
+
if (entry.isIntersecting) {
|
|
74
|
+
if (this.intersectionObserver) {
|
|
75
|
+
this.intersectionObserver.disconnect();
|
|
76
|
+
this.intersectionObserver = null;
|
|
77
|
+
}
|
|
78
|
+
callback();
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}, { rootMargin: "50px" });
|
|
82
|
+
this.intersectionObserver.observe(this.host);
|
|
83
|
+
}
|
|
84
|
+
async loadIcon() {
|
|
85
|
+
try {
|
|
86
|
+
const { name, type } = this;
|
|
87
|
+
console.log('loadIcon -> name, type', name, type);
|
|
88
|
+
const data = await fetchIcon({ name, type });
|
|
89
|
+
const isValid = isValidSVG(data);
|
|
90
|
+
this.host.innerHTML = isValid ? data : null;
|
|
91
|
+
}
|
|
92
|
+
catch (e) {
|
|
93
|
+
this.host.innerHTML = '';
|
|
94
|
+
this.error = true;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
3
97
|
render() {
|
|
4
|
-
|
|
98
|
+
if (this.error) {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
return (h(Host, { class: this.h.classes(IconClass.root), size: this.size, color: this.color }));
|
|
5
102
|
}
|
|
6
103
|
static get is() { return "gov-icon"; }
|
|
104
|
+
static get assetsDirs() { return ["assets"]; }
|
|
105
|
+
static get properties() {
|
|
106
|
+
return {
|
|
107
|
+
"size": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "IconSizesType",
|
|
112
|
+
"resolved": "\"2xl\" | \"3xl\" | \"4xl\" | \"6xl\" | \"l\" | \"m\" | \"s\" | \"xl\" | \"xs\"",
|
|
113
|
+
"references": {
|
|
114
|
+
"IconSizesType": {
|
|
115
|
+
"location": "import",
|
|
116
|
+
"path": "./constants",
|
|
117
|
+
"id": "../../../packages/core/src/components/gov-icon/constants.ts::IconSizesType"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"required": false,
|
|
122
|
+
"optional": true,
|
|
123
|
+
"docs": {
|
|
124
|
+
"tags": [],
|
|
125
|
+
"text": "Icon size"
|
|
126
|
+
},
|
|
127
|
+
"attribute": "size",
|
|
128
|
+
"reflect": true
|
|
129
|
+
},
|
|
130
|
+
"color": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "IconColorType",
|
|
135
|
+
"resolved": "\"black\" | \"default\" | \"disabled\" | \"error\" | \"neutral\" | \"primary\" | \"secondary\" | \"success\" | \"warning\" | \"white\"",
|
|
136
|
+
"references": {
|
|
137
|
+
"IconColorType": {
|
|
138
|
+
"location": "import",
|
|
139
|
+
"path": "./constants",
|
|
140
|
+
"id": "../../../packages/core/src/components/gov-icon/constants.ts::IconColorType"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"required": false,
|
|
145
|
+
"optional": true,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": "Icon color"
|
|
149
|
+
},
|
|
150
|
+
"attribute": "color",
|
|
151
|
+
"reflect": true
|
|
152
|
+
},
|
|
153
|
+
"name": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"mutable": false,
|
|
156
|
+
"complexType": {
|
|
157
|
+
"original": "string",
|
|
158
|
+
"resolved": "string",
|
|
159
|
+
"references": {}
|
|
160
|
+
},
|
|
161
|
+
"required": false,
|
|
162
|
+
"optional": false,
|
|
163
|
+
"docs": {
|
|
164
|
+
"tags": [],
|
|
165
|
+
"text": "Name of icon in folder"
|
|
166
|
+
},
|
|
167
|
+
"attribute": "name",
|
|
168
|
+
"reflect": true,
|
|
169
|
+
"defaultValue": "null"
|
|
170
|
+
},
|
|
171
|
+
"type": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"mutable": false,
|
|
174
|
+
"complexType": {
|
|
175
|
+
"original": "string",
|
|
176
|
+
"resolved": "string",
|
|
177
|
+
"references": {}
|
|
178
|
+
},
|
|
179
|
+
"required": false,
|
|
180
|
+
"optional": false,
|
|
181
|
+
"docs": {
|
|
182
|
+
"tags": [],
|
|
183
|
+
"text": "Type (folder) of icon"
|
|
184
|
+
},
|
|
185
|
+
"attribute": "type",
|
|
186
|
+
"reflect": true,
|
|
187
|
+
"defaultValue": "\"components\""
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
static get states() {
|
|
192
|
+
return {
|
|
193
|
+
"visible": {},
|
|
194
|
+
"error": {}
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
static get elementRef() { return "host"; }
|
|
198
|
+
static get watchers() {
|
|
199
|
+
return [{
|
|
200
|
+
"propName": "size",
|
|
201
|
+
"methodName": "validateSize"
|
|
202
|
+
}, {
|
|
203
|
+
"propName": "color",
|
|
204
|
+
"methodName": "validateColor"
|
|
205
|
+
}, {
|
|
206
|
+
"propName": "error",
|
|
207
|
+
"methodName": "watchError"
|
|
208
|
+
}, {
|
|
209
|
+
"propName": "name",
|
|
210
|
+
"methodName": "loadIconPathData"
|
|
211
|
+
}];
|
|
212
|
+
}
|
|
7
213
|
}
|
|
8
214
|
//# sourceMappingURL=gov-icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-icon.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/gov-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"gov-icon.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/gov-icon.tsx"],"names":[],"mappings":"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","sourcesContent":["import {Build, Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {IconClass, IconColors, type IconColorType, IconSizesType} from \"./constants\"\nimport {fetchIcon} from \"../../utils/icon.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {iconsLazyLoad} from \"../../helpers/Dom/win\"\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {isValidSVG} from \"../../helpers/Dom/document\";\n\n@Component({\n\tassetsDirs: [\"assets\"],\n\ttag: \"gov-icon\",\n})\nexport class GovIcon {\n\tprivate h: GovHost\n\tprivate intersectionObserver: IntersectionObserver\n\n\tconstructor() {\n\t\tconsole.log('GovIcon');\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovIconElement\n\t/**\n\t * Icon size\n\t */\n\t@Prop({reflect: true}) readonly size?: IconSizesType\n\t/**\n\t * Icon color\n\t */\n\t@Prop({reflect: true}) readonly color?: IconColorType\n\t/**\n\t * Name of icon in folder\n\t */\n\t@Prop({reflect: true}) name: string = null\n\t/**\n\t * Type (folder) of icon\n\t */\n\t@Prop({reflect: true}) type = \"components\"\n\n\t@State() private visible = false\n\t@State() private error = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(IconColors, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"error\")\n\twatchError(newValue: string): void {\n\t\tconsole.log('error', newValue);\n\t}\n\n\t@Watch(\"name\")\n\tprivate async loadIconPathData(): Promise<void> {\n\t\tconst {name, visible} = this\n\t\tconsole.log('name, visible', name, visible);\n\t\tconsole.log('Build.isBrowser', Build.isBrowser);\n\t\tif (!Build.isBrowser || !name || !visible) {\n\t\t\tconsole.log('return');\n\t\t\treturn\n\t\t}\n\t\tawait this.loadIcon()\n\t}\n\n\tconnectedCallback(): void {\n\t\tconsole.log('connectedCallback icon', this.name);\n\t\tconsole.log('iconsLazyLoad()', iconsLazyLoad());\n\t\tif (iconsLazyLoad()) {\n\t\t\tthis.visible = true\n\t\t\tthis.loadIconPathData().finally()\n\t\t} else {\n\t\t\tthis.waitUntilVisible(async () => {\n\t\t\t\tthis.visible = true\n\t\t\t\tawait this.loadIconPathData()\n\t\t\t})\n\t\t}\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tconsole.log('disconnectedCallback');\n\t\tif (this.intersectionObserver) {\n\t\t\tthis.intersectionObserver.disconnect()\n\t\t\tthis.intersectionObserver = null\n\t\t}\n\t}\n\n\tasync componentWillLoad(): Promise<void> {\n\t\tconsole.log('componentWillLoad');\n\t\tthis.validateSize(this.size)\n\t\tthis.validateColor(this.color)\n\t\tawait this.loadIconPathData()\n\t}\n\n\tprivate waitUntilVisible(callback: () => void): void {\n\t\tif (!Build.isBrowser || typeof window === \"undefined\" || !(window as any).IntersectionObserver) {\n\t\t\tcallback()\n\t\t\treturn\n\t\t}\n\t\tthis.intersectionObserver = new IntersectionObserver(\n\t\t\tentries => {\n\t\t\t\tentries.forEach(entry => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tif (this.intersectionObserver) {\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\n\t\t\t\t\t\t\tthis.intersectionObserver = null\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcallback()\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t{rootMargin: \"50px\"},\n\t\t)\n\t\tthis.intersectionObserver.observe(this.host)\n\t}\n\n\tprivate async loadIcon() {\n\t\ttry {\n\t\t\tconst {name, type} = this\n\t\t\tconsole.log('loadIcon -> name, type', name, type);\n\t\t\tconst data = await fetchIcon({name, type})\n\t\t\tconst isValid = isValidSVG(data)\n\t\t\tthis.host.innerHTML = isValid ? data : null;\n\t\t} catch (e) {\n\t\t\tthis.host.innerHTML = ''\n\t\t\tthis.error = true\n\t\t}\n\t}\n\n\trender() {\n\t\tif (this.error) {\n\t\t\treturn null\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(IconClass.root)} size={this.size} color={this.color}/>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -39,8 +39,8 @@ export class GovInfobar {
|
|
|
39
39
|
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
const closeButton = (h("gov-button", { key: '
|
|
43
|
-
return (h(Host, { key: '
|
|
42
|
+
const closeButton = (h("gov-button", { key: '2d0597a56f6edb97e7feff654ba98885fa48033a', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, h("gov-icon", { key: 'c17ba542b02a4910a136eec6cb4556d1857dffb2', name: "x-lg", type: "components" })));
|
|
43
|
+
return (h(Host, { key: 'd71d1b8ffe158de90f3fb520bd996a8246988d3d', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, h("section", Object.assign({ key: '12cce82faa13fa39135fe92b0ab61bc2b01fa083', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), h("slot", { key: 'bc48d4e5dfad03cd9c54054225a4c3db0ec09cd9', name: "icon" }), h("div", { key: '70422e59cb69504d1aca5d45b9f9700b35b344f0', class: InfobarClass.content }, this.h.hasSlot('headline') ? (h(Fragment, null, h("div", { class: InfobarClass.headline }, h("slot", { name: "headline" }), h("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), h("div", { hidden: !this.toggleContent, "aria-hidden": toBoolAttr(this.toggleContent) }, h("slot", null)))) : (h("slot", null))), this.closable && closeButton)));
|
|
44
44
|
}
|
|
45
45
|
onCloseHandler(e) {
|
|
46
46
|
this.govClose.emit({
|
|
@@ -6,7 +6,7 @@ export class GovLayoutColumn {
|
|
|
6
6
|
this.h = govHost(this.host);
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: 'ebef4ca76b1308a566c862b5a49eecf1eb3fce99', class: this.h.classes(LayoutColumnClass.root) }, h("slot", { key: 'aaeefeb1a56b294d91b1327fd52eb16486cfb918' })));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "gov-layout-column"; }
|
|
12
12
|
static get elementRef() { return "host"; }
|
|
@@ -15,7 +15,7 @@ export class GovLayout {
|
|
|
15
15
|
return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'c35fc39e07229363bdf36be5856165e7e8eb7985', type: this.type, class: this.h.classes(LayoutClass.root) }, h("section", { key: 'dc50cf9cba8bd4e879291fddfbd41955f2d10330', class: this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse) }, h("slot", { key: '017a329c119529d3893e187b6a8bbccfbbc76679' }))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "gov-layout"; }
|
|
21
21
|
static get properties() {
|
|
@@ -32,7 +32,7 @@ export class GovLifecycle {
|
|
|
32
32
|
console.log('componentDidUpdate', this.uniqueId);
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '506eabaae01ae888fa838c10572e55bbe6fb7015', identifier: this.uniqueId }, h("span", { key: '7604a29214fdffb1a470d83d7db37a583e5072ed' }, "lifecycle ", this.uniqueId)));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "gov-lifecycle"; }
|
|
38
38
|
}
|
|
@@ -24,7 +24,7 @@ export class GovLink {
|
|
|
24
24
|
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: '233af48c179501fe03ee2e5931806e1955913b59', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external }, h("a", Object.assign({ key: '679067805205d76500979620b1ef4405139bb339', class: "element", href: this.href, target: this.target }, this.inheritedAttributes), h("slot", { key: 'd24c4ab99451f317a453c8131bd0506606322553', name: "icon-start" }), h("slot", { key: '276923f48cdc13985115e8d4e8860a2fb0c692e2' }), this.external ? h("gov-icon", { name: "box-arrow-up-right", type: "components" }) : h("slot", { name: "icon-end" }))));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "gov-link"; }
|
|
30
30
|
static get properties() {
|
|
@@ -14,7 +14,7 @@ export class GovLoading {
|
|
|
14
14
|
this.validateSize(this.size);
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '4c33339523674f2f2415dfb326131858de9eecf9', class: this.h.classes(LoadingClass.root), size: this.size }, h("div", { key: '8c25628dd3072fd89665ccfedb9596383181b13d', class: LoadingClass.content }, h("gov-icon", { key: 'a9969874350b5316c61a94b12d41a0130eeded0f', class: prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader", type: "components" }), h("slot", { key: '14c716ecc352a0d947a6e3d932d2ab9075dedb97' })), h("gov-backdrop", { key: '507610e5a61b34be2166fb4a30539a134dc1b262', inverse: true })));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "gov-loading"; }
|
|
20
20
|
static get properties() {
|
|
@@ -66,7 +66,7 @@ export class GovSkeleton {
|
|
|
66
66
|
return Object.assign({}, dimenssionsStyles);
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
return (h(Host, Object.assign({ key: '
|
|
69
|
+
return (h(Host, Object.assign({ key: '175dad78f57ee2e44fe3097e0595f59254e1003b', size: this.size, color: this.color, class: {
|
|
70
70
|
[SkeletonClass.root]: true,
|
|
71
71
|
circle: this.shape === "circle",
|
|
72
72
|
line: this.shape === "line",
|
|
@@ -13,7 +13,7 @@ export class GovMessage {
|
|
|
13
13
|
validateProp(Colors, newValue, MessageClass.root);
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'b9e06c8f94940edf9d2c60119c35ec32baa23fc9', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (h("slot", { key: 'd478f414de8eaa276cc867ae5bb325c1090b08ac', name: "icon" })), h("div", { key: 'd5a113ca4061b445c583fb1b4f22fff594570b1e', class: MessageClass.content }, h("slot", { key: 'e9be2f4ff3603c5f77d46e042455174e6ccfb7be' }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "gov-message"; }
|
|
19
19
|
static get properties() {
|
|
@@ -19,7 +19,7 @@ export class GovSpacer {
|
|
|
19
19
|
this.validateBreakpoint(this.breakpoint);
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return h(Host, { key: '
|
|
22
|
+
return h(Host, { key: '23aedb7f3b112a356319aba076eedf9a4743e25b', class: this.h.classes(SpacerClass.root), size: this.size, breakpoint: this.breakpoint });
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "gov-spacer"; }
|
|
25
25
|
static get properties() {
|
|
@@ -25,7 +25,7 @@ export class GovStepperItem {
|
|
|
25
25
|
render() {
|
|
26
26
|
const triggerId = this.identifier || this.triggerId;
|
|
27
27
|
const contentId = this.contentId;
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: 'c24400b8ee5917005e6e3a21f47024c7ebad2960', id: triggerId, class: this.h.classes(StepperItemClass.root), color: this.color, role: "listitem", hydrated: this.hydrated }, this.h.hasSlot('prefix') && (h("span", { key: '010401daa60b44eed322de007fdd6e4ca035ff8d', class: StepperItemClass.prefix }, h("slot", { key: '27287e54365c7e72e01dd21f8d07f7144dc03f3c', name: "prefix" }))), h("div", { key: 'b50e23ee80b270bb5bb781c46e2cf2de73cad1bb' }, h("span", { key: '84500822ca2e529bff5e5cf4eb7ac7c9f0fc9d97', class: StepperItemClass.headline }, h("slot", { key: '18410e07be87715a96540789a82403bfab45e55c', name: "headline" })), h("slot", { key: 'dd2c20b9f07d2bcbf4223eca8de0d7592d178e86', name: "annotation" }), this.h.hasSlot('content') && (h("div", { key: 'cd34d17b5a14816dd91ee84f91a14217952bcfe5', class: StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, h("slot", { key: 'c90f411f8d63c6381f55a0e6ac819369a9bfd2e5', name: "content" }))))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "gov-stepper-item"; }
|
|
31
31
|
static get properties() {
|
|
@@ -27,7 +27,7 @@ export class GovStepper {
|
|
|
27
27
|
this.hydrated = true;
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '0815470dbe86e888ab922139e6f02347f89f4700', class: this.h.classes(StepperClass.root), role: "list", size: this.size, hydrated: this.hydrated }, h("slot", { key: '2585c79a48236a8c2d333a437beb4d7f1d9d9d6c' })));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "gov-stepper"; }
|
|
33
33
|
static get properties() {
|
|
@@ -23,7 +23,7 @@ export class GovTabsItem {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '89b01b0d025a89f89085dba24db6b8fadcd97e68', class: this.h.classes(TabsItemClass.root), default: this.default }, h("div", { key: '8868371d0da63c1727c8b3a55b930a4d0ce30a3c', class: TabsItemClass.inner, role: "tabpanel", id: this.identifier || this.contentId, hidden: !this.isActive, "aria-labelledby": this.triggerIdentifier || this.triggerId, "aria-hidden": toBoolAttrIfDefined(!this.isActive) }, h("slot", { key: '0d47bea8c416b1c57aac006f9eea9101ade9427d' }))));
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Returns a unique tab content identifier
|
|
@@ -112,7 +112,7 @@ export class GovTabs {
|
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
render() {
|
|
115
|
-
return (h(Host, { key: '
|
|
115
|
+
return (h(Host, { key: '4efcbedcc355a74456cc899bc48c7aaf8c604c12', class: this.h.classes(TabsClass.root), size: this.size, color: this.color, type: this.type, direction: this.direction, onKeyDown: this.onKeydownHandler.bind(this) }, h("div", Object.assign({ key: 'a64d1a7cadd5950ebc687c3f3d741ea0a59a3684', class: TabsClass.tabs, role: "tablist" }, this.inheritedAttributes), h("ul", { key: 'adab5148c97b041e11f3e7d11a4d87492df5320a', class: TabsClass.list }, this.controllers.map(control => (h("li", { class: TabsClass.item }, this.type == "text" ? (h("button", { class: TabsClass.btn, id: control.triggerIdentifier, role: "tab", onClick: () => this.onSelectHandler(control), disabled: control.disabled, "aria-disabled": toBoolAttr(control.disabled), "aria-selected": toBoolAttr(control.active), "aria-controls": control.contentIdentifier, tabindex: control.active && !control.disabled ? 0 : -1, ref: el => (this.triggerRefs[control.triggerIdentifier] = el) }, control.iconStart ? (h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type })) : null, control.label, control.iconEnd ? (h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type })) : null)) : (h("gov-chip", { role: "tab", tag: 'button', identifier: control.triggerIdentifier, "aria-selected": booleanString(control.active), "aria-controls": control.contentIdentifier, focusable: control.active, disabled: control.disabled, color: this.color, size: this.size === "xs" ? "xs" : (this.size === "s" ? "s" : "m"), type: control.active ? "solid" : "outlined", ref: el => (this.triggerRefs[control.triggerIdentifier] = el), "on-gov-click": () => this.onSelectHandler(control) }, control.iconStart ? (h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type, slot: "icon-start" })) : null, control.label, control.iconEnd ? (h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type, slot: "icon-end" })) : null))))))), h("slot", { key: '2a3720ce9449d62ecd1d58bac806bf356d37375a' })));
|
|
116
116
|
}
|
|
117
117
|
getCurrentTab() {
|
|
118
118
|
return this.controllers.find(control => control.active) || null;
|
|
@@ -27,7 +27,7 @@ export class GovTag {
|
|
|
27
27
|
render() {
|
|
28
28
|
const iconStart = prepareIconFormat(this.iconStart);
|
|
29
29
|
const iconEnd = prepareIconFormat(this.iconEnd);
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '8865709f2568a754160000138f413f352409e248', class: this.h.classes(TagClass.root), color: this.color, size: this.size, type: this.type }, h("span", { key: '4ae6dc1d60a207510de61c2391af9eb268dd3588', class: "element" }, h("slot", { key: 'f08057eb346b918d1be45ad7561a71bac54237aa', name: "icon-start" }, iconStart && h("gov-icon", { key: '37554fce04335c45bb724efeb5e7701513336b7b', type: iconStart.type, name: iconStart.name })), h("slot", { key: 'b66970bf42b9fd9217cb2e3a03c2f47c608b14a5' }), h("slot", { key: '85bf0010dac55b808bba5a442d977e8538f93d3a', name: "icon-end" }, iconEnd && h("gov-icon", { key: '70bf541bac6a69871618cb520c7008099aa6f341', type: iconEnd.type, name: iconEnd.name })))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "gov-tag"; }
|
|
33
33
|
static get properties() {
|
|
@@ -65,7 +65,7 @@ export class GovThemeSwitch {
|
|
|
65
65
|
if (this.theme === ThemeList.auto) {
|
|
66
66
|
isDark = this.isSystemPrefersColorDark;
|
|
67
67
|
}
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '784ed0513ea1436bb754dc82691646422789783b', class: this.h.classes(ThemeSwitchClass.root), theme: isDark ? ThemeList.dark : ThemeList.light, size: this.size }, h("button", { key: 'd4abc155a8ae8f07d0a49c378e295c3ab57318d4', onClick: () => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark), "aria-current": this.theme, "aria-label": isDark ? this.ariaLabelDark : this.ariaLabelLight }, h("span", { key: '7f713875d5618acc919702cdc60e9db58dfb9db5' }, h("span", { key: '0b57c0153047ef292b6bdc43b49e5a1a9cdc17e1', class: ThemeSwitchClass.indicator }, ThemeList.light && h("gov-icon", { key: 'ae2c751435a2bc9c1e9f8dfa4ca52e13943ada9b', name: "sun", class: ThemeSwitchClass.iconLight, type: "components" }), ThemeList.dark && h("gov-icon", { key: '7a4ee602a37742ab94dcee47a7c4970d5dce5bb6', name: "moon", class: ThemeSwitchClass.iconDark, type: "components" })), this.displayLabel && (isDark ? this.labelDark : this.labelLight)))));
|
|
69
69
|
}
|
|
70
70
|
static get is() { return "gov-theme-switch"; }
|
|
71
71
|
static get properties() {
|
|
@@ -7,7 +7,7 @@ export class GovTiles {
|
|
|
7
7
|
this.h = govHost(this.host);
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '18eb380e2fe62b54a90c5c758c62c985107c98d4', class: this.h.classes(TilesClass.root) }, h("slot", { key: '9746ede80d0daa8776208afb5cef44b7adb0d7fc' })));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "gov-tiles"; }
|
|
13
13
|
static get properties() {
|
|
@@ -11,7 +11,7 @@ export class GovTile {
|
|
|
11
11
|
this.h = govHost(this.host);
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'c766f3d54f15e5a49a877fa2e67593d084f487f7', class: this.h.classes(TileClass.root), size: this.size, orientation: this.orientation, clickable: this.href ? true : null }, h("slot", { key: 'd07b106d781fead65a124c82d11ebe991fddfece', name: "icon" }), h("div", { key: 'eeee0397b4384a473f3782750d1e04f0c8c7894d', class: TileClass.content }, h("div", { key: 'f4081902e55b964b1ebbdd43f7b189f83dce8690', class: TileClass.text }, h("div", { key: '3bf8cf35db6f667de7c278786787e38b1392a5b2', class: TileClass.title }, this.href ? (h(Fragment, null, h("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, h("slot", { name: "title" })), h("span", { class: TileClass.icon }, h("gov-icon", { name: "chevron-right", type: "components" })))) : (h("slot", { name: "title" }))), h("div", { key: '088f60531285a1457277352a011766f809d9280d', class: `${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}` }, h("slot", { key: '8d4a612e3aff054a60ec1030eb5a28903595ea6a' }))), h("slot", { key: 'f7610d06a6d951b3a24f2e129342bb82c5e9d767', name: "button" }))));
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Returns a clickable element instance
|
|
@@ -53,7 +53,7 @@ export class GovToast {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '632972ed59aac0d696428d6f32e6c99615ccf687', class: this.h.classes(ToastClass.root), "data-toast-id": this.toastId, gravity: this.gravity, position: this.position, color: this.color, type: this.type, style: { "--toast-duration": this.time + "ms" } }, this.h.hasSlot("icon") && (h("span", { key: 'da93a05f1976eeb4e356160fd0daea409b836a05', class: ToastClass.icon }, h("slot", { key: 'd374f5dea570b27643d960e65d0d5b2c710cb2b4', name: "icon" }))), h("div", Object.assign({ key: '1680aff627c809348ae7812ab72a34dbad33a368', class: ToastClass.content }, this.inheritedAttributes, { "aria-live": "polite", role: "status" }), h("slot", { key: '8208b697e9fbefd964a17c6bfdb06d3a5ff9d2f2' })), h("gov-button", { key: '9f05e19a672f66c2203a5556370e12e2ce7819f7', size: "s", "aria-label": this.accessibleCloseLabel, color: this.isBold ? this.color : "neutral", type: "base", "on-gov-click": this.onCloseHandler.bind(this), class: ToastClass.close }, this.closeLabel ? this.closeLabel : h("gov-icon", { name: "x-lg", type: "components" })), h("div", { key: 'a954d22ce3a0e06e2d17aa14903dae7264d9e03c', class: ToastClass.timer })));
|
|
57
57
|
}
|
|
58
58
|
onCloseHandler() {
|
|
59
59
|
this.govClose.emit(this.toastId);
|
|
@@ -29,7 +29,7 @@ export class GovTooltipContent {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '965998f4788ddd5dffd01b53073a001023cd9037', class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !toBoolAttr(this.isVisible), "is-visible": this.isVisible }, h("slot", { key: 'fe9d1ee13a11077947492341836f8f25c1f8881f' }), this.persist ? (h("gov-button", { "on-gov-click": this.hideContent.bind(this), color: this.color, size: this.size, type: "base" }, h("gov-icon", { slot: "icon-start", name: "x-lg", type: "components" }))) : null));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "gov-tooltip-content"; }
|
|
35
35
|
static get properties() {
|
|
@@ -196,11 +196,11 @@ export class GovTooltip {
|
|
|
196
196
|
}
|
|
197
197
|
render() {
|
|
198
198
|
var _a;
|
|
199
|
-
return (h(Host, { key: '
|
|
199
|
+
return (h(Host, { key: '2e96da1a9d7afd70abb4ffd2e979210cc179680e', id: this.tooltipId, class: this.h.classes(TooltipClass.root), position: this.position }, h("span", { key: '9c9c06d716556faa56f5ba9a952ea867c5533b2b', role: 'button', tabindex: 0, onKeyPress: () => this.showTooltip(), onBlur: () => {
|
|
200
200
|
if (this.persist === false) {
|
|
201
201
|
this.hideTooltip();
|
|
202
202
|
}
|
|
203
|
-
}, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, h("slot", { key: '
|
|
203
|
+
}, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, h("slot", { key: '29549049c0bfbe311980aa6a630ff9eff8e35f40' }))));
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
206
|
* Showing the modal
|
|
@@ -36,8 +36,8 @@ export class GovWizardItem {
|
|
|
36
36
|
render() {
|
|
37
37
|
const triggerId = this.identifier || this.triggerId;
|
|
38
38
|
const Tag = this.collapsible ? Tags.BUTTON : Tags.DIV;
|
|
39
|
-
const prefixSlot = this.h.hasSlot("prefix") && (h("span", { key: '
|
|
40
|
-
return (h(Host, { key: '
|
|
39
|
+
const prefixSlot = this.h.hasSlot("prefix") && (h("span", { key: 'abdd15cfa834f393b29335ea2bda28cd1dfeef46', class: WizardItemClass.prefix }, h("slot", { key: '123c495809091879ab3d985b9bcb4a22005e4b75', name: "prefix" })));
|
|
40
|
+
return (h(Host, { key: '463384ea408a20992bf6f30f142fce7146fabf53', class: this.h.classes(WizardItemClass.root), "is-expanded": this.isExpanded, color: this.color, size: this.size, role: "listitem", collapsible: this.collapsible, hydrated: this.hydrated }, h("div", { key: '0b60621607cd8c48fe05fd1755f9f7b8514d425d', class: WizardItemClass.header }, prefixSlot, this.collapsible ? (h(Tag, { id: triggerId, class: this.h.classes(WizardItemClass.label), "aria-expanded": booleanString(this.isExpanded), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: (e) => {
|
|
41
41
|
e.preventDefault();
|
|
42
42
|
e.stopPropagation();
|
|
43
43
|
this.toggle();
|
|
@@ -40,7 +40,7 @@ export class GovWizard {
|
|
|
40
40
|
this.hydrated = true;
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: 'd75ce2d5499cef41ac6b316f313b0c5c446d0b55', class: this.h.classes(WizardClass.root), role: "list", size: this.size, hydrated: this.hydrated }, h("slot", { key: 'ea151639d058fa4e50427a893fa167969a453d39' })));
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* Validate the WCAG attributes of the component
|
|
@@ -19,6 +19,8 @@ export async function fetchIcon({ name, type }) {
|
|
|
19
19
|
}
|
|
20
20
|
console.log('requestCache[cacheKey]', requestCache, requestCache[cacheKey]);
|
|
21
21
|
if (!requestCache[cacheKey]) {
|
|
22
|
+
console.log('iconsPath()', iconsPath());
|
|
23
|
+
console.log('name, type', name, type);
|
|
22
24
|
console.log('iconUrl(iconsPath(), name, type)', iconUrl(iconsPath(), name, type));
|
|
23
25
|
requestCache[cacheKey] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {
|
|
24
26
|
if (resp.status === 200) {
|