@gov-design-system-ce/components 4.1.1 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +2 -2
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-card.cjs.entry.js +9 -6
- package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-chip.cjs.entry.js +2 -2
- 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-empty.cjs.entry.js +1 -1
- package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
- package/dist/cjs/{gov-flex_4.cjs.entry.js → gov-flex_3.cjs.entry.js} +11 -28
- package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +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 +6 -6
- package/dist/cjs/gov-form-label.cjs.entry.js +27 -0
- package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +2 -2
- 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 +2 -2
- 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-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 +2 -1
- package/dist/cjs/gov-tag.cjs.entry.js.map +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 +2 -2
- package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
- package/dist/cjs/index-7ff4447c.js +6 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.css +2 -7
- package/dist/collection/components/gov-card/constants.js +7 -4
- package/dist/collection/components/gov-card/constants.js.map +1 -1
- package/dist/collection/components/gov-card/gov-card.js +16 -10
- package/dist/collection/components/gov-card/gov-card.js.map +1 -1
- package/dist/collection/components/gov-chip/gov-chip.js +2 -2
- package/dist/collection/components/gov-container/gov-container.js +1 -1
- package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
- package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
- package/dist/collection/components/gov-empty/gov-empty.js +1 -1
- package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
- package/dist/collection/components/gov-flex/constants.js +2 -0
- package/dist/collection/components/gov-flex/constants.js.map +1 -1
- package/dist/collection/components/gov-flex/gov-flex.js +33 -9
- package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +1 -1
- package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-group.css +3 -8
- package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.js +5 -5
- package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
- package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +2 -2
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.js +2 -2
- package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
- package/dist/collection/components/gov-grid/gov-grid.js +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 +20 -1
- package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
- package/dist/collection/components/gov-theme-switch/constants.js +0 -2
- package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +32 -9
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +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/pages/Card.js +22 -37
- package/dist/collection/pages/Card.js.map +1 -1
- package/dist/collection/pages/Flex.js +62 -0
- package/dist/collection/pages/Flex.js.map +1 -0
- package/dist/collection/pages/Forms.js +5 -5
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/collection/pages/Tag.js +30 -23
- package/dist/collection/pages/Tag.js.map +1 -1
- package/dist/components/gov-accordion-item.js +1 -1
- package/dist/components/gov-attachments-item.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-card.js.map +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-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-flex.js.map +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-group.js.map +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-label.js.map +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-group.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-tag.js.map +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-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-tooltip.js.map +1 -1
- package/dist/components/gov-wizard-item.js +1 -1
- package/dist/components/gov-wizard.js +1 -1
- package/dist/components/{p-46c567fd.js → p-18ab0d24.js} +2 -2
- package/dist/components/p-28776006.js +2 -0
- package/dist/components/{p-b95ebe8c.js.map → p-28776006.js.map} +1 -1
- package/dist/components/p-40c2fb42.js +2 -0
- package/dist/components/{p-1eb9c053.js.map → p-40c2fb42.js.map} +1 -1
- package/dist/components/{p-283b66c3.js → p-48c4d5c8.js} +2 -2
- package/dist/components/{p-318d89bd.js → p-b25af2cf.js} +2 -2
- package/dist/components/{p-ac359044.js → p-b97d8edd.js} +2 -2
- package/dist/components/p-c438a723.js +2 -0
- package/dist/components/{p-a6be4769.js → p-ce90ff14.js} +2 -2
- package/dist/components/p-d962bf44.js +2 -0
- package/dist/core/core.css +438 -273
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-c916d0d2.entry.js → p-0dac0792.entry.js} +2 -2
- package/dist/core/{p-b7cfe254.entry.js → p-12d1e5bc.entry.js} +2 -2
- package/dist/core/p-182d03c1.entry.js +2 -0
- package/dist/core/p-2496f2a5.entry.js +2 -0
- package/dist/core/{p-e61aa53b.entry.js.map → p-2496f2a5.entry.js.map} +1 -1
- package/dist/core/p-29d16111.entry.js +2 -0
- package/dist/core/{p-019e967c.entry.js.map → p-29d16111.entry.js.map} +1 -1
- package/dist/core/p-2b51b8e8.entry.js +2 -0
- package/dist/core/p-2b51b8e8.entry.js.map +1 -0
- package/dist/core/p-2bde147f.entry.js +2 -0
- package/dist/core/{p-bdc51179.entry.js.map → p-2bde147f.entry.js.map} +1 -1
- package/dist/core/{p-ed833334.entry.js → p-2e21a994.entry.js} +2 -2
- package/dist/core/p-3df6c6cd.entry.js +2 -0
- package/dist/core/p-436e7690.entry.js +2 -0
- package/dist/core/p-467f778b.entry.js +2 -0
- package/dist/core/p-4d81039c.entry.js +2 -0
- package/dist/core/p-520ac994.entry.js +2 -0
- package/dist/core/p-53fa7648.entry.js +2 -0
- package/dist/core/{p-5c9e6275.entry.js.map → p-53fa7648.entry.js.map} +1 -1
- package/dist/core/{p-0fdd8929.entry.js → p-581c8075.entry.js} +2 -2
- package/dist/core/{p-d836fcde.entry.js → p-5a92b9d9.entry.js} +2 -2
- package/dist/core/{p-8506b611.js → p-5fbde4f9.js} +2 -2
- package/dist/core/{p-9fe35463.entry.js → p-605e72b1.entry.js} +2 -2
- package/dist/core/{p-3cb36bae.entry.js → p-64dc1cdb.entry.js} +2 -2
- package/dist/core/{p-7e04730a.entry.js → p-6603e3df.entry.js} +2 -2
- package/dist/core/p-6f260a90.entry.js +2 -0
- package/dist/core/{p-c054f955.entry.js.map → p-6f260a90.entry.js.map} +1 -1
- package/dist/core/{p-bcb45a18.entry.js → p-71dc8171.entry.js} +2 -2
- package/dist/core/p-87562d9e.entry.js +2 -0
- package/dist/core/{p-6bb37fe2.entry.js.map → p-87562d9e.entry.js.map} +1 -1
- package/dist/core/p-88b69d30.entry.js +2 -0
- package/dist/core/{p-bc966c46.entry.js.map → p-88b69d30.entry.js.map} +1 -1
- package/dist/core/{p-ed8fc183.entry.js → p-8ece244d.entry.js} +2 -2
- package/dist/core/{p-561718cd.entry.js → p-913331e8.entry.js} +2 -2
- package/dist/core/p-979b03eb.entry.js +2 -0
- package/dist/core/{p-da7f1e11.entry.js.map → p-979b03eb.entry.js.map} +1 -1
- package/dist/core/{p-97a9725d.entry.js → p-97c65665.entry.js} +2 -2
- package/dist/core/p-97e8b4b3.entry.js +2 -0
- package/dist/core/{p-439b66a5.entry.js.map → p-97e8b4b3.entry.js.map} +1 -1
- package/dist/core/{p-d65cef62.entry.js → p-abefa59b.entry.js} +2 -2
- package/dist/core/{p-72130a8f.entry.js → p-aeab9c1a.entry.js} +2 -2
- package/dist/core/{p-ccec8019.entry.js → p-af9fe91a.entry.js} +2 -2
- package/dist/core/p-b0d1073c.entry.js +2 -0
- package/dist/core/{p-b923a8d9.entry.js.map → p-b0d1073c.entry.js.map} +1 -1
- package/dist/core/p-b245d627.entry.js +2 -0
- package/dist/core/{p-56dc370d.entry.js.map → p-b245d627.entry.js.map} +1 -1
- package/dist/core/p-b2abc2fc.entry.js +2 -0
- package/dist/core/{p-3d6edb09.entry.js.map → p-b2abc2fc.entry.js.map} +1 -1
- package/dist/core/{p-0be19b89.entry.js → p-b4cf97ab.entry.js} +2 -2
- package/dist/core/p-b766810e.entry.js +2 -0
- package/dist/core/p-b766810e.entry.js.map +1 -0
- package/dist/core/p-bc0ed2c1.entry.js +2 -0
- package/dist/core/{p-dea64896.entry.js → p-bf8529f8.entry.js} +2 -2
- package/dist/core/{p-1200a32d.entry.js → p-cd988543.entry.js} +2 -2
- package/dist/core/p-d2b11492.entry.js +2 -0
- package/dist/core/{p-41c6b262.entry.js.map → p-d2b11492.entry.js.map} +1 -1
- package/dist/core/p-d3f7d3d5.entry.js +2 -0
- package/dist/core/p-d6e972c0.entry.js +2 -0
- package/dist/core/p-d952e56f.entry.js +2 -0
- package/dist/core/p-eaa83b2f.entry.js +2 -0
- package/dist/core/p-ebc318d7.entry.js +2 -0
- package/dist/core/p-ebeb1a03.entry.js +2 -0
- package/dist/core/{p-04fa0ab5.entry.js.map → p-ebeb1a03.entry.js.map} +1 -1
- package/dist/core/{p-432c3875.entry.js → p-ee0f3bd9.entry.js} +2 -2
- package/dist/core/p-ee7af1ab.entry.js +2 -0
- package/dist/core/{p-2739fa61.entry.js.map → p-ee7af1ab.entry.js.map} +1 -1
- package/dist/core/{p-f7a4da9d.entry.js → p-eeee2325.entry.js} +2 -2
- package/dist/core/p-f83b9da5.entry.js +2 -0
- package/dist/core/{p-4c5f6299.entry.js.map → p-f83b9da5.entry.js.map} +1 -1
- package/dist/core/p-fa161f10.entry.js +2 -0
- package/dist/core/{p-e834ee73.entry.js → p-fa5b72de.entry.js} +2 -2
- package/dist/core/p-fb8c019a.entry.js +2 -0
- package/dist/core/p-fb8c019a.entry.js.map +1 -0
- package/dist/core/p-ff609d0e.entry.js +2 -0
- 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 +3 -3
- package/dist/esm/gov-attachments_3.entry.js.map +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 +10 -7
- package/dist/esm/gov-card.entry.js.map +1 -1
- package/dist/esm/gov-chip.entry.js +3 -3
- package/dist/esm/gov-container.entry.js +2 -2
- package/dist/esm/gov-control-group.entry.js +2 -2
- package/dist/esm/gov-cookiebar.entry.js +2 -2
- package/dist/esm/gov-dialog.entry.js +2 -2
- package/dist/esm/gov-dropdown.entry.js +1 -1
- package/dist/esm/gov-empty.entry.js +2 -2
- package/dist/esm/gov-error-code.entry.js +2 -2
- package/dist/esm/{gov-flex_4.entry.js → gov-flex_3.entry.js} +13 -29
- package/dist/esm/gov-flex_3.entry.js.map +1 -0
- package/dist/esm/gov-form-autocomplete.entry.js +2 -2
- package/dist/esm/gov-form-checkbox-group.entry.js +3 -3
- package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
- package/dist/esm/gov-form-checkbox.entry.js +1 -1
- package/dist/esm/gov-form-control.entry.js +2 -2
- package/dist/esm/gov-form-file.entry.js +2 -2
- package/dist/esm/gov-form-group.entry.js +2 -2
- package/dist/esm/gov-form-input_2.entry.js +7 -7
- package/dist/esm/gov-form-label.entry.js +23 -0
- package/dist/esm/gov-form-label.entry.js.map +1 -0
- package/dist/esm/gov-form-multi-select.entry.js +3 -3
- package/dist/esm/gov-form-password-power.entry.js +2 -2
- package/dist/esm/gov-form-radio-group.entry.js +3 -3
- package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
- package/dist/esm/gov-form-radio.entry.js +1 -1
- package/dist/esm/gov-form-search.entry.js +2 -2
- package/dist/esm/gov-form-select.entry.js +3 -3
- package/dist/esm/gov-form-switch.entry.js +1 -1
- package/dist/esm/gov-grid-item.entry.js +2 -2
- package/dist/esm/gov-grid.entry.js +2 -2
- package/dist/esm/gov-infobar.entry.js +3 -3
- 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 +2 -2
- package/dist/esm/gov-loading.entry.js +2 -2
- package/dist/esm/gov-message.entry.js +2 -2
- package/dist/esm/gov-pagination.entry.js +1 -1
- package/dist/esm/gov-spacer.entry.js +2 -2
- package/dist/esm/gov-stepper-item.entry.js +2 -2
- package/dist/esm/gov-stepper.entry.js +2 -2
- package/dist/esm/gov-tabs-item.entry.js +2 -2
- package/dist/esm/gov-tabs.entry.js +2 -2
- package/dist/esm/gov-tag.entry.js +3 -2
- package/dist/esm/gov-tag.entry.js.map +1 -1
- 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 +2 -2
- package/dist/esm/gov-tooltip-content.entry.js +2 -2
- package/dist/esm/gov-tooltip.entry.js +3 -3
- package/dist/esm/gov-wizard-item.entry.js +3 -3
- package/dist/esm/gov-wizard.entry.js +2 -2
- package/dist/esm/{index-c263e031.js → index-8dc58a1a.js} +8 -4
- package/dist/esm/{index-c263e031.js.map → index-8dc58a1a.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/hydrate/index.js +83 -76
- package/dist/hydrate/index.mjs +83 -76
- package/dist/types/components/gov-card/constants.d.ts +8 -4
- package/dist/types/components/gov-card/gov-card.d.ts +3 -2
- package/dist/types/components/gov-flex/constants.d.ts +4 -0
- package/dist/types/components/gov-flex/gov-flex.d.ts +9 -7
- package/dist/types/components/gov-tag/gov-tag.d.ts +4 -0
- package/dist/types/components/gov-theme-switch/constants.d.ts +0 -2
- package/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +8 -4
- package/dist/types/components.d.ts +50 -22
- package/dist/types/pages/Flex.d.ts +3 -0
- package/package.json +1 -1
- package/dist/cjs/gov-flex_4.cjs.entry.js.map +0 -1
- package/dist/components/p-1eb9c053.js +0 -2
- package/dist/components/p-3d7a21b5.js +0 -2
- package/dist/components/p-68a1aaec.js +0 -2
- package/dist/components/p-68a1aaec.js.map +0 -1
- package/dist/components/p-a6b7a6c2.js +0 -2
- package/dist/components/p-b95ebe8c.js +0 -2
- package/dist/core/p-00d153bf.entry.js +0 -2
- package/dist/core/p-019e967c.entry.js +0 -2
- package/dist/core/p-04fa0ab5.entry.js +0 -2
- package/dist/core/p-22fa411d.entry.js +0 -2
- package/dist/core/p-2739fa61.entry.js +0 -2
- package/dist/core/p-30eaeeec.entry.js +0 -2
- package/dist/core/p-3d6edb09.entry.js +0 -2
- package/dist/core/p-3f6a2d20.entry.js +0 -2
- package/dist/core/p-3f6a2d20.entry.js.map +0 -1
- package/dist/core/p-41c6b262.entry.js +0 -2
- package/dist/core/p-439b66a5.entry.js +0 -2
- package/dist/core/p-4b90fbc4.entry.js +0 -2
- package/dist/core/p-4c5f6299.entry.js +0 -2
- package/dist/core/p-535316b4.entry.js +0 -2
- package/dist/core/p-5396935e.entry.js +0 -2
- package/dist/core/p-56dc370d.entry.js +0 -2
- package/dist/core/p-5b2131c1.entry.js +0 -2
- package/dist/core/p-5c9e6275.entry.js +0 -2
- package/dist/core/p-65e67731.entry.js +0 -2
- package/dist/core/p-6bb37fe2.entry.js +0 -2
- package/dist/core/p-6e457b3d.entry.js +0 -2
- package/dist/core/p-7b7e502b.entry.js +0 -2
- package/dist/core/p-9c2c5447.entry.js +0 -2
- package/dist/core/p-9c2c5447.entry.js.map +0 -1
- package/dist/core/p-b923a8d9.entry.js +0 -2
- package/dist/core/p-bc966c46.entry.js +0 -2
- package/dist/core/p-bdc51179.entry.js +0 -2
- package/dist/core/p-c054f955.entry.js +0 -2
- package/dist/core/p-cd2d335d.entry.js +0 -2
- package/dist/core/p-da7f1e11.entry.js +0 -2
- package/dist/core/p-e61aa53b.entry.js +0 -2
- package/dist/core/p-ea44d447.entry.js +0 -2
- package/dist/core/p-f4bcf817.entry.js +0 -2
- package/dist/core/p-f4dac942.entry.js +0 -2
- package/dist/esm/gov-flex_4.entry.js.map +0 -1
- /package/dist/components/{p-46c567fd.js.map → p-18ab0d24.js.map} +0 -0
- /package/dist/components/{p-283b66c3.js.map → p-48c4d5c8.js.map} +0 -0
- /package/dist/components/{p-318d89bd.js.map → p-b25af2cf.js.map} +0 -0
- /package/dist/components/{p-ac359044.js.map → p-b97d8edd.js.map} +0 -0
- /package/dist/components/{p-a6b7a6c2.js.map → p-c438a723.js.map} +0 -0
- /package/dist/components/{p-a6be4769.js.map → p-ce90ff14.js.map} +0 -0
- /package/dist/components/{p-3d7a21b5.js.map → p-d962bf44.js.map} +0 -0
- /package/dist/core/{p-c916d0d2.entry.js.map → p-0dac0792.entry.js.map} +0 -0
- /package/dist/core/{p-b7cfe254.entry.js.map → p-12d1e5bc.entry.js.map} +0 -0
- /package/dist/core/{p-22fa411d.entry.js.map → p-182d03c1.entry.js.map} +0 -0
- /package/dist/core/{p-ed833334.entry.js.map → p-2e21a994.entry.js.map} +0 -0
- /package/dist/core/{p-30eaeeec.entry.js.map → p-3df6c6cd.entry.js.map} +0 -0
- /package/dist/core/{p-5396935e.entry.js.map → p-436e7690.entry.js.map} +0 -0
- /package/dist/core/{p-6e457b3d.entry.js.map → p-467f778b.entry.js.map} +0 -0
- /package/dist/core/{p-7b7e502b.entry.js.map → p-4d81039c.entry.js.map} +0 -0
- /package/dist/core/{p-cd2d335d.entry.js.map → p-520ac994.entry.js.map} +0 -0
- /package/dist/core/{p-0fdd8929.entry.js.map → p-581c8075.entry.js.map} +0 -0
- /package/dist/core/{p-d836fcde.entry.js.map → p-5a92b9d9.entry.js.map} +0 -0
- /package/dist/core/{p-8506b611.js.map → p-5fbde4f9.js.map} +0 -0
- /package/dist/core/{p-9fe35463.entry.js.map → p-605e72b1.entry.js.map} +0 -0
- /package/dist/core/{p-3cb36bae.entry.js.map → p-64dc1cdb.entry.js.map} +0 -0
- /package/dist/core/{p-7e04730a.entry.js.map → p-6603e3df.entry.js.map} +0 -0
- /package/dist/core/{p-bcb45a18.entry.js.map → p-71dc8171.entry.js.map} +0 -0
- /package/dist/core/{p-ed8fc183.entry.js.map → p-8ece244d.entry.js.map} +0 -0
- /package/dist/core/{p-561718cd.entry.js.map → p-913331e8.entry.js.map} +0 -0
- /package/dist/core/{p-97a9725d.entry.js.map → p-97c65665.entry.js.map} +0 -0
- /package/dist/core/{p-d65cef62.entry.js.map → p-abefa59b.entry.js.map} +0 -0
- /package/dist/core/{p-72130a8f.entry.js.map → p-aeab9c1a.entry.js.map} +0 -0
- /package/dist/core/{p-ccec8019.entry.js.map → p-af9fe91a.entry.js.map} +0 -0
- /package/dist/core/{p-0be19b89.entry.js.map → p-b4cf97ab.entry.js.map} +0 -0
- /package/dist/core/{p-5b2131c1.entry.js.map → p-bc0ed2c1.entry.js.map} +0 -0
- /package/dist/core/{p-dea64896.entry.js.map → p-bf8529f8.entry.js.map} +0 -0
- /package/dist/core/{p-1200a32d.entry.js.map → p-cd988543.entry.js.map} +0 -0
- /package/dist/core/{p-f4dac942.entry.js.map → p-d3f7d3d5.entry.js.map} +0 -0
- /package/dist/core/{p-00d153bf.entry.js.map → p-d6e972c0.entry.js.map} +0 -0
- /package/dist/core/{p-4b90fbc4.entry.js.map → p-d952e56f.entry.js.map} +0 -0
- /package/dist/core/{p-65e67731.entry.js.map → p-eaa83b2f.entry.js.map} +0 -0
- /package/dist/core/{p-ea44d447.entry.js.map → p-ebc318d7.entry.js.map} +0 -0
- /package/dist/core/{p-432c3875.entry.js.map → p-ee0f3bd9.entry.js.map} +0 -0
- /package/dist/core/{p-f7a4da9d.entry.js.map → p-eeee2325.entry.js.map} +0 -0
- /package/dist/core/{p-535316b4.entry.js.map → p-fa161f10.entry.js.map} +0 -0
- /package/dist/core/{p-e834ee73.entry.js.map → p-fa5b72de.entry.js.map} +0 -0
- /package/dist/core/{p-f4bcf817.entry.js.map → p-ff609d0e.entry.js.map} +0 -0
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import { ValueOf } from "../../types/interfaces";
|
|
2
|
+
export declare enum CardDirection {
|
|
3
|
+
HORIZONTAL = "horizontal",
|
|
4
|
+
VERTICAL = "vertical"
|
|
5
|
+
}
|
|
6
|
+
export type CardDirectionType = `${ValueOf<typeof CardDirection>}`;
|
|
1
7
|
export declare const CardClass: {
|
|
2
8
|
root: string;
|
|
3
9
|
header: string;
|
|
4
|
-
|
|
10
|
+
arrow: string;
|
|
5
11
|
inner: string;
|
|
6
12
|
img: string;
|
|
7
|
-
main: string;
|
|
8
13
|
icon: string;
|
|
9
|
-
|
|
14
|
+
content: string;
|
|
10
15
|
footer: string;
|
|
11
|
-
arrow: string;
|
|
12
16
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { CardDirectionType } from './constants';
|
|
2
3
|
import { GovCardChangeEvent } from './interfaces';
|
|
3
4
|
export declare class GovCard {
|
|
4
5
|
private h;
|
|
@@ -8,9 +9,9 @@ export declare class GovCard {
|
|
|
8
9
|
constructor();
|
|
9
10
|
host: HTMLGovCardElement;
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* Card direction
|
|
12
13
|
*/
|
|
13
|
-
readonly
|
|
14
|
+
readonly direction: CardDirectionType;
|
|
14
15
|
/**
|
|
15
16
|
* Defines weather the card can be collapsible
|
|
16
17
|
*/
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { Sizes } from "../../core/constants/sizes";
|
|
2
|
+
import { ValueOf } from "../../types/interfaces";
|
|
3
|
+
export declare const FlexSizes: typeof Sizes;
|
|
4
|
+
export type FlexSizesType = `${ValueOf<typeof FlexSizes>}`;
|
|
1
5
|
export declare const FlexClass: {
|
|
2
6
|
root: string;
|
|
3
7
|
};
|
|
@@ -1,33 +1,35 @@
|
|
|
1
|
+
import { FlexSizesType } from './constants';
|
|
1
2
|
export declare class GovFlex {
|
|
2
3
|
private h;
|
|
3
4
|
constructor();
|
|
4
5
|
host: HTMLGovGridElement;
|
|
5
6
|
/**
|
|
6
|
-
* Controls the flex direction of the container.
|
|
7
|
+
* Controls the flex direction of the container.
|
|
7
8
|
*/
|
|
8
9
|
direction: 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
9
10
|
/**
|
|
10
11
|
* Defines how the browser distributes space between and around content items along the main axis.
|
|
11
|
-
* Allowed values: 'flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly'.
|
|
12
12
|
*/
|
|
13
13
|
justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
14
14
|
/**
|
|
15
|
-
* Aligns flex items along the cross axis.
|
|
15
|
+
* Aligns flex items along the cross axis.
|
|
16
16
|
*/
|
|
17
17
|
alignItems?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';
|
|
18
18
|
/**
|
|
19
|
-
* Controls whether the flex container is a single-line or multi-line flex container.
|
|
19
|
+
* Controls whether the flex container is a single-line or multi-line flex container.
|
|
20
20
|
*/
|
|
21
21
|
wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
22
22
|
/**
|
|
23
23
|
* Aligns the flex container's lines within when there is extra space in the cross-axis.
|
|
24
|
-
* Allowed values: 'flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'stretch'.
|
|
25
24
|
*/
|
|
26
25
|
alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';
|
|
27
26
|
/**
|
|
28
27
|
* Sets the alignment of the flex container’s children along the flex container’s cross axis, overriding the `align-items` property for individual flex items.
|
|
29
|
-
* Allowed values: 'auto', 'flex-start', 'flex-end', 'center', 'baseline', 'stretch'.
|
|
30
28
|
*/
|
|
31
|
-
alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
29
|
+
alignSelf?: 'auto' | 'normal' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch' | 'anchor-center';
|
|
30
|
+
/**
|
|
31
|
+
* The gap property creates consistent spacing between flex items in the container.
|
|
32
|
+
*/
|
|
33
|
+
gap?: FlexSizesType;
|
|
32
34
|
render(): any;
|
|
33
35
|
}
|
|
@@ -24,6 +24,10 @@ export declare class GovTag {
|
|
|
24
24
|
* Tag’s type
|
|
25
25
|
*/
|
|
26
26
|
readonly type: TagTypesType;
|
|
27
|
+
/**
|
|
28
|
+
* Expands the tag to fill 100% of the container width
|
|
29
|
+
*/
|
|
30
|
+
readonly expanded: boolean;
|
|
27
31
|
validateColor(newValue: string): void;
|
|
28
32
|
validateSize(newValue: string): void;
|
|
29
33
|
componentWillLoad(): void;
|
|
@@ -9,22 +9,26 @@ export declare class GovThemeSwitch {
|
|
|
9
9
|
* Switch's size.
|
|
10
10
|
*/
|
|
11
11
|
readonly size?: ThemeSwitchSizesType;
|
|
12
|
+
/**
|
|
13
|
+
* Display switch label
|
|
14
|
+
*/
|
|
15
|
+
readonly displayLabel? = false;
|
|
12
16
|
/**
|
|
13
17
|
* Label in light mode
|
|
14
18
|
*/
|
|
15
|
-
readonly ariaLabelLight
|
|
19
|
+
readonly ariaLabelLight? = "P\u0159enout na tmav\u00FD m\u00F3d";
|
|
16
20
|
/**
|
|
17
21
|
* Label in dark mode
|
|
18
22
|
*/
|
|
19
|
-
readonly ariaLabelDark
|
|
23
|
+
readonly ariaLabelDark? = "P\u0159epnout na sv\u011Btl\u00FD m\u00F3d";
|
|
20
24
|
/**
|
|
21
25
|
* Label in light mode
|
|
22
26
|
*/
|
|
23
|
-
readonly labelLight
|
|
27
|
+
readonly labelLight? = "Sv\u011Btl\u00FD m\u00F3d";
|
|
24
28
|
/**
|
|
25
29
|
* Label in dark mode
|
|
26
30
|
*/
|
|
27
|
-
readonly labelDark
|
|
31
|
+
readonly labelDark? = "Tmav\u00FD m\u00F3d";
|
|
28
32
|
/**
|
|
29
33
|
* Called when the theme is changed by the user
|
|
30
34
|
*/
|
|
@@ -10,6 +10,7 @@ import { AccordionEvent, AccordionItemEvent } from "./components/gov-accordion/g
|
|
|
10
10
|
import { GovBreadcrumbsChangeEvent } from "./components/gov-breadcrumbs/gov-breadcrumbs.d";
|
|
11
11
|
import { ButtonColorType, ButtonSizesType, ButtonTargetType, ButtonTypesType, NativeTypesType } from "./components/gov-button/button/constants";
|
|
12
12
|
import { ButtonEvent } from "./components/gov-button/button/gov-button.types";
|
|
13
|
+
import { CardDirectionType } from "./components/gov-card/constants";
|
|
13
14
|
import { GovCardChangeEvent } from "./components/gov-card/interfaces";
|
|
14
15
|
import { ChipSizesType, ChipTypesType, NativeTypesType as NativeTypesType1 } from "./components/gov-chip/constants";
|
|
15
16
|
import { ControlGroupColorType } from "./components/gov-control-group/constants";
|
|
@@ -17,6 +18,7 @@ import { Nullable } from "./types/interfaces";
|
|
|
17
18
|
import { PositionType } from "./components/gov-button/dropdown/constants";
|
|
18
19
|
import { DropdownEvent } from "./components/gov-button/dropdown/gov-dropdown.types";
|
|
19
20
|
import { EmptySizesType } from "./components/gov-empty/constants";
|
|
21
|
+
import { FlexSizesType } from "./components/gov-flex/constants";
|
|
20
22
|
import { FormAutocompleteEvent, GovFormAutocompleteItem } from "./components/gov-form/autocomplete/gov-form-autocomplete.types";
|
|
21
23
|
import { SizesType } from "./components/gov-form/autocomplete/constants";
|
|
22
24
|
import { FormCheckboxSizesType } from "./components/gov-form/checkbox/constants";
|
|
@@ -66,6 +68,7 @@ export { AccordionEvent, AccordionItemEvent } from "./components/gov-accordion/g
|
|
|
66
68
|
export { GovBreadcrumbsChangeEvent } from "./components/gov-breadcrumbs/gov-breadcrumbs.d";
|
|
67
69
|
export { ButtonColorType, ButtonSizesType, ButtonTargetType, ButtonTypesType, NativeTypesType } from "./components/gov-button/button/constants";
|
|
68
70
|
export { ButtonEvent } from "./components/gov-button/button/gov-button.types";
|
|
71
|
+
export { CardDirectionType } from "./components/gov-card/constants";
|
|
69
72
|
export { GovCardChangeEvent } from "./components/gov-card/interfaces";
|
|
70
73
|
export { ChipSizesType, ChipTypesType, NativeTypesType as NativeTypesType1 } from "./components/gov-chip/constants";
|
|
71
74
|
export { ControlGroupColorType } from "./components/gov-control-group/constants";
|
|
@@ -73,6 +76,7 @@ export { Nullable } from "./types/interfaces";
|
|
|
73
76
|
export { PositionType } from "./components/gov-button/dropdown/constants";
|
|
74
77
|
export { DropdownEvent } from "./components/gov-button/dropdown/gov-dropdown.types";
|
|
75
78
|
export { EmptySizesType } from "./components/gov-empty/constants";
|
|
79
|
+
export { FlexSizesType } from "./components/gov-flex/constants";
|
|
76
80
|
export { FormAutocompleteEvent, GovFormAutocompleteItem } from "./components/gov-form/autocomplete/gov-form-autocomplete.types";
|
|
77
81
|
export { SizesType } from "./components/gov-form/autocomplete/constants";
|
|
78
82
|
export { FormCheckboxSizesType } from "./components/gov-form/checkbox/constants";
|
|
@@ -329,13 +333,13 @@ export namespace Components {
|
|
|
329
333
|
*/
|
|
330
334
|
"collapsible": boolean;
|
|
331
335
|
/**
|
|
332
|
-
*
|
|
336
|
+
* Card direction
|
|
333
337
|
*/
|
|
334
|
-
"
|
|
338
|
+
"direction": CardDirectionType;
|
|
335
339
|
/**
|
|
336
|
-
*
|
|
340
|
+
* Defines whether the card is open or closed
|
|
337
341
|
*/
|
|
338
|
-
"
|
|
342
|
+
"open": boolean;
|
|
339
343
|
/**
|
|
340
344
|
* Validate the accessible attributes of the component
|
|
341
345
|
*/
|
|
@@ -494,27 +498,31 @@ export namespace Components {
|
|
|
494
498
|
}
|
|
495
499
|
interface GovFlex {
|
|
496
500
|
/**
|
|
497
|
-
* Aligns the flex container's lines within when there is extra space in the cross-axis.
|
|
501
|
+
* Aligns the flex container's lines within when there is extra space in the cross-axis.
|
|
498
502
|
*/
|
|
499
503
|
"alignContent"?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';
|
|
500
504
|
/**
|
|
501
|
-
* Aligns flex items along the cross axis.
|
|
505
|
+
* Aligns flex items along the cross axis.
|
|
502
506
|
*/
|
|
503
507
|
"alignItems"?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';
|
|
504
508
|
/**
|
|
505
|
-
* Sets the alignment of the flex container’s children along the flex container’s cross axis, overriding the `align-items` property for individual flex items.
|
|
509
|
+
* Sets the alignment of the flex container’s children along the flex container’s cross axis, overriding the `align-items` property for individual flex items.
|
|
506
510
|
*/
|
|
507
|
-
"alignSelf"?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
511
|
+
"alignSelf"?: 'auto' | 'normal' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch' | 'anchor-center';
|
|
508
512
|
/**
|
|
509
|
-
* Controls the flex direction of the container.
|
|
513
|
+
* Controls the flex direction of the container.
|
|
510
514
|
*/
|
|
511
515
|
"direction": 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
512
516
|
/**
|
|
513
|
-
*
|
|
517
|
+
* The gap property creates consistent spacing between flex items in the container.
|
|
518
|
+
*/
|
|
519
|
+
"gap"?: FlexSizesType;
|
|
520
|
+
/**
|
|
521
|
+
* Defines how the browser distributes space between and around content items along the main axis.
|
|
514
522
|
*/
|
|
515
523
|
"justifyContent"?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
516
524
|
/**
|
|
517
|
-
* Controls whether the flex container is a single-line or multi-line flex container.
|
|
525
|
+
* Controls whether the flex container is a single-line or multi-line flex container.
|
|
518
526
|
*/
|
|
519
527
|
"wrap"?: 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
520
528
|
}
|
|
@@ -1508,6 +1516,10 @@ export namespace Components {
|
|
|
1508
1516
|
* Style variation of the tag.
|
|
1509
1517
|
*/
|
|
1510
1518
|
"color": ButtonColorType;
|
|
1519
|
+
/**
|
|
1520
|
+
* Expands the tag to fill 100% of the container width
|
|
1521
|
+
*/
|
|
1522
|
+
"expanded": boolean;
|
|
1511
1523
|
/**
|
|
1512
1524
|
* Definition of the button icon on the left. The icon must be defined in the form "type/name".
|
|
1513
1525
|
*/
|
|
@@ -1534,6 +1546,10 @@ export namespace Components {
|
|
|
1534
1546
|
* Label in light mode
|
|
1535
1547
|
*/
|
|
1536
1548
|
"ariaLabelLight"?: "Přenout na tmavý mód";
|
|
1549
|
+
/**
|
|
1550
|
+
* Display switch label
|
|
1551
|
+
*/
|
|
1552
|
+
"displayLabel"?: false;
|
|
1537
1553
|
/**
|
|
1538
1554
|
* Label in dark mode
|
|
1539
1555
|
*/
|
|
@@ -2831,6 +2847,10 @@ declare namespace LocalJSX {
|
|
|
2831
2847
|
* Defines weather the card can be collapsible
|
|
2832
2848
|
*/
|
|
2833
2849
|
"collapsible"?: boolean;
|
|
2850
|
+
/**
|
|
2851
|
+
* Card direction
|
|
2852
|
+
*/
|
|
2853
|
+
"direction"?: CardDirectionType;
|
|
2834
2854
|
/**
|
|
2835
2855
|
* Called when the card toggle state changes
|
|
2836
2856
|
*/
|
|
@@ -2839,10 +2859,6 @@ declare namespace LocalJSX {
|
|
|
2839
2859
|
* Defines whether the card is open or closed
|
|
2840
2860
|
*/
|
|
2841
2861
|
"open"?: boolean;
|
|
2842
|
-
/**
|
|
2843
|
-
* Style variation of the card.
|
|
2844
|
-
*/
|
|
2845
|
-
"promotion"?: boolean;
|
|
2846
2862
|
}
|
|
2847
2863
|
interface GovChip {
|
|
2848
2864
|
/**
|
|
@@ -2985,27 +3001,31 @@ declare namespace LocalJSX {
|
|
|
2985
3001
|
}
|
|
2986
3002
|
interface GovFlex {
|
|
2987
3003
|
/**
|
|
2988
|
-
* Aligns the flex container's lines within when there is extra space in the cross-axis.
|
|
3004
|
+
* Aligns the flex container's lines within when there is extra space in the cross-axis.
|
|
2989
3005
|
*/
|
|
2990
3006
|
"alignContent"?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';
|
|
2991
3007
|
/**
|
|
2992
|
-
* Aligns flex items along the cross axis.
|
|
3008
|
+
* Aligns flex items along the cross axis.
|
|
2993
3009
|
*/
|
|
2994
3010
|
"alignItems"?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';
|
|
2995
3011
|
/**
|
|
2996
|
-
* Sets the alignment of the flex container’s children along the flex container’s cross axis, overriding the `align-items` property for individual flex items.
|
|
3012
|
+
* Sets the alignment of the flex container’s children along the flex container’s cross axis, overriding the `align-items` property for individual flex items.
|
|
2997
3013
|
*/
|
|
2998
|
-
"alignSelf"?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
3014
|
+
"alignSelf"?: 'auto' | 'normal' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch' | 'anchor-center';
|
|
2999
3015
|
/**
|
|
3000
|
-
* Controls the flex direction of the container.
|
|
3016
|
+
* Controls the flex direction of the container.
|
|
3001
3017
|
*/
|
|
3002
3018
|
"direction"?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
3003
3019
|
/**
|
|
3004
|
-
*
|
|
3020
|
+
* The gap property creates consistent spacing between flex items in the container.
|
|
3021
|
+
*/
|
|
3022
|
+
"gap"?: FlexSizesType;
|
|
3023
|
+
/**
|
|
3024
|
+
* Defines how the browser distributes space between and around content items along the main axis.
|
|
3005
3025
|
*/
|
|
3006
3026
|
"justifyContent"?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
3007
3027
|
/**
|
|
3008
|
-
* Controls whether the flex container is a single-line or multi-line flex container.
|
|
3028
|
+
* Controls whether the flex container is a single-line or multi-line flex container.
|
|
3009
3029
|
*/
|
|
3010
3030
|
"wrap"?: 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
3011
3031
|
}
|
|
@@ -4034,6 +4054,10 @@ declare namespace LocalJSX {
|
|
|
4034
4054
|
* Style variation of the tag.
|
|
4035
4055
|
*/
|
|
4036
4056
|
"color"?: ButtonColorType;
|
|
4057
|
+
/**
|
|
4058
|
+
* Expands the tag to fill 100% of the container width
|
|
4059
|
+
*/
|
|
4060
|
+
"expanded"?: boolean;
|
|
4037
4061
|
/**
|
|
4038
4062
|
* Definition of the button icon on the left. The icon must be defined in the form "type/name".
|
|
4039
4063
|
*/
|
|
@@ -4060,6 +4084,10 @@ declare namespace LocalJSX {
|
|
|
4060
4084
|
* Label in light mode
|
|
4061
4085
|
*/
|
|
4062
4086
|
"ariaLabelLight"?: "Přenout na tmavý mód";
|
|
4087
|
+
/**
|
|
4088
|
+
* Display switch label
|
|
4089
|
+
*/
|
|
4090
|
+
"displayLabel"?: false;
|
|
4063
4091
|
/**
|
|
4064
4092
|
* Label in dark mode
|
|
4065
4093
|
*/
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@gov-design-system-ce/components",
|
|
3
3
|
"description": "This package includes Gov Design System Web Components and related utilities.",
|
|
4
4
|
"author": "Zdeněk Vítek",
|
|
5
|
-
"version": "4.1.
|
|
5
|
+
"version": "4.1.2",
|
|
6
6
|
"license": "EUPL v1.2 Licensed",
|
|
7
7
|
"main": "./dist/index.cjs.js",
|
|
8
8
|
"unpkg": "./dist/core/core.esm.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"gov-flex.gov-form-label.gov-icon.gov-theme-switch.entry.cjs.js","mappings":";;;;;;;;;;;;;AAAO,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;CAChB;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AAC,SAAS,EAAE,IAAI,EAAC,YAAY,GAAY,EACxG,SAAS,CAAC,IAAI,IAAIA,uEAAU,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,gBAAgB,CAAC,QAAQ,EAAE,IAAI,EAAC,YAAY,GAAY,CAClG,EACPA,6EAAgB,KAAK,EAAE,gBAAgB,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IACjE,IAAI,CAAC,UAAU,CACA,EACjBA,6EAAgB,KAAK,EAAE,gBAAgB,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAChE,IAAI,CAAC,SAAS,CACC,CACX,CACC,CACH,EACP;KACD;;;;;;;;;;;;;","names":["govHost","h","Host","FormLabelClass","pick","Sizes","Colors","getAssetPath","iconsPath","isWindow","validateProp","iconsLazyLoad"],"sources":["../../../packages/core/src/components/gov-flex/constants.ts","../../../packages/core/src/components/gov-flex/gov-flex.tsx","../../../packages/core/src/components/gov-form/label/gov-form-label.tsx","../../../packages/core/src/components/gov-icon/constants.ts","../../../packages/core/src/utils/ds.utils.ts","../../../packages/core/src/utils/icon.utils.ts","../../../packages/core/src/helpers/Dom/document.ts","../../../packages/core/src/components/gov-icon/gov-icon.tsx","../../../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":["export const FlexClass = {\n\troot: 'gov-flex',\n}\n\n","import {Component, Element, h, Host, Prop} from '@stencil/core'\nimport {FlexClass} from './constants'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-flex',\n})\nexport class GovFlex {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Controls the flex direction of the container. Can be 'row', 'row-reverse', 'column', or 'column-reverse'.\n\t */\n\t@Prop() direction: 'row' | 'row-reverse' | 'column' | 'column-reverse' = 'row';\n\n\t/**\n\t * Defines how the browser distributes space between and around content items along the main axis.\n\t * Allowed values: 'flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly'.\n\t */\n\t@Prop({\n\t\tattribute: 'justify-content',\n\t\treflect: true\n\t}) justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';\n\n\t/**\n\t * Aligns flex items along the cross axis. Can be 'stretch', 'flex-start', 'flex-end', 'center', or 'baseline'.\n\t */\n\t@Prop({\n\t\tattribute: 'align-items', reflect: true\n\t}) alignItems?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';\n\n\t/**\n\t * Controls whether the flex container is a single-line or multi-line flex container. Can be 'nowrap', 'wrap', or 'wrap-reverse'.\n\t */\n\t@Prop({reflect: true}) wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\n\n\t/**\n\t * Aligns the flex container's lines within when there is extra space in the cross-axis.\n\t * Allowed values: 'flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'stretch'.\n\t */\n\t@Prop({\n\t\tattribute: 'align-content',\n\t\treflect: true\n\t}) alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';\n\n\t/**\n\t * Sets the alignment of the flex container’s children along the flex container’s cross axis, overriding the `align-items` property for individual flex items.\n\t * Allowed values: 'auto', 'flex-start', 'flex-end', 'center', 'baseline', 'stretch'.\n\t */\n\t@Prop({\n\t\tattribute: 'align-self',\n\t\treflect: true\n\t}) alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FlexClass.root)}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n","import { Component, Event, EventEmitter, h, Prop, Host } from '@stencil/core'\nimport { FormLabelClass, FormLabelSizesTypes } from './constants'\n\n@Component({\n\ttag: 'gov-form-label',\n})\nexport class GovFormLabel {\n\t/**\n\t * Identifier for label.\n\t */\n\t@Prop({ attribute: 'identifier' }) readonly identifier: string\n\t/**\n\t * Label's size.\n\t */\n\t@Prop() readonly size?: FormLabelSizesTypes = 'm'\n\t/**\n\t * Set whether the input is required or not.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Use label as a legend for better accessibility.\n\t * Note: Don't forget to set the fieldset attribute of the gov-form-control component\n\t */\n\t@Prop() readonly legend: boolean = false\n\t/**\n\t * Emitted when the label click.\n\t */\n\t@Event({ eventName: 'gov-click' }) govClick: EventEmitter<PointerEvent>\n\n\trender() {\n\t\tconst Tag = this.legend ? 'legend' : 'label'\n\t\treturn (\n\t\t\t<Host class={FormLabelClass.root} size={this.size}>\n\t\t\t\t<Tag class={FormLabelClass.label} htmlFor={this.identifier} onClick={() => this.govClick.emit()}>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t\t{this.required ? <span class=\"gov-color--error-500\"> *</span> : null}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n","import { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils';\nimport { Colors } from '../../core/constants/colors';\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const IconSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL', '_5XL'])\nexport type IconSizesType = `${ValueOf<typeof IconSizes>}`\n\nexport const IconColors = pick(Colors, [\n\t'DEFAULT',\n\t'PRIMARY',\n\t'SECONDARY',\n\t'NEUTRAL',\n\t'ERROR',\n\t'SUCCESS',\n\t'WARNING',\n\t'DISABLED',\n\t'WHITE',\n\t'BLACK',\n])\nexport type IconColorType = `${ValueOf<typeof IconColors>}`\n\nenum Types {\n\tBASIC = 'basic',\n\tCOMPLEX = 'complex',\n\tCOLORED = 'colored',\n}\nexport type Type = `${ValueOf<typeof Types>}`\n\nexport const IconClass = {\n\troot: 'gov-icon',\n\tholder: 'gov-icon__holder',\n}\n","import { version } from '../../package.json'\n\nexport const dsVersion = (): string => {\n\treturn version\n}\n","import { getAssetPath } from \"@stencil/core\"\nimport { 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\tif (isExternalUrl(path)) {\n\t\treturn `${path}/${type}/${name}.svg?v=${dsVersion()}`\n\t}\n\treturn getAssetPath(`${path}/${type}/${name}.svg`) + `?v=${dsVersion()}`\n}\n\nexport async function fetchIcon({ name, type }: { name: string; type: string }): Promise<string> {\n\tconst cacheKey = type + \"-\" + name\n\tif (iconCache[cacheKey]) {\n\t\treturn iconCache[cacheKey]\n\t}\n\tif (!requestCache[cacheKey]) {\n\t\trequestCache[cacheKey] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {\n\t\t\tif (resp.status === 200) {\n\t\t\t\treturn resp.text()\n\t\t\t} else {\n\t\t\t\tthrow new Error(\"Gov Icon doesn't exists\")\n\t\t\t}\n\t\t})\n\t}\n\tconst path = await requestCache[cacheKey]\n\ticonCache[cacheKey] = path\n\treturn path\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 {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\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","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\tlabelLight: 'gov-theme-switch__label-light',\n\tlabelDark: 'gov-theme-switch__label-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 * 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-label={isDark ? this.ariaLabelLight : this.ariaLabelDark}>\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<gov-form-label class={ThemeSwitchClass.labelLight} size={this.size}>\n\t\t\t\t\t\t\t{this.labelLight}\n\t\t\t\t\t\t</gov-form-label>\n\t\t\t\t\t\t<gov-form-label class={ThemeSwitchClass.labelDark} size={this.size}>\n\t\t\t\t\t\t\t{this.labelDark}\n\t\t\t\t\t\t</gov-form-label>\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"],"version":3}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as t,H as s,c as i,h as e,d as n}from"./p-42200001.js";import{g as a,b as h,c as o}from"./p-9908b9f0.js";import{g as d,c,t as r,d as l}from"./p-ea7fdd2e.js";import{v as u}from"./p-0b3574c2.js";import{c as f}from"./p-cd6c2938.js";import{A as p,a as b,i as m}from"./p-33d5d1ed.js";import{d as v}from"./p-318d89bd.js";import{d as g}from"./p-46c567fd.js";var y;(function(t){t["INPUT"]="input";t["TEXTAREA"]="textarea"})(y||(y={}));const w=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govInput=i(this,"gov-input",7);this.govKeyUp=i(this,"gov-keyup",7);this.govHydrated=i(this,"gov-hydrated",7);this.govKeyDown=i(this,"gov-keydown",7);this.value=undefined;this.identifier=undefined;this.success=undefined;this.size="m";this.name=undefined;this.multiline=undefined;this.rows=undefined;this.cols=undefined;this.required=false;this.disabled=false;this.placeholder=undefined;this.readonly=undefined;this.minlength=undefined;this.maxlength=undefined;this.min=undefined;this.max=undefined;this.autocomplete=undefined;this.autocorrect=undefined;this.spellcheck=undefined;this.inputLang=undefined;this.type=undefined;this.inputType="text";this.role=undefined;this.invalid=undefined;this.accessibleShowPasswordLabel="Zobrazit heslo";this.accessibleHidePasswordLabel="Skrýt heslo";this.focused=undefined;this.showPassword=false;this.inheritedAttributes={};this.h=d(this.host);this.inputId=f("GovInput");this.f=a(this.h)}validateSize(t){u(o,t,h.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",c(this.success));this.f.passAttrToControl("disabled",c(this.disabled));this.f.passAttrToControl("invalid",c(this.invalid));this.f.passAttrToControl("type",this.multiline?y.TEXTAREA:y.INPUT)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b);this.govHydrated.emit()}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=m(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){this.attributeObserver.stopObserving()}render(){const t=this.multiline?y.TEXTAREA:y.INPUT;return e(n,{key:"5210373fd88e2b80df5a4206c5b25b5695f2894b",class:h.root,size:this.size,type:this.type},this.h.hasSlot("prefix")&&e("slot",{key:"9215c45132a4b9dc8fd0da79ef8d082dcce0789b",name:"prefix"}),e("span",{key:"e58ab94aa7926dbd8488ce8323b6c8dbec9ce765",class:"element"},this.h.hasSlot("icon-start")&&!this.multiline&&e("div",{key:"8e67ba10cfb47232f6c0d817df292668c2a4a7e8",class:h.icons,onClick:()=>this.inputRef.focus()},e("slot",{key:"a186f1fbe47936219f6a6a26cb2d0c2b0dbe08f8",name:"icon-start"})),e(t,Object.assign({key:"1090f6e6705365ffc83b5397ad669638d996f5bd",type:this.inputType==="password"&&this.showPassword?"text":this.inputType,disabled:this.disabled,id:this.identifier||this.inputId,name:this.name,onFocus:this.onFocusHandler.bind(this),onInput:this.onInputHandler.bind(this),onBlur:this.onBlurHandler.bind(this),onKeyUp:this.onKeyUpHandler.bind(this),onKeyDown:this.onKeyDownHandler.bind(this),ref:t=>this.inputRef=t,placeholder:this.placeholder,spellcheck:r(this.spellcheck),lang:this.inputLang,readonly:r(this.readonly),autocomplete:l(this.autocomplete),autocorrect:l(this.autocorrect),minlength:this.minlength,maxlength:this.maxlength,min:this.min,max:this.max,required:this.required,rows:this.rows,cols:this.cols,role:this.role,value:this.value},this.inheritedAttributes,{"aria-required":r(this.required),"aria-invalid":r(this.invalid),"aria-disabled":r(this.disabled)})),(this.success||this.invalid||this.h.hasSlot("icon-end")||this.inputType==="password")&&!this.multiline&&e("div",{key:"49cb072b3448735677c47883d851557f107dd6cb",class:h.icons,onClick:()=>this.inputRef.focus()},this.success&&!this.multiline&&e("gov-icon",{key:"f00df3e88ba3a0d695bf9f33ddb51af7a8fb4a96",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&!this.multiline&&e("gov-icon",{key:"523966e75d3f3d49eff396226673c3c96cf6de60",class:"validation-icon",name:"exclamation-lg",type:"components"}),this.h.hasSlot("icon-end")&&this.inputType!=="password"&&e("slot",{key:"b707c094fe32bf5864c66e40a95a22f2b27d79b3",name:"icon-end"}),this.inputType==="password"?e("gov-button",{color:"primary",type:"base",size:this.size,"aria-label":this.showPassword?this.accessibleHidePasswordLabel:this.accessibleShowPasswordLabel,"on-gov-click":()=>this.showPassword=!this.showPassword},e("gov-icon",{slot:"icon-start",name:"eye",type:"components"})):null)),this.h.hasSlot("sufix")&&e("slot",{key:"945df71d1a6c3edd76769ae3310bdd33df694d2b",name:"sufix"}))}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:h.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.focused=false;this.govBlur.emit({component:h.root,value:this.value,originalEvent:t})}onKeyUpHandler(t){t.stopPropagation();this.govKeyUp.emit({component:h.root,value:this.value,originalEvent:t})}onKeyDownHandler(t){t.stopPropagation();this.govKeyDown.emit({component:h.root,value:this.value,originalEvent:t})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:h.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[4,"gov-form-input",{value:[1537],identifier:[1],success:[516],size:[1],name:[1],multiline:[4],rows:[2],cols:[2],required:[516],disabled:[516],placeholder:[1],readonly:[4],minlength:[2],maxlength:[2],min:[8],max:[8],autocomplete:[4],autocorrect:[4],spellcheck:[4],inputLang:[1,"input-lang"],type:[1],inputType:[1,"input-type"],role:[1],invalid:[516],accessibleShowPasswordLabel:[1,"accessible-show-password-label"],accessibleHidePasswordLabel:[1,"accessible-hide-password-label"],focused:[32],showPassword:[32],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-input","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-input":if(!customElements.get(t)){customElements.define(t,w)}break;case"gov-button":if(!customElements.get(t)){v()}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}k();export{w as G,k as d};
|
|
2
|
-
//# sourceMappingURL=p-1eb9c053.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as t,H as e,c as i,h as s,d as a}from"./p-42200001.js";import{v as o}from"./p-0b3574c2.js";import{g as n}from"./p-ea7fdd2e.js";import{p as h}from"./p-e0e2e9c1.js";import{S as d}from"./p-92f420cb.js";import{a as c,c as r}from"./p-44a8a668.js";import{c as f}from"./p-cd6c2938.js";import{p as l}from"./p-016bbea6.js";import{i as b,A as p,a as m}from"./p-33d5d1ed.js";import{d as u}from"./p-46c567fd.js";const g=h(d,["_XS","_S","_M"]);var v;(function(t){t["SOLID"]="solid";t["OUTLINED"]="outlined"})(v||(v={}));var y;(function(t){t["A"]="a";t["SPAN"]="span";t["BUTTON"]="button"})(y||(y={}));const k={root:"gov-chip",inner:"gov-chip__inner",hasRight:"gov-chip--has-right",hasLeft:"gov-chip--has-left"};const j=t(class t extends e{constructor(){super();this.__registerHost();this.govClick=i(this,"gov-click",7);this.hydrated=false;this.disabled=false;this.href=undefined;this.target=undefined;this.iconStart=undefined;this.iconEnd=undefined;this.size=g._M;this.tag="span";this.color=c.PRIMARY;this.type=undefined;this.focusable=true;this.identifier=undefined;this.inheritedAttributes={};this.h=n(this.host);this.chipId=f("GovChip")}validateColor(t){o(c,t,k.root)}validateSize(t){o(r,t,k.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.inheritedAttributes=b(this.host)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(m)}disconnectedCallback(){this.attributeObserver.stopObserving()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}render(){const t=this.href?y.A:this.tag;const e=t==y.BUTTON?y.BUTTON:undefined;const i=l(this.iconStart);const o=l(this.iconEnd);return s(a,{key:"cb016dddaaadd7de70e72707d7ad44e87a597a34",class:this.h.classes([k.root,this.h.hasSlot("right")?k.hasRight:undefined,this.h.hasSlot("left")?k.hasLeft:undefined]),disabled:this.disabled,href:this.href,color:this.color,type:this.type,size:this.size,hoverable:t==y.A||t==y.BUTTON,hydrated:this.hydrated},s(t,Object.assign({key:"d34d8a67eeb4b6d3f1b79118224a50f394e31003",class:"element",href:this.href,target:this.target,ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),tabindex:(this.h.hasSlot("left")||this.h.hasSlot("right")||this.disabled)&&!this.focusable?"-1":"0",id:this.identifier||this.chipId,type:e},this.inheritedAttributes,{"aria-disabled":this.disabled}),s("slot",{key:"1927da9845f36a47d30d7aef2e5292b0fd14a9e9",name:"left"}),s("slot",{key:"c8334498b94e4d3caa6f7db5e7ec638bbce52cbc",name:"icon-start"},i&&s("gov-icon",{key:"310fb65c135105ee26cc6d58f810768843700b0a",type:i.type,name:i.name})),s("slot",{key:"4a089b176703b5c600d2a519f90be655397d5f27"}),s("slot",{key:"0dfede9f85605499bdbd09f43b642a1cee68fcf2",name:"icon-end"},o&&s("gov-icon",{key:"beb20c5691f2ed1a6cb556d440d72a86de280a73",type:o.type,name:o.name})),s("slot",{key:"92e05b922fe474e259e18301eba6c13586794a1e",name:"right"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false&&this.tag===y.BUTTON){this.govClick.emit(t)}}async geRef(){return this.triggerRef}async setFocus(){this.triggerRef.focus()}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[4,"gov-chip",{disabled:[516],href:[1],target:[1],iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[1],tag:[1],color:[1],type:[513],focusable:[4],identifier:[1],inheritedAttributes:[32],geRef:[64],setFocus:[64]},undefined,{color:["validateColor"],size:["validateSize"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-chip","gov-icon"];t.forEach((t=>{switch(t){case"gov-chip":if(!customElements.get(t)){customElements.define(t,j)}break;case"gov-icon":if(!customElements.get(t)){u()}break}}))}C();export{j as G,C as d};
|
|
2
|
-
//# sourceMappingURL=p-3d7a21b5.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as e,H as s,c as a,h as t,d as o}from"./p-42200001.js";import{F as i}from"./p-7ba4daf4.js";const c=e(class e extends s{constructor(){super();this.__registerHost();this.govClick=a(this,"gov-click",7);this.identifier=undefined;this.size="m";this.required=false;this.legend=false}render(){const e=this.legend?"legend":"label";return t(o,{key:"3e02eaa899126807c31fac8d3b6f352a07a73a9d",class:i.root,size:this.size},t(e,{key:"a1213cf879e26565c4c84d31ab6a46dac2a9ee4e",class:i.label,htmlFor:this.identifier,onClick:()=>this.govClick.emit()},t("slot",{key:"46a6a39821d6f3f786b843c037b0b423ba2445ae"}),this.required?t("span",{class:"gov-color--error-500"}," *"):null))}},[4,"gov-form-label",{identifier:[1],size:[1],required:[4],legend:[4]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-form-label"];e.forEach((e=>{switch(e){case"gov-form-label":if(!customElements.get(e)){customElements.define(e,c)}break}}))}l();export{c as G,l as d};
|
|
2
|
-
//# sourceMappingURL=p-68a1aaec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["GovFormLabel","proxyCustomElement","H","render","Tag","this","legend","h","Host","key","class","FormLabelClass","root","size","label","htmlFor","identifier","onClick","govClick","emit","required"],"sources":["../../../packages/core/src/components/gov-form/label/gov-form-label.tsx"],"sourcesContent":["import { Component, Event, EventEmitter, h, Prop, Host } from '@stencil/core'\nimport { FormLabelClass, FormLabelSizesTypes } from './constants'\n\n@Component({\n\ttag: 'gov-form-label',\n})\nexport class GovFormLabel {\n\t/**\n\t * Identifier for label.\n\t */\n\t@Prop({ attribute: 'identifier' }) readonly identifier: string\n\t/**\n\t * Label's size.\n\t */\n\t@Prop() readonly size?: FormLabelSizesTypes = 'm'\n\t/**\n\t * Set whether the input is required or not.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Use label as a legend for better accessibility.\n\t * Note: Don't forget to set the fieldset attribute of the gov-form-control component\n\t */\n\t@Prop() readonly legend: boolean = false\n\t/**\n\t * Emitted when the label click.\n\t */\n\t@Event({ eventName: 'gov-click' }) govClick: EventEmitter<PointerEvent>\n\n\trender() {\n\t\tconst Tag = this.legend ? 'legend' : 'label'\n\t\treturn (\n\t\t\t<Host class={FormLabelClass.root} size={this.size}>\n\t\t\t\t<Tag class={FormLabelClass.label} htmlFor={this.identifier} onClick={() => this.govClick.emit()}>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t\t{this.required ? <span class=\"gov-color--error-500\"> *</span> : null}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"0GAMaA,EAAYC,EAAA,MAAAD,UAAAE,E,oHAQsB,I,cAIT,M,YAKF,K,CAMnC,MAAAC,GACC,MAAMC,EAAMC,KAAKC,OAAS,SAAW,QACrC,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOC,EAAeC,KAAMC,KAAMR,KAAKQ,MAC5CN,EAACH,EAAG,CAAAK,IAAA,2CAACC,MAAOC,EAAeG,MAAOC,QAASV,KAAKW,WAAYC,QAAS,IAAMZ,KAAKa,SAASC,QACxFZ,EAAA,QAAAE,IAAA,6CACCJ,KAAKe,SAAWb,EAAA,QAAMG,MAAM,wBAAsB,MAAkB,M","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as e,H as s,h as t,d as o}from"./p-42200001.js";import{F as a,a as i}from"./p-7f3becc5.js";import{g as r}from"./p-ea7fdd2e.js";import{v as c}from"./p-0b3574c2.js";import{c as d}from"./p-cd6c2938.js";const f=e(class e extends s{constructor(){super();this.__registerHost();this.color="neutral";this.size="m";this.h=r(this.host);this.messageId=d("GovFormMessage")}validateColor(e){c(i,e,a.root)}componentWillLoad(){this.validateColor(this.color)}render(){return t(o,{key:"0fc757895a58267edf28d9139e460a14e664de04",class:this.h.classes(a.root),color:this.color,size:this.size},this.h.hasSlot("icon")&&t("slot",{key:"bca8235bbaebcd7066efb8e8e3fdbff7ba8e011c",name:"icon"}),t("span",{key:"a0e46336d6a661bf6d6f2ee8f0cb89c967f5321d",id:this.messageId,class:a.content},t("slot",{key:"2e0e474f9f9d35fc5cda1db690d2b7b4e2addb68"})))}async identifier(){return this.messageId}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-form-message",{color:[1],size:[1],identifier:[64]},undefined,{color:["validateColor"]}]);function n(){if(typeof customElements==="undefined"){return}const e=["gov-form-message"];e.forEach((e=>{switch(e){case"gov-form-message":if(!customElements.get(e)){customElements.define(e,f)}break}}))}n();export{f as G,n as d};
|
|
2
|
-
//# sourceMappingURL=p-a6b7a6c2.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as e,H as t,c as a,h as s,d as i}from"./p-42200001.js";import{a as o}from"./p-07165d99.js";import{a as c}from"./p-80dad64b.js";import{c as m}from"./p-e8ec030e.js";import{d as n}from"./p-e0e2e9c1.js";import{g as r}from"./p-ea7fdd2e.js";import{d}from"./p-318d89bd.js";import{d as l}from"./p-46c567fd.js";const f=":root{--roboto:Roboto, sans-serif}gov-attachments-item,.gov-attachments-item{position:relative;display:flex;width:100%;gap:var(--spacing-s)}gov-attachments-item__messages>*:last-child,.gov-attachments-item__messages>*:last-child{margin-bottom:0 !important}gov-attachments-item__file,.gov-attachments-item__file{display:flex;gap:var(--spacing-s)}gov-attachments-item__name,.gov-attachments-item__name{display:flex;gap:var(--spacing-s);flex-wrap:wrap;align-items:center;margin:0;color:var(--name-color, var(--text-primary))}gov-attachments-item__name span,.gov-attachments-item__name span{font-size:var(--font-size-xs);line-height:var(--height-line-xs);letter-spacing:0.0125rem;font-weight:400;color:var(--decor-color, var(--text-secondary))}";const b=f;const p=e(class e extends t{constructor(){super();this.__registerHost();this.govRemove=a(this,"gov-remove",7);this.accessibleRemoveLabel=undefined;this.accessibleRemoveLabelledBy=undefined;this.h=r(this.host)}async componentDidRender(){if(m()){await n(500);await this.validateAccessibility()}}render(){return s(i,{key:"a8fffc03fb890c1aaae5a1d63240747f5fcb013e",class:this.h.classes(o.root),role:"listitem"},s("div",{key:"0aa555d1c5b3bdf089cf020db1271e40389522f9",class:o.file},s("p",{key:"46014b9e9d9a46fea6f813ef271815be6ab6dfc4",class:o.name},s("slot",{key:"806f9dc2b2ee44248f7fe613e8362d92ed938ba8"}),s("slot",{key:"97d69e72afd5063f41ea7b41e50012893ee5027c",name:"info"})),s("gov-button",{key:"6c40ff9ae6be99cde30fde276db287a3d14dccd1",color:"primary",type:"base",size:"s","aria-label":this.accessibleRemoveLabel,"aria-labelledby":this.accessibleRemoveLabelledBy,"on-gov-click":this.govRemove.emit},s("gov-icon",{key:"24871273b10ca807811acd15dabb49c6a45d76d1",slot:"icon-start",name:"x-lg",type:"components"}))),this.h.hasSlot("message")&&s("div",{key:"7683c6c6bfd1ca4b9660ee56ec190472970d0ac8",class:o.messages},s("slot",{key:"20b46c868809d19f9c67105a4c4774df9688a2c1",name:"message"})))}async validateAccessibility(){c(this.accessibleRemoveLabel,this.accessibleRemoveLabelledBy,o.root,this.host)}get host(){return this}static get style(){return b}},[4,"gov-attachments-item",{accessibleRemoveLabel:[1,"accessible-remove-label"],accessibleRemoveLabelledBy:[1,"accessible-remove-labelledby"],validateAccessibility:[64]}]);function g(){if(typeof customElements==="undefined"){return}const e=["gov-attachments-item","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-attachments-item":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-button":if(!customElements.get(e)){d()}break;case"gov-icon":if(!customElements.get(e)){l()}break}}))}g();export{p as G,g as d};
|
|
2
|
-
//# sourceMappingURL=p-b95ebe8c.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t,a as e,g as a}from"./p-8506b611.js";import{G as i}from"./p-880743a5.js";import{g as r}from"./p-ea7fdd2e.js";const o=class{constructor(t){s(this,t);this.alignX=undefined;this.alignY=undefined;this.h=r(this.host)}render(){return t(e,{key:"81e96a065c6472ae76e4768cf2b8373b94f0d0a4",class:this.h.classes(i.root),"align-x":this.alignX,"align-y":this.alignY,role:"list"},t("slot",{key:"c3965bafe6a5870352a7cded3fc96adfbeb41724"}))}get host(){return a(this)}};export{o as gov_grid};
|
|
2
|
-
//# sourceMappingURL=p-00d153bf.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,h as s,a,g as t}from"./p-8506b611.js";import{C as o}from"./p-5aad3497.js";import{p as r}from"./p-e0e2e9c1.js";import{S as f}from"./p-92f420cb.js";r(f,["_S","_M","_L"]);r(o,["PRIMARY","NEUTRAL"]);const c={root:"gov-form-search"};const m=class{constructor(s){e(this,s);this.size="m";this.color="neutral"}render(){return s(a,{key:"9d628d34bd6f19132ea398437faf9023a322bdcf",class:c.root,color:this.color,size:this.size},s("slot",{key:"aa70625f5e6b754a18b36ad87634fe5be1a34fb7",name:"input"}),s("slot",{key:"d098e011406c85877131ee57c04bc9a3f05ded18",name:"button-erase"}),s("slot",{key:"6a5226ae29cf22f4ec33ecf5604db44d8154d2fa",name:"button"}))}get host(){return t(this)}};export{m as gov_form_search};
|
|
2
|
-
//# sourceMappingURL=p-019e967c.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i,a as s,g as e}from"./p-8506b611.js";import{v as h}from"./p-0b3574c2.js";import{T as o,a as n,b as a,c as r,d as c}from"./p-76d604c6.js";import{c as d}from"./p-cd6c2938.js";import{g as f}from"./p-ea7fdd2e.js";import{d as l}from"./p-e8ec030e.js";import{t as p}from"./p-26618322.js";import"./p-5aad3497.js";import"./p-92f420cb.js";import"./p-e0e2e9c1.js";const m=class{constructor(i){t(this,i);this.tooltipContentId=undefined;this.tooltipId=undefined;this.color=o.PRIMARY;this.size=n._M;this.position="right";this.message=undefined;this.identifier=undefined;this.icon=undefined;this.persist=false;this.h=f(this.host);this.tooltipId=d("GovTooltip");this.tooltipContentId=d("GovContentTooltip")}validateColor(t){h(o,t,c.root)}validateSize(t){h(n,t,c.root)}validatePosition(t){h(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=l().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);l().body.appendChild(i)}get tooltipContent(){var t;return l().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 h=this.host.offsetHeight;const o=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+o<=i;const d=a.left>o;if(this.position===r.LEFT||this.position===r.RIGHT){this.tooltipContent.style.top=a.top-(n-h)/2+"px";if(c===false&&d===false){this.position=r.TOP;this.tooltipContent.setAttribute("position",r.TOP)}if(d&&c===false&&this.position===r.RIGHT){this.position=r.LEFT}if(c&&d===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-(o+t)+"px"}if(this.position===r.TOP||this.position===r.BOTTOM){if(o>e){let s=a.left-(o-e)/2;const h=s<0;const n=s+o>i;if(h&&n){this.tooltipContent.style.width="auto";this.tooltipContent.style.left=t+"px";this.tooltipContent.style.right=t+"px"}else{if(h){s=t}if(n){s=s-(i-(s+o+t))*-1}this.tooltipContent.style.left=s+"px"}}else{const t=a.left+(e-o)/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+(h+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 i(s,{key:"bc4cfa206b2e4060ca6070f0d4796df1a5df1bfc",id:this.tooltipId,class:this.h.classes(c.root),position:this.position},i("span",{key:"8ce3bf37e9ab13190c476db7cf47b7d0319719fe",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},i("slot",{key:"c622fcd797a2c0dd303395d2d6391fbc747e4d18"})))}async show(){this.showTooltip()}async hide(){this.persist=false;this.hideTooltip()}get host(){return e(this)}static get watchers(){return{color:["validateColor"],size:["validateSize"],position:["validatePosition"],message:["rerenderMessage"]}}};export{m as gov_tooltip};
|
|
2
|
-
//# sourceMappingURL=p-04fa0ab5.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as a,h as b,a as s}from"./p-8506b611.js";const e={root:"gov-form-password-power",bar:"gov-form-password-power__bar",text:"gov-form-password-power__text"};const c=class{constructor(b){a(this,b);this.power=undefined}render(){return b(s,{key:"9125566cb99bfc49e2e61edb5af71b5b052d6790",class:e.root},b("span",{key:"b293292f3b8faca38bbbd6cb03fdd49d8601aab3",class:e.bar},b("span",{key:"20995fbc87342a8e0db8031b0ff23a9cb01b4068"}),b("span",{key:"4fec375a3f27cc35025c165badbff731c8fb26ab"}),b("span",{key:"426f641b8b8e179e25e8a1006a0afd0394615058"})),b("span",{key:"7aeaf7222b484ad59084bb20fcbff4660cdcb1db",class:e.text},b("slot",{key:"57c3415c9b2dfc688ec5762c33cdad473b8110bd"})))}};export{c as gov_form_password_power};
|
|
2
|
-
//# sourceMappingURL=p-22fa411d.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,a as e,g as a}from"./p-8506b611.js";import{v as h}from"./p-0b3574c2.js";import{T as o,a as r,b as n,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 m}from"./p-016bbea6.js";import{A as u,a as y}from"./p-9ac55bd1.js";import{i as g}from"./p-d9a299a4.js";import"./p-e8ec030e.js";import"./p-e0e2e9c1.js";import"./p-92f420cb.js";import"./p-5aad3497.js";const v=class{constructor(i){t(this,i);this.govChange=s(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){h(n,t,r.root)}validateColor(t){h(c,t,r.root)}validateSize(t){h(l,t,r.root)}componentDidLoad(){this.attributeObserver=new u(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(y)}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(o.root).forEach((t=>{const i=Promise.all([t.getIdentifier(),t.getTriggerIdentifier(),t.getDisableState()]).then((([s,i,e])=>{const a=typeof t.getAttribute("default")==="string";const h=m(t.getAttribute("icon-start"));const o=m(t.getAttribute("icon-end"));return{label:t.getAttribute("label"),direction:t.getAttribute("direction"),contentIdentifier:s,disabled:e,triggerIdentifier:i,element:t,active:false,default:a,iconStart:h,iconEnd:o}}));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 i(e,{key:"75a6dc2d1bb8afb13e3d63b44bdd00e230a49fe6",class:this.h.classes(r.root),size:this.size,color:this.color,type:this.type,direction:this.direction,onKeyDown:this.onKeydownHandler.bind(this)},i("div",Object.assign({key:"1fc7ff9eafaaab713727787a1bb0c7364ad3cf4e",class:r.tabs,role:"tablist"},this.inheritedAttributes),i("ul",{key:"82a67f585c9a394175bb64be57e669d886b3d4f6",class:r.list},this.controllers.map((t=>i("li",{class:r.item},this.type=="text"?i("button",{class:r.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?i("gov-icon",{name:t.iconStart.name,type:t.iconStart.type}):null,t.label,t.iconEnd?i("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type}):null):i("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?i("gov-icon",{name:t.iconStart.name,type:t.iconStart.type,slot:"icon-start"}):null,t.label,t.iconEnd?i("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type,slot:"icon-end"}):null)))))),i("slot",{key:"8af7e27c0410ba9a4c0f79a1c44275e5811e9463"}))}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 a(this)}static get watchers(){return{type:["validateType"],color:["validateColor"],size:["validateSize"]}}};export{v as gov_tabs};
|
|
2
|
-
//# sourceMappingURL=p-2739fa61.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t,a as e,g as r}from"./p-8506b611.js";import{a}from"./p-13ebd887.js";import{g as o}from"./p-ea7fdd2e.js";const c=class{constructor(t){s(this,t);this.h=o(this.host)}render(){return t(e,{key:"8566cc892984b1ce728c679107e228d8320f3048",class:this.h.classes(a.root)},t("slot",{key:"e3a085ef568fa75ef813b775344adbd6f4ef2773"}))}get host(){return r(this)}};export{c as gov_layout_column};
|
|
2
|
-
//# sourceMappingURL=p-30eaeeec.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,a as e,g as a}from"./p-8506b611.js";import{g as o,j as h,k as c}from"./p-da1db6fd.js";import{g as n,c as r,t as d}from"./p-ea7fdd2e.js";import{v as l}from"./p-0b3574c2.js";import{c as p}from"./p-cd6c2938.js";import{p as f}from"./p-ded281e6.js";import{t as m}from"./p-26618322.js";import{A as b,a as u}from"./p-9ac55bd1.js";import{i as v}from"./p-d9a299a4.js";import"./p-92f420cb.js";import"./p-e0e2e9c1.js";import"./p-7f3becc5.js";import"./p-5aad3497.js";import"./p-56efd4a2.js";import"./p-7ba4daf4.js";import"./p-e8ec030e.js";import"./p-2aedc81e.js";const g=class{constructor(i){t(this,i);this.govFocus=s(this,"gov-focus",7);this.govBlur=s(this,"gov-blur",7);this.govChange=s(this,"gov-change",7);this.value=undefined;this.options=undefined;this.identifier=undefined;this.size="m";this.name=undefined;this.required=false;this.success=undefined;this.disabled=false;this.invalid=undefined;this.focused=undefined;this.optionsState=[];this.inheritedAttributes={};this.h=n(this.host);this.f=o(this.h);this.selectId=p("GovSelect")}validateSize(t){l(c,t,h.root)}watchOptions(t){this.optionsState=f(t)}watchControlAttrs(){this.passControlAttrs()}watchValue(){this.markSelectedValue()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("type","select")}componentDidLoad(){this.attributeObserver=new b(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(u)}disconnectedCallback(){this.attributeObserver.stopObserving()}componentWillLoad(){this.validateSize(this.size);this.markSelectedValue();this.optionsState=f(this.options);this.inheritedAttributes=v(this.host)}async componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));m((()=>this.markSelectedValue()))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}markSelectedValue(){this.host.querySelectorAll("option").forEach((t=>{if(t.value===this.value){t.setAttribute("selected","selected")}else{t.removeAttribute("selected")}}))}render(){return i(e,{key:"b403868aaf854a9dc40f68cf093a8867cd20c4c4",class:h.root,size:this.size},this.h.hasSlot("prefix")&&i("slot",{key:"de3d0cb80bd3b33a9b23b60f91739f0e23fdab4a",name:"prefix"}),i("span",{key:"c501806b949bc6e1314922fce0ce088180fdebba",class:"element"},i("select",Object.assign({key:"7c1a04a65e69edda672d70b101b430d3c6105543",id:this.identifier||this.selectId,onFocus:this.onFocusHandler.bind(this),onChange:this.onChangeHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,name:this.name,disabled:this.disabled,ref:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":d(this.disabled),"aria-required":d(this.required),"aria-invalid":d(this.invalid)}),i("slot",{key:"0bd46e42f5e5267366088b9902a5ef8c6aa99064"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var s;return i("option",{value:t.value,selected:t.value===this.value,disabled:t===null||t===void 0?void 0:t.disabled},(s=t.label)!==null&&s!==void 0?s:t.value)}))),this.success&&i("gov-icon",{key:"8e919bd8dd122618b2b0233c7b14c8def277540f",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&i("gov-icon",{key:"78610616be9cdf65e9bbc1359e27bc9003c8fc34",class:"validation-icon",name:"exclamation-lg",type:"components"}),i("gov-icon",{key:"56c1ca03e5b23154a93056bba8758553a5c93f30",class:"arrow-icon",name:"chevron-down",type:"components"})),this.h.hasSlot("sufix")&&i("slot",{key:"f3e3f1416d15a34402d446e6a72d0607cc8d90fc",name:"sufix"}))}onFocusHandler(t){this.focused=true;this.govFocus.emit({component:h.root,originalEvent:t,value:this.value})}onBlurHandler(t){this.focused=false;this.govBlur.emit({component:h.root,originalEvent:t,value:this.value})}onChangeHandler(t){this.value=t.target.value;t.stopPropagation();this.govChange.emit({component:h.root,originalEvent:t,value:this.value})}async setFocus(t){return this.selectRef.focus(t)}async getRef(){return this.selectRef}get host(){return a(this)}static get watchers(){return{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}}};export{g as gov_form_select};
|
|
2
|
-
//# sourceMappingURL=p-3d6edb09.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,a as s,g as i,c as n,d as a}from"./p-8506b611.js";import{g as o}from"./p-ea7fdd2e.js";import{F as c}from"./p-7ba4daf4.js";import{p as r}from"./p-e0e2e9c1.js";import{C as h}from"./p-5aad3497.js";import{S as l}from"./p-92f420cb.js";import{i as f,a as d,b as u}from"./p-e8ec030e.js";import{v as m}from"./p-0b3574c2.js";const b={root:"gov-flex"};const g=class{constructor(e){t(this,e);this.direction="row";this.justifyContent=undefined;this.alignItems=undefined;this.wrap=undefined;this.alignContent=undefined;this.alignSelf=undefined;this.h=o(this.host)}render(){return e(s,{key:"77d5eb1db594698f6fde4bf497209912de71173f",class:this.h.classes(b.root)},e("slot",{key:"6c01ff6ec88c53dbf9e83d492f660c96e9e7fc2a"}))}get host(){return i(this)}};const p=class{constructor(e){t(this,e);this.govClick=n(this,"gov-click",7);this.identifier=undefined;this.size="m";this.required=false;this.legend=false}render(){const t=this.legend?"legend":"label";return e(s,{key:"3e02eaa899126807c31fac8d3b6f352a07a73a9d",class:c.root,size:this.size},e(t,{key:"a1213cf879e26565c4c84d31ab6a46dac2a9ee4e",class:c.label,htmlFor:this.identifier,onClick:()=>this.govClick.emit()},e("slot",{key:"46a6a39821d6f3f786b843c037b0b423ba2445ae"}),this.required?e("span",{class:"gov-color--error-500"}," *"):null))}};r(l,["_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL","_5XL"]);const v=r(h,["DEFAULT","PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING","DISABLED","WHITE","BLACK"]);var _;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(_||(_={}));const w={root:"gov-icon",holder:"gov-icon__holder"};const y="4.1.1";const k=()=>y;const L={};const S={};const C=t=>t.startsWith("http://")||t.startsWith("https://");const D=(t,e,s)=>{if(C(t)){return`${t}/${s}/${e}.svg?v=${k()}`}return a(`${t}/${s}/${e}.svg`)+`?v=${k()}`};async function z({name:t,type:e}){const s=e+"-"+t;if(L[s]){return L[s]}if(!S[s]){S[s]=fetch(D(f(),t,e)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const i=await S[s];L[s]=i;return i}const I=(t,e,s)=>{if(!d){return}let i="";if(s){const t=new Date;t.setTime(t.getTime()+s*24*60*60*1e3);i="; expires="+t.toUTCString()}document.cookie=`${t}=${encodeURIComponent(e)}${i}; path=/`};const $=t=>{if(!d){return null}const e=t+"=";const s=document.cookie.split(";");for(let t=0;t<s.length;t++){let i=s[t].trim();if(i.startsWith(e)){return decodeURIComponent(i.substring(e.length))}}return null};const j=t=>{try{const e=new DOMParser;const s=e.parseFromString(t,"image/svg+xml");const i=s.querySelector("parsererror");if(i){return false}const n=s.documentElement;if(n.tagName.toLowerCase()!=="svg"){return false}return true}catch(t){return false}};const R=class{constructor(e){t(this,e);this.size=undefined;this.color=undefined;this.name=null;this.type="components";this.visible=false;this.error=false;this.h=o(this.host)}validateSize(t){m(l,t,w.root)}validateColor(t){m(v,t,w.root)}async loadIconPathData(){const{name:t,visible:e}=this;if(!t||!e){return}await this.loadIcon()}connectedCallback(){if(u()){this.visible=true;this.loadIconPathData().finally()}else{this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){this.validateSize(this.size);this.validateColor(this.color);await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}async loadIcon(){try{const{name:t,type:e}=this;const s=await z({name:t,type:e});const i=j(s);this.host.innerHTML=i?s:null}catch(t){this.host.innerHTML="";this.error=true}}render(){if(this.error){return null}return e(s,{class:this.h.classes(w.root),size:this.size,color:this.color})}static get assetsDirs(){return["assets"]}get host(){return i(this)}static get watchers(){return{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}}};const E=r(l,["_XS","_S","_M","_L","_XL"]);const x={root:"gov-theme-switch",indicator:"gov-theme-switch__indicator",iconLight:"gov-theme-switch__icon-light",iconDark:"gov-theme-switch__icon-dark",labelLight:"gov-theme-switch__label-light",labelDark:"gov-theme-switch__label-dark"};const X="data-theme";var A;(function(t){t["auto"]="auto";t["light"]="light";t["dark"]="dark"})(A||(A={}));const O=class{constructor(e){t(this,e);this.govChange=n(this,"gov-change",7);this.setThemeState=t=>{this.theme=t;this.govChange.emit({component:x.root,state:this.theme,ref:this.host})};this.size="m";this.ariaLabelLight=undefined;this.ariaLabelDark=undefined;this.labelLight=undefined;this.labelDark=undefined;this.theme=A.auto;this.h=o(this.host)}validateSize(t){m(E,t,x.root)}watchTheme(t){this.htmlElement.setAttribute(X,t);this.htmlElement.classList.remove(...Object.keys(A));this.htmlElement.classList.add(t);I(X,t)}get storageValue(){return $(X)}get htmlElement(){return document.documentElement}get isSystemPrefersColorDark(){return d&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}componentWillLoad(){this.initDefaultState();this.validateSize(this.size)}initDefaultState(){const t=Object.keys(A);let e=this.storageValue;const s=this.htmlElement.getAttribute(X);if(e&&t.includes(e)){this.theme=e}else if(s&&t.includes(s)){this.theme=s}else{this.theme=A.auto}}render(){let t=this.theme===A.dark;if(this.theme===A.auto){t=this.isSystemPrefersColorDark}return e(s,{key:"a83f030f54527f8e8a2d23c3769f3f1b41c4af4f",class:this.h.classes(x.root),theme:t?A.dark:A.light,size:this.size},e("button",{key:"54f8337d911cf64f24c8db089b9092b806c3a926",onClick:()=>this.setThemeState(t?A.light:A.dark),"aria-label":t?this.ariaLabelLight:this.ariaLabelDark},e("span",{key:"483310b54df8e8de42c087f04b7e0758067c22b8"},e("span",{key:"88b822cac4b5dc3897fa19252b5b1e1a559b8d6d",class:x.indicator},A.light&&e("gov-icon",{key:"f6f162cda66facba8940ba55f7f3283e7796d157",name:"sun",class:x.iconLight,type:"components"}),A.dark&&e("gov-icon",{key:"b36b009c1787e37a3fd5108618c6bb5993f97a23",name:"moon",class:x.iconDark,type:"components"})),e("gov-form-label",{key:"dff2b2b454a87faa1d7e471d2a271c333c983aad",class:x.labelLight,size:this.size},this.labelLight),e("gov-form-label",{key:"1b682ccaff92cc4cfe8462ff2a59507fd61b114b",class:x.labelDark,size:this.size},this.labelDark))))}get host(){return i(this)}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}};export{g as gov_flex,p as gov_form_label,R as gov_icon,O as gov_theme_switch};
|
|
2
|
-
//# sourceMappingURL=p-3f6a2d20.entry.js.map
|