@gov-design-system-ce/components 4.1.3-BETA-9 → 4.1.3-BETA-10
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 +1 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +1 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gov-button.cjs.entry.js +1 -1
- package/dist/cjs/gov-card.cjs.entry.js +1 -1
- package/dist/cjs/gov-chip.cjs.entry.js +1 -1
- package/dist/cjs/gov-container.cjs.entry.js +1 -1
- package/dist/cjs/gov-control-group.cjs.entry.js +1 -1
- package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/gov-dialog.cjs.entry.js +1 -1
- package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js +1 -1
- package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
- package/dist/cjs/gov-flex_3.cjs.entry.js +3 -22
- package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/gov-form-input_2.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
- package/dist/cjs/gov-layout.cjs.entry.js +1 -1
- package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
- package/dist/cjs/gov-link.cjs.entry.js +1 -1
- package/dist/cjs/gov-loading.cjs.entry.js +1 -1
- package/dist/cjs/gov-message.cjs.entry.js +1 -1
- package/dist/cjs/gov-pagination.cjs.entry.js +1 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-stepper.cjs.entry.js +1 -1
- package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gov-tag.cjs.entry.js +1 -1
- package/dist/cjs/gov-tile.cjs.entry.js +1 -1
- package/dist/cjs/gov-tiles.cjs.entry.js +1 -1
- package/dist/cjs/gov-toast.cjs.entry.js +1 -1
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +1 -1
- package/dist/cjs/gov-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/gov-wizard-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
- package/dist/cjs/{index-67e87c27.js → index-0e4f24f9.js} +1 -15
- package/dist/cjs/index-0e4f24f9.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/gov-icon/gov-icon.js +0 -15
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
- package/dist/collection/utils/icon.utils.js +1 -8
- 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-search.js +1 -1
- package/dist/components/gov-form-select.js +1 -1
- package/dist/components/gov-form-switch.js +1 -1
- package/dist/components/gov-grid-item.js +1 -1
- package/dist/components/gov-grid.js +1 -1
- package/dist/components/gov-icon.js +1 -1
- package/dist/components/gov-infobar.js +1 -1
- package/dist/components/gov-layout-column.js +1 -1
- package/dist/components/gov-layout.js +1 -1
- package/dist/components/gov-lifecycle.js +1 -1
- package/dist/components/gov-link.js +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-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-tile.js +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-ba61e648.js → p-076c8b31.js} +2 -2
- package/dist/components/{p-92406c6d.js → p-13a70392.js} +2 -2
- package/dist/components/p-42200001.js +3 -0
- package/dist/components/p-42200001.js.map +1 -0
- package/dist/components/{p-792c5352.js → p-4d513423.js} +2 -2
- package/dist/components/{p-f9161803.js → p-4faecdb2.js} +2 -2
- package/dist/components/{p-939638b2.js → p-558cbab0.js} +2 -2
- package/dist/components/{p-03ad4e0f.js → p-73938936.js} +2 -2
- package/dist/components/{p-384c7f2a.js → p-7be2301a.js} +2 -2
- package/dist/components/p-a877bf8a.js +2 -0
- package/dist/components/p-a877bf8a.js.map +1 -0
- package/dist/components/{p-350e060c.js → p-b97d8edd.js} +2 -2
- package/dist/components/{p-8ee6f2f3.js → p-c438a723.js} +2 -2
- package/dist/components/{p-8e8a3300.js → p-c5e91e5a.js} +2 -2
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-07b1fa1c.entry.js +2 -0
- package/dist/core/{p-347d15d5.entry.js.map → p-07b1fa1c.entry.js.map} +1 -1
- package/dist/core/{p-ee55932a.entry.js → p-0932c74d.entry.js} +2 -2
- package/dist/core/{p-d9b42773.entry.js → p-13c6da90.entry.js} +2 -2
- package/dist/core/{p-33310735.entry.js → p-15a7b952.entry.js} +2 -2
- package/dist/core/{p-fcac8531.entry.js → p-2470194a.entry.js} +2 -2
- package/dist/core/{p-10f773c2.entry.js → p-2abdce2d.entry.js} +2 -2
- package/dist/core/{p-017ff5a5.entry.js → p-2ae8b8d5.entry.js} +2 -2
- package/dist/core/{p-f54edd6c.entry.js → p-3627773f.entry.js} +2 -2
- package/dist/core/{p-7a21fb90.entry.js → p-36b35592.entry.js} +2 -2
- package/dist/core/{p-4e29744a.entry.js → p-3974176f.entry.js} +2 -2
- package/dist/core/{p-4fa0320d.entry.js → p-3b8b331f.entry.js} +2 -2
- package/dist/core/p-41e0ad2e.entry.js +2 -0
- package/dist/core/p-41e0ad2e.entry.js.map +1 -0
- package/dist/core/p-49ebfe10.entry.js +2 -0
- package/dist/core/{p-967a1094.entry.js.map → p-49ebfe10.entry.js.map} +1 -1
- package/dist/core/{p-6b7c3a96.entry.js → p-4aa5db49.entry.js} +2 -2
- package/dist/core/{p-0f0f7302.entry.js → p-52042c7e.entry.js} +2 -2
- package/dist/core/{p-e0a199ff.entry.js → p-5e42395f.entry.js} +2 -2
- package/dist/core/{p-7baee44f.entry.js → p-5ff7f0c4.entry.js} +2 -2
- package/dist/core/{p-77daba72.entry.js → p-6f1ea21d.entry.js} +2 -2
- package/dist/core/{p-4c60e125.entry.js → p-72c4ebcd.entry.js} +2 -2
- package/dist/core/{p-b62e49ee.entry.js → p-72cdac94.entry.js} +2 -2
- package/dist/core/{p-058e6fe2.entry.js → p-77bf7b01.entry.js} +2 -2
- package/dist/core/{p-0724cb6a.entry.js → p-7a44bd0a.entry.js} +2 -2
- package/dist/core/{p-032accfb.entry.js → p-7c0be05a.entry.js} +2 -2
- package/dist/core/p-80c7db1f.entry.js +2 -0
- package/dist/core/{p-d795a421.entry.js.map → p-80c7db1f.entry.js.map} +1 -1
- package/dist/core/{p-37473c34.entry.js → p-8e5f45d0.entry.js} +2 -2
- package/dist/core/{p-50af9ae8.entry.js → p-8ede0622.entry.js} +2 -2
- package/dist/core/p-9256cf6c.entry.js +2 -0
- package/dist/core/p-93179cbf.entry.js +2 -0
- package/dist/core/{p-8cc5ad01.entry.js.map → p-93179cbf.entry.js.map} +1 -1
- package/dist/core/p-93b747c1.entry.js +2 -0
- package/dist/core/{p-3849ca02.entry.js → p-9514520c.entry.js} +2 -2
- package/dist/core/{p-8bb6c816.entry.js → p-9897ac81.entry.js} +2 -2
- package/dist/core/p-9dea2efa.js +3 -0
- package/dist/core/p-9dea2efa.js.map +1 -0
- package/dist/core/{p-ed02945f.entry.js → p-9e77f076.entry.js} +2 -2
- package/dist/core/p-9fcb2ba7.entry.js +2 -0
- package/dist/core/{p-45b759f4.entry.js.map → p-9fcb2ba7.entry.js.map} +1 -1
- package/dist/core/{p-5c3f4cfe.entry.js → p-a0728f09.entry.js} +2 -2
- package/dist/core/p-a22517e2.entry.js +2 -0
- package/dist/core/{p-cecbe73f.entry.js.map → p-a22517e2.entry.js.map} +1 -1
- package/dist/core/{p-1aa7450e.entry.js → p-a5648769.entry.js} +2 -2
- package/dist/core/{p-a6a9de9a.entry.js → p-a58f4e2b.entry.js} +2 -2
- package/dist/core/{p-14d66f26.entry.js → p-a8a5e8ca.entry.js} +2 -2
- package/dist/core/{p-c0800e6d.entry.js → p-ab500948.entry.js} +2 -2
- package/dist/core/{p-9f8d69a9.entry.js → p-b319674e.entry.js} +2 -2
- package/dist/core/{p-0c076b21.entry.js → p-b404f53c.entry.js} +2 -2
- package/dist/core/{p-f7f60f91.entry.js → p-bd667900.entry.js} +2 -2
- package/dist/core/{p-e215f3ee.entry.js → p-c34dad75.entry.js} +2 -2
- package/dist/core/{p-269071f5.entry.js → p-c9d70c7a.entry.js} +2 -2
- package/dist/core/{p-063b70a2.entry.js → p-d512059d.entry.js} +2 -2
- package/dist/core/p-e078dab3.entry.js +2 -0
- package/dist/core/{p-3a7381e7.entry.js.map → p-e078dab3.entry.js.map} +1 -1
- package/dist/core/{p-9846fd13.entry.js → p-e4ac787c.entry.js} +2 -2
- package/dist/core/{p-994385ca.entry.js → p-e7b3b5db.entry.js} +2 -2
- package/dist/core/p-eed4e606.entry.js +2 -0
- package/dist/core/{p-237a5b91.entry.js.map → p-eed4e606.entry.js.map} +1 -1
- package/dist/core/{p-7dfb7e36.entry.js → p-f60265c3.entry.js} +2 -2
- package/dist/core/p-f6863a64.entry.js +2 -0
- package/dist/core/{p-f2bb8c29.entry.js → p-f9474bb3.entry.js} +2 -2
- package/dist/core/p-f98f19f6.entry.js +2 -0
- package/dist/core/{p-906865d0.entry.js.map → p-f98f19f6.entry.js.map} +1 -1
- package/dist/core/{p-927c31dd.entry.js → p-fd7a3951.entry.js} +2 -2
- package/dist/esm/core.js +3 -3
- package/dist/esm/gov-accordion-item.entry.js +1 -1
- package/dist/esm/gov-accordion.entry.js +1 -1
- package/dist/esm/gov-attachments_3.entry.js +1 -1
- package/dist/esm/gov-backdrop.entry.js +1 -1
- package/dist/esm/gov-breadcrumbs.entry.js +1 -1
- package/dist/esm/gov-button.entry.js +1 -1
- package/dist/esm/gov-card.entry.js +1 -1
- package/dist/esm/gov-chip.entry.js +1 -1
- package/dist/esm/gov-container.entry.js +1 -1
- package/dist/esm/gov-control-group.entry.js +1 -1
- package/dist/esm/gov-cookiebar.entry.js +1 -1
- package/dist/esm/gov-dialog.entry.js +1 -1
- package/dist/esm/gov-dropdown.entry.js +1 -1
- package/dist/esm/gov-empty.entry.js +1 -1
- package/dist/esm/gov-error-code.entry.js +1 -1
- package/dist/esm/gov-flex_3.entry.js +3 -22
- package/dist/esm/gov-flex_3.entry.js.map +1 -1
- package/dist/esm/gov-form-autocomplete.entry.js +1 -1
- package/dist/esm/gov-form-checkbox-group.entry.js +1 -1
- package/dist/esm/gov-form-checkbox.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/gov-form-input_2.entry.js +1 -1
- package/dist/esm/gov-form-label.entry.js +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +1 -1
- package/dist/esm/gov-form-password-power.entry.js +1 -1
- package/dist/esm/gov-form-radio-group.entry.js +1 -1
- package/dist/esm/gov-form-radio.entry.js +1 -1
- package/dist/esm/gov-form-search.entry.js +1 -1
- package/dist/esm/gov-form-select.entry.js +1 -1
- package/dist/esm/gov-form-switch.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/gov-layout-column.entry.js +1 -1
- package/dist/esm/gov-layout.entry.js +1 -1
- package/dist/esm/gov-lifecycle.entry.js +1 -1
- package/dist/esm/gov-link.entry.js +1 -1
- package/dist/esm/gov-loading.entry.js +1 -1
- package/dist/esm/gov-message.entry.js +1 -1
- package/dist/esm/gov-pagination.entry.js +1 -1
- package/dist/esm/gov-spacer.entry.js +1 -1
- package/dist/esm/gov-stepper-item.entry.js +1 -1
- package/dist/esm/gov-stepper.entry.js +1 -1
- package/dist/esm/gov-tabs-item.entry.js +1 -1
- package/dist/esm/gov-tabs.entry.js +1 -1
- package/dist/esm/gov-tag.entry.js +1 -1
- package/dist/esm/gov-tile.entry.js +1 -1
- package/dist/esm/gov-tiles.entry.js +1 -1
- package/dist/esm/gov-toast.entry.js +1 -1
- package/dist/esm/gov-tooltip-content.entry.js +1 -1
- package/dist/esm/gov-tooltip.entry.js +1 -1
- package/dist/esm/gov-wizard-item.entry.js +1 -1
- package/dist/esm/gov-wizard.entry.js +1 -1
- package/dist/esm/{index-087b155c.js → index-bf8a6f64.js} +2 -14
- package/dist/esm/index-bf8a6f64.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/hydrate/index.js +2 -34
- package/dist/hydrate/index.mjs +2 -34
- package/dist/types/components/gov-icon/gov-icon.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/index-67e87c27.js.map +0 -1
- package/dist/components/p-115b9cf3.js +0 -3
- package/dist/components/p-115b9cf3.js.map +0 -1
- package/dist/components/p-95bd5f39.js +0 -2
- package/dist/components/p-95bd5f39.js.map +0 -1
- package/dist/components/p-bfce6f99.js +0 -2
- package/dist/components/p-bfce6f99.js.map +0 -1
- package/dist/core/p-054aa25e.entry.js +0 -2
- package/dist/core/p-054aa25e.entry.js.map +0 -1
- package/dist/core/p-09c9eba6.entry.js +0 -2
- package/dist/core/p-237a5b91.entry.js +0 -2
- package/dist/core/p-2ee042d4.js +0 -3
- package/dist/core/p-2ee042d4.js.map +0 -1
- package/dist/core/p-347d15d5.entry.js +0 -2
- package/dist/core/p-3a7381e7.entry.js +0 -2
- package/dist/core/p-43d3dbc0.entry.js +0 -2
- package/dist/core/p-45b759f4.entry.js +0 -2
- package/dist/core/p-71f5d4ff.entry.js +0 -2
- package/dist/core/p-8cc5ad01.entry.js +0 -2
- package/dist/core/p-906865d0.entry.js +0 -2
- package/dist/core/p-967a1094.entry.js +0 -2
- package/dist/core/p-cecbe73f.entry.js +0 -2
- package/dist/core/p-d795a421.entry.js +0 -2
- package/dist/esm/index-087b155c.js.map +0 -1
- /package/dist/components/{p-ba61e648.js.map → p-076c8b31.js.map} +0 -0
- /package/dist/components/{p-92406c6d.js.map → p-13a70392.js.map} +0 -0
- /package/dist/components/{p-792c5352.js.map → p-4d513423.js.map} +0 -0
- /package/dist/components/{p-f9161803.js.map → p-4faecdb2.js.map} +0 -0
- /package/dist/components/{p-939638b2.js.map → p-558cbab0.js.map} +0 -0
- /package/dist/components/{p-03ad4e0f.js.map → p-73938936.js.map} +0 -0
- /package/dist/components/{p-384c7f2a.js.map → p-7be2301a.js.map} +0 -0
- /package/dist/components/{p-350e060c.js.map → p-b97d8edd.js.map} +0 -0
- /package/dist/components/{p-8ee6f2f3.js.map → p-c438a723.js.map} +0 -0
- /package/dist/components/{p-8e8a3300.js.map → p-c5e91e5a.js.map} +0 -0
- /package/dist/core/{p-ee55932a.entry.js.map → p-0932c74d.entry.js.map} +0 -0
- /package/dist/core/{p-d9b42773.entry.js.map → p-13c6da90.entry.js.map} +0 -0
- /package/dist/core/{p-33310735.entry.js.map → p-15a7b952.entry.js.map} +0 -0
- /package/dist/core/{p-fcac8531.entry.js.map → p-2470194a.entry.js.map} +0 -0
- /package/dist/core/{p-10f773c2.entry.js.map → p-2abdce2d.entry.js.map} +0 -0
- /package/dist/core/{p-017ff5a5.entry.js.map → p-2ae8b8d5.entry.js.map} +0 -0
- /package/dist/core/{p-f54edd6c.entry.js.map → p-3627773f.entry.js.map} +0 -0
- /package/dist/core/{p-7a21fb90.entry.js.map → p-36b35592.entry.js.map} +0 -0
- /package/dist/core/{p-4e29744a.entry.js.map → p-3974176f.entry.js.map} +0 -0
- /package/dist/core/{p-4fa0320d.entry.js.map → p-3b8b331f.entry.js.map} +0 -0
- /package/dist/core/{p-6b7c3a96.entry.js.map → p-4aa5db49.entry.js.map} +0 -0
- /package/dist/core/{p-0f0f7302.entry.js.map → p-52042c7e.entry.js.map} +0 -0
- /package/dist/core/{p-e0a199ff.entry.js.map → p-5e42395f.entry.js.map} +0 -0
- /package/dist/core/{p-7baee44f.entry.js.map → p-5ff7f0c4.entry.js.map} +0 -0
- /package/dist/core/{p-77daba72.entry.js.map → p-6f1ea21d.entry.js.map} +0 -0
- /package/dist/core/{p-4c60e125.entry.js.map → p-72c4ebcd.entry.js.map} +0 -0
- /package/dist/core/{p-b62e49ee.entry.js.map → p-72cdac94.entry.js.map} +0 -0
- /package/dist/core/{p-058e6fe2.entry.js.map → p-77bf7b01.entry.js.map} +0 -0
- /package/dist/core/{p-0724cb6a.entry.js.map → p-7a44bd0a.entry.js.map} +0 -0
- /package/dist/core/{p-032accfb.entry.js.map → p-7c0be05a.entry.js.map} +0 -0
- /package/dist/core/{p-37473c34.entry.js.map → p-8e5f45d0.entry.js.map} +0 -0
- /package/dist/core/{p-50af9ae8.entry.js.map → p-8ede0622.entry.js.map} +0 -0
- /package/dist/core/{p-71f5d4ff.entry.js.map → p-9256cf6c.entry.js.map} +0 -0
- /package/dist/core/{p-43d3dbc0.entry.js.map → p-93b747c1.entry.js.map} +0 -0
- /package/dist/core/{p-3849ca02.entry.js.map → p-9514520c.entry.js.map} +0 -0
- /package/dist/core/{p-8bb6c816.entry.js.map → p-9897ac81.entry.js.map} +0 -0
- /package/dist/core/{p-ed02945f.entry.js.map → p-9e77f076.entry.js.map} +0 -0
- /package/dist/core/{p-5c3f4cfe.entry.js.map → p-a0728f09.entry.js.map} +0 -0
- /package/dist/core/{p-1aa7450e.entry.js.map → p-a5648769.entry.js.map} +0 -0
- /package/dist/core/{p-a6a9de9a.entry.js.map → p-a58f4e2b.entry.js.map} +0 -0
- /package/dist/core/{p-14d66f26.entry.js.map → p-a8a5e8ca.entry.js.map} +0 -0
- /package/dist/core/{p-c0800e6d.entry.js.map → p-ab500948.entry.js.map} +0 -0
- /package/dist/core/{p-9f8d69a9.entry.js.map → p-b319674e.entry.js.map} +0 -0
- /package/dist/core/{p-0c076b21.entry.js.map → p-b404f53c.entry.js.map} +0 -0
- /package/dist/core/{p-f7f60f91.entry.js.map → p-bd667900.entry.js.map} +0 -0
- /package/dist/core/{p-e215f3ee.entry.js.map → p-c34dad75.entry.js.map} +0 -0
- /package/dist/core/{p-269071f5.entry.js.map → p-c9d70c7a.entry.js.map} +0 -0
- /package/dist/core/{p-063b70a2.entry.js.map → p-d512059d.entry.js.map} +0 -0
- /package/dist/core/{p-9846fd13.entry.js.map → p-e4ac787c.entry.js.map} +0 -0
- /package/dist/core/{p-994385ca.entry.js.map → p-e7b3b5db.entry.js.map} +0 -0
- /package/dist/core/{p-7dfb7e36.entry.js.map → p-f60265c3.entry.js.map} +0 -0
- /package/dist/core/{p-09c9eba6.entry.js.map → p-f6863a64.entry.js.map} +0 -0
- /package/dist/core/{p-f2bb8c29.entry.js.map → p-f9474bb3.entry.js.map} +0 -0
- /package/dist/core/{p-927c31dd.entry.js.map → p-fd7a3951.entry.js.map} +0 -0
|
@@ -14,7 +14,6 @@ export class GovIcon {
|
|
|
14
14
|
this.type = "components";
|
|
15
15
|
this.visible = false;
|
|
16
16
|
this.error = false;
|
|
17
|
-
console.log('GovIcon');
|
|
18
17
|
this.h = govHost(this.host);
|
|
19
18
|
}
|
|
20
19
|
validateSize(newValue) {
|
|
@@ -23,22 +22,14 @@ export class GovIcon {
|
|
|
23
22
|
validateColor(newValue) {
|
|
24
23
|
validateProp(IconColors, newValue, IconClass.root);
|
|
25
24
|
}
|
|
26
|
-
watchError(newValue) {
|
|
27
|
-
console.log('error', newValue);
|
|
28
|
-
}
|
|
29
25
|
async loadIconPathData() {
|
|
30
26
|
const { name, visible } = this;
|
|
31
|
-
console.log('name, visible', name, visible);
|
|
32
|
-
console.log('Build.isBrowser', Build.isBrowser);
|
|
33
27
|
if (!Build.isBrowser || !name || !visible) {
|
|
34
|
-
console.log('return');
|
|
35
28
|
return;
|
|
36
29
|
}
|
|
37
30
|
await this.loadIcon();
|
|
38
31
|
}
|
|
39
32
|
connectedCallback() {
|
|
40
|
-
console.log('connectedCallback icon', this.name);
|
|
41
|
-
console.log('iconsLazyLoad()', iconsLazyLoad());
|
|
42
33
|
if (iconsLazyLoad()) {
|
|
43
34
|
this.visible = true;
|
|
44
35
|
this.loadIconPathData().finally();
|
|
@@ -51,14 +42,12 @@ export class GovIcon {
|
|
|
51
42
|
}
|
|
52
43
|
}
|
|
53
44
|
disconnectedCallback() {
|
|
54
|
-
console.log('disconnectedCallback');
|
|
55
45
|
if (this.intersectionObserver) {
|
|
56
46
|
this.intersectionObserver.disconnect();
|
|
57
47
|
this.intersectionObserver = null;
|
|
58
48
|
}
|
|
59
49
|
}
|
|
60
50
|
async componentWillLoad() {
|
|
61
|
-
console.log('componentWillLoad');
|
|
62
51
|
this.validateSize(this.size);
|
|
63
52
|
this.validateColor(this.color);
|
|
64
53
|
await this.loadIconPathData();
|
|
@@ -84,7 +73,6 @@ export class GovIcon {
|
|
|
84
73
|
async loadIcon() {
|
|
85
74
|
try {
|
|
86
75
|
const { name, type } = this;
|
|
87
|
-
console.log('loadIcon -> name, type', name, type);
|
|
88
76
|
const data = await fetchIcon({ name, type });
|
|
89
77
|
const isValid = isValidSVG(data);
|
|
90
78
|
this.host.innerHTML = isValid ? data : null;
|
|
@@ -204,9 +192,6 @@ export class GovIcon {
|
|
|
204
192
|
}, {
|
|
205
193
|
"propName": "color",
|
|
206
194
|
"methodName": "validateColor"
|
|
207
|
-
}, {
|
|
208
|
-
"propName": "error",
|
|
209
|
-
"methodName": "watchError"
|
|
210
195
|
}, {
|
|
211
196
|
"propName": "name",
|
|
212
197
|
"methodName": "loadIconPathData"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-icon.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/gov-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACpF,OAAO,EAAC,SAAS,EAAE,UAAU,EAAoC,MAAM,aAAa,CAAA;AACpF,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAA;AAChD,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAElD,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AACjD,OAAO,EAAC,UAAU,EAAC,MAAM,4BAA4B,CAAC;AAMtD,MAAM,OAAO,OAAO;IAInB;;;
|
|
1
|
+
{"version":3,"file":"gov-icon.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/gov-icon.tsx"],"names":[],"mappings":"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","sourcesContent":["import {Build, Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {IconClass, IconColors, type IconColorType, IconSizesType} from \"./constants\"\nimport {fetchIcon} from \"../../utils/icon.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {iconsLazyLoad} from \"../../helpers/Dom/win\"\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {isValidSVG} from \"../../helpers/Dom/document\";\n\n@Component({\n\tassetsDirs: [\"assets\"],\n\ttag: \"gov-icon\",\n})\nexport class GovIcon {\n\tprivate h: GovHost\n\tprivate intersectionObserver: IntersectionObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovIconElement\n\t/**\n\t * Icon size\n\t */\n\t@Prop({reflect: true}) readonly size?: IconSizesType\n\t/**\n\t * Icon color\n\t */\n\t@Prop({reflect: true}) readonly color?: IconColorType\n\t/**\n\t * Name of icon in folder\n\t */\n\t@Prop({reflect: true}) name: string = null\n\t/**\n\t * Type (folder) of icon\n\t */\n\t@Prop({reflect: true}) type = \"components\"\n\n\t@State() private visible = false\n\t@State() private error = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(IconColors, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"name\")\n\tprivate async loadIconPathData(): Promise<void> {\n\t\tconst {name, visible} = this\n\t\tif (!Build.isBrowser || !name || !visible) {\n\t\t\treturn\n\t\t}\n\t\tawait this.loadIcon()\n\t}\n\n\tconnectedCallback(): void {\n\t\tif (iconsLazyLoad()) {\n\t\t\tthis.visible = true\n\t\t\tthis.loadIconPathData().finally()\n\t\t} else {\n\t\t\tthis.waitUntilVisible(async () => {\n\t\t\t\tthis.visible = true\n\t\t\t\tawait this.loadIconPathData()\n\t\t\t})\n\t\t}\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tif (this.intersectionObserver) {\n\t\t\tthis.intersectionObserver.disconnect()\n\t\t\tthis.intersectionObserver = null\n\t\t}\n\t}\n\n\tasync componentWillLoad(): Promise<void> {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateColor(this.color)\n\t\tawait this.loadIconPathData()\n\t}\n\n\tprivate waitUntilVisible(callback: () => void): void {\n\t\tif (!Build.isBrowser || typeof window === \"undefined\" || !(window as any).IntersectionObserver) {\n\t\t\tcallback()\n\t\t\treturn\n\t\t}\n\t\tthis.intersectionObserver = new IntersectionObserver(\n\t\t\tentries => {\n\t\t\t\tentries.forEach(entry => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tif (this.intersectionObserver) {\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\n\t\t\t\t\t\t\tthis.intersectionObserver = null\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcallback()\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t{rootMargin: \"50px\"},\n\t\t)\n\t\tthis.intersectionObserver.observe(this.host)\n\t}\n\n\tprivate async loadIcon() {\n\t\ttry {\n\t\t\tconst {name, type} = this\n\t\t\tconst data = await fetchIcon({name, type})\n\t\t\tconst isValid = isValidSVG(data)\n\t\t\tthis.host.innerHTML = isValid ? data : null;\n\t\t} catch (e) {\n\t\t\tconsole.log(e);\n\t\t\tconsole.log(JSON.stringify(e));\n\t\t\tthis.host.innerHTML = ''\n\t\t\tthis.error = true\n\t\t}\n\t}\n\n\trender() {\n\t\tif (this.error) {\n\t\t\treturn null\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(IconClass.root)} size={this.size} color={this.color}/>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getAssetPath } from "@stencil/core";
|
|
2
1
|
import { dsVersion } from "./ds.utils";
|
|
3
2
|
import { iconsPath } from "../helpers/Dom/win";
|
|
4
3
|
const iconCache = {};
|
|
@@ -8,20 +7,14 @@ const iconUrl = (path, name, type) => {
|
|
|
8
7
|
if (isExternalUrl(path)) {
|
|
9
8
|
return `${path}/${type}/${name}.svg?v=${dsVersion()}`;
|
|
10
9
|
}
|
|
11
|
-
return
|
|
10
|
+
return `${path}/${type}/${name}.svg` + `?v=${dsVersion()}`;
|
|
12
11
|
};
|
|
13
12
|
export async function fetchIcon({ name, type }) {
|
|
14
13
|
const cacheKey = type + "-" + name;
|
|
15
|
-
console.log('cacheKey', cacheKey);
|
|
16
|
-
console.log('iconCache[cacheKey]', iconCache, iconCache[cacheKey]);
|
|
17
14
|
if (iconCache[cacheKey]) {
|
|
18
15
|
return iconCache[cacheKey];
|
|
19
16
|
}
|
|
20
|
-
console.log('requestCache[cacheKey]', requestCache, requestCache[cacheKey]);
|
|
21
17
|
if (!requestCache[cacheKey]) {
|
|
22
|
-
console.log('iconsPath()', iconsPath());
|
|
23
|
-
console.log('name, type', name, type);
|
|
24
|
-
console.log('iconUrl(iconsPath(), name, type)', iconUrl(iconsPath(), name, type));
|
|
25
18
|
requestCache[cacheKey] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {
|
|
26
19
|
if (resp.status === 200) {
|
|
27
20
|
return resp.text();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.utils.js","sourceRoot":"","sources":["../../../../../src/utils/icon.utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"icon.utils.js","sourceRoot":"","sources":["../../../../../src/utils/icon.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAA;AACpC,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAA;AAE5C,MAAM,SAAS,GAA8B,EAAE,CAAA;AAC/C,MAAM,YAAY,GAAuC,EAAE,CAAA;AAE3D,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;AACjG,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,IAAY,EAAE,IAAY,EAAE,EAAE;IACzD,IAAI,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC;QACtB,OAAO,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,UAAU,SAAS,EAAE,EAAE,CAAA;IACzD,CAAC;IACD,OAAO,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,MAAM,GAAG,MAAM,SAAS,EAAE,EAAE,CAAA;AAC9D,CAAC,CAAA;AAED,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,EAAC,IAAI,EAAE,IAAI,EAAiC;IACxE,MAAM,QAAQ,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,CAAA;IAClC,IAAI,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC,QAAQ,CAAC,CAAA;IAC9B,CAAC;IAED,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1B,YAAY,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACzE,IAAI,IAAI,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBACtB,OAAO,IAAI,CAAC,IAAI,EAAE,CAAA;YACtB,CAAC;iBAAM,CAAC;gBACJ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAA;YAC9C,CAAC;QACL,CAAC,CAAC,CAAA;IACN,CAAC;IACD,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAA;IACzC,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAA;IAC1B,OAAO,IAAI,CAAA;AACf,CAAC","sourcesContent":["import {dsVersion} from \"./ds.utils\"\nimport {iconsPath} from \"../helpers/Dom/win\"\n\nconst iconCache: { [key: string]: string } = {}\nconst requestCache: { [key: string]: Promise<string> } = {}\n\nconst isExternalUrl = (path: string) => path.startsWith(\"http://\") || path.startsWith(\"https://\")\nconst iconUrl = (path: string, name: string, type: string) => {\n if (isExternalUrl(path)) {\n return `${path}/${type}/${name}.svg?v=${dsVersion()}`\n }\n return `${path}/${type}/${name}.svg` + `?v=${dsVersion()}`\n}\n\nexport async function fetchIcon({name, type}: { name: string; type: string }): Promise<string> {\n const cacheKey = type + \"-\" + name\n if (iconCache[cacheKey]) {\n return iconCache[cacheKey]\n }\n\n if (!requestCache[cacheKey]) {\n requestCache[cacheKey] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {\n if (resp.status === 200) {\n return resp.text()\n } else {\n throw new Error(\"Gov Icon doesn't exists\")\n }\n })\n }\n const path = await requestCache[cacheKey]\n iconCache[cacheKey] = path\n return path\n}\n"]}
|
|
@@ -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-42200001.js";import{v as c}from"./p-0b3574c2.js";import{A as o,b as n,a as d}from"./p-d4509899.js";import{g as f,t as b,b as r}from"./p-ea7fdd2e.js";import{i as h}from"./p-33d5d1ed.js";import{t as m}from"./p-26618322.js";import{d as l}from"./p-a877bf8a.js";const p=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.inheritedAttributes={};this.openState=undefined;this.identifier=undefined;this.size=undefined;this.disabled=false;this.open=false;this.h=f(this.host)}validateSize(e){c(d,e,n.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=h(this.host)}componentDidRender(){m((()=>this.getPropsFromParents()))}getPropsFromParents(){const e=this.h.getParent(o.root);if(e){this.size=e.getAttribute("size")}}render(){return a(i,{key:"1beb62527ea9274e6280ce0b64c9d52c12e4a993",class:this.h.classes([n.root,this.disabled&&n.disabled]),size:this.size,role:"listitem"},a("details",{key:"53ca7688e8f26e85cd76feb073a26d04c5505d2b",class:n.details,id:this.identifier,"aria-disabled":b(this.disabled),open:this.open},a("summary",Object.assign({key:"19fec49b0066b7a6162a6010e0ee20431c2a578b",onClick:e=>{e.stopPropagation();e.preventDefault();!this.disabled&&this.toggle().finally()},class:n.summary,tabIndex:this.disabled?-1:0,"aria-expanded":r(this.open)},this.inheritedAttributes),this.h.hasSlot("icon")&&a("span",{key:"19254947c22fa2b1a2fa4e26eacb22c0c89b40c9",class:n.icon},a("slot",{key:"262be1640f250fabf9918f4162c071bb68dc4fb3",name:"icon"})),a("span",{key:"ebb5ef762ef51921b68a8063fd09c979d7d0d32d",class:n.title},a("slot",{key:"75783345d2276f06e53c401761cb4e57d241e5e0",name:"label"}),a("slot",{key:"f2d9cdff693edbcae6293921fde7996d1b1251b6",name:"annotation"})),a("span",{key:"f7e28ea54455756c7d146c7b88be7001e80b07a8",class:n.right},a("slot",{key:"e76b31bf1c349a8a86d4b91ec1cfa650a75edf60",name:"suffix"}),a("span",{key:"87ea99c9862deb3ff9820fa383cec52956b4655a",class:n.arrow},a("slot",{key:"c8b64a90455a731f359e12550664ba5aa905abbc",name:"toggle-icon"},a("gov-icon",{key:"867406c5634d6446683529f5f647492b9b289a31",name:"chevron-down",type:"components"}))))),a("div",{key:"2adf7441dd470ae1b32a08fb374cd1d9e2d1f789",class:n.content},a("slot",{key:"8eb27d0b33689933b6e71850324c35c89d71c4c0"}))))}async toggle(){this.open=!this.open;this.govChange.emit({open:this.open,component:n.root,ref:this.host})}async currentState(){return this.open}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-accordion-item",{identifier:[1],size:[1025],disabled:[4],open:[1028],openState:[32],toggle:[64],currentState:[64]},undefined,{size:["validateSize"]}]);function u(){if(typeof customElements==="undefined"){return}const e=["gov-accordion-item","gov-icon"];e.forEach((e=>{switch(e){case"gov-accordion-item":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-icon":if(!customElements.get(e)){l()}break}}))}u();const y=p;const g=u;export{y as GovAccordionItem,g as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-accordion-item.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as s,c as t,h as o,d as i}from"./p-
|
|
1
|
+
import{p as e,H as s,c as t,h as o,d as i}from"./p-42200001.js";import{v as a}from"./p-0b3574c2.js";import{A as c,a as n,b as r}from"./p-d4509899.js";import{g as d}from"./p-ea7fdd2e.js";const h=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.hydrated=false;this.size="m";this.noBorder=false;this.h=d(this.host)}validateSize(e){a(n,e,c.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(r.root).forEach((e=>{e.addEventListener("gov-change",(e=>{e.stopPropagation();this.govChange.emit({component:c.root,open:e.detail.open,ref:e.detail.ref})}))}))}connectedCallback(){this.hydrated=true}render(){return o(i,{key:"98666441f80fcb633f05142c4a695e2478af5383",hydrated:this.hydrated,class:this.h.classes(c.root),size:this.size,role:"list"},o("slot",{key:"db7aa61e809f901019dcb301aa529cdc9bc7530e"}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-accordion",{size:[1],noBorder:[4,"no-border"]},undefined,{size:["validateSize"]}]);function f(){if(typeof customElements==="undefined"){return}const e=["gov-accordion"];e.forEach((e=>{switch(e){case"gov-accordion":if(!customElements.get(e)){customElements.define(e,h)}break}}))}f();const m=h;const l=f;export{m as GovAccordion,l as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-accordion.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-4d513423.js";const t=o;const p=s;export{t as GovAttachmentsItem,p as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-attachments-item.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-73938936.js";const t=o;const p=s;export{t as GovAttachments,p as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-attachments.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-7be2301a.js";const t=o;const a=s;export{t as GovBackdrop,a as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-backdrop.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as s,c as t,h as i,d as a}from"./p-
|
|
1
|
+
import{p as e,H as s,c as t,h as i,d as a}from"./p-42200001.js";import{a as o}from"./p-80dad64b.js";import{c}from"./p-e8ec030e.js";import{g as n}from"./p-ea7fdd2e.js";import{t as l}from"./p-26618322.js";import{d as r}from"./p-558cbab0.js";import{d}from"./p-a877bf8a.js";const h={root:"gov-breadcrumbs"};const b=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.inited=false;this.collapsible=false;this.isExpanded=false;this.accessibleLabel=undefined;this.accessibleLabelledBy=undefined;this.accessibleToggleLabel="Zobrazit či skrýt navigaci";this.expanded=false;this.toggleOption=false;this.h=n(this.host)}async componentDidRender(){this.scheduleContentVerification();if(c()){l((()=>this.validateAccessibility()))}}scheduleContentVerification(){if(this.inited)return;this.inited=true;l((()=>{this.calculateWidthOfItems();this.inited=false}))}calculateWidthOfItems(){const e=this.host.getBoundingClientRect().width;let s=0;this.host.querySelectorAll("li").forEach((e=>{s+=e.getBoundingClientRect().width}));this.toggleOption=s>e}render(){return i(a,{key:"81d7a8e273e1ce4740ee35ebe4a570ee8c5e73a4",class:this.h.classes(h.root),expanded:this.expanded},i("nav",{key:"dc37fa314f5d84c6c517f64229ef601b256f3ad5","aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy},i("slot",{key:"4ead548352e642c0994360d74a98123782790a04"})),this.toggleOption?i("gov-button",{size:"xs",color:"primary",type:"base","aria-label":this.accessibleToggleLabel,"aria-pressed":this.expanded,"aria-expanded":this.expanded,"on-gov-click":()=>this.expanded=!this.expanded},i("gov-icon",{name:this.expanded?"chevron-up":"chevron-down",type:"components"})):null)}async validateAccessibility(){o(this.accessibleLabel,this.accessibleLabelledBy,h.root,this.host);o(this.accessibleToggleLabel,undefined,h.root,this.host)}get host(){return this}},[4,"gov-breadcrumbs",{collapsible:[4],isExpanded:[4,"is-expanded"],accessibleLabel:[1,"accessible-label"],accessibleLabelledBy:[1,"accessible-labelledby"],accessibleToggleLabel:[1,"accessible-toggle-label"],expanded:[32],toggleOption:[32],validateAccessibility:[64]}]);function f(){if(typeof customElements==="undefined"){return}const e=["gov-breadcrumbs","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-breadcrumbs":if(!customElements.get(e)){customElements.define(e,b)}break;case"gov-button":if(!customElements.get(e)){r()}break;case"gov-icon":if(!customElements.get(e)){d()}break}}))}f();const m=b;const p=f;export{m as GovBreadcrumbs,p as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-breadcrumbs.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-558cbab0.js";const t=o;const a=s;export{t as GovButton,a as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-button.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as i,c as s,h as
|
|
1
|
+
import{p as e,H as i,c as s,h as a,d as t}from"./p-42200001.js";import{g as c,b as o}from"./p-ea7fdd2e.js";import{c as d}from"./p-cd6c2938.js";import{a as n}from"./p-80dad64b.js";import{c as r}from"./p-e8ec030e.js";import{d as f}from"./p-e0e2e9c1.js";import{d as l}from"./p-a877bf8a.js";var h;(function(e){e["HORIZONTAL"]="horizontal";e["VERTICAL"]="vertical"})(h||(h={}));const b={root:"gov-card",header:"gov-card__header",arrow:"gov-card__arrow",inner:"gov-card__inner",img:"gov-card__img",icon:"gov-card__icon",content:"gov-card__content",footer:"gov-card__footer"};const m=e(class e extends i{constructor(){super();this.__registerHost();this.govToggle=s(this,"gov-toggle",7);this.hydrated=false;this.direction="vertical";this.collapsible=false;this.open=true;this.accessibleTriggerLabel=undefined;this.accessibleTriggerLabelledBy=undefined;this.h=c(this.host);this.headlineId=d("GovCardHeadline");this.contentId=d("GovCardContent")}async componentDidRender(){if(r()){await f(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){return a(t,{key:"16ef4ffbb0a84bb231008f4f52a4ffe1f2f809d8",class:this.h.classes(b.root),open:this.open,collapsible:o(this.collapsible),direction:this.direction,hydrated:this.hydrated},this.collapsible?a("button",{id:this.headlineId,class:b.header,"aria-label":this.accessibleTriggerLabel,"aria-labelledby":this.accessibleTriggerLabelledBy,"aria-expanded":o(this.open),"aria-controls":this.contentId,onClick:this.onClickHandler.bind(this)},a("slot",{name:"headline"}),a("gov-icon",{class:b.arrow,name:"chevron-down",type:"components"})):this.h.hasSlot("headline")?a("div",{class:b.header},a("slot",{name:"headline"})):null,a("div",{key:"749f6e4b624f4cdda53d2e3433b451d56c742667",class:b.inner,id:this.contentId,"aria-hidden":this.collapsible?o(!this.open):undefined,hidden:this.collapsible?!this.open:undefined,"aria-labelledby":this.collapsible?this.headlineId:undefined},this.h.hasSlot("img")&&a("div",{key:"f4b953ddf9b4f59bc111b512bb3de3510b28af7f",class:b.img},a("slot",{key:"2867a29e49e67aff041ac0705527c5f76f4a019e",name:"img"})),this.h.hasSlot("icon")&&a("div",{key:"8c8e55d3faff7cfbd6abe698cd8801f7fc41dbad",class:b.icon},a("slot",{key:"4d9eaeb0b3af65e4bf5de75090f9346942069e86",name:"icon"})),a("div",{key:"77a9a065fb2803b5f39f1b5716d9810c04b6971b",class:b.content},a("slot",{key:"acec7d3d4b6ac5533e5df218fe38e26147c440d8"})),this.h.hasSlot("footer")&&a("div",{key:"1e63a0811f487e18cbbef8b045651c0e5b745f37",class:b.footer},a("slot",{key:"4bffc12bffb3e29527aad38b6edbe8c00527a843",name:"footer"}))))}onClickHandler(e){e.stopPropagation();if(this.collapsible){this.open=!this.open;this.govToggle.emit({open:this.open,element:this.host})}}async validateAccessibility(){if(this.collapsible){n(this.accessibleTriggerLabel,this.accessibleTriggerLabelledBy,b.root,this.host)}}get host(){return this}},[4,"gov-card",{direction:[1],collapsible:[4],open:[1540],accessibleTriggerLabel:[1,"accessible-label"],accessibleTriggerLabelledBy:[1,"accessible-labelledby"],validateAccessibility:[64]}]);function v(){if(typeof customElements==="undefined"){return}const e=["gov-card","gov-icon"];e.forEach((e=>{switch(e){case"gov-card":if(!customElements.get(e)){customElements.define(e,m)}break;case"gov-icon":if(!customElements.get(e)){l()}break}}))}v();const g=m;const p=v;export{g as GovCard,p as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-card.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-076c8b31.js";const t=o;const c=s;export{t as GovChip,c as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-chip.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,d as o}from"./p-
|
|
1
|
+
import{p as t,H as e,h as s,d as o}from"./p-42200001.js";import{g as n}from"./p-ea7fdd2e.js";const c={root:"gov-container"};const r=t(class t extends e{constructor(){super();this.__registerHost();this.h=n(this.host)}render(){return s(o,{key:"0844c86e0eacd5f89bcfcad2b60e56da0097b506",class:this.h.classes(c.root)},s("slot",{key:"5cd801a016968be5968a3598d3efa3b222953120"}))}get host(){return this}},[4,"gov-container"]);function a(){if(typeof customElements==="undefined"){return}const t=["gov-container"];t.forEach((t=>{switch(t){case"gov-container":if(!customElements.get(t)){customElements.define(t,r)}break}}))}a();const i=r;const d=a;export{i as GovContainer,d as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-container.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,H as t,h as e,d as r}from"./p-
|
|
1
|
+
import{p as o,H as t,h as e,d as r}from"./p-42200001.js";import{C as s}from"./p-5aad3497.js";import{g as a}from"./p-ea7fdd2e.js";import{v as c}from"./p-0b3574c2.js";import{p as n}from"./p-e0e2e9c1.js";n(s,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);const i={root:"gov-control-group"};const d=o(class o extends t{constructor(){super();this.__registerHost();this.color=s.PRIMARY;this.noBorder=false;this.fitContent=false;this.h=a(this.host)}validateColor(o){c(s,o,i.root)}render(){return e(r,{key:"bee513bb064b3a276eaede7f93ed12b97edb7adb",class:this.h.classes(i.root),color:this.color},e("slot",{key:"adba55ccd38d432ae11fa4967996d8bcaf552427"}))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-control-group",{color:[1],noBorder:[4,"no-border"],fitContent:[4,"fit-content"]},undefined,{color:["validateColor"]}]);function l(){if(typeof customElements==="undefined"){return}const o=["gov-control-group"];o.forEach((o=>{switch(o){case"gov-control-group":if(!customElements.get(o)){customElements.define(o,d)}break}}))}l();const f=d;const p=l;export{f as GovControlGroup,p as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-control-group.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as a,h as c,d as o}from"./p-
|
|
1
|
+
import{p as e,H as a,h as c,d as o}from"./p-42200001.js";import{g as s}from"./p-ea7fdd2e.js";const t={root:"gov-cookiebar",content:"gov-cookiebar__content",actions:"gov-cookiebar__actions",actionsPrimary:"gov-cookiebar__actions--primary",actionsSecondary:"gov-cookiebar__actions--secondary"};const i=e(class e extends a{constructor(){super();this.__registerHost();this.h=s(this.host)}render(){return c(o,{key:"311f0da16d86ab548e90e8f7be69d23d88a71ae4",class:this.h.classes(t.root)},c("div",{key:"f371e0bfa5ad8b2195aec2fd0c02f86fb81d58ff",class:t.content},c("slot",{key:"96433ca7228d4bf61bfc6dc041bc519c83f56109",name:"headline"}),c("slot",{key:"4fa8e397eba029f55329d0ca6d24044ae7c9a513"})),(this.h.hasSlot("actions-primary")||this.h.hasSlot("actions-secondary"))&&c("div",{key:"a1d5e5d03d8d89bceb65f45f75d7dc3d446d1b62",class:t.actions},this.h.hasSlot("actions-primary")&&c("div",{key:"4ee2b3b82b91bdfb3d87a7bc34e9b0d4e2fc4f33",class:t.actionsPrimary},c("slot",{key:"7c0cbf9c5f334cffa4a4eb3f2af9a05bfc8af208",name:"actions-primary"})),this.h.hasSlot("actions-secondary")&&c("div",{key:"e40a9f403e994584f53df9e0d84e27aa08c849e2",class:t.actionsSecondary},c("slot",{key:"5a2bc741413334a0f08bf2d17b94d1c51b5c3f69",name:"actions-secondary"}))))}get host(){return this}},[4,"gov-cookiebar"]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-cookiebar"];e.forEach((e=>{switch(e){case"gov-cookiebar":if(!customElements.get(e)){customElements.define(e,i)}break}}))}d();const n=i;const f=d;export{n as GovCookiebar,f as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-cookiebar.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as s,c as a,h as i,d as t}from"./p-
|
|
1
|
+
import{p as e,H as s,c as a,h as i,d as t}from"./p-42200001.js";import{g as o,a as c,c as l}from"./p-ea7fdd2e.js";import{c as d}from"./p-e8ec030e.js";import{b}from"./p-80dad64b.js";import{c as n}from"./p-cd6c2938.js";import{t as h}from"./p-26618322.js";import{d as r}from"./p-7be2301a.js";import{d as f}from"./p-558cbab0.js";import{d as g}from"./p-a877bf8a.js";const m={root:"gov-dialog",dialog:"gov-dialog__dialog",inner:"gov-dialog__inner",header:"gov-dialog__header",title:"gov-dialog__title",content:"gov-dialog__content",close:"gov-dialog__close",footer:"gov-dialog__footer",bodyFix:"body-fixed"};const p=e(class e extends s{constructor(){super();this.__registerHost();this.govClose=a(this,"gov-close",7);this.hydrated=false;this.open=false;this.blockClose=false;this.blockBackdropClose=false;this.role="dialog";this.labelTag="h2";this.accessibleLabelledBy=undefined;this.accessibleDescribedBy=undefined;this.accessibleCloseLabel="Zavřít okno";this.accessibleCloseLabelledBy=undefined;this.h=o(this.host);this.labelId=n("GovDialogLabel");this.contentId=n("GovDialogContent")}watchOpen(e){this.open=e;this.setFocus().finally()}showDialog(){this.open=true;document.body.classList.add(m.bodyFix)}hideDialog(){this.open=false;document.body.classList.remove(m.bodyFix)}async componentDidRender(){if(d()){h((()=>this.validateAccessibility()))}if(this.open){this.showDialog()}else{this.hideDialog()}}connectedCallback(){this.hydrated=true}disconnectedCallback(){document.body.classList.remove(m.bodyFix)}render(){return i(t,{key:"c3b65521da7837b81972262ecf614d3c12f14bb3",class:this.h.classes(m.root),open:this.open,hydrated:this.hydrated},i("dialog",{key:"98b6d6db6fc9bd35760c03586548cc8a2470752a",class:m.dialog,hidden:!this.open,tabindex:c(this.open),open:this.open,"aria-modal":"true","aria-hidden":l(!this.open),"aria-labelledby":this.accessibleLabelledBy||this.labelId,"aria-describedby":this.accessibleDescribedBy||this.contentId,role:this.role},i("div",{key:"a8517c656ef3d3e3cf17bc9914e268a20b0e0e4b",class:m.inner},i("div",{key:"3ba16e3bafe7936f0c0a999d45d5efdd64291ec3",class:m.header},i("slot",{key:"736a0a11d601e9f522e69369ffa0f276c9673803",name:"icon"}),this.h.hasSlot("title")&&i("span",{key:"5505a53174c82c1faf73ed500c5672f2dc8ea83b",class:m.title,id:this.labelId},i("slot",{key:"391dd6236c23c14e62c8c97a94c5733409939c32",name:"title"})),i("gov-button",{key:"867505a691e69da09808350fc7eefb51974005ba",ref:e=>this.closeCtaRef=e,disabled:this.blockClose,class:m.close,color:"primary","aria-label":this.accessibleCloseLabel,"aria-labelledby":this.accessibleCloseLabelledBy,type:"base","on-gov-click":this.onCloseHandler.bind(this)},i("gov-icon",{key:"6fe742ccf5aca7f27cac627373a338d46bbccfda",slot:"icon-start",name:"x-lg",type:"components"}))),i("div",{key:"9d9d6a45d79215ba5415512405ce7577d6a1dc26",class:m.content,id:this.contentId},i("slot",{key:"f9b32ee565586b3741c166a0aa14ca1d1c55f032"})),this.h.hasSlot("footer")&&i("div",{key:"8628b46f0196f38f7d2f273f0860a7c6cee62655",class:m.footer},i("slot",{key:"0742967012eab82c36f9dfe0f3b43213be8bcd47",name:"footer"})))),this.open?i("gov-backdrop",{disabled:this.blockBackdropClose,"aria-label":this.accessibleCloseLabel,"aria-labelled-by":this.accessibleCloseLabelledBy,"on-gov-click":this.onCloseHandler.bind(this)}):null)}onCloseHandler(e){e.stopPropagation();e.preventDefault();if(this.blockClose===false){this.hideDialog();this.govClose.emit(e)}}async setFocus(){if(this.open&&this.closeCtaRef){this.closeCtaRef.setFocus().catch()}}async validateAccessibility(){b(this.accessibleLabelledBy,"accessible-labelled-by",m.root);b(this.accessibleDescribedBy,"accessible-described-by",m.root)}get host(){return this}static get watchers(){return{open:["watchOpen"]}}},[4,"gov-dialog",{open:[1540],blockClose:[4,"block-close"],blockBackdropClose:[4,"block-backdrop-close"],role:[1],labelTag:[1,"label-tag"],accessibleLabelledBy:[1,"accessible-labelled-by"],accessibleDescribedBy:[1,"accessible-described-by"],accessibleCloseLabel:[1,"accessible-close-label"],accessibleCloseLabelledBy:[1,"accessible-close-labelled-by"],setFocus:[64],validateAccessibility:[64]},undefined,{open:["watchOpen"]}]);function y(){if(typeof customElements==="undefined"){return}const e=["gov-dialog","gov-backdrop","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-dialog":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-backdrop":if(!customElements.get(e)){r()}break;case"gov-button":if(!customElements.get(e)){f()}break;case"gov-icon":if(!customElements.get(e)){g()}break}}))}y();const v=p;const k=y;export{v as GovDialog,k as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-dialog.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as e,c as i,h as
|
|
1
|
+
import{p as t,H as e,c as i,h as r,d as s}from"./p-42200001.js";import{g as n,c as o}from"./p-ea7fdd2e.js";import{c as a}from"./p-cd6c2938.js";import{B as c}from"./p-44a8a668.js";var h=Object.defineProperty;var d=(t,e)=>{for(var i in e)h(t,i,{get:e[i],enumerable:true})};var u={};d(u,{err:()=>f,map:()=>p,ok:()=>l,unwrap:()=>v,unwrapErr:()=>g});var l=t=>({isOk:true,isErr:false,value:t});var f=t=>({isOk:false,isErr:true,value:t});function p(t,e){if(t.isOk){const i=e(t.value);if(i instanceof Promise){return i.then((t=>l(t)))}else{return l(i)}}if(t.isErr){const e=t.value;return f(e)}throw"should never get here"}var v=t=>{if(t.isOk){return t.value}else{throw t.value}};var g=t=>{if(t.isErr){return t.value}else{throw t.value}};const m={triggerEvents:"click",exclude:""};function w(t,e,i,r=m){const s=y(r);b(r).forEach((r=>{window.addEventListener(r,(r=>{k(r,t,e,i,s)}),false)}))}function k(t,e,i,r,s){const n=t.target;if(!i.contains(n)&&!E(n,s)){r.call(e)}}function b(t){if(t.triggerEvents){return t.triggerEvents.split(",").map((t=>t.trim()))}return["click"]}function y(t){if(t.exclude){try{return Array.from(document.querySelectorAll(t.exclude))}catch(e){console.warn(`@ClickOutside: Exclude: '${t.exclude}' will not be evaluated. Check your exclude selector syntax.`,e)}}return}function E(t,e){if(t&&e){for(let i of e){if(i.contains(t)){return true}}}return false}var x;(function(t){t["LEFT"]="left";t["RIGHT"]="right"})(x||(x={}));const O={root:"gov-dropdown",list:"gov-dropdown__list"};const j=t(class t extends e{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change",7);this.identifier=undefined;this.open=false;this.position=x.LEFT;this.h=n(this.host);this.listId=a("GovDropdownList");this.controlId=a("GovDropdownControl")}watchOpen(){var t;(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-expanded",o(this.open))}get trigger(){return this.host.querySelector(`* > ${c.root}`)}get list(){return this.h.getSlot("list")}componentWillLoad(){var t;if(!this.trigger)return;this.trigger.setAttribute("aria-controls",this.listId);this.trigger.setAttribute("aria-haspopup",o(!!this.list));this.trigger.setAttribute("aria-expanded",o(this.open));this.trigger.setAttribute("identifier",(t=this.identifier)!==null&&t!==void 0?t:this.controlId);this.trigger.addEventListener("gov-click",(t=>{t.preventDefault();t.stopPropagation();this.open=!this.open;this.govChange.emit({component:O.root,originalEvent:t,open:this.open})}))}render(){return r(s,{key:"43c2a03dcb27ebe54f8dd00ca1120b848cac957c",class:this.h.classes([O.root]),open:this.open,position:this.position},r("slot",{key:"732c956fe37283578a95c843cf94ad590cd16402"}),r("div",{key:"c3934a0f7c8303950a5c7898574fcea2e14e1890",ref:t=>w(this,t,(()=>this.open=false)),class:O.list,id:this.listId,"aria-labelledby":this.controlId,"aria-hidden":o(!this.open),hidden:!this.open},r("slot",{key:"cb685039c57f9d32ae7c238fcb7457fe72b4c9c4",name:"list"})))}async getState(){return this.open}async toggle(){this.open=!this.open}get host(){return this}static get watchers(){return{open:["watchOpen"]}}},[4,"gov-dropdown",{identifier:[1],open:[1028],position:[1],getState:[64],toggle:[64]},undefined,{open:["watchOpen"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-dropdown"];t.forEach((t=>{switch(t){case"gov-dropdown":if(!customElements.get(t)){customElements.define(t,j)}break}}))}C();const D=j;const G=C;export{D as GovDropdown,G as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-dropdown.js.map
|