@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,744 @@
|
|
|
1
|
+
import { h, Host, Fragment } from "@stencil/core";
|
|
2
|
+
export class CheckboxGroup {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Specifies `value` property of the 'select-all', representing the group as a whole.
|
|
6
|
+
* */
|
|
7
|
+
this.value = '';
|
|
8
|
+
/**
|
|
9
|
+
* Specifies whether the `value` is required.
|
|
10
|
+
*/
|
|
11
|
+
this.required = false;
|
|
12
|
+
this.indeterminate = false;
|
|
13
|
+
this.allChecked = false;
|
|
14
|
+
this.noChecked = false;
|
|
15
|
+
this.validityState = '';
|
|
16
|
+
this.validityMessage = '';
|
|
17
|
+
this.uniqueId = `r-checkbox-group-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
18
|
+
this.initial = {};
|
|
19
|
+
this.renderMessage = () => {
|
|
20
|
+
const variant = this.valid ? 'success' : 'error';
|
|
21
|
+
return (h("r-hint", { variant: variant, role: "alert", "aria-live": "polite", id: `${this.uniqueId}-message`, class: this.message ? null : 'visually-hidden' }, this.message));
|
|
22
|
+
};
|
|
23
|
+
this.getValidityStateData = () => {
|
|
24
|
+
let validityState = '';
|
|
25
|
+
let validityMessage = '';
|
|
26
|
+
const isValid = this.checkboxes.some(checkbox => checkbox.checked);
|
|
27
|
+
if (this.required && !isValid) {
|
|
28
|
+
validityState = 'valueMissing';
|
|
29
|
+
validityMessage = this.valueMissingMessage || 'Please select at least one option.';
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
validityState = 'valid';
|
|
33
|
+
validityMessage = null;
|
|
34
|
+
}
|
|
35
|
+
return { validityState, validityMessage };
|
|
36
|
+
};
|
|
37
|
+
this.validateGroup = () => {
|
|
38
|
+
if (this.isNoValidate || !this.required)
|
|
39
|
+
return;
|
|
40
|
+
const { validityState, validityMessage } = this.getValidityStateData();
|
|
41
|
+
this.validityState = validityState;
|
|
42
|
+
this.validityMessage = validityMessage;
|
|
43
|
+
const isValid = this.validityState === 'valid';
|
|
44
|
+
this.valid = isValid;
|
|
45
|
+
this.invalid = !isValid;
|
|
46
|
+
this.noChecked = !isValid;
|
|
47
|
+
this.rValidate.emit({
|
|
48
|
+
state: this.validityState,
|
|
49
|
+
message: this.validityMessage
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
this.onSubmitForm = (event) => {
|
|
53
|
+
if (this.isNoValidate)
|
|
54
|
+
return;
|
|
55
|
+
this.validateGroup();
|
|
56
|
+
if (this.invalid) {
|
|
57
|
+
event.preventDefault();
|
|
58
|
+
event.stopPropagation();
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
this.onResetForm = () => {
|
|
62
|
+
this.resetValidity();
|
|
63
|
+
this.resetToInitial();
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/** Validates the checkbox group, displays provided message in case value is invalid. */
|
|
67
|
+
async setCustomValidity(message) {
|
|
68
|
+
this.customErrorMessage = message;
|
|
69
|
+
this.validateGroup();
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Validates the checkbox group without triggering UI and returns a boolean indicating its validity.
|
|
73
|
+
* @returns A boolean indicating whether the checkbox is valid.
|
|
74
|
+
*/
|
|
75
|
+
async checkValidity() {
|
|
76
|
+
const { validityState } = this.getValidityStateData();
|
|
77
|
+
return validityState === 'valid';
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Resets the validity state and message of the radio group.
|
|
81
|
+
* This method clears the validity message and state, and sets the invalid
|
|
82
|
+
* property to its initial value.
|
|
83
|
+
*/
|
|
84
|
+
async resetValidity() {
|
|
85
|
+
this.validityMessage = null;
|
|
86
|
+
this.validityState = null;
|
|
87
|
+
this.invalid = this.initial['invalid'];
|
|
88
|
+
this.valid = !this.invalid;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @returns {HTMLRCheckboxElement[]} - Returns all checkboxes in the slot.
|
|
92
|
+
*/
|
|
93
|
+
get checkboxes() {
|
|
94
|
+
return Array.from(this.host.querySelectorAll('r-checkbox'));
|
|
95
|
+
}
|
|
96
|
+
get hasMessage() {
|
|
97
|
+
return this.message !== null;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Checks all checkboxes in the slot.
|
|
101
|
+
*/
|
|
102
|
+
async checkAll() {
|
|
103
|
+
this.checkboxes.forEach(checkbox => {
|
|
104
|
+
checkbox.check();
|
|
105
|
+
});
|
|
106
|
+
this.allChecked = true;
|
|
107
|
+
this.noChecked = false;
|
|
108
|
+
this.indeterminate = false;
|
|
109
|
+
return this;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Unchecks all checkboxes in the slot.
|
|
113
|
+
*/
|
|
114
|
+
async uncheckAll() {
|
|
115
|
+
this.checkboxes.forEach(checkbox => {
|
|
116
|
+
var _a;
|
|
117
|
+
(_a = checkbox === null || checkbox === void 0 ? void 0 : checkbox.uncheck) === null || _a === void 0 ? void 0 : _a.call(checkbox);
|
|
118
|
+
});
|
|
119
|
+
this.allChecked = false;
|
|
120
|
+
this.noChecked = true;
|
|
121
|
+
this.indeterminate = false;
|
|
122
|
+
return this;
|
|
123
|
+
}
|
|
124
|
+
handleCheckboxChange(event) {
|
|
125
|
+
if (!event.target)
|
|
126
|
+
return;
|
|
127
|
+
const isSelectAllElement = event.detail.element.id === `${this.uniqueId}-select-all`;
|
|
128
|
+
if (isSelectAllElement) {
|
|
129
|
+
this.updateCheckAllState(event.detail.checked);
|
|
130
|
+
setTimeout(this.validateGroup, 0);
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
this.updateCheckboxesState(event);
|
|
134
|
+
if (this.required) {
|
|
135
|
+
this.validateGroup();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
updateCheckAllState(checked) {
|
|
139
|
+
checked ? this.checkAll() : this.uncheckAll();
|
|
140
|
+
}
|
|
141
|
+
updateCheckboxesState(event) {
|
|
142
|
+
const { checkboxes } = this;
|
|
143
|
+
const checkedCheckboxes = checkboxes.filter(checkbox => checkbox.checked);
|
|
144
|
+
const isCheckbox = event.target.tagName.toLowerCase() === 'r-checkbox';
|
|
145
|
+
const isInGroup = checkboxes.includes(event.target);
|
|
146
|
+
if (!isCheckbox)
|
|
147
|
+
return;
|
|
148
|
+
if (!isInGroup)
|
|
149
|
+
return;
|
|
150
|
+
this.allChecked = checkedCheckboxes.length === checkboxes.length;
|
|
151
|
+
this.indeterminate = checkedCheckboxes.length > 0 && checkedCheckboxes.length < checkboxes.length;
|
|
152
|
+
this.noChecked = checkedCheckboxes.length === 0;
|
|
153
|
+
}
|
|
154
|
+
get message() {
|
|
155
|
+
const { validityMessage, invalid, error, customErrorMessage } = this;
|
|
156
|
+
let message = null;
|
|
157
|
+
if (invalid) {
|
|
158
|
+
message = error || customErrorMessage || validityMessage || null;
|
|
159
|
+
}
|
|
160
|
+
return message;
|
|
161
|
+
}
|
|
162
|
+
get parentFormEl() {
|
|
163
|
+
return this.host.closest('form') || document.querySelector(`#${this.form}`) || null;
|
|
164
|
+
}
|
|
165
|
+
get isNoValidate() {
|
|
166
|
+
var _a;
|
|
167
|
+
return (((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.hasAttribute('novalidate')) ||
|
|
168
|
+
this.novalidate ||
|
|
169
|
+
false);
|
|
170
|
+
}
|
|
171
|
+
resetToInitial() {
|
|
172
|
+
this.invalid = this.initial['invalid'];
|
|
173
|
+
this.checked = this.initial['checked'];
|
|
174
|
+
this.indeterminate = this.initial['indeterminate'];
|
|
175
|
+
this.updateCheckAllState(this.initial['checked']);
|
|
176
|
+
}
|
|
177
|
+
connectedCallback() {
|
|
178
|
+
var _a, _b;
|
|
179
|
+
this.initial['invalid'] = this.invalid;
|
|
180
|
+
this.initial['checked'] = this.checked;
|
|
181
|
+
this.initial['indeterminate'] = this.indeterminate;
|
|
182
|
+
this.updateCheckAllState(this.initial['checked']);
|
|
183
|
+
(_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.addEventListener('submit', this.onSubmitForm, { capture: true });
|
|
184
|
+
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.addEventListener('reset', this.onResetForm);
|
|
185
|
+
}
|
|
186
|
+
disconnectedCallback() {
|
|
187
|
+
var _a, _b;
|
|
188
|
+
(_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('submit', this.onSubmitForm);
|
|
189
|
+
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('reset', this.onResetForm);
|
|
190
|
+
}
|
|
191
|
+
get groupDescribedby() {
|
|
192
|
+
const { uniqueId, hint, hasMessage } = this;
|
|
193
|
+
if (hasMessage && hint)
|
|
194
|
+
return `${uniqueId}-message ${uniqueId}-hint`;
|
|
195
|
+
if (hasMessage)
|
|
196
|
+
return `${uniqueId}-message`;
|
|
197
|
+
if (hint)
|
|
198
|
+
return `${uniqueId}-hint`;
|
|
199
|
+
return null;
|
|
200
|
+
}
|
|
201
|
+
render() {
|
|
202
|
+
const { label, fieldIndicator, help, helpIcon, helpIconColor, hint, uniqueId, form, name, value } = this;
|
|
203
|
+
const renderLabel = () => {
|
|
204
|
+
const labelAttrs = {
|
|
205
|
+
fieldIndicator,
|
|
206
|
+
help,
|
|
207
|
+
helpIcon,
|
|
208
|
+
helpIconColor,
|
|
209
|
+
};
|
|
210
|
+
return (label ?
|
|
211
|
+
h("r-label", Object.assign({ id: `${uniqueId}-label`, class: "r-radio-group--label" }, labelAttrs), label)
|
|
212
|
+
:
|
|
213
|
+
null);
|
|
214
|
+
};
|
|
215
|
+
const renderHint = () => hint ? (h("r-hint", { id: `${uniqueId}-hint`, class: "r-radio-group--hint", role: "note", "aria-hidden": "true" }, hint)) : null;
|
|
216
|
+
const checkAllAttrs = {
|
|
217
|
+
form,
|
|
218
|
+
name,
|
|
219
|
+
value
|
|
220
|
+
};
|
|
221
|
+
return (h(Host, null, h("div", { class: "r-checkbox-group", role: "group", "aria-labelledby": `${uniqueId}-label`, "aria-invalid": `${this.invalid || false}`, "aria-describedby": this.groupDescribedby }, h("div", { class: "r-checkbox-group--label", id: `${uniqueId}-group-label` }, this.showSelectAll ?
|
|
222
|
+
h("r-checkbox", Object.assign({ id: `${uniqueId}-select-all` }, checkAllAttrs, { checked: this.allChecked, indeterminate: this.indeterminate }), renderLabel(), renderHint())
|
|
223
|
+
:
|
|
224
|
+
h(Fragment, null, h("r-checkbox", Object.assign({}, checkAllAttrs, { checked: this.allChecked, indeterminate: this.indeterminate, class: "visually-hidden" }), this.label), renderLabel(), renderHint())), h("div", { class: "r-checkbox-group--content" }, h("span", { style: { display: 'contents' } }, h("slot", null)), this.renderMessage()))));
|
|
225
|
+
}
|
|
226
|
+
static get is() { return "r-checkbox-group"; }
|
|
227
|
+
static get encapsulation() { return "shadow"; }
|
|
228
|
+
static get originalStyleUrls() {
|
|
229
|
+
return {
|
|
230
|
+
"$": ["checkbox-group.css"]
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
static get styleUrls() {
|
|
234
|
+
return {
|
|
235
|
+
"$": ["checkbox-group.css"]
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
static get properties() {
|
|
239
|
+
return {
|
|
240
|
+
"form": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"attribute": "form",
|
|
243
|
+
"mutable": false,
|
|
244
|
+
"complexType": {
|
|
245
|
+
"original": "string",
|
|
246
|
+
"resolved": "string",
|
|
247
|
+
"references": {}
|
|
248
|
+
},
|
|
249
|
+
"required": false,
|
|
250
|
+
"optional": true,
|
|
251
|
+
"docs": {
|
|
252
|
+
"tags": [],
|
|
253
|
+
"text": "Specifies the `id` of the `<form>` to which the element belongs."
|
|
254
|
+
},
|
|
255
|
+
"getter": false,
|
|
256
|
+
"setter": false,
|
|
257
|
+
"reflect": false
|
|
258
|
+
},
|
|
259
|
+
"name": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"attribute": "name",
|
|
262
|
+
"mutable": false,
|
|
263
|
+
"complexType": {
|
|
264
|
+
"original": "string",
|
|
265
|
+
"resolved": "string",
|
|
266
|
+
"references": {}
|
|
267
|
+
},
|
|
268
|
+
"required": false,
|
|
269
|
+
"optional": true,
|
|
270
|
+
"docs": {
|
|
271
|
+
"tags": [],
|
|
272
|
+
"text": "Specifies `name` property of the 'select-all' checkbox, representing the group as a whole."
|
|
273
|
+
},
|
|
274
|
+
"getter": false,
|
|
275
|
+
"setter": false,
|
|
276
|
+
"reflect": false
|
|
277
|
+
},
|
|
278
|
+
"value": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"attribute": "value",
|
|
281
|
+
"mutable": false,
|
|
282
|
+
"complexType": {
|
|
283
|
+
"original": "string",
|
|
284
|
+
"resolved": "string",
|
|
285
|
+
"references": {}
|
|
286
|
+
},
|
|
287
|
+
"required": false,
|
|
288
|
+
"optional": false,
|
|
289
|
+
"docs": {
|
|
290
|
+
"tags": [],
|
|
291
|
+
"text": "Specifies `value` property of the 'select-all', representing the group as a whole."
|
|
292
|
+
},
|
|
293
|
+
"getter": false,
|
|
294
|
+
"setter": false,
|
|
295
|
+
"reflect": false,
|
|
296
|
+
"defaultValue": "''"
|
|
297
|
+
},
|
|
298
|
+
"required": {
|
|
299
|
+
"type": "boolean",
|
|
300
|
+
"attribute": "required",
|
|
301
|
+
"mutable": false,
|
|
302
|
+
"complexType": {
|
|
303
|
+
"original": "boolean",
|
|
304
|
+
"resolved": "boolean",
|
|
305
|
+
"references": {}
|
|
306
|
+
},
|
|
307
|
+
"required": false,
|
|
308
|
+
"optional": true,
|
|
309
|
+
"docs": {
|
|
310
|
+
"tags": [],
|
|
311
|
+
"text": "Specifies whether the `value` is required."
|
|
312
|
+
},
|
|
313
|
+
"getter": false,
|
|
314
|
+
"setter": false,
|
|
315
|
+
"reflect": true,
|
|
316
|
+
"defaultValue": "false"
|
|
317
|
+
},
|
|
318
|
+
"valueMissingMessage": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"attribute": "value-missing-message",
|
|
321
|
+
"mutable": false,
|
|
322
|
+
"complexType": {
|
|
323
|
+
"original": "string",
|
|
324
|
+
"resolved": "string",
|
|
325
|
+
"references": {}
|
|
326
|
+
},
|
|
327
|
+
"required": false,
|
|
328
|
+
"optional": true,
|
|
329
|
+
"docs": {
|
|
330
|
+
"tags": [],
|
|
331
|
+
"text": "Set custom message for `valueMissing` property \nof a ValidityState object (set by `required`) \nwithin Constrain Validation API"
|
|
332
|
+
},
|
|
333
|
+
"getter": false,
|
|
334
|
+
"setter": false,
|
|
335
|
+
"reflect": false
|
|
336
|
+
},
|
|
337
|
+
"valid": {
|
|
338
|
+
"type": "boolean",
|
|
339
|
+
"attribute": "valid",
|
|
340
|
+
"mutable": true,
|
|
341
|
+
"complexType": {
|
|
342
|
+
"original": "boolean",
|
|
343
|
+
"resolved": "boolean",
|
|
344
|
+
"references": {}
|
|
345
|
+
},
|
|
346
|
+
"required": false,
|
|
347
|
+
"optional": true,
|
|
348
|
+
"docs": {
|
|
349
|
+
"tags": [],
|
|
350
|
+
"text": "Apply validation success visual style"
|
|
351
|
+
},
|
|
352
|
+
"getter": false,
|
|
353
|
+
"setter": false,
|
|
354
|
+
"reflect": true
|
|
355
|
+
},
|
|
356
|
+
"invalid": {
|
|
357
|
+
"type": "boolean",
|
|
358
|
+
"attribute": "invalid",
|
|
359
|
+
"mutable": true,
|
|
360
|
+
"complexType": {
|
|
361
|
+
"original": "boolean",
|
|
362
|
+
"resolved": "boolean",
|
|
363
|
+
"references": {}
|
|
364
|
+
},
|
|
365
|
+
"required": false,
|
|
366
|
+
"optional": true,
|
|
367
|
+
"docs": {
|
|
368
|
+
"tags": [],
|
|
369
|
+
"text": "Apply validation error visual style"
|
|
370
|
+
},
|
|
371
|
+
"getter": false,
|
|
372
|
+
"setter": false,
|
|
373
|
+
"reflect": true
|
|
374
|
+
},
|
|
375
|
+
"error": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"attribute": "error",
|
|
378
|
+
"mutable": false,
|
|
379
|
+
"complexType": {
|
|
380
|
+
"original": "string",
|
|
381
|
+
"resolved": "string",
|
|
382
|
+
"references": {}
|
|
383
|
+
},
|
|
384
|
+
"required": false,
|
|
385
|
+
"optional": true,
|
|
386
|
+
"docs": {
|
|
387
|
+
"tags": [],
|
|
388
|
+
"text": "Custom validation error message"
|
|
389
|
+
},
|
|
390
|
+
"getter": false,
|
|
391
|
+
"setter": false,
|
|
392
|
+
"reflect": false
|
|
393
|
+
},
|
|
394
|
+
"customErrorMessage": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"attribute": "custom-error-message",
|
|
397
|
+
"mutable": false,
|
|
398
|
+
"complexType": {
|
|
399
|
+
"original": "string",
|
|
400
|
+
"resolved": "string",
|
|
401
|
+
"references": {}
|
|
402
|
+
},
|
|
403
|
+
"required": false,
|
|
404
|
+
"optional": true,
|
|
405
|
+
"docs": {
|
|
406
|
+
"tags": [],
|
|
407
|
+
"text": "Set custom message for `customError` property of a ValidityState object \nindicating whether the element's custom validity message has been set to a non-empty \nstring by calling the element's setCustomValidity() method."
|
|
408
|
+
},
|
|
409
|
+
"getter": false,
|
|
410
|
+
"setter": false,
|
|
411
|
+
"reflect": false
|
|
412
|
+
},
|
|
413
|
+
"label": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"attribute": "label",
|
|
416
|
+
"mutable": false,
|
|
417
|
+
"complexType": {
|
|
418
|
+
"original": "string",
|
|
419
|
+
"resolved": "string",
|
|
420
|
+
"references": {}
|
|
421
|
+
},
|
|
422
|
+
"required": true,
|
|
423
|
+
"optional": false,
|
|
424
|
+
"docs": {
|
|
425
|
+
"tags": [],
|
|
426
|
+
"text": "The label for the checkbox group."
|
|
427
|
+
},
|
|
428
|
+
"getter": false,
|
|
429
|
+
"setter": false,
|
|
430
|
+
"reflect": false
|
|
431
|
+
},
|
|
432
|
+
"fieldIndicator": {
|
|
433
|
+
"type": "string",
|
|
434
|
+
"attribute": "field-indicator",
|
|
435
|
+
"mutable": false,
|
|
436
|
+
"complexType": {
|
|
437
|
+
"original": "string",
|
|
438
|
+
"resolved": "string",
|
|
439
|
+
"references": {}
|
|
440
|
+
},
|
|
441
|
+
"required": false,
|
|
442
|
+
"optional": true,
|
|
443
|
+
"docs": {
|
|
444
|
+
"tags": [],
|
|
445
|
+
"text": "An optional field indicator for the label."
|
|
446
|
+
},
|
|
447
|
+
"getter": false,
|
|
448
|
+
"setter": false,
|
|
449
|
+
"reflect": false
|
|
450
|
+
},
|
|
451
|
+
"help": {
|
|
452
|
+
"type": "string",
|
|
453
|
+
"attribute": "help",
|
|
454
|
+
"mutable": false,
|
|
455
|
+
"complexType": {
|
|
456
|
+
"original": "string",
|
|
457
|
+
"resolved": "string",
|
|
458
|
+
"references": {}
|
|
459
|
+
},
|
|
460
|
+
"required": false,
|
|
461
|
+
"optional": true,
|
|
462
|
+
"docs": {
|
|
463
|
+
"tags": [],
|
|
464
|
+
"text": "Help text for the checkbox group."
|
|
465
|
+
},
|
|
466
|
+
"getter": false,
|
|
467
|
+
"setter": false,
|
|
468
|
+
"reflect": false
|
|
469
|
+
},
|
|
470
|
+
"helpIcon": {
|
|
471
|
+
"type": "string",
|
|
472
|
+
"attribute": "help-icon",
|
|
473
|
+
"mutable": false,
|
|
474
|
+
"complexType": {
|
|
475
|
+
"original": "IconName",
|
|
476
|
+
"resolved": "string",
|
|
477
|
+
"references": {
|
|
478
|
+
"IconName": {
|
|
479
|
+
"location": "import",
|
|
480
|
+
"path": "../icon/exports",
|
|
481
|
+
"id": "src/components/icon/exports.ts::IconName"
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"required": false,
|
|
486
|
+
"optional": true,
|
|
487
|
+
"docs": {
|
|
488
|
+
"tags": [],
|
|
489
|
+
"text": "An optional icon to display in the help text."
|
|
490
|
+
},
|
|
491
|
+
"getter": false,
|
|
492
|
+
"setter": false,
|
|
493
|
+
"reflect": false
|
|
494
|
+
},
|
|
495
|
+
"helpIconColor": {
|
|
496
|
+
"type": "string",
|
|
497
|
+
"attribute": "help-icon-color",
|
|
498
|
+
"mutable": false,
|
|
499
|
+
"complexType": {
|
|
500
|
+
"original": "string",
|
|
501
|
+
"resolved": "string",
|
|
502
|
+
"references": {}
|
|
503
|
+
},
|
|
504
|
+
"required": false,
|
|
505
|
+
"optional": true,
|
|
506
|
+
"docs": {
|
|
507
|
+
"tags": [],
|
|
508
|
+
"text": "The color of the help icon."
|
|
509
|
+
},
|
|
510
|
+
"getter": false,
|
|
511
|
+
"setter": false,
|
|
512
|
+
"reflect": false
|
|
513
|
+
},
|
|
514
|
+
"hint": {
|
|
515
|
+
"type": "string",
|
|
516
|
+
"attribute": "hint",
|
|
517
|
+
"mutable": false,
|
|
518
|
+
"complexType": {
|
|
519
|
+
"original": "string",
|
|
520
|
+
"resolved": "string",
|
|
521
|
+
"references": {}
|
|
522
|
+
},
|
|
523
|
+
"required": false,
|
|
524
|
+
"optional": true,
|
|
525
|
+
"docs": {
|
|
526
|
+
"tags": [],
|
|
527
|
+
"text": "A hint providing additional information for the checkbox group."
|
|
528
|
+
},
|
|
529
|
+
"getter": false,
|
|
530
|
+
"setter": false,
|
|
531
|
+
"reflect": false
|
|
532
|
+
},
|
|
533
|
+
"showSelectAll": {
|
|
534
|
+
"type": "boolean",
|
|
535
|
+
"attribute": "show-select-all",
|
|
536
|
+
"mutable": false,
|
|
537
|
+
"complexType": {
|
|
538
|
+
"original": "boolean",
|
|
539
|
+
"resolved": "boolean",
|
|
540
|
+
"references": {}
|
|
541
|
+
},
|
|
542
|
+
"required": false,
|
|
543
|
+
"optional": true,
|
|
544
|
+
"docs": {
|
|
545
|
+
"tags": [],
|
|
546
|
+
"text": "Whether to show a \"Select All\" checkbox."
|
|
547
|
+
},
|
|
548
|
+
"getter": false,
|
|
549
|
+
"setter": false,
|
|
550
|
+
"reflect": true
|
|
551
|
+
},
|
|
552
|
+
"novalidate": {
|
|
553
|
+
"type": "boolean",
|
|
554
|
+
"attribute": "novalidate",
|
|
555
|
+
"mutable": false,
|
|
556
|
+
"complexType": {
|
|
557
|
+
"original": "boolean",
|
|
558
|
+
"resolved": "boolean",
|
|
559
|
+
"references": {}
|
|
560
|
+
},
|
|
561
|
+
"required": false,
|
|
562
|
+
"optional": true,
|
|
563
|
+
"docs": {
|
|
564
|
+
"tags": [],
|
|
565
|
+
"text": "Specifies if element must be ignored during validation of the form elements"
|
|
566
|
+
},
|
|
567
|
+
"getter": false,
|
|
568
|
+
"setter": false,
|
|
569
|
+
"reflect": false
|
|
570
|
+
},
|
|
571
|
+
"checked": {
|
|
572
|
+
"type": "boolean",
|
|
573
|
+
"attribute": "checked",
|
|
574
|
+
"mutable": false,
|
|
575
|
+
"complexType": {
|
|
576
|
+
"original": "boolean",
|
|
577
|
+
"resolved": "boolean",
|
|
578
|
+
"references": {}
|
|
579
|
+
},
|
|
580
|
+
"required": false,
|
|
581
|
+
"optional": true,
|
|
582
|
+
"docs": {
|
|
583
|
+
"tags": [],
|
|
584
|
+
"text": "Specifies if select-all checkbox is initially in checked state"
|
|
585
|
+
},
|
|
586
|
+
"getter": false,
|
|
587
|
+
"setter": false,
|
|
588
|
+
"reflect": false
|
|
589
|
+
},
|
|
590
|
+
"indetermitate": {
|
|
591
|
+
"type": "boolean",
|
|
592
|
+
"attribute": "indetermitate",
|
|
593
|
+
"mutable": false,
|
|
594
|
+
"complexType": {
|
|
595
|
+
"original": "boolean",
|
|
596
|
+
"resolved": "boolean",
|
|
597
|
+
"references": {}
|
|
598
|
+
},
|
|
599
|
+
"required": false,
|
|
600
|
+
"optional": true,
|
|
601
|
+
"docs": {
|
|
602
|
+
"tags": [],
|
|
603
|
+
"text": "Specifies if select-all checkbox is initially in indetermitate state"
|
|
604
|
+
},
|
|
605
|
+
"getter": false,
|
|
606
|
+
"setter": false,
|
|
607
|
+
"reflect": false
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
static get states() {
|
|
612
|
+
return {
|
|
613
|
+
"indeterminate": {},
|
|
614
|
+
"allChecked": {},
|
|
615
|
+
"noChecked": {},
|
|
616
|
+
"validityState": {},
|
|
617
|
+
"validityMessage": {}
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
static get events() {
|
|
621
|
+
return [{
|
|
622
|
+
"method": "rValidate",
|
|
623
|
+
"name": "rValidate",
|
|
624
|
+
"bubbles": true,
|
|
625
|
+
"cancelable": true,
|
|
626
|
+
"composed": true,
|
|
627
|
+
"docs": {
|
|
628
|
+
"tags": [],
|
|
629
|
+
"text": "Emits event after each validation"
|
|
630
|
+
},
|
|
631
|
+
"complexType": {
|
|
632
|
+
"original": "{\n state: string,\n message: string\n }",
|
|
633
|
+
"resolved": "{ state: string; message: string; }",
|
|
634
|
+
"references": {}
|
|
635
|
+
}
|
|
636
|
+
}];
|
|
637
|
+
}
|
|
638
|
+
static get methods() {
|
|
639
|
+
return {
|
|
640
|
+
"setCustomValidity": {
|
|
641
|
+
"complexType": {
|
|
642
|
+
"signature": "(message: string) => Promise<void>",
|
|
643
|
+
"parameters": [{
|
|
644
|
+
"name": "message",
|
|
645
|
+
"type": "string",
|
|
646
|
+
"docs": ""
|
|
647
|
+
}],
|
|
648
|
+
"references": {
|
|
649
|
+
"Promise": {
|
|
650
|
+
"location": "global",
|
|
651
|
+
"id": "global::Promise"
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
"return": "Promise<void>"
|
|
655
|
+
},
|
|
656
|
+
"docs": {
|
|
657
|
+
"text": "Validates the checkbox group, displays provided message in case value is invalid.",
|
|
658
|
+
"tags": []
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"checkValidity": {
|
|
662
|
+
"complexType": {
|
|
663
|
+
"signature": "() => Promise<boolean>",
|
|
664
|
+
"parameters": [],
|
|
665
|
+
"references": {
|
|
666
|
+
"Promise": {
|
|
667
|
+
"location": "global",
|
|
668
|
+
"id": "global::Promise"
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
"return": "Promise<boolean>"
|
|
672
|
+
},
|
|
673
|
+
"docs": {
|
|
674
|
+
"text": "Validates the checkbox group without triggering UI and returns a boolean indicating its validity.",
|
|
675
|
+
"tags": [{
|
|
676
|
+
"name": "returns",
|
|
677
|
+
"text": "A boolean indicating whether the checkbox is valid."
|
|
678
|
+
}]
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
"resetValidity": {
|
|
682
|
+
"complexType": {
|
|
683
|
+
"signature": "() => Promise<void>",
|
|
684
|
+
"parameters": [],
|
|
685
|
+
"references": {
|
|
686
|
+
"Promise": {
|
|
687
|
+
"location": "global",
|
|
688
|
+
"id": "global::Promise"
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"return": "Promise<void>"
|
|
692
|
+
},
|
|
693
|
+
"docs": {
|
|
694
|
+
"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.",
|
|
695
|
+
"tags": []
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
"checkAll": {
|
|
699
|
+
"complexType": {
|
|
700
|
+
"signature": "() => Promise<this>",
|
|
701
|
+
"parameters": [],
|
|
702
|
+
"references": {
|
|
703
|
+
"Promise": {
|
|
704
|
+
"location": "global",
|
|
705
|
+
"id": "global::Promise"
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
"return": "Promise<this>"
|
|
709
|
+
},
|
|
710
|
+
"docs": {
|
|
711
|
+
"text": "Checks all checkboxes in the slot.",
|
|
712
|
+
"tags": []
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"uncheckAll": {
|
|
716
|
+
"complexType": {
|
|
717
|
+
"signature": "() => Promise<this>",
|
|
718
|
+
"parameters": [],
|
|
719
|
+
"references": {
|
|
720
|
+
"Promise": {
|
|
721
|
+
"location": "global",
|
|
722
|
+
"id": "global::Promise"
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
"return": "Promise<this>"
|
|
726
|
+
},
|
|
727
|
+
"docs": {
|
|
728
|
+
"text": "Unchecks all checkboxes in the slot.",
|
|
729
|
+
"tags": []
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
static get elementRef() { return "host"; }
|
|
735
|
+
static get listeners() {
|
|
736
|
+
return [{
|
|
737
|
+
"name": "rChange",
|
|
738
|
+
"method": "handleCheckboxChange",
|
|
739
|
+
"target": undefined,
|
|
740
|
+
"capture": false,
|
|
741
|
+
"passive": false
|
|
742
|
+
}];
|
|
743
|
+
}
|
|
744
|
+
}
|