@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,893 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { phone } from "phone";
|
|
3
|
+
import { appendControlToFormData } from "../../utils/formData";
|
|
4
|
+
export class InputPhoneNumber {
|
|
5
|
+
constructor() {
|
|
6
|
+
/** Specifies a name for an input for submitting within formData object. */
|
|
7
|
+
this.name = 'phone-number';
|
|
8
|
+
/** Label for phone input */
|
|
9
|
+
this.inputLabel = 'Phone number without country code';
|
|
10
|
+
/** Label for countryCode code */
|
|
11
|
+
this.countryCodeLabel = 'Country code';
|
|
12
|
+
this.fullPhoneNumber = '';
|
|
13
|
+
this.phoneNumber = '';
|
|
14
|
+
this.validityState = '';
|
|
15
|
+
this.validityMessage = '';
|
|
16
|
+
this.uniqueId = `r-input-phone-number-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
17
|
+
/**
|
|
18
|
+
* Initial attributes state
|
|
19
|
+
* */
|
|
20
|
+
this.initial = {};
|
|
21
|
+
this.handleOnInput = (event) => {
|
|
22
|
+
if (this.readonly)
|
|
23
|
+
return;
|
|
24
|
+
this.phoneNumber = event.target.value;
|
|
25
|
+
this.fullPhoneNumber = this.phoneNumber ? this.countryCode + this.phoneNumber : '';
|
|
26
|
+
const { host, phoneNumber, countryCode, value } = this;
|
|
27
|
+
this.rInput.emit({ element: host, value, countryCode, phoneNumber });
|
|
28
|
+
this.validateFormElement(this.nativeElement);
|
|
29
|
+
};
|
|
30
|
+
this.handleInputOnChange = (event) => {
|
|
31
|
+
if (this.readonly)
|
|
32
|
+
return;
|
|
33
|
+
this.phoneNumber = event.target.value;
|
|
34
|
+
this.handleValueChange();
|
|
35
|
+
};
|
|
36
|
+
this.handleValueChange = () => {
|
|
37
|
+
if (this.readonly)
|
|
38
|
+
return;
|
|
39
|
+
this.fullPhoneNumber = this.phoneNumber ? this.countryCode + this.phoneNumber : '';
|
|
40
|
+
const { host, phoneNumber, countryCode, value } = this;
|
|
41
|
+
this.rChange.emit({ element: host, value, countryCode, phoneNumber });
|
|
42
|
+
this.validateFormElement(this.nativeElement);
|
|
43
|
+
};
|
|
44
|
+
this.validateFormElement = (element) => {
|
|
45
|
+
if (this.readonly)
|
|
46
|
+
return;
|
|
47
|
+
if (element === null)
|
|
48
|
+
return;
|
|
49
|
+
if (this.isNoValidate)
|
|
50
|
+
return;
|
|
51
|
+
if (this.error)
|
|
52
|
+
return;
|
|
53
|
+
const { validityState, validityMessage } = this.getValidityStateData();
|
|
54
|
+
this.validityState = validityState;
|
|
55
|
+
this.validityMessage = validityMessage;
|
|
56
|
+
const isValid = this.validityState === 'valid';
|
|
57
|
+
this.valid = isValid;
|
|
58
|
+
this.invalid = !isValid;
|
|
59
|
+
this.rValidate.emit({
|
|
60
|
+
state: this.validityState,
|
|
61
|
+
message: this.validityMessage
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
this.getValidityStateData = () => {
|
|
65
|
+
var _a, _b;
|
|
66
|
+
let validityState = '';
|
|
67
|
+
let validityMessage = '';
|
|
68
|
+
if (!this.required && !((_a = this.phoneNumber) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
69
|
+
validityState = 'valid';
|
|
70
|
+
return { validityState, validityMessage };
|
|
71
|
+
}
|
|
72
|
+
if (!((_b = this.phoneNumber) === null || _b === void 0 ? void 0 : _b.length)) {
|
|
73
|
+
validityState = 'valueMissing';
|
|
74
|
+
validityMessage = this.valueMissingMessage;
|
|
75
|
+
return { validityState, validityMessage };
|
|
76
|
+
}
|
|
77
|
+
const isPhoneNumberValid = this.countryCode ? this.getPhoneValidationResult(this.phoneNumber, this.countryCode).isValid : false;
|
|
78
|
+
if (!isPhoneNumberValid) {
|
|
79
|
+
validityState = 'invalid';
|
|
80
|
+
validityMessage = this.invalidPhoneNumberMessage;
|
|
81
|
+
return { validityState, validityMessage };
|
|
82
|
+
}
|
|
83
|
+
validityState = 'valid';
|
|
84
|
+
return { validityState, validityMessage };
|
|
85
|
+
};
|
|
86
|
+
this.onSubmitForm = (event) => {
|
|
87
|
+
if (this.isNoValidate)
|
|
88
|
+
return;
|
|
89
|
+
this.validateFormElement(this.nativeElement);
|
|
90
|
+
if (this.invalid) {
|
|
91
|
+
event.preventDefault();
|
|
92
|
+
event.stopPropagation();
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
this.contributeToFormData = (event) => {
|
|
96
|
+
appendControlToFormData(this.nativeElement || this.host, event.formData);
|
|
97
|
+
};
|
|
98
|
+
this.onResetForm = () => {
|
|
99
|
+
var _a;
|
|
100
|
+
if (this.readonly)
|
|
101
|
+
return;
|
|
102
|
+
this.validityState = null;
|
|
103
|
+
this.validityMessage = null;
|
|
104
|
+
this.phoneNumber = '';
|
|
105
|
+
this.invalid = this.initial['invalid'];
|
|
106
|
+
this.valid = !this.invalid;
|
|
107
|
+
(_a = this.countryCodeElement) === null || _a === void 0 ? void 0 : _a.reset();
|
|
108
|
+
this.updateValues(this.initial['value']);
|
|
109
|
+
const { host, value } = this;
|
|
110
|
+
this.rReset.emit({ element: host, value });
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
/** Returns the element value. */
|
|
114
|
+
async getValue() {
|
|
115
|
+
return this.fullPhoneNumber;
|
|
116
|
+
}
|
|
117
|
+
/** Set the element value. */
|
|
118
|
+
async setValue(value) {
|
|
119
|
+
this.updateValues(value);
|
|
120
|
+
}
|
|
121
|
+
/** Validates an element, displays provided message in case value is invalid. */
|
|
122
|
+
async setCustomValidity(message) {
|
|
123
|
+
this.customErrorMessage = message;
|
|
124
|
+
this.validateFormElement(this.nativeElement);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Validates the input phone number without triggering UI and returns a boolean indicating its validity.
|
|
128
|
+
* @returns A boolean indicating whether the input phone number is valid.
|
|
129
|
+
*/
|
|
130
|
+
async checkValidity() {
|
|
131
|
+
const { validityState } = this.getValidityStateData();
|
|
132
|
+
return validityState === 'valid';
|
|
133
|
+
}
|
|
134
|
+
/** Check validity and reveal validation state. */
|
|
135
|
+
async reportValidity() {
|
|
136
|
+
this.validateFormElement(this.nativeElement);
|
|
137
|
+
return this.validityState === 'valid';
|
|
138
|
+
}
|
|
139
|
+
/** Reset phone number input to its initial state */
|
|
140
|
+
async reset() {
|
|
141
|
+
this.onResetForm();
|
|
142
|
+
}
|
|
143
|
+
watchValueChange(value) {
|
|
144
|
+
this.updateValues(value);
|
|
145
|
+
this.validateFormElement(this.nativeElement);
|
|
146
|
+
}
|
|
147
|
+
handleDisabledChange() {
|
|
148
|
+
this.setCountryCodeElementAttributes({
|
|
149
|
+
'disabled': `${!!this.disabled}`
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
handleRequiredChange() {
|
|
153
|
+
this.setCountryCodeElementAttributes({
|
|
154
|
+
'required': `${!!this.required}`
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
handleReadonlyChange() {
|
|
158
|
+
this.setCountryCodeElementAttributes({
|
|
159
|
+
'readonly': `${!!this.readonly}`
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
handleLabelChange() {
|
|
163
|
+
this.setCountryCodeElementAttributes({
|
|
164
|
+
'label': this.countryCodeLabel
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
/** Identify wrapping form element */
|
|
168
|
+
get parentFormEl() {
|
|
169
|
+
return this.host.closest('form') || document.querySelector(`#${this.form}`) || null;
|
|
170
|
+
}
|
|
171
|
+
get countryCodeElement() {
|
|
172
|
+
return this.host.querySelector('r-select');
|
|
173
|
+
}
|
|
174
|
+
get countryCode() {
|
|
175
|
+
return this.host.querySelector('r-select').value || '';
|
|
176
|
+
}
|
|
177
|
+
get ariaDescribedBy() {
|
|
178
|
+
const describedBy = `${this.uniqueId}-message`;
|
|
179
|
+
return this.hint ? `${this.uniqueId}-hint ${describedBy}` : describedBy;
|
|
180
|
+
}
|
|
181
|
+
get hasError() {
|
|
182
|
+
var _a;
|
|
183
|
+
return this.invalid && !!((_a = this.error) === null || _a === void 0 ? void 0 : _a.length);
|
|
184
|
+
}
|
|
185
|
+
get hasValidationError() {
|
|
186
|
+
var _a, _b;
|
|
187
|
+
return this.validityState && this.validityState !== 'valid' && (!!((_a = this.customErrorMessage) === null || _a === void 0 ? void 0 : _a.length) || !!((_b = this.validityMessage) === null || _b === void 0 ? void 0 : _b.length));
|
|
188
|
+
}
|
|
189
|
+
get hasMessage() {
|
|
190
|
+
return this.hasError || this.hasValidationError;
|
|
191
|
+
}
|
|
192
|
+
get errorMessage() {
|
|
193
|
+
return this.hasError && this.error || this.hasValidationError && this.validityMessage;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Determine whether this element should be ignored
|
|
197
|
+
* during Constraint Validation API validation.
|
|
198
|
+
* */
|
|
199
|
+
get isNoValidate() {
|
|
200
|
+
var _a;
|
|
201
|
+
return (((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.hasAttribute('novalidate')) ||
|
|
202
|
+
this.novalidate ||
|
|
203
|
+
false);
|
|
204
|
+
}
|
|
205
|
+
updateValues(value) {
|
|
206
|
+
var _a, _b;
|
|
207
|
+
this.fullPhoneNumber = value || '';
|
|
208
|
+
if (!value) {
|
|
209
|
+
(_a = this.countryCodeElement) === null || _a === void 0 ? void 0 : _a.reset();
|
|
210
|
+
this.phoneNumber = '';
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
if (!this.getPhoneValidationResult(value).isValid) {
|
|
214
|
+
console.error('Provided phone number is not valid');
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
const countryCode = this.getPhoneValidationResult(value).countryCode;
|
|
218
|
+
this.phoneNumber = value.replace(countryCode, '');
|
|
219
|
+
(_b = this.countryCodeElement) === null || _b === void 0 ? void 0 : _b.setValue(countryCode);
|
|
220
|
+
}
|
|
221
|
+
setCountryCodeElementAttributes(attributes) {
|
|
222
|
+
Object.entries(attributes || {}).forEach(([key, val]) => {
|
|
223
|
+
var _a, _b;
|
|
224
|
+
if (val === false || val === null || val === undefined) {
|
|
225
|
+
(_a = this.countryCodeElement) === null || _a === void 0 ? void 0 : _a.removeAttribute(key);
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
(_b = this.countryCodeElement) === null || _b === void 0 ? void 0 : _b.setAttribute(key, String(val));
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
getPhoneValidationResult(phoneNumber, countryCode = '') {
|
|
233
|
+
return phone(countryCode + phoneNumber, { validateMobilePrefix: false });
|
|
234
|
+
}
|
|
235
|
+
connectEventListeners() {
|
|
236
|
+
var _a, _b, _c, _d;
|
|
237
|
+
(_a = this.countryCodeElement) === null || _a === void 0 ? void 0 : _a.addEventListener('rChange', this.handleValueChange);
|
|
238
|
+
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.addEventListener('formdata', this.contributeToFormData);
|
|
239
|
+
(_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.addEventListener('submit', this.onSubmitForm, { capture: true });
|
|
240
|
+
(_d = this.parentFormEl) === null || _d === void 0 ? void 0 : _d.addEventListener('reset', this.onResetForm);
|
|
241
|
+
}
|
|
242
|
+
disconnectEventListeners() {
|
|
243
|
+
var _a, _b, _c, _d;
|
|
244
|
+
(_a = this.countryCodeElement) === null || _a === void 0 ? void 0 : _a.removeEventListener('rChange', this.handleValueChange);
|
|
245
|
+
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('formdata', this.contributeToFormData);
|
|
246
|
+
(_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('submit', this.onSubmitForm);
|
|
247
|
+
(_d = this.parentFormEl) === null || _d === void 0 ? void 0 : _d.removeEventListener('reset', this.onResetForm);
|
|
248
|
+
}
|
|
249
|
+
componentWillLoad() {
|
|
250
|
+
this.initial['value'] = this.value;
|
|
251
|
+
this.initial['invalid'] = this.invalid;
|
|
252
|
+
this.updateValues(this.value);
|
|
253
|
+
const staticAttributes = {
|
|
254
|
+
'show-leading-icon': 'true',
|
|
255
|
+
'leading-icon': 'globe',
|
|
256
|
+
'placeholder': '+00',
|
|
257
|
+
'internal': 'true'
|
|
258
|
+
};
|
|
259
|
+
const dynamicAttributes = {
|
|
260
|
+
'disabled': `${!!this.disabled}`,
|
|
261
|
+
'required': `${!!this.required}`,
|
|
262
|
+
'readonly': `${!!this.readonly}`,
|
|
263
|
+
'label': this.countryCodeLabel
|
|
264
|
+
};
|
|
265
|
+
this.setCountryCodeElementAttributes(Object.assign(Object.assign({}, staticAttributes), dynamicAttributes));
|
|
266
|
+
}
|
|
267
|
+
componentDidLoad() {
|
|
268
|
+
this.connectEventListeners();
|
|
269
|
+
}
|
|
270
|
+
disconnectedCallback() {
|
|
271
|
+
this.disconnectEventListeners();
|
|
272
|
+
}
|
|
273
|
+
render() {
|
|
274
|
+
const { label, fieldIndicator, hint, name, form, inputLabel, disabled, uniqueId, required, valid, invalid, novalidate, phoneNumber, fullPhoneNumber, fullWidth } = this;
|
|
275
|
+
const labelAttr = {
|
|
276
|
+
fieldIndicator
|
|
277
|
+
};
|
|
278
|
+
const inputAttrs = {
|
|
279
|
+
id: uniqueId,
|
|
280
|
+
form,
|
|
281
|
+
name,
|
|
282
|
+
novalidate,
|
|
283
|
+
required,
|
|
284
|
+
disabled,
|
|
285
|
+
'aria-describedby': this.ariaDescribedBy
|
|
286
|
+
};
|
|
287
|
+
return (h(Host, { key: 'e5170613c08f3927d2a65cb7649cd29d27954b99' }, h("div", { key: '42e8954e2140be50ea42290779af01522e0e39e7', class: "r-input-phone-number--label-container" }, h("label", { key: '0dbd4ad0d762f97d4a2242f1dc95ba8cd9039ce0', id: `${uniqueId}-label` }, label &&
|
|
288
|
+
h("r-label", Object.assign({ key: 'ec76421b8dad5b1ed58cb0302d7c8d32fed66735' }, labelAttr), label)), h("slot", { key: 'c9e8a6fb83822826f5a1f62cedb06169715dac52', name: "popover" })), hint &&
|
|
289
|
+
h("r-hint", { key: 'c0755d106d3d01f6f6c0ab1d939337d98e014652', id: `${uniqueId}-hint`, role: "note" }, hint), h("div", { key: 'e32fe35fed92c7a729231164705ef6437060775e', class: "r-input-phone-number", role: "group", "aria-labelledby": `${uniqueId}-label`, "aria-describedby": this.ariaDescribedBy }, h("slot", { key: 'cc2d797e9f9c5b5a21d6e8a7a7d6c7edb2d2b88a' }), h("r-input", { key: 'c3402afa0f6f30afb61b81c947272368dfabbbcf', label: inputLabel, value: phoneNumber, internal: true, valid: valid, invalid: invalid, required: required, readonly: this.readonly, novalidate: true, fullWidth: fullWidth, type: "tel", error: this.errorMessage || '', onRInput: this.handleOnInput, onRChange: this.handleInputOnChange, disabled: disabled })), h("input", Object.assign({ key: 'cd814c1b35708f56a911b4d93e907f9a2fac0f1c', type: "hidden" }, inputAttrs, { readonly: this.readonly, value: fullPhoneNumber, ref: el => this.nativeElement = el })), h("r-hint", { key: '211661682d51d22ffe93a6e993e03a3c89cc76e2', "aria-live": "polite", "aria-atomic": "true", id: `${uniqueId}-message`, class: !this.hasMessage && 'visually-hidden', variant: "error" }, this.hasMessage ? (this.hasError ? this.error : (this.customErrorMessage || this.validityMessage)) : '')));
|
|
290
|
+
}
|
|
291
|
+
static get is() { return "r-input-phone-number"; }
|
|
292
|
+
static get encapsulation() { return "shadow"; }
|
|
293
|
+
static get originalStyleUrls() {
|
|
294
|
+
return {
|
|
295
|
+
"$": ["input-phone-number.css"]
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
static get styleUrls() {
|
|
299
|
+
return {
|
|
300
|
+
"$": ["input-phone-number.css"]
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
static get properties() {
|
|
304
|
+
return {
|
|
305
|
+
"value": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"attribute": "value",
|
|
308
|
+
"mutable": false,
|
|
309
|
+
"complexType": {
|
|
310
|
+
"original": "string",
|
|
311
|
+
"resolved": "string",
|
|
312
|
+
"references": {}
|
|
313
|
+
},
|
|
314
|
+
"required": false,
|
|
315
|
+
"optional": true,
|
|
316
|
+
"docs": {
|
|
317
|
+
"tags": [],
|
|
318
|
+
"text": "Phone number value"
|
|
319
|
+
},
|
|
320
|
+
"getter": false,
|
|
321
|
+
"setter": false,
|
|
322
|
+
"reflect": true
|
|
323
|
+
},
|
|
324
|
+
"form": {
|
|
325
|
+
"type": "string",
|
|
326
|
+
"attribute": "form",
|
|
327
|
+
"mutable": false,
|
|
328
|
+
"complexType": {
|
|
329
|
+
"original": "string",
|
|
330
|
+
"resolved": "string",
|
|
331
|
+
"references": {}
|
|
332
|
+
},
|
|
333
|
+
"required": false,
|
|
334
|
+
"optional": true,
|
|
335
|
+
"docs": {
|
|
336
|
+
"tags": [],
|
|
337
|
+
"text": "Specifies the `id` of the `<form>` to which the element belongs"
|
|
338
|
+
},
|
|
339
|
+
"getter": false,
|
|
340
|
+
"setter": false,
|
|
341
|
+
"reflect": false
|
|
342
|
+
},
|
|
343
|
+
"novalidate": {
|
|
344
|
+
"type": "boolean",
|
|
345
|
+
"attribute": "novalidate",
|
|
346
|
+
"mutable": false,
|
|
347
|
+
"complexType": {
|
|
348
|
+
"original": "boolean",
|
|
349
|
+
"resolved": "boolean",
|
|
350
|
+
"references": {}
|
|
351
|
+
},
|
|
352
|
+
"required": false,
|
|
353
|
+
"optional": true,
|
|
354
|
+
"docs": {
|
|
355
|
+
"tags": [],
|
|
356
|
+
"text": "Specifies if element must be ignored during validation of the form elements"
|
|
357
|
+
},
|
|
358
|
+
"getter": false,
|
|
359
|
+
"setter": false,
|
|
360
|
+
"reflect": false
|
|
361
|
+
},
|
|
362
|
+
"label": {
|
|
363
|
+
"type": "string",
|
|
364
|
+
"attribute": "label",
|
|
365
|
+
"mutable": false,
|
|
366
|
+
"complexType": {
|
|
367
|
+
"original": "string",
|
|
368
|
+
"resolved": "string",
|
|
369
|
+
"references": {}
|
|
370
|
+
},
|
|
371
|
+
"required": true,
|
|
372
|
+
"optional": false,
|
|
373
|
+
"docs": {
|
|
374
|
+
"tags": [],
|
|
375
|
+
"text": "The label for the phone number."
|
|
376
|
+
},
|
|
377
|
+
"getter": false,
|
|
378
|
+
"setter": false,
|
|
379
|
+
"reflect": false
|
|
380
|
+
},
|
|
381
|
+
"fieldIndicator": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"attribute": "field-indicator",
|
|
384
|
+
"mutable": false,
|
|
385
|
+
"complexType": {
|
|
386
|
+
"original": "string",
|
|
387
|
+
"resolved": "string",
|
|
388
|
+
"references": {}
|
|
389
|
+
},
|
|
390
|
+
"required": false,
|
|
391
|
+
"optional": true,
|
|
392
|
+
"docs": {
|
|
393
|
+
"tags": [],
|
|
394
|
+
"text": "An optional field indicator for the label."
|
|
395
|
+
},
|
|
396
|
+
"getter": false,
|
|
397
|
+
"setter": false,
|
|
398
|
+
"reflect": false
|
|
399
|
+
},
|
|
400
|
+
"hint": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"attribute": "hint",
|
|
403
|
+
"mutable": false,
|
|
404
|
+
"complexType": {
|
|
405
|
+
"original": "string",
|
|
406
|
+
"resolved": "string",
|
|
407
|
+
"references": {}
|
|
408
|
+
},
|
|
409
|
+
"required": false,
|
|
410
|
+
"optional": true,
|
|
411
|
+
"docs": {
|
|
412
|
+
"tags": [],
|
|
413
|
+
"text": "Optional hint giving additional context to the user"
|
|
414
|
+
},
|
|
415
|
+
"getter": false,
|
|
416
|
+
"setter": false,
|
|
417
|
+
"reflect": false
|
|
418
|
+
},
|
|
419
|
+
"name": {
|
|
420
|
+
"type": "string",
|
|
421
|
+
"attribute": "name",
|
|
422
|
+
"mutable": false,
|
|
423
|
+
"complexType": {
|
|
424
|
+
"original": "string",
|
|
425
|
+
"resolved": "string",
|
|
426
|
+
"references": {}
|
|
427
|
+
},
|
|
428
|
+
"required": false,
|
|
429
|
+
"optional": false,
|
|
430
|
+
"docs": {
|
|
431
|
+
"tags": [],
|
|
432
|
+
"text": "Specifies a name for an input for submitting within formData object."
|
|
433
|
+
},
|
|
434
|
+
"getter": false,
|
|
435
|
+
"setter": false,
|
|
436
|
+
"reflect": false,
|
|
437
|
+
"defaultValue": "'phone-number'"
|
|
438
|
+
},
|
|
439
|
+
"inputLabel": {
|
|
440
|
+
"type": "string",
|
|
441
|
+
"attribute": "input-label",
|
|
442
|
+
"mutable": false,
|
|
443
|
+
"complexType": {
|
|
444
|
+
"original": "string",
|
|
445
|
+
"resolved": "string",
|
|
446
|
+
"references": {}
|
|
447
|
+
},
|
|
448
|
+
"required": false,
|
|
449
|
+
"optional": true,
|
|
450
|
+
"docs": {
|
|
451
|
+
"tags": [],
|
|
452
|
+
"text": "Label for phone input"
|
|
453
|
+
},
|
|
454
|
+
"getter": false,
|
|
455
|
+
"setter": false,
|
|
456
|
+
"reflect": false,
|
|
457
|
+
"defaultValue": "'Phone number without country code'"
|
|
458
|
+
},
|
|
459
|
+
"countryCodeLabel": {
|
|
460
|
+
"type": "string",
|
|
461
|
+
"attribute": "country-code-label",
|
|
462
|
+
"mutable": false,
|
|
463
|
+
"complexType": {
|
|
464
|
+
"original": "string",
|
|
465
|
+
"resolved": "string",
|
|
466
|
+
"references": {}
|
|
467
|
+
},
|
|
468
|
+
"required": false,
|
|
469
|
+
"optional": true,
|
|
470
|
+
"docs": {
|
|
471
|
+
"tags": [],
|
|
472
|
+
"text": "Label for countryCode code"
|
|
473
|
+
},
|
|
474
|
+
"getter": false,
|
|
475
|
+
"setter": false,
|
|
476
|
+
"reflect": false,
|
|
477
|
+
"defaultValue": "'Country code'"
|
|
478
|
+
},
|
|
479
|
+
"disabled": {
|
|
480
|
+
"type": "boolean",
|
|
481
|
+
"attribute": "disabled",
|
|
482
|
+
"mutable": false,
|
|
483
|
+
"complexType": {
|
|
484
|
+
"original": "boolean",
|
|
485
|
+
"resolved": "boolean",
|
|
486
|
+
"references": {}
|
|
487
|
+
},
|
|
488
|
+
"required": false,
|
|
489
|
+
"optional": true,
|
|
490
|
+
"docs": {
|
|
491
|
+
"tags": [],
|
|
492
|
+
"text": "Prevents user interaction and applies disabled style."
|
|
493
|
+
},
|
|
494
|
+
"getter": false,
|
|
495
|
+
"setter": false,
|
|
496
|
+
"reflect": true
|
|
497
|
+
},
|
|
498
|
+
"readonly": {
|
|
499
|
+
"type": "boolean",
|
|
500
|
+
"attribute": "readonly",
|
|
501
|
+
"mutable": false,
|
|
502
|
+
"complexType": {
|
|
503
|
+
"original": "boolean",
|
|
504
|
+
"resolved": "boolean",
|
|
505
|
+
"references": {}
|
|
506
|
+
},
|
|
507
|
+
"required": false,
|
|
508
|
+
"optional": true,
|
|
509
|
+
"docs": {
|
|
510
|
+
"tags": [],
|
|
511
|
+
"text": "Makes the date inputs read-only: users can focus and copy the value,\nbut cannot modify it (value still submitted with the form unlike disabled)."
|
|
512
|
+
},
|
|
513
|
+
"getter": false,
|
|
514
|
+
"setter": false,
|
|
515
|
+
"reflect": true
|
|
516
|
+
},
|
|
517
|
+
"required": {
|
|
518
|
+
"type": "boolean",
|
|
519
|
+
"attribute": "required",
|
|
520
|
+
"mutable": false,
|
|
521
|
+
"complexType": {
|
|
522
|
+
"original": "boolean",
|
|
523
|
+
"resolved": "boolean",
|
|
524
|
+
"references": {}
|
|
525
|
+
},
|
|
526
|
+
"required": false,
|
|
527
|
+
"optional": true,
|
|
528
|
+
"docs": {
|
|
529
|
+
"tags": [],
|
|
530
|
+
"text": "Specifies that phone number value is required"
|
|
531
|
+
},
|
|
532
|
+
"getter": false,
|
|
533
|
+
"setter": false,
|
|
534
|
+
"reflect": true
|
|
535
|
+
},
|
|
536
|
+
"valid": {
|
|
537
|
+
"type": "boolean",
|
|
538
|
+
"attribute": "valid",
|
|
539
|
+
"mutable": true,
|
|
540
|
+
"complexType": {
|
|
541
|
+
"original": "boolean",
|
|
542
|
+
"resolved": "boolean",
|
|
543
|
+
"references": {}
|
|
544
|
+
},
|
|
545
|
+
"required": false,
|
|
546
|
+
"optional": true,
|
|
547
|
+
"docs": {
|
|
548
|
+
"tags": [],
|
|
549
|
+
"text": "Visual indication of valid state"
|
|
550
|
+
},
|
|
551
|
+
"getter": false,
|
|
552
|
+
"setter": false,
|
|
553
|
+
"reflect": true
|
|
554
|
+
},
|
|
555
|
+
"invalid": {
|
|
556
|
+
"type": "boolean",
|
|
557
|
+
"attribute": "invalid",
|
|
558
|
+
"mutable": true,
|
|
559
|
+
"complexType": {
|
|
560
|
+
"original": "boolean",
|
|
561
|
+
"resolved": "boolean",
|
|
562
|
+
"references": {}
|
|
563
|
+
},
|
|
564
|
+
"required": false,
|
|
565
|
+
"optional": true,
|
|
566
|
+
"docs": {
|
|
567
|
+
"tags": [],
|
|
568
|
+
"text": "Validity indicator, serving to change UI of the component"
|
|
569
|
+
},
|
|
570
|
+
"getter": false,
|
|
571
|
+
"setter": false,
|
|
572
|
+
"reflect": true
|
|
573
|
+
},
|
|
574
|
+
"error": {
|
|
575
|
+
"type": "string",
|
|
576
|
+
"attribute": "error",
|
|
577
|
+
"mutable": false,
|
|
578
|
+
"complexType": {
|
|
579
|
+
"original": "string",
|
|
580
|
+
"resolved": "string",
|
|
581
|
+
"references": {}
|
|
582
|
+
},
|
|
583
|
+
"required": false,
|
|
584
|
+
"optional": true,
|
|
585
|
+
"docs": {
|
|
586
|
+
"tags": [],
|
|
587
|
+
"text": "Custom validation error message"
|
|
588
|
+
},
|
|
589
|
+
"getter": false,
|
|
590
|
+
"setter": false,
|
|
591
|
+
"reflect": false
|
|
592
|
+
},
|
|
593
|
+
"customErrorMessage": {
|
|
594
|
+
"type": "string",
|
|
595
|
+
"attribute": "custom-error-message",
|
|
596
|
+
"mutable": false,
|
|
597
|
+
"complexType": {
|
|
598
|
+
"original": "string",
|
|
599
|
+
"resolved": "string",
|
|
600
|
+
"references": {}
|
|
601
|
+
},
|
|
602
|
+
"required": false,
|
|
603
|
+
"optional": true,
|
|
604
|
+
"docs": {
|
|
605
|
+
"tags": [],
|
|
606
|
+
"text": "Set custom message for `customError` property of a ValidityState object indicating whether the element's custom validity message has been set to a non-empty string by calling the element's setCustomValidity() method."
|
|
607
|
+
},
|
|
608
|
+
"getter": false,
|
|
609
|
+
"setter": false,
|
|
610
|
+
"reflect": true
|
|
611
|
+
},
|
|
612
|
+
"valueMissingMessage": {
|
|
613
|
+
"type": "string",
|
|
614
|
+
"attribute": "value-missing-message",
|
|
615
|
+
"mutable": false,
|
|
616
|
+
"complexType": {
|
|
617
|
+
"original": "string",
|
|
618
|
+
"resolved": "string",
|
|
619
|
+
"references": {}
|
|
620
|
+
},
|
|
621
|
+
"required": false,
|
|
622
|
+
"optional": true,
|
|
623
|
+
"docs": {
|
|
624
|
+
"tags": [],
|
|
625
|
+
"text": "Set custom message for `valueMissing` property of a ValidityState object (set by `required`) within Constrain Validation API"
|
|
626
|
+
},
|
|
627
|
+
"getter": false,
|
|
628
|
+
"setter": false,
|
|
629
|
+
"reflect": false
|
|
630
|
+
},
|
|
631
|
+
"invalidPhoneNumberMessage": {
|
|
632
|
+
"type": "string",
|
|
633
|
+
"attribute": "invalid-phone-number-message",
|
|
634
|
+
"mutable": false,
|
|
635
|
+
"complexType": {
|
|
636
|
+
"original": "string",
|
|
637
|
+
"resolved": "string",
|
|
638
|
+
"references": {}
|
|
639
|
+
},
|
|
640
|
+
"required": false,
|
|
641
|
+
"optional": true,
|
|
642
|
+
"docs": {
|
|
643
|
+
"tags": [],
|
|
644
|
+
"text": "Custom error message displayed when phone number is not valid."
|
|
645
|
+
},
|
|
646
|
+
"getter": false,
|
|
647
|
+
"setter": false,
|
|
648
|
+
"reflect": false
|
|
649
|
+
},
|
|
650
|
+
"fullWidth": {
|
|
651
|
+
"type": "boolean",
|
|
652
|
+
"attribute": "full-width",
|
|
653
|
+
"mutable": false,
|
|
654
|
+
"complexType": {
|
|
655
|
+
"original": "boolean",
|
|
656
|
+
"resolved": "boolean",
|
|
657
|
+
"references": {}
|
|
658
|
+
},
|
|
659
|
+
"required": false,
|
|
660
|
+
"optional": true,
|
|
661
|
+
"docs": {
|
|
662
|
+
"tags": [],
|
|
663
|
+
"text": "Defines if the component suppose to occupy 100% width"
|
|
664
|
+
},
|
|
665
|
+
"getter": false,
|
|
666
|
+
"setter": false,
|
|
667
|
+
"reflect": true
|
|
668
|
+
}
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
static get states() {
|
|
672
|
+
return {
|
|
673
|
+
"fullPhoneNumber": {},
|
|
674
|
+
"phoneNumber": {},
|
|
675
|
+
"validityState": {},
|
|
676
|
+
"validityMessage": {}
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
static get events() {
|
|
680
|
+
return [{
|
|
681
|
+
"method": "rInput",
|
|
682
|
+
"name": "rInput",
|
|
683
|
+
"bubbles": true,
|
|
684
|
+
"cancelable": true,
|
|
685
|
+
"composed": true,
|
|
686
|
+
"docs": {
|
|
687
|
+
"tags": [],
|
|
688
|
+
"text": "Emits 'rInput' event when value of the component is changing"
|
|
689
|
+
},
|
|
690
|
+
"complexType": {
|
|
691
|
+
"original": "{\n element: HTMLRInputPhoneNumberElement,\n value: string,\n phoneNumber: string,\n countryCode: string\n }",
|
|
692
|
+
"resolved": "{ element: HTMLRInputPhoneNumberElement; value: string; phoneNumber: string; countryCode: string; }",
|
|
693
|
+
"references": {
|
|
694
|
+
"HTMLRInputPhoneNumberElement": {
|
|
695
|
+
"location": "global",
|
|
696
|
+
"id": "global::HTMLRInputPhoneNumberElement"
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
}, {
|
|
701
|
+
"method": "rChange",
|
|
702
|
+
"name": "rChange",
|
|
703
|
+
"bubbles": true,
|
|
704
|
+
"cancelable": true,
|
|
705
|
+
"composed": true,
|
|
706
|
+
"docs": {
|
|
707
|
+
"tags": [],
|
|
708
|
+
"text": "Emits 'rChange' event when value of the component has been changed"
|
|
709
|
+
},
|
|
710
|
+
"complexType": {
|
|
711
|
+
"original": "{\n element: HTMLRInputPhoneNumberElement,\n value: string,\n countryCode: string,\n phoneNumber: string\n }",
|
|
712
|
+
"resolved": "{ element: HTMLRInputPhoneNumberElement; value: string; countryCode: string; phoneNumber: string; }",
|
|
713
|
+
"references": {
|
|
714
|
+
"HTMLRInputPhoneNumberElement": {
|
|
715
|
+
"location": "global",
|
|
716
|
+
"id": "global::HTMLRInputPhoneNumberElement"
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}, {
|
|
721
|
+
"method": "rValidate",
|
|
722
|
+
"name": "rValidate",
|
|
723
|
+
"bubbles": true,
|
|
724
|
+
"cancelable": true,
|
|
725
|
+
"composed": true,
|
|
726
|
+
"docs": {
|
|
727
|
+
"tags": [],
|
|
728
|
+
"text": "Emits event after each validation"
|
|
729
|
+
},
|
|
730
|
+
"complexType": {
|
|
731
|
+
"original": "{\n state: string,\n message: string\n }",
|
|
732
|
+
"resolved": "{ state: string; message: string; }",
|
|
733
|
+
"references": {}
|
|
734
|
+
}
|
|
735
|
+
}, {
|
|
736
|
+
"method": "rReset",
|
|
737
|
+
"name": "rReset",
|
|
738
|
+
"bubbles": true,
|
|
739
|
+
"cancelable": true,
|
|
740
|
+
"composed": true,
|
|
741
|
+
"docs": {
|
|
742
|
+
"tags": [],
|
|
743
|
+
"text": "Emits 'rReset' event when form containing the component was reset"
|
|
744
|
+
},
|
|
745
|
+
"complexType": {
|
|
746
|
+
"original": "{\n element: HTMLRInputPhoneNumberElement,\n value: string\n }",
|
|
747
|
+
"resolved": "{ element: HTMLRInputPhoneNumberElement; value: string; }",
|
|
748
|
+
"references": {
|
|
749
|
+
"HTMLRInputPhoneNumberElement": {
|
|
750
|
+
"location": "global",
|
|
751
|
+
"id": "global::HTMLRInputPhoneNumberElement"
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
}];
|
|
756
|
+
}
|
|
757
|
+
static get methods() {
|
|
758
|
+
return {
|
|
759
|
+
"getValue": {
|
|
760
|
+
"complexType": {
|
|
761
|
+
"signature": "() => Promise<string>",
|
|
762
|
+
"parameters": [],
|
|
763
|
+
"references": {
|
|
764
|
+
"Promise": {
|
|
765
|
+
"location": "global",
|
|
766
|
+
"id": "global::Promise"
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
"return": "Promise<string>"
|
|
770
|
+
},
|
|
771
|
+
"docs": {
|
|
772
|
+
"text": "Returns the element value.",
|
|
773
|
+
"tags": []
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
"setValue": {
|
|
777
|
+
"complexType": {
|
|
778
|
+
"signature": "(value: string) => Promise<void>",
|
|
779
|
+
"parameters": [{
|
|
780
|
+
"name": "value",
|
|
781
|
+
"type": "string",
|
|
782
|
+
"docs": ""
|
|
783
|
+
}],
|
|
784
|
+
"references": {
|
|
785
|
+
"Promise": {
|
|
786
|
+
"location": "global",
|
|
787
|
+
"id": "global::Promise"
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
"return": "Promise<void>"
|
|
791
|
+
},
|
|
792
|
+
"docs": {
|
|
793
|
+
"text": "Set the element value.",
|
|
794
|
+
"tags": []
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
"setCustomValidity": {
|
|
798
|
+
"complexType": {
|
|
799
|
+
"signature": "(message: string) => Promise<void>",
|
|
800
|
+
"parameters": [{
|
|
801
|
+
"name": "message",
|
|
802
|
+
"type": "string",
|
|
803
|
+
"docs": ""
|
|
804
|
+
}],
|
|
805
|
+
"references": {
|
|
806
|
+
"Promise": {
|
|
807
|
+
"location": "global",
|
|
808
|
+
"id": "global::Promise"
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
"return": "Promise<void>"
|
|
812
|
+
},
|
|
813
|
+
"docs": {
|
|
814
|
+
"text": "Validates an element, displays provided message in case value is invalid.",
|
|
815
|
+
"tags": []
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"checkValidity": {
|
|
819
|
+
"complexType": {
|
|
820
|
+
"signature": "() => Promise<boolean>",
|
|
821
|
+
"parameters": [],
|
|
822
|
+
"references": {
|
|
823
|
+
"Promise": {
|
|
824
|
+
"location": "global",
|
|
825
|
+
"id": "global::Promise"
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
"return": "Promise<boolean>"
|
|
829
|
+
},
|
|
830
|
+
"docs": {
|
|
831
|
+
"text": "Validates the input phone number without triggering UI and returns a boolean indicating its validity.",
|
|
832
|
+
"tags": [{
|
|
833
|
+
"name": "returns",
|
|
834
|
+
"text": "A boolean indicating whether the input phone number is valid."
|
|
835
|
+
}]
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
"reportValidity": {
|
|
839
|
+
"complexType": {
|
|
840
|
+
"signature": "() => Promise<boolean>",
|
|
841
|
+
"parameters": [],
|
|
842
|
+
"references": {
|
|
843
|
+
"Promise": {
|
|
844
|
+
"location": "global",
|
|
845
|
+
"id": "global::Promise"
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
"return": "Promise<boolean>"
|
|
849
|
+
},
|
|
850
|
+
"docs": {
|
|
851
|
+
"text": "Check validity and reveal validation state.",
|
|
852
|
+
"tags": []
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
"reset": {
|
|
856
|
+
"complexType": {
|
|
857
|
+
"signature": "() => Promise<void>",
|
|
858
|
+
"parameters": [],
|
|
859
|
+
"references": {
|
|
860
|
+
"Promise": {
|
|
861
|
+
"location": "global",
|
|
862
|
+
"id": "global::Promise"
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
"return": "Promise<void>"
|
|
866
|
+
},
|
|
867
|
+
"docs": {
|
|
868
|
+
"text": "Reset phone number input to its initial state",
|
|
869
|
+
"tags": []
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
static get elementRef() { return "host"; }
|
|
875
|
+
static get watchers() {
|
|
876
|
+
return [{
|
|
877
|
+
"propName": "value",
|
|
878
|
+
"methodName": "watchValueChange"
|
|
879
|
+
}, {
|
|
880
|
+
"propName": "disabled",
|
|
881
|
+
"methodName": "handleDisabledChange"
|
|
882
|
+
}, {
|
|
883
|
+
"propName": "required",
|
|
884
|
+
"methodName": "handleRequiredChange"
|
|
885
|
+
}, {
|
|
886
|
+
"propName": "readonly",
|
|
887
|
+
"methodName": "handleReadonlyChange"
|
|
888
|
+
}, {
|
|
889
|
+
"propName": "label",
|
|
890
|
+
"methodName": "handleLabelChange"
|
|
891
|
+
}];
|
|
892
|
+
}
|
|
893
|
+
}
|