@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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ThemeSwitchSizes","pick","Sizes","ThemeSwitchClass","root","indicator","iconLight","iconDark","ATTRIBUTE_THEME_NAME","ThemeList","setCookie","name","value","days","isWindow","expires","date","Date","setTime","getTime","toUTCString","document","cookie","encodeURIComponent","getCookie","nameEQ","cookies","split","i","length","trim","startsWith","decodeURIComponent","substring","GovThemeSwitch","proxyCustomElement","H","constructor","this","setThemeState","state","theme","govChange","emit","component","ref","host","auto","h","govHost","validateSize","newValue","validateProp","watchTheme","htmlElement","setAttribute","classList","remove","Object","keys","add","storageValue","documentElement","isSystemPrefersColorDark","window","matchMedia","matches","componentWillLoad","initDefaultState","size","options","currentState","htmlState","getAttribute","includes","render","isDark","dark","Host","key","class","classes","light","onClick","ariaLabelDark","ariaLabelLight","type","displayLabel","labelDark","labelLight"],"sources":["../../../packages/core/src/components/gov-theme-switch/constants.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.types.ts","../../../packages/core/src/helpers/Dom/document.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const ThemeSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type ThemeSwitchSizesType = `${ValueOf<typeof ThemeSwitchSizes>}`\n\nexport const ThemeSwitchClass = {\n\troot: 'gov-theme-switch',\n\tindicator: 'gov-theme-switch__indicator',\n\ticonLight: 'gov-theme-switch__icon-light',\n\ticonDark: 'gov-theme-switch__icon-dark',\n}\n\nexport const ATTRIBUTE_THEME_NAME = 'data-theme'\n","import {GovBaseEvent} from \"../../types/event.types\";\n\nexport enum ThemeList {\n\tauto = 'auto',\n\tlight = 'light',\n\tdark = 'dark'\n}\n\nexport interface ThemeSwitchEvent extends GovBaseEvent {\n\tref: HTMLGovThemeSwitchElement;\n\tstate: ThemeList\n}\n\n","import {Nullable} from \"../../utils/helpers.types\";\nimport {isWindow} from \"./win\";\n\nexport const setCookie = (name: string, value: string, days?: number) => {\n\tif (!isWindow) {\n\t\treturn\n\t}\n\tlet expires = \"\";\n\tif (days) {\n\t\tconst date = new Date();\n\t\tdate.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));\n\t\texpires = \"; expires=\" + date.toUTCString();\n\t}\n\tdocument.cookie = `${name}=${encodeURIComponent(value)}${expires}; path=/`;\n}\n\nexport const getCookie = (name: string): Nullable<string> => {\n\tif (!isWindow) {\n\t\treturn null\n\t}\n\tconst nameEQ = name + \"=\";\n\tconst cookies = document.cookie.split(';');\n\tfor (let i = 0; i < cookies.length; i++) {\n\t\tlet cookie = cookies[i].trim();\n\t\tif (cookie.startsWith(nameEQ)) {\n\t\t\treturn decodeURIComponent(cookie.substring(nameEQ.length));\n\t\t}\n\t}\n\treturn null;\n}\n\nexport const isValidSVG = (svgContent: string): boolean => {\n\ttry {\n\t\tconst parser = new DOMParser();\n\t\tconst doc = parser.parseFromString(svgContent, \"image/svg+xml\");\n\t\tconst parseError = doc.querySelector(\"parsererror\");\n\t\tif (parseError) {\n\t\t\treturn false;\n\t\t}\n\t\tconst svgElement = doc.documentElement;\n\t\tif (svgElement.tagName.toLowerCase() !== \"svg\") {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t} catch (error) {\n\t\treturn false;\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {GovHost} from \"../../helpers/Dom/template.types\";\nimport {govHost} from \"../../helpers/Dom/template\";\nimport {ATTRIBUTE_THEME_NAME, ThemeSwitchClass, ThemeSwitchSizes, ThemeSwitchSizesType} from \"./constants\";\nimport {isWindow} from \"../../helpers/Dom/win\";\nimport {ThemeList, ThemeSwitchEvent} from \"./gov-theme-switch.types\";\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {getCookie, setCookie} from \"../../helpers/Dom/document\";\n\n@Component({\n\ttag: \"gov-theme-switch\",\n})\nexport class GovThemeSwitch {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovThemeSwitchElement\n\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: ThemeSwitchSizesType = \"m\"\n\t/**\n\t * Display switch label\n\t */\n\t@Prop({attribute: \"display-label\"}) readonly displayLabel? = false\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"aria-label-light\"}) readonly ariaLabelLight? = \"Přenout na tmavý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"aria-label-dark\"}) readonly ariaLabelDark? = \"Přepnout na světlý mód\"\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"label-light\"}) readonly labelLight? = \"Světlý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"label-dark\"}) readonly labelDark? = \"Tmavý mód\"\n\t/**\n\t * Called when the theme is changed by the user\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<ThemeSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ThemeSwitchSizes, newValue, ThemeSwitchClass.root)\n\t}\n\n\t@Watch(\"theme\")\n\twatchTheme(newValue: ThemeList): void {\n\t\tthis.htmlElement.setAttribute(ATTRIBUTE_THEME_NAME, newValue);\n\t\tthis.htmlElement.classList.remove(...Object.keys(ThemeList));\n\t\tthis.htmlElement.classList.add(newValue);\n\t\tsetCookie(ATTRIBUTE_THEME_NAME, newValue);\n\t}\n\n\t@State() theme: ThemeList = ThemeList.auto\n\n\tprivate get storageValue() {\n\t\treturn getCookie(ATTRIBUTE_THEME_NAME)\n\t}\n\n\tprivate get htmlElement(): HTMLElement {\n\t\treturn document.documentElement\n\t}\n\n\tprivate get isSystemPrefersColorDark(): boolean {\n\t\treturn isWindow && window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.initDefaultState()\n\t\tthis.validateSize(this.size)\n\t}\n\n\tprivate initDefaultState() {\n\t\tconst options = Object.keys(ThemeList);\n\t\tlet currentState = this.storageValue;\n\t\tconst htmlState = this.htmlElement.getAttribute(ATTRIBUTE_THEME_NAME)\n\n\t\tif (currentState && options.includes(currentState)) {\n\t\t\tthis.theme = currentState as ThemeList;\n\t\t} else if (htmlState && options.includes(htmlState)) {\n\t\t\tthis.theme = htmlState as ThemeList;\n\t\t} else {\n\t\t\tthis.theme = ThemeList.auto;\n\t\t}\n\t}\n\n\tprivate setThemeState = (state: ThemeList) => {\n\t\tthis.theme = state;\n\n\t\tthis.govChange.emit({\n\t\t\tcomponent: ThemeSwitchClass.root,\n\t\t\tstate: this.theme,\n\t\t\tref: this.host\n\t\t})\n\t}\n\n\trender() {\n\t\tlet isDark = this.theme === ThemeList.dark;\n\t\tif (this.theme === ThemeList.auto) {\n\t\t\tisDark = this.isSystemPrefersColorDark;\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ThemeSwitchClass.root)}\n\t\t\t\t theme={isDark ? ThemeList.dark : ThemeList.light}\n\t\t\t\t size={this.size}>\n\t\t\t\t<button onClick={() => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark)}\n\t\t\t\t\t\taria-current={this.theme}\n\t\t\t\t\t\taria-label={isDark ? this.ariaLabelDark : this.ariaLabelLight}>\n\t\t\t\t\t<span>\n\t\t\t\t\t\t<span class={ThemeSwitchClass.indicator}>\n\t\t\t\t\t\t\t{ThemeList.light && <gov-icon name=\"sun\" class={ThemeSwitchClass.iconLight} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t{ThemeList.dark && <gov-icon name=\"moon\" class={ThemeSwitchClass.iconDark} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t{this.displayLabel && (isDark ? this.labelDark : this.labelLight)}\n\t\t\t\t\t</span>\n\t\t\t\t</button>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"wRAIO,MAAMA,EAAmBC,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,QAG/D,MAAMC,EAAmB,CAC/BC,KAAM,mBACNC,UAAW,8BACXC,UAAW,+BACXC,SAAU,+BAGJ,MAAMC,EAAuB,aCZpC,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,iBACAA,EAAA,cACA,EAJD,CAAYA,MAAS,KCCd,MAAMC,EAAY,CAACC,EAAcC,EAAeC,KACtD,IAAKC,EAAU,CACd,M,CAED,IAAIC,EAAU,GACd,GAAIF,EAAM,CACT,MAAMG,EAAO,IAAIC,KACjBD,EAAKE,QAAQF,EAAKG,UAAaN,EAAO,GAAK,GAAK,GAAK,KACrDE,EAAU,aAAeC,EAAKI,a,CAE/BC,SAASC,OAAS,GAAGX,KAAQY,mBAAmBX,KAASG,WAAiB,EAGpE,MAAMS,EAAab,IACzB,IAAKG,EAAU,CACd,OAAO,I,CAER,MAAMW,EAASd,EAAO,IACtB,MAAMe,EAAUL,SAASC,OAAOK,MAAM,KACtC,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAQG,OAAQD,IAAK,CACxC,IAAIN,EAASI,EAAQE,GAAGE,OACxB,GAAIR,EAAOS,WAAWN,GAAS,CAC9B,OAAOO,mBAAmBV,EAAOW,UAAUR,EAAOI,Q,EAGpD,OAAO,IAAI,E,MChBCK,EAAcC,EAAA,MAAAD,UAAAE,EAG1B,WAAAC,G,oEAiFQC,KAAAC,cAAiBC,IACxBF,KAAKG,MAAQD,EAEbF,KAAKI,UAAUC,KAAK,CACnBC,UAAWzC,EAAiBC,KAC5BoC,MAAOF,KAAKG,MACZI,IAAKP,KAAKQ,MACT,E,UA/E4C,I,kBAIc,M,oBAIK,uB,mBAIF,yB,gBAIN,a,eAIH,Y,WAmB3BrC,EAAUsC,KA/CrCT,KAAKU,EAAIC,EAAQX,KAAKQ,K,CAmCvB,YAAAI,CAAaC,GACZC,EAAapD,EAAkBmD,EAAUhD,EAAiBC,K,CAI3D,UAAAiD,CAAWF,GACVb,KAAKgB,YAAYC,aAAa/C,EAAsB2C,GACpDb,KAAKgB,YAAYE,UAAUC,UAAUC,OAAOC,KAAKlD,IACjD6B,KAAKgB,YAAYE,UAAUI,IAAIT,GAC/BzC,EAAUF,EAAsB2C,E,CAKjC,gBAAYU,GACX,OAAOrC,EAAUhB,E,CAGlB,eAAY8C,GACX,OAAOjC,SAASyC,e,CAGjB,4BAAYC,GACX,OAAOjD,GAAYkD,OAAOC,YAAcD,OAAOC,WAAW,gCAAgCC,O,CAG3F,iBAAAC,GACC7B,KAAK8B,mBACL9B,KAAKY,aAAaZ,KAAK+B,K,CAGhB,gBAAAD,GACP,MAAME,EAAUZ,OAAOC,KAAKlD,GAC5B,IAAI8D,EAAejC,KAAKuB,aACxB,MAAMW,EAAYlC,KAAKgB,YAAYmB,aAAajE,GAEhD,GAAI+D,GAAgBD,EAAQI,SAASH,GAAe,CACnDjC,KAAKG,MAAQ8B,C,MACP,GAAIC,GAAaF,EAAQI,SAASF,GAAY,CACpDlC,KAAKG,MAAQ+B,C,KACP,CACNlC,KAAKG,MAAQhC,EAAUsC,I,EAczB,MAAA4B,GACC,IAAIC,EAAStC,KAAKG,QAAUhC,EAAUoE,KACtC,GAAIvC,KAAKG,QAAUhC,EAAUsC,KAAM,CAClC6B,EAAStC,KAAKyB,wB,CAEf,OACCf,EAAC8B,EAAI,CAAAC,IAAA,2CAACC,MAAO1C,KAAKU,EAAEiC,QAAQ9E,EAAiBC,MAC1CqC,MAAOmC,EAASnE,EAAUoE,KAAOpE,EAAUyE,MAC3Cb,KAAM/B,KAAK+B,MACbrB,EAAA,UAAA+B,IAAA,2CAAQI,QAAS,IAAM7C,KAAKC,cAAcqC,EAASnE,EAAUyE,MAAQzE,EAAUoE,MAAK,eACpEvC,KAAKG,MAAK,aACZmC,EAAStC,KAAK8C,cAAgB9C,KAAK+C,gBAChDrC,EAAA,QAAA+B,IAAA,4CACC/B,EAAA,QAAA+B,IAAA,2CAAMC,MAAO7E,EAAiBE,WAC5BI,EAAUyE,OAASlC,EAAA,YAAA+B,IAAA,2CAAUpE,KAAK,MAAMqE,MAAO7E,EAAiBG,UAAWgF,KAAK,eAChF7E,EAAUoE,MAAQ7B,EAAA,YAAA+B,IAAA,2CAAUpE,KAAK,OAAOqE,MAAO7E,EAAiBI,SAAU+E,KAAK,gBAEhFhD,KAAKiD,eAAiBX,EAAStC,KAAKkD,UAAYlD,KAAKmD,c","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["ThemeSwitchSizes","pick","Sizes","ThemeSwitchClass","root","indicator","iconLight","iconDark","ATTRIBUTE_THEME_NAME","ThemeList","GovThemeSwitch","proxyCustomElement","H","constructor","this","setThemeState","state","theme","govChange","emit","component","ref","host","auto","h","govHost","validateSize","newValue","validateProp","watchTheme","htmlElement","setAttribute","classList","remove","Object","keys","add","setCookie","storageValue","getCookie","document","documentElement","isSystemPrefersColorDark","isWindow","window","matchMedia","matches","componentWillLoad","initDefaultState","size","options","currentState","htmlState","getAttribute","includes","render","isDark","dark","Host","key","class","classes","light","onClick","ariaLabelDark","ariaLabelLight","name","type","displayLabel","labelDark","labelLight"],"sources":["../../../packages/core/src/components/gov-theme-switch/constants.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.types.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const ThemeSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type ThemeSwitchSizesType = `${ValueOf<typeof ThemeSwitchSizes>}`\n\nexport const ThemeSwitchClass = {\n\troot: 'gov-theme-switch',\n\tindicator: 'gov-theme-switch__indicator',\n\ticonLight: 'gov-theme-switch__icon-light',\n\ticonDark: 'gov-theme-switch__icon-dark',\n}\n\nexport const ATTRIBUTE_THEME_NAME = 'data-theme'\n","import {GovBaseEvent} from \"../../types/event.types\";\n\nexport enum ThemeList {\n\tauto = 'auto',\n\tlight = 'light',\n\tdark = 'dark'\n}\n\nexport interface ThemeSwitchEvent extends GovBaseEvent {\n\tref: HTMLGovThemeSwitchElement;\n\tstate: ThemeList\n}\n\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {GovHost} from \"../../helpers/Dom/template.types\";\nimport {govHost} from \"../../helpers/Dom/template\";\nimport {ATTRIBUTE_THEME_NAME, ThemeSwitchClass, ThemeSwitchSizes, ThemeSwitchSizesType} from \"./constants\";\nimport {isWindow} from \"../../helpers/Dom/win\";\nimport {ThemeList, ThemeSwitchEvent} from \"./gov-theme-switch.types\";\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {getCookie, setCookie} from \"../../helpers/Dom/document\";\n\n@Component({\n\ttag: \"gov-theme-switch\",\n})\nexport class GovThemeSwitch {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovThemeSwitchElement\n\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: ThemeSwitchSizesType = \"m\"\n\t/**\n\t * Display switch label\n\t */\n\t@Prop({attribute: \"display-label\"}) readonly displayLabel? = false\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"aria-label-light\"}) readonly ariaLabelLight? = \"Přenout na tmavý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"aria-label-dark\"}) readonly ariaLabelDark? = \"Přepnout na světlý mód\"\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"label-light\"}) readonly labelLight? = \"Světlý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"label-dark\"}) readonly labelDark? = \"Tmavý mód\"\n\t/**\n\t * Called when the theme is changed by the user\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<ThemeSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ThemeSwitchSizes, newValue, ThemeSwitchClass.root)\n\t}\n\n\t@Watch(\"theme\")\n\twatchTheme(newValue: ThemeList): void {\n\t\tthis.htmlElement.setAttribute(ATTRIBUTE_THEME_NAME, newValue);\n\t\tthis.htmlElement.classList.remove(...Object.keys(ThemeList));\n\t\tthis.htmlElement.classList.add(newValue);\n\t\tsetCookie(ATTRIBUTE_THEME_NAME, newValue);\n\t}\n\n\t@State() theme: ThemeList = ThemeList.auto\n\n\tprivate get storageValue() {\n\t\treturn getCookie(ATTRIBUTE_THEME_NAME)\n\t}\n\n\tprivate get htmlElement(): HTMLElement {\n\t\treturn document.documentElement\n\t}\n\n\tprivate get isSystemPrefersColorDark(): boolean {\n\t\treturn isWindow && window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.initDefaultState()\n\t\tthis.validateSize(this.size)\n\t}\n\n\tprivate initDefaultState() {\n\t\tconst options = Object.keys(ThemeList);\n\t\tlet currentState = this.storageValue;\n\t\tconst htmlState = this.htmlElement.getAttribute(ATTRIBUTE_THEME_NAME)\n\n\t\tif (currentState && options.includes(currentState)) {\n\t\t\tthis.theme = currentState as ThemeList;\n\t\t} else if (htmlState && options.includes(htmlState)) {\n\t\t\tthis.theme = htmlState as ThemeList;\n\t\t} else {\n\t\t\tthis.theme = ThemeList.auto;\n\t\t}\n\t}\n\n\tprivate setThemeState = (state: ThemeList) => {\n\t\tthis.theme = state;\n\n\t\tthis.govChange.emit({\n\t\t\tcomponent: ThemeSwitchClass.root,\n\t\t\tstate: this.theme,\n\t\t\tref: this.host\n\t\t})\n\t}\n\n\trender() {\n\t\tlet isDark = this.theme === ThemeList.dark;\n\t\tif (this.theme === ThemeList.auto) {\n\t\t\tisDark = this.isSystemPrefersColorDark;\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ThemeSwitchClass.root)}\n\t\t\t\t theme={isDark ? ThemeList.dark : ThemeList.light}\n\t\t\t\t size={this.size}>\n\t\t\t\t<button onClick={() => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark)}\n\t\t\t\t\t\taria-current={this.theme}\n\t\t\t\t\t\taria-label={isDark ? this.ariaLabelDark : this.ariaLabelLight}>\n\t\t\t\t\t<span>\n\t\t\t\t\t\t<span class={ThemeSwitchClass.indicator}>\n\t\t\t\t\t\t\t{ThemeList.light && <gov-icon name=\"sun\" class={ThemeSwitchClass.iconLight} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t{ThemeList.dark && <gov-icon name=\"moon\" class={ThemeSwitchClass.iconDark} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t{this.displayLabel && (isDark ? this.labelDark : this.labelLight)}\n\t\t\t\t\t</span>\n\t\t\t\t</button>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"sSAIO,MAAMA,EAAmBC,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,QAG/D,MAAMC,EAAmB,CAC/BC,KAAM,mBACNC,UAAW,8BACXC,UAAW,+BACXC,SAAU,+BAGJ,MAAMC,EAAuB,aCZpC,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,iBACAA,EAAA,cACA,EAJD,CAAYA,MAAS,K,MCURC,EAAcC,EAAA,MAAAD,UAAAE,EAG1B,WAAAC,G,oEAiFQC,KAAAC,cAAiBC,IACxBF,KAAKG,MAAQD,EAEbF,KAAKI,UAAUC,KAAK,CACnBC,UAAWjB,EAAiBC,KAC5BY,MAAOF,KAAKG,MACZI,IAAKP,KAAKQ,MACT,E,UA/E4C,I,kBAIc,M,oBAIK,uB,mBAIF,yB,gBAIN,a,eAIH,Y,WAmB3Bb,EAAUc,KA/CrCT,KAAKU,EAAIC,EAAQX,KAAKQ,K,CAmCvB,YAAAI,CAAaC,GACZC,EAAa5B,EAAkB2B,EAAUxB,EAAiBC,K,CAI3D,UAAAyB,CAAWF,GACVb,KAAKgB,YAAYC,aAAavB,EAAsBmB,GACpDb,KAAKgB,YAAYE,UAAUC,UAAUC,OAAOC,KAAK1B,IACjDK,KAAKgB,YAAYE,UAAUI,IAAIT,GAC/BU,EAAU7B,EAAsBmB,E,CAKjC,gBAAYW,GACX,OAAOC,EAAU/B,E,CAGlB,eAAYsB,GACX,OAAOU,SAASC,e,CAGjB,4BAAYC,GACX,OAAOC,GAAYC,OAAOC,YAAcD,OAAOC,WAAW,gCAAgCC,O,CAG3F,iBAAAC,GACCjC,KAAKkC,mBACLlC,KAAKY,aAAaZ,KAAKmC,K,CAGhB,gBAAAD,GACP,MAAME,EAAUhB,OAAOC,KAAK1B,GAC5B,IAAI0C,EAAerC,KAAKwB,aACxB,MAAMc,EAAYtC,KAAKgB,YAAYuB,aAAa7C,GAEhD,GAAI2C,GAAgBD,EAAQI,SAASH,GAAe,CACnDrC,KAAKG,MAAQkC,C,MACP,GAAIC,GAAaF,EAAQI,SAASF,GAAY,CACpDtC,KAAKG,MAAQmC,C,KACP,CACNtC,KAAKG,MAAQR,EAAUc,I,EAczB,MAAAgC,GACC,IAAIC,EAAS1C,KAAKG,QAAUR,EAAUgD,KACtC,GAAI3C,KAAKG,QAAUR,EAAUc,KAAM,CAClCiC,EAAS1C,KAAK4B,wB,CAEf,OACClB,EAACkC,EAAI,CAAAC,IAAA,2CAACC,MAAO9C,KAAKU,EAAEqC,QAAQ1D,EAAiBC,MAC1Ca,MAAOuC,EAAS/C,EAAUgD,KAAOhD,EAAUqD,MAC3Cb,KAAMnC,KAAKmC,MACbzB,EAAA,UAAAmC,IAAA,2CAAQI,QAAS,IAAMjD,KAAKC,cAAcyC,EAAS/C,EAAUqD,MAAQrD,EAAUgD,MAAK,eACpE3C,KAAKG,MAAK,aACZuC,EAAS1C,KAAKkD,cAAgBlD,KAAKmD,gBAChDzC,EAAA,QAAAmC,IAAA,4CACCnC,EAAA,QAAAmC,IAAA,2CAAMC,MAAOzD,EAAiBE,WAC5BI,EAAUqD,OAAStC,EAAA,YAAAmC,IAAA,2CAAUO,KAAK,MAAMN,MAAOzD,EAAiBG,UAAW6D,KAAK,eAChF1D,EAAUgD,MAAQjC,EAAA,YAAAmC,IAAA,2CAAUO,KAAK,OAAON,MAAOzD,EAAiBI,SAAU4D,KAAK,gBAEhFrD,KAAKsD,eAAiBZ,EAAS1C,KAAKuD,UAAYvD,KAAKwD,c","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as t,h as s,F as i,d as o}from"./p-
|
|
1
|
+
import{p as e,H as t,h as s,F as i,d as o}from"./p-115b9cf3.js";import{p as n}from"./p-e0e2e9c1.js";import{S as a}from"./p-92f420cb.js";import{g as c}from"./p-ea7fdd2e.js";import{d as f}from"./p-7f0c6ba3.js";n(a,["_S","_M","_L"]);const r={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 d=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.orientation=undefined;this.noBorder=false;this.href=undefined;this.target=undefined;this.h=c(this.host)}render(){return s(o,{key:"c766f3d54f15e5a49a877fa2e67593d084f487f7",class:this.h.classes(r.root),size:this.size,orientation:this.orientation,clickable:this.href?true:null},s("slot",{key:"d07b106d781fead65a124c82d11ebe991fddfece",name:"icon"}),s("div",{key:"eeee0397b4384a473f3782750d1e04f0c8c7894d",class:r.content},s("div",{key:"f4081902e55b964b1ebbdd43f7b189f83dce8690",class:r.text},s("div",{key:"3bf8cf35db6f667de7c278786787e38b1392a5b2",class:r.title},this.href?s(i,null,s("a",{href:this.href,target:this.target,class:r.link,ref:e=>this.triggerRef=e},s("slot",{name:"title"})),s("span",{class:r.icon},s("gov-icon",{name:"chevron-right",type:"components"}))):s("slot",{name:"title"})),s("div",{key:"088f60531285a1457277352a011766f809d9280d",class:`${r.annotation} ${this.href?`${r.annotation}--padding`:""}`},s("slot",{key:"8d4a612e3aff054a60ec1030eb5a28903595ea6a"}))),s("slot",{key:"f7610d06a6d951b3a24f2e129342bb82c5e9d767",name:"button"})))}async getTriggerRef(){return this.triggerRef}get host(){return this}},[4,"gov-tile",{size:[513],orientation:[1],noBorder:[4,"no-border"],href:[513],target:[1],getTriggerRef:[64]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-tile","gov-icon"];e.forEach((e=>{switch(e){case"gov-tile":if(!customElements.get(e)){customElements.define(e,d)}break;case"gov-icon":if(!customElements.get(e)){f()}break}}))}l();const g=d;const h=l;export{g as GovTile,h as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["pick","Sizes","TileClass","root","link","content","text","title","icon","annotation","GovTile","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes","size","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\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const TileSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type TileSizesType = `${ValueOf<typeof TileSizes>}`\n\nexport const TileClass = {\n\troot: 'gov-tile',\n\tlink: 'gov-tile__link',\n\tcontent: 'gov-tile__content',\n\ttext: 'gov-tile__text',\n\ttitle: 'gov-tile__title',\n\ticon: 'gov-tile__icon',\n\tannotation: 'gov-tile__annotation',\n}\n","import {Component, Element, Fragment, h, Host, Method, Prop} from \"@stencil/core\"\nimport {TileClass, TileSizesType} from \"./constants\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {ButtonTargetType} from \"../gov-button/button/constants\"\n\n@Component({\n\ttag: \"gov-tile\",\n})\nexport class GovTile {\n\t@Element() host: HTMLGovTileElement\n\t/**\n\t * Tile’s size\n\t */\n\t@Prop({reflect: true}) readonly size?: TileSizesType = \"m\"\n\t/**\n\t * Style variation of the tile.\n\t */\n\t@Prop() readonly orientation: \"vertical\" | \"horizontal\"\n\t/**\n\t * Tiles border\n\t */\n\t@Prop({ attribute: 'no-border' }) readonly noBorder: boolean = false\n\t/**\n\t * Link on whole tile\n\t */\n\t@Prop({reflect: true}) readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target?: ButtonTargetType\n\tprivate triggerRef?: HTMLLinkElement | HTMLSpanElement\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(TileClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t orientation={this.orientation}\n\t\t\t\t clickable={this.href ? true : null}\n\t\t\t>\n\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t<div class={TileClass.content}>\n\t\t\t\t\t<div class={TileClass.text}>\n\t\t\t\t\t\t<div class={TileClass.title}>\n\t\t\t\t\t\t\t{this.href ? (\n\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\t\thref={this.href}\n\t\t\t\t\t\t\t\t\t\ttarget={this.target}\n\t\t\t\t\t\t\t\t\t\tclass={TileClass.link}\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLSpanElement)}>\n\t\t\t\t\t\t\t\t\t\t<slot name=\"title\"/>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t<span class={TileClass.icon}>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-right\" type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<slot name=\"title\"/>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class={`${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}`}>\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<slot name=\"button\"/>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getTriggerRef() {\n\t\treturn this.triggerRef\n\t}\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["pick","Sizes","TileClass","root","link","content","text","title","icon","annotation","GovTile","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes","size","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\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const TileSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type TileSizesType = `${ValueOf<typeof TileSizes>}`\n\nexport const TileClass = {\n\troot: 'gov-tile',\n\tlink: 'gov-tile__link',\n\tcontent: 'gov-tile__content',\n\ttext: 'gov-tile__text',\n\ttitle: 'gov-tile__title',\n\ticon: 'gov-tile__icon',\n\tannotation: 'gov-tile__annotation',\n}\n","import {Component, Element, Fragment, h, Host, Method, Prop} from \"@stencil/core\"\nimport {TileClass, TileSizesType} from \"./constants\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {ButtonTargetType} from \"../gov-button/button/constants\"\n\n@Component({\n\ttag: \"gov-tile\",\n})\nexport class GovTile {\n\t@Element() host: HTMLGovTileElement\n\t/**\n\t * Tile’s size\n\t */\n\t@Prop({reflect: true}) readonly size?: TileSizesType = \"m\"\n\t/**\n\t * Style variation of the tile.\n\t */\n\t@Prop() readonly orientation: \"vertical\" | \"horizontal\"\n\t/**\n\t * Tiles border\n\t */\n\t@Prop({ attribute: 'no-border' }) readonly noBorder: boolean = false\n\t/**\n\t * Link on whole tile\n\t */\n\t@Prop({reflect: true}) readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target?: ButtonTargetType\n\tprivate triggerRef?: HTMLLinkElement | HTMLSpanElement\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(TileClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t orientation={this.orientation}\n\t\t\t\t clickable={this.href ? true : null}\n\t\t\t>\n\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t<div class={TileClass.content}>\n\t\t\t\t\t<div class={TileClass.text}>\n\t\t\t\t\t\t<div class={TileClass.title}>\n\t\t\t\t\t\t\t{this.href ? (\n\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\t\thref={this.href}\n\t\t\t\t\t\t\t\t\t\ttarget={this.target}\n\t\t\t\t\t\t\t\t\t\tclass={TileClass.link}\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLSpanElement)}>\n\t\t\t\t\t\t\t\t\t\t<slot name=\"title\"/>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t<span class={TileClass.icon}>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-right\" type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<slot name=\"title\"/>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class={`${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}`}>\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<slot name=\"button\"/>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getTriggerRef() {\n\t\treturn this.triggerRef\n\t}\n}\n"],"mappings":"gNAIyBA,EAAKC,EAAO,CAAC,KAAM,KAAM,OAG3C,MAAMC,EAAY,CACxBC,KAAM,WACNC,KAAM,iBACNC,QAAS,oBACTC,KAAM,iBACNC,MAAO,kBACPC,KAAM,iBACNC,WAAY,wB,MCLAC,EAAOC,EAAA,MAAAD,UAAAE,EA0BnB,WAAAC,G,wCArBuD,I,yCAQQ,M,0CAc9DC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAGvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQpB,EAAUC,MACnCoB,KAAMT,KAAKS,KACXC,YAAaV,KAAKU,YAClBC,UAAWX,KAAKY,KAAO,KAAO,MAEhCX,EAAA,QAAAK,IAAA,2CAAMO,KAAK,SACXZ,EAAA,OAAAK,IAAA,2CAAKC,MAAOnB,EAAUG,SACrBU,EAAA,OAAAK,IAAA,2CAAKC,MAAOnB,EAAUI,MACrBS,EAAA,OAAAK,IAAA,2CAAKC,MAAOnB,EAAUK,OACpBO,KAAKY,KACLX,EAACa,EAAQ,KACRb,EAAA,KACCW,KAAMZ,KAAKY,KACXG,OAAQf,KAAKe,OACbR,MAAOnB,EAAUE,KACjB0B,IAAKC,GAAOjB,KAAKkB,WAAaD,GAC9BhB,EAAA,QAAMY,KAAK,WAEZZ,EAAA,QAAMM,MAAOnB,EAAUM,MACtBO,EAAA,YAAUY,KAAK,gBAAgBM,KAAK,iBAItClB,EAAA,QAAMY,KAAK,WAGbZ,EAAA,OAAAK,IAAA,2CAAKC,MAAO,GAAGnB,EAAUO,cAAcK,KAAKY,KAAO,GAAGxB,EAAUO,sBAAwB,MACvFM,EAAA,QAAAK,IAAA,+CAGFL,EAAA,QAAAK,IAAA,2CAAMO,KAAK,Y,CAUf,mBAAMO,GACL,OAAOpB,KAAKkB,U","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as s,H as t,h as e,d as o}from"./p-
|
|
1
|
+
import{p as s,H as t,h as e,d as o}from"./p-115b9cf3.js";import{g as c}from"./p-ea7fdd2e.js";const n={root:"gov-tiles"};const r=s(class s extends t{constructor(){super();this.__registerHost();this.columns=4;this.h=c(this.host)}render(){return e(o,{key:"18eb380e2fe62b54a90c5c758c62c985107c98d4",class:this.h.classes(n.root)},e("slot",{key:"9746ede80d0daa8776208afb5cef44b7adb0d7fc"}))}get host(){return this}},[4,"gov-tiles",{columns:[514]}]);function i(){if(typeof customElements==="undefined"){return}const s=["gov-tiles"];s.forEach((s=>{switch(s){case"gov-tiles":if(!customElements.get(s)){customElements.define(s,r)}break}}))}i();const a=r;const d=i;export{a as GovTiles,d as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-tiles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as s,c as e,h as o,d as i}from"./p-
|
|
1
|
+
import{p as t,H as s,c as e,h as o,d as i}from"./p-115b9cf3.js";import{v as a}from"./p-0b3574c2.js";import{C as c}from"./p-5aad3497.js";import{p as n}from"./p-e0e2e9c1.js";import{g as r}from"./p-ea7fdd2e.js";import{c as d}from"./p-cd6c2938.js";import{A as h,a as l,i as m}from"./p-33d5d1ed.js";import{d as f}from"./p-9b0f446d.js";import{d as b}from"./p-7f0c6ba3.js";const p=n(c,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var u;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(u||(u={}));const v={root:"gov-toast",hidden:"gov-toast--hidden",content:"gov-toast__content",icon:"gov-toast__icon",close:"gov-toast__close",timer:"gov-toast__timer"};const g=t(class t extends s{constructor(){super();this.__registerHost();this.govClose=e(this,"gov-close",7);this.color="primary";this.gravity="top";this.position="right";this.type="bold";this.time=0;this.closeLabel=undefined;this.accessibleCloseLabel=undefined;this.inheritedAttributes={};this.h=r(this.host);this.toastId=d("GovToast")}validateColor(t){a(p,t,v.root)}componentDidLoad(){this.attributeObserver=new h(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(l)}componentWillLoad(){this.validateColor(this.color);this.runTimer();this.inheritedAttributes=m(this.host)}disconnectedCallback(){clearTimeout(this.timeout);this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}runTimer(){if(this.isTimer){this.timeout=setTimeout((()=>{this.host.classList.add(v.hidden);setTimeout((()=>{this.destroy().catch();this.govClose.emit(this.toastId)}),600)}),this.time)}}render(){return o(i,{key:"632972ed59aac0d696428d6f32e6c99615ccf687",class:this.h.classes(v.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")&&o("span",{key:"da93a05f1976eeb4e356160fd0daea409b836a05",class:v.icon},o("slot",{key:"d374f5dea570b27643d960e65d0d5b2c710cb2b4",name:"icon"})),o("div",Object.assign({key:"1680aff627c809348ae7812ab72a34dbad33a368",class:v.content},this.inheritedAttributes,{"aria-live":"polite",role:"status"}),o("slot",{key:"8208b697e9fbefd964a17c6bfdb06d3a5ff9d2f2"})),o("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:v.close},this.closeLabel?this.closeLabel:o("gov-icon",{name:"x-lg",type:"components"})),o("div",{key:"a954d22ce3a0e06e2d17aa14903dae7264d9e03c",class:v.timer}))}onCloseHandler(){this.govClose.emit(this.toastId);this.destroy().catch()}get isBold(){return this.type==="bold"}get isTimer(){return Number.isInteger(this.time)&&this.time>0}async destroy(){clearTimeout(this.timeout);const t=document.querySelector(`[data-toast-id="${this.toastId}"]`);if(t){t.classList.add(v.hidden);if(typeof t.remove==="function"){t.remove()}}}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-toast",{color:[1],gravity:[1],position:[1],type:[1],time:[2],closeLabel:[1,"close-label"],accessibleCloseLabel:[1,"accessible-close-label"],inheritedAttributes:[32],destroy:[64]},undefined,{color:["validateColor"]}]);function y(){if(typeof customElements==="undefined"){return}const t=["gov-toast","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-toast":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-button":if(!customElements.get(t)){f()}break;case"gov-icon":if(!customElements.get(t)){b()}break}}))}y();const j=g;const k=y;export{j as GovToast,k as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-toast.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as s,h as e,d as i}from"./p-
|
|
1
|
+
import{p as t,H as s,h as e,d as i}from"./p-115b9cf3.js";import{T as o,a as n,b as c}from"./p-76d604c6.js";import{c as l}from"./p-ea7fdd2e.js";import{d as r}from"./p-9b0f446d.js";import{d as a}from"./p-7f0c6ba3.js";const f=t(class t extends s{constructor(){super();this.__registerHost();this.color=o.PRIMARY;this.size=n._M;this.persist=false;this.isVisible=false;this.parentId=null}visibleContent(t){clearTimeout(this.timeout);if(t===false){this.timeout=setTimeout((()=>{this.host.style.visibility="hidden"}),250)}else{this.host.style.visibility="visible"}}hideContent(){this.isVisible=false;this.persist=false;const t=document.getElementById(this.parentId);if(t){t.hide().catch()}}render(){return e(i,{key:"965998f4788ddd5dffd01b53073a001023cd9037",class:c.root,role:"tooltip",hidden:!this.isVisible,"aria-hidden":!l(this.isVisible),"is-visible":this.isVisible},e("slot",{key:"fe9d1ee13a11077947492341836f8f25c1f8881f"}),this.persist?e("gov-button",{"on-gov-click":this.hideContent.bind(this),color:this.color,size:this.size,type:"base"},e("gov-icon",{slot:"icon-start",name:"x-lg",type:"components"})):null)}get host(){return this}static get watchers(){return{isVisible:["visibleContent"]}}},[4,"gov-tooltip-content",{color:[1],size:[1],persist:[4],isVisible:[1028,"is-visible"],parentId:[1,"parent-id"]},undefined,{isVisible:["visibleContent"]}]);function d(){if(typeof customElements==="undefined"){return}const t=["gov-tooltip-content","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-tooltip-content":if(!customElements.get(t)){customElements.define(t,f)}break;case"gov-button":if(!customElements.get(t)){r()}break;case"gov-icon":if(!customElements.get(t)){a()}break}}))}d();const h=f;const m=d;export{h as GovTooltipContent,m as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-tooltip-content.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as i,h as s,d as e}from"./p-
|
|
1
|
+
import{p as t,H as i,h as s,d as e}from"./p-115b9cf3.js";import{v as o}from"./p-0b3574c2.js";import{T as h,a as n,b as a,c as r,d as c}from"./p-76d604c6.js";import{c as f}from"./p-cd6c2938.js";import{g as l}from"./p-ea7fdd2e.js";import{d}from"./p-e8ec030e.js";import{t as p}from"./p-26618322.js";const u=t(class t extends i{constructor(){super();this.__registerHost();this.tooltipContentId=undefined;this.tooltipId=undefined;this.color=h.PRIMARY;this.size=n._M;this.position="right";this.message=undefined;this.identifier=undefined;this.icon=undefined;this.persist=false;this.h=l(this.host);this.tooltipId=f("GovTooltip");this.tooltipContentId=f("GovContentTooltip")}validateColor(t){o(h,t,c.root)}validateSize(t){o(n,t,c.root)}validatePosition(t){o(r,t,c.root)}rerenderMessage(){this.createContentWrapper()}connectedCallback(){this.createContentWrapper();this.registerListeners()}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.validatePosition(this.position)}componentDidUpdate(){this.createContentWrapper()}disconnectedCallback(){this.removeContent()}createContentWrapper(){var t;if(this.tooltipContent){if(this.message){this.tooltipContent.innerHTML=this.message}else if(this.insideContent){this.tooltipContent.innerHTML=this.insideContent.innerHTML}return}let i;if(this.insideContent){i=this.insideContent}else{i=d().createElement(a.root);i.innerHTML=this.message}i.setAttribute("id",(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId);i.setAttribute("parent-id",this.tooltipId);i.setAttribute("color",this.color);i.setAttribute("size",this.size);d().body.appendChild(i)}get tooltipContent(){var t;return d().body.querySelector(`#${(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId}`)}get insideContent(){return this.host.querySelector(a.root)}registerListeners(){this.host.addEventListener("click",(t=>{t.preventDefault();this.persist=true;if(this.tooltipContent){this.tooltipContent.setAttribute("persist","true")}this.showTooltip()}));this.host.addEventListener("mouseenter",(t=>{t.preventDefault();this.showTooltip()}));this.host.addEventListener("mouseleave",(t=>{t.preventDefault();if(this.persist===false){this.hideTooltip()}}))}verifyPositionSpace(){const t=12;const i=window.innerWidth-(window.innerWidth-document.documentElement.clientWidth);const s=this.host.getBoundingClientRect();const e=this.host.offsetWidth;const o=this.host.offsetHeight;const h=this.tooltipContent.offsetWidth;const n=this.tooltipContent.offsetHeight;const a={left:s.left+document.documentElement.scrollLeft,top:s.top+document.documentElement.scrollTop};const c=a.left+t+s.width+h<=i;const f=a.left>h;if(this.position===r.LEFT||this.position===r.RIGHT){this.tooltipContent.style.top=a.top-(n-o)/2+"px";if(c===false&&f===false){this.position=r.TOP;this.tooltipContent.setAttribute("position",r.TOP)}if(f&&c===false&&this.position===r.RIGHT){this.position=r.LEFT}if(c&&f===false&&this.position===r.LEFT){this.position=r.RIGHT}}if(this.position===r.RIGHT){this.tooltipContent.setAttribute("position",r.RIGHT);this.tooltipContent.style.left=a.left+t+s.width+"px"}if(this.position===r.LEFT){this.tooltipContent.setAttribute("position",r.LEFT);this.tooltipContent.style.left=a.left-(h+t)+"px"}if(this.position===r.TOP||this.position===r.BOTTOM){if(h>e){let s=a.left-(h-e)/2;const o=s<0;const n=s+h>i;if(o&&n){this.tooltipContent.style.width="auto";this.tooltipContent.style.left=t+"px";this.tooltipContent.style.right=t+"px"}else{if(o){s=t}if(n){s=s-(i-(s+h+t))*-1}this.tooltipContent.style.left=s+"px"}}else{const t=a.left+(e-h)/2;this.tooltipContent.style.left=t+"px"}}if(this.position===r.TOP){this.tooltipContent.setAttribute("position",r.TOP);this.tooltipContent.style.top=a.top-(n+t)+"px"}if(this.position===r.BOTTOM){this.tooltipContent.setAttribute("position",r.BOTTOM);this.tooltipContent.style.top=a.top+(o+t)+"px"}this.tooltipContent.style.opacity="1"}showTooltip(){if(this.tooltipContent){this.tooltipContent.style.opacity="0";this.tooltipContent.hidden=false;this.tooltipContent.setAttribute("is-visible","true");p((()=>{this.verifyPositionSpace()}))}}hideTooltip(){if(this.tooltipContent){this.tooltipContent.setAttribute("is-visible","false");this.tooltipContent.setAttribute("persist","false");this.tooltipContent.removeAttribute("style")}}removeContent(){const t=document.getElementById(this.tooltipContentId);if(t){t.remove()}}render(){var t;return s(e,{key:"2e96da1a9d7afd70abb4ffd2e979210cc179680e",id:this.tooltipId,class:this.h.classes(c.root),position:this.position},s("span",{key:"9c9c06d716556faa56f5ba9a952ea867c5533b2b",role:"button",tabindex:0,onKeyPress:()=>this.showTooltip(),onBlur:()=>{if(this.persist===false){this.hideTooltip()}},"aria-describedby":(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId},s("slot",{key:"29549049c0bfbe311980aa6a630ff9eff8e35f40"})))}async show(){this.showTooltip()}async hide(){this.persist=false;this.hideTooltip()}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"],position:["validatePosition"],message:["rerenderMessage"]}}},[4,"gov-tooltip",{color:[1],size:[1],position:[1025],message:[1],identifier:[1],icon:[516],persist:[32],show:[64],hide:[64]},undefined,{color:["validateColor"],size:["validateSize"],position:["validatePosition"],message:["rerenderMessage"]}]);function m(){if(typeof customElements==="undefined"){return}const t=["gov-tooltip"];t.forEach((t=>{switch(t){case"gov-tooltip":if(!customElements.get(t)){customElements.define(t,u)}break}}))}m();const v=u;const b=m;export{v as GovTooltip,b as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-tooltip.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as s,H as t,c as
|
|
1
|
+
import{p as s,H as t,c as i,h as e,d as a}from"./p-115b9cf3.js";import{v as o}from"./p-0b3574c2.js";import{W as n,c}from"./p-c61a5830.js";import{c as d}from"./p-cd6c2938.js";import{g as h,b as l,t as r}from"./p-ea7fdd2e.js";import{d as f}from"./p-7f0c6ba3.js";var m;(function(s){s["DIV"]="div";s["BUTTON"]="button"})(m||(m={}));const p=s(class s extends t{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change",7);this.hydrated=false;this.color="primary";this.size="m";this.identifier=undefined;this.collapsible=false;this.disabled=false;this.isExpanded=false;this.h=h(this.host);this.triggerId=d("GovWizardItem");this.contentId=d("GovWizardContent")}validateColor(s){o(c,s,n.root)}emmitChange(){this.govChange.emit({expanded:this.isExpanded,component:n.root})}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const s=this.identifier||this.triggerId;const t=this.collapsible?m.BUTTON:m.DIV;const i=this.h.hasSlot("prefix")&&e("span",{key:"abdd15cfa834f393b29335ea2bda28cd1dfeef46",class:n.prefix},e("slot",{key:"123c495809091879ab3d985b9bcb4a22005e4b75",name:"prefix"}));return e(a,{key:"463384ea408a20992bf6f30f142fce7146fabf53",class:this.h.classes(n.root),"is-expanded":this.isExpanded,color:this.color,size:this.size,role:"listitem",collapsible:this.collapsible,hydrated:this.hydrated},e("div",{key:"0b60621607cd8c48fe05fd1755f9f7b8514d425d",class:n.header},i,this.collapsible?e(t,{id:s,class:this.h.classes(n.label),"aria-expanded":l(this.isExpanded),"aria-controls":this.contentId,disabled:this.disabled,"aria-disabled":r(this.disabled),onClick:s=>{s.preventDefault();s.stopPropagation();this.toggle()}},e("span",{class:n.headline},e("slot",{name:"headline"}),this.collapsible&&e("gov-icon",{class:n.chevron,name:"chevron-down",type:"components"})),e("slot",{name:"annotation"})):e(t,{class:this.h.classes(n.label)},e("span",{class:n.headline},e("slot",{name:"headline"}),this.collapsible&&e("gov-icon",{class:n.chevron,name:"chevron-down",type:"components"})),e("slot",{name:"annotation"}))),this.collapsible?e("div",{class:n.content,id:this.contentId,"aria-hidden":l(!this.isExpanded),hidden:!this.isExpanded,"aria-labelledby":s},e("slot",null)):e("div",{class:n.content,"aria-hidden":l(!this.isExpanded),hidden:!this.isExpanded},e("slot",null)))}async open(){this.isExpanded=true;this.emmitChange()}async close(){this.isExpanded=false;this.emmitChange()}async toggle(){this.isExpanded=!this.isExpanded;this.emmitChange()}async currentState(){return this.isExpanded}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-wizard-item",{color:[1],size:[1],identifier:[1],collapsible:[4],disabled:[4],isExpanded:[1028,"is-expanded"],open:[64],close:[64],toggle:[64],currentState:[64]},undefined,{color:["validateColor"]}]);function b(){if(typeof customElements==="undefined"){return}const s=["gov-wizard-item","gov-icon"];s.forEach((s=>{switch(s){case"gov-wizard-item":if(!customElements.get(s)){customElements.define(s,p)}break;case"gov-icon":if(!customElements.get(s)){f()}break}}))}b();const u=p;const v=b;export{u as GovWizardItem,v as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-wizard-item.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as s,c as t,h as a,d as i}from"./p-
|
|
1
|
+
import{p as e,H as s,c as t,h as a,d as i}from"./p-115b9cf3.js";import{v as c}from"./p-0b3574c2.js";import{W as o,a as d,b as r}from"./p-c61a5830.js";import{g as n}from"./p-ea7fdd2e.js";import{a as h}from"./p-80dad64b.js";import{c as l}from"./p-e8ec030e.js";import{d as m}from"./p-e0e2e9c1.js";const f=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.hydrated=false;this.size="m";this.wcagLabel=undefined;this.wcagLabelledBy=undefined;this.h=n(this.host)}validateSize(e){c(r,e,d.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(o.root).forEach((e=>{e.setAttribute("size",this.size)}))}async componentDidRender(){if(l()){await m(500);await this.validateWcag()}}connectedCallback(){this.hydrated=true}render(){return a(i,{key:"d75ce2d5499cef41ac6b316f313b0c5c446d0b55",class:this.h.classes(d.root),role:"list",size:this.size,hydrated:this.hydrated},a("slot",{key:"ea151639d058fa4e50427a893fa167969a453d39"}))}async validateWcag(){h(this.wcagLabel,this.wcagLabelledBy,d.root)}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-wizard",{size:[1],wcagLabel:[1,"wcag-label"],wcagLabelledBy:[1,"wcag-labelled-by"],validateWcag:[64]},undefined,{size:["validateSize"]}]);function p(){if(typeof customElements==="undefined"){return}const e=["gov-wizard"];e.forEach((e=>{switch(e){case"gov-wizard":if(!customElements.get(e)){customElements.define(e,f)}break}}))}p();const u=f;const b=p;export{u as GovWizard,b as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-wizard.js.map
|
package/dist/components/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{g as getAssetPath,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-
|
|
1
|
+
export{g as getAssetPath,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-115b9cf3.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as s,h as t,d as a}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as e,H as s,h as t,d as a}from"./p-115b9cf3.js";import{A as c}from"./p-07165d99.js";import{v as i}from"./p-80dad64b.js";import{c as o}from"./p-e8ec030e.js";import{d as n}from"./p-e0e2e9c1.js";import{g as r}from"./p-ea7fdd2e.js";const d=e(class e extends s{constructor(){super();this.__registerHost();this.label=undefined;this.wcagLabel=undefined;this.h=r(this.host)}async componentDidRender(){if(o()){await n(500);await this.validateWcag()}}render(){return t(a,{key:"01d6046e8da3b76924fa9c3124cec31e5b81d4c5",class:this.h.classes(c.root)},this.label?t("p",{class:c.label},this.label):null,t("div",{key:"88936d984563a5815b90cba8b1b5ee0f71ee3460",class:c.list,role:"list","aria-label":this.wcagLabel},t("slot",{key:"99c6427772c71388f027595a1fdf13ed4956a474"})))}async validateWcag(){i(this.wcagLabel,"wcag-label",c.root)}get host(){return this}},[4,"gov-attachments",{label:[1],wcagLabel:[1,"wcag-label"],validateWcag:[64]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-attachments"];e.forEach((e=>{switch(e){case"gov-attachments":if(!customElements.get(e)){customElements.define(e,d)}break}}))}l();export{d as G,l as d};
|
|
2
|
+
//# sourceMappingURL=p-03ad4e0f.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as t,c as i,h as s,d as a}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as e,H as t,c as i,h as s,d as a}from"./p-115b9cf3.js";import{v as o}from"./p-0b3574c2.js";import{g as c}from"./p-ea7fdd2e.js";import{p as n}from"./p-e0e2e9c1.js";import{S as h}from"./p-92f420cb.js";import{a as d,c as r}from"./p-44a8a668.js";import{c as f}from"./p-cd6c2938.js";import{p as l}from"./p-016bbea6.js";import{i as b,A as p,a as m}from"./p-33d5d1ed.js";import{d as u}from"./p-7f0c6ba3.js";const g=n(h,["_XS","_S","_M"]);var v;(function(e){e["SOLID"]="solid";e["OUTLINED"]="outlined"})(v||(v={}));var y;(function(e){e["A"]="a";e["SPAN"]="span";e["BUTTON"]="button"})(y||(y={}));const k={root:"gov-chip",inner:"gov-chip__inner",hasRight:"gov-chip--has-right",hasLeft:"gov-chip--has-left"};const j=e(class e extends t{constructor(){super();this.__registerHost();this.govClick=i(this,"gov-click",7);this.hydrated=false;this.disabled=false;this.href=undefined;this.target=undefined;this.iconStart=undefined;this.iconEnd=undefined;this.size=g._M;this.tag="span";this.color=d.PRIMARY;this.type=undefined;this.focusable=true;this.identifier=undefined;this.inheritedAttributes={};this.h=c(this.host);this.chipId=f("GovChip")}validateColor(e){o(d,e,k.root)}validateSize(e){o(r,e,k.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.inheritedAttributes=b(this.host)}componentDidLoad(){this.attributeObserver=new p(this.host,((e,t)=>{this.onAriaAttributeChange(e,t)}));this.attributeObserver.startObserving(m)}disconnectedCallback(){this.attributeObserver.stopObserving()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(e,t){this.host.removeAttribute(e);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[e]:t})}render(){const e=this.href?y.A:this.tag;const t=e==y.BUTTON?y.BUTTON:undefined;const i=l(this.iconStart);const o=l(this.iconEnd);return s(a,{key:"35148b293a6ae608eb1c4e0db06bbfff8b9fdca7",class:this.h.classes([k.root,this.h.hasSlot("right")?k.hasRight:undefined,this.h.hasSlot("left")?k.hasLeft:undefined]),disabled:this.disabled,href:this.href,color:this.color,type:this.type,size:this.size,hoverable:e==y.A||e==y.BUTTON,hydrated:this.hydrated},s(e,Object.assign({key:"01ba70f91c8be428f91ca4744d093e408dd5acbe",class:"element",href:this.href,target:this.target,ref:e=>this.triggerRef=e,onClick:this.onClickHandler.bind(this),tabindex:(this.h.hasSlot("left")||this.h.hasSlot("right")||this.disabled)&&!this.focusable?"-1":"0",id:this.identifier||this.chipId,type:t},this.inheritedAttributes,{"aria-disabled":this.disabled}),s("slot",{key:"28acde76889a8b529dae69b1e55f5f3db51b8e25",name:"left"}),s("slot",{key:"1c8fc171656757933a0bb0568a335ee11c09ce6f",name:"icon-start"},i&&s("gov-icon",{key:"b2e91ec6724f3ad50433c10597c44f50826dfcfe",type:i.type,name:i.name})),s("slot",{key:"0a37763084f9a0b7269efe6cc6ebd71161890861"}),s("slot",{key:"5b37c8b8350ed2ead0a85d81ed0ba22295b3679e",name:"icon-end"},o&&s("gov-icon",{key:"22dfae0ca565fddaa10e6179dc7d0ef38839764f",type:o.type,name:o.name})),s("slot",{key:"fe177d273f38e81cc9ffc686c62e05bd466c1fe8",name:"right"})))}onClickHandler(e){e.stopPropagation();if(this.disabled===false&&this.tag===y.BUTTON){this.govClick.emit(e)}}async geRef(){return this.triggerRef}async setFocus(){this.triggerRef.focus()}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[4,"gov-chip",{disabled:[516],href:[1],target:[1],iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[1],tag:[1],color:[1],type:[513],focusable:[4],identifier:[1],inheritedAttributes:[32],geRef:[64],setFocus:[64]},undefined,{color:["validateColor"],size:["validateSize"]}]);function C(){if(typeof customElements==="undefined"){return}const e=["gov-chip","gov-icon"];e.forEach((e=>{switch(e){case"gov-chip":if(!customElements.get(e)){customElements.define(e,j)}break;case"gov-icon":if(!customElements.get(e)){u()}break}}))}C();export{j as G,C as d};
|
|
2
|
+
//# sourceMappingURL=p-0679f3d6.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const e="core";const t={allRenderFn:true,appendChildSlotFix:true,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:true,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:true,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:true,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:true,formAssociated:false,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",invisiblePrehydration:false,isDebug:false,isDev:false,isTesting:false,lazyLoad:false,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:true,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:false,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:false,taskQueue:true,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var r=Object.defineProperty;var l=(e,t)=>{for(var l in t)r(e,l,{get:t[l],enumerable:true})};var n={isDev:false,isBrowser:true,isServer:false,isTesting:false};var s=new WeakMap;var i=e=>s.get(e);var o=(e,t)=>{const r={t:0,$hostElement$:e,l:t,i:new Map};{r.o=new Promise((e=>r.u=e));e["s-p"]=[];e["s-rc"]=[]}return s.set(e,r)};var a=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var u=new Map;var c=(e,t,r)=>{const l=e.v.replace(/-/g,"_");const n=e.p;if(!n){return void 0}const s=u.get(n);if(s){return s[l]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${n}.entry.js${""}`).then((e=>{{u.set(n,e)}return e[l]}),f)};var v=new Map;var d="r";var p="o";var $="s";var h="t";var m="s-id";var y="sty-id";var b="c-id";var w="slot-fb{display:contents}slot-fb[hidden]{display:none}";var g="http://www.w3.org/1999/xlink";var S=typeof window!=="undefined"?window:{};var k=S.document||{head:{}};var C=S.HTMLElement||class{};var x={t:0,$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,l)=>e.addEventListener(t,r,l),rel:(e,t,r,l)=>e.removeEventListener(t,r,l),ce:(e,t)=>new CustomEvent(e,t)};var j=t.shadowDom;var D=e=>Promise.resolve(e);var O=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var R=false;var L=[];var A=[];var F=(e,t)=>r=>{e.push(r);if(!R){R=true;if(t&&x.t&4){T(M)}else{x.raf(M)}}};var E=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var M=()=>{E(L);{E(A);if(R=L.length>0){x.raf(M)}}};var T=e=>D().then(e);var U=F(A,true);var P=e=>{const t=new URL(e,x.$);return t.origin!==S.location.origin?t.href:t.pathname};var W=e=>x.$=e;var N={};var I=e=>e!=null;var _=e=>{e=typeof e;return e==="object"||e==="function"};function B(e){var t,r,l;return(l=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?l:void 0}var H={};l(H,{err:()=>q,map:()=>z,ok:()=>Q,unwrap:()=>K,unwrapErr:()=>V});var Q=e=>({isOk:true,isErr:false,value:e});var q=e=>({isOk:false,isErr:true,value:e});function z(e,t){if(e.isOk){const r=t(e.value);if(r instanceof Promise){return r.then((e=>Q(e)))}else{return Q(r)}}if(e.isErr){const t=e.value;return q(t)}throw"should never get here"}var K=e=>{if(e.isOk){return e.value}else{throw e.value}};var V=e=>{if(e.isErr){return e.value}else{throw e.value}};var X=(e,t="")=>{{return()=>{}}};var G=(e,t)=>{{return()=>{}}};var J=(e,t,...r)=>{let l=null;let n=null;let s=null;let i=false;let o=false;const a=[];const f=t=>{for(let r=0;r<t.length;r++){l=t[r];if(Array.isArray(l)){f(l)}else if(l!=null&&typeof l!=="boolean"){if(i=typeof e!=="function"&&!_(l)){l=String(l)}if(i&&o){a[a.length-1].h+=l}else{a.push(i?Y(null,l):l)}o=i}}};f(r);if(t){if(t.key){n=t.key}if(t.name){s=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,a,te)}const u=Y(e,null);u.m=t;if(a.length>0){u.S=a}{u.k=n}{u.C=s}return u};var Y=(e,t)=>{const r={t:0,j:e,h:t,D:null,S:null};{r.m=null}{r.k=null}{r.C=null}return r};var Z={};var ee=e=>e&&e.j===Z;var te={forEach:(e,t)=>e.map(re).forEach(t),map:(e,t)=>e.map(re).map(t).map(le)};var re=e=>({vattrs:e.m,vchildren:e.S,vkey:e.k,vname:e.C,vtag:e.j,vtext:e.h});var le=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return J(e.vtag,t,...e.vchildren||[])}const t=Y(e.vtag,e.vtext);t.m=e.vattrs;t.S=e.vchildren;t.k=e.vkey;t.C=e.vname;return t};var ne=(e,t,r,l)=>{const n=X("hydrateClient",t);const s=e.shadowRoot;const i=[];const o=[];const a=null;const f=l.O=Y(t,null);if(!x.R){ie(k.body,x.R=new Map)}e[m]=r;e.removeAttribute(m);se(f,i,o,a,e,e,r);i.map((e=>{const r=e.L+"."+e.A;const l=x.R.get(r);const n=e.D;if(l&&j&&l["s-en"]===""){l.parentNode.insertBefore(n,l.nextSibling)}if(!s){n["s-hn"]=t;if(l){n["s-ol"]=l;n["s-ol"]["s-nr"]=n}}x.R.delete(r)}));n()};var se=(e,t,r,l,n,s,i)=>{let o;let a;let f;let u;if(s.nodeType===1){o=s.getAttribute(b);if(o){a=o.split(".");if(a[0]===i||a[0]==="0"){f={t:0,L:a[0],A:a[1],F:a[2],M:a[3],j:s.tagName.toLowerCase(),D:s,m:null,S:null,k:null,C:null,h:null};t.push(f);s.removeAttribute(b);if(!e.S){e.S=[]}e.S[f.M]=f;e=f;if(l&&f.F==="0"){l[f.M]=f.D}}}if(s.shadowRoot){for(u=s.shadowRoot.childNodes.length-1;u>=0;u--){se(e,t,r,l,n,s.shadowRoot.childNodes[u],i)}}for(u=s.childNodes.length-1;u>=0;u--){se(e,t,r,l,n,s.childNodes[u],i)}}else if(s.nodeType===8){a=s.nodeValue.split(".");if(a[1]===i||a[1]==="0"){o=a[0];f={t:0,L:a[1],A:a[2],F:a[3],M:a[4],D:s,m:null,S:null,k:null,C:null,j:null,h:null};if(o===h){f.D=s.nextSibling;if(f.D&&f.D.nodeType===3){f.h=f.D.textContent;t.push(f);s.remove();if(!e.S){e.S=[]}e.S[f.M]=f;if(l&&f.F==="0"){l[f.M]=f.D}}}else if(f.L===i){if(o===$){f.j="slot";if(a[5]){s["s-sn"]=f.C=a[5]}else{s["s-sn"]=""}s["s-sr"]=true;r.push(f);if(!e.S){e.S=[]}e.S[f.M]=f}else if(o===d){{n["s-cr"]=s;s["s-cn"]=true}}}}}else if(e&&e.j==="style"){const t=Y(null,s.textContent);t.D=s;t.M="0";e.S=[t]}};var ie=(e,t)=>{if(e.nodeType===1){let r=0;if(e.shadowRoot){for(;r<e.shadowRoot.childNodes.length;r++){ie(e.shadowRoot.childNodes[r],t)}}for(r=0;r<e.childNodes.length;r++){ie(e.childNodes[r],t)}}else if(e.nodeType===8){const r=e.nodeValue.split(".");if(r[0]===p){t.set(r[1]+"."+r[2],e);e.nodeValue="";e["s-en"]=r[3]}}};var oe=(e,t)=>{if(e!=null&&!_(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var ae=e=>e;var fe=(e,t,r)=>{const l=ae(e);return{emit:e=>ue(l,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}};var ue=(e,t,r)=>{const l=x.ce(t,r);e.dispatchEvent(l);return l};var ce=new WeakMap;var ve=(e,t,r)=>{let l=v.get(e);if(O&&r){l=l||new CSSStyleSheet;if(typeof l==="string"){l=t}else{l.replaceSync(t)}}else{l=t}v.set(e,l)};var de=(e,t,r)=>{var l;const n=$e(t);const s=v.get(n);e=e.nodeType===11?e:k;if(s){if(typeof s==="string"){e=e.head||e;let r=ce.get(e);let i;if(!r){ce.set(e,r=new Set)}if(!r.has(n)){if(e.host&&(i=e.querySelector(`[${y}="${n}"]`))){i.innerHTML=s}else{i=k.createElement("style");i.innerHTML=s;const r=(l=x.T)!=null?l:B(k);if(r!=null){i.setAttribute("nonce",r)}const n=!(t.t&1)||t.t&1&&e.nodeName!=="HEAD";if(n){e.insertBefore(i,e.querySelector("link"))}}if(t.t&4){i.innerHTML+=w}if(r){r.add(n)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return n};var pe=e=>{const t=e.l;const r=e.$hostElement$;const l=X("attachStyles",t.v);de(r.getRootNode(),t);l()};var $e=(e,t)=>"sc-"+e.v;var he=(e,t,r,l,n,s)=>{if(r!==l){let i=a(e,t);let o=t.toLowerCase();if(t==="class"){const t=e.classList;const n=ye(r);const s=ye(l);t.remove(...n.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!n.includes(e))))}else if(t==="style"){{for(const t in r){if(!l||l[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in l){if(!r||l[t]!==r[t]){if(t.includes("-")){e.style.setProperty(t,l[t])}else{e.style[t]=l[t]}}}}else if(t==="key");else if(t==="ref"){if(l){l(e)}}else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(S,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(r||l){const n=t.endsWith(be);t=t.replace(we,"");if(r){x.rel(e,t,r,n)}if(l){x.ael(e,t,l,n)}}}else{const a=_(l);if((i||a&&l!==null)&&!n){try{if(!e.tagName.includes("-")){const n=l==null?"":l;if(t==="list"){i=false}else if(r==null||e[t]!=n){e[t]=n}}else{e[t]=l}}catch(e){}}let f=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){t=o;f=true}}if(l==null||l===false){if(l!==false||e.getAttribute(t)===""){if(f){e.removeAttributeNS(g,t)}else{e.removeAttribute(t)}}}else if((!i||s&4||n)&&!a){l=l===true?"":l;if(f){e.setAttributeNS(g,t,l)}else{e.setAttribute(t,l)}}}}};var me=/\s/;var ye=e=>!e?[]:e.split(me);var be="Capture";var we=new RegExp(be+"$");var ge=(e,t,r)=>{const l=t.D.nodeType===11&&t.D.host?t.D.host:t.D;const n=e&&e.m||N;const s=t.m||N;{for(const e of Se(Object.keys(n))){if(!(e in s)){he(l,e,n[e],void 0,r,t.t)}}}for(const e of Se(Object.keys(s))){he(l,e,n[e],s[e],r,t.t)}};function Se(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var ke;var Ce;var xe;var je=false;var De=false;var Oe=false;var Re=false;var Le=(e,r,l,n)=>{var s;const i=r.S[l];let o=0;let a;let f;let u;if(!je){Oe=true;if(i.j==="slot"){i.t|=i.S?2:1}}if(i.h!==null){a=i.D=k.createTextNode(i.h)}else if(i.t&1){a=i.D=k.createTextNode("")}else{a=i.D=k.createElement(!je&&t.slotRelocation&&i.t&2?"slot-fb":i.j);{ge(null,i,Re)}const r=a.getRootNode();const l=!r.querySelector("body");if(!l&&t.scoped&&I(ke)&&a["s-si"]!==ke){a.classList.add(a["s-si"]=ke)}if(i.S){for(o=0;o<i.S.length;++o){f=Le(e,i,o);if(f){a.appendChild(f)}}}}a["s-hn"]=xe;{if(i.t&(2|1)){a["s-sr"]=true;a["s-cr"]=Ce;a["s-sn"]=i.C||"";a["s-rf"]=(s=i.m)==null?void 0:s.ref;u=e&&e.S&&e.S[l];if(u&&u.j===i.j&&e.D){{Ae(e.D)}}}}return a};var Ae=e=>{x.t|=1;const t=e.closest(xe.toLowerCase());if(t!=null){const r=Array.from(t.childNodes).find((e=>e["s-cr"]));const l=Array.from(e.childNodes);for(const e of r?l.reverse():l){if(e["s-sh"]!=null){qe(t,e,r!=null?r:null);e["s-sh"]=void 0;Oe=true}}}x.t&=~1};var Fe=(e,r)=>{x.t|=1;const l=Array.from(e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===xe){l.push(t)}}}for(let e=l.length-1;e>=0;e--){const t=l[e];if(t["s-hn"]!==xe&&t["s-ol"]){qe(We(t),t,Pe(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;Oe=true}if(r){Fe(t,r)}}x.t&=~1};var Ee=(e,t,r,l,n,s)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e;let o;for(;n<=s;++n){if(l[n]){o=Le(null,r,n);if(o){l[n].D=o;qe(i,o,Pe(t))}}}};var Me=(e,t,r)=>{for(let l=t;l<=r;++l){const t=e[l];if(t){const e=t.D;Qe(t);if(e){{De=true;if(e["s-ol"]){e["s-ol"].remove()}else{Fe(e,true)}}e.remove()}}}};var Te=(e,t,r,l,n=false)=>{let s=0;let i=0;let o=0;let a=0;let f=t.length-1;let u=t[0];let c=t[f];let v=l.length-1;let d=l[0];let p=l[v];let $;let h;while(s<=f&&i<=v){if(u==null){u=t[++s]}else if(c==null){c=t[--f]}else if(d==null){d=l[++i]}else if(p==null){p=l[--v]}else if(Ue(u,d,n)){Ne(u,d,n);u=t[++s];d=l[++i]}else if(Ue(c,p,n)){Ne(c,p,n);c=t[--f];p=l[--v]}else if(Ue(u,p,n)){if(u.j==="slot"||p.j==="slot"){Fe(u.D.parentNode,false)}Ne(u,p,n);qe(e,u.D,c.D.nextSibling);u=t[++s];p=l[--v]}else if(Ue(c,d,n)){if(u.j==="slot"||p.j==="slot"){Fe(c.D.parentNode,false)}Ne(c,d,n);qe(e,c.D,u.D);c=t[--f];d=l[++i]}else{o=-1;{for(a=s;a<=f;++a){if(t[a]&&t[a].k!==null&&t[a].k===d.k){o=a;break}}}if(o>=0){h=t[o];if(h.j!==d.j){$=Le(t&&t[i],r,o)}else{Ne(h,d,n);t[o]=void 0;$=h.D}d=l[++i]}else{$=Le(t&&t[i],r,i);d=l[++i]}if($){{qe(We(u.D),$,Pe(u.D))}}}}if(s>f){Ee(e,l[v+1]==null?null:l[v+1].D,r,l,i,v)}else if(i>v){Me(t,s,f)}};var Ue=(e,t,r=false)=>{if(e.j===t.j){if(e.j==="slot"){if("A"in e&&r&&e.D.nodeType!==8){return false}return e.C===t.C}if(!r){return e.k===t.k}return true}return false};var Pe=e=>e&&e["s-ol"]||e;var We=e=>(e["s-ol"]?e["s-ol"]:e).parentNode;var Ne=(e,r,l=false)=>{const n=r.D=e.D;const s=e.S;const i=r.S;const o=r.j;const a=r.h;let f;if(a===null){{if(o==="slot"&&!je){if(e.C!==r.C){r.D["s-sn"]=r.C||"";Ae(r.D.parentElement)}}else{ge(e,r,Re)}}if(s!==null&&i!==null){Te(n,s,r,i,l)}else if(i!==null){if(e.h!==null){n.textContent=""}Ee(n,null,r,i,0,i.length-1)}else if(!l&&t.updatable&&s!==null){Me(s,0,s.length-1)}}else if(f=n["s-cr"]){f.parentNode.textContent=a}else if(e.h!==a){n.data=a}};var Ie=e=>{const t=e.childNodes;for(const e of t){if(e.nodeType===1){if(e["s-sr"]){const r=e["s-sn"];e.hidden=false;for(const l of t){if(l!==e){if(l["s-hn"]!==e["s-hn"]||r!==""){if(l.nodeType===1&&(r===l.getAttribute("slot")||r===l["s-sn"])||l.nodeType===3&&r===l["s-sn"]){e.hidden=true;break}}else{if(l.nodeType===1||l.nodeType===3&&l.textContent.trim()!==""){e.hidden=true;break}}}}}Ie(e)}}};var _e=[];var Be=e=>{let t;let r;let l;for(const n of e.childNodes){if(n["s-sr"]&&(t=n["s-cr"])&&t.parentNode){r=t.parentNode.childNodes;const e=n["s-sn"];for(l=r.length-1;l>=0;l--){t=r[l];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==n["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==n["s-hn"])){if(He(t,e)){let r=_e.find((e=>e.U===t));De=true;t["s-sn"]=t["s-sn"]||e;if(r){r.U["s-sh"]=n["s-hn"];r.P=n}else{t["s-sh"]=n["s-hn"];_e.push({P:n,U:t})}if(t["s-sr"]){_e.map((e=>{if(He(e.U,t["s-sn"])){r=_e.find((e=>e.U===t));if(r&&!e.P){e.P=r.P}}}))}}else if(!_e.some((e=>e.U===t))){_e.push({U:t})}}}}if(n.nodeType===1){Be(n)}}};var He=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var Qe=e=>{{e.m&&e.m.ref&&e.m.ref(null);e.S&&e.S.map(Qe)}};var qe=(e,t,r)=>{const l=e==null?void 0:e.insertBefore(t,r);return l};var ze=(e,t,r=false)=>{var l,n,s,i;const o=e.$hostElement$;const a=e.l;const f=e.O||Y(null,null);const u=ee(t)?t:J(null,null,t);xe=o.tagName;if(a.W){u.m=u.m||{};a.W.map((([e,t])=>u.m[t]=o[e]))}if(r&&u.m){for(const e of Object.keys(u.m)){if(o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){u.m[e]=o[e]}}}u.j=null;u.t|=4;e.O=u;u.D=f.D=o;je=j;{Ce=o["s-cr"];De=false}Ne(f,u,r);{x.t|=1;if(Oe){Be(u.D);for(const e of _e){const t=e.U;if(!t["s-ol"]){const e=k.createTextNode("");e["s-nr"]=t;qe(t.parentNode,t["s-ol"]=e,t)}}for(const e of _e){const t=e.U;const o=e.P;if(o){const e=o.parentNode;let r=o.nextSibling;if(r&&r.nodeType===1){let s=(l=t["s-ol"])==null?void 0:l.previousSibling;while(s){let l=(n=s["s-nr"])!=null?n:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){l=l.nextSibling;while(l===t||(l==null?void 0:l["s-sr"])){l=l==null?void 0:l.nextSibling}if(!l||!l["s-nr"]){r=l;break}}s=s.previousSibling}}if(!r&&e!==t.parentNode||t.nextSibling!==r){if(t!==r){qe(e,t,r);if(t.nodeType===1){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](t)}else{if(t.nodeType===1){if(r){t["s-ih"]=(i=t.hidden)!=null?i:false}t.hidden=true}}}}if(De){Ie(u.D)}x.t&=~1;_e.length=0}Ce=void 0};var Ke=(e,t)=>{if(t&&!e.N&&t["s-p"]){t["s-p"].push(new Promise((t=>e.N=t)))}};var Ve=(e,t)=>{{e.t|=16}if(e.t&4){e.t|=512;return}Ke(e,e.I);const r=()=>Xe(e,t);return U(r)};var Xe=(e,t)=>{const r=e.$hostElement$;const l=X("scheduleUpdate",e.l.v);const n=r;if(!n){throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{s=rt(n,"componentWillLoad")}}else{{s=rt(n,"componentWillUpdate")}}{s=Ge(s,(()=>rt(n,"componentWillRender")))}l();return Ge(s,(()=>Ye(e,n,t)))};var Ge=(e,t)=>Je(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Je=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Ye=async(e,t,r)=>{var l;const n=e.$hostElement$;const s=X("update",e.l.v);const i=n["s-rc"];if(r){pe(e)}const o=X("render",e.l.v);{Ze(e,t,n,r)}if(i){i.map((e=>e()));n["s-rc"]=void 0}o();s();{const t=(l=n["s-p"])!=null?l:[];const r=()=>et(e);if(t.length===0){r()}else{Promise.all(t).then(r);e.t|=4;t.length=0}}};var Ze=(e,t,r,l)=>{try{t=t.render();{e.t&=~16}{e.t|=2}{{{ze(e,t,l)}}}}catch(t){f(t,e.$hostElement$)}return null};var et=e=>{const t=e.l.v;const r=e.$hostElement$;const l=X("postUpdate",t);const n=r;const s=e.I;{rt(n,"componentDidRender")}if(!(e.t&64)){e.t|=64;{lt(r)}{rt(n,"componentDidLoad")}l();{e.u(r);if(!s){tt()}}}else{{rt(n,"componentDidUpdate")}l()}{if(e.N){e.N();e.N=void 0}if(e.t&512){T((()=>Ve(e,false)))}e.t&=~(4|512)}};var tt=t=>{{lt(k.documentElement)}T((()=>ue(S,"appload",{detail:{namespace:e}})))};var rt=(e,t,r)=>{if(e&&e[t]){try{return e[t](r)}catch(e){f(e)}}return void 0};var lt=e=>{var r;return e.classList.add((r=t.hydratedSelectorName)!=null?r:"hydrated")};var nt=(e,t)=>i(e).i.get(t);var st=(e,t,r,l)=>{const n=i(e);const s=e;const o=n.i.get(t);const a=n.t;const u=s;r=oe(r,l._[t][0]);const c=Number.isNaN(o)&&Number.isNaN(r);const v=r!==o&&!c;if(v){n.i.set(t,r);{if(l.B&&a&128){const e=l.B[t];if(e){e.map((e=>{try{u[e](r,o,t)}catch(e){f(e,s)}}))}}if((a&(2|16))===2){if(u.componentShouldUpdate){if(u.componentShouldUpdate(r,o,t)===false){return}}Ve(n,false)}}}};var it=(e,t,r)=>{var l,n;const s=e.prototype;if(t._||(t.B||e.watchers)){if(e.watchers&&!t.B){t.B=e.watchers}const r=Object.entries((l=t._)!=null?l:{});r.map((([e,[r]])=>{if(r&31||r&32){Object.defineProperty(s,e,{get(){return nt(this,e)},set(r){st(this,e,r,t)},configurable:true,enumerable:true})}}));{const l=new Map;s.attributeChangedCallback=function(e,r,n){x.jmp((()=>{var o;const a=l.get(e);if(this.hasOwnProperty(a)){n=this[a];delete this[a]}else if(s.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==n){return}else if(a==null){const l=i(this);const s=l==null?void 0:l.t;if(s&&!(s&8)&&s&128&&n!==r){const l=this;const s=l;const i=(o=t.B)==null?void 0:o[e];i==null?void 0:i.forEach((t=>{if(s[t]!=null){s[t].call(s,n,r,e)}}))}return}this[a]=n===null&&typeof this[a]==="boolean"?false:n}))};e.observedAttributes=Array.from(new Set([...Object.keys((n=t.B)!=null?n:{}),...r.filter((([e,t])=>t[0]&15)).map((([e,r])=>{var n;const s=r[1]||e;l.set(s,e);if(r[0]&512){(n=t.W)==null?void 0:n.push([e,s])}return s}))]))}}return e};var ot=async(e,t,r,l)=>{let n;if((t.t&32)===0){t.t|=32;const l=r.p;if(l){const e=c(r);if(e&&"then"in e){const t=G();n=await e;t()}else{n=e}if(!n){throw new Error(`Constructor for "${r.v}#${t.H}" was not found`)}if(!n.isProxied){{r.B=n.watchers}it(n,r);n.isProxied=true}const l=X("createInstance",r.v);{t.t|=8}try{new n(t)}catch(e){f(e)}{t.t&=~8}{t.t|=128}l()}else{n=e.constructor;const r=e.localName;customElements.whenDefined(r).then((()=>t.t|=128))}if(n&&n.style){let e;if(typeof n.style==="string"){e=n.style}const t=$e(r);if(!v.has(t)){const l=X("registerStyles",r.v);ve(t,e,!!(r.t&1));l()}}}const s=t.I;const i=()=>Ve(t,true);if(s&&s["s-rc"]){s["s-rc"].push(i)}else{i()}};var at=e=>{};var ft=e=>{if((x.t&1)===0){const t=i(e);const r=t.l;const l=X("connectedCallback",r.v);if(!(t.t&1)){t.t|=1;let l;{l=e.getAttribute(m);if(l){ne(e,r.v,l,t)}}if(!l){if(r.t&(4|8)){ut(e)}}{let r=e;while(r=r.parentNode||r.host){if(r.nodeType===1&&r.hasAttribute("s-id")&&r["s-p"]||r["s-p"]){Ke(t,t.I=r);break}}}if(r._){Object.entries(r._).map((([t,[r]])=>{if(r&31&&e.hasOwnProperty(t)){const r=e[t];delete e[t];e[t]=r}}))}{ot(e,t,r)}}else{if(t==null?void 0:t.q);else if(t==null?void 0:t.o){t.o.then((()=>at()))}}l()}};var ut=e=>{const t=e["s-cr"]=k.createComment("");t["s-cn"]=true;qe(e,t,e.firstChild)};var ct=async e=>{if((x.t&1)===0){i(e)}};var vt=(e,t)=>{const r={t:t[0],v:t[1]};{r._=t[2]}{r.B=e.B}{r.W=[]}const l=e.prototype.connectedCallback;const n=e.prototype.disconnectedCallback;Object.assign(e.prototype,{__registerHost(){o(this,r)},connectedCallback(){i(this);ft(this);if(l){l.call(this)}},disconnectedCallback(){ct(this);if(n){n.call(this)}},__attachShadow(){{this.shadowRoot=this}}});e.is=r.v;return it(e,r)};var dt=(e,t)=>t;var pt=e=>x.T=e;var $t=e=>Object.assign(x,e);export{n as B,dt as F,C as H,pt as a,$t as b,fe as c,Z as d,P as g,J as h,vt as p,W as s};
|
|
3
|
+
//# sourceMappingURL=p-115b9cf3.js.map
|