@riverty/web-components 6.3.0 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/focusable-Oll_rmtP.js +28 -0
- package/dist/cjs/formData-B2DZyLxP.js +44 -0
- package/dist/cjs/index-BnETQtSf.js +1834 -0
- package/dist/cjs/index.cjs.js +37 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/r-accordion-panel.cjs.entry.js +24 -0
- package/dist/cjs/r-accordion-section.cjs.entry.js +125 -0
- package/dist/cjs/r-accordion-trigger.cjs.entry.js +93 -0
- package/dist/cjs/r-accordion.cjs.entry.js +20 -0
- package/dist/cjs/r-alert.cjs.entry.js +146 -0
- package/dist/cjs/r-badge.cjs.entry.js +41 -0
- package/dist/cjs/r-button.cjs.entry.js +149 -0
- package/dist/cjs/r-checkbox-group.cjs.entry.js +237 -0
- package/dist/cjs/r-checkbox.cjs.entry.js +274 -0
- package/dist/cjs/r-design-system-devtools.cjs.entry.js +31 -0
- package/dist/cjs/r-dialog.cjs.entry.js +107 -0
- package/dist/cjs/r-hint_2.cjs.entry.js +50 -0
- package/dist/cjs/r-icon-button_2.cjs.entry.js +492 -0
- package/dist/cjs/r-icon.cjs.entry.js +284 -0
- package/dist/cjs/r-illustration.cjs.entry.js +396 -0
- package/dist/cjs/r-input-code.cjs.entry.js +437 -0
- package/dist/cjs/r-input-date.cjs.entry.js +524 -0
- package/dist/cjs/r-input-password.cjs.entry.js +270 -0
- package/dist/cjs/r-input-phone-number.cjs.entry.js +2525 -0
- package/dist/cjs/r-input.cjs.entry.js +618 -0
- package/dist/cjs/r-list-item.cjs.entry.js +109 -0
- package/dist/cjs/r-pagination.cjs.entry.js +320 -0
- package/dist/cjs/r-panel.cjs.entry.js +184 -0
- package/dist/cjs/r-popover-action.cjs.entry.js +80 -0
- package/dist/cjs/r-popover-content.cjs.entry.js +62 -0
- package/dist/cjs/r-popover-headline.cjs.entry.js +28 -0
- package/dist/cjs/r-popover-trigger.cjs.entry.js +70 -0
- package/dist/cjs/r-popover.cjs.entry.js +347 -0
- package/dist/cjs/r-progress-bar.cjs.entry.js +25 -0
- package/dist/cjs/r-radio-button-description.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button-leading.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button-title.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button-trailing.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button.cjs.entry.js +139 -0
- package/dist/cjs/r-radio-group.cjs.entry.js +428 -0
- package/dist/cjs/r-select-option.cjs.entry.js +130 -0
- package/dist/cjs/r-select.cjs.entry.js +1107 -0
- package/dist/cjs/r-skip-link.cjs.entry.js +19 -0
- package/dist/cjs/r-stepper-item.cjs.entry.js +42 -0
- package/dist/cjs/r-stepper.cjs.entry.js +99 -0
- package/dist/cjs/r-tab-panel.cjs.entry.js +26 -0
- package/dist/cjs/r-tab.cjs.entry.js +62 -0
- package/dist/cjs/r-tabs-list.cjs.entry.js +175 -0
- package/dist/cjs/r-tabs.cjs.entry.js +277 -0
- package/dist/cjs/r-textarea.cjs.entry.js +270 -0
- package/dist/cjs/r-toast-group.cjs.entry.js +46 -0
- package/dist/cjs/r-toast.cjs.entry.js +314 -0
- package/dist/cjs/style-observer-D9zSP9wP.js +1118 -0
- package/dist/cjs/theming-NqxjhVJS.js +109 -0
- package/dist/cjs/web-components.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +60 -0
- package/dist/collection/components/accordion/accordion.css +24 -0
- package/dist/collection/components/accordion/accordion.js +90 -0
- package/dist/collection/components/accordion/exports.js +1 -0
- package/dist/collection/components/accordion-panel/accordion-panel.css +50 -0
- package/dist/collection/components/accordion-panel/accordion-panel.js +86 -0
- package/dist/collection/components/accordion-section/accordion-section.css +27 -0
- package/dist/collection/components/accordion-section/accordion-section.js +235 -0
- package/dist/collection/components/accordion-trigger/accordion-trigger.css +93 -0
- package/dist/collection/components/accordion-trigger/accordion-trigger.js +220 -0
- package/dist/collection/components/alert/alert.css +120 -0
- package/dist/collection/components/alert/alert.js +526 -0
- package/dist/collection/components/alert/exports.js +2 -0
- package/dist/collection/components/badge/badge.css +62 -0
- package/dist/collection/components/badge/badge.js +124 -0
- package/dist/collection/components/badge/exports.js +1 -0
- package/dist/collection/components/button/button.css +180 -0
- package/dist/collection/components/button/button.js +510 -0
- package/dist/collection/components/button/exports.js +5 -0
- package/dist/collection/components/checkbox/checkbox.css +116 -0
- package/dist/collection/components/checkbox/checkbox.js +803 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +48 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +744 -0
- package/dist/collection/components/design-system-devtools/design-system-devtools.js +59 -0
- package/dist/collection/components/dialog/dialog.css +125 -0
- package/dist/collection/components/dialog/dialog.js +345 -0
- package/dist/collection/components/dialog/exports.js +9 -0
- package/dist/collection/components/hint/exports.js +1 -0
- package/dist/collection/components/hint/hint.css +63 -0
- package/dist/collection/components/hint/hint.js +114 -0
- package/dist/collection/components/icon/all-kit.js +2 -0
- package/dist/collection/components/icon/data.js +90 -0
- package/dist/collection/components/icon/exports.js +7 -0
- package/dist/collection/components/icon/icon.css +105 -0
- package/dist/collection/components/icon/icon.js +379 -0
- package/dist/collection/components/icon/riverty-kit.js +2 -0
- package/dist/collection/components/icon-button/icon-button.css +105 -0
- package/dist/collection/components/icon-button/icon-button.js +343 -0
- package/dist/collection/components/illustration/data.js +112 -0
- package/dist/collection/components/illustration/exports.js +3 -0
- package/dist/collection/components/illustration/illustration.css +52 -0
- package/dist/collection/components/illustration/illustration.js +540 -0
- package/dist/collection/components/illustration/illustrations-ui-kit.js +2 -0
- package/dist/collection/components/input/exports.js +62 -0
- package/dist/collection/components/input/input.css +186 -0
- package/dist/collection/components/input/input.js +1861 -0
- package/dist/collection/components/input-code/exports.js +2 -0
- package/dist/collection/components/input-code/input-code.css +127 -0
- package/dist/collection/components/input-code/input-code.js +1165 -0
- package/dist/collection/components/input-date/exports.js +1 -0
- package/dist/collection/components/input-date/input-date.css +148 -0
- package/dist/collection/components/input-date/input-date.js +1254 -0
- package/dist/collection/components/input-password/exports.js +1 -0
- package/dist/collection/components/input-password/input-password.css +25 -0
- package/dist/collection/components/input-password/input-password.js +1077 -0
- package/dist/collection/components/input-phone-number/input-phone-number.css +61 -0
- package/dist/collection/components/input-phone-number/input-phone-number.js +893 -0
- package/dist/collection/components/label/label.css +38 -0
- package/dist/collection/components/label/label.js +47 -0
- package/dist/collection/components/list-item/list-item/exports.js +2 -0
- package/dist/collection/components/list-item/list-item/list-item.css +199 -0
- package/dist/collection/components/list-item/list-item/list-item.js +467 -0
- package/dist/collection/components/pagination/exports.js +3 -0
- package/dist/collection/components/pagination/pagination.css +118 -0
- package/dist/collection/components/pagination/pagination.js +814 -0
- package/dist/collection/components/panel/exports.js +1 -0
- package/dist/collection/components/panel/panel.css +192 -0
- package/dist/collection/components/panel/panel.js +473 -0
- package/dist/collection/components/popover/exports.js +3 -0
- package/dist/collection/components/popover/popover.css +251 -0
- package/dist/collection/components/popover/popover.js +741 -0
- package/dist/collection/components/popover-action/popover-action.css +21 -0
- package/dist/collection/components/popover-action/popover-action.js +150 -0
- package/dist/collection/components/popover-content/popover-content.css +9 -0
- package/dist/collection/components/popover-content/popover-content.js +130 -0
- package/dist/collection/components/popover-headline/popover-headline.css +7 -0
- package/dist/collection/components/popover-headline/popover-headline.js +28 -0
- package/dist/collection/components/popover-trigger/exports.js +1 -0
- package/dist/collection/components/popover-trigger/popover-trigger.css +4 -0
- package/dist/collection/components/popover-trigger/popover-trigger.js +163 -0
- package/dist/collection/components/progress-bar/progress-bar.css +41 -0
- package/dist/collection/components/progress-bar/progress-bar.js +71 -0
- package/dist/collection/components/radio-button/radio-button.css +126 -0
- package/dist/collection/components/radio-button/radio-button.js +559 -0
- package/dist/collection/components/radio-button-description/radio-button-description.css +5 -0
- package/dist/collection/components/radio-button-description/radio-button-description.js +22 -0
- package/dist/collection/components/radio-button-leading/radio-button-leading.css +3 -0
- package/dist/collection/components/radio-button-leading/radio-button-leading.js +22 -0
- package/dist/collection/components/radio-button-title/radio-button-title.css +8 -0
- package/dist/collection/components/radio-button-title/radio-button-title.js +22 -0
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.css +6 -0
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +22 -0
- package/dist/collection/components/radio-group/exports.js +1 -0
- package/dist/collection/components/radio-group/radio-group.css +65 -0
- package/dist/collection/components/radio-group/radio-group.js +1023 -0
- package/dist/collection/components/select/exports.js +1 -0
- package/dist/collection/components/select/select.css +247 -0
- package/dist/collection/components/select/select.js +2038 -0
- package/dist/collection/components/select-option/select-option.css +93 -0
- package/dist/collection/components/select-option/select-option.js +459 -0
- package/dist/collection/components/skip-link/exports.js +1 -0
- package/dist/collection/components/skip-link/skip-link.css +37 -0
- package/dist/collection/components/skip-link/skip-link.js +52 -0
- package/dist/collection/components/stepper/stepper.css +25 -0
- package/dist/collection/components/stepper/stepper.js +216 -0
- package/dist/collection/components/stepper-item/stepper-item.css +62 -0
- package/dist/collection/components/stepper-item/stepper-item.js +171 -0
- package/dist/collection/components/tab/tab.css +81 -0
- package/dist/collection/components/tab/tab.js +169 -0
- package/dist/collection/components/tab-panel/tab-panel.css +19 -0
- package/dist/collection/components/tab-panel/tab-panel.js +72 -0
- package/dist/collection/components/tabs/tabs.css +4 -0
- package/dist/collection/components/tabs/tabs.js +345 -0
- package/dist/collection/components/tabs-list/exports.js +2 -0
- package/dist/collection/components/tabs-list/tabs-list.css +58 -0
- package/dist/collection/components/tabs-list/tabs-list.js +294 -0
- package/dist/collection/components/textarea/exports.js +8 -0
- package/dist/collection/components/textarea/textarea.css +148 -0
- package/dist/collection/components/textarea/textarea.js +1055 -0
- package/dist/collection/components/toast/exports.js +3 -0
- package/dist/collection/components/toast/toast.css +179 -0
- package/dist/collection/components/toast/toast.js +820 -0
- package/dist/collection/components/toast-group/exports.js +1 -0
- package/dist/collection/components/toast-group/toast-group.css +37 -0
- package/dist/collection/components/toast-group/toast-group.js +49 -0
- package/dist/collection/components/tooltip/exports.js +3 -0
- package/dist/collection/components/tooltip/tooltip.css +77 -0
- package/dist/collection/components/tooltip/tooltip.js +525 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/focusable.js +24 -0
- package/dist/collection/utils/formData.js +40 -0
- package/dist/collection/utils/theming.js +103 -0
- package/dist/collection/utils/version-checker.js +33 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/focusable-ky1yonnS.js +26 -0
- package/dist/esm/formData-DvLT8-y3.js +42 -0
- package/dist/esm/index-CTxpqopm.js +1806 -0
- package/dist/esm/index.js +35 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/r-accordion-panel.entry.js +22 -0
- package/dist/esm/r-accordion-section.entry.js +123 -0
- package/dist/esm/r-accordion-trigger.entry.js +91 -0
- package/dist/esm/r-accordion.entry.js +18 -0
- package/dist/esm/r-alert.entry.js +144 -0
- package/dist/esm/r-badge.entry.js +39 -0
- package/dist/esm/r-button.entry.js +147 -0
- package/dist/esm/r-checkbox-group.entry.js +235 -0
- package/dist/esm/r-checkbox.entry.js +272 -0
- package/dist/esm/r-design-system-devtools.entry.js +29 -0
- package/dist/esm/r-dialog.entry.js +105 -0
- package/dist/esm/r-hint_2.entry.js +47 -0
- package/dist/esm/r-icon-button_2.entry.js +489 -0
- package/dist/esm/r-icon.entry.js +282 -0
- package/dist/esm/r-illustration.entry.js +394 -0
- package/dist/esm/r-input-code.entry.js +435 -0
- package/dist/esm/r-input-date.entry.js +522 -0
- package/dist/esm/r-input-password.entry.js +268 -0
- package/dist/esm/r-input-phone-number.entry.js +2523 -0
- package/dist/esm/r-input.entry.js +616 -0
- package/dist/esm/r-list-item.entry.js +107 -0
- package/dist/esm/r-pagination.entry.js +318 -0
- package/dist/esm/r-panel.entry.js +182 -0
- package/dist/esm/r-popover-action.entry.js +78 -0
- package/dist/esm/r-popover-content.entry.js +60 -0
- package/dist/esm/r-popover-headline.entry.js +26 -0
- package/dist/esm/r-popover-trigger.entry.js +68 -0
- package/dist/esm/r-popover.entry.js +345 -0
- package/dist/esm/r-progress-bar.entry.js +23 -0
- package/dist/esm/r-radio-button-description.entry.js +16 -0
- package/dist/esm/r-radio-button-leading.entry.js +16 -0
- package/dist/esm/r-radio-button-title.entry.js +16 -0
- package/dist/esm/r-radio-button-trailing.entry.js +16 -0
- package/dist/esm/r-radio-button.entry.js +137 -0
- package/dist/esm/r-radio-group.entry.js +426 -0
- package/dist/esm/r-select-option.entry.js +128 -0
- package/dist/esm/r-select.entry.js +1105 -0
- package/dist/esm/r-skip-link.entry.js +17 -0
- package/dist/esm/r-stepper-item.entry.js +40 -0
- package/dist/esm/r-stepper.entry.js +97 -0
- package/dist/esm/r-tab-panel.entry.js +24 -0
- package/dist/esm/r-tab.entry.js +60 -0
- package/dist/esm/r-tabs-list.entry.js +173 -0
- package/dist/esm/r-tabs.entry.js +275 -0
- package/dist/esm/r-textarea.entry.js +268 -0
- package/dist/esm/r-toast-group.entry.js +44 -0
- package/dist/esm/r-toast.entry.js +312 -0
- package/dist/esm/style-observer-4Uv3PpKT.js +1116 -0
- package/dist/esm/theming-DD2IrjpG.js +106 -0
- package/dist/esm/web-components.js +21 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/accordion/accordion.d.ts +27 -0
- package/dist/types/components/accordion/exports.d.ts +2 -0
- package/dist/types/components/accordion-panel/accordion-panel.d.ts +10 -0
- package/dist/types/components/accordion-section/accordion-section.d.ts +36 -0
- package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +33 -0
- package/dist/types/components/alert/alert.d.ts +67 -0
- package/dist/types/components/alert/exports.d.ts +4 -0
- package/dist/types/components/badge/badge.d.ts +26 -0
- package/dist/types/components/badge/exports.d.ts +2 -0
- package/dist/types/components/button/button.d.ts +89 -0
- package/dist/types/components/button/exports.d.ts +10 -0
- package/dist/types/components/checkbox/checkbox.d.ts +138 -0
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +124 -0
- package/dist/types/components/design-system-devtools/design-system-devtools.d.ts +15 -0
- package/dist/types/components/dialog/dialog.d.ts +69 -0
- package/dist/types/components/dialog/exports.d.ts +10 -0
- package/dist/types/components/hint/exports.d.ts +2 -0
- package/dist/types/components/hint/hint.d.ts +20 -0
- package/dist/types/components/icon/all-kit.d.ts +2890 -0
- package/dist/types/components/icon/data.d.ts +145 -0
- package/dist/types/components/icon/exports.d.ts +152 -0
- package/dist/types/components/icon/icon.d.ts +37 -0
- package/dist/types/components/icon/riverty-kit.d.ts +139 -0
- package/dist/types/components/icon-button/icon-button.d.ts +69 -0
- package/dist/types/components/illustration/data.d.ts +52 -0
- package/dist/types/components/illustration/exports.d.ts +23 -0
- package/dist/types/components/illustration/illustration.d.ts +51 -0
- package/dist/types/components/illustration/illustrations-ui-kit.d.ts +21 -0
- package/dist/types/components/input/exports.d.ts +55 -0
- package/dist/types/components/input/input.d.ts +365 -0
- package/dist/types/components/input-code/exports.d.ts +4 -0
- package/dist/types/components/input-code/input-code.d.ts +177 -0
- package/dist/types/components/input-date/exports.d.ts +5 -0
- package/dist/types/components/input-date/input-date.d.ts +174 -0
- package/dist/types/components/input-password/exports.d.ts +1 -0
- package/dist/types/components/input-password/input-password.d.ts +186 -0
- package/dist/types/components/input-phone-number/input-phone-number.d.ts +130 -0
- package/dist/types/components/label/label.d.ts +9 -0
- package/dist/types/components/list-item/list-item/exports.d.ts +4 -0
- package/dist/types/components/list-item/list-item/list-item.d.ts +61 -0
- package/dist/types/components/pagination/exports.d.ts +6 -0
- package/dist/types/components/pagination/pagination.d.ts +140 -0
- package/dist/types/components/panel/exports.d.ts +2 -0
- package/dist/types/components/panel/panel.d.ts +56 -0
- package/dist/types/components/popover/exports.d.ts +6 -0
- package/dist/types/components/popover/popover.d.ts +131 -0
- package/dist/types/components/popover-action/popover-action.d.ts +24 -0
- package/dist/types/components/popover-content/popover-content.d.ts +22 -0
- package/dist/types/components/popover-headline/popover-headline.d.ts +6 -0
- package/dist/types/components/popover-trigger/exports.d.ts +2 -0
- package/dist/types/components/popover-trigger/popover-trigger.d.ts +31 -0
- package/dist/types/components/progress-bar/progress-bar.d.ts +10 -0
- package/dist/types/components/radio-button/radio-button.d.ts +92 -0
- package/dist/types/components/radio-button-description/radio-button-description.d.ts +8 -0
- package/dist/types/components/radio-button-leading/radio-button-leading.d.ts +8 -0
- package/dist/types/components/radio-button-title/radio-button-title.d.ts +8 -0
- package/dist/types/components/radio-button-trailing/radio-button-trailing.d.ts +8 -0
- package/dist/types/components/radio-group/exports.d.ts +2 -0
- package/dist/types/components/radio-group/radio-group.d.ts +179 -0
- package/dist/types/components/select/exports.d.ts +2 -0
- package/dist/types/components/select/select.d.ts +319 -0
- package/dist/types/components/select-option/select-option.d.ts +113 -0
- package/dist/types/components/skip-link/exports.d.ts +2 -0
- package/dist/types/components/skip-link/skip-link.d.ts +6 -0
- package/dist/types/components/stepper/stepper.d.ts +22 -0
- package/dist/types/components/stepper-item/stepper-item.d.ts +23 -0
- package/dist/types/components/tab/tab.d.ts +23 -0
- package/dist/types/components/tab-panel/tab-panel.d.ts +7 -0
- package/dist/types/components/tabs/tabs.d.ts +49 -0
- package/dist/types/components/tabs-list/exports.d.ts +4 -0
- package/dist/types/components/tabs-list/tabs-list.d.ts +41 -0
- package/dist/types/components/textarea/exports.d.ts +2 -0
- package/dist/types/components/textarea/textarea.d.ts +158 -0
- package/dist/types/components/toast/exports.d.ts +6 -0
- package/dist/types/components/toast/toast.d.ts +146 -0
- package/dist/types/components/toast-group/exports.d.ts +2 -0
- package/dist/types/components/toast-group/toast-group.d.ts +9 -0
- package/dist/types/components/tooltip/exports.d.ts +6 -0
- package/dist/types/components/tooltip/tooltip.d.ts +132 -0
- package/dist/types/components.d.ts +6347 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1732 -0
- package/dist/types/types/jsx-shim.d.ts +13 -0
- package/dist/types/types/style-observer.d.ts +20 -0
- package/dist/types/utils/focusable.d.ts +1 -0
- package/dist/types/utils/formData.d.ts +1 -0
- package/dist/types/utils/theming.d.ts +15 -0
- package/dist/types/utils/version-checker.d.ts +1 -0
- package/dist/web-components/index.esm.js +1 -0
- package/dist/web-components/p-01aefcf0.entry.js +1 -0
- package/dist/web-components/p-05cb55db.entry.js +1 -0
- package/dist/web-components/p-0a34d33b.entry.js +1 -0
- package/dist/web-components/p-11b22309.entry.js +1 -0
- package/dist/web-components/p-2d878934.entry.js +1 -0
- package/dist/web-components/p-325dbedf.entry.js +1 -0
- package/dist/web-components/p-34b9457b.entry.js +1 -0
- package/dist/web-components/p-36abd05a.entry.js +1 -0
- package/dist/web-components/p-386d1ef9.entry.js +1 -0
- package/dist/web-components/p-3d67b77b.entry.js +1 -0
- package/dist/web-components/p-4Uv3PpKT.js +1 -0
- package/dist/web-components/p-4b12fbc0.entry.js +1 -0
- package/dist/web-components/p-52f7b505.entry.js +1 -0
- package/dist/web-components/p-55600d47.entry.js +1 -0
- package/dist/web-components/p-57ebc474.entry.js +1 -0
- package/dist/web-components/p-57edf7f4.entry.js +1 -0
- package/dist/web-components/p-69a24fe2.entry.js +1 -0
- package/dist/web-components/p-6d92648c.entry.js +1 -0
- package/dist/web-components/p-75052597.entry.js +1 -0
- package/dist/web-components/p-7b2c5b63.entry.js +1 -0
- package/dist/web-components/p-7bf463ff.entry.js +1 -0
- package/dist/web-components/p-838e43d4.entry.js +1 -0
- package/dist/web-components/p-8c16d038.entry.js +1 -0
- package/dist/web-components/p-8f8313de.entry.js +1 -0
- package/dist/web-components/p-9026d5a2.entry.js +1 -0
- package/dist/web-components/p-95396b5c.entry.js +1 -0
- package/dist/web-components/p-9c31c7c4.entry.js +1 -0
- package/dist/web-components/p-9c415b9c.entry.js +1 -0
- package/dist/web-components/p-9f583ed1.entry.js +1 -0
- package/dist/web-components/p-B9rsR6cQ.js +1 -0
- package/dist/web-components/p-CTxpqopm.js +2 -0
- package/dist/web-components/p-DQuL1Twl.js +1 -0
- package/dist/web-components/p-DvLT8-y3.js +1 -0
- package/dist/web-components/p-b303b2cc.entry.js +1 -0
- package/dist/web-components/p-b8df041d.entry.js +1 -0
- package/dist/web-components/p-bc30844f.entry.js +1 -0
- package/dist/web-components/p-c4a77a65.entry.js +1 -0
- package/dist/web-components/p-c549addf.entry.js +1 -0
- package/dist/web-components/p-c65df19f.entry.js +1 -0
- package/dist/web-components/p-c80a5541.entry.js +1 -0
- package/dist/web-components/p-c96ee61a.entry.js +1 -0
- package/dist/web-components/p-cf3f044d.entry.js +1 -0
- package/dist/web-components/p-d1412932.entry.js +1 -0
- package/dist/web-components/p-d9778cfa.entry.js +1 -0
- package/dist/web-components/p-dbe4ccb8.entry.js +1 -0
- package/dist/web-components/p-ded50850.entry.js +1 -0
- package/dist/web-components/p-e5be895b.entry.js +1 -0
- package/dist/web-components/p-e6b34c1e.entry.js +1 -0
- package/dist/web-components/p-ec3c4800.entry.js +1 -0
- package/dist/web-components/p-f670fd87.entry.js +1 -0
- package/dist/web-components/p-f867e4c3.entry.js +1 -0
- package/dist/web-components/p-ff6b1b8f.entry.js +1 -0
- package/dist/web-components/p-ky1yonnS.js +1 -0
- package/dist/web-components/web-components.esm.js +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1023 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { appendControlToFormData } from "../../utils/formData";
|
|
3
|
+
export class RadioGroup {
|
|
4
|
+
constructor() {
|
|
5
|
+
/** Controls the style variation of the radio buttons. */
|
|
6
|
+
this.variant = 'standard';
|
|
7
|
+
/**
|
|
8
|
+
* When set to `true`, automatically focuses the first enabled radio button in the group on mount.
|
|
9
|
+
* This will focus the selected radio button if one exists, or the first enabled radio button otherwise.
|
|
10
|
+
*/
|
|
11
|
+
this.autofocus = false;
|
|
12
|
+
this.validityState = '';
|
|
13
|
+
this.validityMessage = '';
|
|
14
|
+
/**
|
|
15
|
+
* Initial attributes state
|
|
16
|
+
* */
|
|
17
|
+
this.initial = {};
|
|
18
|
+
/** Unique id */
|
|
19
|
+
this.uniqueId = `r-radio-group-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
20
|
+
this.getValidityStateData = element => {
|
|
21
|
+
let validityState = '';
|
|
22
|
+
let validityMessage = '';
|
|
23
|
+
if (element === null)
|
|
24
|
+
return { validityState, validityMessage };
|
|
25
|
+
for (const state in element.validity) {
|
|
26
|
+
if (element.validity[state]) {
|
|
27
|
+
validityState = state;
|
|
28
|
+
if (this[state + 'Message']) {
|
|
29
|
+
validityMessage = this[state + 'Message'];
|
|
30
|
+
return { validityState, validityMessage };
|
|
31
|
+
}
|
|
32
|
+
validityMessage = element.validationMessage;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return { validityState, validityMessage };
|
|
36
|
+
};
|
|
37
|
+
this.validateFormElement = (element = null) => {
|
|
38
|
+
if (element === null)
|
|
39
|
+
return;
|
|
40
|
+
if (this.isNoValidate)
|
|
41
|
+
return;
|
|
42
|
+
if (this.error)
|
|
43
|
+
return;
|
|
44
|
+
const { validityState, validityMessage } = this.getValidityStateData(element);
|
|
45
|
+
this.validityState = validityState;
|
|
46
|
+
this.validityMessage = validityMessage;
|
|
47
|
+
const isValid = this.validityState === 'valid';
|
|
48
|
+
this.valid = isValid;
|
|
49
|
+
this.invalid = !isValid;
|
|
50
|
+
this.rValidate.emit({
|
|
51
|
+
state: this.validityState,
|
|
52
|
+
message: this.validityMessage
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
this.onSubmitForm = (event) => {
|
|
56
|
+
if (this.isNoValidate)
|
|
57
|
+
return;
|
|
58
|
+
this.validateFormElement(this.nativeSelectedEl || this.nativeFirstEl);
|
|
59
|
+
if (!this.hasSelected || this.invalid) {
|
|
60
|
+
event.preventDefault();
|
|
61
|
+
event.stopPropagation();
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
this.onResetForm = () => {
|
|
65
|
+
this.reset();
|
|
66
|
+
};
|
|
67
|
+
this.onLabelClick = () => {
|
|
68
|
+
const radioButtonEl = this.radioButtonElements[0].shadowRoot.querySelector('[type="radio"]');
|
|
69
|
+
radioButtonEl === null || radioButtonEl === void 0 ? void 0 : radioButtonEl.focus();
|
|
70
|
+
};
|
|
71
|
+
this.contributeToFormData = (event) => {
|
|
72
|
+
appendControlToFormData(this.host, event.formData);
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Handles parent radio group value changes for nested groups.
|
|
76
|
+
* If this is a nested group with a parentValue specified, it will reset when
|
|
77
|
+
* the parent group's value changes to something other than the parentValue.
|
|
78
|
+
*/
|
|
79
|
+
this.onParentGroupChange = (event) => {
|
|
80
|
+
// Only proceed if this group has a parentValue specified (indicating it's nested)
|
|
81
|
+
if (!this.parentValue)
|
|
82
|
+
return;
|
|
83
|
+
const parentNewValue = event.detail.value;
|
|
84
|
+
// If parent changed to a different value than our parentValue, reset this nested group
|
|
85
|
+
if (parentNewValue !== this.parentValue) {
|
|
86
|
+
this.clearValue();
|
|
87
|
+
// Emit rReset event to notify that the nested group was automatically reset
|
|
88
|
+
this.rReset.emit({
|
|
89
|
+
element: this.host,
|
|
90
|
+
value: null
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
rChangeAction(event) {
|
|
96
|
+
// Only handle events from direct children, not from nested radio-groups
|
|
97
|
+
const targetElement = event.target;
|
|
98
|
+
const isDirectChild = targetElement.parentElement === this.host;
|
|
99
|
+
if (!isDirectChild) {
|
|
100
|
+
return; // Ignore events from nested radio-groups
|
|
101
|
+
}
|
|
102
|
+
// Stop event from bubbling to parent radio-groups
|
|
103
|
+
event.stopPropagation();
|
|
104
|
+
this.resetValidity();
|
|
105
|
+
this.setValue(event.detail.value);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Resets the radio group to its initial state.
|
|
109
|
+
* This method clears the validity state and message, and sets the value and validity
|
|
110
|
+
* to their initial values.
|
|
111
|
+
*/
|
|
112
|
+
radioButtonClickAction(event) {
|
|
113
|
+
// Only handle events from direct children, not from nested radio-groups
|
|
114
|
+
const targetElement = event.target;
|
|
115
|
+
const isDirectChild = targetElement.parentElement === this.host;
|
|
116
|
+
if (!isDirectChild) {
|
|
117
|
+
return; // Ignore events from nested radio-groups
|
|
118
|
+
}
|
|
119
|
+
// Stop event from bubbling to parent radio-groups
|
|
120
|
+
event.stopPropagation();
|
|
121
|
+
!event.target.disabled && event.target.select();
|
|
122
|
+
}
|
|
123
|
+
get selectedIndex() {
|
|
124
|
+
return Array.from(this.radioButtonElements).findIndex(el => el.hasAttribute('checked'));
|
|
125
|
+
}
|
|
126
|
+
get prevIndex() {
|
|
127
|
+
const isNoSelected = this.selectedIndex === -1;
|
|
128
|
+
const isnativeFirstElement = this.selectedIndex === 0;
|
|
129
|
+
return isnativeFirstElement || isNoSelected ? this.radioButtonElements.length - 1 : this.selectedIndex - 1;
|
|
130
|
+
}
|
|
131
|
+
get focusedRadioButtonEl() {
|
|
132
|
+
// Query all descendants to find focused element, but it will only be used for direct children
|
|
133
|
+
return this.host.querySelector('r-radio-button.focused');
|
|
134
|
+
}
|
|
135
|
+
get focusedRadioButtonElIndex() {
|
|
136
|
+
return Array.from(this.radioButtonElements).indexOf(this.focusedRadioButtonEl);
|
|
137
|
+
}
|
|
138
|
+
get nextIndex() {
|
|
139
|
+
const isNoSelected = this.selectedIndex === -1;
|
|
140
|
+
if (isNoSelected) {
|
|
141
|
+
return this.focusedRadioButtonElIndex === -1 ? 0 : this.focusedRadioButtonElIndex + 1;
|
|
142
|
+
}
|
|
143
|
+
const isLastElement = this.selectedIndex === this.radioButtonElements.length - 1;
|
|
144
|
+
return isLastElement ? 0 : this.selectedIndex + 1;
|
|
145
|
+
}
|
|
146
|
+
radioButtonKeydownAction(event) {
|
|
147
|
+
var _a;
|
|
148
|
+
// Only handle events from direct children, not from nested radio-groups
|
|
149
|
+
const targetElement = event.target;
|
|
150
|
+
const isDirectChild = targetElement.parentElement === this.host;
|
|
151
|
+
if (!isDirectChild) {
|
|
152
|
+
return; // Ignore events from nested radio-groups
|
|
153
|
+
}
|
|
154
|
+
// Stop event from bubbling to parent radio-groups
|
|
155
|
+
event.stopPropagation();
|
|
156
|
+
switch (event.detail.code) {
|
|
157
|
+
case 'ArrowUp':
|
|
158
|
+
case 'ArrowLeft':
|
|
159
|
+
// Select previous radio button
|
|
160
|
+
this.radioButtonElements[this.prevIndex].select();
|
|
161
|
+
break;
|
|
162
|
+
case 'ArrowDown':
|
|
163
|
+
case 'ArrowRight':
|
|
164
|
+
// Select next radio button
|
|
165
|
+
this.radioButtonElements[this.nextIndex].select();
|
|
166
|
+
break;
|
|
167
|
+
case 'Enter': {
|
|
168
|
+
const submitEl = this.host.querySelector('[type="submit"]') ||
|
|
169
|
+
((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.querySelector('[type="submit"]'));
|
|
170
|
+
if (submitEl && 'triggerClick' in submitEl) {
|
|
171
|
+
submitEl === null || submitEl === void 0 ? void 0 : submitEl.triggerClick();
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
this.parentFormEl.requestSubmit();
|
|
175
|
+
}
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Resets the validity state and message of the radio group.
|
|
182
|
+
* This method clears the validity message and state, and sets the invalid
|
|
183
|
+
* property to its initial value.
|
|
184
|
+
*/
|
|
185
|
+
async resetValidity() {
|
|
186
|
+
this.validityMessage = null;
|
|
187
|
+
this.validityState = null;
|
|
188
|
+
this.invalid = this.initial['invalid'];
|
|
189
|
+
this.valid = !this.invalid;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Resets the radio group to its initial state.
|
|
193
|
+
*
|
|
194
|
+
* This method:
|
|
195
|
+
* - clears the validity state and message,
|
|
196
|
+
* - sets the value and validity to initial values,
|
|
197
|
+
* - if no initial value the radio group will be deselected,
|
|
198
|
+
* - restores the tabindex on the first element.
|
|
199
|
+
*/
|
|
200
|
+
async reset() {
|
|
201
|
+
this.resetValidity();
|
|
202
|
+
if (this.initial['value']) {
|
|
203
|
+
this.setValue(this.initial['value']);
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
// Set default value to null
|
|
207
|
+
this.clearValue();
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Sets the value of the radio group to the specified value.
|
|
211
|
+
* If a radio button with the specified value exists, it will be selected.
|
|
212
|
+
*
|
|
213
|
+
* @param value - The value to set for the radio group.
|
|
214
|
+
*/
|
|
215
|
+
async setValue(value) {
|
|
216
|
+
const element = Array.from(this.radioButtonElements).find(el => el.value === value);
|
|
217
|
+
if (element === undefined) {
|
|
218
|
+
this.clearValue();
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
this.value = value;
|
|
222
|
+
element === null || element === void 0 ? void 0 : element.select();
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Gets the current value of the radio group.
|
|
226
|
+
*
|
|
227
|
+
* @returns The current value of the radio group.
|
|
228
|
+
*/
|
|
229
|
+
async getValue() {
|
|
230
|
+
return this.value || null;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Clears the value of the radio group and deselects all radio buttons.
|
|
234
|
+
* This method sets the value to null and deselects all radio buttons in the group.
|
|
235
|
+
*/
|
|
236
|
+
async clearValue() {
|
|
237
|
+
var _a, _b, _c, _d, _e, _f;
|
|
238
|
+
const isSelectedEqualsFirst = ((_a = this.nativeSelectedEl) === null || _a === void 0 ? void 0 : _a.value) === ((_b = this.nativeFirstEl) === null || _b === void 0 ? void 0 : _b.value);
|
|
239
|
+
if (!isSelectedEqualsFirst) {
|
|
240
|
+
(_c = this.nativeSelectedEl) === null || _c === void 0 ? void 0 : _c.setAttribute('tabindex', '-1');
|
|
241
|
+
}
|
|
242
|
+
(_d = this.nativeSelectedEl) === null || _d === void 0 ? void 0 : _d.setAttribute('tabindex', '-1');
|
|
243
|
+
(_e = this.nativeFirstEl) === null || _e === void 0 ? void 0 : _e.setAttribute('tabindex', '0');
|
|
244
|
+
(_f = this.selectedRadioButtonElement) === null || _f === void 0 ? void 0 : _f.removeAttribute('checked');
|
|
245
|
+
this.value = null;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Validates the radio group without triggering UI and returns a boolean indicating its validity.
|
|
249
|
+
* @returns A boolean indicating whether the radio group is valid.
|
|
250
|
+
*/
|
|
251
|
+
async checkValidity() {
|
|
252
|
+
const element = this.nativeSelectedEl || this.nativeFirstEl || null;
|
|
253
|
+
const { validityState } = this.getValidityStateData(element);
|
|
254
|
+
return validityState === 'valid';
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Validates the radio group and displays the validity state.
|
|
258
|
+
*/
|
|
259
|
+
async reportValidity() {
|
|
260
|
+
const element = this.nativeSelectedEl || this.nativeFirstEl || null;
|
|
261
|
+
this.validateFormElement(element);
|
|
262
|
+
return this.validityState === 'valid';
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Sets a custom validity message for the radio group.
|
|
266
|
+
* If the message is not empty, the radio group will be considered invalid.
|
|
267
|
+
*
|
|
268
|
+
* @param message - The custom validity message to set.
|
|
269
|
+
*/
|
|
270
|
+
async setCustomValidity(message) {
|
|
271
|
+
const element = this.nativeSelectedEl || this.nativeFirstEl || null;
|
|
272
|
+
this.customErrorMessage = message;
|
|
273
|
+
this.validateFormElement(element);
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Sets focus on the radio button element.
|
|
277
|
+
* */
|
|
278
|
+
async setFocus() {
|
|
279
|
+
const element = this.selectedRadioButtonElement || this.radioButtonElements[0] || null;
|
|
280
|
+
element === null || element === void 0 ? void 0 : element.setFocus();
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Blurs the radio button element.
|
|
284
|
+
* */
|
|
285
|
+
async setBlur() {
|
|
286
|
+
var _a;
|
|
287
|
+
(_a = this.focusedRadioButtonEl) === null || _a === void 0 ? void 0 : _a.setBlur();
|
|
288
|
+
}
|
|
289
|
+
/** Determine whether this element should be ignored during Constraint Validation API validation. */
|
|
290
|
+
get isNoValidate() {
|
|
291
|
+
var _a;
|
|
292
|
+
return (((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.hasAttribute('novalidate')) ||
|
|
293
|
+
this.novalidate ||
|
|
294
|
+
!this.required ||
|
|
295
|
+
false);
|
|
296
|
+
}
|
|
297
|
+
/** Identify wrapping form element */
|
|
298
|
+
get parentFormEl() {
|
|
299
|
+
return this.host.closest('form') || document.querySelector(`#${this.form}`) || null;
|
|
300
|
+
}
|
|
301
|
+
get radioButtonElements() {
|
|
302
|
+
// Use :scope > to only select direct children, excluding nested radio-group buttons
|
|
303
|
+
return this.host.querySelectorAll(':scope > r-radio-button:not([disabled]:not([disabled="false"]))');
|
|
304
|
+
}
|
|
305
|
+
get selectedRadioButtonElement() {
|
|
306
|
+
return Array.from(this.radioButtonElements).find(el => el.checked || el.hasAttribute('checked')) || null;
|
|
307
|
+
}
|
|
308
|
+
get hasSelected() {
|
|
309
|
+
return Array.from(this.radioButtonElements).some(el => el.checked || el.hasAttribute('checked'));
|
|
310
|
+
}
|
|
311
|
+
get nativeSelectedEl() {
|
|
312
|
+
var _a, _b;
|
|
313
|
+
if (this.selectedRadioButtonElement === null)
|
|
314
|
+
return null;
|
|
315
|
+
return ((_b = (_a = this.selectedRadioButtonElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.r-radio-button--input')) || null;
|
|
316
|
+
}
|
|
317
|
+
get nativeFirstEl() {
|
|
318
|
+
var _a, _b;
|
|
319
|
+
return ((_b = (_a = this.radioButtonElements[0]) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.r-radio-button--input')) || null;
|
|
320
|
+
}
|
|
321
|
+
get hasValidationError() {
|
|
322
|
+
return this.validityState && this.validityState !== 'valid' && !!(this.validityMessage || this.customErrorMessage);
|
|
323
|
+
}
|
|
324
|
+
passPropsToGroupItems(props = {}) {
|
|
325
|
+
Object.entries(props).forEach(([key, value]) => {
|
|
326
|
+
this.radioButtonElements.forEach(el => {
|
|
327
|
+
if (typeof value === 'string')
|
|
328
|
+
el.setAttribute(key, value);
|
|
329
|
+
if (typeof value === 'boolean' && value)
|
|
330
|
+
el.setAttribute(key, '');
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
selectGroupItemByValue() {
|
|
335
|
+
if (this.hasSelected && !this.value) {
|
|
336
|
+
this.value = this.selectedRadioButtonElement.value;
|
|
337
|
+
}
|
|
338
|
+
this.setValue(this.value);
|
|
339
|
+
}
|
|
340
|
+
setTabindex() {
|
|
341
|
+
const el = this.nativeSelectedEl || this.nativeFirstEl;
|
|
342
|
+
el === null || el === void 0 ? void 0 : el.setAttribute('tabindex', '0');
|
|
343
|
+
}
|
|
344
|
+
get parentRadioGroup() {
|
|
345
|
+
var _a;
|
|
346
|
+
// Find the parent radio group element
|
|
347
|
+
return ((_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.closest('r-radio-group')) || null;
|
|
348
|
+
}
|
|
349
|
+
connectFormEventListeners() {
|
|
350
|
+
var _a, _b, _c;
|
|
351
|
+
(_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.addEventListener('formdata', this.contributeToFormData);
|
|
352
|
+
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.addEventListener('reset', this.onResetForm);
|
|
353
|
+
(_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.addEventListener('submit', this.onSubmitForm, { capture: true });
|
|
354
|
+
}
|
|
355
|
+
disconnectFormEventListeners() {
|
|
356
|
+
var _a, _b, _c;
|
|
357
|
+
(_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('formdata', this.contributeToFormData);
|
|
358
|
+
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('reset', this.onResetForm);
|
|
359
|
+
(_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('submit', this.onSubmitForm);
|
|
360
|
+
}
|
|
361
|
+
connectParentGroupListener() {
|
|
362
|
+
// Only connect if this is a nested group (has parentValue specified)
|
|
363
|
+
if (this.parentValue && this.parentRadioGroup) {
|
|
364
|
+
this.parentRadioGroup.addEventListener('rChange', this.onParentGroupChange);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
disconnectParentGroupListener() {
|
|
368
|
+
if (this.parentValue && this.parentRadioGroup) {
|
|
369
|
+
this.parentRadioGroup.removeEventListener('rChange', this.onParentGroupChange);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
get ariaDescribedBy() {
|
|
373
|
+
const messageId = `${this.uniqueId}-message`;
|
|
374
|
+
return this.hint ? `${this.uniqueId}-hint ${messageId}` : messageId;
|
|
375
|
+
}
|
|
376
|
+
connectedCallback() {
|
|
377
|
+
this.connectFormEventListeners();
|
|
378
|
+
this.connectParentGroupListener();
|
|
379
|
+
}
|
|
380
|
+
disconnectedCallback() {
|
|
381
|
+
this.disconnectFormEventListeners();
|
|
382
|
+
this.disconnectParentGroupListener();
|
|
383
|
+
}
|
|
384
|
+
componentWillLoad() {
|
|
385
|
+
const { required, name } = this;
|
|
386
|
+
this.passPropsToGroupItems({ required, name });
|
|
387
|
+
// If `value` is provided: item within group with such value shall be selected
|
|
388
|
+
this.selectGroupItemByValue();
|
|
389
|
+
this.initial['value'] = this.value;
|
|
390
|
+
this.initial['invalid'] = this.invalid;
|
|
391
|
+
}
|
|
392
|
+
componentDidLoad() {
|
|
393
|
+
const { name, required } = this;
|
|
394
|
+
this.passPropsToGroupItems({ name, required });
|
|
395
|
+
this.setTabindex();
|
|
396
|
+
if (this.autofocus) {
|
|
397
|
+
// Use setTimeout to ensure setValue has completed and checked state is synced
|
|
398
|
+
setTimeout(() => {
|
|
399
|
+
this.setFocus();
|
|
400
|
+
}, 0);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
render() {
|
|
404
|
+
const { label, hint, fieldIndicator, error, uniqueId, invalid } = this;
|
|
405
|
+
const fieldsetAttrs = {
|
|
406
|
+
'aria-invalid': `${invalid || false}`,
|
|
407
|
+
'aria-describedby': this.ariaDescribedBy
|
|
408
|
+
};
|
|
409
|
+
return (h(Host, { key: 'a542762b5523cd568341316eb9e1d3ba328662f3' }, h("fieldset", Object.assign({ key: 'cd6877a67816eff8a423a60ef1e9079cab4ea21a', class: "r-radio-group" }, fieldsetAttrs, { onClick: this.onLabelClick }), label &&
|
|
410
|
+
h("legend", { key: '00adcfa6fa8296f295b48f90d19b11928fb580d6', class: "r-radio-group--label-container" }, h("r-label", { key: 'f353298317ffe0043dd0dae0905499ef17fa90ba', id: `${uniqueId}-label`, class: "r-radio-group--label", "field-indicator": fieldIndicator }, label), h("slot", { key: '5e9ecf61a1a65f20ed3e48006f2a913723bdfb38', name: "popover" })), hint &&
|
|
411
|
+
h("r-hint", { key: '0e266db62c6bb2f8a770502ab64ca7f2edc54d39', id: `${uniqueId}-hint`, class: "r-radio-group--hint", role: "note" }, hint), h("div", { key: '2d951da223a892721db7e5d858e52b27eebfcf98', class: "r-radio-group--content" }, h("slot", { key: '341225a7be93a07fa9c3e4c96241f84c8008b182' })), h("div", { key: '255d3bbd8fd5b192e4dd2cca03bb7b0e2bdefd0e', id: `${uniqueId}-message`, "aria-live": "polite", role: "alert", class: "r-radio-group--message" }, invalid && error &&
|
|
412
|
+
h("r-hint", { key: '7c91e92235c2d4bd36baf327ce0bf7ed18982886', variant: "error" }, error), this.hasValidationError &&
|
|
413
|
+
h("r-hint", { key: '522a8a74f88356d42929f9e1fe4ab2a4326d25d7', "aria-live": "polite", id: `${uniqueId}-message`, role: "alert", variant: "error" }, this.customErrorMessage || this.validityMessage)))));
|
|
414
|
+
}
|
|
415
|
+
static get is() { return "r-radio-group"; }
|
|
416
|
+
static get encapsulation() { return "shadow"; }
|
|
417
|
+
static get originalStyleUrls() {
|
|
418
|
+
return {
|
|
419
|
+
"$": ["radio-group.css"]
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
static get styleUrls() {
|
|
423
|
+
return {
|
|
424
|
+
"$": ["radio-group.css"]
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
static get properties() {
|
|
428
|
+
return {
|
|
429
|
+
"form": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"attribute": "form",
|
|
432
|
+
"mutable": false,
|
|
433
|
+
"complexType": {
|
|
434
|
+
"original": "string",
|
|
435
|
+
"resolved": "string",
|
|
436
|
+
"references": {}
|
|
437
|
+
},
|
|
438
|
+
"required": false,
|
|
439
|
+
"optional": true,
|
|
440
|
+
"docs": {
|
|
441
|
+
"tags": [],
|
|
442
|
+
"text": "Specifies the `id` of the `<form>` to which the element belongs"
|
|
443
|
+
},
|
|
444
|
+
"getter": false,
|
|
445
|
+
"setter": false,
|
|
446
|
+
"reflect": true
|
|
447
|
+
},
|
|
448
|
+
"name": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"attribute": "name",
|
|
451
|
+
"mutable": false,
|
|
452
|
+
"complexType": {
|
|
453
|
+
"original": "string",
|
|
454
|
+
"resolved": "string",
|
|
455
|
+
"references": {}
|
|
456
|
+
},
|
|
457
|
+
"required": false,
|
|
458
|
+
"optional": true,
|
|
459
|
+
"docs": {
|
|
460
|
+
"tags": [],
|
|
461
|
+
"text": "Specifies common `name` property that is passed to each `r-radio-button`"
|
|
462
|
+
},
|
|
463
|
+
"getter": false,
|
|
464
|
+
"setter": false,
|
|
465
|
+
"reflect": true
|
|
466
|
+
},
|
|
467
|
+
"value": {
|
|
468
|
+
"type": "string",
|
|
469
|
+
"attribute": "value",
|
|
470
|
+
"mutable": true,
|
|
471
|
+
"complexType": {
|
|
472
|
+
"original": "string",
|
|
473
|
+
"resolved": "string",
|
|
474
|
+
"references": {}
|
|
475
|
+
},
|
|
476
|
+
"required": false,
|
|
477
|
+
"optional": true,
|
|
478
|
+
"docs": {
|
|
479
|
+
"tags": [],
|
|
480
|
+
"text": "Displays currently selected value"
|
|
481
|
+
},
|
|
482
|
+
"getter": false,
|
|
483
|
+
"setter": false,
|
|
484
|
+
"reflect": true
|
|
485
|
+
},
|
|
486
|
+
"novalidate": {
|
|
487
|
+
"type": "boolean",
|
|
488
|
+
"attribute": "novalidate",
|
|
489
|
+
"mutable": false,
|
|
490
|
+
"complexType": {
|
|
491
|
+
"original": "boolean",
|
|
492
|
+
"resolved": "boolean",
|
|
493
|
+
"references": {}
|
|
494
|
+
},
|
|
495
|
+
"required": false,
|
|
496
|
+
"optional": true,
|
|
497
|
+
"docs": {
|
|
498
|
+
"tags": [],
|
|
499
|
+
"text": "Specifies if element must be ignored during validation of the form elements"
|
|
500
|
+
},
|
|
501
|
+
"getter": false,
|
|
502
|
+
"setter": false,
|
|
503
|
+
"reflect": false
|
|
504
|
+
},
|
|
505
|
+
"label": {
|
|
506
|
+
"type": "string",
|
|
507
|
+
"attribute": "label",
|
|
508
|
+
"mutable": false,
|
|
509
|
+
"complexType": {
|
|
510
|
+
"original": "string",
|
|
511
|
+
"resolved": "string",
|
|
512
|
+
"references": {}
|
|
513
|
+
},
|
|
514
|
+
"required": true,
|
|
515
|
+
"optional": false,
|
|
516
|
+
"docs": {
|
|
517
|
+
"tags": [],
|
|
518
|
+
"text": "The text of the label rendered before the set of radio-buttons"
|
|
519
|
+
},
|
|
520
|
+
"getter": false,
|
|
521
|
+
"setter": false,
|
|
522
|
+
"reflect": false
|
|
523
|
+
},
|
|
524
|
+
"required": {
|
|
525
|
+
"type": "boolean",
|
|
526
|
+
"attribute": "required",
|
|
527
|
+
"mutable": false,
|
|
528
|
+
"complexType": {
|
|
529
|
+
"original": "boolean",
|
|
530
|
+
"resolved": "boolean",
|
|
531
|
+
"references": {}
|
|
532
|
+
},
|
|
533
|
+
"required": false,
|
|
534
|
+
"optional": true,
|
|
535
|
+
"docs": {
|
|
536
|
+
"tags": [],
|
|
537
|
+
"text": "Specifies if radio-button within group must be checked"
|
|
538
|
+
},
|
|
539
|
+
"getter": false,
|
|
540
|
+
"setter": false,
|
|
541
|
+
"reflect": false
|
|
542
|
+
},
|
|
543
|
+
"fieldIndicator": {
|
|
544
|
+
"type": "string",
|
|
545
|
+
"attribute": "field-indicator",
|
|
546
|
+
"mutable": false,
|
|
547
|
+
"complexType": {
|
|
548
|
+
"original": "string",
|
|
549
|
+
"resolved": "string",
|
|
550
|
+
"references": {}
|
|
551
|
+
},
|
|
552
|
+
"required": false,
|
|
553
|
+
"optional": true,
|
|
554
|
+
"docs": {
|
|
555
|
+
"tags": [],
|
|
556
|
+
"text": "Define the marker text if the field label is marked\nField indicator can be Required*, Optional or a translation of those two options."
|
|
557
|
+
},
|
|
558
|
+
"getter": false,
|
|
559
|
+
"setter": false,
|
|
560
|
+
"reflect": false
|
|
561
|
+
},
|
|
562
|
+
"valueMissingMessage": {
|
|
563
|
+
"type": "string",
|
|
564
|
+
"attribute": "value-missing-message",
|
|
565
|
+
"mutable": false,
|
|
566
|
+
"complexType": {
|
|
567
|
+
"original": "string",
|
|
568
|
+
"resolved": "string",
|
|
569
|
+
"references": {}
|
|
570
|
+
},
|
|
571
|
+
"required": false,
|
|
572
|
+
"optional": true,
|
|
573
|
+
"docs": {
|
|
574
|
+
"tags": [],
|
|
575
|
+
"text": "Set custom message for `valueMissing` property of a ValidityState object (set by `required`) within Constrain Validation API"
|
|
576
|
+
},
|
|
577
|
+
"getter": false,
|
|
578
|
+
"setter": false,
|
|
579
|
+
"reflect": false
|
|
580
|
+
},
|
|
581
|
+
"valid": {
|
|
582
|
+
"type": "boolean",
|
|
583
|
+
"attribute": "valid",
|
|
584
|
+
"mutable": true,
|
|
585
|
+
"complexType": {
|
|
586
|
+
"original": "boolean",
|
|
587
|
+
"resolved": "boolean",
|
|
588
|
+
"references": {}
|
|
589
|
+
},
|
|
590
|
+
"required": false,
|
|
591
|
+
"optional": true,
|
|
592
|
+
"docs": {
|
|
593
|
+
"tags": [],
|
|
594
|
+
"text": "Apply validation success visual style"
|
|
595
|
+
},
|
|
596
|
+
"getter": false,
|
|
597
|
+
"setter": false,
|
|
598
|
+
"reflect": true
|
|
599
|
+
},
|
|
600
|
+
"invalid": {
|
|
601
|
+
"type": "boolean",
|
|
602
|
+
"attribute": "invalid",
|
|
603
|
+
"mutable": true,
|
|
604
|
+
"complexType": {
|
|
605
|
+
"original": "boolean",
|
|
606
|
+
"resolved": "boolean",
|
|
607
|
+
"references": {}
|
|
608
|
+
},
|
|
609
|
+
"required": false,
|
|
610
|
+
"optional": true,
|
|
611
|
+
"docs": {
|
|
612
|
+
"tags": [],
|
|
613
|
+
"text": "Apply validation error visual style"
|
|
614
|
+
},
|
|
615
|
+
"getter": false,
|
|
616
|
+
"setter": false,
|
|
617
|
+
"reflect": true
|
|
618
|
+
},
|
|
619
|
+
"error": {
|
|
620
|
+
"type": "string",
|
|
621
|
+
"attribute": "error",
|
|
622
|
+
"mutable": false,
|
|
623
|
+
"complexType": {
|
|
624
|
+
"original": "string",
|
|
625
|
+
"resolved": "string",
|
|
626
|
+
"references": {}
|
|
627
|
+
},
|
|
628
|
+
"required": false,
|
|
629
|
+
"optional": true,
|
|
630
|
+
"docs": {
|
|
631
|
+
"tags": [],
|
|
632
|
+
"text": "Custom validation error message"
|
|
633
|
+
},
|
|
634
|
+
"getter": false,
|
|
635
|
+
"setter": false,
|
|
636
|
+
"reflect": false
|
|
637
|
+
},
|
|
638
|
+
"customErrorMessage": {
|
|
639
|
+
"type": "string",
|
|
640
|
+
"attribute": "custom-error-message",
|
|
641
|
+
"mutable": false,
|
|
642
|
+
"complexType": {
|
|
643
|
+
"original": "string",
|
|
644
|
+
"resolved": "string",
|
|
645
|
+
"references": {}
|
|
646
|
+
},
|
|
647
|
+
"required": false,
|
|
648
|
+
"optional": true,
|
|
649
|
+
"docs": {
|
|
650
|
+
"tags": [],
|
|
651
|
+
"text": "Set custom message for `customError` property of a ValidityState object indicating whether the element's custom validity message has been set to a non-empty string by calling the element's setCustomValidity() method."
|
|
652
|
+
},
|
|
653
|
+
"getter": false,
|
|
654
|
+
"setter": false,
|
|
655
|
+
"reflect": false
|
|
656
|
+
},
|
|
657
|
+
"hint": {
|
|
658
|
+
"type": "string",
|
|
659
|
+
"attribute": "hint",
|
|
660
|
+
"mutable": false,
|
|
661
|
+
"complexType": {
|
|
662
|
+
"original": "string",
|
|
663
|
+
"resolved": "string",
|
|
664
|
+
"references": {}
|
|
665
|
+
},
|
|
666
|
+
"required": false,
|
|
667
|
+
"optional": true,
|
|
668
|
+
"docs": {
|
|
669
|
+
"tags": [],
|
|
670
|
+
"text": "Optional hint, visually presented under the group of radio-buttons\ngiving additional context to the user"
|
|
671
|
+
},
|
|
672
|
+
"getter": false,
|
|
673
|
+
"setter": false,
|
|
674
|
+
"reflect": false
|
|
675
|
+
},
|
|
676
|
+
"variant": {
|
|
677
|
+
"type": "string",
|
|
678
|
+
"attribute": "variant",
|
|
679
|
+
"mutable": false,
|
|
680
|
+
"complexType": {
|
|
681
|
+
"original": "RadioGroupVariant",
|
|
682
|
+
"resolved": "\"contained\" | \"standard\"",
|
|
683
|
+
"references": {
|
|
684
|
+
"RadioGroupVariant": {
|
|
685
|
+
"location": "import",
|
|
686
|
+
"path": "./exports",
|
|
687
|
+
"id": "src/components/radio-group/exports.ts::RadioGroupVariant"
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"required": false,
|
|
692
|
+
"optional": false,
|
|
693
|
+
"docs": {
|
|
694
|
+
"tags": [],
|
|
695
|
+
"text": "Controls the style variation of the radio buttons."
|
|
696
|
+
},
|
|
697
|
+
"getter": false,
|
|
698
|
+
"setter": false,
|
|
699
|
+
"reflect": true,
|
|
700
|
+
"defaultValue": "'standard'"
|
|
701
|
+
},
|
|
702
|
+
"autofocus": {
|
|
703
|
+
"type": "boolean",
|
|
704
|
+
"attribute": "autofocus",
|
|
705
|
+
"mutable": false,
|
|
706
|
+
"complexType": {
|
|
707
|
+
"original": "boolean",
|
|
708
|
+
"resolved": "boolean",
|
|
709
|
+
"references": {}
|
|
710
|
+
},
|
|
711
|
+
"required": false,
|
|
712
|
+
"optional": false,
|
|
713
|
+
"docs": {
|
|
714
|
+
"tags": [],
|
|
715
|
+
"text": "When set to `true`, automatically focuses the first enabled radio button in the group on mount.\nThis will focus the selected radio button if one exists, or the first enabled radio button otherwise."
|
|
716
|
+
},
|
|
717
|
+
"getter": false,
|
|
718
|
+
"setter": false,
|
|
719
|
+
"reflect": false,
|
|
720
|
+
"defaultValue": "false"
|
|
721
|
+
},
|
|
722
|
+
"parentValue": {
|
|
723
|
+
"type": "string",
|
|
724
|
+
"attribute": "parent-value",
|
|
725
|
+
"mutable": false,
|
|
726
|
+
"complexType": {
|
|
727
|
+
"original": "string",
|
|
728
|
+
"resolved": "string",
|
|
729
|
+
"references": {}
|
|
730
|
+
},
|
|
731
|
+
"required": false,
|
|
732
|
+
"optional": true,
|
|
733
|
+
"docs": {
|
|
734
|
+
"tags": [],
|
|
735
|
+
"text": "For nested radio groups: specifies the parent radio button value that this nested group belongs to.\nWhen the parent group's value changes to a different value, this nested group will be automatically reset.\nThis ensures nested selections are only maintained when their parent context is active."
|
|
736
|
+
},
|
|
737
|
+
"getter": false,
|
|
738
|
+
"setter": false,
|
|
739
|
+
"reflect": false
|
|
740
|
+
}
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
static get states() {
|
|
744
|
+
return {
|
|
745
|
+
"validityState": {},
|
|
746
|
+
"validityMessage": {}
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
static get events() {
|
|
750
|
+
return [{
|
|
751
|
+
"method": "rValidate",
|
|
752
|
+
"name": "rValidate",
|
|
753
|
+
"bubbles": true,
|
|
754
|
+
"cancelable": true,
|
|
755
|
+
"composed": true,
|
|
756
|
+
"docs": {
|
|
757
|
+
"tags": [],
|
|
758
|
+
"text": "Emits event after each validation"
|
|
759
|
+
},
|
|
760
|
+
"complexType": {
|
|
761
|
+
"original": "{\n state: string,\n message: string\n }",
|
|
762
|
+
"resolved": "{ state: string; message: string; }",
|
|
763
|
+
"references": {}
|
|
764
|
+
}
|
|
765
|
+
}, {
|
|
766
|
+
"method": "rChange",
|
|
767
|
+
"name": "rChange",
|
|
768
|
+
"bubbles": true,
|
|
769
|
+
"cancelable": true,
|
|
770
|
+
"composed": true,
|
|
771
|
+
"docs": {
|
|
772
|
+
"tags": [],
|
|
773
|
+
"text": "Emits `rChange` when component's value has been changed"
|
|
774
|
+
},
|
|
775
|
+
"complexType": {
|
|
776
|
+
"original": "{\n element: HTMLRRadioGroupElement,\n value: any\n }",
|
|
777
|
+
"resolved": "{ element: HTMLRRadioGroupElement; value: any; }",
|
|
778
|
+
"references": {
|
|
779
|
+
"HTMLRRadioGroupElement": {
|
|
780
|
+
"location": "global",
|
|
781
|
+
"id": "global::HTMLRRadioGroupElement"
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
}, {
|
|
786
|
+
"method": "rReset",
|
|
787
|
+
"name": "rReset",
|
|
788
|
+
"bubbles": true,
|
|
789
|
+
"cancelable": true,
|
|
790
|
+
"composed": true,
|
|
791
|
+
"docs": {
|
|
792
|
+
"tags": [],
|
|
793
|
+
"text": "Emits `rReset` when component was reset to initial state by form reset"
|
|
794
|
+
},
|
|
795
|
+
"complexType": {
|
|
796
|
+
"original": "{\n element: HTMLRRadioGroupElement,\n value: any\n }",
|
|
797
|
+
"resolved": "{ element: HTMLRRadioGroupElement; value: any; }",
|
|
798
|
+
"references": {
|
|
799
|
+
"HTMLRRadioGroupElement": {
|
|
800
|
+
"location": "global",
|
|
801
|
+
"id": "global::HTMLRRadioGroupElement"
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}];
|
|
806
|
+
}
|
|
807
|
+
static get methods() {
|
|
808
|
+
return {
|
|
809
|
+
"resetValidity": {
|
|
810
|
+
"complexType": {
|
|
811
|
+
"signature": "() => Promise<void>",
|
|
812
|
+
"parameters": [],
|
|
813
|
+
"references": {
|
|
814
|
+
"Promise": {
|
|
815
|
+
"location": "global",
|
|
816
|
+
"id": "global::Promise"
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
"return": "Promise<void>"
|
|
820
|
+
},
|
|
821
|
+
"docs": {
|
|
822
|
+
"text": "Resets the validity state and message of the radio group.\nThis method clears the validity message and state, and sets the invalid\nproperty to its initial value.",
|
|
823
|
+
"tags": []
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"reset": {
|
|
827
|
+
"complexType": {
|
|
828
|
+
"signature": "() => Promise<void>",
|
|
829
|
+
"parameters": [],
|
|
830
|
+
"references": {
|
|
831
|
+
"Promise": {
|
|
832
|
+
"location": "global",
|
|
833
|
+
"id": "global::Promise"
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
"return": "Promise<void>"
|
|
837
|
+
},
|
|
838
|
+
"docs": {
|
|
839
|
+
"text": "Resets the radio group to its initial state.\n\nThis method:\n- clears the validity state and message, \n- sets the value and validity to initial values,\n- if no initial value the radio group will be deselected,\n- restores the tabindex on the first element.",
|
|
840
|
+
"tags": []
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
"setValue": {
|
|
844
|
+
"complexType": {
|
|
845
|
+
"signature": "(value: string | null) => Promise<void>",
|
|
846
|
+
"parameters": [{
|
|
847
|
+
"name": "value",
|
|
848
|
+
"type": "string",
|
|
849
|
+
"docs": "- The value to set for the radio group."
|
|
850
|
+
}],
|
|
851
|
+
"references": {
|
|
852
|
+
"Promise": {
|
|
853
|
+
"location": "global",
|
|
854
|
+
"id": "global::Promise"
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
"return": "Promise<void>"
|
|
858
|
+
},
|
|
859
|
+
"docs": {
|
|
860
|
+
"text": "Sets the value of the radio group to the specified value.\nIf a radio button with the specified value exists, it will be selected.",
|
|
861
|
+
"tags": [{
|
|
862
|
+
"name": "param",
|
|
863
|
+
"text": "value - The value to set for the radio group."
|
|
864
|
+
}]
|
|
865
|
+
}
|
|
866
|
+
},
|
|
867
|
+
"getValue": {
|
|
868
|
+
"complexType": {
|
|
869
|
+
"signature": "() => Promise<string | null>",
|
|
870
|
+
"parameters": [],
|
|
871
|
+
"references": {
|
|
872
|
+
"Promise": {
|
|
873
|
+
"location": "global",
|
|
874
|
+
"id": "global::Promise"
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
"return": "Promise<string>"
|
|
878
|
+
},
|
|
879
|
+
"docs": {
|
|
880
|
+
"text": "Gets the current value of the radio group.",
|
|
881
|
+
"tags": [{
|
|
882
|
+
"name": "returns",
|
|
883
|
+
"text": "The current value of the radio group."
|
|
884
|
+
}]
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
"clearValue": {
|
|
888
|
+
"complexType": {
|
|
889
|
+
"signature": "() => Promise<void>",
|
|
890
|
+
"parameters": [],
|
|
891
|
+
"references": {
|
|
892
|
+
"Promise": {
|
|
893
|
+
"location": "global",
|
|
894
|
+
"id": "global::Promise"
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
"return": "Promise<void>"
|
|
898
|
+
},
|
|
899
|
+
"docs": {
|
|
900
|
+
"text": "Clears the value of the radio group and deselects all radio buttons.\nThis method sets the value to null and deselects all radio buttons in the group.",
|
|
901
|
+
"tags": []
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
"checkValidity": {
|
|
905
|
+
"complexType": {
|
|
906
|
+
"signature": "() => Promise<boolean>",
|
|
907
|
+
"parameters": [],
|
|
908
|
+
"references": {
|
|
909
|
+
"Promise": {
|
|
910
|
+
"location": "global",
|
|
911
|
+
"id": "global::Promise"
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
"return": "Promise<boolean>"
|
|
915
|
+
},
|
|
916
|
+
"docs": {
|
|
917
|
+
"text": "Validates the radio group without triggering UI and returns a boolean indicating its validity.",
|
|
918
|
+
"tags": [{
|
|
919
|
+
"name": "returns",
|
|
920
|
+
"text": "A boolean indicating whether the radio group is valid."
|
|
921
|
+
}]
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
"reportValidity": {
|
|
925
|
+
"complexType": {
|
|
926
|
+
"signature": "() => Promise<boolean>",
|
|
927
|
+
"parameters": [],
|
|
928
|
+
"references": {
|
|
929
|
+
"Promise": {
|
|
930
|
+
"location": "global",
|
|
931
|
+
"id": "global::Promise"
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
"return": "Promise<boolean>"
|
|
935
|
+
},
|
|
936
|
+
"docs": {
|
|
937
|
+
"text": "Validates the radio group and displays the validity state.",
|
|
938
|
+
"tags": []
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
"setCustomValidity": {
|
|
942
|
+
"complexType": {
|
|
943
|
+
"signature": "(message: string) => Promise<void>",
|
|
944
|
+
"parameters": [{
|
|
945
|
+
"name": "message",
|
|
946
|
+
"type": "string",
|
|
947
|
+
"docs": "- The custom validity message to set."
|
|
948
|
+
}],
|
|
949
|
+
"references": {
|
|
950
|
+
"Promise": {
|
|
951
|
+
"location": "global",
|
|
952
|
+
"id": "global::Promise"
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
"return": "Promise<void>"
|
|
956
|
+
},
|
|
957
|
+
"docs": {
|
|
958
|
+
"text": "Sets a custom validity message for the radio group.\nIf the message is not empty, the radio group will be considered invalid.",
|
|
959
|
+
"tags": [{
|
|
960
|
+
"name": "param",
|
|
961
|
+
"text": "message - The custom validity message to set."
|
|
962
|
+
}]
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
"setFocus": {
|
|
966
|
+
"complexType": {
|
|
967
|
+
"signature": "() => Promise<void>",
|
|
968
|
+
"parameters": [],
|
|
969
|
+
"references": {
|
|
970
|
+
"Promise": {
|
|
971
|
+
"location": "global",
|
|
972
|
+
"id": "global::Promise"
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
"return": "Promise<void>"
|
|
976
|
+
},
|
|
977
|
+
"docs": {
|
|
978
|
+
"text": "Sets focus on the radio button element.",
|
|
979
|
+
"tags": []
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
"setBlur": {
|
|
983
|
+
"complexType": {
|
|
984
|
+
"signature": "() => Promise<void>",
|
|
985
|
+
"parameters": [],
|
|
986
|
+
"references": {
|
|
987
|
+
"Promise": {
|
|
988
|
+
"location": "global",
|
|
989
|
+
"id": "global::Promise"
|
|
990
|
+
}
|
|
991
|
+
},
|
|
992
|
+
"return": "Promise<void>"
|
|
993
|
+
},
|
|
994
|
+
"docs": {
|
|
995
|
+
"text": "Blurs the radio button element.",
|
|
996
|
+
"tags": []
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
static get elementRef() { return "host"; }
|
|
1002
|
+
static get listeners() {
|
|
1003
|
+
return [{
|
|
1004
|
+
"name": "rChange",
|
|
1005
|
+
"method": "rChangeAction",
|
|
1006
|
+
"target": undefined,
|
|
1007
|
+
"capture": false,
|
|
1008
|
+
"passive": false
|
|
1009
|
+
}, {
|
|
1010
|
+
"name": "radioButtonClick",
|
|
1011
|
+
"method": "radioButtonClickAction",
|
|
1012
|
+
"target": undefined,
|
|
1013
|
+
"capture": false,
|
|
1014
|
+
"passive": false
|
|
1015
|
+
}, {
|
|
1016
|
+
"name": "radioButtonKeydown",
|
|
1017
|
+
"method": "radioButtonKeydownAction",
|
|
1018
|
+
"target": undefined,
|
|
1019
|
+
"capture": false,
|
|
1020
|
+
"passive": false
|
|
1021
|
+
}];
|
|
1022
|
+
}
|
|
1023
|
+
}
|