@gov-design-system-ce/components 0.0.34 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{form-399e149e.js → form-62c6a8c6.js} +16 -5
- package/dist/cjs/form-62c6a8c6.js.map +1 -0
- package/dist/cjs/gov-app.cjs.entry.js +13 -13
- package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +13 -3
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +20 -24
- package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +14 -3
- package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-input.cjs.entry.js +16 -5
- package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +31 -15
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +20 -10
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +15 -5
- package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +19 -9
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-icon.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +20 -3
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
- package/dist/collection/components/gov-form/control/gov-form-control.js +25 -28
- package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js +20 -4
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.js +24 -3
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +25 -4
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +36 -19
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.js +22 -4
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +26 -9
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
- package/dist/collection/pages/Forms.js +13 -13
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/components/gov-accordion-item.js +0 -1
- package/dist/components/gov-accordion-item.js.map +1 -1
- package/dist/components/gov-accordion.js +0 -1
- package/dist/components/gov-accordion.js.map +1 -1
- package/dist/components/gov-alert.js +0 -1
- package/dist/components/gov-alert.js.map +1 -1
- package/dist/components/gov-app.js +13 -14
- package/dist/components/gov-app.js.map +1 -1
- package/dist/components/gov-attachments-item2.js +0 -1
- package/dist/components/gov-attachments-item2.js.map +1 -1
- package/dist/components/gov-attachments2.js +0 -1
- package/dist/components/gov-attachments2.js.map +1 -1
- package/dist/components/gov-backdrop2.js +0 -1
- package/dist/components/gov-backdrop2.js.map +1 -1
- package/dist/components/gov-badge2.js +0 -1
- package/dist/components/gov-badge2.js.map +1 -1
- package/dist/components/gov-breadcrumbs.js +0 -1
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button2.js +0 -1
- package/dist/components/gov-button2.js.map +1 -1
- package/dist/components/gov-card.js +0 -1
- package/dist/components/gov-card.js.map +1 -1
- package/dist/components/gov-container.js +0 -1
- package/dist/components/gov-container.js.map +1 -1
- package/dist/components/gov-cookiebar.js +0 -1
- package/dist/components/gov-cookiebar.js.map +1 -1
- package/dist/components/gov-empty.js +0 -1
- package/dist/components/gov-empty.js.map +1 -1
- package/dist/components/gov-error-code.js +0 -1
- package/dist/components/gov-error-code.js.map +1 -1
- package/dist/components/gov-form-autocomplete2.js +0 -1
- package/dist/components/gov-form-autocomplete2.js.map +1 -1
- package/dist/components/gov-form-checkbox.js +13 -3
- package/dist/components/gov-form-checkbox.js.map +1 -1
- package/dist/components/gov-form-control.js +19 -23
- package/dist/components/gov-form-control.js.map +1 -1
- package/dist/components/gov-form-file.js +14 -3
- package/dist/components/gov-form-file.js.map +1 -1
- package/dist/components/gov-form-group.js +0 -1
- package/dist/components/gov-form-group.js.map +1 -1
- package/dist/components/gov-form-input2.js +16 -5
- package/dist/components/gov-form-input2.js.map +1 -1
- package/dist/components/gov-form-label.js +0 -1
- package/dist/components/gov-form-label.js.map +1 -1
- package/dist/components/gov-form-message2.js +0 -1
- package/dist/components/gov-form-message2.js.map +1 -1
- package/dist/components/gov-form-multi-select.js +19 -7
- package/dist/components/gov-form-multi-select.js.map +1 -1
- package/dist/components/gov-form-password-power.js +0 -1
- package/dist/components/gov-form-password-power.js.map +1 -1
- package/dist/components/gov-form-radio.js +20 -10
- package/dist/components/gov-form-radio.js.map +1 -1
- package/dist/components/gov-form-search.js +0 -1
- package/dist/components/gov-form-search.js.map +1 -1
- package/dist/components/gov-form-select2.js +15 -5
- package/dist/components/gov-form-select2.js.map +1 -1
- package/dist/components/gov-form-switch.js +19 -9
- package/dist/components/gov-form-switch.js.map +1 -1
- package/dist/components/gov-grid-item.js +0 -1
- package/dist/components/gov-grid-item.js.map +1 -1
- package/dist/components/gov-grid.js +0 -1
- package/dist/components/gov-grid.js.map +1 -1
- package/dist/components/gov-icon2.js +1 -2
- package/dist/components/gov-icon2.js.map +1 -1
- package/dist/components/gov-layout-column.js +0 -1
- package/dist/components/gov-layout-column.js.map +1 -1
- package/dist/components/gov-layout.js +0 -1
- package/dist/components/gov-layout.js.map +1 -1
- package/dist/components/gov-loading.js +0 -1
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +0 -1
- package/dist/components/gov-message.js.map +1 -1
- package/dist/components/gov-modal.js +0 -1
- package/dist/components/gov-modal.js.map +1 -1
- package/dist/components/gov-nav-item.js +0 -1
- package/dist/components/gov-nav-item.js.map +1 -1
- package/dist/components/gov-nav.js +0 -1
- package/dist/components/gov-nav.js.map +1 -1
- package/dist/components/gov-pagination.js +0 -1
- package/dist/components/gov-pagination.js.map +1 -1
- package/dist/components/gov-prompt.js +0 -1
- package/dist/components/gov-prompt.js.map +1 -1
- package/dist/components/gov-side-nav-item.js +0 -1
- package/dist/components/gov-side-nav-item.js.map +1 -1
- package/dist/components/gov-side-nav.js +0 -1
- package/dist/components/gov-side-nav.js.map +1 -1
- package/dist/components/gov-skeleton.js +0 -1
- package/dist/components/gov-skeleton.js.map +1 -1
- package/dist/components/gov-spacer.js +0 -1
- package/dist/components/gov-spacer.js.map +1 -1
- package/dist/components/gov-statsbar-item.js +0 -1
- package/dist/components/gov-statsbar-item.js.map +1 -1
- package/dist/components/gov-statsbar.js +0 -1
- package/dist/components/gov-statsbar.js.map +1 -1
- package/dist/components/gov-stepper-item.js +0 -1
- package/dist/components/gov-stepper-item.js.map +1 -1
- package/dist/components/gov-stepper.js +0 -1
- package/dist/components/gov-stepper.js.map +1 -1
- package/dist/components/gov-tabs-item.js +0 -1
- package/dist/components/gov-tabs-item.js.map +1 -1
- package/dist/components/gov-tabs.js +0 -1
- package/dist/components/gov-tabs.js.map +1 -1
- package/dist/components/gov-tile.js +0 -1
- package/dist/components/gov-tile.js.map +1 -1
- package/dist/components/gov-tiles.js +0 -1
- package/dist/components/gov-tiles.js.map +1 -1
- package/dist/components/gov-toast.js +0 -1
- package/dist/components/gov-toast.js.map +1 -1
- package/dist/components/gov-tooltip-content.js +0 -1
- package/dist/components/gov-tooltip-content.js.map +1 -1
- package/dist/components/gov-tooltip.js +0 -1
- package/dist/components/gov-tooltip.js.map +1 -1
- package/dist/components/gov-wizzard-item.js +0 -1
- package/dist/components/gov-wizzard-item.js.map +1 -1
- package/dist/components/gov-wizzard.js +0 -1
- package/dist/components/gov-wizzard.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-0a300d3e.entry.js +2 -0
- package/dist/core/p-0a300d3e.entry.js.map +1 -0
- package/dist/core/{p-e5a7dcf1.entry.js → p-37f6b4ef.entry.js} +2 -2
- package/dist/core/{p-e5a7dcf1.entry.js.map → p-37f6b4ef.entry.js.map} +1 -1
- package/dist/core/p-5a2a9cde.entry.js +2 -0
- package/dist/core/p-5a2a9cde.entry.js.map +1 -0
- package/dist/core/p-7e524b49.js +2 -0
- package/dist/core/p-7e524b49.js.map +1 -0
- package/dist/core/p-a423b62a.entry.js +2 -0
- package/dist/core/p-a423b62a.entry.js.map +1 -0
- package/dist/core/p-a825183a.entry.js +2 -0
- package/dist/core/p-a825183a.entry.js.map +1 -0
- package/dist/core/p-d1275fa8.entry.js +2 -0
- package/dist/core/p-d1275fa8.entry.js.map +1 -0
- package/dist/core/p-d14130ac.entry.js +2 -0
- package/dist/core/p-d14130ac.entry.js.map +1 -0
- package/dist/core/p-d37f03e0.entry.js +2 -0
- package/dist/core/p-d37f03e0.entry.js.map +1 -0
- package/dist/core/{p-7bc34e7d.entry.js → p-e3b56738.entry.js} +2 -2
- package/dist/core/p-e6904513.entry.js +2 -0
- package/dist/core/p-e6904513.entry.js.map +1 -0
- package/dist/custom-elements/index.js +1 -1
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/core.js +1 -1
- package/dist/esm/{form-3aceb161.js → form-613741a5.js} +11 -3
- package/dist/esm/form-613741a5.js.map +1 -0
- package/dist/esm/gov-app.entry.js +13 -13
- package/dist/esm/gov-app.entry.js.map +1 -1
- package/dist/esm/gov-form-checkbox.entry.js +13 -3
- package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
- package/dist/esm/gov-form-control.entry.js +20 -24
- package/dist/esm/gov-form-control.entry.js.map +1 -1
- package/dist/esm/gov-form-file.entry.js +15 -4
- package/dist/esm/gov-form-file.entry.js.map +1 -1
- package/dist/esm/gov-form-input.entry.js +17 -6
- package/dist/esm/gov-form-input.entry.js.map +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +21 -5
- package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
- package/dist/esm/gov-form-radio.entry.js +21 -11
- package/dist/esm/gov-form-radio.entry.js.map +1 -1
- package/dist/esm/gov-form-select.entry.js +16 -6
- package/dist/esm/gov-form-select.entry.js.map +1 -1
- package/dist/esm/gov-form-switch.entry.js +20 -10
- package/dist/esm/gov-form-switch.entry.js.map +1 -1
- package/dist/esm/gov-icon.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/hydrate/index.js +140 -62
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +2 -0
- package/dist/types/components/gov-form/control/gov-form-control.d.ts +2 -2
- package/dist/types/components/gov-form/file/gov-form-file.d.ts +2 -0
- package/dist/types/components/gov-form/input/gov-form-input.d.ts +3 -1
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +5 -1
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +5 -3
- package/dist/types/components/gov-form/select/gov-form-select.d.ts +3 -1
- package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +2 -0
- package/dist/types/components.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/constants-e8760a84.js +0 -20
- package/dist/cjs/constants-e8760a84.js.map +0 -1
- package/dist/cjs/form-399e149e.js.map +0 -1
- package/dist/core/p-3ed60543.entry.js +0 -2
- package/dist/core/p-3ed60543.entry.js.map +0 -1
- package/dist/core/p-70c0ee18.entry.js +0 -2
- package/dist/core/p-70c0ee18.entry.js.map +0 -1
- package/dist/core/p-79f74578.entry.js +0 -2
- package/dist/core/p-79f74578.entry.js.map +0 -1
- package/dist/core/p-942c1b73.entry.js +0 -2
- package/dist/core/p-942c1b73.entry.js.map +0 -1
- package/dist/core/p-b3d9b255.entry.js +0 -2
- package/dist/core/p-b3d9b255.entry.js.map +0 -1
- package/dist/core/p-cb830bc1.entry.js +0 -2
- package/dist/core/p-cb830bc1.entry.js.map +0 -1
- package/dist/core/p-ea493ce6.entry.js +0 -2
- package/dist/core/p-ea493ce6.entry.js.map +0 -1
- package/dist/core/p-ef79904e.js +0 -2
- package/dist/core/p-ef79904e.js.map +0 -1
- package/dist/core/p-fa7daa95.entry.js +0 -2
- package/dist/core/p-fa7daa95.entry.js.map +0 -1
- package/dist/core/p-fd2f10eb.js +0 -2
- package/dist/core/p-fd2f10eb.js.map +0 -1
- package/dist/esm/constants-136d4cd3.js +0 -16
- package/dist/esm/constants-136d4cd3.js.map +0 -1
- package/dist/esm/form-3aceb161.js.map +0 -1
- /package/dist/core/{p-7bc34e7d.entry.js.map → p-e3b56738.entry.js.map} +0 -0
package/dist/esm/loader.js
CHANGED
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy(JSON.parse("[[\"gov-form-file\",[[4,\"gov-form-file\",{\"expanded\":[4],\"required\":[4],\"disabled\":[4],\"displayAttachments\":[4,\"display-attachments\"],\"name\":[1],\"accept\":[1],\"maxFileSize\":[2,\"max-file-size\"],\"identifier\":[1],\"invalid\":[4],\"errorSize\":[1,\"error-size\"],\"errorAccept\":[1,\"error-accept\"],\"attachmentsLabel\":[1,\"attachments-label\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagRemoveLabel\":[1,\"wcag-remove-label\"],\"wcagAttachmentsLabel\":[1,\"wcag-attachments-label\"],\"files\":[32],\"getRef\":[64],\"getAreaRef\":[64],\"validateWcag\":[64]}]]],[\"gov-form-multi-select\",[[4,\"gov-form-multi-select\",{\"identifier\":[1],\"placeholder\":[1],\"variant\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"disabled\":[4],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"value\":[32],\"selectedOptions\":[32],\"setFocus\":[64],\"setValue\":[64],\"getInstance\":[64],\"validateWcag\":[64]}]]],[\"gov-modal\",[[4,\"gov-modal\",{\"open\":[1028],\"label\":[1],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagCloseLabelledBy\":[1,\"wcag-close-labelled-by\"],\"show\":[64],\"hide\":[64],\"validateWcag\":[64]}]]],[\"gov-pagination\",[[0,\"gov-pagination\",{\"type\":[1],\"current\":[2],\"total\":[2],\"inverse\":[4],\"size\":[1],\"variant\":[1],\"pageSize\":[2,\"page-size\"],\"maxPages\":[2,\"max-pages\"],\"link\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagSelectLabel\":[1,\"wcag-select-label\"],\"wcagPageLabel\":[1,\"wcag-page-label\"],\"pagination\":[32],\"validateWcag\":[64]}]]],[\"gov-prompt\",[[4,\"gov-prompt\",{\"open\":[1028],\"label\":[1],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagCloseLabelledBy\":[1,\"wcag-close-labelled-by\"],\"show\":[64],\"hide\":[64],\"validateWcag\":[64]}]]],[\"gov-tabs\",[[4,\"gov-tabs\",{\"type\":[1],\"variant\":[1],\"orientation\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagSelectLabel\":[1,\"wcag-select-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"controller\":[32],\"focusIndex\":[32],\"compactControls\":[32],\"refresh\":[64],\"currentTab\":[64],\"setActiveTab\":[64],\"validateWcag\":[64]}]]],[\"gov-alert\",[[4,\"gov-alert\",{\"headline\":[1],\"variant\":[1],\"inverse\":[4],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagToggleLabel\":[1,\"wcag-toggle-label\"],\"closable\":[4],\"toggleContent\":[32],\"validateWcag\":[64]}]]],[\"gov-loading\",[[4,\"gov-loading\",{\"loading\":[4]}]]],[\"gov-side-nav-item\",[[4,\"gov-side-nav-item\",{\"inverse\":[4],\"compact\":[4],\"identifier\":[1],\"count\":[4],\"label\":[1],\"disabled\":[4],\"href\":[1],\"isExpanded\":[4,\"is-expanded\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]}]]],[\"gov-toast\",[[4,\"gov-toast\",{\"variant\":[1],\"gravity\":[1],\"position\":[1],\"type\":[1],\"time\":[2],\"closeLabel\":[1,\"close-label\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"destroy\":[64]}]]],[\"gov-accordion-item\",[[4,\"gov-accordion-item\",{\"variant\":[1025],\"identifier\":[1],\"size\":[1025],\"label\":[1],\"annotation\":[1],\"disabled\":[4],\"isExpanded\":[4,\"is-expanded\"],\"triggerTag\":[1,\"trigger-tag\"],\"noBorder\":[4,\"no-border\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]}]]],[\"gov-card\",[[4,\"gov-card\",{\"promotion\":[4],\"label\":[1],\"collapsible\":[4],\"expanded\":[4],\"headlineTag\":[1,\"headline-tag\"],\"wcagTriggerLabel\":[1,\"wcag-trigger-label\"],\"wcagTriggerLabelledBy\":[1,\"wcag-trigger-labelled-by\"],\"isExpanded\":[32],\"open\":[64],\"close\":[64],\"validateWcag\":[64]}]]],[\"gov-form-checkbox\",[[4,\"gov-form-checkbox\",{\"value\":[1],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"noLabel\":[4,\"no-label\"],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-tile\",[[4,\"gov-tile\",{\"promotion\":[4],\"href\":[1],\"name\":[1],\"getTriggerRef\":[64]}]]],[\"gov-wizzard-item\",[[4,\"gov-wizzard-item\",{\"variant\":[1],\"size\":[1],\"identifier\":[1],\"collapsible\":[4],\"annotation\":[1],\"label\":[1],\"disabled\":[4],\"isExpanded\":[4,\"is-expanded\"],\"labelTag\":[1,\"label-tag\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]}]]],[\"gov-accordion\",[[4,\"gov-accordion\",{\"size\":[1],\"variant\":[1],\"noBorder\":[4,\"no-border\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-app\",[[0,\"gov-app\"]]],[\"gov-breadcrumbs\",[[4,\"gov-breadcrumbs\",{\"collapsible\":[4],\"isExpanded\":[4,\"is-expanded\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelded-by\"],\"validateWcag\":[64]}]]],[\"gov-container\",[[4,\"gov-container\",{\"slottedChildren\":[64]}]]],[\"gov-cookiebar\",[[4,\"gov-cookiebar\"]]],[\"gov-empty\",[[4,\"gov-empty\"]]],[\"gov-error-code\",[[4,\"gov-error-code\"]]],[\"gov-form-control\",[[4,\"gov-form-control\",{\"gap\":[1],\"identifier\":[1],\"invalid\":[4],\"disabled\":[4],\"success\":[4],\"fieldset\":[4],\"size\":[1]}]]],[\"gov-form-group\",[[4,\"gov-form-group\",{\"gap\":[1]}]]],[\"gov-form-label\",[[4,\"gov-form-label\",{\"identifier\":[1],\"size\":[1],\"required\":[4],\"legend\":[4]}]]],[\"gov-form-password-power\",[[4,\"gov-form-password-power\",{\"power\":[2]}]]],[\"gov-form-radio\",[[4,\"gov-form-radio\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-form-search\",[[4,\"gov-form-search\"]]],[\"gov-form-switch\",[[4,\"gov-form-switch\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-grid\",[[4,\"gov-grid\",{\"alignX\":[1,\"align-x\"],\"alignY\":[1,\"align-y\"]}]]],[\"gov-grid-item\",[[4,\"gov-grid-item\",{\"size\":[1],\"sizeSm\":[1,\"size-sm\"],\"sizeMd\":[1,\"size-md\"],\"sizeLg\":[1,\"size-lg\"],\"sizeXl\":[1,\"size-xl\"]}]]],[\"gov-layout\",[[4,\"gov-layout\",{\"type\":[1],\"variant\":[1],\"inverse\":[4]}]]],[\"gov-layout-column\",[[4,\"gov-layout-column\"]]],[\"gov-message\",[[4,\"gov-message\",{\"variant\":[1]}]]],[\"gov-nav\",[[4,\"gov-nav\",{\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-nav-item\",[[4,\"gov-nav-item\",{\"href\":[1],\"isExpandedState\":[32]}]]],[\"gov-side-nav\",[[4,\"gov-side-nav\",{\"inverse\":[4],\"compact\":[4],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-skeleton\",[[0,\"gov-skeleton\",{\"variant\":[1],\"count\":[2],\"shape\":[1],\"width\":[1],\"height\":[1],\"animation\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}]]],[\"gov-spacer\",[[0,\"gov-spacer\",{\"size\":[1],\"breakpoint\":[1]}]]],[\"gov-statsbar\",[[4,\"gov-statsbar\",{\"iconPosition\":[1,\"icon-position\"],\"variant\":[1]}]]],[\"gov-statsbar-item\",[[4,\"gov-statsbar-item\",{\"iconPosition\":[1,\"icon-position\"]}]]],[\"gov-stepper\",[[4,\"gov-stepper\",{\"size\":[1]}]]],[\"gov-stepper-item\",[[4,\"gov-stepper-item\",{\"variant\":[1],\"size\":[1],\"identifier\":[1],\"label\":[1],\"annotation\":[1],\"triggerTag\":[1,\"trigger-tag\"],\"isExpandedState\":[32],\"currentState\":[64]}]]],[\"gov-tabs-item\",[[4,\"gov-tabs-item\",{\"identifier\":[1],\"triggerIdentifier\":[1,\"trigger-identifier\"],\"label\":[1],\"default\":[4],\"isActive\":[32],\"getIdentifier\":[64],\"getTriggerIdentifier\":[64],\"setActiveStatus\":[64]}]]],[\"gov-tiles\",[[4,\"gov-tiles\",{\"columns\":[2],\"noBorder\":[4,\"no-border\"]}]]],[\"gov-tooltip\",[[4,\"gov-tooltip\",{\"variant\":[1],\"size\":[1],\"position\":[1],\"message\":[1],\"identifier\":[1],\"icon\":[4],\"show\":[64],\"hide\":[64]}]]],[\"gov-tooltip-content\",[[4,\"gov-tooltip-content\",{\"isVisible\":[4,\"is-visible\"]}]]],[\"gov-wizzard\",[[4,\"gov-wizzard\",{\"size\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-icon\",[[0,\"gov-icon\",{\"name\":[1],\"type\":[1],\"iconData\":[32],\"visible\":[32],\"error\":[32]}]]],[\"gov-form-input\",[[4,\"gov-form-input\",{\"value\":[1537],\"identifier\":[1],\"variant\":[1],\"success\":[4],\"size\":[1],\"name\":[1],\"multiline\":[4],\"rows\":[2],\"cols\":[2],\"required\":[4],\"disabled\":[4],\"placeholder\":[1],\"readonly\":[4],\"minlength\":[2],\"maxlength\":[2],\"min\":[8],\"max\":[8],\"autocomplete\":[4],\"autocorrect\":[4],\"type\":[1],\"inputType\":[1,\"input-type\"],\"role\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"wcagAutocomplete\":[1,\"wcag-autocomplete\"],\"wcagExpanded\":[4,\"wcag-expanded\"],\"focused\":[32],\"setFocus\":[64],\"setValue\":[64],\"clearValue\":[64],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-form-autocomplete\",[[4,\"gov-form-autocomplete\",{\"value\":[1537],\"identifier\":[1],\"variant\":[1],\"success\":[4],\"size\":[1],\"nameKey\":[1,\"name-key\"],\"name\":[1],\"required\":[4],\"disabled\":[4],\"placeholder\":[1],\"readonly\":[4],\"invalid\":[4],\"minlength\":[2],\"maxlength\":[2],\"messageEmpty\":[1,\"message-empty\"],\"messageLoading\":[1,\"message-loading\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"processing\":[32],\"arrowCounter\":[32],\"list\":[32],\"setFocus\":[64],\"setOptions\":[64],\"clearValue\":[64],\"setProcessing\":[64],\"setSearchCallback\":[64],\"setTemplateResolver\":[64]}]]],[\"gov-form-select\",[[4,\"gov-form-select\",{\"value\":[1537],\"identifier\":[1],\"variant\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"disabled\":[4],\"invalid\":[4],\"wcagActiveDescendant\":[1,\"wcag-active-descendant\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"setFocus\":[64],\"setValue\":[64],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-badge\",[[4,\"gov-badge\",{\"inverse\":[4],\"disabled\":[4],\"href\":[1],\"target\":[1],\"size\":[1],\"type\":[1],\"tag\":[1],\"variant\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"getTriggerRef\":[64]}]]],[\"gov-attachments_3\",[[4,\"gov-attachments-item\",{\"wcagRemoveLabel\":[1,\"wcag-remove-label\"],\"wcagRemoveLabelledBy\":[1,\"wcag-remove-labelled-by\"],\"validateWcag\":[64]}],[4,\"gov-attachments\",{\"label\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}],[4,\"gov-form-message\",{\"variant\":[1],\"identifier\":[64]}]]],[\"gov-backdrop\",[[0,\"gov-backdrop\",{\"inverse\":[4],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-button\",[[4,\"gov-button\",{\"variant\":[513],\"size\":[513],\"type\":[513],\"expanded\":[4],\"inverse\":[4],\"name\":[1],\"disabled\":[516],\"nativeType\":[1,\"native-type\"],\"href\":[1],\"target\":[1],\"download\":[4],\"hreflang\":[1],\"referrerpolicy\":[1],\"rel\":[1],\"loading\":[1],\"focusable\":[4],\"identifier\":[1],\"wcagActiveDescendant\":[1,\"wcag-active-descendant\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagDescription\":[1,\"wcag-description\"],\"wcagDetails\":[1,\"wcag-details\"],\"wcagExpanded\":[4,\"wcag-expanded\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"wcagHasPopup\":[1,\"wcag-has-popup\"],\"wcagPressed\":[1,\"wcag-pressed\"],\"wcagCurrent\":[1,\"wcag-current\"],\"isPressed\":[32],\"setFocus\":[64],\"getTriggerRef\":[64],\"validateWcag\":[64]}]]]]"), options);
|
|
13
|
+
return bootstrapLazy(JSON.parse("[[\"gov-form-file\",[[4,\"gov-form-file\",{\"expanded\":[4],\"required\":[4],\"disabled\":[4],\"displayAttachments\":[4,\"display-attachments\"],\"name\":[1],\"accept\":[1],\"maxFileSize\":[2,\"max-file-size\"],\"identifier\":[1],\"invalid\":[4],\"errorSize\":[1,\"error-size\"],\"errorAccept\":[1,\"error-accept\"],\"attachmentsLabel\":[1,\"attachments-label\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagRemoveLabel\":[1,\"wcag-remove-label\"],\"wcagAttachmentsLabel\":[1,\"wcag-attachments-label\"],\"files\":[32],\"getRef\":[64],\"getAreaRef\":[64],\"validateWcag\":[64]}]]],[\"gov-form-multi-select\",[[4,\"gov-form-multi-select\",{\"identifier\":[1],\"placeholder\":[1],\"variant\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"disabled\":[4],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"value\":[32],\"selectedOptions\":[32],\"setFocus\":[64],\"setValue\":[64],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-modal\",[[4,\"gov-modal\",{\"open\":[1028],\"label\":[1],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagCloseLabelledBy\":[1,\"wcag-close-labelled-by\"],\"show\":[64],\"hide\":[64],\"validateWcag\":[64]}]]],[\"gov-pagination\",[[0,\"gov-pagination\",{\"type\":[1],\"current\":[2],\"total\":[2],\"inverse\":[4],\"size\":[1],\"variant\":[1],\"pageSize\":[2,\"page-size\"],\"maxPages\":[2,\"max-pages\"],\"link\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagSelectLabel\":[1,\"wcag-select-label\"],\"wcagPageLabel\":[1,\"wcag-page-label\"],\"pagination\":[32],\"validateWcag\":[64]}]]],[\"gov-prompt\",[[4,\"gov-prompt\",{\"open\":[1028],\"label\":[1],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagCloseLabelledBy\":[1,\"wcag-close-labelled-by\"],\"show\":[64],\"hide\":[64],\"validateWcag\":[64]}]]],[\"gov-tabs\",[[4,\"gov-tabs\",{\"type\":[1],\"variant\":[1],\"orientation\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagSelectLabel\":[1,\"wcag-select-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"controller\":[32],\"focusIndex\":[32],\"compactControls\":[32],\"refresh\":[64],\"currentTab\":[64],\"setActiveTab\":[64],\"validateWcag\":[64]}]]],[\"gov-alert\",[[4,\"gov-alert\",{\"headline\":[1],\"variant\":[1],\"inverse\":[4],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagToggleLabel\":[1,\"wcag-toggle-label\"],\"closable\":[4],\"toggleContent\":[32],\"validateWcag\":[64]}]]],[\"gov-loading\",[[4,\"gov-loading\",{\"loading\":[4]}]]],[\"gov-side-nav-item\",[[4,\"gov-side-nav-item\",{\"inverse\":[4],\"compact\":[4],\"identifier\":[1],\"count\":[4],\"label\":[1],\"disabled\":[4],\"href\":[1],\"isExpanded\":[4,\"is-expanded\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]}]]],[\"gov-toast\",[[4,\"gov-toast\",{\"variant\":[1],\"gravity\":[1],\"position\":[1],\"type\":[1],\"time\":[2],\"closeLabel\":[1,\"close-label\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"destroy\":[64]}]]],[\"gov-accordion-item\",[[4,\"gov-accordion-item\",{\"variant\":[1025],\"identifier\":[1],\"size\":[1025],\"label\":[1],\"annotation\":[1],\"disabled\":[4],\"isExpanded\":[4,\"is-expanded\"],\"triggerTag\":[1,\"trigger-tag\"],\"noBorder\":[4,\"no-border\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]}]]],[\"gov-card\",[[4,\"gov-card\",{\"promotion\":[4],\"label\":[1],\"collapsible\":[4],\"expanded\":[4],\"headlineTag\":[1,\"headline-tag\"],\"wcagTriggerLabel\":[1,\"wcag-trigger-label\"],\"wcagTriggerLabelledBy\":[1,\"wcag-trigger-labelled-by\"],\"isExpanded\":[32],\"open\":[64],\"close\":[64],\"validateWcag\":[64]}]]],[\"gov-form-checkbox\",[[4,\"gov-form-checkbox\",{\"value\":[1],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"noLabel\":[4,\"no-label\"],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-tile\",[[4,\"gov-tile\",{\"promotion\":[4],\"href\":[1],\"name\":[1],\"getTriggerRef\":[64]}]]],[\"gov-wizzard-item\",[[4,\"gov-wizzard-item\",{\"variant\":[1],\"size\":[1],\"identifier\":[1],\"collapsible\":[4],\"annotation\":[1],\"label\":[1],\"disabled\":[4],\"isExpanded\":[4,\"is-expanded\"],\"labelTag\":[1,\"label-tag\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]}]]],[\"gov-accordion\",[[4,\"gov-accordion\",{\"size\":[1],\"variant\":[1],\"noBorder\":[4,\"no-border\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-app\",[[0,\"gov-app\"]]],[\"gov-breadcrumbs\",[[4,\"gov-breadcrumbs\",{\"collapsible\":[4],\"isExpanded\":[4,\"is-expanded\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelded-by\"],\"validateWcag\":[64]}]]],[\"gov-container\",[[4,\"gov-container\",{\"slottedChildren\":[64]}]]],[\"gov-cookiebar\",[[4,\"gov-cookiebar\"]]],[\"gov-empty\",[[4,\"gov-empty\"]]],[\"gov-error-code\",[[4,\"gov-error-code\"]]],[\"gov-form-control\",[[4,\"gov-form-control\",{\"gap\":[1],\"identifier\":[1],\"invalid\":[4],\"disabled\":[4],\"success\":[4],\"fieldset\":[4],\"size\":[1]}]]],[\"gov-form-group\",[[4,\"gov-form-group\",{\"gap\":[1]}]]],[\"gov-form-label\",[[4,\"gov-form-label\",{\"identifier\":[1],\"size\":[1],\"required\":[4],\"legend\":[4]}]]],[\"gov-form-password-power\",[[4,\"gov-form-password-power\",{\"power\":[2]}]]],[\"gov-form-radio\",[[4,\"gov-form-radio\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-form-search\",[[4,\"gov-form-search\"]]],[\"gov-form-switch\",[[4,\"gov-form-switch\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-grid\",[[4,\"gov-grid\",{\"alignX\":[1,\"align-x\"],\"alignY\":[1,\"align-y\"]}]]],[\"gov-grid-item\",[[4,\"gov-grid-item\",{\"size\":[1],\"sizeSm\":[1,\"size-sm\"],\"sizeMd\":[1,\"size-md\"],\"sizeLg\":[1,\"size-lg\"],\"sizeXl\":[1,\"size-xl\"]}]]],[\"gov-layout\",[[4,\"gov-layout\",{\"type\":[1],\"variant\":[1],\"inverse\":[4]}]]],[\"gov-layout-column\",[[4,\"gov-layout-column\"]]],[\"gov-message\",[[4,\"gov-message\",{\"variant\":[1]}]]],[\"gov-nav\",[[4,\"gov-nav\",{\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-nav-item\",[[4,\"gov-nav-item\",{\"href\":[1],\"isExpandedState\":[32]}]]],[\"gov-side-nav\",[[4,\"gov-side-nav\",{\"inverse\":[4],\"compact\":[4],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-skeleton\",[[0,\"gov-skeleton\",{\"variant\":[1],\"count\":[2],\"shape\":[1],\"width\":[1],\"height\":[1],\"animation\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}]]],[\"gov-spacer\",[[0,\"gov-spacer\",{\"size\":[1],\"breakpoint\":[1]}]]],[\"gov-statsbar\",[[4,\"gov-statsbar\",{\"iconPosition\":[1,\"icon-position\"],\"variant\":[1]}]]],[\"gov-statsbar-item\",[[4,\"gov-statsbar-item\",{\"iconPosition\":[1,\"icon-position\"]}]]],[\"gov-stepper\",[[4,\"gov-stepper\",{\"size\":[1]}]]],[\"gov-stepper-item\",[[4,\"gov-stepper-item\",{\"variant\":[1],\"size\":[1],\"identifier\":[1],\"label\":[1],\"annotation\":[1],\"triggerTag\":[1,\"trigger-tag\"],\"isExpandedState\":[32],\"currentState\":[64]}]]],[\"gov-tabs-item\",[[4,\"gov-tabs-item\",{\"identifier\":[1],\"triggerIdentifier\":[1,\"trigger-identifier\"],\"label\":[1],\"default\":[4],\"isActive\":[32],\"getIdentifier\":[64],\"getTriggerIdentifier\":[64],\"setActiveStatus\":[64]}]]],[\"gov-tiles\",[[4,\"gov-tiles\",{\"columns\":[2],\"noBorder\":[4,\"no-border\"]}]]],[\"gov-tooltip\",[[4,\"gov-tooltip\",{\"variant\":[1],\"size\":[1],\"position\":[1],\"message\":[1],\"identifier\":[1],\"icon\":[4],\"show\":[64],\"hide\":[64]}]]],[\"gov-tooltip-content\",[[4,\"gov-tooltip-content\",{\"isVisible\":[4,\"is-visible\"]}]]],[\"gov-wizzard\",[[4,\"gov-wizzard\",{\"size\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-icon\",[[0,\"gov-icon\",{\"name\":[1],\"type\":[1],\"iconData\":[32],\"visible\":[32],\"error\":[32]}]]],[\"gov-form-input\",[[4,\"gov-form-input\",{\"value\":[1537],\"identifier\":[1],\"variant\":[1],\"success\":[4],\"size\":[1],\"name\":[1],\"multiline\":[4],\"rows\":[2],\"cols\":[2],\"required\":[4],\"disabled\":[4],\"placeholder\":[1],\"readonly\":[4],\"minlength\":[2],\"maxlength\":[2],\"min\":[8],\"max\":[8],\"autocomplete\":[4],\"autocorrect\":[4],\"type\":[1],\"inputType\":[1,\"input-type\"],\"role\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"wcagAutocomplete\":[1,\"wcag-autocomplete\"],\"wcagExpanded\":[4,\"wcag-expanded\"],\"focused\":[32],\"setFocus\":[64],\"setValue\":[64],\"clearValue\":[64],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-form-autocomplete\",[[4,\"gov-form-autocomplete\",{\"value\":[1537],\"identifier\":[1],\"variant\":[1],\"success\":[4],\"size\":[1],\"nameKey\":[1,\"name-key\"],\"name\":[1],\"required\":[4],\"disabled\":[4],\"placeholder\":[1],\"readonly\":[4],\"invalid\":[4],\"minlength\":[2],\"maxlength\":[2],\"messageEmpty\":[1,\"message-empty\"],\"messageLoading\":[1,\"message-loading\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"processing\":[32],\"arrowCounter\":[32],\"list\":[32],\"setFocus\":[64],\"setOptions\":[64],\"clearValue\":[64],\"setProcessing\":[64],\"setSearchCallback\":[64],\"setTemplateResolver\":[64]}]]],[\"gov-form-select\",[[4,\"gov-form-select\",{\"value\":[1537],\"identifier\":[1],\"variant\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"disabled\":[4],\"invalid\":[4],\"wcagActiveDescendant\":[1,\"wcag-active-descendant\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"setFocus\":[64],\"setValue\":[64],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-badge\",[[4,\"gov-badge\",{\"inverse\":[4],\"disabled\":[4],\"href\":[1],\"target\":[1],\"size\":[1],\"type\":[1],\"tag\":[1],\"variant\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"getTriggerRef\":[64]}]]],[\"gov-attachments_3\",[[4,\"gov-attachments-item\",{\"wcagRemoveLabel\":[1,\"wcag-remove-label\"],\"wcagRemoveLabelledBy\":[1,\"wcag-remove-labelled-by\"],\"validateWcag\":[64]}],[4,\"gov-attachments\",{\"label\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}],[4,\"gov-form-message\",{\"variant\":[1],\"identifier\":[64]}]]],[\"gov-backdrop\",[[0,\"gov-backdrop\",{\"inverse\":[4],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-button\",[[4,\"gov-button\",{\"variant\":[513],\"size\":[513],\"type\":[513],\"expanded\":[4],\"inverse\":[4],\"name\":[1],\"disabled\":[516],\"nativeType\":[1,\"native-type\"],\"href\":[1],\"target\":[1],\"download\":[4],\"hreflang\":[1],\"referrerpolicy\":[1],\"rel\":[1],\"loading\":[1],\"focusable\":[4],\"identifier\":[1],\"wcagActiveDescendant\":[1,\"wcag-active-descendant\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagDescription\":[1,\"wcag-description\"],\"wcagDetails\":[1,\"wcag-details\"],\"wcagExpanded\":[4,\"wcag-expanded\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"wcagHasPopup\":[1,\"wcag-has-popup\"],\"wcagPressed\":[1,\"wcag-pressed\"],\"wcagCurrent\":[1,\"wcag-current\"],\"isPressed\":[32],\"setFocus\":[64],\"getTriggerRef\":[64],\"validateWcag\":[64]}]]]]"), options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
package/dist/hydrate/index.js
CHANGED
|
@@ -11685,10 +11685,10 @@ class FormsPage extends HTMLElement {
|
|
|
11685
11685
|
<gov-form-input size="xl" placeholder="Co hledáte" input-type="time"></gov-form-input>
|
|
11686
11686
|
|
|
11687
11687
|
<h2>Search</h2>
|
|
11688
|
-
<gov-form-control
|
|
11688
|
+
<gov-form-control>
|
|
11689
11689
|
<gov-form-group>
|
|
11690
11690
|
<gov-form-search name="test-me-c" value="me" checked>
|
|
11691
|
-
<gov-form-input slot="input" id="kapr" name="test-me" placeholder="Co hledáte"></gov-form-input>
|
|
11691
|
+
<gov-form-input slot="input" id="kapr" name="test-me" size="m" placeholder="Co hledáte"></gov-form-input>
|
|
11692
11692
|
<gov-button slot="button" variant="primary" size="s">
|
|
11693
11693
|
<gov-icon slot="left-icon" name="search"></gov-icon>
|
|
11694
11694
|
</gov-button>
|
|
@@ -11696,10 +11696,10 @@ class FormsPage extends HTMLElement {
|
|
|
11696
11696
|
</gov-form-group>
|
|
11697
11697
|
</gov-form-control>
|
|
11698
11698
|
<br>
|
|
11699
|
-
<gov-form-control
|
|
11699
|
+
<gov-form-control>
|
|
11700
11700
|
<gov-form-group>
|
|
11701
11701
|
<gov-form-search name="test-me-c" value="me" checked>
|
|
11702
|
-
<gov-form-input slot="input" id="kapr" name="test-me" placeholder="Co hledáte"></gov-form-input>
|
|
11702
|
+
<gov-form-input slot="input" id="kapr" name="test-me" size="l" placeholder="Co hledáte"></gov-form-input>
|
|
11703
11703
|
<gov-button slot="button" variant="primary" size="m">
|
|
11704
11704
|
Hledat
|
|
11705
11705
|
</gov-button>
|
|
@@ -11707,10 +11707,10 @@ class FormsPage extends HTMLElement {
|
|
|
11707
11707
|
</gov-form-group>
|
|
11708
11708
|
</gov-form-control>
|
|
11709
11709
|
<br>
|
|
11710
|
-
<gov-form-control
|
|
11710
|
+
<gov-form-control>
|
|
11711
11711
|
<gov-form-group>
|
|
11712
|
-
<gov-form-search name="test-me-c" value="me"
|
|
11713
|
-
<gov-form-input slot="input" id="kapr" name="test-me" placeholder="Co hledáte"></gov-form-input>
|
|
11712
|
+
<gov-form-search name="test-me-c" value="me"checked variant="secondary">
|
|
11713
|
+
<gov-form-input slot="input" id="kapr" size="xl" name="test-me" placeholder="Co hledáte"></gov-form-input>
|
|
11714
11714
|
<gov-button slot="button" variant="secondary" size="l">
|
|
11715
11715
|
Hledat
|
|
11716
11716
|
</gov-button>
|
|
@@ -11738,12 +11738,12 @@ class FormsPage extends HTMLElement {
|
|
|
11738
11738
|
</gov-form-control>
|
|
11739
11739
|
<br>
|
|
11740
11740
|
|
|
11741
|
-
<gov-form-control
|
|
11742
|
-
<gov-form-label size="s" slot="top">Přidat přílohu *</gov-form-label>
|
|
11741
|
+
<gov-form-control>
|
|
11742
|
+
<gov-form-label size="s" slot="top">Přidat přílohu 22 *</gov-form-label>
|
|
11743
11743
|
<gov-form-group>
|
|
11744
11744
|
<gov-form-file name="test-me-c">
|
|
11745
11745
|
<p aria-hidden="true">
|
|
11746
|
-
<gov-button
|
|
11746
|
+
<gov-button variant="primary" type="outlined">
|
|
11747
11747
|
<gov-icon slot="left-icon" name="upload"></gov-icon>
|
|
11748
11748
|
Nahrát soubor ze zařízení
|
|
11749
11749
|
</gov-button>
|
|
@@ -11902,12 +11902,12 @@ class FormsPage extends HTMLElement {
|
|
|
11902
11902
|
</gov-form-message>
|
|
11903
11903
|
</gov-form-control>
|
|
11904
11904
|
<h3>
|
|
11905
|
-
Disabled
|
|
11905
|
+
Disabled DDD
|
|
11906
11906
|
</h3>
|
|
11907
|
-
<gov-form-control
|
|
11907
|
+
<gov-form-control id="metro2">
|
|
11908
11908
|
<gov-form-label size="s" slot="top">Label of textarea</gov-form-label>
|
|
11909
11909
|
<gov-form-group>
|
|
11910
|
-
<gov-form-input multiline rows="3" name="test-me" value="Value of textarea"></gov-form-input>
|
|
11910
|
+
<gov-form-input multiline rows="3" name="test-me" disabled value="Value of textarea"></gov-form-input>
|
|
11911
11911
|
</gov-form-group>
|
|
11912
11912
|
</gov-form-control>
|
|
11913
11913
|
|
|
@@ -15951,8 +15951,17 @@ class GovFormCheckbox {
|
|
|
15951
15951
|
validateSize(newValue) {
|
|
15952
15952
|
validateProp(FormCheckboxSizes, newValue, FormCheckboxClass.root);
|
|
15953
15953
|
}
|
|
15954
|
+
watchDisabled() {
|
|
15955
|
+
this.passControlAttrs();
|
|
15956
|
+
}
|
|
15957
|
+
passControlAttrs() {
|
|
15958
|
+
this.f.passAttrToControl("size", this.size);
|
|
15959
|
+
this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
|
|
15960
|
+
this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
|
|
15961
|
+
}
|
|
15954
15962
|
componentWillLoad() {
|
|
15955
15963
|
this.f.passAttrToControl("type", "checkbox");
|
|
15964
|
+
this.passControlAttrs();
|
|
15956
15965
|
}
|
|
15957
15966
|
async componentDidRender() {
|
|
15958
15967
|
this.f.passAttrToLabel("identifier", this.identifier || this.checkboxId);
|
|
@@ -16018,7 +16027,9 @@ class GovFormCheckbox {
|
|
|
16018
16027
|
}
|
|
16019
16028
|
get host() { return getElement(this); }
|
|
16020
16029
|
static get watchers() { return {
|
|
16021
|
-
"size": ["validateSize"]
|
|
16030
|
+
"size": ["validateSize", "watchDisabled"],
|
|
16031
|
+
"disabled": ["watchDisabled"],
|
|
16032
|
+
"invalid": ["watchDisabled"]
|
|
16022
16033
|
}; }
|
|
16023
16034
|
static get style() { return govFormCheckboxCss; }
|
|
16024
16035
|
static get cmpMeta() { return {
|
|
@@ -16056,10 +16067,10 @@ class GovFormControl {
|
|
|
16056
16067
|
this.disabled = false;
|
|
16057
16068
|
this.success = false;
|
|
16058
16069
|
this.fieldset = false;
|
|
16059
|
-
this.size =
|
|
16070
|
+
this.size = "m";
|
|
16060
16071
|
this.h = govHost(this.host);
|
|
16061
16072
|
this.f = govForm(this.h);
|
|
16062
|
-
this.controlId = createID(
|
|
16073
|
+
this.controlId = createID("GovFormControl");
|
|
16063
16074
|
}
|
|
16064
16075
|
watchInvalid() {
|
|
16065
16076
|
this.passChildAttrs();
|
|
@@ -16075,25 +16086,22 @@ class GovFormControl {
|
|
|
16075
16086
|
}
|
|
16076
16087
|
passChildAttrs() {
|
|
16077
16088
|
const formElements = [
|
|
16078
|
-
|
|
16079
|
-
|
|
16080
|
-
|
|
16081
|
-
|
|
16082
|
-
|
|
16083
|
-
|
|
16084
|
-
|
|
16085
|
-
|
|
16089
|
+
"gov-form-select",
|
|
16090
|
+
"gov-form-input",
|
|
16091
|
+
"gov-form-switch",
|
|
16092
|
+
"gov-form-checkbox",
|
|
16093
|
+
"gov-form-radio",
|
|
16094
|
+
"gov-form-multi-select",
|
|
16095
|
+
"gov-form-file",
|
|
16096
|
+
"gov-form-search",
|
|
16086
16097
|
];
|
|
16087
|
-
this.h.passChildAttr(formElements,
|
|
16088
|
-
this.h.passChildAttr(formElements, 'invalid', this.invalid);
|
|
16089
|
-
this.h.passChildAttr(formElements, 'disabled', this.disabled);
|
|
16090
|
-
this.h.passChildAttr(formElements, 'success', this.success);
|
|
16098
|
+
this.h.passChildAttr(formElements, "success", this.success);
|
|
16091
16099
|
if (this.f.hasGroupChildren === false) {
|
|
16092
|
-
this.h.passChildAttr([...formElements,
|
|
16100
|
+
this.h.passChildAttr([...formElements, "gov-form-label"], "identifier", this.identifier || this.controlId);
|
|
16093
16101
|
}
|
|
16094
16102
|
}
|
|
16095
16103
|
formElementDescriptionControl() {
|
|
16096
|
-
const bottomSlot = this.host.querySelector(
|
|
16104
|
+
const bottomSlot = this.host.querySelector("." + FormControlClass.bottom);
|
|
16097
16105
|
if (!bottomSlot)
|
|
16098
16106
|
return;
|
|
16099
16107
|
this.observer = new MutationObserver(function () {
|
|
@@ -16104,20 +16112,20 @@ class GovFormControl {
|
|
|
16104
16112
|
syncControlMessages() {
|
|
16105
16113
|
Promise.all(this.f.messageElements.map((message) => message.identifier())).then((ids) => {
|
|
16106
16114
|
this.f.mainElementsInControl.forEach((element) => {
|
|
16107
|
-
const currentValue = splitByWhitespace(element.getAttribute(
|
|
16108
|
-
element.removeAttribute(
|
|
16115
|
+
const currentValue = splitByWhitespace(element.getAttribute("wcag-described-by"));
|
|
16116
|
+
element.removeAttribute("wcag-described-by");
|
|
16109
16117
|
if (Array.isArray(currentValue)) {
|
|
16110
|
-
currentValue.forEach(id => (id.indexOf(
|
|
16118
|
+
currentValue.forEach(id => (id.indexOf("GovFormMessage") === -1 ? ids.push(id) : null));
|
|
16111
16119
|
}
|
|
16112
16120
|
if (ids.length) {
|
|
16113
|
-
element.setAttribute(
|
|
16121
|
+
element.setAttribute("wcag-described-by", ids.join(" "));
|
|
16114
16122
|
}
|
|
16115
16123
|
});
|
|
16116
16124
|
});
|
|
16117
16125
|
}
|
|
16118
16126
|
render() {
|
|
16119
|
-
const Tag = this.fieldset ?
|
|
16120
|
-
return (hAsync(Host, { size: this.size, class: this.h.classes(FormControlClass.root) }, hAsync(Tag, { class: FormControlClass.holder }, this.h.hasSlot(
|
|
16127
|
+
const Tag = this.fieldset ? "fieldset" : "div";
|
|
16128
|
+
return (hAsync(Host, { size: this.size, class: this.h.classes(FormControlClass.root) }, hAsync(Tag, { class: FormControlClass.holder }, this.h.hasSlot("top") && hAsync("slot", { name: "top" }), hAsync("slot", null), this.h.hasSlot("bottom") && (hAsync("div", { class: FormControlClass.bottom }, hAsync("slot", { name: "bottom" }))))));
|
|
16121
16129
|
}
|
|
16122
16130
|
get host() { return getElement(this); }
|
|
16123
16131
|
static get watchers() { return {
|
|
@@ -16209,6 +16217,14 @@ class GovFormFile {
|
|
|
16209
16217
|
this.h = govHost(this.host);
|
|
16210
16218
|
this.f = govForm(this.h);
|
|
16211
16219
|
}
|
|
16220
|
+
watchDisabled() {
|
|
16221
|
+
this.passControlAttrs();
|
|
16222
|
+
}
|
|
16223
|
+
passControlAttrs() {
|
|
16224
|
+
this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
|
|
16225
|
+
this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
|
|
16226
|
+
this.f.passAttrToControl("type", "File");
|
|
16227
|
+
}
|
|
16212
16228
|
registerListeners() {
|
|
16213
16229
|
function highlight() {
|
|
16214
16230
|
this.areaRef.classList.add("highlight");
|
|
@@ -16266,8 +16282,8 @@ class GovFormFile {
|
|
|
16266
16282
|
});
|
|
16267
16283
|
}
|
|
16268
16284
|
componentWillLoad() {
|
|
16269
|
-
this.f.passAttrToControl("type", "File");
|
|
16270
16285
|
this.f.passAttrToLabel("required", String(this.required));
|
|
16286
|
+
this.watchDisabled();
|
|
16271
16287
|
}
|
|
16272
16288
|
async componentDidRender() {
|
|
16273
16289
|
if (canValidateWcagOnRender()) {
|
|
@@ -16334,6 +16350,10 @@ class GovFormFile {
|
|
|
16334
16350
|
validateWcagLabelFor(this.identifier || this.fileId, this.wcagLabelledBy, FormFileClass.root);
|
|
16335
16351
|
}
|
|
16336
16352
|
get host() { return getElement(this); }
|
|
16353
|
+
static get watchers() { return {
|
|
16354
|
+
"disabled": ["watchDisabled"],
|
|
16355
|
+
"invalid": ["watchDisabled"]
|
|
16356
|
+
}; }
|
|
16337
16357
|
static get style() { return govFormFileCss; }
|
|
16338
16358
|
static get cmpMeta() { return {
|
|
16339
16359
|
"$flags$": 4,
|
|
@@ -16451,7 +16471,7 @@ class GovFormInput {
|
|
|
16451
16471
|
this.focused = undefined;
|
|
16452
16472
|
this.h = govHost(this.host);
|
|
16453
16473
|
this.inputId = createID('GovInput');
|
|
16454
|
-
this.f = govForm(
|
|
16474
|
+
this.f = govForm(this.h);
|
|
16455
16475
|
}
|
|
16456
16476
|
validateVariant(newValue) {
|
|
16457
16477
|
validateProp(FormInputVariants, newValue, FormInputClass.root);
|
|
@@ -16459,10 +16479,19 @@ class GovFormInput {
|
|
|
16459
16479
|
validateSize(newValue) {
|
|
16460
16480
|
validateProp(FormInputSizes, newValue, FormInputClass.root);
|
|
16461
16481
|
}
|
|
16482
|
+
watchDisabled() {
|
|
16483
|
+
this.passControlAttrs();
|
|
16484
|
+
}
|
|
16485
|
+
passControlAttrs() {
|
|
16486
|
+
this.f.passAttrToControl("size", this.size);
|
|
16487
|
+
this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
|
|
16488
|
+
this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
|
|
16489
|
+
this.f.passAttrToControl('type', this.multiline ? Tags$1.TEXTAREA : Tags$1.INPUT);
|
|
16490
|
+
}
|
|
16462
16491
|
componentWillLoad() {
|
|
16463
16492
|
this.validateVariant(this.variant);
|
|
16464
16493
|
this.validateSize(this.size);
|
|
16465
|
-
this.
|
|
16494
|
+
this.passControlAttrs();
|
|
16466
16495
|
this.f.passAttrToLabel('required', String(this.required));
|
|
16467
16496
|
}
|
|
16468
16497
|
async componentDidRender() {
|
|
@@ -16555,7 +16584,10 @@ class GovFormInput {
|
|
|
16555
16584
|
get host() { return getElement(this); }
|
|
16556
16585
|
static get watchers() { return {
|
|
16557
16586
|
"variant": ["validateVariant"],
|
|
16558
|
-
"size": ["validateSize"]
|
|
16587
|
+
"size": ["validateSize", "watchDisabled"],
|
|
16588
|
+
"disabled": ["watchDisabled"],
|
|
16589
|
+
"invalid": ["watchDisabled"],
|
|
16590
|
+
"type": ["watchDisabled"]
|
|
16559
16591
|
}; }
|
|
16560
16592
|
static get style() { return govFormInputCss; }
|
|
16561
16593
|
static get cmpMeta() { return {
|
|
@@ -16700,6 +16732,8 @@ class GovFormMultiSelect {
|
|
|
16700
16732
|
this.selectedOptions = [];
|
|
16701
16733
|
this.selectId = createID("GovSelect");
|
|
16702
16734
|
this.listId = createID("GovMultiList");
|
|
16735
|
+
this.h = govHost(this.host);
|
|
16736
|
+
this.f = govForm(this.h);
|
|
16703
16737
|
}
|
|
16704
16738
|
validateVariant(newValue) {
|
|
16705
16739
|
validateProp(FormMultiselectVariants, newValue, FormMultiSelectClass.root);
|
|
@@ -16713,9 +16747,18 @@ class GovFormMultiSelect {
|
|
|
16713
16747
|
value: newValue,
|
|
16714
16748
|
});
|
|
16715
16749
|
}
|
|
16750
|
+
watchDisabled() {
|
|
16751
|
+
this.passControlAttrs();
|
|
16752
|
+
}
|
|
16753
|
+
passControlAttrs() {
|
|
16754
|
+
this.f.passAttrToControl("size", this.size);
|
|
16755
|
+
this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
|
|
16756
|
+
this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
|
|
16757
|
+
}
|
|
16716
16758
|
componentWillLoad() {
|
|
16717
16759
|
this.validateVariant(this.variant);
|
|
16718
16760
|
this.validateSize(this.size);
|
|
16761
|
+
this.watchDisabled();
|
|
16719
16762
|
}
|
|
16720
16763
|
getAvailableOptions() {
|
|
16721
16764
|
return Array.from(this.selectRef.querySelectorAll("option"))
|
|
@@ -16840,7 +16883,7 @@ class GovFormMultiSelect {
|
|
|
16840
16883
|
/**
|
|
16841
16884
|
* Returns an instance of the native html select element
|
|
16842
16885
|
*/
|
|
16843
|
-
async
|
|
16886
|
+
async getRef() {
|
|
16844
16887
|
return this.selectRef;
|
|
16845
16888
|
}
|
|
16846
16889
|
/**
|
|
@@ -16855,8 +16898,10 @@ class GovFormMultiSelect {
|
|
|
16855
16898
|
get host() { return getElement(this); }
|
|
16856
16899
|
static get watchers() { return {
|
|
16857
16900
|
"variant": ["validateVariant"],
|
|
16858
|
-
"size": ["validateSize"],
|
|
16859
|
-
"selectedOptions": ["emitChange"]
|
|
16901
|
+
"size": ["validateSize", "watchDisabled"],
|
|
16902
|
+
"selectedOptions": ["emitChange"],
|
|
16903
|
+
"disabled": ["watchDisabled"],
|
|
16904
|
+
"invalid": ["watchDisabled"]
|
|
16860
16905
|
}; }
|
|
16861
16906
|
static get style() { return govFormMultiSelectCss; }
|
|
16862
16907
|
static get cmpMeta() { return {
|
|
@@ -16879,7 +16924,7 @@ class GovFormMultiSelect {
|
|
|
16879
16924
|
"selectedOptions": [32],
|
|
16880
16925
|
"setFocus": [64],
|
|
16881
16926
|
"setValue": [64],
|
|
16882
|
-
"
|
|
16927
|
+
"getRef": [64],
|
|
16883
16928
|
"validateWcag": [64]
|
|
16884
16929
|
},
|
|
16885
16930
|
"$listeners$": undefined,
|
|
@@ -16931,24 +16976,33 @@ class GovFormRadio {
|
|
|
16931
16976
|
this.required = false;
|
|
16932
16977
|
this.disabled = undefined;
|
|
16933
16978
|
this.name = undefined;
|
|
16934
|
-
this.size =
|
|
16979
|
+
this.size = "m";
|
|
16935
16980
|
this.identifier = undefined;
|
|
16936
16981
|
this.invalid = undefined;
|
|
16937
16982
|
this.wcagDescribedBy = undefined;
|
|
16938
16983
|
this.wcagLabelledBy = undefined;
|
|
16939
|
-
this.radioId = createID(
|
|
16984
|
+
this.radioId = createID("GovRadio");
|
|
16940
16985
|
this.h = govHost(this.host);
|
|
16941
16986
|
this.f = govForm(this.h);
|
|
16942
16987
|
}
|
|
16943
16988
|
validateSize(newValue) {
|
|
16944
16989
|
validateProp(FormRadioSizes, newValue, FormRadioClass.root);
|
|
16945
16990
|
}
|
|
16991
|
+
watchDisabled() {
|
|
16992
|
+
this.passControlAttrs();
|
|
16993
|
+
}
|
|
16994
|
+
passControlAttrs() {
|
|
16995
|
+
this.f.passAttrToControl("size", this.size);
|
|
16996
|
+
this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
|
|
16997
|
+
this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
|
|
16998
|
+
this.f.passAttrToControl("type", "radio");
|
|
16999
|
+
}
|
|
16946
17000
|
componentWillLoad() {
|
|
16947
|
-
this.
|
|
17001
|
+
this.passControlAttrs();
|
|
16948
17002
|
}
|
|
16949
17003
|
async componentDidRender() {
|
|
16950
|
-
this.f.passAttrToLabel(
|
|
16951
|
-
this.f.passAttrToLabel(
|
|
17004
|
+
this.f.passAttrToLabel("identifier", this.identifier || this.radioId);
|
|
17005
|
+
this.f.passAttrToLabel("required", String(this.required));
|
|
16952
17006
|
if (canValidateWcagOnRender()) {
|
|
16953
17007
|
await delay(500);
|
|
16954
17008
|
await this.validateWcag();
|
|
@@ -17004,13 +17058,15 @@ class GovFormRadio {
|
|
|
17004
17058
|
* Validate the WCAG attributes of the component
|
|
17005
17059
|
*/
|
|
17006
17060
|
async validateWcag() {
|
|
17007
|
-
validateWcagRef(this.wcagDescribedBy,
|
|
17008
|
-
validateWcagRef(this.wcagLabelledBy,
|
|
17061
|
+
validateWcagRef(this.wcagDescribedBy, "wcag-described-by", FormRadioClass.root);
|
|
17062
|
+
validateWcagRef(this.wcagLabelledBy, "wcag-labelled-by", FormRadioClass.root);
|
|
17009
17063
|
validateWcagLabelFor(this.identifier || this.radioId, this.wcagLabelledBy, FormRadioClass.root);
|
|
17010
17064
|
}
|
|
17011
17065
|
get host() { return getElement(this); }
|
|
17012
17066
|
static get watchers() { return {
|
|
17013
|
-
"size": ["validateSize"]
|
|
17067
|
+
"size": ["validateSize", "watchDisabled"],
|
|
17068
|
+
"disabled": ["watchDisabled"],
|
|
17069
|
+
"invalid": ["watchDisabled"]
|
|
17014
17070
|
}; }
|
|
17015
17071
|
static get style() { return govFormRadioCss; }
|
|
17016
17072
|
static get cmpMeta() { return {
|
|
@@ -17087,8 +17143,8 @@ class GovFormSelect {
|
|
|
17087
17143
|
this.wcagOwns = undefined;
|
|
17088
17144
|
this.focused = undefined;
|
|
17089
17145
|
this.h = govHost(this.host);
|
|
17146
|
+
this.f = govForm(this.h);
|
|
17090
17147
|
this.selectId = createID("GovSelect");
|
|
17091
|
-
this.f = govForm(govHost(this.host));
|
|
17092
17148
|
}
|
|
17093
17149
|
validateVariant(newValue) {
|
|
17094
17150
|
validateProp(FormSelectVariants, newValue, FormSelectClass.root);
|
|
@@ -17096,6 +17152,15 @@ class GovFormSelect {
|
|
|
17096
17152
|
validateSize(newValue) {
|
|
17097
17153
|
validateProp(FormSelectSizes, newValue, FormSelectClass.root);
|
|
17098
17154
|
}
|
|
17155
|
+
watchDisabled() {
|
|
17156
|
+
this.passControlAttrs();
|
|
17157
|
+
}
|
|
17158
|
+
passControlAttrs() {
|
|
17159
|
+
this.f.passAttrToControl("size", this.size);
|
|
17160
|
+
this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
|
|
17161
|
+
this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
|
|
17162
|
+
this.f.passAttrToControl("type", "select");
|
|
17163
|
+
}
|
|
17099
17164
|
componentWillLoad() {
|
|
17100
17165
|
this.validateVariant(this.variant);
|
|
17101
17166
|
this.validateSize(this.size);
|
|
@@ -17104,7 +17169,7 @@ class GovFormSelect {
|
|
|
17104
17169
|
option.setAttribute("selected", "true");
|
|
17105
17170
|
}
|
|
17106
17171
|
});
|
|
17107
|
-
this.
|
|
17172
|
+
this.passControlAttrs();
|
|
17108
17173
|
this.f.passAttrToLabel("required", String(this.required));
|
|
17109
17174
|
}
|
|
17110
17175
|
async componentDidRender() {
|
|
@@ -17172,7 +17237,9 @@ class GovFormSelect {
|
|
|
17172
17237
|
get host() { return getElement(this); }
|
|
17173
17238
|
static get watchers() { return {
|
|
17174
17239
|
"variant": ["validateVariant"],
|
|
17175
|
-
"size": ["validateSize"]
|
|
17240
|
+
"size": ["validateSize", "watchDisabled"],
|
|
17241
|
+
"disabled": ["watchDisabled"],
|
|
17242
|
+
"invalid": ["watchDisabled"]
|
|
17176
17243
|
}; }
|
|
17177
17244
|
static get style() { return govFormSelectCss; }
|
|
17178
17245
|
static get cmpMeta() { return {
|
|
@@ -17230,12 +17297,21 @@ class GovFormSwitch {
|
|
|
17230
17297
|
validateSize(newValue) {
|
|
17231
17298
|
validateProp(FormSwitchSizes, newValue, FormSwitchClass.root);
|
|
17232
17299
|
}
|
|
17233
|
-
|
|
17300
|
+
watchDisabled() {
|
|
17301
|
+
this.passControlAttrs();
|
|
17302
|
+
}
|
|
17303
|
+
passControlAttrs() {
|
|
17304
|
+
this.f.passAttrToControl("size", this.size);
|
|
17305
|
+
this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
|
|
17306
|
+
this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
|
|
17234
17307
|
this.f.passAttrToControl("type", "switch");
|
|
17235
17308
|
}
|
|
17309
|
+
componentWillLoad() {
|
|
17310
|
+
this.passControlAttrs();
|
|
17311
|
+
}
|
|
17236
17312
|
async componentDidRender() {
|
|
17237
|
-
this.f.passAttrToLabel(
|
|
17238
|
-
this.f.passAttrToLabel(
|
|
17313
|
+
this.f.passAttrToLabel("identifier", this.identifier || this.checkboxId);
|
|
17314
|
+
this.f.passAttrToLabel("required", String(this.required));
|
|
17239
17315
|
if (canValidateWcagOnRender()) {
|
|
17240
17316
|
await delay(500);
|
|
17241
17317
|
await this.validateWcag();
|
|
@@ -17259,7 +17335,7 @@ class GovFormSwitch {
|
|
|
17259
17335
|
component: FormSwitchClass.root,
|
|
17260
17336
|
checked: this.checked,
|
|
17261
17337
|
value: this.value,
|
|
17262
|
-
originalEvent: e
|
|
17338
|
+
originalEvent: e,
|
|
17263
17339
|
});
|
|
17264
17340
|
}
|
|
17265
17341
|
onBlurHandler(e) {
|
|
@@ -17268,7 +17344,7 @@ class GovFormSwitch {
|
|
|
17268
17344
|
component: FormSwitchClass.root,
|
|
17269
17345
|
checked: this.checked,
|
|
17270
17346
|
value: this.value,
|
|
17271
|
-
originalEvent: e
|
|
17347
|
+
originalEvent: e,
|
|
17272
17348
|
});
|
|
17273
17349
|
}
|
|
17274
17350
|
onChangeHandler(e) {
|
|
@@ -17278,7 +17354,7 @@ class GovFormSwitch {
|
|
|
17278
17354
|
component: FormSwitchClass.root,
|
|
17279
17355
|
checked: this.checked,
|
|
17280
17356
|
value: this.value,
|
|
17281
|
-
originalEvent: e
|
|
17357
|
+
originalEvent: e,
|
|
17282
17358
|
});
|
|
17283
17359
|
}
|
|
17284
17360
|
/**
|
|
@@ -17297,7 +17373,9 @@ class GovFormSwitch {
|
|
|
17297
17373
|
}
|
|
17298
17374
|
get host() { return getElement(this); }
|
|
17299
17375
|
static get watchers() { return {
|
|
17300
|
-
"size": ["validateSize"]
|
|
17376
|
+
"size": ["validateSize", "watchDisabled"],
|
|
17377
|
+
"disabled": ["watchDisabled"],
|
|
17378
|
+
"invalid": ["watchDisabled"]
|
|
17301
17379
|
}; }
|
|
17302
17380
|
static get style() { return govFormSwitchCss; }
|
|
17303
17381
|
static get cmpMeta() { return {
|
|
@@ -67,6 +67,8 @@ export declare class GovFormCheckbox {
|
|
|
67
67
|
*/
|
|
68
68
|
govChange: EventEmitter<FormCheckboxEvent>;
|
|
69
69
|
validateSize(newValue: string): void;
|
|
70
|
+
watchDisabled(): void;
|
|
71
|
+
private passControlAttrs;
|
|
70
72
|
componentWillLoad(): void;
|
|
71
73
|
componentDidRender(): Promise<void>;
|
|
72
74
|
render(): any;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FormControlSizesType } from
|
|
1
|
+
import { FormControlSizesType } from "./constants";
|
|
2
2
|
export declare class GovFormControl {
|
|
3
3
|
private readonly h;
|
|
4
4
|
private f;
|
|
5
5
|
private readonly controlId;
|
|
6
6
|
private observer;
|
|
7
7
|
constructor();
|
|
8
|
+
host: HTMLGovFormControlElement;
|
|
8
9
|
/**
|
|
9
10
|
* Defines the space between nested components.
|
|
10
11
|
*/
|
|
@@ -36,7 +37,6 @@ export declare class GovFormControl {
|
|
|
36
37
|
* Form element size.
|
|
37
38
|
*/
|
|
38
39
|
readonly size?: FormControlSizesType;
|
|
39
|
-
host: HTMLGovFormControlElement;
|
|
40
40
|
watchInvalid(): void;
|
|
41
41
|
componentDidRender(): void;
|
|
42
42
|
disconnectedCallback(): void;
|
|
@@ -96,6 +96,8 @@ export declare class GovFormFile {
|
|
|
96
96
|
*/
|
|
97
97
|
govRemoveFile: EventEmitter<GovFormFileEvent>;
|
|
98
98
|
files: GovFormFileItem[];
|
|
99
|
+
watchDisabled(): void;
|
|
100
|
+
private passControlAttrs;
|
|
99
101
|
private registerListeners;
|
|
100
102
|
preventDefaults(e: any): void;
|
|
101
103
|
handleDrop(e: DragEvent): void;
|
|
@@ -4,7 +4,7 @@ import { FormInputVariantType } from './constants';
|
|
|
4
4
|
import { FormInputEvent } from './gov-form-input.types';
|
|
5
5
|
export declare class GovFormInput {
|
|
6
6
|
private f;
|
|
7
|
-
private h;
|
|
7
|
+
private readonly h;
|
|
8
8
|
private inputRef?;
|
|
9
9
|
private readonly inputId;
|
|
10
10
|
constructor();
|
|
@@ -148,6 +148,8 @@ export declare class GovFormInput {
|
|
|
148
148
|
focused: boolean;
|
|
149
149
|
validateVariant(newValue: string): void;
|
|
150
150
|
validateSize(newValue: string): void;
|
|
151
|
+
watchDisabled(): void;
|
|
152
|
+
private passControlAttrs;
|
|
151
153
|
componentWillLoad(): void;
|
|
152
154
|
componentDidRender(): Promise<void>;
|
|
153
155
|
render(): any;
|
|
@@ -2,6 +2,8 @@ import { EventEmitter } from "../../../stencil-public-runtime";
|
|
|
2
2
|
import { FormMultiselectSizesType, FormMultiselectVariantType } from "./constants";
|
|
3
3
|
import { FormMultiselectEvent, GovFormMultiSelectItem } from "./gov-form-multi-select.types";
|
|
4
4
|
export declare class GovFormMultiSelect {
|
|
5
|
+
private f;
|
|
6
|
+
private readonly h;
|
|
5
7
|
private selectRef?;
|
|
6
8
|
private autocompleteRef?;
|
|
7
9
|
private readonly selectId;
|
|
@@ -72,6 +74,8 @@ export declare class GovFormMultiSelect {
|
|
|
72
74
|
validateVariant(newValue: string): void;
|
|
73
75
|
validateSize(newValue: string): void;
|
|
74
76
|
emitChange(newValue: GovFormMultiSelectItem[]): void;
|
|
77
|
+
watchDisabled(): void;
|
|
78
|
+
private passControlAttrs;
|
|
75
79
|
componentWillLoad(): void;
|
|
76
80
|
private getAvailableOptions;
|
|
77
81
|
private initAutocomplete;
|
|
@@ -97,7 +101,7 @@ export declare class GovFormMultiSelect {
|
|
|
97
101
|
/**
|
|
98
102
|
* Returns an instance of the native html select element
|
|
99
103
|
*/
|
|
100
|
-
|
|
104
|
+
getRef(): Promise<HTMLSelectElement>;
|
|
101
105
|
/**
|
|
102
106
|
* Validate the WCAG attributes of the component
|
|
103
107
|
*/
|