@gov-design-system-ce/components 0.0.36 → 0.0.38
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/{constants-245999e7.js → constants-ff12205f.js} +1 -1
- package/dist/cjs/constants-ff12205f.js.map +1 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{form-62c6a8c6.js → form-f68d13c6.js} +2 -2
- package/dist/cjs/form-f68d13c6.js.map +1 -0
- package/dist/cjs/gov-accordion.cjs.entry.js +2 -2
- package/dist/cjs/gov-alert.cjs.entry.js +2 -2
- package/dist/cjs/gov-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-app.cjs.entry.js +1122 -663
- package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +2 -2
- package/dist/cjs/gov-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/gov-badge.cjs.entry.js +2 -2
- package/dist/cjs/gov-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/gov-button.cjs.entry.js +4 -4
- package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-card.cjs.entry.js +2 -2
- package/dist/cjs/gov-control-group.cjs.entry.js +42 -0
- package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-dropdown.cjs.entry.js +129 -0
- package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-control.cjs.entry.js +35 -7
- package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +4 -4
- package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-input.cjs.entry.js +6 -6
- package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +4 -4
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-search.cjs.entry.js +5 -1
- package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +20 -10
- package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +3 -3
- package/dist/cjs/gov-icon.cjs.entry.js +2 -2
- package/dist/cjs/gov-modal.cjs.entry.js +2 -2
- package/dist/cjs/gov-nav.cjs.entry.js +2 -2
- package/dist/cjs/gov-pagination.cjs.entry.js +2 -2
- package/dist/cjs/gov-prompt.cjs.entry.js +2 -2
- package/dist/cjs/gov-side-nav.cjs.entry.js +2 -2
- package/dist/cjs/gov-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/gov-tabs.cjs.entry.js +2 -2
- package/dist/cjs/gov-wizzard-item.cjs.entry.js +13 -15
- package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizzard.cjs.entry.js +2 -2
- package/dist/cjs/index-29ac07f6.js +8 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{wcag-6efc0ab7.js → wcag-b0321f09.js} +2 -2
- package/dist/cjs/{wcag-6efc0ab7.js.map → wcag-b0321f09.js.map} +1 -1
- package/dist/cjs/{win-84bda0aa.js → win-53f637d4.js} +3 -2
- package/dist/cjs/win-53f637d4.js.map +1 -0
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.css +6 -0
- package/dist/collection/components/gov-accordion/gov-accordion.css +6 -0
- package/dist/collection/components/gov-alert/gov-alert.css +6 -0
- package/dist/collection/components/gov-alert/gov-alert.js.map +1 -1
- package/dist/collection/components/gov-app/gov-app.css +6 -0
- package/dist/collection/components/gov-app/gov-app.js +10 -8
- package/dist/collection/components/gov-app/gov-app.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.css +6 -0
- package/dist/collection/components/gov-attachments/gov-attachments.css +6 -0
- package/dist/collection/components/gov-backdrop/gov-backdrop.css +6 -0
- package/dist/collection/components/gov-badge/gov-badge.css +9 -3
- package/dist/collection/components/gov-badge/gov-badge.js +4 -4
- package/dist/collection/components/gov-badge/gov-badge.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +6 -0
- package/dist/collection/components/gov-button/{constants.js → default/constants.js} +3 -3
- package/dist/collection/components/gov-button/default/constants.js.map +1 -0
- package/dist/collection/components/gov-button/{gov-button.css → default/gov-button.css} +6 -3
- package/dist/collection/components/gov-button/{gov-button.js → default/gov-button.js} +7 -7
- package/dist/collection/components/gov-button/default/gov-button.js.map +1 -0
- package/dist/collection/components/gov-button/default/gov-button.types.js.map +1 -0
- package/dist/collection/components/gov-button/dropdown/constants.js +10 -0
- package/dist/collection/components/gov-button/dropdown/constants.js.map +1 -0
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.css +263 -0
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +148 -0
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -0
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js +2 -0
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js.map +1 -0
- package/dist/collection/components/gov-card/gov-card.css +6 -0
- package/dist/collection/components/gov-container/gov-container.css +6 -0
- package/dist/collection/components/gov-control-group/constants.js +7 -0
- package/dist/collection/components/gov-control-group/constants.js.map +1 -0
- package/dist/collection/components/gov-control-group/gov-control-group.css +259 -0
- package/dist/collection/components/gov-control-group/gov-control-group.js +83 -0
- package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -0
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +6 -0
- package/dist/collection/components/gov-empty/gov-empty.css +6 -0
- package/dist/collection/components/gov-error-code/gov-error-code.css +6 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +6 -0
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +6 -0
- package/dist/collection/components/gov-form/control/gov-form-control.css +6 -0
- package/dist/collection/components/gov-form/control/gov-form-control.js +35 -10
- package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.css +13 -0
- package/dist/collection/components/gov-form/group/gov-form-group.css +6 -0
- package/dist/collection/components/gov-form/input/constants.js +1 -1
- package/dist/collection/components/gov-form/input/constants.js.map +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.css +106 -50
- package/dist/collection/components/gov-form/input/gov-form-input.js +9 -9
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
- package/dist/collection/components/gov-form/label/gov-form-label.css +6 -0
- package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
- package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
- package/dist/collection/components/gov-form/message/gov-form-message.css +6 -0
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +106 -50
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.css +6 -0
- package/dist/collection/components/gov-form/radio/gov-form-radio.css +6 -0
- package/dist/collection/components/gov-form/search/constants.js +3 -0
- package/dist/collection/components/gov-form/search/constants.js.map +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.css +12 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js +30 -0
- package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.css +106 -50
- package/dist/collection/components/gov-form/select/gov-form-select.js +17 -5
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.css +6 -0
- package/dist/collection/components/gov-grid/gov-grid-item.css +6 -0
- package/dist/collection/components/gov-grid/gov-grid.css +6 -0
- package/dist/collection/components/gov-icon/gov-icon.css +6 -0
- package/dist/collection/components/gov-icon/list.js +10 -0
- package/dist/collection/components/gov-icon/list.js.map +1 -1
- package/dist/collection/components/gov-layout/gov-layout-column.css +6 -0
- package/dist/collection/components/gov-layout/gov-layout.css +6 -0
- package/dist/collection/components/gov-loading/loading/gov-loading.css +6 -0
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.css +6 -0
- package/dist/collection/components/gov-message/gov-message.css +6 -0
- package/dist/collection/components/gov-modal/gov-modal.css +6 -0
- package/dist/collection/components/gov-nav/gov-nav-item.css +6 -0
- package/dist/collection/components/gov-nav/gov-nav.css +6 -0
- package/dist/collection/components/gov-pagination/gov-pagination.css +6 -0
- package/dist/collection/components/gov-promp/gov-prompt.css +6 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +6 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav.css +6 -0
- package/dist/collection/components/gov-spacer/gov-spacer.css +6 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +6 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar.css +6 -0
- package/dist/collection/components/gov-stepper/gov-stepper-item.css +6 -0
- package/dist/collection/components/gov-stepper/gov-stepper.css +6 -0
- package/dist/collection/components/gov-tabs/gov-tabs-item.css +6 -0
- package/dist/collection/components/gov-tabs/gov-tabs.css +6 -0
- package/dist/collection/components/gov-tile/container/gov-tiles.css +6 -0
- package/dist/collection/components/gov-tile/gov-tile.css +6 -0
- package/dist/collection/components/gov-toast/gov-toast.css +6 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +6 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip.css +6 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +6 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js +29 -36
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +1 -1
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.types.js +2 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.types.js.map +1 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard.css +6 -0
- package/dist/collection/helpers/Dom/win.js +2 -1
- package/dist/collection/helpers/Dom/win.js.map +1 -1
- package/dist/collection/pages/Alert.js +1 -1
- package/dist/collection/pages/Alert.js.map +1 -1
- package/dist/collection/pages/Button.js +65 -0
- package/dist/collection/pages/Button.js.map +1 -1
- package/dist/collection/pages/ControlGroup.js +206 -0
- package/dist/collection/pages/ControlGroup.js.map +1 -0
- package/dist/collection/pages/Forms.js +369 -206
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/collection/pages/Tooltip.js +24 -0
- package/dist/collection/pages/Tooltip.js.map +1 -1
- package/dist/components/constants3.js +1 -1
- package/dist/components/constants3.js.map +1 -1
- package/dist/components/form.js +8 -8
- package/dist/components/form.js.map +1 -1
- package/dist/components/gov-accordion-item.js +1 -0
- package/dist/components/gov-accordion-item.js.map +1 -1
- package/dist/components/gov-accordion.js +1 -0
- package/dist/components/gov-accordion.js.map +1 -1
- package/dist/components/gov-alert.js +1 -0
- package/dist/components/gov-alert.js.map +1 -1
- package/dist/components/gov-app.js +1123 -663
- package/dist/components/gov-app.js.map +1 -1
- package/dist/components/gov-attachments-item2.js +1 -0
- package/dist/components/gov-attachments-item2.js.map +1 -1
- package/dist/components/gov-attachments2.js +1 -0
- package/dist/components/gov-attachments2.js.map +1 -1
- package/dist/components/gov-backdrop2.js +1 -0
- package/dist/components/gov-backdrop2.js.map +1 -1
- package/dist/components/gov-badge2.js +3 -2
- package/dist/components/gov-badge2.js.map +1 -1
- package/dist/components/gov-breadcrumbs.js +1 -0
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button2.js +3 -2
- package/dist/components/gov-button2.js.map +1 -1
- package/dist/components/gov-card.js +1 -0
- package/dist/components/gov-card.js.map +1 -1
- package/dist/components/gov-container.js +1 -0
- package/dist/components/gov-container.js.map +1 -1
- package/dist/components/gov-control-group.d.ts +11 -0
- package/dist/components/gov-control-group.js +58 -0
- package/dist/components/gov-control-group.js.map +1 -0
- package/dist/components/gov-cookiebar.js +1 -0
- package/dist/components/gov-cookiebar.js.map +1 -1
- package/dist/components/gov-dropdown.d.ts +11 -0
- package/dist/components/gov-dropdown.js +144 -0
- package/dist/components/gov-dropdown.js.map +1 -0
- package/dist/components/gov-empty.js +1 -0
- package/dist/components/gov-empty.js.map +1 -1
- package/dist/components/gov-error-code.js +1 -0
- package/dist/components/gov-error-code.js.map +1 -1
- package/dist/components/gov-form-autocomplete2.js +1 -0
- package/dist/components/gov-form-autocomplete2.js.map +1 -1
- package/dist/components/gov-form-checkbox.js +1 -0
- package/dist/components/gov-form-checkbox.js.map +1 -1
- package/dist/components/gov-form-control.js +36 -7
- package/dist/components/gov-form-control.js.map +1 -1
- package/dist/components/gov-form-file.js +2 -1
- package/dist/components/gov-form-file.js.map +1 -1
- package/dist/components/gov-form-group.js +1 -0
- package/dist/components/gov-form-group.js.map +1 -1
- package/dist/components/gov-form-input2.js +6 -5
- package/dist/components/gov-form-input2.js.map +1 -1
- package/dist/components/gov-form-label.js +2 -1
- package/dist/components/gov-form-label.js.map +1 -1
- package/dist/components/gov-form-message2.js +1 -0
- package/dist/components/gov-form-message2.js.map +1 -1
- package/dist/components/gov-form-multi-select.js +2 -1
- package/dist/components/gov-form-multi-select.js.map +1 -1
- package/dist/components/gov-form-password-power.js +1 -0
- package/dist/components/gov-form-password-power.js.map +1 -1
- package/dist/components/gov-form-radio.js +1 -0
- package/dist/components/gov-form-radio.js.map +1 -1
- package/dist/components/gov-form-search.js +9 -2
- package/dist/components/gov-form-search.js.map +1 -1
- package/dist/components/gov-form-select2.js +18 -7
- package/dist/components/gov-form-select2.js.map +1 -1
- package/dist/components/gov-form-switch.js +1 -0
- package/dist/components/gov-form-switch.js.map +1 -1
- package/dist/components/gov-grid-item.js +1 -0
- package/dist/components/gov-grid-item.js.map +1 -1
- package/dist/components/gov-grid.js +1 -0
- package/dist/components/gov-grid.js.map +1 -1
- package/dist/components/gov-icon2.js +2 -1
- package/dist/components/gov-icon2.js.map +1 -1
- package/dist/components/gov-layout-column.js +1 -0
- package/dist/components/gov-layout-column.js.map +1 -1
- package/dist/components/gov-layout.js +1 -0
- package/dist/components/gov-layout.js.map +1 -1
- package/dist/components/gov-loading.js +1 -0
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +1 -0
- package/dist/components/gov-message.js.map +1 -1
- package/dist/components/gov-modal.js +1 -0
- package/dist/components/gov-modal.js.map +1 -1
- package/dist/components/gov-nav-item.js +1 -0
- package/dist/components/gov-nav-item.js.map +1 -1
- package/dist/components/gov-nav.js +1 -0
- package/dist/components/gov-nav.js.map +1 -1
- package/dist/components/gov-pagination.js +1 -0
- package/dist/components/gov-pagination.js.map +1 -1
- package/dist/components/gov-prompt.js +1 -0
- package/dist/components/gov-prompt.js.map +1 -1
- package/dist/components/gov-side-nav-item.js +1 -0
- package/dist/components/gov-side-nav-item.js.map +1 -1
- package/dist/components/gov-side-nav.js +1 -0
- package/dist/components/gov-side-nav.js.map +1 -1
- package/dist/components/gov-skeleton.js +1 -0
- package/dist/components/gov-skeleton.js.map +1 -1
- package/dist/components/gov-spacer.js +1 -0
- package/dist/components/gov-spacer.js.map +1 -1
- package/dist/components/gov-statsbar-item.js +1 -0
- package/dist/components/gov-statsbar-item.js.map +1 -1
- package/dist/components/gov-statsbar.js +1 -0
- package/dist/components/gov-statsbar.js.map +1 -1
- package/dist/components/gov-stepper-item.js +1 -0
- package/dist/components/gov-stepper-item.js.map +1 -1
- package/dist/components/gov-stepper.js +1 -0
- package/dist/components/gov-stepper.js.map +1 -1
- package/dist/components/gov-tabs-item.js +1 -0
- package/dist/components/gov-tabs-item.js.map +1 -1
- package/dist/components/gov-tabs.js +1 -0
- package/dist/components/gov-tabs.js.map +1 -1
- package/dist/components/gov-tile.js +1 -0
- package/dist/components/gov-tile.js.map +1 -1
- package/dist/components/gov-tiles.js +1 -0
- package/dist/components/gov-tiles.js.map +1 -1
- package/dist/components/gov-toast.js +1 -0
- package/dist/components/gov-toast.js.map +1 -1
- package/dist/components/gov-tooltip-content.js +1 -0
- package/dist/components/gov-tooltip-content.js.map +1 -1
- package/dist/components/gov-tooltip.js +1 -0
- package/dist/components/gov-tooltip.js.map +1 -1
- package/dist/components/gov-wizzard-item.js +15 -17
- package/dist/components/gov-wizzard-item.js.map +1 -1
- package/dist/components/gov-wizzard.js +1 -0
- package/dist/components/gov-wizzard.js.map +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/win.js +2 -1
- package/dist/components/win.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-00c4dc0d.entry.js +2 -0
- package/dist/core/p-00c4dc0d.entry.js.map +1 -0
- package/dist/core/{p-6044a1e7.entry.js → p-02fb27e8.entry.js} +2 -2
- package/dist/core/p-0574a26a.entry.js +2 -0
- package/dist/core/{p-a423b62a.entry.js.map → p-0574a26a.entry.js.map} +1 -1
- package/dist/core/{p-a9c57f72.entry.js → p-070f9684.entry.js} +2 -2
- package/dist/core/p-0f5e2b0a.js +2 -0
- package/dist/core/{p-d14130ac.entry.js → p-14a475a8.entry.js} +2 -2
- package/dist/core/p-1c4ad772.entry.js +2 -0
- package/dist/core/p-1c4ad772.entry.js.map +1 -0
- package/dist/core/{p-3e1a1bd4.entry.js → p-22222994.entry.js} +2 -2
- package/dist/core/{p-54b17f4d.entry.js → p-2e2be66b.entry.js} +2 -2
- package/dist/core/p-2e94d2d3.entry.js +2 -0
- package/dist/core/p-2e94d2d3.entry.js.map +1 -0
- package/dist/core/p-2f0f56fc.entry.js +2 -0
- package/dist/core/p-2f0f56fc.entry.js.map +1 -0
- package/dist/core/p-304f2d62.entry.js +2 -0
- package/dist/core/p-304f2d62.entry.js.map +1 -0
- package/dist/core/p-34152b51.js +2 -0
- package/dist/core/p-34152b51.js.map +1 -0
- package/dist/core/p-34ed07f6.js +2 -0
- package/dist/core/p-34ed07f6.js.map +1 -0
- package/dist/core/{p-005bfb42.entry.js → p-3d7ea15c.entry.js} +2 -2
- package/dist/core/{p-cd869237.js → p-3dbf7f49.js} +2 -2
- package/dist/core/p-3dbf7f49.js.map +1 -0
- package/dist/core/{p-5e865538.entry.js → p-4c6d7b65.entry.js} +2 -2
- package/dist/core/{p-d37f03e0.entry.js → p-529363af.entry.js} +2 -2
- package/dist/core/p-58047fab.entry.js +2 -0
- package/dist/core/p-58047fab.entry.js.map +1 -0
- package/dist/core/p-60ff8457.entry.js +2 -0
- package/dist/core/{p-acfd00a2.entry.js.map → p-60ff8457.entry.js.map} +1 -1
- package/dist/core/{p-fe1ee53b.entry.js → p-63ef7826.entry.js} +2 -2
- package/dist/core/p-63ef7826.entry.js.map +1 -0
- package/dist/core/{p-42db4603.entry.js → p-65aa3b0c.entry.js} +2 -2
- package/dist/core/{p-75a4c838.entry.js → p-683fc65e.entry.js} +2 -2
- package/dist/core/{p-75a4c838.entry.js.map → p-683fc65e.entry.js.map} +1 -1
- package/dist/core/{p-5a2a9cde.entry.js → p-70a7e7f6.entry.js} +2 -2
- package/dist/core/{p-1025c6ac.entry.js → p-78f8ffb0.entry.js} +2 -2
- package/dist/core/{p-3da88ddb.entry.js → p-7cde4bc8.entry.js} +2 -2
- package/dist/core/{p-d1275fa8.entry.js → p-90330543.entry.js} +2 -2
- package/dist/core/p-90330543.entry.js.map +1 -0
- package/dist/core/{p-d9b4bc20.entry.js → p-9fbee429.entry.js} +2 -2
- package/dist/core/p-9fbee429.entry.js.map +1 -0
- package/dist/core/p-bfc5e0f7.entry.js +2 -0
- package/dist/core/p-bfc5e0f7.entry.js.map +1 -0
- package/dist/core/p-cdd12494.entry.js +2 -0
- package/dist/core/p-cdd12494.entry.js.map +1 -0
- package/dist/core/{p-41f07da7.entry.js → p-ce59c2ee.entry.js} +2 -2
- package/dist/core/{p-207ba616.entry.js → p-d9e28400.entry.js} +2 -2
- package/dist/core/{p-f7275b59.entry.js → p-ec63daab.entry.js} +2 -2
- package/dist/core/{p-c289af04.entry.js → p-ed1e9d01.entry.js} +2 -2
- package/dist/core/p-f5d42069.entry.js +2 -0
- package/dist/core/p-f5d42069.entry.js.map +1 -0
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +1 -1
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{constants-45f6db4c.js → constants-5708696f.js} +2 -2
- package/dist/esm/constants-5708696f.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{form-613741a5.js → form-2d9f68d9.js} +2 -2
- package/dist/esm/form-2d9f68d9.js.map +1 -0
- package/dist/esm/gov-accordion.entry.js +2 -2
- package/dist/esm/gov-alert.entry.js +2 -2
- package/dist/esm/gov-alert.entry.js.map +1 -1
- package/dist/esm/gov-app.entry.js +1122 -663
- package/dist/esm/gov-app.entry.js.map +1 -1
- package/dist/esm/gov-attachments_3.entry.js +2 -2
- package/dist/esm/gov-backdrop.entry.js +2 -2
- package/dist/esm/gov-badge.entry.js +2 -2
- package/dist/esm/gov-badge.entry.js.map +1 -1
- package/dist/esm/gov-breadcrumbs.entry.js +2 -2
- package/dist/esm/gov-button.entry.js +4 -4
- package/dist/esm/gov-button.entry.js.map +1 -1
- package/dist/esm/gov-card.entry.js +2 -2
- package/dist/esm/gov-control-group.entry.js +38 -0
- package/dist/esm/gov-control-group.entry.js.map +1 -0
- package/dist/esm/gov-dropdown.entry.js +125 -0
- package/dist/esm/gov-dropdown.entry.js.map +1 -0
- package/dist/esm/gov-form-checkbox.entry.js +3 -3
- package/dist/esm/gov-form-control.entry.js +35 -7
- package/dist/esm/gov-form-control.entry.js.map +1 -1
- package/dist/esm/gov-form-file.entry.js +4 -4
- package/dist/esm/gov-form-file.entry.js.map +1 -1
- package/dist/esm/gov-form-input.entry.js +6 -6
- package/dist/esm/gov-form-input.entry.js.map +1 -1
- package/dist/esm/gov-form-label.entry.js +1 -1
- package/dist/esm/gov-form-label.entry.js.map +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +4 -4
- package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
- package/dist/esm/gov-form-radio.entry.js +3 -3
- package/dist/esm/gov-form-search.entry.js +5 -1
- package/dist/esm/gov-form-search.entry.js.map +1 -1
- package/dist/esm/gov-form-select.entry.js +20 -10
- package/dist/esm/gov-form-select.entry.js.map +1 -1
- package/dist/esm/gov-form-switch.entry.js +3 -3
- package/dist/esm/gov-icon.entry.js +2 -2
- package/dist/esm/gov-modal.entry.js +2 -2
- package/dist/esm/gov-nav.entry.js +2 -2
- package/dist/esm/gov-pagination.entry.js +2 -2
- package/dist/esm/gov-prompt.entry.js +2 -2
- package/dist/esm/gov-side-nav.entry.js +2 -2
- package/dist/esm/gov-skeleton.entry.js +2 -2
- package/dist/esm/gov-tabs.entry.js +2 -2
- package/dist/esm/gov-wizzard-item.entry.js +13 -15
- package/dist/esm/gov-wizzard-item.entry.js.map +1 -1
- package/dist/esm/gov-wizzard.entry.js +2 -2
- package/dist/esm/index-b010bfb4.js +8 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{wcag-d588d144.js → wcag-afdfdddb.js} +2 -2
- package/dist/esm/{wcag-d588d144.js.map → wcag-afdfdddb.js.map} +1 -1
- package/dist/esm/{win-9c8460bb.js → win-7a1a8ac8.js} +3 -2
- package/dist/esm/win-7a1a8ac8.js.map +1 -0
- package/dist/hydrate/index.js +1316 -650
- package/dist/types/components/gov-alert/gov-alert.d.ts +1 -1
- package/dist/types/components/gov-app/gov-app.d.ts +9 -8
- package/dist/types/components/gov-badge/gov-badge.d.ts +1 -1
- package/dist/types/components/gov-button/{constants.d.ts → default/constants.d.ts} +3 -3
- package/dist/types/components/gov-button/{gov-button.d.ts → default/gov-button.d.ts} +1 -1
- package/dist/types/components/gov-button/{gov-button.types.d.ts → default/gov-button.types.d.ts} +1 -1
- package/dist/types/components/gov-button/dropdown/constants.d.ts +10 -0
- package/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +30 -0
- package/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +4 -0
- package/dist/types/components/gov-control-group/constants.d.ts +7 -0
- package/dist/types/components/gov-control-group/gov-control-group.d.ts +16 -0
- package/dist/types/components/gov-form/control/gov-form-control.d.ts +2 -1
- package/dist/types/components/gov-form/input/constants.d.ts +1 -1
- package/dist/types/components/gov-form/input/gov-form-input.d.ts +1 -2
- package/dist/types/components/gov-form/search/constants.d.ts +4 -0
- package/dist/types/components/gov-form/search/gov-form-search.d.ts +5 -0
- package/dist/types/components/gov-form/select/gov-form-select.d.ts +2 -0
- package/dist/types/components/gov-wizzard/gov-wizzard-item.d.ts +7 -8
- package/dist/types/components/gov-wizzard/gov-wizzard-item.types.d.ts +4 -0
- package/dist/types/components.d.ts +90 -7
- package/dist/types/helpers/Dom/win.d.ts +1 -0
- package/dist/types/pages/ControlGroup.d.ts +3 -0
- package/package.json +1 -1
- package/dist/cjs/constants-245999e7.js.map +0 -1
- package/dist/cjs/form-62c6a8c6.js.map +0 -1
- package/dist/cjs/win-84bda0aa.js.map +0 -1
- package/dist/collection/components/gov-button/constants.js.map +0 -1
- package/dist/collection/components/gov-button/gov-button.js.map +0 -1
- package/dist/collection/components/gov-button/gov-button.types.js.map +0 -1
- package/dist/core/p-0a300d3e.entry.js +0 -2
- package/dist/core/p-0a300d3e.entry.js.map +0 -1
- package/dist/core/p-35aadeeb.entry.js +0 -2
- package/dist/core/p-35aadeeb.entry.js.map +0 -1
- package/dist/core/p-670b4f93.js +0 -2
- package/dist/core/p-67982c3a.entry.js +0 -2
- package/dist/core/p-67982c3a.entry.js.map +0 -1
- package/dist/core/p-7e524b49.js +0 -2
- package/dist/core/p-7e524b49.js.map +0 -1
- package/dist/core/p-a423b62a.entry.js +0 -2
- package/dist/core/p-a825183a.entry.js +0 -2
- package/dist/core/p-a825183a.entry.js.map +0 -1
- package/dist/core/p-acfd00a2.entry.js +0 -2
- package/dist/core/p-bbc765ca.entry.js +0 -2
- package/dist/core/p-bbc765ca.entry.js.map +0 -1
- package/dist/core/p-c20102ff.js +0 -2
- package/dist/core/p-c20102ff.js.map +0 -1
- package/dist/core/p-cd869237.js.map +0 -1
- package/dist/core/p-d1275fa8.entry.js.map +0 -1
- package/dist/core/p-d9b4bc20.entry.js.map +0 -1
- package/dist/core/p-e4bb6114.entry.js +0 -2
- package/dist/core/p-e4bb6114.entry.js.map +0 -1
- package/dist/core/p-e6904513.entry.js +0 -2
- package/dist/core/p-e6904513.entry.js.map +0 -1
- package/dist/core/p-fe1ee53b.entry.js.map +0 -1
- package/dist/esm/constants-45f6db4c.js.map +0 -1
- package/dist/esm/form-613741a5.js.map +0 -1
- package/dist/esm/win-9c8460bb.js.map +0 -1
- /package/dist/collection/components/gov-button/{gov-button.types.js → default/gov-button.types.js} +0 -0
- /package/dist/core/{p-6044a1e7.entry.js.map → p-02fb27e8.entry.js.map} +0 -0
- /package/dist/core/{p-a9c57f72.entry.js.map → p-070f9684.entry.js.map} +0 -0
- /package/dist/core/{p-670b4f93.js.map → p-0f5e2b0a.js.map} +0 -0
- /package/dist/core/{p-d14130ac.entry.js.map → p-14a475a8.entry.js.map} +0 -0
- /package/dist/core/{p-3e1a1bd4.entry.js.map → p-22222994.entry.js.map} +0 -0
- /package/dist/core/{p-54b17f4d.entry.js.map → p-2e2be66b.entry.js.map} +0 -0
- /package/dist/core/{p-005bfb42.entry.js.map → p-3d7ea15c.entry.js.map} +0 -0
- /package/dist/core/{p-5e865538.entry.js.map → p-4c6d7b65.entry.js.map} +0 -0
- /package/dist/core/{p-d37f03e0.entry.js.map → p-529363af.entry.js.map} +0 -0
- /package/dist/core/{p-42db4603.entry.js.map → p-65aa3b0c.entry.js.map} +0 -0
- /package/dist/core/{p-5a2a9cde.entry.js.map → p-70a7e7f6.entry.js.map} +0 -0
- /package/dist/core/{p-1025c6ac.entry.js.map → p-78f8ffb0.entry.js.map} +0 -0
- /package/dist/core/{p-3da88ddb.entry.js.map → p-7cde4bc8.entry.js.map} +0 -0
- /package/dist/core/{p-41f07da7.entry.js.map → p-ce59c2ee.entry.js.map} +0 -0
- /package/dist/core/{p-207ba616.entry.js.map → p-d9e28400.entry.js.map} +0 -0
- /package/dist/core/{p-f7275b59.entry.js.map → p-ec63daab.entry.js.map} +0 -0
- /package/dist/core/{p-c289af04.entry.js.map → p-ed1e9d01.entry.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { VariantType } from "./constants";
|
|
3
3
|
import { AlertEvent } from "./gov-alert.types";
|
|
4
|
-
import { ButtonEvent } from "../gov-button/gov-button.types";
|
|
4
|
+
import { ButtonEvent } from "../gov-button/default/gov-button.types";
|
|
5
5
|
export declare class GovAlert {
|
|
6
6
|
private h;
|
|
7
7
|
constructor();
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import '../../pages/Home.ts';
|
|
2
1
|
import '../../pages/Accordion.ts';
|
|
3
2
|
import '../../pages/Alert.ts';
|
|
4
3
|
import '../../pages/Badge.ts';
|
|
5
|
-
import '../../pages/Button.ts';
|
|
6
4
|
import '../../pages/Breadcrumbs.ts';
|
|
5
|
+
import '../../pages/Button.ts';
|
|
7
6
|
import '../../pages/Card.ts';
|
|
8
|
-
import '../../pages/Cookiebar.ts';
|
|
9
7
|
import '../../pages/Container.ts';
|
|
8
|
+
import '../../pages/ControlGroup.ts';
|
|
9
|
+
import '../../pages/Cookiebar.ts';
|
|
10
10
|
import '../../pages/Empty.ts';
|
|
11
11
|
import '../../pages/Error.ts';
|
|
12
|
-
import '../../pages/Forms.ts';
|
|
13
|
-
import '../../pages/FormsRestructure.ts';
|
|
14
12
|
import '../../pages/FormLabel.ts';
|
|
15
13
|
import '../../pages/FormMessage.ts';
|
|
14
|
+
import '../../pages/Forms.ts';
|
|
15
|
+
import '../../pages/FormsRestructure.ts';
|
|
16
16
|
import '../../pages/Grid.ts';
|
|
17
|
+
import '../../pages/Home.ts';
|
|
17
18
|
import '../../pages/Layout.ts';
|
|
19
|
+
import '../../pages/Loading.ts';
|
|
18
20
|
import '../../pages/Message.ts';
|
|
19
21
|
import '../../pages/Modal.ts';
|
|
20
|
-
import '../../pages/Loading.ts';
|
|
21
22
|
import '../../pages/Nav.ts';
|
|
22
23
|
import '../../pages/Pagination.ts';
|
|
23
24
|
import '../../pages/Prompt.ts';
|
|
@@ -27,10 +28,10 @@ import '../../pages/Statsbar.ts';
|
|
|
27
28
|
import '../../pages/Stepper.ts';
|
|
28
29
|
import '../../pages/Tabs.ts';
|
|
29
30
|
import '../../pages/Tiles.js';
|
|
30
|
-
import '../../pages/Tooltip.ts';
|
|
31
|
-
import '../../pages/Typography.ts';
|
|
32
31
|
import '../../pages/ToastMessage.ts';
|
|
33
32
|
import '../../pages/ToastMessageCountdown.ts';
|
|
33
|
+
import '../../pages/Tooltip.ts';
|
|
34
|
+
import '../../pages/Typography.ts';
|
|
34
35
|
import '../../pages/Wizzard.ts';
|
|
35
36
|
export declare class GovApp {
|
|
36
37
|
componentWillLoad(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { NativeTypesType } from "./constants";
|
|
3
|
-
import { ButtonSizesType, ButtonVariantType, TypesType } from "../gov-button/constants";
|
|
3
|
+
import { ButtonSizesType, ButtonVariantType, TypesType } from "../gov-button/default/constants";
|
|
4
4
|
export declare class GovBadge {
|
|
5
5
|
private triggerRef?;
|
|
6
6
|
private h;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Sizes } from '
|
|
2
|
-
import { Variants } from '
|
|
3
|
-
import { ValueOf } from '
|
|
1
|
+
import { Sizes } from '../../../core/constants/sizes';
|
|
2
|
+
import { Variants } from '../../../core/constants/variants';
|
|
3
|
+
import { ValueOf } from '../../../types/interfaces';
|
|
4
4
|
export declare const ButtonSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL">;
|
|
5
5
|
export declare type ButtonSizesType = `${ValueOf<typeof ButtonSizes>}`;
|
|
6
6
|
export declare const ButtonVariants: Pick<typeof Variants, "PRIMARY" | "SECONDARY" | "SUCCESS" | "ERROR" | "WARNING">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from "
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
2
|
import { ButtonSizesType, NativeTypesType, TypesType, ButtonVariantType, ButtonTargetType } from "./constants";
|
|
3
3
|
import { ButtonEvent } from "./gov-button.types";
|
|
4
4
|
export declare class GovButton {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ValueOf } from "../../../types/interfaces";
|
|
2
|
+
export declare enum Position {
|
|
3
|
+
LEFT = "left",
|
|
4
|
+
RIGHT = "right"
|
|
5
|
+
}
|
|
6
|
+
export declare type PositionType = `${ValueOf<typeof Position>}`;
|
|
7
|
+
export declare const DropdownClass: {
|
|
8
|
+
root: string;
|
|
9
|
+
list: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { PositionType } from "./constants";
|
|
3
|
+
import { DropdownEvent } from "./gov-dropdown.types";
|
|
4
|
+
export declare class GovDropdown {
|
|
5
|
+
private h;
|
|
6
|
+
private readonly listId;
|
|
7
|
+
private readonly controlId;
|
|
8
|
+
constructor();
|
|
9
|
+
host: HTMLGovButtonElement;
|
|
10
|
+
/**
|
|
11
|
+
* Dropdown open state
|
|
12
|
+
*/
|
|
13
|
+
open: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Menu display position
|
|
16
|
+
*/
|
|
17
|
+
readonly position: PositionType;
|
|
18
|
+
/**
|
|
19
|
+
* Emitted when the dropdown change state
|
|
20
|
+
*/
|
|
21
|
+
govChange: EventEmitter<DropdownEvent>;
|
|
22
|
+
componentWillLoad(): void;
|
|
23
|
+
get trigger(): HTMLGovButtonElement;
|
|
24
|
+
get list(): HTMLUListElement;
|
|
25
|
+
render(): any;
|
|
26
|
+
/**
|
|
27
|
+
* Returns a clickable element instance
|
|
28
|
+
*/
|
|
29
|
+
getState(): Promise<boolean>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Variants } from '../../core/constants/variants';
|
|
2
|
+
import { ValueOf } from '../../types/interfaces';
|
|
3
|
+
export declare const ControlGroups: Pick<typeof Variants, "PRIMARY" | "SECONDARY">;
|
|
4
|
+
export declare type ControlGroupType = `${ValueOf<typeof ControlGroups>}`;
|
|
5
|
+
export declare const ControlGroupClass: {
|
|
6
|
+
root: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ControlGroupType } from "./constants";
|
|
2
|
+
export declare class GovControlGroup {
|
|
3
|
+
private readonly h;
|
|
4
|
+
constructor();
|
|
5
|
+
host: HTMLGovControlGroupElement;
|
|
6
|
+
/**
|
|
7
|
+
* Style variation of the content message.
|
|
8
|
+
*/
|
|
9
|
+
readonly variant: ControlGroupType;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the display of the border between elements
|
|
12
|
+
*/
|
|
13
|
+
readonly noBorder: boolean;
|
|
14
|
+
validateVariant(newValue: string): void;
|
|
15
|
+
render(): any;
|
|
16
|
+
}
|
|
@@ -37,10 +37,11 @@ export declare class GovFormControl {
|
|
|
37
37
|
* Form element size.
|
|
38
38
|
*/
|
|
39
39
|
readonly size?: FormControlSizesType;
|
|
40
|
-
watchInvalid(): void;
|
|
41
40
|
componentDidRender(): void;
|
|
42
41
|
disconnectedCallback(): void;
|
|
43
42
|
private passChildAttrs;
|
|
43
|
+
private invalidChildAttrs;
|
|
44
|
+
private disabledChildAttrs;
|
|
44
45
|
private formElementDescriptionControl;
|
|
45
46
|
private syncControlMessages;
|
|
46
47
|
render(): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Sizes } from '../../../core/constants/sizes';
|
|
2
2
|
import { Variants } from '../../../core/constants/variants';
|
|
3
3
|
import { ValueOf } from '../../../types/interfaces';
|
|
4
|
-
export declare const FormInputSizes: Pick<typeof Sizes, "_M" | "_L" | "_XL">;
|
|
4
|
+
export declare const FormInputSizes: Pick<typeof Sizes, "_S" | "_M" | "_L" | "_XL">;
|
|
5
5
|
export declare type FormInputSizesType = `${ValueOf<typeof FormInputSizes>}`;
|
|
6
6
|
export declare const FormInputVariants: Pick<typeof Variants, "PRIMARY" | "SECONDARY">;
|
|
7
7
|
export declare type FormInputVariantType = `${ValueOf<typeof FormInputVariants>}`;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import { FormInputSizesType, InputType, Type } from './constants';
|
|
3
|
-
import { FormInputVariantType } from './constants';
|
|
2
|
+
import { FormInputSizesType, FormInputVariantType, InputType, Type } from './constants';
|
|
4
3
|
import { FormInputEvent } from './gov-form-input.types';
|
|
5
4
|
export declare class GovFormInput {
|
|
6
5
|
private f;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { Variants } from '../../../core/constants/variants';
|
|
2
|
+
import { ValueOf } from '../../../types/interfaces';
|
|
3
|
+
export declare const FormSearchs: Pick<typeof Variants, "PRIMARY" | "SECONDARY">;
|
|
4
|
+
export declare type FormSearchVariantType = `${ValueOf<typeof FormSearchs>}`;
|
|
1
5
|
export declare const FormSearchClass: {
|
|
2
6
|
root: string;
|
|
3
7
|
input: string;
|
|
@@ -78,9 +78,11 @@ export declare class GovFormSelect {
|
|
|
78
78
|
validateVariant(newValue: string): void;
|
|
79
79
|
validateSize(newValue: string): void;
|
|
80
80
|
watchDisabled(): void;
|
|
81
|
+
watchValue(): void;
|
|
81
82
|
private passControlAttrs;
|
|
82
83
|
componentWillLoad(): void;
|
|
83
84
|
componentDidRender(): Promise<void>;
|
|
85
|
+
private markSelectedValue;
|
|
84
86
|
render(): any;
|
|
85
87
|
private onFocusHandler;
|
|
86
88
|
private onBlurHandler;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EventEmitter } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { WizardSizesType, WizardVariantsType } from "./constants";
|
|
3
|
+
import { WizzardItemEvent } from "./gov-wizzard-item.types";
|
|
4
4
|
export declare class GovWizzardItem {
|
|
5
5
|
private h;
|
|
6
6
|
private readonly triggerId;
|
|
@@ -20,7 +20,7 @@ export declare class GovWizzardItem {
|
|
|
20
20
|
*/
|
|
21
21
|
readonly identifier: string;
|
|
22
22
|
/**
|
|
23
|
-
* Defines
|
|
23
|
+
* Defines weather the wizzard item can be collapsible
|
|
24
24
|
*/
|
|
25
25
|
readonly collapsible: boolean;
|
|
26
26
|
/**
|
|
@@ -38,16 +38,15 @@ export declare class GovWizzardItem {
|
|
|
38
38
|
/**
|
|
39
39
|
* Defines whether the accordion is open or closed by default
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
isExpanded: boolean;
|
|
42
42
|
/**
|
|
43
|
-
* Used to change the
|
|
43
|
+
* Used to change the HTML tag in the accordion trigger for correct semantic structure
|
|
44
44
|
*/
|
|
45
45
|
readonly labelTag: string;
|
|
46
46
|
/**
|
|
47
47
|
* Called when the accordion state changes
|
|
48
48
|
*/
|
|
49
|
-
govChange: EventEmitter<
|
|
50
|
-
isExpandedState: boolean;
|
|
49
|
+
govChange: EventEmitter<WizzardItemEvent>;
|
|
51
50
|
private validateLabel;
|
|
52
51
|
private validateTriggerTag;
|
|
53
52
|
private validateVariant;
|
|
@@ -9,11 +9,14 @@ import { AccordionSizeType, AccordionVariantType } from "./components/gov-accord
|
|
|
9
9
|
import { AccordionEvent, AccordionItemEvent } from "./components/gov-accordion/gov-accordion.types";
|
|
10
10
|
import { VariantType } from "./components/gov-alert/constants";
|
|
11
11
|
import { AlertEvent } from "./components/gov-alert/gov-alert.types";
|
|
12
|
-
import { ButtonSizesType, ButtonTargetType, ButtonVariantType, NativeTypesType as NativeTypesType1, TypesType } from "./components/gov-button/constants";
|
|
12
|
+
import { ButtonSizesType, ButtonTargetType, ButtonVariantType, NativeTypesType as NativeTypesType1, TypesType } from "./components/gov-button/default/constants";
|
|
13
13
|
import { NativeTypesType } from "./components/gov-badge/constants";
|
|
14
14
|
import { GovBreadcrumbsChangeEvent } from "./components/gov-breadcrumbs/gov-breadcrumbs.d";
|
|
15
|
-
import { ButtonEvent } from "./components/gov-button/gov-button.types";
|
|
15
|
+
import { ButtonEvent } from "./components/gov-button/default/gov-button.types";
|
|
16
16
|
import { GovCardChangeEvent } from "./components/gov-card/interfaces";
|
|
17
|
+
import { ControlGroupType } from "./components/gov-control-group/constants";
|
|
18
|
+
import { PositionType } from "./components/gov-button/dropdown/constants";
|
|
19
|
+
import { DropdownEvent } from "./components/gov-button/dropdown/gov-dropdown.types";
|
|
17
20
|
import { SizesType, VariantType as VariantType1 } from "./components/gov-form/autocomplete/constants";
|
|
18
21
|
import { FormAutocompleteEvent, GovFormAutocompleteItem } from "./components/gov-form/autocomplete/gov-form-autocomplete.types";
|
|
19
22
|
import { FormCheckboxSizesType } from "./components/gov-form/checkbox/constants";
|
|
@@ -29,6 +32,7 @@ import { FormMultiselectSizesType, FormMultiselectVariantType } from "./componen
|
|
|
29
32
|
import { FormMultiselectEvent } from "./components/gov-form/multiselect/gov-form-multi-select.types";
|
|
30
33
|
import { FormRadioSizesType } from "./components/gov-form/radio/constants";
|
|
31
34
|
import { FormRadioEvent } from "./components/gov-form/radio/gov-form-radio.types";
|
|
35
|
+
import { FormSearchVariantType } from "./components/gov-form/search/constants";
|
|
32
36
|
import { FormSelectSizesType, FormSelectVariantType } from "./components/gov-form/select/constants";
|
|
33
37
|
import { FormSelectEvent } from "./components/gov-form/select/gov-form-select.types";
|
|
34
38
|
import { FormSwitchSizesType } from "./components/gov-form/switch/constants";
|
|
@@ -50,6 +54,7 @@ import { ToastTypesType, ToastVariantType } from "./components/gov-toast/constan
|
|
|
50
54
|
import { TooltipPositionType, TooltipSizeType, TooltipVariantType } from "./components/gov-tooltip/constants";
|
|
51
55
|
import { WizardSizesType, WizardVariantsType } from "./components/gov-wizzard/constants";
|
|
52
56
|
import { GovWizzardItemChangeEvent } from "./components/gov-wizzard/gov-wizzard-item.d";
|
|
57
|
+
import { WizzardItemEvent } from "./components/gov-wizzard/gov-wizzard-item.types";
|
|
53
58
|
export namespace Components {
|
|
54
59
|
interface GovAccordion {
|
|
55
60
|
/**
|
|
@@ -461,8 +466,32 @@ export namespace Components {
|
|
|
461
466
|
*/
|
|
462
467
|
"slottedChildren": () => Promise<Node[]>;
|
|
463
468
|
}
|
|
469
|
+
interface GovControlGroup {
|
|
470
|
+
/**
|
|
471
|
+
* Specifies the display of the border between elements
|
|
472
|
+
*/
|
|
473
|
+
"noBorder": boolean;
|
|
474
|
+
/**
|
|
475
|
+
* Style variation of the content message.
|
|
476
|
+
*/
|
|
477
|
+
"variant": ControlGroupType;
|
|
478
|
+
}
|
|
464
479
|
interface GovCookiebar {
|
|
465
480
|
}
|
|
481
|
+
interface GovDropdown {
|
|
482
|
+
/**
|
|
483
|
+
* Returns a clickable element instance
|
|
484
|
+
*/
|
|
485
|
+
"getState": () => Promise<boolean>;
|
|
486
|
+
/**
|
|
487
|
+
* Dropdown open state
|
|
488
|
+
*/
|
|
489
|
+
"open": boolean;
|
|
490
|
+
/**
|
|
491
|
+
* Menu display position
|
|
492
|
+
*/
|
|
493
|
+
"position": PositionType;
|
|
494
|
+
}
|
|
466
495
|
interface GovEmpty {
|
|
467
496
|
}
|
|
468
497
|
interface GovErrorCode {
|
|
@@ -1026,6 +1055,10 @@ export namespace Components {
|
|
|
1026
1055
|
"wcagLabelledBy": string;
|
|
1027
1056
|
}
|
|
1028
1057
|
interface GovFormSearch {
|
|
1058
|
+
/**
|
|
1059
|
+
* Style variation of the form input.
|
|
1060
|
+
*/
|
|
1061
|
+
"variant": FormSearchVariantType;
|
|
1029
1062
|
}
|
|
1030
1063
|
interface GovFormSelect {
|
|
1031
1064
|
/**
|
|
@@ -1763,7 +1796,7 @@ export namespace Components {
|
|
|
1763
1796
|
*/
|
|
1764
1797
|
"close": () => Promise<void>;
|
|
1765
1798
|
/**
|
|
1766
|
-
* Defines
|
|
1799
|
+
* Defines weather the wizzard item can be collapsible
|
|
1767
1800
|
*/
|
|
1768
1801
|
"collapsible": boolean;
|
|
1769
1802
|
/**
|
|
@@ -1787,7 +1820,7 @@ export namespace Components {
|
|
|
1787
1820
|
*/
|
|
1788
1821
|
"label": string;
|
|
1789
1822
|
/**
|
|
1790
|
-
* Used to change the
|
|
1823
|
+
* Used to change the HTML tag in the accordion trigger for correct semantic structure
|
|
1791
1824
|
*/
|
|
1792
1825
|
"labelTag": string;
|
|
1793
1826
|
/**
|
|
@@ -1844,6 +1877,10 @@ export interface GovCardCustomEvent<T> extends CustomEvent<T> {
|
|
|
1844
1877
|
detail: T;
|
|
1845
1878
|
target: HTMLGovCardElement;
|
|
1846
1879
|
}
|
|
1880
|
+
export interface GovDropdownCustomEvent<T> extends CustomEvent<T> {
|
|
1881
|
+
detail: T;
|
|
1882
|
+
target: HTMLGovDropdownElement;
|
|
1883
|
+
}
|
|
1847
1884
|
export interface GovFormAutocompleteCustomEvent<T> extends CustomEvent<T> {
|
|
1848
1885
|
detail: T;
|
|
1849
1886
|
target: HTMLGovFormAutocompleteElement;
|
|
@@ -1997,12 +2034,24 @@ declare global {
|
|
|
1997
2034
|
prototype: HTMLGovContainerElement;
|
|
1998
2035
|
new (): HTMLGovContainerElement;
|
|
1999
2036
|
};
|
|
2037
|
+
interface HTMLGovControlGroupElement extends Components.GovControlGroup, HTMLStencilElement {
|
|
2038
|
+
}
|
|
2039
|
+
var HTMLGovControlGroupElement: {
|
|
2040
|
+
prototype: HTMLGovControlGroupElement;
|
|
2041
|
+
new (): HTMLGovControlGroupElement;
|
|
2042
|
+
};
|
|
2000
2043
|
interface HTMLGovCookiebarElement extends Components.GovCookiebar, HTMLStencilElement {
|
|
2001
2044
|
}
|
|
2002
2045
|
var HTMLGovCookiebarElement: {
|
|
2003
2046
|
prototype: HTMLGovCookiebarElement;
|
|
2004
2047
|
new (): HTMLGovCookiebarElement;
|
|
2005
2048
|
};
|
|
2049
|
+
interface HTMLGovDropdownElement extends Components.GovDropdown, HTMLStencilElement {
|
|
2050
|
+
}
|
|
2051
|
+
var HTMLGovDropdownElement: {
|
|
2052
|
+
prototype: HTMLGovDropdownElement;
|
|
2053
|
+
new (): HTMLGovDropdownElement;
|
|
2054
|
+
};
|
|
2006
2055
|
interface HTMLGovEmptyElement extends Components.GovEmpty, HTMLStencilElement {
|
|
2007
2056
|
}
|
|
2008
2057
|
var HTMLGovEmptyElement: {
|
|
@@ -2286,7 +2335,9 @@ declare global {
|
|
|
2286
2335
|
"gov-button": HTMLGovButtonElement;
|
|
2287
2336
|
"gov-card": HTMLGovCardElement;
|
|
2288
2337
|
"gov-container": HTMLGovContainerElement;
|
|
2338
|
+
"gov-control-group": HTMLGovControlGroupElement;
|
|
2289
2339
|
"gov-cookiebar": HTMLGovCookiebarElement;
|
|
2340
|
+
"gov-dropdown": HTMLGovDropdownElement;
|
|
2290
2341
|
"gov-empty": HTMLGovEmptyElement;
|
|
2291
2342
|
"gov-error-code": HTMLGovErrorCodeElement;
|
|
2292
2343
|
"gov-form-autocomplete": HTMLGovFormAutocompleteElement;
|
|
@@ -2716,8 +2767,32 @@ declare namespace LocalJSX {
|
|
|
2716
2767
|
}
|
|
2717
2768
|
interface GovContainer {
|
|
2718
2769
|
}
|
|
2770
|
+
interface GovControlGroup {
|
|
2771
|
+
/**
|
|
2772
|
+
* Specifies the display of the border between elements
|
|
2773
|
+
*/
|
|
2774
|
+
"noBorder"?: boolean;
|
|
2775
|
+
/**
|
|
2776
|
+
* Style variation of the content message.
|
|
2777
|
+
*/
|
|
2778
|
+
"variant"?: ControlGroupType;
|
|
2779
|
+
}
|
|
2719
2780
|
interface GovCookiebar {
|
|
2720
2781
|
}
|
|
2782
|
+
interface GovDropdown {
|
|
2783
|
+
/**
|
|
2784
|
+
* Emitted when the dropdown change state
|
|
2785
|
+
*/
|
|
2786
|
+
"onGov-change"?: (event: GovDropdownCustomEvent<DropdownEvent>) => void;
|
|
2787
|
+
/**
|
|
2788
|
+
* Dropdown open state
|
|
2789
|
+
*/
|
|
2790
|
+
"open"?: boolean;
|
|
2791
|
+
/**
|
|
2792
|
+
* Menu display position
|
|
2793
|
+
*/
|
|
2794
|
+
"position"?: PositionType;
|
|
2795
|
+
}
|
|
2721
2796
|
interface GovEmpty {
|
|
2722
2797
|
}
|
|
2723
2798
|
interface GovErrorCode {
|
|
@@ -3284,6 +3359,10 @@ declare namespace LocalJSX {
|
|
|
3284
3359
|
"wcagLabelledBy"?: string;
|
|
3285
3360
|
}
|
|
3286
3361
|
interface GovFormSearch {
|
|
3362
|
+
/**
|
|
3363
|
+
* Style variation of the form input.
|
|
3364
|
+
*/
|
|
3365
|
+
"variant"?: FormSearchVariantType;
|
|
3287
3366
|
}
|
|
3288
3367
|
interface GovFormSelect {
|
|
3289
3368
|
/**
|
|
@@ -3949,7 +4028,7 @@ declare namespace LocalJSX {
|
|
|
3949
4028
|
*/
|
|
3950
4029
|
"annotation"?: string;
|
|
3951
4030
|
/**
|
|
3952
|
-
* Defines
|
|
4031
|
+
* Defines weather the wizzard item can be collapsible
|
|
3953
4032
|
*/
|
|
3954
4033
|
"collapsible"?: boolean;
|
|
3955
4034
|
/**
|
|
@@ -3969,13 +4048,13 @@ declare namespace LocalJSX {
|
|
|
3969
4048
|
*/
|
|
3970
4049
|
"label"?: string;
|
|
3971
4050
|
/**
|
|
3972
|
-
* Used to change the
|
|
4051
|
+
* Used to change the HTML tag in the accordion trigger for correct semantic structure
|
|
3973
4052
|
*/
|
|
3974
4053
|
"labelTag"?: string;
|
|
3975
4054
|
/**
|
|
3976
4055
|
* Called when the accordion state changes
|
|
3977
4056
|
*/
|
|
3978
|
-
"onGov-change"?: (event: GovWizzardItemCustomEvent<
|
|
4057
|
+
"onGov-change"?: (event: GovWizzardItemCustomEvent<WizzardItemEvent>) => void;
|
|
3979
4058
|
/**
|
|
3980
4059
|
* Size of wizzard
|
|
3981
4060
|
*/
|
|
@@ -3998,7 +4077,9 @@ declare namespace LocalJSX {
|
|
|
3998
4077
|
"gov-button": GovButton;
|
|
3999
4078
|
"gov-card": GovCard;
|
|
4000
4079
|
"gov-container": GovContainer;
|
|
4080
|
+
"gov-control-group": GovControlGroup;
|
|
4001
4081
|
"gov-cookiebar": GovCookiebar;
|
|
4082
|
+
"gov-dropdown": GovDropdown;
|
|
4002
4083
|
"gov-empty": GovEmpty;
|
|
4003
4084
|
"gov-error-code": GovErrorCode;
|
|
4004
4085
|
"gov-form-autocomplete": GovFormAutocomplete;
|
|
@@ -4062,7 +4143,9 @@ declare module "@stencil/core" {
|
|
|
4062
4143
|
"gov-button": LocalJSX.GovButton & JSXBase.HTMLAttributes<HTMLGovButtonElement>;
|
|
4063
4144
|
"gov-card": LocalJSX.GovCard & JSXBase.HTMLAttributes<HTMLGovCardElement>;
|
|
4064
4145
|
"gov-container": LocalJSX.GovContainer & JSXBase.HTMLAttributes<HTMLGovContainerElement>;
|
|
4146
|
+
"gov-control-group": LocalJSX.GovControlGroup & JSXBase.HTMLAttributes<HTMLGovControlGroupElement>;
|
|
4065
4147
|
"gov-cookiebar": LocalJSX.GovCookiebar & JSXBase.HTMLAttributes<HTMLGovCookiebarElement>;
|
|
4148
|
+
"gov-dropdown": LocalJSX.GovDropdown & JSXBase.HTMLAttributes<HTMLGovDropdownElement>;
|
|
4066
4149
|
"gov-empty": LocalJSX.GovEmpty & JSXBase.HTMLAttributes<HTMLGovEmptyElement>;
|
|
4067
4150
|
"gov-error-code": LocalJSX.GovErrorCode & JSXBase.HTMLAttributes<HTMLGovErrorCodeElement>;
|
|
4068
4151
|
"gov-form-autocomplete": LocalJSX.GovFormAutocomplete & JSXBase.HTMLAttributes<HTMLGovFormAutocompleteElement>;
|
|
@@ -3,6 +3,7 @@ interface IConfig {
|
|
|
3
3
|
iconsPath: string;
|
|
4
4
|
documentNode: Document;
|
|
5
5
|
}
|
|
6
|
+
export declare const isWindow: boolean;
|
|
6
7
|
export declare const canValidateWcagOnRender: () => IConfig['canValidateWcagOnRender'];
|
|
7
8
|
export declare const iconsPath: () => IConfig['iconsPath'];
|
|
8
9
|
export declare const documentNode: () => IConfig['documentNode'];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name" : "@gov-design-system-ce/components",
|
|
3
3
|
"description" : "This package includes Gov Design System Web Components and related utilities.",
|
|
4
4
|
"author": "Zdeněk Vítek",
|
|
5
|
-
"version" : "0.0.
|
|
5
|
+
"version" : "0.0.38",
|
|
6
6
|
"license" : "EUPL v1.2 Licensed",
|
|
7
7
|
"main" : "./dist/index.cjs.js",
|
|
8
8
|
"module" : "./dist/index.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"constants-245999e7.js","mappings":";;;;;;MAKa,WAAW,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAC;MAG3D,cAAc,GAAGD,UAAI,CAACE,iBAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,EAAC;AAGzFC;AAAZ,WAAY,IAAI;EACf,uBAAe,CAAA;EACf,6BAAqB,CAAA;EACrB,qBAAa,CAAA;EACb,qBAAa,CAAA;AACd,CAAC,EALWA,YAAI,KAAJA,YAAI,QAKf;AAIWC;AAAZ,WAAY,UAAU;EACrB,+BAAiB,CAAA;EACjB,+BAAiB,CAAA;EACjB,6BAAe,CAAA;AAChB,CAAC,EAJWA,kBAAU,KAAVA,kBAAU,QAIrB;AAID,IAAY,YAIX;AAJD,WAAY,YAAY;EACvB,gCAAgB,CAAA;EAChB,8BAAc,CAAA;EACd,4BAAY,CAAA;AACb,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB;MAGY,WAAW,GAAG;EAC1B,IAAI,EAAE,YAAY;EAClB,YAAY,EAAE,oBAAoB;;;;;;;","names":["pick","Sizes","Variants","Type","NativeType"],"sources":["../../../packages/core/src/components/gov-button/constants.ts"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\nimport { Variants } from '../../core/constants/variants'\nimport { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils'\n\nexport const ButtonSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type ButtonSizesType = `${ValueOf<typeof ButtonSizes>}`\n\nexport const ButtonVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'SUCCESS', 'ERROR', 'WARNING'])\nexport type ButtonVariantType = `${ValueOf<typeof ButtonVariants>}`\n\nexport enum Type {\n\tSOLID = 'solid',\n\tOUTLINED = 'outlined',\n\tBASE = 'base',\n\tLINK = 'link',\n}\n\nexport type TypesType = `${ValueOf<typeof Type>}`\n\nexport enum NativeType {\n\tSUBMIT = 'submit',\n\tBUTTON = 'button',\n\tRESET = 'reset',\n}\n\nexport type NativeTypesType = `${ValueOf<typeof NativeType>}`\n\nexport enum ButtonTarget {\n\tBLANK = '_blank',\n\tSELF = '_self',\n\tNEW = '_new',\n}\nexport type ButtonTargetType = `${ValueOf<typeof ButtonTarget>}`\n\nexport const ButtonClass = {\n\troot: 'gov-button',\n\trootWithIcon: 'gov-button--w-icon',\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"form-62c6a8c6.js","mappings":";;;;;;;;;MAIa,iBAAiB,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAC;MAG1D,iBAAiB,GAAG;EAChC,IAAI,EAAE,mBAAmB;EACzB,KAAK,EAAE,0BAA0B;;;ACLFD,UAAI,CA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CAAC,CAAA;OACvE;MACD,OAAO,EAAE,CAAA;KACT;GACD,CAAA;AACF;;;;;;;;;;;;;;;;;;;;","names":["pick","Sizes","Variants","FormLabelClass","FormAutocompleteClass","FormMessageClass"],"sources":["../../../packages/core/src/components/gov-form/checkbox/constants.ts","../../../packages/core/src/components/gov-form/control/constants.ts","../../../packages/core/src/components/gov-form/input/constants.ts","../../../packages/core/src/components/gov-form/select/constants.ts","../../../packages/core/src/components/gov-form/multiselect/constants.ts","../../../packages/core/src/components/gov-form/switch/constants.ts","../../../packages/core/src/components/gov-form/radio/constants.ts","../../../packages/core/src/helpers/Dom/form.ts"],"sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormCheckboxSizes = pick(Sizes, ['_XS', '_S', '_M', '_L'])\nexport type FormCheckboxSizesType = `${ValueOf<typeof FormCheckboxSizes>}`\n\nexport const FormCheckboxClass = {\n\troot: 'gov-form-checkbox',\n\tcheck: 'gov-form-checkbox__check',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormControlSizes = pick(Sizes, ['_M', '_L', '_XL'])\nexport type FormControlSizesType = `${ValueOf<typeof FormControlSizes>}`\n\nexport const FormControlClass = {\n\troot: 'gov-form-control',\n\tholder: 'gov-form-control__holder',\n\tbottom: 'gov-form-control__bottom',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { Variants } from '../../../core/constants/variants'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormInputSizes = pick(Sizes, ['_M', '_L', '_XL'])\nexport type FormInputSizesType = `${ValueOf<typeof FormInputSizes>}`\n\nexport const FormInputVariants = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type FormInputVariantType = `${ValueOf<typeof FormInputVariants>}`\n\nexport enum InputTypes {\n\tCOLOR = 'color',\n\tDATE = 'date',\n\tDATETIME_LOCAL = 'datetime-local',\n\tEMAIL = 'email',\n\tMONTH = 'month',\n\tNUMBER = 'number',\n\tPASSWORD = 'password',\n\tSEARCH = 'search',\n\tTEL = 'tel',\n\tTEXT = 'text',\n\tTIME = 'time',\n\tURL = 'url',\n\tWEEK = 'week',\n}\n\nexport type InputType = `${ValueOf<typeof InputTypes>}`\n\nexport enum Type {\n\tRESET = 'reset',\n}\n\nexport type TypesType = `${ValueOf<typeof Type>}`\n\nexport const FormInputClass = {\n\troot: 'gov-form-input',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { Variants } from '../../../core/constants/variants'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormSelectSizes = pick(Sizes, ['_M', '_L', '_XL'])\nexport type FormSelectSizesType = `${ValueOf<typeof FormSelectSizes>}`\n\nexport const FormSelectVariants = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type FormSelectVariantType = `${ValueOf<typeof FormSelectVariants>}`\n\nexport const FormSelectClass = {\n\troot: 'gov-form-select',\n\ticon: 'gov-form-select__icon',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { Variants } from '../../../core/constants/variants'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormMultiselectSizes = pick(Sizes, ['_M', '_L', '_XL'])\nexport type FormMultiselectSizesType = `${ValueOf<typeof FormMultiselectSizes>}`\n\nexport const FormMultiselectVariants = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type FormMultiselectVariantType = `${ValueOf<typeof FormMultiselectVariants>}`\n\nexport const FormMultiSelectClass = {\n\troot: 'gov-form-multi-select',\n\twrap: 'gov-form-multi-select__wrap',\n\tlist: 'gov-form-multi-select__list',\n\titem: 'gov-form-multi-select__item',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { ValueOf } from '../../../types/interfaces'\nimport { pick } from '../../../utils/utils'\n\nexport const FormSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L'])\nexport type FormSwitchSizesType = `${ValueOf<typeof FormSwitchSizes>}`\n\nexport const FormSwitchClass = {\n\troot: 'gov-form-switch',\n\tholder: 'gov-form-switch__holder',\n\tinput: 'gov-form-switch__input',\n\tindicator: 'gov-form-switch__indicator',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormRadioSizes = pick(Sizes, ['_XS', '_S', '_M', '_L'])\nexport type FormRadioSizesType = `${ValueOf<typeof FormRadioSizes>}`\n\nexport const FormRadioClass = {\n\troot: 'gov-form-radio',\n\tholder: 'gov-form-radio__holder',\n\tinput: 'gov-form-radio__input',\n\tindicator: 'gov-form-radio__indicator',\n}\n","import { GovHost } from './template.types'\nimport { GovForm } from './form.types'\nimport { FormControlClass } from '../../components/gov-form/control/constants'\nimport { FormInputClass } from '../../components/gov-form/input/constants'\nimport { FormSelectClass } from '../../components/gov-form/select/constants'\nimport { FormMultiSelectClass } from '../../components/gov-form/multiselect/constants'\nimport { FormSwitchClass } from '../../components/gov-form/switch/constants'\nimport { FormCheckboxClass } from '../../components/gov-form/checkbox/constants'\nimport { FormRadioClass } from '../../components/gov-form/radio/constants'\nimport { FormMessageClass } from '../../components/gov-form/message/constants'\nimport { FormAutocompleteClass } from '../../components/gov-form/autocomplete/constants'\nimport { Nullable } from '../../types/interfaces'\nimport { FormLabelClass } from \"../../components/gov-form/label/constants\"\n\nexport const govForm = (govHost: GovHost): GovForm => {\n\treturn {\n\t\tget govHost(): GovHost {\n\t\t\treturn govHost\n\t\t},\n\t\tpassAttrToControl(name: string, value: string): void {\n\t\t\tif (this.control) {\n\t\t\t\tthis.control.setAttribute(name, value)\n\t\t\t}\n\t\t},\n\t\tpassAttrToLabel(name: string, value: string): void {\n\t\t\tif (this.label) {\n\t\t\t\tthis.label.setAttribute(name, value)\n\t\t\t}\n\t\t},\n\t\tget hasGroupChildren(): boolean {\n\t\t\tif (this.control) {\n\t\t\t\treturn this.control.querySelectorAll('gov-form-group > *').length > 1\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\t\tget control(): Nullable<HTMLGovFormControlElement> {\n\t\t\tif (this.govHost.name === FormControlClass.root) {\n\t\t\t\treturn this.govHost.hostElement\n\t\t\t}\n\t\t\treturn this.govHost.getParent(FormControlClass.root)\n\t\t},\n\t\tget label(): Nullable<HTMLGovFormLabelElement> {\n\t\t\tconst innerLabel = this.govHost.hostElement.querySelector(`.${FormLabelClass.root}`)\n\t\t\tif(innerLabel) {\n\t\t\t\treturn innerLabel\n\t\t\t}\n\t\t\tif (this.control) {\n\t\t\t\treturn this.control.querySelector(`.${FormLabelClass.root}`)\n\t\t\t}\n\t\t\treturn null\n\t\t},\n\t\tget mainElementsInControl(): Element[] {\n\t\t\tconst formElements = [\n\t\t\t\tFormSelectClass.root,\n\t\t\t\tFormInputClass.root,\n\t\t\t\tFormSwitchClass.root,\n\t\t\t\tFormCheckboxClass.root,\n\t\t\t\tFormRadioClass.root,\n\t\t\t\tFormMultiSelectClass.root,\n\t\t\t\tFormAutocompleteClass.root,\n\t\t\t]\n\t\t\tif (this.control) {\n\t\t\t\tconst elements = formElements.map(el => `${el}:first-of-type`).join(', ')\n\t\t\t\treturn Array.from(this.control.querySelectorAll(elements))\n\t\t\t}\n\t\t\treturn []\n\t\t},\n\t\tget messageElements(): HTMLGovFormMessageElement[] {\n\t\t\tif (this.control) {\n\t\t\t\treturn Array.from(this.control.querySelectorAll(FormMessageClass.root))\n\t\t\t}\n\t\t\treturn []\n\t\t},\n\t}\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"win-84bda0aa.js","mappings":";;;;AAQA,MAAM,iBAAiB,GAAG,CAAI,IAAY,KAA6B,MAAM,IAAIA,cAAQ,CAAC,IAA2B,EAAE,MAAM,CAAC,CAAA;AAE9H,MAAM,MAAM,GAAG;EACd,MAAM,aAAa,GAAY;IAC9B,uBAAuB,EAAE,KAAK;IAC9B,SAAS,EAAE,gBAAgB;IAC3B,YAAY,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI;GACxC,CAAA;EAED,MAAM,cAAc,GAAG,iBAAiB,CAAU,eAAe,CAAC,CAAA;EAClE,IAAI,cAAc,EAAE;IACnB,uCAAY,aAAa,GAAK,cAAc,EAAE;GAC9C;EAED,OAAO,aAAa,CAAA;AACrB,CAAC,CAAA;MAEY,uBAAuB,GAAG,MAA0C,MAAM,EAAE,CAAC,wBAAuB;MACpG,SAAS,GAAG,MAA4B,MAAM,EAAE,CAAC,UAAS;MAC1D,YAAY,GAAG,MAA+B,MAAM,EAAE,CAAC;;;;;;","names":["property"],"sources":["../../../packages/core/src/helpers/Dom/win.ts"],"sourcesContent":["import { property } from '../../utils/utils'\n\ninterface IConfig {\n\tcanValidateWcagOnRender: boolean\n\ticonsPath: string\n\tdocumentNode: Document\n}\n\nconst getWindowProperty = <T>(name: string): Partial<T> | undefined => window && property(name as keyof typeof window, window)\n\nconst config = (): IConfig => {\n\tconst defaultConfig: IConfig = {\n\t\tcanValidateWcagOnRender: false,\n\t\ticonsPath: './assets/icons',\n\t\tdocumentNode: document ? document : null,\n\t}\n\n\tconst windowProperty = getWindowProperty<IConfig>('GOV_DS_CONFIG')\n\tif (windowProperty) {\n\t\treturn { ...defaultConfig, ...windowProperty }\n\t}\n\n\treturn defaultConfig\n}\n\nexport const canValidateWcagOnRender = (): IConfig['canValidateWcagOnRender'] => config().canValidateWcagOnRender\nexport const iconsPath = (): IConfig['iconsPath'] => config().iconsPath\nexport const documentNode = (): IConfig['documentNode'] => config().documentNode\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-button/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAExD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAExC,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAGxE,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA;AAGrG,MAAM,CAAN,IAAY,IAKX;AALD,WAAY,IAAI;EACf,uBAAe,CAAA;EACf,6BAAqB,CAAA;EACrB,qBAAa,CAAA;EACb,qBAAa,CAAA;AACd,CAAC,EALW,IAAI,KAAJ,IAAI,QAKf;AAID,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;EACrB,+BAAiB,CAAA;EACjB,+BAAiB,CAAA;EACjB,6BAAe,CAAA;AAChB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAID,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;EACvB,gCAAgB,CAAA;EAChB,8BAAc,CAAA;EACd,4BAAY,CAAA;AACb,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB;AAGD,MAAM,CAAC,MAAM,WAAW,GAAG;EAC1B,IAAI,EAAE,YAAY;EAClB,YAAY,EAAE,oBAAoB;CAClC,CAAA","sourcesContent":["import { Sizes } from '../../core/constants/sizes'\nimport { Variants } from '../../core/constants/variants'\nimport { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils'\n\nexport const ButtonSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type ButtonSizesType = `${ValueOf<typeof ButtonSizes>}`\n\nexport const ButtonVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'SUCCESS', 'ERROR', 'WARNING'])\nexport type ButtonVariantType = `${ValueOf<typeof ButtonVariants>}`\n\nexport enum Type {\n\tSOLID = 'solid',\n\tOUTLINED = 'outlined',\n\tBASE = 'base',\n\tLINK = 'link',\n}\n\nexport type TypesType = `${ValueOf<typeof Type>}`\n\nexport enum NativeType {\n\tSUBMIT = 'submit',\n\tBUTTON = 'button',\n\tRESET = 'reset',\n}\n\nexport type NativeTypesType = `${ValueOf<typeof NativeType>}`\n\nexport enum ButtonTarget {\n\tBLANK = '_blank',\n\tSELF = '_self',\n\tNEW = '_new',\n}\nexport type ButtonTargetType = `${ValueOf<typeof ButtonTarget>}`\n\nexport const ButtonClass = {\n\troot: 'gov-button',\n\trootWithIcon: 'gov-button--w-icon',\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-button.js","sourceRoot":"","sources":["../../../../../../src/components/gov-button/gov-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAC5G,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAIN,cAAc,EAEd,WAAW,EACX,IAAI,EACJ,UAAU,GAEV,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAErG,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAGzC,IAAK,IAGJ;AAHD,WAAK,IAAI;EACR,eAAO,CAAA;EACP,yBAAiB,CAAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport {\n\tButtonSizesType,\n\tNativeTypesType,\n\tTypesType,\n\tButtonVariants,\n\tButtonVariantType,\n\tButtonClass,\n\tType,\n\tNativeType,\n\tButtonTargetType,\n} from \"./constants\"\nimport { govHost, toBoolAttr, toBoolAttrIfDefined, prepareClasses } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { toBool } from \"../../utils/bool.utils\"\nimport { Sizes } from \"../../core/constants/sizes\"\nimport { validateWcagLabel, validateWcagRef } from \"../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\nimport { delay } from \"../../utils/utils\"\nimport { ButtonEvent } from \"./gov-button.types\"\n\nenum Tags {\n\tA = \"a\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-button\",\n\tstyleUrl: \"gov-button.scss\",\n})\nexport class GovButton {\n\tprivate h: GovHost\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovButtonElement\n\n\t/**\n\t * Style variation of the button\n\t */\n\t@Prop({ reflect: true }) readonly variant?: ButtonVariantType\n\t/**\n\t * Button’s size\n\t */\n\t@Prop({ reflect: true }) readonly size?: ButtonSizesType = \"m\"\n\t/**\n\t * Button's type\n\t */\n\t@Prop({ reflect: true }) readonly type?: TypesType = \"solid\"\n\t/**\n\t * Expands the button to fill 100% of the container width\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Determine if component should have inversed colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: boolean = false\n\t/**\n\t * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Makes the button component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies\n\t */\n\t@Prop({ reflect: true }) readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\n\t */\n\t@Prop() readonly nativeType?: NativeTypesType = \"button\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target?: ButtonTargetType\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\n\t */\n\t@Prop() readonly download: boolean\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang\n\t */\n\t@Prop() readonly hreflang: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-referrerpolicy\n\t */\n\t@Prop() readonly referrerpolicy: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel\n\t */\n\t@Prop() readonly rel: string\n\t/**\n\t * Indicates whether an asynchronous process is running\n\t */\n\t@Prop() readonly loading: string\n\t/**\n\t * Same as original parametr\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom button identifier\n\t */\n\t@Prop({ attribute: \"identifier\" }) readonly identifier: string\n\t/**\n\t * Indicates the id of a related component’s visually focused element\n\t */\n\t@Prop({ attribute: \"wcag-active-descendant\" }) readonly wcagActiveDescendant: string\n\t/**\n\t * Use this property to add an aria-controls attribute to the button. Use the attribute to point to the unique id of the content that the button manages\n\t */\n\t@Prop({ attribute: \"wcag-controls\" }) readonly wcagControls: string\n\t/**\n\t * Indicates the id of a component that describes the button\n\t */\n\t@Prop({ attribute: \"wcag-described-by\" }) readonly wcagDescribedBy: string\n\t/**\n\t * Aria description the button\n\t */\n\t@Prop({ attribute: \"wcag-description\" }) readonly wcagDescription: string\n\t/**\n\t * Details of the component\n\t */\n\t@Prop({ attribute: \"wcag-details\" }) readonly wcagDetails: string\n\t/**\n\t * If a button expands or collapses adjacent content, then use the ariaExpanded prop to add the aria-expanded attribute to the button\n\t * Set the value to convey the current expanded (true) or collapsed (false) state of the content\n\t */\n\t@Prop({ attribute: \"wcag-expanded\" }) readonly wcagExpanded: boolean\n\t/**\n\t * Adds accessible label for the button that is only shown for screen readers\n\t * Typically, this label text replaces the visible text on the button for users who use assistive technology\n\t */\n\t@Prop({ attribute: \"wcag-label\" }) readonly wcagLabel: string\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: \"wcag-labelled-by\" }) readonly wcagLabelledBy: string\n\t/**\n\t * Indicates the id of a component owned by the button\n\t */\n\t@Prop({ attribute: \"wcag-owns\" }) readonly wcagOwns: string\n\t/**\n\t * \tUse this property to add an aria-haspopup attribute to a button, if you are using it as a menu button\n\t */\n\t@Prop({ attribute: \"wcag-has-popup\" }) readonly wcagHasPopup: string\n\t/**\n\t * Tells screen reader the element is pressed\n\t */\n\t@Prop({ attribute: \"wcag-pressed\" }) readonly wcagPressed: string\n\t/**\n\t * Indicates the current item within a container or set of related elements\n\t */\n\t@Prop({ attribute: \"wcag-current\" }) readonly wcagCurrent: string\n\t/**\n\t * Emitted when the button click\n\t */\n\t@Event({ eventName: \"gov-click\" }) govClick: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({ eventName: \"gov-focus\" }) govFocus: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({ eventName: \"gov-blur\" }) govBlur: EventEmitter<ButtonEvent>\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(ButtonVariants, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(Type, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"nativeType\")\n\tvalidateNativeType(newValue: string): void {\n\t\tvalidateProp(NativeType, newValue, ButtonClass.root)\n\t}\n\n\t@State() isPressed = false\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateType(this.type)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateNativeType(this.nativeType)\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\tget classNames(): string {\n\t\tconst { h } = this\n\n\t\treturn prepareClasses([ButtonClass.root, h.hasSlot(\"left-icon\") && ButtonClass.rootWithIcon, h.hasSlot(\"right-icon\") && ButtonClass.rootWithIcon])\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.BUTTON\n\t\tconst nativeType = Tag === Tags.A ? undefined : this.nativeType\n\n\t\treturn (\n\t\t\t<Host hoverable={true} size={this.size} variant={this.variant} class={this.h.classes(this.classNames)} type={this.type} inverse={this.inverse}>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLButtonElement | HTMLLinkElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\tonMouseDown={() => (this.isPressed = true)}\n\t\t\t\t\tonMouseUp={() => (this.isPressed = false)}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tdownload={this.download}\n\t\t\t\t\threflang={this.hreflang}\n\t\t\t\t\trel={this.rel}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\ttype={nativeType}\n\t\t\t\t\ttabindex={this.focusable ? \"0\" : \"-1\"}\n\t\t\t\t\taria-activedescendant={this.wcagActiveDescendant}\n\t\t\t\t\taria-describedby={this.wcagActiveDescendant}\n\t\t\t\t\taria-description={this.wcagDescription}\n\t\t\t\t\taria-controls={this.wcagControls}\n\t\t\t\t\taria-details={this.wcagDetails}\n\t\t\t\t\taria-expanded={toBoolAttrIfDefined(this.wcagExpanded)}\n\t\t\t\t\taria-label={this.wcagLabel}\n\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\taria-owns={this.wcagOwns}\n\t\t\t\t\taria-haspopup={toBoolAttrIfDefined(this.wcagHasPopup)}\n\t\t\t\t\taria-pressed={toBoolAttr(this.isPressed)}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\taria-current={this.wcagCurrent}\n\t\t\t\t>\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot(\"right-icon\") &&\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>}\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\"></slot>}\n\t\t\t\t\t<slot />\n\t\t\t\t\t{this.h.hasSlot(\"right-icon\") && <slot name=\"right-icon\"></slot>}\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot(\"right-icon\") &&\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false) {\n\t\t\tthis.govClick.emit({\n\t\t\t\tcomponent: ButtonClass.root,\n\t\t\t\toriginalEvent: e,\n\t\t\t\tref: this.host,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getTriggerRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tif (this.focusable) {\n\t\t\tvalidateWcagRef(this.wcagActiveDescendant, \"aria-activedescendant\", ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagControls, \"aria-controls\", ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagDetails, \"aria-details\", ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagOwns, \"aria-owns\", ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagHasPopup, \"aria-haspopup\", ButtonClass.root)\n\t\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, ButtonClass.root)\n\t\t}\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-button.types.js","sourceRoot":"","sources":["../../../../../../src/components/gov-button/gov-button.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../types/event.types\"\n\nexport interface ButtonEvent extends GovBaseEvent {\n\tref: HTMLGovButtonElement\n}\n\n"]}
|