@gov-design-system-ce/components 4.2.0 → 4.2.1
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/{array.utils-96eadde3.js → array.utils-211fffc0.js} +2 -2
- package/dist/cjs/{array.utils-96eadde3.js.map → array.utils-211fffc0.js.map} +1 -1
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +3 -3
- package/dist/cjs/gov-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/gov-banner.cjs.entry.js +21 -20
- package/dist/cjs/gov-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-blockquote.cjs.entry.js +1 -1
- package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +3 -3
- package/dist/cjs/gov-button.cjs.entry.js +5 -5
- package/dist/cjs/gov-card.cjs.entry.js +11 -3
- 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 +3 -3
- package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js +1 -1
- package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
- package/dist/cjs/gov-flex_3.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-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 +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +4 -4
- package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-range.cjs.entry.js +207 -0
- package/dist/cjs/gov-form-range.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +4 -4
- 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 +2 -1
- package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-loading.cjs.entry.js +1 -1
- package/dist/cjs/gov-message.cjs.entry.js +1 -1
- package/dist/cjs/gov-pagination.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/gov-tag.cjs.entry.js +1 -1
- package/dist/cjs/gov-tile.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 +3 -3
- package/dist/cjs/{helpers.types-ff60c9bd.js → helpers.types-9066e4a4.js} +3 -1
- package/dist/cjs/helpers.types-9066e4a4.js.map +1 -0
- package/dist/cjs/index-0e4f24f9.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{wcag-2927ff73.js → wcag-f8da82da.js} +2 -2
- package/dist/cjs/{wcag-2927ff73.js.map → wcag-f8da82da.js.map} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/gov-banner/gov-banner.js +26 -73
- package/dist/collection/components/gov-banner/gov-banner.js.map +1 -1
- package/dist/collection/components/gov-blockquote/constants.js.map +1 -0
- package/dist/collection/components/{gov-blocquote → gov-blockquote}/gov-blockquote.js +2 -2
- package/dist/collection/components/gov-blockquote/gov-blockquote.js.map +1 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
- package/dist/collection/components/gov-button/button/gov-button.js +3 -3
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
- package/dist/collection/components/gov-card/gov-card.js +52 -1
- 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/gov-flex.js +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.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/range/constants.js +9 -0
- package/dist/collection/components/gov-form/range/constants.js.map +1 -0
- package/dist/collection/components/gov-form/range/gov-form-range.js +610 -0
- package/dist/collection/components/gov-form/range/gov-form-range.js.map +1 -0
- 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 +20 -1
- package/dist/collection/components/gov-link/gov-link.js.map +1 -1
- package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
- package/dist/collection/components/gov-message/gov-message.js +1 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
- package/dist/collection/components/gov-tag/gov-tag.js +1 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
- package/dist/collection/components/gov-tile/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/data/color-definitions.js +13 -13
- package/dist/collection/data/font-definitions.js +86 -48
- package/dist/collection/pages/Banner.js +112 -112
- package/dist/collection/pages/Banner.js.map +1 -1
- package/dist/collection/pages/Blockquote.js +3 -3
- package/dist/collection/pages/Blockquote.js.map +1 -1
- package/dist/collection/pages/Card.js +27 -17
- package/dist/collection/pages/Card.js.map +1 -1
- package/dist/collection/pages/Forms.js +209 -4
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/collection/pages/Message.js +10 -10
- package/dist/collection/pages/Message.js.map +1 -1
- package/dist/collection/pages/Typography.js +7 -0
- package/dist/collection/pages/Typography.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-attachments.js +1 -1
- package/dist/components/gov-backdrop.js +1 -1
- package/dist/components/gov-banner.js +1 -1
- package/dist/components/gov-banner.js.map +1 -1
- package/dist/components/gov-blockquote.js +1 -1
- package/dist/components/gov-blockquote.js.map +1 -1
- package/dist/components/gov-breadcrumbs.js +1 -1
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button.js +1 -1
- package/dist/components/gov-card.js +1 -1
- package/dist/components/gov-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-dropdown.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-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox-group.js +1 -1
- package/dist/components/gov-form-checkbox.js +1 -1
- package/dist/components/gov-form-control.js +1 -1
- package/dist/components/gov-form-file.js +1 -1
- package/dist/components/gov-form-group.js +1 -1
- package/dist/components/gov-form-input.js +1 -1
- package/dist/components/gov-form-label.js +1 -1
- package/dist/components/gov-form-message.js +1 -1
- package/dist/components/gov-form-multi-select.js +1 -1
- package/dist/components/gov-form-password-power.js +1 -1
- package/dist/components/gov-form-radio-group.js +1 -1
- package/dist/components/gov-form-range.d.ts +11 -0
- package/dist/components/gov-form-range.js +2 -0
- package/dist/components/gov-form-range.js.map +1 -0
- 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-infobar.js.map +1 -1
- package/dist/components/gov-layout-column.js +1 -1
- package/dist/components/gov-layout-column.js.map +1 -1
- package/dist/components/gov-layout.js +1 -1
- package/dist/components/gov-lifecycle.js +1 -1
- package/dist/components/gov-link.js +1 -1
- package/dist/components/gov-link.js.map +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +1 -1
- package/dist/components/gov-pagination.js +1 -1
- package/dist/components/gov-skeleton.js +1 -1
- package/dist/components/gov-spacer.js +1 -1
- package/dist/components/gov-stepper-item.js +1 -1
- package/dist/components/gov-stepper.js +1 -1
- package/dist/components/gov-tabs-item.js +1 -1
- package/dist/components/gov-tabs.js +1 -1
- package/dist/components/gov-tag.js +1 -1
- package/dist/components/gov-theme-switch.js +1 -1
- package/dist/components/gov-tile.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-73938936.js → p-022e49cf.js} +2 -2
- package/dist/components/p-10cad7f1.js +2 -0
- package/dist/components/p-2fe7d728.js +2 -0
- package/dist/components/p-2fe7d728.js.map +1 -0
- package/dist/components/{p-b533871a.js → p-313b4611.js} +2 -2
- package/dist/components/{p-3fead64a.js → p-5a861cd2.js} +2 -2
- package/dist/components/{p-0327a469.js → p-5b0934a8.js} +2 -2
- package/dist/components/{p-3c90521b.js → p-5d60b866.js} +2 -2
- package/dist/components/{p-69a31c96.js → p-6ce6e14f.js} +2 -2
- package/dist/components/{p-2fc08a71.js → p-7fb16042.js} +2 -2
- package/dist/components/p-be086357.js +2 -0
- package/dist/components/{p-4fba9df0.js → p-d3435179.js} +2 -2
- package/dist/components/p-de989dfe.js +2 -0
- package/dist/components/{p-7be2301a.js → p-e0c3b1a7.js} +2 -2
- package/dist/components/{p-b5dc6bae.js → p-f9b1a12b.js} +2 -2
- package/dist/core/core.css +708 -733
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-07590d84.entry.js +2 -0
- package/dist/core/p-07590d84.entry.js.map +1 -0
- package/dist/core/p-08552a0e.entry.js +2 -0
- package/dist/core/{p-16f44a0b.entry.js.map → p-08552a0e.entry.js.map} +1 -1
- package/dist/core/p-0abc38e8.entry.js +2 -0
- package/dist/core/{p-28d1bc01.entry.js.map → p-0abc38e8.entry.js.map} +1 -1
- package/dist/core/p-0c393d2f.entry.js +2 -0
- package/dist/core/p-16ece889.entry.js +2 -0
- package/dist/core/p-171e2a2f.entry.js +2 -0
- package/dist/core/p-25615325.entry.js +2 -0
- package/dist/core/{p-132c9a87.entry.js → p-2a7bcce0.entry.js} +2 -2
- package/dist/core/{p-f120ba66.entry.js → p-2f966102.entry.js} +2 -2
- package/dist/core/p-2fe7d728.js +2 -0
- package/dist/core/p-2fe7d728.js.map +1 -0
- package/dist/core/{p-9ae280b2.entry.js → p-3583dcf7.entry.js} +2 -2
- package/dist/core/p-3b2267a1.entry.js +2 -0
- package/dist/core/p-4216d8f3.entry.js +2 -0
- package/dist/core/p-44c912e2.entry.js +2 -0
- package/dist/core/p-4d5f768f.entry.js +2 -0
- package/dist/core/p-52bb8e4f.entry.js +2 -0
- package/dist/core/{p-f7e47c0a.entry.js.map → p-52bb8e4f.entry.js.map} +1 -1
- package/dist/core/p-52c74fc5.entry.js +2 -0
- package/dist/core/p-548806cb.entry.js +2 -0
- package/dist/core/{p-ab868410.entry.js → p-5fa4965e.entry.js} +2 -2
- package/dist/core/p-6d54ce5f.js +2 -0
- package/dist/core/p-6f74eb08.entry.js +2 -0
- package/dist/core/{p-5108eb37.entry.js → p-75dae924.entry.js} +2 -2
- package/dist/core/p-774ea182.entry.js +2 -0
- package/dist/core/p-843f980a.entry.js +2 -0
- package/dist/core/p-8a72ebcd.entry.js +2 -0
- package/dist/core/{p-94119ad4.entry.js → p-8cd7a120.entry.js} +2 -2
- package/dist/core/{p-99f192c1.entry.js → p-8f469270.entry.js} +2 -2
- package/dist/core/{p-564555e6.entry.js → p-947804a8.entry.js} +2 -2
- package/dist/core/p-979ff58c.entry.js +2 -0
- package/dist/core/p-979ff58c.entry.js.map +1 -0
- package/dist/core/{p-5242b51b.entry.js → p-981f217e.entry.js} +2 -2
- package/dist/core/p-9c1f3e9e.entry.js +2 -0
- package/dist/core/p-9c1f3e9e.entry.js.map +1 -0
- package/dist/core/{p-ab11081d.entry.js → p-a1c825f3.entry.js} +2 -2
- package/dist/core/p-a440365f.entry.js +2 -0
- package/dist/core/p-a440365f.entry.js.map +1 -0
- package/dist/core/p-a70c7959.entry.js +2 -0
- package/dist/core/{p-1cf1dd10.entry.js.map → p-a70c7959.entry.js.map} +1 -1
- package/dist/core/{p-59fe6cbc.entry.js → p-a8a7ae96.entry.js} +2 -2
- package/dist/core/p-aacafa40.entry.js +2 -0
- package/dist/core/{p-e89471ef.entry.js.map → p-aacafa40.entry.js.map} +1 -1
- package/dist/core/{p-a02f2547.entry.js → p-aeaba3ef.entry.js} +2 -2
- package/dist/core/p-b87e5429.entry.js +2 -0
- package/dist/core/p-b87e5429.entry.js.map +1 -0
- package/dist/core/p-b9f1c2ef.entry.js +2 -0
- package/dist/core/{p-3d7fb8f8.entry.js.map → p-b9f1c2ef.entry.js.map} +1 -1
- package/dist/core/p-bca478fd.entry.js +2 -0
- package/dist/core/{p-f98f19f6.entry.js.map → p-bca478fd.entry.js.map} +1 -1
- package/dist/core/p-be086357.js +2 -0
- package/dist/core/p-bea685cb.entry.js +2 -0
- package/dist/core/{p-49cd4d0d.entry.js.map → p-bea685cb.entry.js.map} +1 -1
- package/dist/core/{p-c07f6bb4.entry.js → p-c1584cfe.entry.js} +2 -2
- package/dist/core/p-c5a49469.entry.js +2 -0
- package/dist/core/{p-650fe9e8.entry.js.map → p-c5a49469.entry.js.map} +1 -1
- package/dist/core/{p-eb8a9705.entry.js → p-c88d8659.entry.js} +2 -2
- package/dist/core/p-cba1ebca.entry.js +2 -0
- package/dist/core/{p-16d3a79a.entry.js.map → p-cba1ebca.entry.js.map} +1 -1
- package/dist/core/p-ccb64e4e.entry.js +2 -0
- package/dist/core/p-d383f977.entry.js +2 -0
- package/dist/core/p-d990aae8.entry.js +2 -0
- package/dist/core/p-ddb3772f.entry.js +2 -0
- package/dist/core/{p-46ecf09e.entry.js.map → p-ddb3772f.entry.js.map} +1 -1
- package/dist/core/{p-ae88fe6b.entry.js → p-e2655cb7.entry.js} +2 -2
- package/dist/core/{p-3acaa012.entry.js → p-e29c9924.entry.js} +2 -2
- package/dist/core/p-ead1f58d.entry.js +2 -0
- package/dist/core/{p-f0e001c7.entry.js.map → p-ead1f58d.entry.js.map} +1 -1
- package/dist/core/{p-ee950038.entry.js → p-f83b3b08.entry.js} +2 -2
- package/dist/esm/{array.utils-85696abd.js → array.utils-3b213795.js} +2 -2
- package/dist/esm/{array.utils-85696abd.js.map → array.utils-3b213795.js.map} +1 -1
- package/dist/esm/core.js +1 -1
- package/dist/esm/gov-attachments_3.entry.js +3 -3
- package/dist/esm/gov-backdrop.entry.js +2 -2
- package/dist/esm/gov-banner.entry.js +21 -20
- package/dist/esm/gov-banner.entry.js.map +1 -1
- package/dist/esm/gov-blockquote.entry.js +1 -1
- package/dist/esm/gov-blockquote.entry.js.map +1 -1
- package/dist/esm/gov-breadcrumbs.entry.js +3 -3
- package/dist/esm/gov-button.entry.js +5 -5
- package/dist/esm/gov-card.entry.js +11 -3
- package/dist/esm/gov-card.entry.js.map +1 -1
- package/dist/esm/gov-chip.entry.js +2 -2
- package/dist/esm/gov-container.entry.js +1 -1
- package/dist/esm/gov-control-group.entry.js +1 -1
- package/dist/esm/gov-cookiebar.entry.js +1 -1
- package/dist/esm/gov-dialog.entry.js +3 -3
- package/dist/esm/gov-dropdown.entry.js +1 -1
- package/dist/esm/gov-empty.entry.js +1 -1
- package/dist/esm/gov-error-code.entry.js +1 -1
- package/dist/esm/gov-flex_3.entry.js +3 -3
- package/dist/esm/gov-form-autocomplete.entry.js +3 -3
- package/dist/esm/gov-form-checkbox-group.entry.js +3 -3
- package/dist/esm/gov-form-control.entry.js +1 -1
- package/dist/esm/gov-form-file.entry.js +1 -1
- package/dist/esm/gov-form-group.entry.js +1 -1
- package/dist/esm/gov-form-input_2.entry.js +6 -6
- package/dist/esm/gov-form-label.entry.js +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +4 -4
- package/dist/esm/gov-form-password-power.entry.js +1 -1
- package/dist/esm/gov-form-radio-group.entry.js +1 -1
- package/dist/esm/gov-form-range.entry.js +203 -0
- package/dist/esm/gov-form-range.entry.js.map +1 -0
- package/dist/esm/gov-form-search.entry.js +1 -1
- package/dist/esm/gov-form-select.entry.js +4 -4
- package/dist/esm/gov-grid-item.entry.js +1 -1
- package/dist/esm/gov-grid.entry.js +1 -1
- package/dist/esm/gov-infobar.entry.js +2 -2
- package/dist/esm/gov-layout-column.entry.js +1 -1
- package/dist/esm/gov-layout.entry.js +1 -1
- package/dist/esm/gov-lifecycle.entry.js +1 -1
- package/dist/esm/gov-link.entry.js +2 -1
- package/dist/esm/gov-link.entry.js.map +1 -1
- package/dist/esm/gov-loading.entry.js +1 -1
- package/dist/esm/gov-message.entry.js +1 -1
- package/dist/esm/gov-pagination.entry.js +2 -2
- package/dist/esm/gov-spacer.entry.js +1 -1
- package/dist/esm/gov-stepper-item.entry.js +1 -1
- package/dist/esm/gov-stepper.entry.js +1 -1
- package/dist/esm/gov-tabs-item.entry.js +1 -1
- package/dist/esm/gov-tabs.entry.js +2 -2
- package/dist/esm/gov-tag.entry.js +1 -1
- package/dist/esm/gov-tile.entry.js +1 -1
- package/dist/esm/gov-toast.entry.js +1 -1
- package/dist/esm/gov-tooltip-content.entry.js +1 -1
- package/dist/esm/gov-tooltip.entry.js +2 -2
- package/dist/esm/gov-wizard-item.entry.js +2 -2
- package/dist/esm/gov-wizard.entry.js +3 -3
- package/dist/esm/{helpers.types-43ddbdb8.js → helpers.types-fe2f0447.js} +3 -2
- package/dist/esm/helpers.types-fe2f0447.js.map +1 -0
- package/dist/esm/index-bf8a6f64.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{wcag-253a4421.js → wcag-bd11d341.js} +2 -2
- package/dist/esm/{wcag-253a4421.js.map → wcag-bd11d341.js.map} +1 -1
- package/dist/hydrate/index.js +313 -86
- package/dist/hydrate/index.mjs +313 -86
- package/dist/stencil.config.js +1 -1
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/components/gov-banner/gov-banner.d.ts +4 -14
- package/dist/types/components/gov-card/gov-card.d.ts +10 -0
- package/dist/types/components/gov-form/range/constants.d.ts +9 -0
- package/dist/types/components/gov-form/range/gov-form-range.d.ts +116 -0
- package/dist/types/components/gov-link/gov-link.d.ts +4 -0
- package/dist/types/components.d.ts +200 -22
- package/package.json +1 -1
- package/dist/cjs/helpers.types-ff60c9bd.js.map +0 -1
- package/dist/collection/components/gov-blocquote/constants.js.map +0 -1
- package/dist/collection/components/gov-blocquote/gov-blockquote.js.map +0 -1
- package/dist/components/p-2aedc81e.js +0 -2
- package/dist/components/p-2aedc81e.js.map +0 -1
- package/dist/components/p-80dad64b.js +0 -2
- package/dist/components/p-ded281e6.js +0 -2
- package/dist/components/p-f9a1ff6e.js +0 -2
- package/dist/core/p-005214d1.entry.js +0 -2
- package/dist/core/p-0fc9ea97.entry.js +0 -2
- package/dist/core/p-16d3a79a.entry.js +0 -2
- package/dist/core/p-16f44a0b.entry.js +0 -2
- package/dist/core/p-1c7c9144.entry.js +0 -2
- package/dist/core/p-1cf1dd10.entry.js +0 -2
- package/dist/core/p-23b4dcd3.entry.js +0 -2
- package/dist/core/p-28d1bc01.entry.js +0 -2
- package/dist/core/p-29ac15d2.js +0 -2
- package/dist/core/p-2aedc81e.js +0 -2
- package/dist/core/p-2aedc81e.js.map +0 -1
- package/dist/core/p-3d7fb8f8.entry.js +0 -2
- package/dist/core/p-46ecf09e.entry.js +0 -2
- package/dist/core/p-49cd4d0d.entry.js +0 -2
- package/dist/core/p-650fe9e8.entry.js +0 -2
- package/dist/core/p-6e41cf69.entry.js +0 -2
- package/dist/core/p-7399ad59.entry.js +0 -2
- package/dist/core/p-79ec86da.entry.js +0 -2
- package/dist/core/p-80bebb7f.entry.js +0 -2
- package/dist/core/p-8cbe8add.entry.js +0 -2
- package/dist/core/p-8f73f8e0.entry.js +0 -2
- package/dist/core/p-952ab9e5.entry.js +0 -2
- package/dist/core/p-9c1601b3.entry.js +0 -2
- package/dist/core/p-c2abc031.entry.js +0 -2
- package/dist/core/p-c688349d.entry.js +0 -2
- package/dist/core/p-c6fdc0a9.entry.js +0 -2
- package/dist/core/p-c6fdc0a9.entry.js.map +0 -1
- package/dist/core/p-c91512dd.entry.js +0 -2
- package/dist/core/p-cf9d5c2f.entry.js +0 -2
- package/dist/core/p-cf9d5c2f.entry.js.map +0 -1
- package/dist/core/p-d1270d72.entry.js +0 -2
- package/dist/core/p-d1270d72.entry.js.map +0 -1
- package/dist/core/p-d141e9ca.entry.js +0 -2
- package/dist/core/p-d141e9ca.entry.js.map +0 -1
- package/dist/core/p-de852480.entry.js +0 -2
- package/dist/core/p-ded281e6.js +0 -2
- package/dist/core/p-e89471ef.entry.js +0 -2
- package/dist/core/p-f0e001c7.entry.js +0 -2
- package/dist/core/p-f333c673.entry.js +0 -2
- package/dist/core/p-f7e47c0a.entry.js +0 -2
- package/dist/core/p-f98f19f6.entry.js +0 -2
- package/dist/esm/helpers.types-43ddbdb8.js.map +0 -1
- /package/dist/collection/components/{gov-blocquote → gov-blockquote}/constants.js +0 -0
- /package/dist/components/{p-73938936.js.map → p-022e49cf.js.map} +0 -0
- /package/dist/components/{p-80dad64b.js.map → p-10cad7f1.js.map} +0 -0
- /package/dist/components/{p-b533871a.js.map → p-313b4611.js.map} +0 -0
- /package/dist/components/{p-3fead64a.js.map → p-5a861cd2.js.map} +0 -0
- /package/dist/components/{p-0327a469.js.map → p-5b0934a8.js.map} +0 -0
- /package/dist/components/{p-3c90521b.js.map → p-5d60b866.js.map} +0 -0
- /package/dist/components/{p-69a31c96.js.map → p-6ce6e14f.js.map} +0 -0
- /package/dist/components/{p-2fc08a71.js.map → p-7fb16042.js.map} +0 -0
- /package/dist/components/{p-ded281e6.js.map → p-be086357.js.map} +0 -0
- /package/dist/components/{p-4fba9df0.js.map → p-d3435179.js.map} +0 -0
- /package/dist/components/{p-f9a1ff6e.js.map → p-de989dfe.js.map} +0 -0
- /package/dist/components/{p-7be2301a.js.map → p-e0c3b1a7.js.map} +0 -0
- /package/dist/components/{p-b5dc6bae.js.map → p-f9b1a12b.js.map} +0 -0
- /package/dist/core/{p-7399ad59.entry.js.map → p-0c393d2f.entry.js.map} +0 -0
- /package/dist/core/{p-9c1601b3.entry.js.map → p-16ece889.entry.js.map} +0 -0
- /package/dist/core/{p-1c7c9144.entry.js.map → p-171e2a2f.entry.js.map} +0 -0
- /package/dist/core/{p-23b4dcd3.entry.js.map → p-25615325.entry.js.map} +0 -0
- /package/dist/core/{p-132c9a87.entry.js.map → p-2a7bcce0.entry.js.map} +0 -0
- /package/dist/core/{p-f120ba66.entry.js.map → p-2f966102.entry.js.map} +0 -0
- /package/dist/core/{p-9ae280b2.entry.js.map → p-3583dcf7.entry.js.map} +0 -0
- /package/dist/core/{p-8cbe8add.entry.js.map → p-3b2267a1.entry.js.map} +0 -0
- /package/dist/core/{p-de852480.entry.js.map → p-4216d8f3.entry.js.map} +0 -0
- /package/dist/core/{p-80bebb7f.entry.js.map → p-44c912e2.entry.js.map} +0 -0
- /package/dist/core/{p-952ab9e5.entry.js.map → p-4d5f768f.entry.js.map} +0 -0
- /package/dist/core/{p-f333c673.entry.js.map → p-52c74fc5.entry.js.map} +0 -0
- /package/dist/core/{p-0fc9ea97.entry.js.map → p-548806cb.entry.js.map} +0 -0
- /package/dist/core/{p-ab868410.entry.js.map → p-5fa4965e.entry.js.map} +0 -0
- /package/dist/core/{p-29ac15d2.js.map → p-6d54ce5f.js.map} +0 -0
- /package/dist/core/{p-c688349d.entry.js.map → p-6f74eb08.entry.js.map} +0 -0
- /package/dist/core/{p-5108eb37.entry.js.map → p-75dae924.entry.js.map} +0 -0
- /package/dist/core/{p-005214d1.entry.js.map → p-774ea182.entry.js.map} +0 -0
- /package/dist/core/{p-79ec86da.entry.js.map → p-843f980a.entry.js.map} +0 -0
- /package/dist/core/{p-c91512dd.entry.js.map → p-8a72ebcd.entry.js.map} +0 -0
- /package/dist/core/{p-94119ad4.entry.js.map → p-8cd7a120.entry.js.map} +0 -0
- /package/dist/core/{p-99f192c1.entry.js.map → p-8f469270.entry.js.map} +0 -0
- /package/dist/core/{p-564555e6.entry.js.map → p-947804a8.entry.js.map} +0 -0
- /package/dist/core/{p-5242b51b.entry.js.map → p-981f217e.entry.js.map} +0 -0
- /package/dist/core/{p-ab11081d.entry.js.map → p-a1c825f3.entry.js.map} +0 -0
- /package/dist/core/{p-59fe6cbc.entry.js.map → p-a8a7ae96.entry.js.map} +0 -0
- /package/dist/core/{p-a02f2547.entry.js.map → p-aeaba3ef.entry.js.map} +0 -0
- /package/dist/core/{p-ded281e6.js.map → p-be086357.js.map} +0 -0
- /package/dist/core/{p-c07f6bb4.entry.js.map → p-c1584cfe.entry.js.map} +0 -0
- /package/dist/core/{p-eb8a9705.entry.js.map → p-c88d8659.entry.js.map} +0 -0
- /package/dist/core/{p-6e41cf69.entry.js.map → p-ccb64e4e.entry.js.map} +0 -0
- /package/dist/core/{p-c2abc031.entry.js.map → p-d383f977.entry.js.map} +0 -0
- /package/dist/core/{p-8f73f8e0.entry.js.map → p-d990aae8.entry.js.map} +0 -0
- /package/dist/core/{p-ae88fe6b.entry.js.map → p-e2655cb7.entry.js.map} +0 -0
- /package/dist/core/{p-3acaa012.entry.js.map → p-e29c9924.entry.js.map} +0 -0
- /package/dist/core/{p-ee950038.entry.js.map → p-f83b3b08.entry.js.map} +0 -0
- /package/dist/types/components/{gov-blocquote → gov-blockquote}/constants.d.ts +0 -0
- /package/dist/types/components/{gov-blocquote → gov-blockquote}/gov-blockquote.d.ts +0 -0
package/dist/hydrate/index.mjs
CHANGED
|
@@ -2687,6 +2687,7 @@ const hasOwnProperty = (obj, prop) => {
|
|
|
2687
2687
|
};
|
|
2688
2688
|
const isObject = (obj) => typeof obj === 'object';
|
|
2689
2689
|
const isString = (input) => is(input) && typeof input === 'string';
|
|
2690
|
+
const isNumber = (input) => is(input) && typeof input === 'number';
|
|
2690
2691
|
|
|
2691
2692
|
const validateWcagProp = (value, propName, component) => {
|
|
2692
2693
|
if (value === undefined || String(value).length === 0) {
|
|
@@ -2892,33 +2893,38 @@ class GovBanner {
|
|
|
2892
2893
|
this.background = BannerBackground.SIMPLE;
|
|
2893
2894
|
this.foreground = BannerForeground.LOGO;
|
|
2894
2895
|
this.textColor = BannerTextColor.LIGHT;
|
|
2895
|
-
this.accessibleLabel = undefined;
|
|
2896
|
-
this.accessibleLabelledBy = undefined;
|
|
2897
2896
|
this.h = govHost(this.host);
|
|
2898
2897
|
}
|
|
2899
2898
|
validateSize(newValue) {
|
|
2900
2899
|
validateProp(BannerSizes, newValue, BannerClass.root);
|
|
2901
2900
|
}
|
|
2901
|
+
validateBackground(newValue) {
|
|
2902
|
+
validateProp(BannerBackground, newValue, BannerClass.root);
|
|
2903
|
+
}
|
|
2904
|
+
validateForeground(newValue) {
|
|
2905
|
+
validateProp(BannerForeground, newValue, BannerClass.root);
|
|
2906
|
+
}
|
|
2907
|
+
validateTextColor(newValue) {
|
|
2908
|
+
validateProp(BannerTextColor, newValue, BannerClass.root);
|
|
2909
|
+
}
|
|
2902
2910
|
componentWillLoad() {
|
|
2903
2911
|
this.validateSize(this.size);
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
tick(() => this.validateAccessibility());
|
|
2908
|
-
}
|
|
2912
|
+
this.validateBackground(this.background);
|
|
2913
|
+
this.validateForeground(this.foreground);
|
|
2914
|
+
this.validateTextColor(this.textColor);
|
|
2909
2915
|
}
|
|
2910
2916
|
render() {
|
|
2911
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
*/
|
|
2916
|
-
async validateAccessibility() {
|
|
2917
|
-
validateAccessibleLabel(this.accessibleLabel, this.accessibleLabelledBy, BannerClass.root, this.host);
|
|
2917
|
+
return (hAsync(Host, Object.assign({ key: '67c767ffc6ac1912bb691c8bb11158dac573e70f', class: this.h.classes(BannerClass.root), role: "region", size: this.size }, (this.size !== "xl" ? {
|
|
2918
|
+
background: this.background,
|
|
2919
|
+
foreground: this.foreground
|
|
2920
|
+
} : { 'text-color': this.textColor })), hAsync("div", { key: '624b24b1e621ef7f7ad4666b56f48ffec9881aee' }, hAsync("div", { key: '90b322dca74ca90be13489d519534ebff0656593', class: BannerClass.content }, hAsync("slot", { key: '272f89cbe0649af7edfd7230861f6232272c8da4', name: "headline" }), hAsync("slot", { key: '1bfa7690842ba1a023af5b7da4edec5acb6c65fe' })), this.h.hasSlot('button') && (hAsync("slot", { key: '5d9611292a76aee4654b16429a89fd46ad610884', name: "button" }))), hAsync("slot", { key: '00000b185434b0d85112beaa2374c7f7b12c19b0', name: "image" })));
|
|
2918
2921
|
}
|
|
2919
2922
|
get host() { return getElement(this); }
|
|
2920
2923
|
static get watchers() { return {
|
|
2921
|
-
"size": ["validateSize"]
|
|
2924
|
+
"size": ["validateSize"],
|
|
2925
|
+
"background": ["validateBackground"],
|
|
2926
|
+
"foreground": ["validateForeground"],
|
|
2927
|
+
"text-color": ["validateTextColor"]
|
|
2922
2928
|
}; }
|
|
2923
2929
|
static get cmpMeta() { return {
|
|
2924
2930
|
"$flags$": 4,
|
|
@@ -2927,10 +2933,7 @@ class GovBanner {
|
|
|
2927
2933
|
"size": [513],
|
|
2928
2934
|
"background": [1],
|
|
2929
2935
|
"foreground": [1],
|
|
2930
|
-
"textColor": [1, "text-color"]
|
|
2931
|
-
"accessibleLabel": [1, "accessible-label"],
|
|
2932
|
-
"accessibleLabelledBy": [1, "accessible-labelledby"],
|
|
2933
|
-
"validateAccessibility": [64]
|
|
2936
|
+
"textColor": [1, "text-color"]
|
|
2934
2937
|
},
|
|
2935
2938
|
"$listeners$": undefined,
|
|
2936
2939
|
"$lazyBundleId$": "-",
|
|
@@ -2956,7 +2959,7 @@ class GovBlockquote {
|
|
|
2956
2959
|
this.h = govHost(this.host);
|
|
2957
2960
|
}
|
|
2958
2961
|
render() {
|
|
2959
|
-
return (hAsync(Host, { key: '
|
|
2962
|
+
return (hAsync(Host, { key: '0d4b930791ee54ea55552b1a8ab9a2f248b5109e', class: this.h.classes(BlockquoteClass.root), type: this.type }, hAsync("gov-icon", { key: 'f27a6a5059203b000bede13c47aa7e5eb150e4cd', type: "components", name: "quote", size: "3xl" }), hAsync("blockquote", { key: '3206cd993309f5636920e5b552e3cd97be98b334', cite: this.cite }, hAsync("slot", { key: '16ac7ec3098d37e1c5b444fe18e47986a5afa915' })), hAsync("slot", { key: 'ae4f20fbf0820346cc9919014ab6a3fc9f9ef96e', name: "image" }), hAsync("slot", { key: 'f43c96fef744f2d6147f8579fad0c808c064c81a', name: "author" })));
|
|
2960
2963
|
}
|
|
2961
2964
|
get host() { return getElement(this); }
|
|
2962
2965
|
static get cmpMeta() { return {
|
|
@@ -3014,7 +3017,7 @@ class GovBreadcrumbs {
|
|
|
3014
3017
|
this.toggleOption = sumOfWidths > hostWidth;
|
|
3015
3018
|
}
|
|
3016
3019
|
render() {
|
|
3017
|
-
return (hAsync(Host, { key: '
|
|
3020
|
+
return (hAsync(Host, { key: 'dadd8de710050476be68e3f6fa0b317d6ccedfc1', class: this.h.classes(BreadcrumbsClass.root), expanded: this.expanded }, hAsync("nav", { key: '468a3b605408c943421243024733b0381809f931', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy }, hAsync("slot", { key: '2c9f85b826c8c54340ab5abba51c1861282c9cb7' })), this.toggleOption ? (hAsync("gov-button", { size: 'xs', color: 'primary', type: 'base', "aria-label": this.accessibleToggleLabel, "aria-pressed": this.expanded, "aria-expanded": this.expanded, "on-gov-click": () => this.expanded = !this.expanded }, hAsync("gov-icon", { name: this.expanded ? 'chevron-up' : 'chevron-down', type: "components" }))) : null));
|
|
3018
3021
|
}
|
|
3019
3022
|
/**
|
|
3020
3023
|
* Validate the WCAG attributes of the component
|
|
@@ -3098,11 +3101,11 @@ function toBool(value) {
|
|
|
3098
3101
|
}
|
|
3099
3102
|
}
|
|
3100
3103
|
|
|
3101
|
-
var Tags$
|
|
3104
|
+
var Tags$3;
|
|
3102
3105
|
(function (Tags) {
|
|
3103
3106
|
Tags["A"] = "a";
|
|
3104
3107
|
Tags["BUTTON"] = "button";
|
|
3105
|
-
})(Tags$
|
|
3108
|
+
})(Tags$3 || (Tags$3 = {}));
|
|
3106
3109
|
class GovButton {
|
|
3107
3110
|
constructor(hostRef) {
|
|
3108
3111
|
registerInstance(this, hostRef);
|
|
@@ -3172,11 +3175,11 @@ class GovButton {
|
|
|
3172
3175
|
this.hydrated = true;
|
|
3173
3176
|
}
|
|
3174
3177
|
render() {
|
|
3175
|
-
const Tag = this.href ? Tags$
|
|
3176
|
-
const nativeType = Tag === Tags$
|
|
3177
|
-
return (hAsync(Host, { key: '
|
|
3178
|
-
hAsync("gov-icon", { key: '
|
|
3179
|
-
hAsync("gov-icon", { key: '
|
|
3178
|
+
const Tag = this.href ? Tags$3.A : Tags$3.BUTTON;
|
|
3179
|
+
const nativeType = Tag === Tags$3.A ? undefined : this.nativeType;
|
|
3180
|
+
return (hAsync(Host, { key: 'cd3d644c54ac882be5adf1645391a873d426e549', size: this.size, hydrated: this.hydrated, color: this.color, class: this.h.classes(ButtonClass.root), type: this.type }, hAsync(Tag, Object.assign({ key: '39c76efc161144865f6bde8cf50e2808d0566415', class: "element", ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), disabled: this.disabled, id: this.identifier, href: this.href, target: this.target, download: this.download, hreflang: this.hreflang, rel: this.rel, name: this.name, type: nativeType, tabindex: this.disabled ? "-1" : "0" }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled) }), toBool(this.loading) && !this.h.hasSlot("icon-end") &&
|
|
3181
|
+
hAsync("gov-icon", { key: 'b75ed857aacc2b914810fbdbb3c0d39ede423639', name: "loader", class: "gov-spin-animation", type: "components" }), this.h.hasSlot("icon-start") && hAsync("slot", { key: '838152233ab4f51b36217ae0b4077a3f3efc3ecf', name: "icon-start" }), hAsync("slot", { key: '0dbfd16b6de4ea9c0bb92a97297262f10b9a335c' }), this.h.hasSlot("icon-end") && hAsync("slot", { key: '8854b0bced36cabfe85988e22d10d49f9761a910', name: "icon-end" }), toBool(this.loading) && this.h.hasSlot("icon-end") &&
|
|
3182
|
+
hAsync("gov-icon", { key: '607c848e0a9e4abf1c4232658a38922ade4accf9', name: "loader", class: "gov-spin-animation", type: "components" }))));
|
|
3180
3183
|
}
|
|
3181
3184
|
onClickHandler(e) {
|
|
3182
3185
|
e.stopPropagation();
|
|
@@ -3278,6 +3281,11 @@ const CardClass = {
|
|
|
3278
3281
|
footer: 'gov-card__footer',
|
|
3279
3282
|
};
|
|
3280
3283
|
|
|
3284
|
+
var Tags$2;
|
|
3285
|
+
(function (Tags) {
|
|
3286
|
+
Tags["A"] = "a";
|
|
3287
|
+
Tags["DIV"] = "div";
|
|
3288
|
+
})(Tags$2 || (Tags$2 = {}));
|
|
3281
3289
|
class GovCard {
|
|
3282
3290
|
constructor(hostRef) {
|
|
3283
3291
|
registerInstance(this, hostRef);
|
|
@@ -3286,6 +3294,8 @@ class GovCard {
|
|
|
3286
3294
|
this.direction = "vertical";
|
|
3287
3295
|
this.collapsible = false;
|
|
3288
3296
|
this.open = true;
|
|
3297
|
+
this.href = undefined;
|
|
3298
|
+
this.target = undefined;
|
|
3289
3299
|
this.accessibleTriggerLabel = undefined;
|
|
3290
3300
|
this.accessibleTriggerLabelledBy = undefined;
|
|
3291
3301
|
this.h = govHost(this.host);
|
|
@@ -3302,7 +3312,8 @@ class GovCard {
|
|
|
3302
3312
|
this.hydrated = true;
|
|
3303
3313
|
}
|
|
3304
3314
|
render() {
|
|
3305
|
-
|
|
3315
|
+
const Tag = this.href ? Tags$2.A : Tags$2.DIV;
|
|
3316
|
+
return (hAsync(Host, { key: '3a11dfeface1fa81d0c27f4ee3644c1c3b3a0191', class: this.h.classes(CardClass.root), open: this.open, collapsible: booleanString(this.collapsible), clickable: this.href ? true : null, direction: this.direction, hydrated: this.hydrated }, this.collapsible ? (hAsync("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.accessibleTriggerLabel, "aria-labelledby": this.accessibleTriggerLabelledBy, "aria-expanded": booleanString(this.open), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, hAsync("slot", { name: "headline" }), hAsync("gov-icon", { class: CardClass.arrow, name: "chevron-down", type: "components" }))) : this.h.hasSlot("headline") ? (hAsync("div", { class: CardClass.header }, hAsync("slot", { name: "headline" }))) : null, hAsync(Tag, { key: 'bdf47c610db6c937ebe9f6fa45124b5df8e2847f', href: this.href, target: this.target, id: this.contentId, "aria-hidden": this.collapsible ? booleanString(!this.open) : undefined, hidden: this.collapsible ? !this.open : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined, class: CardClass.inner }, this.h.hasSlot('img') && (hAsync("div", { key: '11ed1b55fe67d05382d538c903726ffd84fb7d48', class: CardClass.img }, hAsync("slot", { key: 'b1c362609163af2748256ecd1370bd074b8cd396', name: "img" }))), this.h.hasSlot('icon') && (hAsync("div", { key: '70b848927a86419442be3a84ee060c27a87fa12b', class: CardClass.icon }, hAsync("slot", { key: '357b5dffa7c0970495ed167ca9a5db0b8d67c721', name: "icon" }))), hAsync("div", { key: '0bec7d7dc66dda27ba05e9041caeca8f20def8c4', class: CardClass.content }, hAsync("slot", { key: 'e3b08eb1097e0d788df4a45f78711bd0a5f02656' })), this.h.hasSlot('footer') && (hAsync("div", { key: '0f4ef687f88e18a935d8f651bb7d2a9ea2c3df97', class: CardClass.footer }, hAsync("slot", { key: 'd645292f3ee9f007d9aeffdefcf2c26a1e5415b1', name: "footer" }))))));
|
|
3306
3317
|
}
|
|
3307
3318
|
onClickHandler(e) {
|
|
3308
3319
|
e.stopPropagation();
|
|
@@ -3327,13 +3338,15 @@ class GovCard {
|
|
|
3327
3338
|
"direction": [1],
|
|
3328
3339
|
"collapsible": [4],
|
|
3329
3340
|
"open": [1540],
|
|
3341
|
+
"href": [513],
|
|
3342
|
+
"target": [1],
|
|
3330
3343
|
"accessibleTriggerLabel": [1, "accessible-label"],
|
|
3331
3344
|
"accessibleTriggerLabelledBy": [1, "accessible-labelledby"],
|
|
3332
3345
|
"validateAccessibility": [64]
|
|
3333
3346
|
},
|
|
3334
3347
|
"$listeners$": undefined,
|
|
3335
3348
|
"$lazyBundleId$": "-",
|
|
3336
|
-
"$attrsToReflect$": [["open", "open"]]
|
|
3349
|
+
"$attrsToReflect$": [["open", "open"], ["href", "href"]]
|
|
3337
3350
|
}; }
|
|
3338
3351
|
}
|
|
3339
3352
|
|
|
@@ -3423,11 +3436,11 @@ class GovChip {
|
|
|
3423
3436
|
const nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined;
|
|
3424
3437
|
const iconStart = prepareIconFormat(this.iconStart);
|
|
3425
3438
|
const iconEnd = prepareIconFormat(this.iconEnd);
|
|
3426
|
-
return (hAsync(Host, { key: '
|
|
3439
|
+
return (hAsync(Host, { key: '6891a65866779d31691de4842180ae22767c4268', class: this.h.classes([
|
|
3427
3440
|
ChipClass.root,
|
|
3428
3441
|
this.h.hasSlot("right") ? ChipClass.hasRight : undefined,
|
|
3429
3442
|
this.h.hasSlot("left") ? ChipClass.hasLeft : undefined,
|
|
3430
|
-
]), disabled: this.disabled, href: this.href, color: this.color, type: this.type, size: this.size, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON, hydrated: this.hydrated }, hAsync(Tag, Object.assign({ key: '
|
|
3443
|
+
]), disabled: this.disabled, href: this.href, color: this.color, type: this.type, size: this.size, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON, hydrated: this.hydrated }, hAsync(Tag, Object.assign({ key: '32a2696de42de539438caa0842d0fefa31804b77', class: "element", href: this.href, target: this.target, ref: el => (this.triggerRef = el), 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: nativeType }, this.inheritedAttributes, { "aria-disabled": this.disabled }), hAsync("slot", { key: '93a5178477cbd4e0e09789c3ff0941e0972943f3', name: "left" }), hAsync("slot", { key: '7d019aa4f2e543a8cb22e7d694c6994656e92065', name: "icon-start" }, iconStart && hAsync("gov-icon", { key: '6077e90d13e1fe7945c43abf142e308fa88b10b9', type: iconStart.type, name: iconStart.name })), hAsync("slot", { key: '8c2fbc69cade5187c4dc3805e2eb9b2639620687' }), hAsync("slot", { key: 'ba590e6f48cf44ceb293917dbdecf34472db28ad', name: "icon-end" }, iconEnd && hAsync("gov-icon", { key: '030988484d52eb2a47b192888a8e4a1e8773bd74', type: iconEnd.type, name: iconEnd.name })), hAsync("slot", { key: 'b62f2b1359a70b2aba874686d33f3dd5b7d0c8a2', name: "right" }))));
|
|
3431
3444
|
}
|
|
3432
3445
|
onClickHandler(e) {
|
|
3433
3446
|
e.stopPropagation();
|
|
@@ -3487,7 +3500,7 @@ class GovContainer {
|
|
|
3487
3500
|
this.h = govHost(this.host);
|
|
3488
3501
|
}
|
|
3489
3502
|
render() {
|
|
3490
|
-
return (hAsync(Host, { key: '
|
|
3503
|
+
return (hAsync(Host, { key: '82f7c451b4196138a062e9e807c0b264b5f8e1fe', class: this.h.classes(ContainerClass.root) }, hAsync("slot", { key: '04a40aeafe57c99f4a148d04320bf390e3444ea8' })));
|
|
3491
3504
|
}
|
|
3492
3505
|
get host() { return getElement(this); }
|
|
3493
3506
|
static get cmpMeta() { return {
|
|
@@ -3517,7 +3530,7 @@ class GovControlGroup {
|
|
|
3517
3530
|
validateProp(Colors, newValue, ControlGroupClass.root);
|
|
3518
3531
|
}
|
|
3519
3532
|
render() {
|
|
3520
|
-
return (hAsync(Host, { key: '
|
|
3533
|
+
return (hAsync(Host, { key: '74d339e88105be80b3f335aa2af1155ab23099c8', class: this.h.classes(ControlGroupClass.root), color: this.color }, hAsync("slot", { key: 'e3af09285370470ad4e1ca9e6b225ca98708cebc' })));
|
|
3521
3534
|
}
|
|
3522
3535
|
get host() { return getElement(this); }
|
|
3523
3536
|
static get watchers() { return {
|
|
@@ -3551,7 +3564,7 @@ class GovCookiebar {
|
|
|
3551
3564
|
this.h = govHost(this.host);
|
|
3552
3565
|
}
|
|
3553
3566
|
render() {
|
|
3554
|
-
return (hAsync(Host, { key: '
|
|
3567
|
+
return (hAsync(Host, { key: 'ad50c5414cb7d3dc0c5b2d378e2484dea094b1de', class: this.h.classes(CookieConsentClass.root) }, hAsync("div", { key: 'aeedb06244acdb5bf57f11c37132d7fec2871cc5', class: CookieConsentClass.content }, hAsync("slot", { key: '90ac710208833ac2c6349792a02f13c4e80741c4', name: "headline" }), hAsync("slot", { key: '67c6c377aa6255bd31fefa8d20b55bfa3c90b489' })), (this.h.hasSlot('actions-primary') || this.h.hasSlot('actions-secondary')) && (hAsync("div", { key: 'aa9b2f1162adcd6d9a2d81da2262046ec8886f50', class: CookieConsentClass.actions }, this.h.hasSlot('actions-primary') && (hAsync("div", { key: 'b152aebaef3031dc48fe569fef4f1f8119dbaf6b', class: CookieConsentClass.actionsPrimary }, hAsync("slot", { key: '16b3e328ddc88528d877052b445855dc909605d4', name: "actions-primary" }))), this.h.hasSlot('actions-secondary') && (hAsync("div", { key: 'a825b255261a36cfd192d8936de9eb2b78d5d941', class: CookieConsentClass.actionsSecondary }, hAsync("slot", { key: 'f651dfbf6756682711b2c4415df6acf4a2c9a479', name: "actions-secondary" })))))));
|
|
3555
3568
|
}
|
|
3556
3569
|
get host() { return getElement(this); }
|
|
3557
3570
|
static get cmpMeta() { return {
|
|
@@ -3624,7 +3637,7 @@ class GovDialog {
|
|
|
3624
3637
|
document.body.classList.remove(DialogClass.bodyFix);
|
|
3625
3638
|
}
|
|
3626
3639
|
render() {
|
|
3627
|
-
return (hAsync(Host, { key: '
|
|
3640
|
+
return (hAsync(Host, { key: 'd4185a1b611db509ebf08509afa23b6e1682fe6f', class: this.h.classes(DialogClass.root), open: this.open, hydrated: this.hydrated }, hAsync("dialog", { key: '6a9624025826c1bd0eb7e83739112cf7b2d56dbc', class: DialogClass.dialog, hidden: !this.open, tabindex: boolToFocusValue(this.open), open: this.open, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.open), "aria-labelledby": this.accessibleLabelledBy || this.labelId, "aria-describedby": this.accessibleDescribedBy || this.contentId, role: this.role }, hAsync("div", { key: '1f93dc885aad9898151e00ca4717c8dd8eeea1ff', class: DialogClass.inner }, hAsync("div", { key: '4455c3f5f5e6aa9e6ec84ce400ead24a3e526374', class: DialogClass.header }, this.h.hasSlot("icon") && (hAsync("span", { key: '40bd7dba7f121d87e00b48b5c4f3ed0c01f5d4a0' }, hAsync("slot", { key: '911f36f5199cde0f6561da2385934bb88e668c68', name: "icon" }))), this.h.hasSlot('title') && (hAsync("span", { key: '1e45df978ffc0f360d242d24e826b4df41188196', class: DialogClass.title, id: this.labelId }, hAsync("slot", { key: '920d60a3305db5b2b7963e6e0c795dbe49101f40', name: "title" }))), hAsync("gov-button", { key: '42a64cd1706ba71362bc0bc0b8d69e9867ec5fb1', ref: el => (this.closeCtaRef = el), disabled: this.blockClose, class: DialogClass.close, color: "primary", "aria-label": this.accessibleCloseLabel, "aria-labelledby": this.accessibleCloseLabelledBy, type: "base", size: "m", "on-gov-click": this.onCloseHandler.bind(this) }, hAsync("gov-icon", { key: '480265e99c21126cbb755df8e6c6f482f69fb92b', slot: "icon-start", name: "x-lg", type: "components" }))), hAsync("div", { key: 'dc16ca442fbb779b8d0c127253324d2894e1b1e5', class: DialogClass.content, id: this.contentId }, hAsync("slot", { key: 'a721e2e66951a436c2a7c946648e15cd1043a7c1' })), this.h.hasSlot('footer') && (hAsync("div", { key: 'ea53d2a6284285c3b33a346784f783e69cc6ff4a', class: DialogClass.footer }, hAsync("slot", { key: '1693aec930d48ffd79505638b4b03df4e50529f5', name: "footer" }))))), this.open ? (hAsync("gov-backdrop", { disabled: this.blockBackdropClose, "aria-label": this.accessibleCloseLabel, "aria-labelled-by": this.accessibleCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })) : null));
|
|
3628
3641
|
}
|
|
3629
3642
|
onCloseHandler(e) {
|
|
3630
3643
|
e.stopPropagation();
|
|
@@ -3782,7 +3795,7 @@ class GovDropdown {
|
|
|
3782
3795
|
});
|
|
3783
3796
|
}
|
|
3784
3797
|
render() {
|
|
3785
|
-
return (hAsync(Host, { key: '
|
|
3798
|
+
return (hAsync(Host, { key: 'ed9beb8952cacb4b76fc73ab31345bbe8c5d206d', class: this.h.classes([DropdownClass.root]), open: this.open, position: this.position }, hAsync("slot", { key: '49d4da21a53be27e687622d17e21474c7cedb26d' }), hAsync("div", { key: '941b05aab703a6bfd981d912763f4576899fd617', ref: el => registerClickOutside(this, el, () => this.open = false), class: DropdownClass.list, id: this.listId, "aria-labelledby": this.controlId, "aria-hidden": toBoolAttr(!this.open), hidden: !this.open }, hAsync("slot", { key: 'cd0c1f28b7d717efd0fe8faa964df78dfbeca49f', name: "list" }))));
|
|
3786
3799
|
}
|
|
3787
3800
|
/**
|
|
3788
3801
|
* Returns the current state of the dropdown
|
|
@@ -3835,7 +3848,7 @@ class GovEmpty {
|
|
|
3835
3848
|
this.validateSize(this.size);
|
|
3836
3849
|
}
|
|
3837
3850
|
render() {
|
|
3838
|
-
return (hAsync(Host, { key: '
|
|
3851
|
+
return (hAsync(Host, { key: '93155f92af0574538fd919e52f312b0f02d07e21', class: this.h.classes(EmptyClass.root), size: this.size }, this.h.hasSlot('icon') && (hAsync("slot", { key: 'e9504c9396c9743ea7e454bb2df5d0f2a046aabe', name: "icon" })), hAsync("div", { key: '78f2d30f570c6123a58d2ac93db58b4e471796b3', class: EmptyClass.content }, hAsync("slot", { key: '7b5e1121dbfccf6d647e168e80c60cad4a1ca136', name: "headline" }), hAsync("slot", { key: 'd435390c88c0304f9ee129b268c454b2147fddb0' }))));
|
|
3839
3852
|
}
|
|
3840
3853
|
get host() { return getElement(this); }
|
|
3841
3854
|
static get watchers() { return {
|
|
@@ -3864,7 +3877,7 @@ class GovErrorCode {
|
|
|
3864
3877
|
this.h = govHost(this.host);
|
|
3865
3878
|
}
|
|
3866
3879
|
render() {
|
|
3867
|
-
return (hAsync(Host, { key: '
|
|
3880
|
+
return (hAsync(Host, { key: 'b253a0e9141dca1662d4d2b792f4c9d25f869a38', class: this.h.classes(ErrorCodeClass.root), align: "center" }, this.h.hasSlot('icon') && (hAsync("slot", { key: '4ca7e5788170cdf49d969d1a6ed3e12a0f368914', name: "icon" })), hAsync("div", { key: '1822320601777bba88b698375f8ccfc55e33567e', class: ErrorCodeClass.content }, hAsync("slot", { key: 'f3b7e46e878f7ff87291bae34a043d5e228dac4c', name: "headline" }), hAsync("slot", { key: 'f63ac6838e3397bd6828853f96f476454a0bcda7' }))));
|
|
3868
3881
|
}
|
|
3869
3882
|
get host() { return getElement(this); }
|
|
3870
3883
|
static get cmpMeta() { return {
|
|
@@ -3895,7 +3908,7 @@ class GovFlex {
|
|
|
3895
3908
|
this.h = govHost(this.host);
|
|
3896
3909
|
}
|
|
3897
3910
|
render() {
|
|
3898
|
-
return (hAsync(Host, { key: '
|
|
3911
|
+
return (hAsync(Host, { key: '71dadfbe4c7ddd45b36ffe74d8fd0c38e5069756', class: this.h.classes(FlexClass.root) }, hAsync("slot", { key: 'b86bd5e8abbf157f2476cad87134ff9eedd307cc' })));
|
|
3899
3912
|
}
|
|
3900
3913
|
get host() { return getElement(this); }
|
|
3901
3914
|
static get cmpMeta() { return {
|
|
@@ -4071,7 +4084,7 @@ class GovFormAutocomplete {
|
|
|
4071
4084
|
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
4072
4085
|
}
|
|
4073
4086
|
render() {
|
|
4074
|
-
return (hAsync(Host, { key: '
|
|
4087
|
+
return (hAsync(Host, { key: '22d9a81f648404e942ee680acddda83165af4dc2', class: FormAutocompleteClass.root, size: this.size }, hAsync("gov-form-input", Object.assign({ key: '4b60cfea2591a4bde6c97dee3c11b75461db3c5d', placeholder: this.placeholder, name: this.name, disabled: this.disabled, readonly: this.readonly, autocomplete: false, size: this.size, required: this.required, invalid: this.invalid, success: this.success, role: 'searchbox', value: this.value, minlength: this.minlength, maxlength: this.maxlength, "on-gov-input": throttle(this.onInputHandler.bind(this), this.throttleTime), "on-gov-keyup": this.onKeyUpHandler.bind(this), "on-gov-keydown": this.onKeyDownHandler.bind(this), "on-gov-focus": this.onFocusHandler.bind(this), "on-gov-blur": this.onBlurHandler.bind(this) }, this.inheritedAttributes, { "aria-autocomplete": 'list', "aria-owns": [this.listBoxId, this.inheritedAttributes['aria-owns']].join(' '), "aria-expanded": booleanString(this.list.length && this.focused ? true : false), ref: el => (this.inputRef = el) }), hAsync("slot", { key: '739722e49f8062d3ebec84dc2a1f840413439c7c', name: "validation-icon" }), hAsync("slot", { key: '6f3b3c7695a5c7d56276fbc41f854b9afff3800e', name: "icon-end" })), hAsync("ul", { key: '52b34c8501d976b438350104594b02137d40a386', class: FormAutocompleteClass.list, role: 'listbox', "aria-hidden": toBoolAttr(!this.focused), hidden: !this.focused, id: this.listBoxId, ref: el => (this.listRef = el) }, this.focused && this.list.length === 0 && this.processing === false && this.isValueAccepted && this.messageEmpty ? (hAsync("li", { class: FormAutocompleteClass.empty }, this.messageEmpty)) : null, this.focused && this.processing === true && this.isValueAccepted ? (hAsync("li", { class: FormAutocompleteClass.loading }, hAsync("gov-skeleton", { size: "m" }))) : null, this.focused ? this.list.map((item, index) => {
|
|
4075
4088
|
const isSelected = this.arrowCounter === index;
|
|
4076
4089
|
return (hAsync("li", { class: FormAutocompleteClass.item, innerHTML: this.templateResolver(item, isSelected), role: 'option', "aria-posinset": index, tabindex: isSelected ? 0 : -1, "aria-setsize": this.list.length, onTouchStart: (e) => this.onSelectHandler(e, index), onMouseDown: (e) => this.onSelectHandler(e, index), "aria-selected": toBoolAttr(isSelected) }, hAsync("slot", { name: "list-item-left" }), hAsync("slot", { name: "list-item-right" })));
|
|
4077
4090
|
}) : null)));
|
|
@@ -4604,7 +4617,7 @@ class GovFormCheckboxGroup {
|
|
|
4604
4617
|
});
|
|
4605
4618
|
}
|
|
4606
4619
|
render() {
|
|
4607
|
-
return (hAsync(Host, { key: '
|
|
4620
|
+
return (hAsync(Host, { key: '332a7e45344ebd6bafbcf20813ab7a06a99aae7e', gap: this.gap, class: this.h.classes(FormGroupClass.root), value: this.value }, hAsync("slot", { key: 'd00028b250fa309ee22d25bd07f0f940fec0590e' })));
|
|
4608
4621
|
}
|
|
4609
4622
|
get host() { return getElement(this); }
|
|
4610
4623
|
static get watchers() { return {
|
|
@@ -4671,7 +4684,7 @@ class GovFormControl {
|
|
|
4671
4684
|
}
|
|
4672
4685
|
render() {
|
|
4673
4686
|
const Tag = this.fieldset ? "fieldset" : "div";
|
|
4674
|
-
return (hAsync(Host, { key: '
|
|
4687
|
+
return (hAsync(Host, { key: '1502fcaa64e9c9839e7393573f10aa7a98161f8a', size: this.size, class: this.h.classes(FormControlClass.root) }, hAsync(Tag, { key: 'ea3147966c1e34366293c19228793679f5065d53', class: FormControlClass.holder }, this.h.hasSlot("top") && hAsync("slot", { key: '803c63b94d671bdcd30eeb2bf4a9ab9f23633358', name: "top" }), hAsync("slot", { key: 'c46d8faf4cea51bc15e6f57e0f2e9bea895b4454' }), this.h.hasSlot("bottom") && (hAsync("div", { key: '78fcf2aa671f3741f6d38f0519cd8983be5d6082', class: FormControlClass.bottom }, hAsync("slot", { key: '0d25b0c2d06a1f5612c2bf85dc428715e2a8f97a', name: "bottom" }))))));
|
|
4675
4688
|
}
|
|
4676
4689
|
get host() { return getElement(this); }
|
|
4677
4690
|
static get cmpMeta() { return {
|
|
@@ -4860,7 +4873,7 @@ class GovFormFile {
|
|
|
4860
4873
|
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
4861
4874
|
}
|
|
4862
4875
|
render() {
|
|
4863
|
-
return (hAsync(Host, { key: '
|
|
4876
|
+
return (hAsync(Host, { key: '6fe6eb71a8275871bb0aeebae9531d846123ae06', class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, hAsync("div", { key: 'cd7ab5a0c223214f5d825c8695993e8c64b9ea78', class: FormFileClass.area, ref: el => (this.areaRef = el) }, hAsync("slot", { key: '6197c08c6a50725a261da65069159f75e3e47834' }), hAsync("input", Object.assign({ key: 'f6897d875af8c47268118ef5d7dd9c19cec6e9a1', class: FormFileClass.input, ref: el => (this.inputRef = el), id: this.identifier || this.fileId, type: "file", name: this.name, accept: this.accept, multiple: this.multiple, onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, disabled: this.disabled }, this.inheritedAttributes, { "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled) }))), this.h.hasSlot("attachments") ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("slot", { name: "attachments" }))) : null, this.files.length && this.displayAttachments ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("gov-attachments", { label: this.accessibleAttachmentsLabel, "accessible-label": this.accessibleAttachmentsLabel }, this.files.map(item => (hAsync("gov-attachments-item", { "accessible-remove-labelledby": item.id, "on-gov-remove": () => this.onRemoveFileHandler(item) }, hAsync("span", { class: "sr-only", id: item.id }, this.accessibleRemoveLabel.replace("{FILE_NAME}", item.file.name)), item.file.name, item.acceptValid === false ? (hAsync("gov-form-message", { slot: "message", color: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill", type: "components" }), item.acceptValid === false ? this.errorAccept : null)) : null, item.sizeValid === false ? (hAsync("gov-form-message", { slot: "message", color: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill", type: "components" }), this.errorSize.replace("{FILE_SIZE}", formatBytes(this.maxFileSize)))) : null, hAsync("span", { slot: "info" }, "(", formatBytes(item.file.size), ")"))))))) : null));
|
|
4864
4877
|
}
|
|
4865
4878
|
onRemoveFileHandler(file) {
|
|
4866
4879
|
const index = this.files.findIndex(item => item.id === file.id);
|
|
@@ -4974,7 +4987,7 @@ class GovFormGroup {
|
|
|
4974
4987
|
this.validateOrientation(this.orientation);
|
|
4975
4988
|
}
|
|
4976
4989
|
render() {
|
|
4977
|
-
return (hAsync(Host, { key: '
|
|
4990
|
+
return (hAsync(Host, { key: 'a16a99205899fe2a9e49702708c8f879c363b111', gap: this.gap, class: this.h.classes(FormGroupClass.root) }, hAsync("slot", { key: '871900cb0682f57fa0856d90b38a683a005240dd' })));
|
|
4978
4991
|
}
|
|
4979
4992
|
get host() { return getElement(this); }
|
|
4980
4993
|
static get watchers() { return {
|
|
@@ -5079,11 +5092,11 @@ class GovFormInput {
|
|
|
5079
5092
|
}
|
|
5080
5093
|
render() {
|
|
5081
5094
|
const Tag = this.multiline ? Tags$1.TEXTAREA : Tags$1.INPUT;
|
|
5082
|
-
return (hAsync(Host, { key: '
|
|
5083
|
-
hAsync("div", { key: '
|
|
5084
|
-
hAsync("div", { key: '
|
|
5085
|
-
hAsync("gov-icon", { key: '
|
|
5086
|
-
hAsync("gov-icon", { key: '
|
|
5095
|
+
return (hAsync(Host, { key: 'f2b0e3a105b6a3904d59821bc68e13bfa01acea9', class: FormInputClass.root, size: this.size, type: this.type }, this.h.hasSlot("prefix") && hAsync("slot", { key: '13ff8da008e08322cd0eb241600751f8e896416b', name: "prefix" }), hAsync("span", { key: '22c1467190afaf1a2c8e98d0cd4500f123494885', class: "element" }, (this.h.hasSlot("icon-start") && !this.multiline) &&
|
|
5096
|
+
hAsync("div", { key: '1ab85a6556b44fd92959c0311b57028a8e3b8d74', class: FormInputClass.icons, onClick: () => this.inputRef.focus() }, hAsync("slot", { key: 'dcc9f5a1da1245bd4eccc0a919b08b73a556efe7', name: "icon-start" })), hAsync(Tag, Object.assign({ key: 'f05f59a1ad7d28acfd005942fdd22e7ba04e2d73', 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: el => (this.inputRef = el), placeholder: this.placeholder, spellcheck: toBoolAttrIfDefined(this.spellcheck), lang: this.inputLang, readonly: toBoolAttrIfDefined(this.readonly), autocomplete: toOnOffAttrIfDefined(this.autocomplete), autocorrect: toOnOffAttrIfDefined(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": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled) })), ((this.success || this.invalid || this.h.hasSlot("icon-end") || this.inputType === 'password') && !this.multiline) &&
|
|
5097
|
+
hAsync("div", { key: 'ab940283ca797a54590c73881aabe6e4032d4a77', class: FormInputClass.icons, onClick: () => this.inputRef.focus() }, this.success && !this.multiline &&
|
|
5098
|
+
hAsync("gov-icon", { key: 'af0b7c6e3c815eb74318052f490db2241f246707', class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && !this.multiline &&
|
|
5099
|
+
hAsync("gov-icon", { key: '4feef0479c061b9b073dea6c04e2bc428464a9de', class: "validation-icon", name: "exclamation-lg", type: "components" }), this.h.hasSlot("icon-end") && this.inputType !== 'password' && hAsync("slot", { key: 'fa3f4ac957a08d066706c273b008edef401f0a2b', name: "icon-end" }), this.inputType === 'password' ? (hAsync("gov-button", { color: 'primary', type: 'base', size: this.size, "aria-label": this.showPassword ? this.accessibleHidePasswordLabel : this.accessibleShowPasswordLabel, "on-gov-click": () => this.showPassword = !this.showPassword }, hAsync("gov-icon", { slot: "icon-start", name: "eye", type: "components" }))) : null)), this.h.hasSlot("sufix") && hAsync("slot", { key: 'ce4b50ff45632098c4457339538bac4a5a685df8', name: "sufix" })));
|
|
5087
5100
|
}
|
|
5088
5101
|
onFocusHandler(e) {
|
|
5089
5102
|
e.stopPropagation();
|
|
@@ -5215,7 +5228,7 @@ class GovFormLabel {
|
|
|
5215
5228
|
}
|
|
5216
5229
|
render() {
|
|
5217
5230
|
const Tag = this.legend ? 'legend' : 'label';
|
|
5218
|
-
return (hAsync(Host, { key: '
|
|
5231
|
+
return (hAsync(Host, { key: '5227d00ebe3e8923687d4e8d0f3a74bad0da82b3', class: FormLabelClass.root, size: this.size }, hAsync(Tag, { key: '981d363fdf7435a0b242b9610a7dd68e11d4f05e', class: FormLabelClass.label, htmlFor: this.identifier, onClick: () => this.govClick.emit() }, hAsync("slot", { key: 'bdf282178e200fa69d9f871354786ecbd024fa90' }), this.required ? hAsync("span", { class: "gov-color--error-500" }, "\u00A0*") : null)));
|
|
5219
5232
|
}
|
|
5220
5233
|
static get cmpMeta() { return {
|
|
5221
5234
|
"$flags$": 4,
|
|
@@ -5247,7 +5260,7 @@ class GovFormMessage {
|
|
|
5247
5260
|
this.validateColor(this.color);
|
|
5248
5261
|
}
|
|
5249
5262
|
render() {
|
|
5250
|
-
return (hAsync(Host, { key: '
|
|
5263
|
+
return (hAsync(Host, { key: 'd9acfd066e2f1c0445cfee56131f4717668a25b9', class: this.h.classes(FormMessageClass.root), color: this.color, size: this.size }, this.h.hasSlot('icon') && (hAsync("slot", { key: 'd09fb037cf1b719bf5b23638e5660f60efc045e2', name: "icon" })), hAsync("span", { key: '8168614d9f47c5d48282c9d11c74745a307cddf6', id: this.messageId, class: FormMessageClass.content }, hAsync("slot", { key: '3dbb35561437881e2f58235d9472fb9abe1684b9' }))));
|
|
5251
5264
|
}
|
|
5252
5265
|
/**
|
|
5253
5266
|
* Returns unique identifier of message
|
|
@@ -5437,11 +5450,11 @@ class GovFormMultiSelect {
|
|
|
5437
5450
|
});
|
|
5438
5451
|
}
|
|
5439
5452
|
render() {
|
|
5440
|
-
return (hAsync(Host, { key: '
|
|
5453
|
+
return (hAsync(Host, { key: 'efc41cd22f35a7c326f8321f11c875a6ee6d44fe', class: FormMultiSelectClass.root, size: this.size }, hAsync("div", { key: '229b01f0a9b0cb35e59cda5ce5a78c14309ab1ee', class: FormMultiSelectClass.wrap }, this.h.hasSlot('prefix') && hAsync("slot", { key: '48cefdbe753f57acca0aa5fc74bc7cc6f902e4b7', name: "prefix" }), hAsync("gov-form-autocomplete", { key: 'a4a3e0f0fb0f9e3d9ec0ce8d24b390a169f0749a', value: this.valueState, disabled: this.disabled, identifier: this.identifier || this.selectId, required: false, invalid: this.invalid, success: this.success, size: this.size, placeholder: this.placeholder, "message-empty": this.messageEmpty, "message-loading": this.messageLoading, ref: el => (this.autocompleteRef = el), minlength: 0, "aria-owns": this.listId }, this.success && hAsync("gov-icon", { key: '8a43c6c12f16773956b669b7cd08608d6aeb3bb9', slot: "validation-icon", class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && hAsync("gov-icon", { key: '6eaee1ebf4ac9c337e22b071edf77fbeec012a3c', slot: "validation-icon", class: "validation-icon", name: "exclamation-lg", type: "components" }), hAsync("gov-icon", { key: 'c9f7f2f83f37abdab373bfb2aa43c36ec08dfede', slot: "icon-end", class: "arrow-icon", name: "chevron-down", type: "components" })), hAsync("select", Object.assign({ key: 'd4623e47694c6b28b5e201f083e6d73fa6a331aa', hidden: true, class: 'hidden-select-list', "aria-hidden": toBoolAttr(true), multiple: true, required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid) }), hAsync("slot", { key: 'f5e03e3e33a1bb97b00c544765332b67812c5fd5' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
|
|
5441
5454
|
var _a;
|
|
5442
5455
|
const selectedOption = this.selectedValueIndex(option.value);
|
|
5443
5456
|
return (hAsync("option", { value: option.value, selected: selectedOption > -1, disabled: option === null || option === void 0 ? void 0 : option.disabled }, (_a = option.label) !== null && _a !== void 0 ? _a : option.value));
|
|
5444
|
-
})), this.h.hasSlot('sufix') && hAsync("slot", { key: '
|
|
5457
|
+
})), this.h.hasSlot('sufix') && hAsync("slot", { key: 'aa9c37047083aa68a9ccaf8066a62a2eb9a3797f', name: "sufix" })), this.hideSelectedList === false ? (hAsync("ul", { role: "listbox", id: this.listId, class: FormMultiSelectClass.list }, Array.isArray(this.selectedOptionsState) && this.selectedOptionsState.map(selected => {
|
|
5445
5458
|
var _a, _b;
|
|
5446
5459
|
const option = this.getOption(selected);
|
|
5447
5460
|
if (!option)
|
|
@@ -5551,7 +5564,7 @@ class GovFormPasswordPower {
|
|
|
5551
5564
|
this.power = undefined;
|
|
5552
5565
|
}
|
|
5553
5566
|
render() {
|
|
5554
|
-
return (hAsync(Host, { key: '
|
|
5567
|
+
return (hAsync(Host, { key: 'db698558cba39d591c1119a07d6aafd66880a478', class: FormPasswordPowerClass.root }, hAsync("span", { key: '24b61cba713d7ba1d56ea385889f89d40c181b9b', class: FormPasswordPowerClass.bar }, hAsync("span", { key: '01b941d9082565c4673cc5a5f24c083500d216fc' }), hAsync("span", { key: '8c87f443b4571a9a98cbf88c7adaa39b663cda5d' }), hAsync("span", { key: 'ab9d769c365e6c9ed09bca718b5ef226a0e5c456' })), hAsync("span", { key: '5cd85486880615d0732c65bb40b89ccf3b1c381e', class: FormPasswordPowerClass.text }, hAsync("slot", { key: '11fd5c8d7584ac5a129b4f4a64304ceb05aa498f' }))));
|
|
5555
5568
|
}
|
|
5556
5569
|
static get cmpMeta() { return {
|
|
5557
5570
|
"$flags$": 4,
|
|
@@ -5744,7 +5757,7 @@ class GovFormRadioGroup {
|
|
|
5744
5757
|
});
|
|
5745
5758
|
}
|
|
5746
5759
|
render() {
|
|
5747
|
-
return (hAsync(Host, { key: '
|
|
5760
|
+
return (hAsync(Host, { key: '332ec3c5c0582167e5543304daa8508cc354ecc5', gap: this.gap, class: this.h.classes(FormGroupClass.root), value: this.value }, hAsync("slot", { key: '7bfbcec04a7f39226709c9546dbd0f121678d075' })));
|
|
5748
5761
|
}
|
|
5749
5762
|
get host() { return getElement(this); }
|
|
5750
5763
|
static get watchers() { return {
|
|
@@ -5766,6 +5779,217 @@ class GovFormRadioGroup {
|
|
|
5766
5779
|
}; }
|
|
5767
5780
|
}
|
|
5768
5781
|
|
|
5782
|
+
const FormRangeSizes = pick(Sizes, ['_S', '_M', '_L']);
|
|
5783
|
+
const FormRangeClass = {
|
|
5784
|
+
root: 'gov-form-range',
|
|
5785
|
+
fill: 'gov-form-range--fill',
|
|
5786
|
+
input: 'gov-form-range--input',
|
|
5787
|
+
};
|
|
5788
|
+
|
|
5789
|
+
class GovFormRange {
|
|
5790
|
+
constructor(hostRef) {
|
|
5791
|
+
registerInstance(this, hostRef);
|
|
5792
|
+
this.govFocus = createEvent(this, "gov-focus", 7);
|
|
5793
|
+
this.govBlur = createEvent(this, "gov-blur", 7);
|
|
5794
|
+
this.govInput = createEvent(this, "gov-input", 7);
|
|
5795
|
+
this.size = "m";
|
|
5796
|
+
this.value = undefined;
|
|
5797
|
+
this.identifier = undefined;
|
|
5798
|
+
this.name = undefined;
|
|
5799
|
+
this.min = undefined;
|
|
5800
|
+
this.max = undefined;
|
|
5801
|
+
this.step = undefined;
|
|
5802
|
+
this.tooltip = false;
|
|
5803
|
+
this.input = false;
|
|
5804
|
+
this.listIdentifier = undefined;
|
|
5805
|
+
this.required = false;
|
|
5806
|
+
this.success = undefined;
|
|
5807
|
+
this.invalid = undefined;
|
|
5808
|
+
this.disabled = false;
|
|
5809
|
+
this.inheritedAttributes = {};
|
|
5810
|
+
this.h = govHost(this.host);
|
|
5811
|
+
this.f = govForm(this.h);
|
|
5812
|
+
this.inputId = createID("GovInput");
|
|
5813
|
+
}
|
|
5814
|
+
validateSize(newValue) {
|
|
5815
|
+
validateProp(FormRangeSizes, newValue, FormRangeClass.root);
|
|
5816
|
+
}
|
|
5817
|
+
watchValue() {
|
|
5818
|
+
this.controlOutputPosition();
|
|
5819
|
+
}
|
|
5820
|
+
watchControlAttrs() {
|
|
5821
|
+
this.passControlAttrs();
|
|
5822
|
+
}
|
|
5823
|
+
passControlAttrs() {
|
|
5824
|
+
this.f.passAttrToControl("size", this.size);
|
|
5825
|
+
this.f.passAttrToControl("success", toBoolAttr(this.success));
|
|
5826
|
+
this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
|
|
5827
|
+
this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
|
|
5828
|
+
}
|
|
5829
|
+
get getThumbWidth() {
|
|
5830
|
+
const styles = window.getComputedStyle(this.inputRef);
|
|
5831
|
+
return parseFloat(styles.getPropertyValue('--thumb-size')) || 1;
|
|
5832
|
+
}
|
|
5833
|
+
controlOutputPosition() {
|
|
5834
|
+
const valueInt = +this.value;
|
|
5835
|
+
const min = +this.inputRef.min;
|
|
5836
|
+
const max = +this.inputRef.max;
|
|
5837
|
+
const thumbWidth = (this.getThumbWidth * 16);
|
|
5838
|
+
const rangeWidth = this.inputRef.offsetWidth;
|
|
5839
|
+
const percentage = ((valueInt - min) / (max - min)) * 100;
|
|
5840
|
+
let tooltipOffset = ((percentage / 100) * (rangeWidth - thumbWidth)) + (thumbWidth / 2);
|
|
5841
|
+
if (this.outputRef) {
|
|
5842
|
+
this.outputRef.textContent = this.value;
|
|
5843
|
+
const outputWidth = this.outputRef.offsetWidth / 2;
|
|
5844
|
+
this.outputRef.style.left = `${tooltipOffset - outputWidth}px`;
|
|
5845
|
+
}
|
|
5846
|
+
if (this.fillRef) {
|
|
5847
|
+
this.fillRef.style.width = `${tooltipOffset}px`;
|
|
5848
|
+
}
|
|
5849
|
+
}
|
|
5850
|
+
componentDidLoad() {
|
|
5851
|
+
this.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {
|
|
5852
|
+
this.onAriaAttributeChange(attributeName, newValue);
|
|
5853
|
+
});
|
|
5854
|
+
this.attributeObserver.startObserving(ariaAttributes);
|
|
5855
|
+
}
|
|
5856
|
+
componentWillLoad() {
|
|
5857
|
+
this.validateSize(this.size);
|
|
5858
|
+
this.inheritedAttributes = inheritAriaAttributes(this.host);
|
|
5859
|
+
}
|
|
5860
|
+
componentDidRender() {
|
|
5861
|
+
this.passControlAttrs();
|
|
5862
|
+
this.f.passAttrToLabel("required", String(this.required));
|
|
5863
|
+
tick(this.controlOutputPosition.bind(this));
|
|
5864
|
+
}
|
|
5865
|
+
onAriaAttributeChange(attributeName, newValue) {
|
|
5866
|
+
this.host.removeAttribute(attributeName);
|
|
5867
|
+
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
5868
|
+
}
|
|
5869
|
+
disconnectedCallback() {
|
|
5870
|
+
var _a;
|
|
5871
|
+
(_a = this.attributeObserver) === null || _a === void 0 ? void 0 : _a.stopObserving();
|
|
5872
|
+
}
|
|
5873
|
+
render() {
|
|
5874
|
+
return (hAsync(Host, { key: '87236e8cdb0534dbefc72286517c353d41860260', class: FormRangeClass.root, size: this.size }, this.h.hasSlot("prefix") && hAsync("slot", { key: '83f2b5ff50d7638d1e13de9e0f4774d747a8e374', name: "prefix" }), hAsync("span", { key: '7cef4eac6144ee71dd6b3ffcdc2e992f33f97740', class: "element" }, hAsync("input", Object.assign({ key: '1c2fda25454dc11bdfab17065f07bb38959a2941', type: "range", ref: el => (this.inputRef = el), onInput: this.onInputHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), id: this.identifier || this.inputId, name: this.name, min: this.min, max: this.max, step: this.step, list: this.listIdentifier, value: this.value, required: this.required, disabled: this.disabled }, this.inheritedAttributes, { "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled) })), hAsync("div", { key: 'bdece1cc0cad1614eb090e9183d9dd96389b7568', class: FormRangeClass.fill, ref: el => (this.fillRef = el) }), this.tooltip ?
|
|
5875
|
+
hAsync("output", { htmlFor: this.name, ref: el => (this.outputRef = el) }, this.value)
|
|
5876
|
+
: null, hAsync("slot", { key: '4e346163e119d7508942a31bc35b28acd807bdb3', name: "datalist" })), this.h.hasSlot("sufix") && hAsync("slot", { key: '3faaf9ba94069c9a7f3a147e9a6ecfec7a38edc7', name: "sufix" }), this.input ?
|
|
5877
|
+
hAsync("gov-form-input", Object.assign({ "on-gov-input": this.onCustomInputHandler.bind(this), class: FormRangeClass.input, size: this.size, value: this.value, disabled: this.disabled }, this.inheritedAttributes))
|
|
5878
|
+
: null));
|
|
5879
|
+
}
|
|
5880
|
+
onCustomInputHandler(e) {
|
|
5881
|
+
const value = e.target.value;
|
|
5882
|
+
if (this.step && isNumber(+this.step)) {
|
|
5883
|
+
const numValue = +value;
|
|
5884
|
+
const numMin = +this.min;
|
|
5885
|
+
const numMax = +this.max;
|
|
5886
|
+
const numStep = +this.step;
|
|
5887
|
+
if (isNaN(numValue)) {
|
|
5888
|
+
return false;
|
|
5889
|
+
}
|
|
5890
|
+
if (numValue < numMin || numValue > numMax) {
|
|
5891
|
+
return false;
|
|
5892
|
+
}
|
|
5893
|
+
const diff = numValue - numMin;
|
|
5894
|
+
if (diff % numStep !== 0) {
|
|
5895
|
+
return false;
|
|
5896
|
+
}
|
|
5897
|
+
this.value = value;
|
|
5898
|
+
this.govInput.emit({
|
|
5899
|
+
component: FormRangeClass.root,
|
|
5900
|
+
value: this.value,
|
|
5901
|
+
originalEvent: e,
|
|
5902
|
+
});
|
|
5903
|
+
}
|
|
5904
|
+
}
|
|
5905
|
+
onInputHandler(e) {
|
|
5906
|
+
this.value = e.target.value;
|
|
5907
|
+
e.stopPropagation();
|
|
5908
|
+
this.govInput.emit({
|
|
5909
|
+
component: FormRangeClass.root,
|
|
5910
|
+
value: this.value,
|
|
5911
|
+
originalEvent: e,
|
|
5912
|
+
});
|
|
5913
|
+
}
|
|
5914
|
+
onFocusHandler(e) {
|
|
5915
|
+
e.stopPropagation();
|
|
5916
|
+
this.govFocus.emit({
|
|
5917
|
+
component: FormRangeClass.root,
|
|
5918
|
+
value: this.value,
|
|
5919
|
+
originalEvent: e,
|
|
5920
|
+
});
|
|
5921
|
+
}
|
|
5922
|
+
onBlurHandler(e) {
|
|
5923
|
+
e.stopPropagation();
|
|
5924
|
+
this.govBlur.emit({
|
|
5925
|
+
component: FormRangeClass.root,
|
|
5926
|
+
value: this.value,
|
|
5927
|
+
originalEvent: e,
|
|
5928
|
+
});
|
|
5929
|
+
}
|
|
5930
|
+
/**
|
|
5931
|
+
* Returns the current state of the component
|
|
5932
|
+
*/
|
|
5933
|
+
async setFocus(options) {
|
|
5934
|
+
return this.inputRef.focus(options);
|
|
5935
|
+
}
|
|
5936
|
+
/**
|
|
5937
|
+
* Sets the ordered value of the element
|
|
5938
|
+
*/
|
|
5939
|
+
async setValue(value) {
|
|
5940
|
+
this.value = value;
|
|
5941
|
+
}
|
|
5942
|
+
/**
|
|
5943
|
+
* Clears input value
|
|
5944
|
+
*/
|
|
5945
|
+
async clearValue() {
|
|
5946
|
+
this.value = "";
|
|
5947
|
+
this.inputRef.value = "";
|
|
5948
|
+
}
|
|
5949
|
+
/**
|
|
5950
|
+
* Returns an instance of the native html input element
|
|
5951
|
+
*/
|
|
5952
|
+
async getRef() {
|
|
5953
|
+
return this.inputRef;
|
|
5954
|
+
}
|
|
5955
|
+
get host() { return getElement(this); }
|
|
5956
|
+
static get watchers() { return {
|
|
5957
|
+
"size": ["validateSize", "watchControlAttrs"],
|
|
5958
|
+
"value": ["watchValue"],
|
|
5959
|
+
"disabled": ["watchControlAttrs"],
|
|
5960
|
+
"invalid": ["watchControlAttrs"],
|
|
5961
|
+
"success": ["watchControlAttrs"]
|
|
5962
|
+
}; }
|
|
5963
|
+
static get cmpMeta() { return {
|
|
5964
|
+
"$flags$": 4,
|
|
5965
|
+
"$tagName$": "gov-form-range",
|
|
5966
|
+
"$members$": {
|
|
5967
|
+
"size": [1],
|
|
5968
|
+
"value": [1537],
|
|
5969
|
+
"identifier": [1],
|
|
5970
|
+
"name": [1],
|
|
5971
|
+
"min": [8],
|
|
5972
|
+
"max": [8],
|
|
5973
|
+
"step": [8],
|
|
5974
|
+
"tooltip": [4],
|
|
5975
|
+
"input": [4],
|
|
5976
|
+
"listIdentifier": [1, "list-identifier"],
|
|
5977
|
+
"required": [516],
|
|
5978
|
+
"success": [516],
|
|
5979
|
+
"invalid": [516],
|
|
5980
|
+
"disabled": [516],
|
|
5981
|
+
"inheritedAttributes": [32],
|
|
5982
|
+
"setFocus": [64],
|
|
5983
|
+
"setValue": [64],
|
|
5984
|
+
"clearValue": [64],
|
|
5985
|
+
"getRef": [64]
|
|
5986
|
+
},
|
|
5987
|
+
"$listeners$": undefined,
|
|
5988
|
+
"$lazyBundleId$": "-",
|
|
5989
|
+
"$attrsToReflect$": [["value", "value"], ["required", "required"], ["success", "success"], ["invalid", "invalid"], ["disabled", "disabled"]]
|
|
5990
|
+
}; }
|
|
5991
|
+
}
|
|
5992
|
+
|
|
5769
5993
|
pick(Sizes, ['_S', '_M', '_L']);
|
|
5770
5994
|
pick(Colors, ['PRIMARY', 'NEUTRAL']);
|
|
5771
5995
|
const FormSearchClass = {
|
|
@@ -5779,7 +6003,7 @@ class GovFormSearch {
|
|
|
5779
6003
|
this.color = 'neutral';
|
|
5780
6004
|
}
|
|
5781
6005
|
render() {
|
|
5782
|
-
return (hAsync(Host, { key: '
|
|
6006
|
+
return (hAsync(Host, { key: 'aac69369eafa76eee7e1117601008ac8d34b5417', class: FormSearchClass.root, color: this.color, size: this.size }, hAsync("slot", { key: '7f20815a61d662cbfde7f85f40e45277c5494315', name: "input" }), hAsync("slot", { key: 'd2db24dda8aad0577f8d84ea39377df3dd1b9b19', name: "button-erase" }), hAsync("slot", { key: 'd7f38530eb623e1f230e0ec42db0a68f775eec8e', name: "button" })));
|
|
5783
6007
|
}
|
|
5784
6008
|
get host() { return getElement(this); }
|
|
5785
6009
|
static get cmpMeta() { return {
|
|
@@ -5872,10 +6096,10 @@ class GovFormSelect {
|
|
|
5872
6096
|
});
|
|
5873
6097
|
}
|
|
5874
6098
|
render() {
|
|
5875
|
-
return (hAsync(Host, { key: '
|
|
6099
|
+
return (hAsync(Host, { key: 'ece22604354a3bc7b27aebb52b767e720c470fb2', class: FormSelectClass.root, size: this.size }, this.h.hasSlot('prefix') && hAsync("slot", { key: 'fdff42c0ad6111e691b8246a8cbe3d77cbb9ab94', name: "prefix" }), hAsync("span", { key: '726341bdd8a76bb6dde8af330505d97273007bb3', class: "element" }, hAsync("select", Object.assign({ key: 'cb51afcb898b91f87236cdfd416cd26013e01fc7', 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: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid) }), hAsync("slot", { key: '8a81f952601ac949f68047eca18cd7aab61f5ffa' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
|
|
5876
6100
|
var _a;
|
|
5877
6101
|
return (hAsync("option", { value: option.value, selected: option.value === this.value, disabled: option === null || option === void 0 ? void 0 : option.disabled }, (_a = option.label) !== null && _a !== void 0 ? _a : option.value));
|
|
5878
|
-
})), this.success && hAsync("gov-icon", { key: '
|
|
6102
|
+
})), this.success && hAsync("gov-icon", { key: '4567f0e75b9f9b9eba7a2a624107699ee531c580', class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && hAsync("gov-icon", { key: '818e5fe59f78b86280abdf117cb9b786e9ac103a', class: "validation-icon", name: "exclamation-lg", type: "components" }), hAsync("gov-icon", { key: '9705a3e034da03543a074eb206224f3e63236b7c', class: "arrow-icon", name: "chevron-down", type: "components" })), this.h.hasSlot('sufix') && hAsync("slot", { key: 'dd8fcce83d933ce39a8195d288472d013f708870', name: "sufix" })));
|
|
5879
6103
|
}
|
|
5880
6104
|
onFocusHandler(e) {
|
|
5881
6105
|
this.focused = true;
|
|
@@ -6098,7 +6322,7 @@ class GovGrid {
|
|
|
6098
6322
|
this.h = govHost(this.host);
|
|
6099
6323
|
}
|
|
6100
6324
|
render() {
|
|
6101
|
-
return (hAsync(Host, { key: '
|
|
6325
|
+
return (hAsync(Host, { key: 'e5ca7f6e3554f0e3bd52731a81c3ae4cc809a8dd', class: this.h.classes(GridClass.root), role: "list" }, hAsync("slot", { key: 'e99880d69919891b5b22c0eab933069fbcb4852c' })));
|
|
6102
6326
|
}
|
|
6103
6327
|
get host() { return getElement(this); }
|
|
6104
6328
|
static get cmpMeta() { return {
|
|
@@ -6132,7 +6356,7 @@ class GovGridItem {
|
|
|
6132
6356
|
this.h = govHost(this.host);
|
|
6133
6357
|
}
|
|
6134
6358
|
render() {
|
|
6135
|
-
return (hAsync(Host, { key: '
|
|
6359
|
+
return (hAsync(Host, { key: '30f35aa2a7d4c2456164b6f0001a915796a07b9c', class: this.h.classes(GridItemClass.root), role: "listitem" }, hAsync("slot", { key: '25e3d4f401f56697a3f90abd01b9add8fa1d238b' })));
|
|
6136
6360
|
}
|
|
6137
6361
|
get host() { return getElement(this); }
|
|
6138
6362
|
static get cmpMeta() { return {
|
|
@@ -6180,7 +6404,7 @@ const IconClass = {
|
|
|
6180
6404
|
holder: 'gov-icon__holder',
|
|
6181
6405
|
};
|
|
6182
6406
|
|
|
6183
|
-
const version = "4.2.
|
|
6407
|
+
const version = "4.2.1";
|
|
6184
6408
|
|
|
6185
6409
|
const dsVersion = () => {
|
|
6186
6410
|
return version;
|
|
@@ -6403,8 +6627,8 @@ class GovInfobar {
|
|
|
6403
6627
|
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
6404
6628
|
}
|
|
6405
6629
|
render() {
|
|
6406
|
-
const closeButton = (hAsync("gov-button", { key: '
|
|
6407
|
-
return (hAsync(Host, { key: '
|
|
6630
|
+
const closeButton = (hAsync("gov-button", { key: 'bf4dbf4e33374f5827d51c7fab56ce1de0e86103', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, hAsync("gov-icon", { key: 'c85cebe33a0b06adc79c0adb97d9cabe3d648651', name: "x-lg", type: "components" })));
|
|
6631
|
+
return (hAsync(Host, { key: '82fe497b7f6d4f3aba3bcad0295bb626587952c1', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, hAsync("section", Object.assign({ key: 'd2b1a013623206d9662c252f189a5b9edeff009d', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), this.h.hasSlot("icon") && (hAsync("span", { key: '18efd7eecd6eeb683ba2982f9abb2cfc09e90dab' }, hAsync("slot", { key: 'cc093214b7fd417c1baec6918e5613f843a7bb55', name: "icon" }))), hAsync("div", { key: '07d2db35c654390b08318273dbd76456b75ae5e4', class: InfobarClass.content }, this.h.hasSlot('headline') ? (hAsync(Fragment, null, hAsync("div", { class: InfobarClass.headline }, hAsync("slot", { name: "headline" }), hAsync("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, hAsync("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), hAsync("div", { hidden: !this.toggleContent, "aria-hidden": toBoolAttr(this.toggleContent) }, hAsync("slot", null)))) : (hAsync("slot", null))), this.closable && closeButton)));
|
|
6408
6632
|
}
|
|
6409
6633
|
onCloseHandler(e) {
|
|
6410
6634
|
this.govClose.emit({
|
|
@@ -6473,7 +6697,7 @@ class GovLayout {
|
|
|
6473
6697
|
return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
|
|
6474
6698
|
}
|
|
6475
6699
|
render() {
|
|
6476
|
-
return (hAsync(Host, { key: '
|
|
6700
|
+
return (hAsync(Host, { key: 'f22ec016a02ac1c97f570f167ac14fbcd1a82f21', type: this.type, class: this.h.classes(LayoutClass.root) }, hAsync("section", { key: 'b6e46bbe21ac021b63f6afa1f96f2195afd9d456', class: this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse) }, hAsync("slot", { key: '789e8b9c425651966356c485a140dfa7fd549e50' }))));
|
|
6477
6701
|
}
|
|
6478
6702
|
get host() { return getElement(this); }
|
|
6479
6703
|
static get cmpMeta() { return {
|
|
@@ -6496,7 +6720,7 @@ class GovLayoutColumn {
|
|
|
6496
6720
|
this.h = govHost(this.host);
|
|
6497
6721
|
}
|
|
6498
6722
|
render() {
|
|
6499
|
-
return (hAsync(Host, { key: '
|
|
6723
|
+
return (hAsync(Host, { key: '48f578ba8365e6f3748a4ac6766784a4062846e1', class: this.h.classes(LayoutColumnClass.root) }, hAsync("slot", { key: 'd5aca194eda1174fa71401f66d17743d1f260a50' })));
|
|
6500
6724
|
}
|
|
6501
6725
|
get host() { return getElement(this); }
|
|
6502
6726
|
static get cmpMeta() { return {
|
|
@@ -6542,7 +6766,7 @@ class GovLifecycle {
|
|
|
6542
6766
|
console.log('componentDidUpdate', this.uniqueId);
|
|
6543
6767
|
}
|
|
6544
6768
|
render() {
|
|
6545
|
-
return (hAsync(Host, { key: '
|
|
6769
|
+
return (hAsync(Host, { key: '8c519b9d20ae1a95fc4ac207fe447916219deaf4', identifier: this.uniqueId }, hAsync("span", { key: 'd034bb091344d475bbb1a420d35e88dd1291ba45' }, "lifecycle ", this.uniqueId)));
|
|
6546
6770
|
}
|
|
6547
6771
|
static get cmpMeta() { return {
|
|
6548
6772
|
"$flags$": 0,
|
|
@@ -6565,6 +6789,7 @@ class GovLink {
|
|
|
6565
6789
|
registerInstance(this, hostRef);
|
|
6566
6790
|
this.size = 'm';
|
|
6567
6791
|
this.external = false;
|
|
6792
|
+
this.truncate = false;
|
|
6568
6793
|
this.href = undefined;
|
|
6569
6794
|
this.target = undefined;
|
|
6570
6795
|
this.inheritedAttributes = {};
|
|
@@ -6582,7 +6807,7 @@ class GovLink {
|
|
|
6582
6807
|
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
6583
6808
|
}
|
|
6584
6809
|
render() {
|
|
6585
|
-
return (hAsync(Host, { key: '
|
|
6810
|
+
return (hAsync(Host, { key: '1e7fe110dd7ffc47364765cd01d17adf78db675c', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external, truncate: this.truncate }, hAsync("a", Object.assign({ key: '4a9148c0adfd79bc7cb0953768929b702530c298', class: "element", href: this.href, target: this.external ? '_blank' : this.target, rel: this.external ? "noreferrer" : null }, this.inheritedAttributes), hAsync("slot", { key: 'ca80033f0525c11e0f16bb9cb93c746816144e54', name: "icon-start" }), hAsync("span", { key: '0338222112b926d141ff42538489d7d019997560' }, hAsync("slot", { key: 'a492aed90aed29892e4522f602858d8a84c5f010' })), hAsync("slot", { key: 'f9f60c054849df9980b26ca09804218476d3b4ed', name: "icon-end" }), this.external && hAsync("gov-icon", { key: 'fbe4cd9d42ae1bcc1f3666271f49ee96ff49d112', name: "box-arrow-up-right", type: "components", size: this.size, class: LinkClass.external }))));
|
|
6586
6811
|
}
|
|
6587
6812
|
get host() { return getElement(this); }
|
|
6588
6813
|
static get watchers() { return {
|
|
@@ -6594,6 +6819,7 @@ class GovLink {
|
|
|
6594
6819
|
"$members$": {
|
|
6595
6820
|
"size": [1],
|
|
6596
6821
|
"external": [4],
|
|
6822
|
+
"truncate": [4],
|
|
6597
6823
|
"href": [1],
|
|
6598
6824
|
"target": [1],
|
|
6599
6825
|
"inheritedAttributes": [32]
|
|
@@ -6624,7 +6850,7 @@ class GovLoading {
|
|
|
6624
6850
|
this.validateSize(this.size);
|
|
6625
6851
|
}
|
|
6626
6852
|
render() {
|
|
6627
|
-
return (hAsync(Host, { key: '
|
|
6853
|
+
return (hAsync(Host, { key: '84c4d73523ef359fc224441d2b3ee700b9d563b3', class: this.h.classes(LoadingClass.root), size: this.size }, hAsync("div", { key: 'e8e9bda9cb6d86fdec2022b8a9b3fba9f5ee423a', class: LoadingClass.content }, hAsync("gov-icon", { key: '7adafe593b0c37da48dc3da5eb43bc25c504e9a4', class: prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader", type: "components" }), hAsync("slot", { key: 'e4b8461f84f519b70eea2a1bb10cf86e9e3d14ca' })), hAsync("gov-backdrop", { key: '0c044675ab012d028dcc7772c2ad0dfb0aa08de2', inverse: true })));
|
|
6628
6854
|
}
|
|
6629
6855
|
get host() { return getElement(this); }
|
|
6630
6856
|
static get watchers() { return {
|
|
@@ -6664,7 +6890,7 @@ class GovMessage {
|
|
|
6664
6890
|
validateProp(Colors, newValue, MessageClass.root);
|
|
6665
6891
|
}
|
|
6666
6892
|
render() {
|
|
6667
|
-
return (hAsync(Host, { key: '
|
|
6893
|
+
return (hAsync(Host, { key: '6cdca867db0d3576076bba0518cbfc844762aa9e', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (hAsync("span", { key: 'b28876f005e857aaddaf2afb6372745978abb926' }, hAsync("slot", { key: 'b88920a480dfdd18ddcdcc013ff36a81d6de1707', name: "icon" }))), hAsync("div", { key: 'ad9e4ef4894877d53f0b7c598035c0c35e317054', class: MessageClass.content }, hAsync("slot", { key: '78f8e1a9ee32eddaeb7b78e029476a525975ee6d' }))));
|
|
6668
6894
|
}
|
|
6669
6895
|
get host() { return getElement(this); }
|
|
6670
6896
|
static get watchers() { return {
|
|
@@ -6990,7 +7216,7 @@ class GovSkeleton {
|
|
|
6990
7216
|
return Object.assign({}, dimenssionsStyles);
|
|
6991
7217
|
}
|
|
6992
7218
|
render() {
|
|
6993
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
7219
|
+
return (hAsync(Host, Object.assign({ key: 'fa43a5bc92210a51bb681449542c6f5c2863e3ad', size: this.size, color: this.color, class: {
|
|
6994
7220
|
[SkeletonClass.root]: true,
|
|
6995
7221
|
circle: this.shape === "circle",
|
|
6996
7222
|
line: this.shape === "line",
|
|
@@ -7053,7 +7279,7 @@ class GovSpacer {
|
|
|
7053
7279
|
this.validateBreakpoint(this.breakpoint);
|
|
7054
7280
|
}
|
|
7055
7281
|
render() {
|
|
7056
|
-
return hAsync(Host, { key: '
|
|
7282
|
+
return hAsync(Host, { key: 'f4c81a7820625de045b36a5bee9ced0eebe8e433', class: this.h.classes(SpacerClass.root), size: this.size, breakpoint: this.breakpoint });
|
|
7057
7283
|
}
|
|
7058
7284
|
get host() { return getElement(this); }
|
|
7059
7285
|
static get watchers() { return {
|
|
@@ -7117,7 +7343,7 @@ class GovStepper {
|
|
|
7117
7343
|
this.hydrated = true;
|
|
7118
7344
|
}
|
|
7119
7345
|
render() {
|
|
7120
|
-
return (hAsync(Host, { key: '
|
|
7346
|
+
return (hAsync(Host, { key: 'bd6e7b6f72fd48d41b692c92beb9446cf1e5e943', class: this.h.classes(StepperClass.root), role: "list", size: this.size, hydrated: this.hydrated }, hAsync("slot", { key: '81ca63a0aa077cbcfe944c22aed8e3d6cb05af83' })));
|
|
7121
7347
|
}
|
|
7122
7348
|
get host() { return getElement(this); }
|
|
7123
7349
|
static get watchers() { return {
|
|
@@ -7159,7 +7385,7 @@ class GovStepperItem {
|
|
|
7159
7385
|
render() {
|
|
7160
7386
|
const triggerId = this.identifier || this.triggerId;
|
|
7161
7387
|
const contentId = this.contentId;
|
|
7162
|
-
return (hAsync(Host, { key: '
|
|
7388
|
+
return (hAsync(Host, { key: 'ef017294b38b6fda6da1bceb8a85185a4f088270', id: triggerId, class: this.h.classes(StepperItemClass.root), color: this.color, role: "listitem", hydrated: this.hydrated }, hAsync("div", { key: '37ebc08427d94722ff4127b6aa39b4f28e2844f5' }, hAsync("div", { key: '0f74091afd24d44a77249cadcfc51a3618985632', class: StepperItemClass.steps }, hAsync("span", { key: '397c1a50f02498ff849d0b93dbca66cae076761e' }), hAsync("span", { key: '5b70a1ada896d1f3092acf345eae2d6265513cc5', class: StepperItemClass.prefix }, hAsync("slot", { key: 'e6b30945934e11db11d0ee035224b1969bb3808d', name: "prefix" })), hAsync("span", { key: 'd0ab63fc8038726b39ca41a79f8d73c5cad9b670' })), hAsync("div", { key: '76366242f47074a4e5f18062d7cc0a5ad54c22aa', class: StepperItemClass.main }, hAsync("span", { key: 'f28fcf03b8abe71de585c41d378d4a9a8fda4f5a', class: StepperItemClass.headline }, hAsync("slot", { key: '41dac89031060fbb12d36ba2ca1d0d65f0bfc372', name: "headline" })), hAsync("slot", { key: 'c4ce96cb0625d66244887874de84981101014d39', name: "annotation" }), this.h.hasSlot('content') && (hAsync("div", { key: 'd45cd14c4e1b8cfd48cb73673be3d7da76a662e6', class: StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, hAsync("slot", { key: '3a2896b00d01c76ecb0346d601801c538ab9ba8f', name: "content" })))))));
|
|
7163
7389
|
}
|
|
7164
7390
|
get host() { return getElement(this); }
|
|
7165
7391
|
static get watchers() { return {
|
|
@@ -7311,7 +7537,7 @@ class GovTabs {
|
|
|
7311
7537
|
});
|
|
7312
7538
|
}
|
|
7313
7539
|
render() {
|
|
7314
|
-
return (hAsync(Host, { key: '
|
|
7540
|
+
return (hAsync(Host, { key: '38d228c9ed6d09ab8d3b49dd3c51f6573b1d991b', class: this.h.classes(TabsClass.root), size: this.size, color: this.color, type: this.type, direction: this.direction, onKeyDown: this.onKeydownHandler.bind(this) }, hAsync("div", Object.assign({ key: 'f88f5af844c12ce180507ca5b1ffff72885440d1', class: TabsClass.tabs, role: "tablist" }, this.inheritedAttributes), hAsync("ul", { key: '0a0ef5e51d29fcdbba61a0139ae51eb0cf96cf04', class: TabsClass.list }, this.controllers.map(control => (hAsync("li", { class: TabsClass.item }, this.type == "text" ? (hAsync("button", { class: TabsClass.btn, id: control.triggerIdentifier, role: "tab", onClick: () => this.onSelectHandler(control), disabled: control.disabled, "aria-disabled": toBoolAttr(control.disabled), "aria-selected": toBoolAttr(control.active), "aria-controls": control.contentIdentifier, tabindex: control.active && !control.disabled ? 0 : -1, ref: el => (this.triggerRefs[control.triggerIdentifier] = el) }, control.iconStart ? (hAsync("gov-icon", { name: control.iconStart.name, type: control.iconStart.type })) : null, control.label, control.iconEnd ? (hAsync("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type })) : null)) : (hAsync("gov-chip", { role: "tab", tag: 'button', identifier: control.triggerIdentifier, "aria-selected": booleanString(control.active), "aria-controls": control.contentIdentifier, focusable: control.active, disabled: control.disabled, color: this.color, size: this.size === "xs" ? "xs" : (this.size === "s" ? "s" : "m"), type: control.active ? "solid" : "outlined", ref: el => (this.triggerRefs[control.triggerIdentifier] = el), "on-gov-click": () => this.onSelectHandler(control) }, control.iconStart ? (hAsync("gov-icon", { name: control.iconStart.name, type: control.iconStart.type, slot: "icon-start" })) : null, control.label, control.iconEnd ? (hAsync("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type, slot: "icon-end" })) : null))))))), hAsync("slot", { key: '031978d82e01e604b306c6e37948dc67ce9ed89a' })));
|
|
7315
7541
|
}
|
|
7316
7542
|
getCurrentTab() {
|
|
7317
7543
|
return this.controllers.find(control => control.active) || null;
|
|
@@ -7444,7 +7670,7 @@ class GovTabsItem {
|
|
|
7444
7670
|
}
|
|
7445
7671
|
}
|
|
7446
7672
|
render() {
|
|
7447
|
-
return (hAsync(Host, { key: '
|
|
7673
|
+
return (hAsync(Host, { key: 'e82ff844f1965fe51e3ac002c266c5598b986942', class: this.h.classes(TabsItemClass.root), default: this.default }, hAsync("div", { key: 'e76bdcd16fc36489d53657075b9a55f7864578c9', class: TabsItemClass.inner, role: "tabpanel", id: this.identifier || this.contentId, hidden: !this.isActive, "aria-labelledby": this.triggerIdentifier || this.triggerId, "aria-hidden": toBoolAttrIfDefined(!this.isActive) }, hAsync("slot", { key: '8fbe8e26b722c3d6a2cdbb1f7f5003c85f71227e' }))));
|
|
7448
7674
|
}
|
|
7449
7675
|
/**
|
|
7450
7676
|
* Returns a unique tab content identifier
|
|
@@ -7532,7 +7758,7 @@ class GovTag {
|
|
|
7532
7758
|
render() {
|
|
7533
7759
|
const iconStart = prepareIconFormat(this.iconStart);
|
|
7534
7760
|
const iconEnd = prepareIconFormat(this.iconEnd);
|
|
7535
|
-
return (hAsync(Host, { key: '
|
|
7761
|
+
return (hAsync(Host, { key: 'df3988a7cb0dbf8e7ee418918e9f65e7cca6ba87', class: this.h.classes(TagClass.root), color: this.color, size: this.size, type: this.type }, hAsync("span", { key: 'bcb9b024178012722badffe0b0faaf79e2e8a933', class: "element" }, hAsync("slot", { key: '2651a7dbce1b7a893dfc703e1393235286353e4b', name: "icon-start" }, iconStart && hAsync("gov-icon", { key: '111e55c5ee1edaf6b578af8f37667e18c4d2487c', type: iconStart.type, name: iconStart.name })), hAsync("slot", { key: 'fb60c7f3f3f25168f062134a93c4c4bb039fc29b' }), hAsync("slot", { key: '20e64ee3addb1e45de10d486d25d7f024725626e', name: "icon-end" }, iconEnd && hAsync("gov-icon", { key: 'e11b23de2ce9b35a27367c7ba7bb1b907bded75b', type: iconEnd.type, name: iconEnd.name })))));
|
|
7536
7762
|
}
|
|
7537
7763
|
get host() { return getElement(this); }
|
|
7538
7764
|
static get watchers() { return {
|
|
@@ -7635,7 +7861,7 @@ class GovThemeSwitch {
|
|
|
7635
7861
|
if (this.theme === ThemeList.auto) {
|
|
7636
7862
|
isDark = this.isSystemPrefersColorDark;
|
|
7637
7863
|
}
|
|
7638
|
-
return (hAsync(Host, { key: '
|
|
7864
|
+
return (hAsync(Host, { key: '492cf756810462ba0764668a134b2ecd5133d562', class: this.h.classes(ThemeSwitchClass.root), theme: isDark ? ThemeList.dark : ThemeList.light, size: this.size }, hAsync("button", { key: '02b94994619dd3fbb998acdcc16c907c69ea6723', onClick: () => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark), "aria-current": this.theme, "aria-label": isDark ? this.ariaLabelDark : this.ariaLabelLight }, hAsync("span", { key: '0beb069c94ed4337a6c2de4d8ee8640123bc3bc5' }, hAsync("span", { key: '57d9fc00520b8cf98108d9b5a9710d6066861157', class: ThemeSwitchClass.indicator }, ThemeList.light && hAsync("gov-icon", { key: '3cd1693dcf28658943146386c97b834e5cf4534a', name: "sun", class: ThemeSwitchClass.iconLight, type: "components" }), ThemeList.dark && hAsync("gov-icon", { key: '139adcafc399eed5482c15273a37331598bbe179', name: "moon", class: ThemeSwitchClass.iconDark, type: "components" })), this.displayLabel ? (hAsync("span", { class: ThemeSwitchClass.label }, isDark ? this.labelDark : this.labelLight)) : null))));
|
|
7639
7865
|
}
|
|
7640
7866
|
get host() { return getElement(this); }
|
|
7641
7867
|
static get watchers() { return {
|
|
@@ -7682,7 +7908,7 @@ class GovTile {
|
|
|
7682
7908
|
this.h = govHost(this.host);
|
|
7683
7909
|
}
|
|
7684
7910
|
render() {
|
|
7685
|
-
return (hAsync(Host, { key: '
|
|
7911
|
+
return (hAsync(Host, { key: 'ab52fb23f84579e2b32b063e45f7bf23605011d6', class: this.h.classes(TileClass.root), size: this.size, orientation: this.orientation, clickable: this.href ? true : null }, hAsync("slot", { key: '6a2bf399f6767b74a29e2372d84025bd5046377f', name: "icon" }), hAsync("div", { key: '64b519f3b42dc5c9f51d4564a083aa95448c61b3', class: TileClass.content }, hAsync("div", { key: '56b85285dd5151ca428889fe78888289a1ce75bb', class: TileClass.text }, hAsync("div", { key: '2f26093e140f3db65d5fdb08daf834686b0b5743', class: TileClass.title }, this.href ? (hAsync(Fragment$1, null, hAsync("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, hAsync("slot", { name: "title" })), hAsync("span", { class: TileClass.icon }, hAsync("gov-icon", { name: "chevron-right", type: "components" })))) : (hAsync("slot", { name: "title" }))), hAsync("div", { key: '25d8abd31e31062bd2da487c0ff9946b1893278c', class: `${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}` }, hAsync("slot", { key: 'bebce043085e0440e2eca20c3af4abee18b292e4' }))), hAsync("slot", { key: 'e34513bbd6c59b113f6c8f39d6ebfaf61696d2fe', name: "button" }))));
|
|
7686
7912
|
}
|
|
7687
7913
|
/**
|
|
7688
7914
|
* Returns a clickable element instance
|
|
@@ -7773,7 +7999,7 @@ class GovToast {
|
|
|
7773
7999
|
}
|
|
7774
8000
|
}
|
|
7775
8001
|
render() {
|
|
7776
|
-
return (hAsync(Host, { key: '
|
|
8002
|
+
return (hAsync(Host, { key: '1e6e189eb820b1d3cc2b8404ad449ad91d0d81cb', class: this.h.classes(ToastClass.root), "data-toast-id": this.toastId, gravity: this.gravity, position: this.position, color: this.color, type: this.type, style: { "--toast-duration": this.time + "ms" } }, this.h.hasSlot("icon") && (hAsync("span", { key: 'e55556b89b1e667e3eded15cc0293afad61a55b5', class: ToastClass.icon }, hAsync("slot", { key: '918cd31f3e80f36ea346ad1be27d093baab60eef', name: "icon" }))), hAsync("div", Object.assign({ key: '6232d63367c11301b626620211b8a7cc30f171cf', class: ToastClass.content }, this.inheritedAttributes, { "aria-live": "polite", role: "status" }), hAsync("slot", { key: 'bfd4174fae30924135ca10b1a1f2a2338179de24' })), hAsync("gov-button", { key: 'd1f68ef7ed4933bd15987843df78d142c9d4e588', size: "s", "aria-label": this.accessibleCloseLabel, color: this.isBold ? this.color : "neutral", type: "base", "on-gov-click": this.onCloseHandler.bind(this), class: ToastClass.close }, this.closeLabel ? this.closeLabel : hAsync("gov-icon", { name: "x-lg", type: "components" })), hAsync("div", { key: 'f863b0cb33027641fff15771b051a091d4fdf782', class: ToastClass.timer })));
|
|
7777
8003
|
}
|
|
7778
8004
|
onCloseHandler() {
|
|
7779
8005
|
this.govClose.emit(this.toastId);
|
|
@@ -8030,11 +8256,11 @@ class GovTooltip {
|
|
|
8030
8256
|
}
|
|
8031
8257
|
render() {
|
|
8032
8258
|
var _a;
|
|
8033
|
-
return (hAsync(Host, { key: '
|
|
8259
|
+
return (hAsync(Host, { key: '8bb512960020b0945a8f54f5c6bd52062b426a26', id: this.tooltipId, class: this.h.classes(TooltipClass.root), position: this.position }, hAsync("span", { key: 'd47065c5bef5f580101322a95e18905ec489ce29', role: 'button', tabindex: 0, onKeyPress: () => this.showTooltip(), onBlur: () => {
|
|
8034
8260
|
if (this.persist === false) {
|
|
8035
8261
|
this.hideTooltip();
|
|
8036
8262
|
}
|
|
8037
|
-
}, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, hAsync("slot", { key: '
|
|
8263
|
+
}, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, hAsync("slot", { key: 'a206caa511be168a6df2a34110b2aeeffe732354' }))));
|
|
8038
8264
|
}
|
|
8039
8265
|
/**
|
|
8040
8266
|
* Showing the modal
|
|
@@ -8105,7 +8331,7 @@ class GovTooltipContent {
|
|
|
8105
8331
|
}
|
|
8106
8332
|
}
|
|
8107
8333
|
render() {
|
|
8108
|
-
return (hAsync(Host, { key: '
|
|
8334
|
+
return (hAsync(Host, { key: 'f147a718b5c556b3314f48a86edfd9ee4db6d93e', class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !toBoolAttr(this.isVisible), "is-visible": this.isVisible }, hAsync("slot", { key: '4cde158814765edfb1fc6ab1e8cce6ad1d98e175' }), this.persist ? (hAsync("gov-button", { "on-gov-click": this.hideContent.bind(this), color: this.color, size: this.size, type: "base" }, hAsync("gov-icon", { slot: "icon-start", name: "x-lg", type: "components" }))) : null));
|
|
8109
8335
|
}
|
|
8110
8336
|
get host() { return getElement(this); }
|
|
8111
8337
|
static get watchers() { return {
|
|
@@ -8179,7 +8405,7 @@ class GovWizard {
|
|
|
8179
8405
|
this.hydrated = true;
|
|
8180
8406
|
}
|
|
8181
8407
|
render() {
|
|
8182
|
-
return (hAsync(Host, { key: '
|
|
8408
|
+
return (hAsync(Host, { key: '139efd57338b63026c56d3feea4aea70de7e0784', class: this.h.classes(WizardClass.root), role: "list", size: this.size, hydrated: this.hydrated }, hAsync("slot", { key: '7ac5d8219bea45ef32ded0785cb94c052a001f35' })));
|
|
8183
8409
|
}
|
|
8184
8410
|
/**
|
|
8185
8411
|
* Validate the WCAG attributes of the component
|
|
@@ -8241,8 +8467,8 @@ class GovWizardItem {
|
|
|
8241
8467
|
render() {
|
|
8242
8468
|
const triggerId = this.identifier || this.triggerId;
|
|
8243
8469
|
const Tag = this.collapsible ? Tags.BUTTON : Tags.DIV;
|
|
8244
|
-
const prefixSlot = this.h.hasSlot("prefix") && (hAsync("span", { key: '
|
|
8245
|
-
return (hAsync(Host, { key: '
|
|
8470
|
+
const prefixSlot = this.h.hasSlot("prefix") && (hAsync("span", { key: '394a8843e47dd540dd1b22ba6cec699f73d55870', class: WizardItemClass.prefix }, hAsync("slot", { key: '811680c41b1729b689a0679e16e3aba4455d4d17', name: "prefix" })));
|
|
8471
|
+
return (hAsync(Host, { key: 'e99661de092cfa2f0476faf5fb9c266e52bb3b0b', class: this.h.classes(WizardItemClass.root), "is-expanded": this.isExpanded, color: this.color, size: this.size, role: "listitem", collapsible: this.collapsible, hydrated: this.hydrated }, hAsync("div", { key: 'a2a2218a1b036da0c9a6edb7b0c0ce1be5a214ff', class: WizardItemClass.header }, prefixSlot, this.collapsible ? (hAsync(Tag, { id: triggerId, class: this.h.classes(WizardItemClass.label), "aria-expanded": booleanString(this.isExpanded), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: (e) => {
|
|
8246
8472
|
e.preventDefault();
|
|
8247
8473
|
e.stopPropagation();
|
|
8248
8474
|
this.toggle();
|
|
@@ -8333,6 +8559,7 @@ registerComponents([
|
|
|
8333
8559
|
GovFormPasswordPower,
|
|
8334
8560
|
GovFormRadio,
|
|
8335
8561
|
GovFormRadioGroup,
|
|
8562
|
+
GovFormRange,
|
|
8336
8563
|
GovFormSearch,
|
|
8337
8564
|
GovFormSelect,
|
|
8338
8565
|
GovFormSwitch,
|