@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,55 @@
|
|
|
1
|
+
export declare const inputTypeArray: readonly ["text", "email", "url", "tel", "password", "search", "number"];
|
|
2
|
+
export declare const inputModeArray: readonly ["text", "tel", "email", "url", "numeric", "decimal", "search", "none"];
|
|
3
|
+
export declare const inputAutocompleteArray: InputAutocomplete[];
|
|
4
|
+
export declare const enterKeyHintArray: readonly ["enter", "done", "go", "next", "previous", "search", "send"];
|
|
5
|
+
export declare const autocapitalizeArray: readonly ["off", "none", "on", "sentences", "words", "characters"];
|
|
6
|
+
export type InputType = typeof inputTypeArray[number];
|
|
7
|
+
export type InputMode = typeof inputModeArray[number];
|
|
8
|
+
export type InputAutocomplete = AutoFill | 'bday' | 'sex' | 'url' | 'photo' | 'language';
|
|
9
|
+
export type EnterKeyHint = typeof enterKeyHintArray[number];
|
|
10
|
+
export type AutocapitalizeType = typeof autocapitalizeArray[number];
|
|
11
|
+
export interface RInputInputEventDetail {
|
|
12
|
+
element: HTMLRInputElement;
|
|
13
|
+
value: any;
|
|
14
|
+
}
|
|
15
|
+
export interface RInputChangeEventDetail {
|
|
16
|
+
element: HTMLRInputElement;
|
|
17
|
+
value: any;
|
|
18
|
+
}
|
|
19
|
+
export interface RInputValidateEventDetail {
|
|
20
|
+
state: string;
|
|
21
|
+
message: string;
|
|
22
|
+
}
|
|
23
|
+
export interface RInputResetEventDetail {
|
|
24
|
+
element: HTMLRInputElement;
|
|
25
|
+
value: any;
|
|
26
|
+
}
|
|
27
|
+
export interface InputOption {
|
|
28
|
+
value: string;
|
|
29
|
+
label?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Native HTML input attributes that can be passed through.
|
|
33
|
+
* Using Set for O(1) lookup performance instead of O(n) array includes.
|
|
34
|
+
*/
|
|
35
|
+
export declare const nativeInputAttributesSet: Set<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Special case mappings for attributes that need custom camelCase conversion
|
|
38
|
+
* beyond simple hyphen-based transformation. Maps HTML attribute name (lowercase)
|
|
39
|
+
* to JSX property name (camelCase).
|
|
40
|
+
*/
|
|
41
|
+
export declare const attributeCamelCaseMap: Record<string, string>;
|
|
42
|
+
/**
|
|
43
|
+
* Component-specific props that should NOT be passed to the native input.
|
|
44
|
+
* Using Set for O(1) lookup performance.
|
|
45
|
+
*/
|
|
46
|
+
export declare const excludedAttributesSet: Set<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Framework/DOM-specific attributes that should never be passed through.
|
|
49
|
+
*/
|
|
50
|
+
export declare const frameworkAttributesSet: Set<string>;
|
|
51
|
+
/**
|
|
52
|
+
* ARIA attributes that are already handled explicitly by the component
|
|
53
|
+
* and should not be passed through to avoid conflicts.
|
|
54
|
+
*/
|
|
55
|
+
export declare const managedAriaAttributesSet: Set<string>;
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import type { InputAutocomplete, InputMode, InputType, EnterKeyHint, AutocapitalizeType } from './exports';
|
|
3
|
+
export declare class RInput {
|
|
4
|
+
host: HTMLRInputElement;
|
|
5
|
+
private static autofocusHandled;
|
|
6
|
+
/**
|
|
7
|
+
* ID of the form this input is associated with (mirrors native `form` attribute).
|
|
8
|
+
* Use when the input is not a direct descendant of the target form element.
|
|
9
|
+
*/
|
|
10
|
+
form?: string;
|
|
11
|
+
/**
|
|
12
|
+
* If set, the field is skipped by built‑in (Constraint Validation API) validation logic.
|
|
13
|
+
* Does not prevent custom validation you may trigger manually.
|
|
14
|
+
*/
|
|
15
|
+
novalidate?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Input type (e.g. `text`, `email`, `number`, `password`).
|
|
18
|
+
* See HTMLInputElement `type` for supported values.
|
|
19
|
+
*/
|
|
20
|
+
type: InputType;
|
|
21
|
+
/**
|
|
22
|
+
* Name used when contributing the value to form submission (`FormData` / POST body).
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* Current value. Mutable: can be changed programmatically or through user input.
|
|
27
|
+
*/
|
|
28
|
+
value?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* Placeholder hint text shown when the field is empty and unfocused.
|
|
31
|
+
*/
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Label text describing the field. Provide for accessibility (or use the `label` slot).
|
|
35
|
+
*/
|
|
36
|
+
label: string;
|
|
37
|
+
/**
|
|
38
|
+
* Small marker string appended to the label (e.g. “Optional”, localized markers, etc.).
|
|
39
|
+
*/
|
|
40
|
+
fieldIndicator?: string;
|
|
41
|
+
/**
|
|
42
|
+
* When true, hides visual label & messages (for internal layout use; accessibility still preserved).
|
|
43
|
+
*/
|
|
44
|
+
internal?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Optional contextual help text displayed beneath the field.
|
|
47
|
+
*/
|
|
48
|
+
hint?: string;
|
|
49
|
+
/**
|
|
50
|
+
* When true, stretches the component horizontally to fill its container.
|
|
51
|
+
*/
|
|
52
|
+
fullWidth?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Explicit valid state override (when set manually).
|
|
55
|
+
*/
|
|
56
|
+
valid?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Explicit invalid state override (when set manually).
|
|
59
|
+
*/
|
|
60
|
+
invalid?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Manual error message independent of native validation messages.
|
|
63
|
+
* When set, native validation messages are suppressed.
|
|
64
|
+
*/
|
|
65
|
+
error?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Disables the field (non-interactive, excluded from form submission).
|
|
68
|
+
*/
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Marks the field as required; failing to provide a value triggers `valueMissing`.
|
|
72
|
+
*/
|
|
73
|
+
required?: boolean;
|
|
74
|
+
/** Maximum character length (enforced by native input). */
|
|
75
|
+
maxlength?: number;
|
|
76
|
+
/** Minimum character length (validation only). */
|
|
77
|
+
minlength?: number;
|
|
78
|
+
/** Minimum numeric/date value (for supported types). */
|
|
79
|
+
min?: number;
|
|
80
|
+
/** Maximum numeric/date value (for supported types). */
|
|
81
|
+
max?: number;
|
|
82
|
+
/** Regex pattern the value must match (string form). */
|
|
83
|
+
pattern?: any;
|
|
84
|
+
/** Step interval for numeric/date input types. */
|
|
85
|
+
step?: number;
|
|
86
|
+
/** Custom message for `valueMissing`. */
|
|
87
|
+
valueMissingMessage?: string;
|
|
88
|
+
/** Custom message for `typeMismatch`. */
|
|
89
|
+
typeMismatchMessage?: string;
|
|
90
|
+
/** Custom message for `patternMismatch`. */
|
|
91
|
+
patternMismatchMessage?: string;
|
|
92
|
+
/** Custom message for `tooLong`. */
|
|
93
|
+
tooLongMessage?: string;
|
|
94
|
+
/** Custom message for `tooShort`. */
|
|
95
|
+
tooShortMessage?: string;
|
|
96
|
+
/** Custom message for `rangeOverflow`. */
|
|
97
|
+
rangeOverflowMessage?: string;
|
|
98
|
+
/** Custom message for `rangeUnderflow`. */
|
|
99
|
+
rangeUnderflowMessage?: string;
|
|
100
|
+
/** Custom message for `stepMismatch`. */
|
|
101
|
+
stepMismatchMessage?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Custom message for `badInput` (conversion / parsing failure).
|
|
104
|
+
*/
|
|
105
|
+
badInputMessage?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Custom message for `customError` (applies when set via `setCustomValidity()` logic internally).
|
|
108
|
+
*/
|
|
109
|
+
customErrorMessage?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Native `autocomplete` hint for browsers / password managers.
|
|
112
|
+
*/
|
|
113
|
+
autocomplete?: InputAutocomplete;
|
|
114
|
+
/**
|
|
115
|
+
* Hint for the action label/icon on the virtual keyboard's enter key.
|
|
116
|
+
* Use cases:
|
|
117
|
+
* - `enter`: Default, generic newline/submit action
|
|
118
|
+
* - `done`: Finishes current input session (e.g., last field in a form)
|
|
119
|
+
* - `go`: Navigates to URL input target (e.g., URL bar)
|
|
120
|
+
* - `next`: Advances to next input field in a sequence
|
|
121
|
+
* - `previous`: Goes back to previous input field
|
|
122
|
+
* - `search`: Submits a search query
|
|
123
|
+
* - `send`: Sends a message (e.g., chat, email)
|
|
124
|
+
*/
|
|
125
|
+
enterkeyhint?: EnterKeyHint;
|
|
126
|
+
/**
|
|
127
|
+
* Controls browser spell-checking for text input.
|
|
128
|
+
* When true, enables spell-checking; when false, disables it.
|
|
129
|
+
* Browser default behavior applies when not specified.
|
|
130
|
+
*/
|
|
131
|
+
spellcheck?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Controls automatic capitalization of text input on mobile devices.
|
|
134
|
+
* - `off` or `none`: No automatic capitalization
|
|
135
|
+
* - `on` or `sentences`: Capitalize first letter of each sentence (default for most text inputs)
|
|
136
|
+
* - `words`: Capitalize first letter of each word
|
|
137
|
+
* - `characters`: Capitalize all characters
|
|
138
|
+
*/
|
|
139
|
+
autocapitalize?: AutocapitalizeType;
|
|
140
|
+
/**
|
|
141
|
+
* Safari-specific password rules for strong password generation (password inputs only).
|
|
142
|
+
* Format: "minlength: X; required: lower; required: upper; required: digit; required: special;"
|
|
143
|
+
* This attribute is Safari-specific and will be ignored by other browsers.
|
|
144
|
+
* See: https://developer.apple.com/documentation/security/password_autofill/customizing_password_autofill_rules
|
|
145
|
+
*/
|
|
146
|
+
passwordrules?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Automatically focus the input when it is first rendered.
|
|
149
|
+
* Mirrors native `autofocus` attribute behavior. Avoid using multiple times per page.
|
|
150
|
+
*/
|
|
151
|
+
autofocus?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Read-only mode (mirrors native `readonly`): value cannot be changed by the user,
|
|
154
|
+
* but the field can still receive focus, be selected, and be submitted with a form.
|
|
155
|
+
*/
|
|
156
|
+
readonly?: boolean;
|
|
157
|
+
/** Internal state for options extracted from slotted datalist */
|
|
158
|
+
private slottedOptions;
|
|
159
|
+
/**
|
|
160
|
+
* Hint to the browser about which keyboard to display on mobile devices.
|
|
161
|
+
*/
|
|
162
|
+
inputmode?: InputMode;
|
|
163
|
+
/**
|
|
164
|
+
* When `true` field renders valid/invalid marker within.
|
|
165
|
+
*/
|
|
166
|
+
validityMarker: boolean;
|
|
167
|
+
/** Validity state passed from validateFormElement function after validation */
|
|
168
|
+
validityState: string;
|
|
169
|
+
/** Validity message passed from validateFormElement function after validation */
|
|
170
|
+
validityMessage: string;
|
|
171
|
+
/** Defines if the component has been touched by user */
|
|
172
|
+
touched: boolean;
|
|
173
|
+
/** Defines if the value has been changed by user interaction */
|
|
174
|
+
dirty: boolean;
|
|
175
|
+
/** Private flag to prevent validation during reset */
|
|
176
|
+
private isResetting;
|
|
177
|
+
/**
|
|
178
|
+
* Emitted after each validation attempt (native or triggered logic).
|
|
179
|
+
*/
|
|
180
|
+
rValidate: EventEmitter<{
|
|
181
|
+
state: string;
|
|
182
|
+
message: string;
|
|
183
|
+
}>;
|
|
184
|
+
/**
|
|
185
|
+
* Emitted on each user input (mirrors native `input` semantics).
|
|
186
|
+
*/
|
|
187
|
+
rInput: EventEmitter<{
|
|
188
|
+
element: HTMLRInputElement;
|
|
189
|
+
value: any;
|
|
190
|
+
}>;
|
|
191
|
+
/**
|
|
192
|
+
* Emitted when the input loses focus.
|
|
193
|
+
*/
|
|
194
|
+
rBlur: EventEmitter;
|
|
195
|
+
/**
|
|
196
|
+
* Emitted when the input receives focus.
|
|
197
|
+
*/
|
|
198
|
+
rFocus: EventEmitter;
|
|
199
|
+
/**
|
|
200
|
+
* Emitted when the committed value changes (mirrors native `change` semantics).
|
|
201
|
+
*/
|
|
202
|
+
rChange: EventEmitter<{
|
|
203
|
+
element: HTMLRInputElement;
|
|
204
|
+
value: any;
|
|
205
|
+
}>;
|
|
206
|
+
/**
|
|
207
|
+
* Emitted when a parent form is reset and the field restores its initial value.
|
|
208
|
+
*/
|
|
209
|
+
rReset: EventEmitter<{
|
|
210
|
+
element: HTMLRInputElement;
|
|
211
|
+
value: any;
|
|
212
|
+
}>;
|
|
213
|
+
/**
|
|
214
|
+
* Emitted when the input is about to be modified (mirrors native `beforeinput` semantics).
|
|
215
|
+
* Use for intercepting and preventing input before it occurs.
|
|
216
|
+
*/
|
|
217
|
+
rBeforeInput: EventEmitter<InputEvent>;
|
|
218
|
+
/**
|
|
219
|
+
* Emitted when the input fails validation (mirrors native `invalid` semantics).
|
|
220
|
+
*/
|
|
221
|
+
rInvalid: EventEmitter<Event>;
|
|
222
|
+
/**
|
|
223
|
+
* Emitted when a key is pressed down (mirrors native `keydown` semantics).
|
|
224
|
+
*/
|
|
225
|
+
rKeyDown: EventEmitter<KeyboardEvent>;
|
|
226
|
+
/**
|
|
227
|
+
* Emitted when a key is released (mirrors native `keyup` semantics).
|
|
228
|
+
*/
|
|
229
|
+
rKeyUp: EventEmitter<KeyboardEvent>;
|
|
230
|
+
/**
|
|
231
|
+
* Emitted when text is selected (mirrors native `select` semantics).
|
|
232
|
+
*/
|
|
233
|
+
rSelect: EventEmitter<Event>;
|
|
234
|
+
/**
|
|
235
|
+
* Programmatically focus the native input element.
|
|
236
|
+
*/
|
|
237
|
+
setFocus(): Promise<void>;
|
|
238
|
+
/**
|
|
239
|
+
* Programmatically remove focus from the native input.
|
|
240
|
+
*/
|
|
241
|
+
setBlur(): Promise<void>;
|
|
242
|
+
/**
|
|
243
|
+
* Select (highlight) the entire current input value.
|
|
244
|
+
*/
|
|
245
|
+
select(): Promise<void>;
|
|
246
|
+
/**
|
|
247
|
+
* Get the start index of the current text selection (or null if unavailable).
|
|
248
|
+
*/
|
|
249
|
+
getSelectionStart(): Promise<number | null>;
|
|
250
|
+
/**
|
|
251
|
+
* Get the end index of the current text selection (or null if unavailable).
|
|
252
|
+
*/
|
|
253
|
+
getSelectionEnd(): Promise<number | null>;
|
|
254
|
+
/**
|
|
255
|
+
* Set a selection (or caret) range within the value.
|
|
256
|
+
* @param start Start index (inclusive)
|
|
257
|
+
* @param end End index (exclusive)
|
|
258
|
+
* @param direction Selection direction (browser hint)
|
|
259
|
+
*/
|
|
260
|
+
setSelectionRange(start: number, end: number, direction?: 'forward' | 'backward' | 'none'): Promise<void>;
|
|
261
|
+
/**
|
|
262
|
+
* Retrieve the current value (returns empty string if unset).
|
|
263
|
+
*/
|
|
264
|
+
getValue(): Promise<string>;
|
|
265
|
+
/**
|
|
266
|
+
* Set the current value programmatically (does not fire native input/change automatically).
|
|
267
|
+
*/
|
|
268
|
+
setValue(value: string): Promise<void>;
|
|
269
|
+
/** Validates an element, displays provided message in case value is invalid. */
|
|
270
|
+
setCustomValidity(message: string): Promise<void>;
|
|
271
|
+
/**
|
|
272
|
+
* Validates the input without triggering UI and returns a boolean indicating its validity.
|
|
273
|
+
* @returns A boolean indicating whether the input is valid.
|
|
274
|
+
*/
|
|
275
|
+
checkValidity(): Promise<boolean>;
|
|
276
|
+
/**
|
|
277
|
+
* Gets the touched state (whether user has interacted with the input)
|
|
278
|
+
*/
|
|
279
|
+
isTouched(): Promise<boolean>;
|
|
280
|
+
/**
|
|
281
|
+
* Gets the dirty state (whether value has been changed by user)
|
|
282
|
+
*/
|
|
283
|
+
isDirty(): Promise<boolean>;
|
|
284
|
+
/**
|
|
285
|
+
* Resets touched and dirty states to pristine (untouched/clean)
|
|
286
|
+
*/
|
|
287
|
+
markAsPristine(): Promise<void>;
|
|
288
|
+
private nativeElement;
|
|
289
|
+
/**
|
|
290
|
+
* Helper to set the native input element ref and apply boolean properties
|
|
291
|
+
* that don't get properly set through JSX attribute spreading.
|
|
292
|
+
*/
|
|
293
|
+
private setNativeInputRef;
|
|
294
|
+
private uniqueId;
|
|
295
|
+
private get datalistId();
|
|
296
|
+
/**
|
|
297
|
+
* Initial attributes state
|
|
298
|
+
* */
|
|
299
|
+
private initial;
|
|
300
|
+
/**
|
|
301
|
+
* Cache for passthrough attributes to avoid recomputing on every render.
|
|
302
|
+
* Cleared when attributes might have changed.
|
|
303
|
+
*/
|
|
304
|
+
private passthroughAttrsCache;
|
|
305
|
+
/**
|
|
306
|
+
* Checks if an attribute should be excluded from passthrough.
|
|
307
|
+
*/
|
|
308
|
+
private shouldExcludeAttribute;
|
|
309
|
+
/**
|
|
310
|
+
* Collects native HTML input attributes from the host element that aren't
|
|
311
|
+
* already handled by explicit props. This allows passing through attributes
|
|
312
|
+
* like 'list', 'multiple', 'size', etc. without creating explicit props.
|
|
313
|
+
* Optimized with Set lookups (O(1)) and caching.
|
|
314
|
+
*/
|
|
315
|
+
private collectNativeAttributes;
|
|
316
|
+
/** Identify wrapping form element */
|
|
317
|
+
private get parentFormEl();
|
|
318
|
+
private get ariaDescribedBy();
|
|
319
|
+
private get hasError();
|
|
320
|
+
private get hasValidationError();
|
|
321
|
+
private get hasMessage();
|
|
322
|
+
/**
|
|
323
|
+
* Determine whether this element should be ignored
|
|
324
|
+
* during Constraint Validation API validation.
|
|
325
|
+
* */
|
|
326
|
+
private get isNoValidate();
|
|
327
|
+
private get hasTrailingSlot();
|
|
328
|
+
private getValidityStateData;
|
|
329
|
+
private get validEmailPattern();
|
|
330
|
+
private validateFormElement;
|
|
331
|
+
private onInput;
|
|
332
|
+
private onChange;
|
|
333
|
+
private onBlur;
|
|
334
|
+
private onFocus;
|
|
335
|
+
private onBeforeInput;
|
|
336
|
+
private onInvalid;
|
|
337
|
+
private onKeyDown;
|
|
338
|
+
private onKeyUp;
|
|
339
|
+
private onSelect;
|
|
340
|
+
componentWillLoad(): void;
|
|
341
|
+
/**
|
|
342
|
+
* Extracts options from a slotted <datalist> element.
|
|
343
|
+
* Supports both default slot and slot="datalist" usage.
|
|
344
|
+
*/
|
|
345
|
+
private extractSlottedDatalistOptions;
|
|
346
|
+
/**
|
|
347
|
+
* Parses options from a HTMLDataListElement into InputOption array.
|
|
348
|
+
*/
|
|
349
|
+
private parseDatalistOptions;
|
|
350
|
+
private contributeToFormData;
|
|
351
|
+
private connectFormEventListeners;
|
|
352
|
+
connectedCallback(): void;
|
|
353
|
+
disconnectedCallback(): void;
|
|
354
|
+
private datalistObserver;
|
|
355
|
+
private setupDatalistObserver;
|
|
356
|
+
private disconnectDatalistObserver;
|
|
357
|
+
private onResetForm;
|
|
358
|
+
private onSubmitForm;
|
|
359
|
+
private handleKeyup;
|
|
360
|
+
private disconnectFormEventListeners;
|
|
361
|
+
private handleClick;
|
|
362
|
+
handleValueChange(): void;
|
|
363
|
+
handleTypeChange(): void;
|
|
364
|
+
render(): any;
|
|
365
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const InputCodeInputModeArray: readonly ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"];
|
|
2
|
+
export declare const InputCodeEnterKeyHintArray: readonly ["enter", "done", "go", "next", "previous", "search", "send"];
|
|
3
|
+
export type InputCodeInputMode = typeof InputCodeInputModeArray[number];
|
|
4
|
+
export type InputCodeEnterKeyHint = typeof InputCodeEnterKeyHintArray[number];
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import type { InputCodeInputMode, InputCodeEnterKeyHint } from './exports';
|
|
3
|
+
export declare class InputCode {
|
|
4
|
+
host: HTMLRInputCodeElement;
|
|
5
|
+
/** Specifies the `id` of the `<form>` to which the element belongs. */
|
|
6
|
+
form?: string;
|
|
7
|
+
/** Specifies a name for an input for submission within formData object. */
|
|
8
|
+
name: string;
|
|
9
|
+
/** Number of digits (typically 4–6).
|
|
10
|
+
* @default: 4
|
|
11
|
+
*/
|
|
12
|
+
length: number;
|
|
13
|
+
/** Whether the input is disabled */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Specifies if element must be ignored during validation of the form elements. */
|
|
16
|
+
novalidate?: boolean;
|
|
17
|
+
/** Whether the input is required */
|
|
18
|
+
required?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Read-only mode (mirrors native `readonly`): value cannot be changed by the user,
|
|
21
|
+
* but the field can still receive focus, be selected, and be submitted with a form.
|
|
22
|
+
*/
|
|
23
|
+
readonly?: boolean;
|
|
24
|
+
/** Label for accessibility.
|
|
25
|
+
* @default: 'Verification code'
|
|
26
|
+
*/
|
|
27
|
+
label: string;
|
|
28
|
+
/** Text of an additional marker in the label */
|
|
29
|
+
fieldIndicator?: string;
|
|
30
|
+
/** Description for accessibility */
|
|
31
|
+
hint?: string;
|
|
32
|
+
/** Validity indicator, serving to change UI of the component */
|
|
33
|
+
invalid?: boolean;
|
|
34
|
+
/** The way to provide error message separately from Constraint Validation API. */
|
|
35
|
+
error?: string;
|
|
36
|
+
/** Visual indication of valid state */
|
|
37
|
+
valid?: boolean;
|
|
38
|
+
/** Set custom message for `tooShort` property of a ValidityState object (set by `minlength`) within Constrain Validation API */
|
|
39
|
+
tooShortMessage?: string;
|
|
40
|
+
/** 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. */
|
|
41
|
+
customErrorMessage?: string;
|
|
42
|
+
/** Set custom message for `valueMissing` property of a ValidityState object (set by `required`) within Constrain Validation API */
|
|
43
|
+
valueMissingMessage?: string;
|
|
44
|
+
/** Defines if the component suppose to occupy 100% width */
|
|
45
|
+
fullWidth?: boolean;
|
|
46
|
+
/** Defines label for each character's input.
|
|
47
|
+
* Default "Character: ${character number}" */
|
|
48
|
+
ariaCharacterLabel?: string;
|
|
49
|
+
/** Defines initial value */
|
|
50
|
+
value?: string | null;
|
|
51
|
+
/** Specifies the input mode for the virtual keyboard on mobile devices. Default is 'numeric' for OTP codes.
|
|
52
|
+
* @default: 'numeric'
|
|
53
|
+
*/
|
|
54
|
+
inputmode?: InputCodeInputMode;
|
|
55
|
+
/** Specifies the enter key hint for the virtual keyboard. Default is 'done' for OTP completion.
|
|
56
|
+
* @default: 'done'
|
|
57
|
+
*/
|
|
58
|
+
enterkeyhint?: InputCodeEnterKeyHint;
|
|
59
|
+
/** Specifies the autocomplete behavior. Default is 'one-time-code' for SMS OTP autofill.
|
|
60
|
+
* @default: 'one-time-code'
|
|
61
|
+
*/
|
|
62
|
+
autocomplete?: string;
|
|
63
|
+
/** Emits the current code value as it changes */
|
|
64
|
+
rChange: EventEmitter<{
|
|
65
|
+
value: string;
|
|
66
|
+
}>;
|
|
67
|
+
/** Emits event after each validation */
|
|
68
|
+
rValidate: EventEmitter<{
|
|
69
|
+
state: string;
|
|
70
|
+
message: string;
|
|
71
|
+
}>;
|
|
72
|
+
/** Emits 'rReset' event when form containing the component was reset */
|
|
73
|
+
rReset: EventEmitter<{
|
|
74
|
+
element: HTMLRInputCodeElement;
|
|
75
|
+
value: any;
|
|
76
|
+
}>;
|
|
77
|
+
/** Emits when all segments are filled with values */
|
|
78
|
+
rComplete: EventEmitter<{
|
|
79
|
+
value: string;
|
|
80
|
+
isComplete: boolean;
|
|
81
|
+
}>;
|
|
82
|
+
/** Holds the current values of each input box */
|
|
83
|
+
values: string[];
|
|
84
|
+
/** Tracks whether the component was previously in a complete state */
|
|
85
|
+
wasComplete: boolean;
|
|
86
|
+
/** Tracks the last completed value to detect changes */
|
|
87
|
+
lastCompletedValue: string;
|
|
88
|
+
/** Validity state passed from validateFormElement function after validation */
|
|
89
|
+
validityState: string | null;
|
|
90
|
+
/** Validity message passed from validateFormElement function after validation */
|
|
91
|
+
validityMessage: string | null;
|
|
92
|
+
private inputs;
|
|
93
|
+
/**
|
|
94
|
+
* Validates segment index and throws descriptive errors if invalid.
|
|
95
|
+
* @param index - The index to validate
|
|
96
|
+
* @throws Error if index is not an integer or out of bounds
|
|
97
|
+
*/
|
|
98
|
+
private validateSegmentIndex;
|
|
99
|
+
/**
|
|
100
|
+
* Gets the current complete code value by joining all individual digit values.
|
|
101
|
+
* @returns Promise that resolves to the complete code string
|
|
102
|
+
*/
|
|
103
|
+
getValue(): Promise<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Resets the component by clearing all input values and focusing the first input.
|
|
106
|
+
* @returns Promise that resolves when reset is complete
|
|
107
|
+
*/
|
|
108
|
+
reset(): Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Sets provided value.
|
|
111
|
+
* */
|
|
112
|
+
setValue(value: string | null): Promise<void>;
|
|
113
|
+
/** Validates an element, displays provided message in case value is invalid. */
|
|
114
|
+
setCustomValidity(message: string): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Validates the input code without triggering UI and returns a boolean indicating its validity.
|
|
117
|
+
* @returns A boolean indicating whether the input code is valid.
|
|
118
|
+
*/
|
|
119
|
+
checkValidity(): Promise<boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* Focuses a specific segment (input) by index.
|
|
122
|
+
* @param index - The zero-based index of the segment to focus (0 to length-1)
|
|
123
|
+
* @returns Promise that resolves when focus is set, or rejects if index is invalid
|
|
124
|
+
*/
|
|
125
|
+
focusSegment(index: number): Promise<void>;
|
|
126
|
+
/**
|
|
127
|
+
* Gets the value of a specific segment by index.
|
|
128
|
+
* @param index - The zero-based index of the segment (0 to length-1)
|
|
129
|
+
* @returns Promise that resolves to the segment value (single character string or empty string)
|
|
130
|
+
*/
|
|
131
|
+
getSegmentValue(index: number): Promise<string>;
|
|
132
|
+
/**
|
|
133
|
+
* Sets the value of a specific segment by index.
|
|
134
|
+
* @param index - The zero-based index of the segment (0 to length-1)
|
|
135
|
+
* @param value - The value to set (will be truncated to first character if longer)
|
|
136
|
+
*/
|
|
137
|
+
setSegmentValue(index: number, value: string): Promise<void>;
|
|
138
|
+
handleValuesChange(): void;
|
|
139
|
+
handleLengthChange(newLength: number): void;
|
|
140
|
+
/**
|
|
141
|
+
* Checks if all segments are filled and emits rComplete event when:
|
|
142
|
+
* 1. Transitioning from incomplete to complete
|
|
143
|
+
* 2. Complete and value has changed from previous completed value
|
|
144
|
+
*/
|
|
145
|
+
private checkAndEmitCompletion;
|
|
146
|
+
private handleInput;
|
|
147
|
+
private handleKeyDown;
|
|
148
|
+
private createInputHandler;
|
|
149
|
+
private createKeyDownHandler;
|
|
150
|
+
private handlePaste;
|
|
151
|
+
private get firstEmptyInput();
|
|
152
|
+
private onHostClick;
|
|
153
|
+
private uniqueId;
|
|
154
|
+
private nativeElement;
|
|
155
|
+
private get message();
|
|
156
|
+
private get ariaDescribedBy();
|
|
157
|
+
/** Identify wrapping form element */
|
|
158
|
+
private get parentFormEl();
|
|
159
|
+
/**
|
|
160
|
+
* Determine whether this element should be ignored
|
|
161
|
+
* during Constraint Validation API validation.
|
|
162
|
+
* */
|
|
163
|
+
private get isNoValidate();
|
|
164
|
+
private getValidityStateData;
|
|
165
|
+
private validateFormElement;
|
|
166
|
+
private onResetForm;
|
|
167
|
+
private onSubmitForm;
|
|
168
|
+
private contributeToFormData;
|
|
169
|
+
private connectFormEventListeners;
|
|
170
|
+
private disconnectFormEventListeners;
|
|
171
|
+
connectedCallback(): void;
|
|
172
|
+
disconnectedCallback(): void;
|
|
173
|
+
private get hasMessage();
|
|
174
|
+
private get groupDescribedby();
|
|
175
|
+
componentWillLoad(): void;
|
|
176
|
+
render(): any;
|
|
177
|
+
}
|