@gov-design-system-ce/components 4.1.3-BETA-5 → 4.1.3-BETA-7
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 +179 -34
- 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 +113 -5
- 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.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-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-file.js.map +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-link.js.map +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +1 -1
- package/dist/components/gov-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-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-c024f757.js → p-2237d3a5.js} +2 -2
- 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-88b35bda.js → p-7d808445.js} +2 -2
- package/dist/components/{p-454ce5f2.js → p-80dad64b.js} +2 -2
- package/dist/components/p-88b2667e.js +2 -0
- package/dist/components/p-88b2667e.js.map +1 -0
- package/dist/components/{p-080d5d41.js → p-8ee6f2f3.js} +2 -2
- package/dist/components/{p-438d5e0f.js → p-94002301.js} +2 -2
- package/dist/components/{p-61453dbf.js → p-9992e831.js} +2 -2
- package/dist/components/p-bfce6f99.js +2 -0
- package/dist/components/p-bfce6f99.js.map +1 -0
- package/dist/components/{p-b642e485.js → p-c67a25ad.js} +2 -2
- package/dist/components/p-e8ec030e.js +2 -0
- package/dist/components/{p-ceafa242.js.map → p-e8ec030e.js.map} +1 -1
- package/dist/components/{p-7007bd16.js → p-f4ca9c18.js} +2 -2
- 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-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-f14252eb.entry.js +2 -0
- package/dist/core/p-f14252eb.entry.js.map +1 -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 +179 -34
- 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 +205 -57
- package/dist/hydrate/index.mjs +205 -57
- package/dist/types/components/gov-icon/gov-icon.d.ts +12 -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-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/components/p-df29e931.js +0 -2
- package/dist/components/p-df29e931.js.map +0 -1
- 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-af2bc7cf.entry.js +0 -2
- package/dist/core/p-af2bc7cf.entry.js.map +0 -1
- 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/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-d8135701.js.map → p-0b3574c2.js.map} +0 -0
- /package/dist/components/{p-c024f757.js.map → p-2237d3a5.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-88b35bda.js.map → p-7d808445.js.map} +0 -0
- /package/dist/components/{p-454ce5f2.js.map → p-80dad64b.js.map} +0 -0
- /package/dist/components/{p-080d5d41.js.map → p-8ee6f2f3.js.map} +0 -0
- /package/dist/components/{p-438d5e0f.js.map → p-94002301.js.map} +0 -0
- /package/dist/components/{p-61453dbf.js.map → p-9992e831.js.map} +0 -0
- /package/dist/components/{p-b642e485.js.map → p-c67a25ad.js.map} +0 -0
- /package/dist/components/{p-7007bd16.js.map → p-f4ca9c18.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,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as o,h as s,d as t}from"./p-
|
|
1
|
+
import{p as e,H as o,h as s,d as t}from"./p-115b9cf3.js";import{p as a}from"./p-e0e2e9c1.js";import{S as i}from"./p-92f420cb.js";import{g as c,p as n}from"./p-ea7fdd2e.js";import{v as d}from"./p-0b3574c2.js";import{d as r}from"./p-384c7f2a.js";import{d as m}from"./p-88b2667e.js";const f=a(i,["_S","_M","_L"]);const p={root:"gov-loading",content:"gov-loading__content",icon:"gov-loading__icon"};const g=e(class e extends o{constructor(){super();this.__registerHost();this.size="m";this.h=c(this.host)}validateSize(e){d(f,e,p.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(t,{key:"4c33339523674f2f2415dfb326131858de9eecf9",class:this.h.classes(p.root),size:this.size},s("div",{key:"8c25628dd3072fd89665ccfedb9596383181b13d",class:p.content},s("gov-icon",{key:"a9969874350b5316c61a94b12d41a0130eeded0f",class:n([p.icon,"gov-spin-animation"]),name:"loader",type:"components"}),s("slot",{key:"14c716ecc352a0d947a6e3d932d2ab9075dedb97"})),s("gov-backdrop",{key:"507610e5a61b34be2166fb4a30539a134dc1b262",inverse:true}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-loading",{size:[1]},undefined,{size:["validateSize"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-loading","gov-backdrop","gov-icon"];e.forEach((e=>{switch(e){case"gov-loading":if(!customElements.get(e)){customElements.define(e,g)}break;case"gov-backdrop":if(!customElements.get(e)){r()}break;case"gov-icon":if(!customElements.get(e)){m()}break}}))}l();const b=g;const v=l;export{b as GovLoading,v as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-loading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LoadingSizes","pick","Sizes","LoadingClass","root","content","icon","GovLoading","proxyCustomElement","H","constructor","this","h","govHost","host","validateSize","newValue","validateProp","componentWillLoad","size","render","Host","key","class","classes","prepareClasses","name","type","inverse"],"sources":["../../../packages/core/src/components/gov-loading/loading/constants.ts","../../../packages/core/src/components/gov-loading/loading/gov-loading.tsx"],"sourcesContent":["import {pick} from \"../../../utils/utils\";\nimport {Sizes} from \"../../../core/constants/sizes\";\nimport {ValueOf} from \"../../../types/interfaces\";\n\nexport const LoadingSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type LoadingSizesType = `${ValueOf<typeof LoadingSizes>}`\n\nexport const LoadingClass = {\n\troot: 'gov-loading',\n\tcontent: 'gov-loading__content',\n\ticon: 'gov-loading__icon',\n}\n","import {Component, Element, h, Host, Prop, Watch} from \"@stencil/core\"\nimport {LoadingClass, LoadingSizes, LoadingSizesType} from \"./constants\"\nimport { govHost, prepareClasses } from \"../../../helpers/Dom/template\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport {validateProp} from \"../../../helpers/Validate/props\";\n\n@Component({\n\ttag: \"gov-loading\",\n})\nexport class GovLoading {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLoadingElement\n\t/**\n\t * Loading size\n\t */\n\t@Prop() readonly size?: LoadingSizesType = 'm'\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(LoadingSizes, newValue, LoadingClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LoadingClass.root)} size={this.size}>\n\t\t\t\t<div class={LoadingClass.content}>\n\t\t\t\t\t<gov-icon\n\t\t\t\t\t\tclass={prepareClasses([LoadingClass.icon, \"gov-spin-animation\"])}\n\t\t\t\t\t\tname=\"loader\"\n\t\t\t\t\t\ttype=\"components\"\n\t\t\t\t\t/>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t\t<gov-backdrop inverse={true} />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["LoadingSizes","pick","Sizes","LoadingClass","root","content","icon","GovLoading","proxyCustomElement","H","constructor","this","h","govHost","host","validateSize","newValue","validateProp","componentWillLoad","size","render","Host","key","class","classes","prepareClasses","name","type","inverse"],"sources":["../../../packages/core/src/components/gov-loading/loading/constants.ts","../../../packages/core/src/components/gov-loading/loading/gov-loading.tsx"],"sourcesContent":["import {pick} from \"../../../utils/utils\";\nimport {Sizes} from \"../../../core/constants/sizes\";\nimport {ValueOf} from \"../../../types/interfaces\";\n\nexport const LoadingSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type LoadingSizesType = `${ValueOf<typeof LoadingSizes>}`\n\nexport const LoadingClass = {\n\troot: 'gov-loading',\n\tcontent: 'gov-loading__content',\n\ticon: 'gov-loading__icon',\n}\n","import {Component, Element, h, Host, Prop, Watch} from \"@stencil/core\"\nimport {LoadingClass, LoadingSizes, LoadingSizesType} from \"./constants\"\nimport { govHost, prepareClasses } from \"../../../helpers/Dom/template\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport {validateProp} from \"../../../helpers/Validate/props\";\n\n@Component({\n\ttag: \"gov-loading\",\n})\nexport class GovLoading {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLoadingElement\n\t/**\n\t * Loading size\n\t */\n\t@Prop() readonly size?: LoadingSizesType = 'm'\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(LoadingSizes, newValue, LoadingClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LoadingClass.root)} size={this.size}>\n\t\t\t\t<div class={LoadingClass.content}>\n\t\t\t\t\t<gov-icon\n\t\t\t\t\t\tclass={prepareClasses([LoadingClass.icon, \"gov-spin-animation\"])}\n\t\t\t\t\t\tname=\"loader\"\n\t\t\t\t\t\ttype=\"components\"\n\t\t\t\t\t/>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t\t<gov-backdrop inverse={true} />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"wRAIO,MAAMA,EAAeC,EAAKC,EAAO,CAAC,KAAM,KAAM,OAG9C,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,uBACTC,KAAM,qB,MCDMC,EAAUC,EAAA,MAAAD,UAAAE,EAGtB,WAAAC,G,wCAQ2C,IAP1CC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAUvB,YAAAC,CAAaC,GACZC,EAAajB,EAAcgB,EAAUb,EAAaC,K,CAGnD,iBAAAc,GACCP,KAAKI,aAAaJ,KAAKQ,K,CAGxB,MAAAC,GACC,OACCR,EAACS,EAAI,CAAAC,IAAA,2CAACC,MAAOZ,KAAKC,EAAEY,QAAQrB,EAAaC,MAAOe,KAAMR,KAAKQ,MAC1DP,EAAA,OAAAU,IAAA,2CAAKC,MAAOpB,EAAaE,SACxBO,EAAA,YAAAU,IAAA,2CACCC,MAAOE,EAAe,CAACtB,EAAaG,KAAM,uBAC1CoB,KAAK,SACLC,KAAK,eAENf,EAAA,QAAAU,IAAA,8CAEDV,EAAA,gBAAAU,IAAA,2CAAcM,QAAS,O","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,H as s,h as t,d as o}from"./p-115b9cf3.js";import{v as c}from"./p-0b3574c2.js";import{C as a}from"./p-5aad3497.js";import{p as r}from"./p-e0e2e9c1.js";import{g as n}from"./p-ea7fdd2e.js";r(a,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var i;(function(e){e["BOLD"]="bold";e["SUBTLE"]="subtle"})(i||(i={}));const f={root:"gov-message",content:"gov-message__content"};const l=e(class e extends s{constructor(){super();this.__registerHost();this.color=a.PRIMARY;this.type="subtle";this.h=n(this.host)}validateColor(e){c(a,e,f.root)}render(){return t(o,{key:"b9e06c8f94940edf9d2c60119c35ec32baa23fc9",class:this.h.classes(f.root),color:this.color,type:this.type,role:"status"},this.h.hasSlot("icon")&&t("slot",{key:"d478f414de8eaa276cc867ae5bb325c1090b08ac",name:"icon"}),t("div",{key:"d5a113ca4061b445c583fb1b4f22fff594570b1e",class:f.content},t("slot",{key:"e9be2f4ff3603c5f77d46e042455174e6ccfb7be"})))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-message",{color:[1],type:[1]},undefined,{color:["validateColor"]}]);function m(){if(typeof customElements==="undefined"){return}const e=["gov-message"];e.forEach((e=>{switch(e){case"gov-message":if(!customElements.get(e)){customElements.define(e,l)}break}}))}m();const d=l;const b=m;export{d as GovMessage,b as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-message.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as i,d as a}from"./p-
|
|
1
|
+
import{p as t,H as e,c as s,h as i,d as a}from"./p-115b9cf3.js";import{F as o}from"./p-1c1d0bbe.js";import{v as n}from"./p-0b3574c2.js";import{S as l}from"./p-92f420cb.js";import{C as r}from"./p-5aad3497.js";import{p as c}from"./p-e0e2e9c1.js";import{g as h,p,t as d}from"./p-ea7fdd2e.js";import{c as g}from"./p-cd6c2938.js";import{c as m}from"./p-ded281e6.js";import{A as u,a as f,i as v}from"./p-33d5d1ed.js";import{d as b}from"./p-9992e831.js";import{d as j}from"./p-7d808445.js";import{d as y}from"./p-88b2667e.js";const S=c(l,["_S","_M"]);const P=c(r,["PRIMARY","NEUTRAL"]);var z;(function(t){t["BUTTON"]="button";t["SELECT"]="select"})(z||(z={}));const _={root:"gov-pagination",list:"gov-pagination__list",item:"gov-pagination__item",itemArrow:"gov-pagination__item--arrow",itemMore:"gov-pagination__item--more",itemSelect:"gov-pagination__item--select",inner:"gov-pagination__inner",arrow:"gov-pagination__arrow"};function k(t,e=1,s=10,i=10){const a=Math.ceil(t/s);if(e<1){e=1}else if(e>a){e=a}let o,n;if(a<=i){o=1;n=a}else{const t=Math.floor(i/2);const s=Math.ceil(i/2)-1;if(e<=t){o=1;n=i}else if(e+s>=a){o=a-i+1;n=a}else{o=e-t;n=e+s}}const l=(e-1)*s;const r=Math.min(l+s-1,t-1);const c=Array.from(Array(n+1-o).keys()).map((t=>o+t));return{totalItems:t,currentPage:e,pageSize:s,totalPages:a,startPage:o,endPage:n,startIndex:l,endIndex:r,pages:c}}const A=t(class t extends e{constructor(){super();this.__registerHost();this.govPage=s(this,"gov-page",7);this.type="button";this.current=1;this.total=0;this.selectIdentifier=undefined;this.size="m";this.color="primary";this.pageSize=10;this.maxPages=5;this.link=undefined;this.accessibleSelectLabel="Vybrat stranu";this.accessiblePageLabel="Strana";this.labelPrev="Přejít o stranu zpět";this.labelStart="Přejít na začátek";this.labelNext="Přejít na další stranu";this.labelEnd="Přejít na konec";this.pagination=undefined;this.inheritedAttributes={};this.h=h(this.host);this.pageSelectId=g("GovPageSelect");this.selectId=g("GovSelect")}validateType(t){n(z,t,_.root)}validateSize(t){n(S,t,_.root)}validateColor(t){n(P,t,_.root)}recalculate(){this.recalculatePagination(this.current)}componentDidLoad(){this.attributeObserver=new u(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(f)}componentWillLoad(){this.recalculatePagination(this.current);this.validateSize(this.size);this.validateColor(this.color);this.inheritedAttributes=v(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}recalculatePagination(t){this.pagination=k(this.total,t,this.pageSize,this.maxPages)}isActivePageClass(t,e){if(this.pagination.currentPage===e){return t+" is-active"}else{return t}}prepareLinkUrl(t){if(this.link){return String(this.link).replace("{PAGE}",String(t))}return undefined}resetSelectValue(){if(this.spreadSelectRef){this.spreadSelectRef.getRef().then((t=>{t.value="..."}))}}render(){const t=(t,e,s)=>{const a=t===-1;const o=d(this.pagination.currentPage===t?true:undefined);return i("gov-button",{href:this.prepareLinkUrl(t),color:this.color,size:this.size,type:"base",disabled:a,"on-gov-click":e=>this.onClickHandler(e,t),"aria-label":s?s:t>-1?`${this.accessiblePageLabel} ${t}`:undefined,"aria-current":o,class:_.inner,focusable:true},e)};return i(a,{class:this.h.classes(_.root),type:this.type,color:this.color,size:this.size},i("nav",Object.assign({},this.inheritedAttributes),i("ul",{class:_.list},i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.currentPage>1?1:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-left",type:"components"}),this.labelStart)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.startPage<this.pagination.currentPage?this.pagination.currentPage-1:-1,i("gov-icon",{class:_.arrow,name:"chevron-left",type:"components"}),this.labelPrev)),this.type=="select"?i("li",{class:p([_.item,_.itemSelect])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,"on-gov-change":this.onSelectHandler.bind(this)},m(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:this.pagination.currentPage===t},t)))))):i(o,null,this.pagination.pages.map((e=>i("li",{class:this.isActivePageClass(_.item,e)},t(e,e,"")))),this.pagination.totalPages?i("li",{class:p([_.item,_.itemMore])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,ref:t=>this.spreadSelectRef=t,"on-gov-change":this.onSelectHandler.bind(this)},i("option",{selected:true,hidden:true},"..."),m(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:false},t)))))):null),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.currentPage+1:-1,i("gov-icon",{class:_.arrow,name:"chevron-right",type:"components"}),this.labelNext)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.totalPages:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-right",type:"components"}),this.labelEnd)))))}onClickHandler(t,e){t.stopPropagation();this.recalculatePagination(e);this.govPage.emit({component:_.root,pagination:this.pagination})}onSelectHandler(t){t.stopPropagation();const e=t.detail.value;const s=parseInt(e);this.resetSelectValue();if(isNaN(s)===false){this.recalculatePagination(s);if(this.link){window.location.href=this.prepareLinkUrl(s)}else{this.govPage.emit({component:_.root,pagination:this.pagination})}}}get host(){return this}static get watchers(){return{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}}},[0,"gov-pagination",{type:[1],current:[2],total:[2],selectIdentifier:[1,"select-identifier"],size:[1],color:[1],pageSize:[2,"page-size"],maxPages:[2,"max-pages"],link:[1],accessibleSelectLabel:[1,"accessible-select-label"],accessiblePageLabel:[1,"accessible-page-label"],labelPrev:[1,"label-prev"],labelStart:[1,"label-start"],labelNext:[1,"label-next"],labelEnd:[1,"label-end"],pagination:[32],inheritedAttributes:[32]},undefined,{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}]);function x(){if(typeof customElements==="undefined"){return}const t=["gov-pagination","gov-button","gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-pagination":if(!customElements.get(t)){customElements.define(t,A)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-select":if(!customElements.get(t)){j()}break;case"gov-icon":if(!customElements.get(t)){y()}break}}))}x();const w=A;const E=x;export{w as GovPagination,E as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-pagination.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-350e060c.js";const t=o;const c=s;export{t as GovSkeleton,c as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-skeleton.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as t,h as s,d as i}from"./p-
|
|
1
|
+
import{p as e,H as t,h as s,d as i}from"./p-115b9cf3.js";import{v as a}from"./p-0b3574c2.js";import{S as o}from"./p-92f420cb.js";import{p as n}from"./p-e0e2e9c1.js";import{g as r}from"./p-ea7fdd2e.js";const c=n(o,["_2XS","_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL"]);var p;(function(e){e["NONE"]="none";e["SM"]="sm";e["MD"]="md";e["LG"]="lg";e["XL"]="xl"})(p||(p={}));const d={root:"gov-spacer"};const f=e(class e extends t{constructor(){super();this.__registerHost();this.size=undefined;this.breakpoint=undefined;this.h=r(this.host)}validateSize(e){a(c,e,d.root)}validateBreakpoint(e){a(p,e,d.root)}componentWillLoad(){this.validateSize(this.size);this.validateBreakpoint(this.breakpoint)}render(){return s(i,{key:"23aedb7f3b112a356319aba076eedf9a4743e25b",class:this.h.classes(d.root),size:this.size,breakpoint:this.breakpoint})}get host(){return this}static get watchers(){return{size:["validateSize"],breakpoint:["validateBreakpoint"]}}},[0,"gov-spacer",{size:[1],breakpoint:[1]},undefined,{size:["validateSize"],breakpoint:["validateBreakpoint"]}]);function m(){if(typeof customElements==="undefined"){return}const e=["gov-spacer"];e.forEach((e=>{switch(e){case"gov-spacer":if(!customElements.get(e)){customElements.define(e,f)}break}}))}m();const h=f;const l=m;export{h as GovSpacer,l as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-spacer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as t,c as s,h as a,d as c}from"./p-
|
|
1
|
+
import{p as e,H as t,c as s,h as a,d as c}from"./p-115b9cf3.js";import{v as o}from"./p-0b3574c2.js";import{S as i,c as d}from"./p-a521c59a.js";import{c as r}from"./p-cd6c2938.js";import{g as n}from"./p-ea7fdd2e.js";const f=e(class e extends t{constructor(){super();this.__registerHost();this.govChange=s(this,"gov-change",7);this.hydrated=false;this.color="primary";this.size="m";this.identifier=undefined;this.h=n(this.host);this.triggerId=r("GovStepperItem");this.contentId=r("GovStepperContent")}validateColor(e){o(d,e,i.root)}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const e=this.identifier||this.triggerId;const t=this.contentId;return a(c,{key:"c24400b8ee5917005e6e3a21f47024c7ebad2960",id:e,class:this.h.classes(i.root),color:this.color,role:"listitem",hydrated:this.hydrated},this.h.hasSlot("prefix")&&a("span",{key:"010401daa60b44eed322de007fdd6e4ca035ff8d",class:i.prefix},a("slot",{key:"27287e54365c7e72e01dd21f8d07f7144dc03f3c",name:"prefix"})),a("div",{key:"b50e23ee80b270bb5bb781c46e2cf2de73cad1bb"},a("span",{key:"84500822ca2e529bff5e5cf4eb7ac7c9f0fc9d97",class:i.headline},a("slot",{key:"18410e07be87715a96540789a82403bfab45e55c",name:"headline"})),a("slot",{key:"dd2c20b9f07d2bcbf4223eca8de0d7592d178e86",name:"annotation"}),this.h.hasSlot("content")&&a("div",{key:"cd34d17b5a14816dd91ee84f91a14217952bcfe5",class:i.content,id:t,"aria-labelledby":e,role:"tabpanel"},a("slot",{key:"c90f411f8d63c6381f55a0e6ac819369a9bfd2e5",name:"content"}))))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-stepper-item",{color:[1],size:[1],identifier:[1]},undefined,{color:["validateColor"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-stepper-item"];e.forEach((e=>{switch(e){case"gov-stepper-item":if(!customElements.get(e)){customElements.define(e,f)}break}}))}l();const p=f;const b=l;export{p as GovStepperItem,b as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-stepper-item.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as s,H as e,c as t,h as i,d as a}from"./p-115b9cf3.js";import{v as o}from"./p-0b3574c2.js";import{S as c,a as r,b as n}from"./p-a521c59a.js";import{g as d}from"./p-ea7fdd2e.js";const h=s(class s extends e{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.hydrated=false;this.size="m";this.h=d(this.host)}validateSize(s){o(n,s,r.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(c.root).forEach((s=>{s.setAttribute("size",this.size);s.addEventListener("gov-change",(s=>{s.stopPropagation();this.govChange.emit(s.detail)}))}))}connectedCallback(){this.hydrated=true}render(){return i(a,{key:"0815470dbe86e888ab922139e6f02347f89f4700",class:this.h.classes(r.root),role:"list",size:this.size,hydrated:this.hydrated},i("slot",{key:"2585c79a48236a8c2d333a437beb4d7f1d9d9d6c"}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-stepper",{size:[1]},undefined,{size:["validateSize"]}]);function p(){if(typeof customElements==="undefined"){return}const s=["gov-stepper"];s.forEach((s=>{switch(s){case"gov-stepper":if(!customElements.get(s)){customElements.define(s,h)}break}}))}p();const f=h;const m=p;export{f as GovStepper,m as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-stepper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as t,h as i,d as s}from"./p-
|
|
1
|
+
import{p as e,H as t,h as i,d as s}from"./p-115b9cf3.js";import{c as r}from"./p-cd6c2938.js";import{g as a,t as n}from"./p-ea7fdd2e.js";import{a as d,T as c}from"./p-860520b0.js";const h=e(class e extends t{constructor(){super();this.__registerHost();this.identifier=undefined;this.triggerIdentifier=undefined;this.label=undefined;this.disabled=false;this.iconStart=undefined;this.iconEnd=undefined;this.default=false;this.isActive=false;this.h=a(this.host);this.contentId=r("GovTabContent");this.triggerId=r("GovTabTrigger")}rerenderParent(){const e=this.h.getParent(d.root);if(e){e.rerender().catch()}}render(){return i(s,{key:"89b01b0d025a89f89085dba24db6b8fadcd97e68",class:this.h.classes(c.root),default:this.default},i("div",{key:"8868371d0da63c1727c8b3a55b930a4d0ce30a3c",class:c.inner,role:"tabpanel",id:this.identifier||this.contentId,hidden:!this.isActive,"aria-labelledby":this.triggerIdentifier||this.triggerId,"aria-hidden":n(!this.isActive)},i("slot",{key:"0d47bea8c416b1c57aac006f9eea9101ade9427d"})))}async getIdentifier(){return this.identifier||this.contentId}async getTriggerIdentifier(){return this.triggerIdentifier||this.triggerId}async getDisableState(){return this.disabled}async setActiveStatus(e){this.isActive=e}get host(){return this}static get watchers(){return{label:["rerenderParent"],disabled:["rerenderParent"]}}},[4,"gov-tabs-item",{identifier:[1],triggerIdentifier:[1,"trigger-identifier"],label:[513],disabled:[516],iconStart:[513,"icon-start"],iconEnd:[513,"icon-end"],default:[4],isActive:[32],getIdentifier:[64],getTriggerIdentifier:[64],getDisableState:[64],setActiveStatus:[64]},undefined,{label:["rerenderParent"],disabled:["rerenderParent"]}]);function o(){if(typeof customElements==="undefined"){return}const e=["gov-tabs-item"];e.forEach((e=>{switch(e){case"gov-tabs-item":if(!customElements.get(e)){customElements.define(e,h)}break}}))}o();const f=h;const b=o;export{f as GovTabsItem,b as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-tabs-item.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as s,c as i,h as e,d as o}from"./p-
|
|
1
|
+
import{p as t,H as s,c as i,h as e,d as o}from"./p-115b9cf3.js";import{v as a}from"./p-0b3574c2.js";import{T as r,a as n,b as h,c,d as l}from"./p-860520b0.js";import{g as d,c as f,b}from"./p-ea7fdd2e.js";import{h as p}from"./p-2aedc81e.js";import{p as u}from"./p-016bbea6.js";import{A as m,a as v,i as g}from"./p-33d5d1ed.js";import{d as y}from"./p-c67a25ad.js";import{d as j}from"./p-88b2667e.js";const k=t(class t extends s{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change",7);this.triggerRefs={};this.type="text";this.size="m";this.color="primary";this.orientation="horizontal";this.direction="row";this.controllers=[];this.focusIndex=0;this.inheritedAttributes={};this.h=d(this.host)}validateType(t){a(h,t,n.root)}validateColor(t){a(c,t,n.root)}validateSize(t){a(l,t,n.root)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}componentWillLoad(){this.prepareControllers();this.validateSize(this.size);this.inheritedAttributes=g(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}prepareControllers(t=false){this.controllers=[];const s=[];this.host.querySelectorAll(r.root).forEach((t=>{const i=Promise.all([t.getIdentifier(),t.getTriggerIdentifier(),t.getDisableState()]).then((([s,i,e])=>{const o=typeof t.getAttribute("default")==="string";const a=u(t.getAttribute("icon-start"));const r=u(t.getAttribute("icon-end"));return{label:t.getAttribute("label"),direction:t.getAttribute("direction"),contentIdentifier:s,disabled:e,triggerIdentifier:i,element:t,active:false,default:o,iconStart:a,iconEnd:r}}));s.push(i)}));Promise.all(s).then((s=>{if(t===false){let t=s.findIndex((t=>t.default));if(t===-1)t=0;this.focusIndex=t;s[t].active=true}else if(this.focusIndex>-1&&p(s,this.focusIndex)){s[this.focusIndex].active=true}const i=s.findIndex((t=>t.active&&t.disabled));if(i>-1){s[i].active=false;const t=s.findIndex((t=>!t.disabled));if(t>-1){s[t].active=true;this.focusIndex=t}}this.controllers=[...s];this.reRender()}))}setActiveByIdentifier(t){const s=[];this.controllers.map((i=>{i.active=t===i.triggerIdentifier||t===i.contentIdentifier;s.push(i)}));this.controllers=[...s]}reRender(){this.controllers.map((t=>{t.element.setActiveStatus(t.active).catch()}))}render(){return e(o,{key:"4efcbedcc355a74456cc899bc48c7aaf8c604c12",class:this.h.classes(n.root),size:this.size,color:this.color,type:this.type,direction:this.direction,onKeyDown:this.onKeydownHandler.bind(this)},e("div",Object.assign({key:"a64d1a7cadd5950ebc687c3f3d741ea0a59a3684",class:n.tabs,role:"tablist"},this.inheritedAttributes),e("ul",{key:"adab5148c97b041e11f3e7d11a4d87492df5320a",class:n.list},this.controllers.map((t=>e("li",{class:n.item},this.type=="text"?e("button",{class:n.btn,id:t.triggerIdentifier,role:"tab",onClick:()=>this.onSelectHandler(t),disabled:t.disabled,"aria-disabled":f(t.disabled),"aria-selected":f(t.active),"aria-controls":t.contentIdentifier,tabindex:t.active&&!t.disabled?0:-1,ref:s=>this.triggerRefs[t.triggerIdentifier]=s},t.iconStart?e("gov-icon",{name:t.iconStart.name,type:t.iconStart.type}):null,t.label,t.iconEnd?e("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type}):null):e("gov-chip",{role:"tab",tag:"button",identifier:t.triggerIdentifier,"aria-selected":b(t.active),"aria-controls":t.contentIdentifier,focusable:t.active,disabled:t.disabled,color:this.color,size:this.size==="xs"?"xs":this.size==="s"?"s":"m",type:t.active?"solid":"outlined",ref:s=>this.triggerRefs[t.triggerIdentifier]=s,"on-gov-click":()=>this.onSelectHandler(t)},t.iconStart?e("gov-icon",{name:t.iconStart.name,type:t.iconStart.type,slot:"icon-start"}):null,t.label,t.iconEnd?e("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type,slot:"icon-end"}):null)))))),e("slot",{key:"2a3720ce9449d62ecd1d58bac806bf356d37375a"}))}getCurrentTab(){return this.controllers.find((t=>t.active))||null}onSelectHandler(t){const s=this.controllers.findIndex((s=>s.triggerIdentifier===t.triggerIdentifier));this.focusIndex=s;this.setActiveByIdentifier(t.triggerIdentifier);this.reRender();this.govChange.emit(this.getCurrentTab().element)}onKeydownHandler(t){const s=t.keyCode;t.stopPropagation();this.goToPrevNext(s)}goToPrevNext(t){if([37,38,39,40].includes(t)){if(false===(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1)){return}this.controllers[this.focusIndex].active=false;if(t===39||t===40){this.focusIndex++;if(this.focusIndex>=this.controllers.length){this.focusIndex=0}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(40)}}else if(t===37||t===38){this.focusIndex--;if(this.focusIndex<0){this.focusIndex=this.controllers.length-1}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(38)}}if(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1){const t=this.controllers[this.focusIndex];t.active=true;const s=this.triggerRefs[t.triggerIdentifier];if(s.nodeName.toLowerCase()==="gov-chip"){this.triggerRefs[t.triggerIdentifier].setFocus()}else{this.triggerRefs[t.triggerIdentifier].focus()}this.controllers=[...this.controllers];this.reRender();this.govChange.emit(this.getCurrentTab().element)}}}async refresh(){this.prepareControllers()}async currentTab(){return this.getCurrentTab().element||null}async setActiveTab(t){this.setActiveByIdentifier(t);this.reRender()}async rerender(){this.prepareControllers(true)}get host(){return this}static get watchers(){return{type:["validateType"],color:["validateColor"],size:["validateSize"]}}},[4,"gov-tabs",{type:[1],size:[1],color:[1],orientation:[1],direction:[513],controllers:[32],focusIndex:[32],inheritedAttributes:[32],refresh:[64],currentTab:[64],setActiveTab:[64],rerender:[64]},undefined,{type:["validateType"],color:["validateColor"],size:["validateSize"]}]);function T(){if(typeof customElements==="undefined"){return}const t=["gov-tabs","gov-chip","gov-icon"];t.forEach((t=>{switch(t){case"gov-tabs":if(!customElements.get(t)){customElements.define(t,k)}break;case"gov-chip":if(!customElements.get(t)){y()}break;case"gov-icon":if(!customElements.get(t)){j()}break}}))}T();const x=k;const z=T;export{x as GovTabs,z as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-tabs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as t,h as s,d as o}from"./p-
|
|
1
|
+
import{p as e,H as t,h as s,d as o}from"./p-115b9cf3.js";import{g as a}from"./p-ea7fdd2e.js";import{v as i}from"./p-0b3574c2.js";import{a as c,c as n}from"./p-44a8a668.js";import{p as r}from"./p-e0e2e9c1.js";import{S as d}from"./p-92f420cb.js";import{p as f}from"./p-016bbea6.js";import{d as b}from"./p-88b2667e.js";const m=r(d,["_XS","_S","_M"]);var l;(function(e){e["BOLD"]="bold";e["SUBTLE"]="subtle"})(l||(l={}));const p={root:"gov-tag"};const h=e(class e extends t{constructor(){super();this.__registerHost();this.iconStart=undefined;this.iconEnd=undefined;this.size=m._S;this.color=c.PRIMARY;this.type=undefined;this.expanded=false;this.h=a(this.host)}validateColor(e){i(c,e,p.root)}validateSize(e){i(n,e,p.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size)}render(){const e=f(this.iconStart);const t=f(this.iconEnd);return s(o,{key:"8865709f2568a754160000138f413f352409e248",class:this.h.classes(p.root),color:this.color,size:this.size,type:this.type},s("span",{key:"4ae6dc1d60a207510de61c2391af9eb268dd3588",class:"element"},s("slot",{key:"f08057eb346b918d1be45ad7561a71bac54237aa",name:"icon-start"},e&&s("gov-icon",{key:"37554fce04335c45bb724efeb5e7701513336b7b",type:e.type,name:e.name})),s("slot",{key:"b66970bf42b9fd9217cb2e3a03c2f47c608b14a5"}),s("slot",{key:"85bf0010dac55b808bba5a442d977e8538f93d3a",name:"icon-end"},t&&s("gov-icon",{key:"70bf541bac6a69871618cb520c7008099aa6f341",type:t.type,name:t.name}))))}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[4,"gov-tag",{iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[513],color:[513],type:[513],expanded:[516]},undefined,{color:["validateColor"],size:["validateSize"]}]);function u(){if(typeof customElements==="undefined"){return}const e=["gov-tag","gov-icon"];e.forEach((e=>{switch(e){case"gov-tag":if(!customElements.get(e)){customElements.define(e,h)}break;case"gov-icon":if(!customElements.get(e)){b()}break}}))}u();const v=h;const g=u;export{v as GovTag,g as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-tag.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,H as t,c as s,h as i,d as a}from"./p-115b9cf3.js";import{g as c}from"./p-ea7fdd2e.js";import{p as o}from"./p-e0e2e9c1.js";import{S as h}from"./p-92f420cb.js";import{a as n}from"./p-e8ec030e.js";import{v as r}from"./p-0b3574c2.js";import{d as m,s as l,g as d}from"./p-88b2667e.js";const b=o(h,["_XS","_S","_M","_L","_XL"]);const f={root:"gov-theme-switch",indicator:"gov-theme-switch__indicator",iconLight:"gov-theme-switch__icon-light",iconDark:"gov-theme-switch__icon-dark"};const p="data-theme";var g;(function(e){e["auto"]="auto";e["light"]="light";e["dark"]="dark"})(g||(g={}));const u=e(class e extends t{constructor(){super();this.__registerHost();this.govChange=s(this,"gov-change",7);this.setThemeState=e=>{this.theme=e;this.govChange.emit({component:f.root,state:this.theme,ref:this.host})};this.size="m";this.displayLabel=false;this.ariaLabelLight="Přenout na tmavý mód";this.ariaLabelDark="Přepnout na světlý mód";this.labelLight="Světlý mód";this.labelDark="Tmavý mód";this.theme=g.auto;this.h=c(this.host)}validateSize(e){r(b,e,f.root)}watchTheme(e){this.htmlElement.setAttribute(p,e);this.htmlElement.classList.remove(...Object.keys(g));this.htmlElement.classList.add(e);l(p,e)}get storageValue(){return d(p)}get htmlElement(){return document.documentElement}get isSystemPrefersColorDark(){return n&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}componentWillLoad(){this.initDefaultState();this.validateSize(this.size)}initDefaultState(){const e=Object.keys(g);let t=this.storageValue;const s=this.htmlElement.getAttribute(p);if(t&&e.includes(t)){this.theme=t}else if(s&&e.includes(s)){this.theme=s}else{this.theme=g.auto}}render(){let e=this.theme===g.dark;if(this.theme===g.auto){e=this.isSystemPrefersColorDark}return i(a,{key:"784ed0513ea1436bb754dc82691646422789783b",class:this.h.classes(f.root),theme:e?g.dark:g.light,size:this.size},i("button",{key:"d4abc155a8ae8f07d0a49c378e295c3ab57318d4",onClick:()=>this.setThemeState(e?g.light:g.dark),"aria-current":this.theme,"aria-label":e?this.ariaLabelDark:this.ariaLabelLight},i("span",{key:"7f713875d5618acc919702cdc60e9db58dfb9db5"},i("span",{key:"0b57c0153047ef292b6bdc43b49e5a1a9cdc17e1",class:f.indicator},g.light&&i("gov-icon",{key:"ae2c751435a2bc9c1e9f8dfa4ca52e13943ada9b",name:"sun",class:f.iconLight,type:"components"}),g.dark&&i("gov-icon",{key:"7a4ee602a37742ab94dcee47a7c4970d5dce5bb6",name:"moon",class:f.iconDark,type:"components"})),this.displayLabel&&(e?this.labelDark:this.labelLight))))}get host(){return this}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}},[0,"gov-theme-switch",{size:[1],displayLabel:[4,"display-label"],ariaLabelLight:[1,"aria-label-light"],ariaLabelDark:[1,"aria-label-dark"],labelLight:[1,"label-light"],labelDark:[1,"label-dark"],theme:[32]},undefined,{size:["validateSize"],theme:["watchTheme"]}]);function v(){if(typeof customElements==="undefined"){return}const e=["gov-theme-switch","gov-icon"];e.forEach((e=>{switch(e){case"gov-theme-switch":if(!customElements.get(e)){customElements.define(e,u)}break;case"gov-icon":if(!customElements.get(e)){m()}break}}))}v();const k=u;const w=v;export{k as GovThemeSwitch,w as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-theme-switch.js.map
|
|
@@ -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-88b2667e.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-9992e831.js";import{d as b}from"./p-88b2667e.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-9992e831.js";import{d as a}from"./p-88b2667e.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 m}from"./p-88b2667e.js";var f;(function(s){s["DIV"]="div";s["BUTTON"]="button"})(f||(f={}));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?f.BUTTON:f.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)){m()}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
|
|
@@ -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
|