@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,1254 @@
|
|
|
1
|
+
import { Host, h, Fragment } from "@stencil/core";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
import customParseFormat from "dayjs/plugin/customParseFormat";
|
|
4
|
+
import { appendControlToFormData } from "../../utils/formData";
|
|
5
|
+
export class InputDate {
|
|
6
|
+
constructor() {
|
|
7
|
+
/** Specifies a date format */
|
|
8
|
+
this.format = 'DD/MM/YYYY';
|
|
9
|
+
/** The value of the date input */
|
|
10
|
+
this.value = '';
|
|
11
|
+
/** Defines label for the input for the day */
|
|
12
|
+
this.dayAriaLabel = 'Day';
|
|
13
|
+
/** Defines label for the input for the month */
|
|
14
|
+
this.monthAriaLabel = 'Month';
|
|
15
|
+
/** Defines label for the input for the year */
|
|
16
|
+
this.yearAriaLabel = 'Year';
|
|
17
|
+
/** Save current value */
|
|
18
|
+
this.currentValues = {};
|
|
19
|
+
/** Defines date delimiter */
|
|
20
|
+
this.delimiter = '/';
|
|
21
|
+
/** Validity state passed from validateFormElement function after validation */
|
|
22
|
+
this.validityState = '';
|
|
23
|
+
/** Validity message passed from validateFormElement function after validation */
|
|
24
|
+
this.validityMessage = '';
|
|
25
|
+
/** Defines if the component has been touched by user */
|
|
26
|
+
this.touched = false;
|
|
27
|
+
/** Defines if the value has been changed by user interaction */
|
|
28
|
+
this.dirty = false;
|
|
29
|
+
/**
|
|
30
|
+
* Initial attributes state
|
|
31
|
+
* */
|
|
32
|
+
this.initial = {};
|
|
33
|
+
this.uniqueId = `r-input-date-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
34
|
+
this.nativeElement = null;
|
|
35
|
+
this.getDateComponent = (input) => {
|
|
36
|
+
switch (input.toUpperCase()) {
|
|
37
|
+
case 'DD':
|
|
38
|
+
return this.currentValues.day;
|
|
39
|
+
case 'MM':
|
|
40
|
+
case 'M':
|
|
41
|
+
return this.currentValues.month;
|
|
42
|
+
case 'YYYY':
|
|
43
|
+
case 'YY':
|
|
44
|
+
return this.currentValues.year;
|
|
45
|
+
default:
|
|
46
|
+
return '';
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
this.setDateComponent = (input, value) => {
|
|
50
|
+
switch (input.toUpperCase()) {
|
|
51
|
+
case 'DD':
|
|
52
|
+
this.currentValues.day = value;
|
|
53
|
+
break;
|
|
54
|
+
case 'MM':
|
|
55
|
+
case 'M':
|
|
56
|
+
this.currentValues.month = value;
|
|
57
|
+
break;
|
|
58
|
+
case 'YYYY':
|
|
59
|
+
case 'YY':
|
|
60
|
+
this.currentValues.year = value;
|
|
61
|
+
break;
|
|
62
|
+
default:
|
|
63
|
+
return '';
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
this.getInputAttrs = (input) => {
|
|
67
|
+
const label = (type) => {
|
|
68
|
+
switch (type) {
|
|
69
|
+
case 'DD':
|
|
70
|
+
return this.dayAriaLabel;
|
|
71
|
+
case 'MM':
|
|
72
|
+
case 'M':
|
|
73
|
+
return this.monthAriaLabel;
|
|
74
|
+
case 'YYYY':
|
|
75
|
+
case 'YY':
|
|
76
|
+
return this.yearAriaLabel;
|
|
77
|
+
default:
|
|
78
|
+
return '';
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const type = input.toUpperCase();
|
|
82
|
+
return {
|
|
83
|
+
placeholder: input,
|
|
84
|
+
maxlength: input.length > 2 ? input.length : 2,
|
|
85
|
+
size: input.length,
|
|
86
|
+
inputmode: 'numeric',
|
|
87
|
+
disabled: this.disabled,
|
|
88
|
+
required: this.required,
|
|
89
|
+
readonly: this.readonly,
|
|
90
|
+
'aria-label': label(type),
|
|
91
|
+
'data-date-type': type
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
this.getDelimiter = (value) => {
|
|
95
|
+
var _a;
|
|
96
|
+
return ((_a = value.replace(/[^.\-/]/g, '')) === null || _a === void 0 ? void 0 : _a.charAt(0)) || '/';
|
|
97
|
+
};
|
|
98
|
+
this.updateValue = () => {
|
|
99
|
+
if (this.readonly)
|
|
100
|
+
return;
|
|
101
|
+
this.delimiter = this.getDelimiter(this.format);
|
|
102
|
+
this.value = this.value ? this.inputOrder.map((input) => this.getDateComponent(input)).join(this.delimiter) : '';
|
|
103
|
+
};
|
|
104
|
+
this.onHostClick = () => {
|
|
105
|
+
const input = this.firstEmptyInput || this.inputs[this.inputs.length - 1];
|
|
106
|
+
input === null || input === void 0 ? void 0 : input.focus();
|
|
107
|
+
};
|
|
108
|
+
this.onInputClick = (event) => {
|
|
109
|
+
event.stopPropagation();
|
|
110
|
+
};
|
|
111
|
+
this.createKeyDownHandler = (index) => {
|
|
112
|
+
return (e) => this.handleKeyDown(index, e);
|
|
113
|
+
};
|
|
114
|
+
this.handleKeyDown = (index, event) => {
|
|
115
|
+
var _a, _b, _c, _d, _e, _f;
|
|
116
|
+
if (this.readonly)
|
|
117
|
+
return;
|
|
118
|
+
if (event.code === 'Enter') {
|
|
119
|
+
this.touched = true;
|
|
120
|
+
this.validateFormElement(this.nativeElement);
|
|
121
|
+
if (this.invalid && !this.isNoValidate)
|
|
122
|
+
return;
|
|
123
|
+
const submitEl = this.host.querySelector('[type="submit"]') ||
|
|
124
|
+
((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.querySelector('[type="submit"]'));
|
|
125
|
+
if (submitEl && 'triggerClick' in submitEl) {
|
|
126
|
+
submitEl === null || submitEl === void 0 ? void 0 : submitEl.triggerClick();
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.requestSubmit();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (event.code === 'Backspace') {
|
|
133
|
+
const cursorPosition = (_c = this.inputs[index]) === null || _c === void 0 ? void 0 : _c.selectionStart;
|
|
134
|
+
if (cursorPosition === 0 && index > 0) {
|
|
135
|
+
(_d = this.inputs[index - 1]) === null || _d === void 0 ? void 0 : _d.focus();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if (event.code === 'ArrowLeft') {
|
|
139
|
+
const input = this.inputs[index];
|
|
140
|
+
const cursorPosition = input === null || input === void 0 ? void 0 : input.selectionStart;
|
|
141
|
+
if (cursorPosition === 0 && index > 0) {
|
|
142
|
+
const previousInputValue = this.inputs[index - 1].value;
|
|
143
|
+
const length = previousInputValue === null || previousInputValue === void 0 ? void 0 : previousInputValue.length;
|
|
144
|
+
(_e = this.inputs[index - 1]) === null || _e === void 0 ? void 0 : _e.focus();
|
|
145
|
+
if (length) {
|
|
146
|
+
setTimeout(() => {
|
|
147
|
+
var _a;
|
|
148
|
+
(_a = this.inputs[index - 1]) === null || _a === void 0 ? void 0 : _a.setSelectionRange(length, length);
|
|
149
|
+
}, 0);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
if (event.code === 'ArrowRight') {
|
|
154
|
+
const input = this.inputs[index];
|
|
155
|
+
const cursorPosition = input === null || input === void 0 ? void 0 : input.selectionStart;
|
|
156
|
+
const value = input === null || input === void 0 ? void 0 : input.value;
|
|
157
|
+
if ((!value || cursorPosition === value.length) && index < this.inputOrder.length - 1) {
|
|
158
|
+
(_f = this.inputs[index + 1]) === null || _f === void 0 ? void 0 : _f.focus();
|
|
159
|
+
setTimeout(() => {
|
|
160
|
+
var _a;
|
|
161
|
+
(_a = this.inputs[index + 1]) === null || _a === void 0 ? void 0 : _a.setSelectionRange(0, 0);
|
|
162
|
+
}, 0);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
this.handlePaste = (event) => {
|
|
167
|
+
if (this.readonly)
|
|
168
|
+
return;
|
|
169
|
+
this.value = event.clipboardData.getData('text');
|
|
170
|
+
this.touched = true;
|
|
171
|
+
this.dirty = true;
|
|
172
|
+
event.preventDefault();
|
|
173
|
+
};
|
|
174
|
+
this.createInputHandler = (input, index) => {
|
|
175
|
+
return (e) => this.handleInput(input, index, e);
|
|
176
|
+
};
|
|
177
|
+
this.handleInput = (input, index, event) => {
|
|
178
|
+
var _a, _b, _c;
|
|
179
|
+
if (this.readonly)
|
|
180
|
+
return;
|
|
181
|
+
const value = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.replace(/[^0-9]/g, '');
|
|
182
|
+
event.target.value = value;
|
|
183
|
+
this.setDateComponent(input, value);
|
|
184
|
+
this.value = this.inputOrder.map((el) => this.getDateComponent(el)).join(this.delimiter);
|
|
185
|
+
if ((value === null || value === void 0 ? void 0 : value.length) === ((_b = this.inputs[index]) === null || _b === void 0 ? void 0 : _b.maxLength) &&
|
|
186
|
+
index < this.inputOrder.length - 1) {
|
|
187
|
+
(_c = this.inputs[index + 1]) === null || _c === void 0 ? void 0 : _c.focus();
|
|
188
|
+
}
|
|
189
|
+
this.touched = true;
|
|
190
|
+
this.dirty = true;
|
|
191
|
+
this.rInput.emit({ element: this.host, value: this.value });
|
|
192
|
+
this.validateFormElement(this.nativeElement);
|
|
193
|
+
};
|
|
194
|
+
this.createChangeHandler = (input) => {
|
|
195
|
+
return (e) => this.handleChange(input, e);
|
|
196
|
+
};
|
|
197
|
+
this.handleChange = (input, event) => {
|
|
198
|
+
var _a;
|
|
199
|
+
if (this.readonly)
|
|
200
|
+
return;
|
|
201
|
+
const value = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.replace(/[^0-9]/g, '');
|
|
202
|
+
event.target.value = value;
|
|
203
|
+
this.setDateComponent(input, value);
|
|
204
|
+
this.value = this.inputOrder.map((el) => this.getDateComponent(el)).join(this.delimiter);
|
|
205
|
+
this.touched = true;
|
|
206
|
+
this.dirty = true;
|
|
207
|
+
this.rChange.emit({ element: this.host, value: this.value });
|
|
208
|
+
this.validateFormElement(this.nativeElement);
|
|
209
|
+
};
|
|
210
|
+
this.handleBlur = () => {
|
|
211
|
+
this.touched = true;
|
|
212
|
+
this.validateFormElement(this.nativeElement);
|
|
213
|
+
};
|
|
214
|
+
this.getValidityStateData = (element) => {
|
|
215
|
+
let validityState = '';
|
|
216
|
+
let validityMessage = '';
|
|
217
|
+
if (this.required && element.value.length === 0) {
|
|
218
|
+
validityState = 'valueMissing';
|
|
219
|
+
validityMessage = this.valueMissingMessage;
|
|
220
|
+
return { validityState, validityMessage };
|
|
221
|
+
}
|
|
222
|
+
const valid = this.value ? dayjs(this.value, this.format, true).isValid() : true;
|
|
223
|
+
if (!valid) {
|
|
224
|
+
validityState = 'invalid';
|
|
225
|
+
validityMessage = this.invalidDateMessage;
|
|
226
|
+
return { validityState, validityMessage };
|
|
227
|
+
}
|
|
228
|
+
// Check min/max constraints only if date is valid and has a value
|
|
229
|
+
// Note: min and max are expected to be in the same format as this.format
|
|
230
|
+
// If format changes, the developer should update min/max accordingly
|
|
231
|
+
if (this.value && valid) {
|
|
232
|
+
const currentDate = dayjs(this.value, this.format, true);
|
|
233
|
+
// Check minimum date constraint
|
|
234
|
+
if (this.min) {
|
|
235
|
+
const minDate = dayjs(this.min, this.format, true);
|
|
236
|
+
if (minDate.isValid() && currentDate.isBefore(minDate, 'day')) {
|
|
237
|
+
validityState = 'rangeUnderflow';
|
|
238
|
+
validityMessage = this.rangeUnderflowMessage;
|
|
239
|
+
return { validityState, validityMessage };
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
// Check maximum date constraint
|
|
243
|
+
if (this.max) {
|
|
244
|
+
const maxDate = dayjs(this.max, this.format, true);
|
|
245
|
+
if (maxDate.isValid() && currentDate.isAfter(maxDate, 'day')) {
|
|
246
|
+
validityState = 'rangeOverflow';
|
|
247
|
+
validityMessage = this.rangeOverflowMessage;
|
|
248
|
+
return { validityState, validityMessage };
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
validityState = 'valid';
|
|
253
|
+
return { validityState, validityMessage };
|
|
254
|
+
};
|
|
255
|
+
this.validateFormElement = (element) => {
|
|
256
|
+
if (element === null)
|
|
257
|
+
return;
|
|
258
|
+
if (this.isNoValidate)
|
|
259
|
+
return;
|
|
260
|
+
const { validityState, validityMessage } = this.getValidityStateData(element);
|
|
261
|
+
this.validityState = validityState;
|
|
262
|
+
this.validityMessage = validityMessage;
|
|
263
|
+
const isValid = this.validityState === 'valid';
|
|
264
|
+
this.valid = isValid;
|
|
265
|
+
this.invalid = !isValid;
|
|
266
|
+
this.rValidate.emit({
|
|
267
|
+
state: this.validityState,
|
|
268
|
+
message: this.validityMessage
|
|
269
|
+
});
|
|
270
|
+
};
|
|
271
|
+
this.onResetForm = async () => {
|
|
272
|
+
if (this.readonly)
|
|
273
|
+
return;
|
|
274
|
+
this.reset();
|
|
275
|
+
this.validityState = null;
|
|
276
|
+
this.validityMessage = null;
|
|
277
|
+
this.invalid = null;
|
|
278
|
+
this.valid = null;
|
|
279
|
+
const { host, value } = this;
|
|
280
|
+
this.rReset.emit({ element: host, value });
|
|
281
|
+
};
|
|
282
|
+
this.onSubmitForm = (event) => {
|
|
283
|
+
if (this.isNoValidate)
|
|
284
|
+
return;
|
|
285
|
+
if (this.disabled)
|
|
286
|
+
return;
|
|
287
|
+
this.validateFormElement(this.nativeElement);
|
|
288
|
+
if (this.invalid) {
|
|
289
|
+
event.preventDefault();
|
|
290
|
+
event.stopPropagation();
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
this.contributeToFormData = (event) => {
|
|
294
|
+
appendControlToFormData(this.nativeElement || this.host, event.formData);
|
|
295
|
+
};
|
|
296
|
+
this.setCurrentValues = () => {
|
|
297
|
+
var _a;
|
|
298
|
+
const valueDelimiter = this.getDelimiter(this.value);
|
|
299
|
+
const valueInOrder = ((_a = this.value) === null || _a === void 0 ? void 0 : _a.split(valueDelimiter)) || [];
|
|
300
|
+
this.value = valueInOrder.join(this.delimiter);
|
|
301
|
+
this.inputOrder.forEach((el, i) => {
|
|
302
|
+
this.setDateComponent(el, valueInOrder[i] || '');
|
|
303
|
+
});
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
handleFormatChange() {
|
|
307
|
+
this.updateValue();
|
|
308
|
+
}
|
|
309
|
+
handleValueChange() {
|
|
310
|
+
this.setCurrentValues();
|
|
311
|
+
if (this.touched)
|
|
312
|
+
this.validateFormElement(this.nativeElement);
|
|
313
|
+
}
|
|
314
|
+
/** Get the date value */
|
|
315
|
+
async getValue() {
|
|
316
|
+
return this.value;
|
|
317
|
+
}
|
|
318
|
+
/** Sets the date value */
|
|
319
|
+
async setValue(value) {
|
|
320
|
+
this.nativeElement.value = value;
|
|
321
|
+
this.value = value;
|
|
322
|
+
}
|
|
323
|
+
/** Gets the current date format */
|
|
324
|
+
async getFormat() {
|
|
325
|
+
return this.format;
|
|
326
|
+
}
|
|
327
|
+
/** Sets the date format */
|
|
328
|
+
async setFormat(format) {
|
|
329
|
+
this.format = format;
|
|
330
|
+
}
|
|
331
|
+
/** Gets the touched state (whether user has interacted with the input) */
|
|
332
|
+
async isTouched() {
|
|
333
|
+
return this.touched;
|
|
334
|
+
}
|
|
335
|
+
/** Gets the dirty state (whether value has been changed by user) */
|
|
336
|
+
async isDirty() {
|
|
337
|
+
return this.dirty;
|
|
338
|
+
}
|
|
339
|
+
/** Resets touched and dirty states to pristine (untouched/clean) */
|
|
340
|
+
async markAsPristine() {
|
|
341
|
+
this.touched = false;
|
|
342
|
+
this.dirty = false;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Resets the component by clearing all input values and focusing the first input.
|
|
346
|
+
* @returns Promise that resolves when reset is complete
|
|
347
|
+
*/
|
|
348
|
+
async reset() {
|
|
349
|
+
if (this.readonly)
|
|
350
|
+
return;
|
|
351
|
+
this.markAsPristine();
|
|
352
|
+
this.validityState = null;
|
|
353
|
+
this.validityMessage = null;
|
|
354
|
+
this.value = this.initial['value'];
|
|
355
|
+
this.invalid = this.initial['invalid'];
|
|
356
|
+
this.format = this.initial['format'];
|
|
357
|
+
this.valid = !this.invalid;
|
|
358
|
+
}
|
|
359
|
+
/** Validates an element, displays provided message in case value is invalid. */
|
|
360
|
+
async setCustomValidity(message) {
|
|
361
|
+
this.customErrorMessage = message;
|
|
362
|
+
this.validateFormElement(this.nativeElement);
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Validates the input date without triggering UI and returns a boolean indicating its validity.
|
|
366
|
+
* @returns A boolean indicating whether the input date is valid.
|
|
367
|
+
*/
|
|
368
|
+
async checkValidity() {
|
|
369
|
+
const { validityState } = this.getValidityStateData(this.nativeElement);
|
|
370
|
+
return validityState === 'valid';
|
|
371
|
+
}
|
|
372
|
+
get inputs() {
|
|
373
|
+
return Array.from(this.host.shadowRoot.querySelectorAll('input[data-date-type]'));
|
|
374
|
+
}
|
|
375
|
+
get inputOrder() {
|
|
376
|
+
return this.format.split(this.delimiter);
|
|
377
|
+
}
|
|
378
|
+
get message() {
|
|
379
|
+
if (this.invalid && this.error) {
|
|
380
|
+
return this.error;
|
|
381
|
+
}
|
|
382
|
+
return (this.validityState && this.validityState !== 'valid' ?
|
|
383
|
+
(this.customErrorMessage || this.validityMessage)
|
|
384
|
+
: null);
|
|
385
|
+
}
|
|
386
|
+
get hasMessage() {
|
|
387
|
+
return this.message !== null;
|
|
388
|
+
}
|
|
389
|
+
get ariaDescribedBy() {
|
|
390
|
+
const messageId = this.message ? `${this.uniqueId}-message` : null;
|
|
391
|
+
return this.hint ? `${this.uniqueId}-hint ${messageId}` : messageId;
|
|
392
|
+
}
|
|
393
|
+
/** Identify wrapping form element */
|
|
394
|
+
get parentFormEl() {
|
|
395
|
+
return this.host.closest('form') || document.querySelector(`#${this.form}`) || null;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Determine whether this element should be ignored
|
|
399
|
+
* during Constraint Validation API validation.
|
|
400
|
+
* */
|
|
401
|
+
get isNoValidate() {
|
|
402
|
+
var _a;
|
|
403
|
+
return (((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.hasAttribute('novalidate')) ||
|
|
404
|
+
this.novalidate ||
|
|
405
|
+
this.disabled ||
|
|
406
|
+
false);
|
|
407
|
+
}
|
|
408
|
+
get firstEmptyInput() {
|
|
409
|
+
return this.inputs.find(input => !input.value) || null;
|
|
410
|
+
}
|
|
411
|
+
get hasTrailingSlot() {
|
|
412
|
+
return !!this.host.querySelector('[slot="trailing"]');
|
|
413
|
+
}
|
|
414
|
+
componentWillLoad() {
|
|
415
|
+
dayjs.extend(customParseFormat);
|
|
416
|
+
this.delimiter = this.getDelimiter(this.format);
|
|
417
|
+
this.initial['value'] = this.value;
|
|
418
|
+
this.initial['invalid'] = this.invalid;
|
|
419
|
+
this.initial['format'] = this.format;
|
|
420
|
+
this.setCurrentValues();
|
|
421
|
+
}
|
|
422
|
+
connectFormEventListeners() {
|
|
423
|
+
var _a, _b, _c;
|
|
424
|
+
(_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.addEventListener('formdata', this.contributeToFormData);
|
|
425
|
+
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.addEventListener('submit', this.onSubmitForm, { capture: true });
|
|
426
|
+
(_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.addEventListener('reset', this.onResetForm);
|
|
427
|
+
}
|
|
428
|
+
disconnectFormEventListeners() {
|
|
429
|
+
var _a, _b, _c;
|
|
430
|
+
(_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('formdata', this.contributeToFormData);
|
|
431
|
+
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('submit', this.onSubmitForm);
|
|
432
|
+
(_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('reset', this.onResetForm);
|
|
433
|
+
}
|
|
434
|
+
connectedCallback() {
|
|
435
|
+
this.connectFormEventListeners();
|
|
436
|
+
}
|
|
437
|
+
disconnectedCallback() {
|
|
438
|
+
this.disconnectFormEventListeners();
|
|
439
|
+
}
|
|
440
|
+
render() {
|
|
441
|
+
const { form, name, required, disabled, label, fieldIndicator, hint, uniqueId, invalid, valid, readonly } = this;
|
|
442
|
+
const groupAttrs = {
|
|
443
|
+
'aria-invalid': `${invalid || false}`,
|
|
444
|
+
'aria-describedby': this.ariaDescribedBy
|
|
445
|
+
};
|
|
446
|
+
const dateInputAttrs = {
|
|
447
|
+
id: uniqueId,
|
|
448
|
+
form,
|
|
449
|
+
name,
|
|
450
|
+
required,
|
|
451
|
+
disabled,
|
|
452
|
+
readonly,
|
|
453
|
+
'aria-describedby': this.ariaDescribedBy
|
|
454
|
+
};
|
|
455
|
+
const labelAttr = label ? {
|
|
456
|
+
id: `${uniqueId}-label`,
|
|
457
|
+
fieldIndicator
|
|
458
|
+
} : {};
|
|
459
|
+
return (h(Host, { key: 'e8d5144a4cefeca243ea6e80840e4ff12b9344f0', onClick: this.onHostClick, "data-touched": `${this.touched}`, "data-dirty": `${this.dirty}` }, h("fieldset", Object.assign({ key: '417cac30b7b535e7367eef280732869cdd984ed1', class: "r-input-date" }, groupAttrs), h("div", { key: 'd7ef5eb79c96c0d8845399e536c356272ab7c03c', class: "r-input-date--legend-container" }, h("legend", { key: '14c195899fb789333bbd07a40ec1db746d004839', class: "r-input-date--legend" }, h("label", { key: 'f6ac0e10142bceefe404a385ac44534d81ae3f98', htmlFor: uniqueId }, label ?
|
|
460
|
+
h("r-label", Object.assign({}, labelAttr), label)
|
|
461
|
+
:
|
|
462
|
+
h("slot", { name: "label" }))), h("slot", { key: 'b3bb261cb82002f7c41470bb9ca09110c6f7a345', name: "popover" })), hint &&
|
|
463
|
+
h("r-hint", { key: '606d8d0f83416914627b23f901838c55f65b6adc', id: `${uniqueId}-hint`, role: "note" }, hint), h("div", { key: '46ca5170c4eafd18464dd7575ab41263907e2116', class: "r-input-date--container" }, h("r-icon", { key: '488dc02a12c354dc9fdd5d814b2c63dbd080175f', name: "calendar", size: "s", class: "r-input-date--calendar-icon" }), h("div", { key: '69ef56323ea2c1d90121dc280cb2072701558064', class: "r-input-date--inputs" }, this.inputOrder.map((input, i) => (h(Fragment, null, h("input", Object.assign({ class: "r-input-date--input" }, this.getInputAttrs(input), { key: input, value: this.getDateComponent(input), onInput: this.createInputHandler(input, i), onChange: this.createChangeHandler(input), onClick: this.onInputClick, onBlur: this.handleBlur, onKeyDown: this.createKeyDownHandler(i), onPaste: this.handlePaste })), i < this.inputOrder.length - 1 &&
|
|
464
|
+
h("span", { "aria-hidden": "true", class: "r-input-date--delimiter" }, this.delimiter)))), h("input", Object.assign({ key: '918cf85992a45287c77df5f937f82d0f6f316bf1', type: "hidden" }, dateInputAttrs, { value: this.value, ref: (el) => this.nativeElement = el }))), h("div", { key: '57dbce64441410f59571417fce01213af7ee146f', class: "r-input-date--trailing" }, this.readonly &&
|
|
465
|
+
h("r-icon", { key: 'e60109ba459f42e391a972cd7fdbd9fba134244f', class: "r-input-date--readonly-icon", name: "pen-disabled", size: "s" }), valid &&
|
|
466
|
+
h("r-icon", { key: '0c5af571965830bffdb226d94e4d2a2f4a158553', name: "circled-check", size: "s", color: "var(--r-status-success-regular)" }), this.hasTrailingSlot && h("slot", { key: '2b3836138862a6b6538aa75ddc2929b63f85667e', name: "trailing" }))), h("div", { key: 'd07f45f25bd1c6ad19f7feacf24cab515c40aa01', id: `${uniqueId}-message`, "aria-live": "polite", class: "r-input-date--message" }, this.hasMessage && h("r-hint", { key: '7974223f426574a5b6a54bbf773007475dfb6450', variant: "error" }, this.message)))));
|
|
467
|
+
}
|
|
468
|
+
static get is() { return "r-input-date"; }
|
|
469
|
+
static get encapsulation() { return "shadow"; }
|
|
470
|
+
static get originalStyleUrls() {
|
|
471
|
+
return {
|
|
472
|
+
"$": ["input-date.css"]
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
static get styleUrls() {
|
|
476
|
+
return {
|
|
477
|
+
"$": ["input-date.css"]
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
static get properties() {
|
|
481
|
+
return {
|
|
482
|
+
"form": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"attribute": "form",
|
|
485
|
+
"mutable": false,
|
|
486
|
+
"complexType": {
|
|
487
|
+
"original": "string",
|
|
488
|
+
"resolved": "string",
|
|
489
|
+
"references": {}
|
|
490
|
+
},
|
|
491
|
+
"required": false,
|
|
492
|
+
"optional": true,
|
|
493
|
+
"docs": {
|
|
494
|
+
"tags": [],
|
|
495
|
+
"text": "Specifies the `id` of the `<form>` to which the element belongs"
|
|
496
|
+
},
|
|
497
|
+
"getter": false,
|
|
498
|
+
"setter": false,
|
|
499
|
+
"reflect": false
|
|
500
|
+
},
|
|
501
|
+
"novalidate": {
|
|
502
|
+
"type": "boolean",
|
|
503
|
+
"attribute": "novalidate",
|
|
504
|
+
"mutable": false,
|
|
505
|
+
"complexType": {
|
|
506
|
+
"original": "boolean",
|
|
507
|
+
"resolved": "boolean",
|
|
508
|
+
"references": {}
|
|
509
|
+
},
|
|
510
|
+
"required": false,
|
|
511
|
+
"optional": true,
|
|
512
|
+
"docs": {
|
|
513
|
+
"tags": [],
|
|
514
|
+
"text": "Specifies if element must be ignored during validation of the form elements"
|
|
515
|
+
},
|
|
516
|
+
"getter": false,
|
|
517
|
+
"setter": false,
|
|
518
|
+
"reflect": false
|
|
519
|
+
},
|
|
520
|
+
"name": {
|
|
521
|
+
"type": "string",
|
|
522
|
+
"attribute": "name",
|
|
523
|
+
"mutable": false,
|
|
524
|
+
"complexType": {
|
|
525
|
+
"original": "string",
|
|
526
|
+
"resolved": "string",
|
|
527
|
+
"references": {}
|
|
528
|
+
},
|
|
529
|
+
"required": false,
|
|
530
|
+
"optional": false,
|
|
531
|
+
"docs": {
|
|
532
|
+
"tags": [],
|
|
533
|
+
"text": "Specifies a name for a input"
|
|
534
|
+
},
|
|
535
|
+
"getter": false,
|
|
536
|
+
"setter": false,
|
|
537
|
+
"reflect": true
|
|
538
|
+
},
|
|
539
|
+
"format": {
|
|
540
|
+
"type": "string",
|
|
541
|
+
"attribute": "format",
|
|
542
|
+
"mutable": true,
|
|
543
|
+
"complexType": {
|
|
544
|
+
"original": "string",
|
|
545
|
+
"resolved": "string",
|
|
546
|
+
"references": {}
|
|
547
|
+
},
|
|
548
|
+
"required": false,
|
|
549
|
+
"optional": false,
|
|
550
|
+
"docs": {
|
|
551
|
+
"tags": [],
|
|
552
|
+
"text": "Specifies a date format"
|
|
553
|
+
},
|
|
554
|
+
"getter": false,
|
|
555
|
+
"setter": false,
|
|
556
|
+
"reflect": true,
|
|
557
|
+
"defaultValue": "'DD/MM/YYYY'"
|
|
558
|
+
},
|
|
559
|
+
"value": {
|
|
560
|
+
"type": "string",
|
|
561
|
+
"attribute": "value",
|
|
562
|
+
"mutable": true,
|
|
563
|
+
"complexType": {
|
|
564
|
+
"original": "string | null",
|
|
565
|
+
"resolved": "string",
|
|
566
|
+
"references": {}
|
|
567
|
+
},
|
|
568
|
+
"required": false,
|
|
569
|
+
"optional": true,
|
|
570
|
+
"docs": {
|
|
571
|
+
"tags": [],
|
|
572
|
+
"text": "The value of the date input"
|
|
573
|
+
},
|
|
574
|
+
"getter": false,
|
|
575
|
+
"setter": false,
|
|
576
|
+
"reflect": true,
|
|
577
|
+
"defaultValue": "''"
|
|
578
|
+
},
|
|
579
|
+
"label": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"attribute": "label",
|
|
582
|
+
"mutable": false,
|
|
583
|
+
"complexType": {
|
|
584
|
+
"original": "string",
|
|
585
|
+
"resolved": "string",
|
|
586
|
+
"references": {}
|
|
587
|
+
},
|
|
588
|
+
"required": true,
|
|
589
|
+
"optional": false,
|
|
590
|
+
"docs": {
|
|
591
|
+
"tags": [],
|
|
592
|
+
"text": "The text on the label"
|
|
593
|
+
},
|
|
594
|
+
"getter": false,
|
|
595
|
+
"setter": false,
|
|
596
|
+
"reflect": true
|
|
597
|
+
},
|
|
598
|
+
"fieldIndicator": {
|
|
599
|
+
"type": "string",
|
|
600
|
+
"attribute": "field-indicator",
|
|
601
|
+
"mutable": false,
|
|
602
|
+
"complexType": {
|
|
603
|
+
"original": "string",
|
|
604
|
+
"resolved": "string",
|
|
605
|
+
"references": {}
|
|
606
|
+
},
|
|
607
|
+
"required": false,
|
|
608
|
+
"optional": true,
|
|
609
|
+
"docs": {
|
|
610
|
+
"tags": [],
|
|
611
|
+
"text": "Text of an additional marker in the label"
|
|
612
|
+
},
|
|
613
|
+
"getter": false,
|
|
614
|
+
"setter": false,
|
|
615
|
+
"reflect": false
|
|
616
|
+
},
|
|
617
|
+
"hint": {
|
|
618
|
+
"type": "string",
|
|
619
|
+
"attribute": "hint",
|
|
620
|
+
"mutable": false,
|
|
621
|
+
"complexType": {
|
|
622
|
+
"original": "string",
|
|
623
|
+
"resolved": "string",
|
|
624
|
+
"references": {}
|
|
625
|
+
},
|
|
626
|
+
"required": false,
|
|
627
|
+
"optional": true,
|
|
628
|
+
"docs": {
|
|
629
|
+
"tags": [],
|
|
630
|
+
"text": "Optional hint, visually presented under the input,\ngiving additional context to the user"
|
|
631
|
+
},
|
|
632
|
+
"getter": false,
|
|
633
|
+
"setter": false,
|
|
634
|
+
"reflect": false
|
|
635
|
+
},
|
|
636
|
+
"fullWidth": {
|
|
637
|
+
"type": "boolean",
|
|
638
|
+
"attribute": "full-width",
|
|
639
|
+
"mutable": false,
|
|
640
|
+
"complexType": {
|
|
641
|
+
"original": "boolean",
|
|
642
|
+
"resolved": "boolean",
|
|
643
|
+
"references": {}
|
|
644
|
+
},
|
|
645
|
+
"required": false,
|
|
646
|
+
"optional": true,
|
|
647
|
+
"docs": {
|
|
648
|
+
"tags": [],
|
|
649
|
+
"text": "Defines if the component suppose to occupy 100% width"
|
|
650
|
+
},
|
|
651
|
+
"getter": false,
|
|
652
|
+
"setter": false,
|
|
653
|
+
"reflect": true
|
|
654
|
+
},
|
|
655
|
+
"dayAriaLabel": {
|
|
656
|
+
"type": "string",
|
|
657
|
+
"attribute": "day-aria-label",
|
|
658
|
+
"mutable": false,
|
|
659
|
+
"complexType": {
|
|
660
|
+
"original": "string",
|
|
661
|
+
"resolved": "string",
|
|
662
|
+
"references": {}
|
|
663
|
+
},
|
|
664
|
+
"required": false,
|
|
665
|
+
"optional": false,
|
|
666
|
+
"docs": {
|
|
667
|
+
"tags": [],
|
|
668
|
+
"text": "Defines label for the input for the day"
|
|
669
|
+
},
|
|
670
|
+
"getter": false,
|
|
671
|
+
"setter": false,
|
|
672
|
+
"reflect": true,
|
|
673
|
+
"defaultValue": "'Day'"
|
|
674
|
+
},
|
|
675
|
+
"monthAriaLabel": {
|
|
676
|
+
"type": "string",
|
|
677
|
+
"attribute": "month-aria-label",
|
|
678
|
+
"mutable": false,
|
|
679
|
+
"complexType": {
|
|
680
|
+
"original": "string",
|
|
681
|
+
"resolved": "string",
|
|
682
|
+
"references": {}
|
|
683
|
+
},
|
|
684
|
+
"required": false,
|
|
685
|
+
"optional": false,
|
|
686
|
+
"docs": {
|
|
687
|
+
"tags": [],
|
|
688
|
+
"text": "Defines label for the input for the month"
|
|
689
|
+
},
|
|
690
|
+
"getter": false,
|
|
691
|
+
"setter": false,
|
|
692
|
+
"reflect": true,
|
|
693
|
+
"defaultValue": "'Month'"
|
|
694
|
+
},
|
|
695
|
+
"yearAriaLabel": {
|
|
696
|
+
"type": "string",
|
|
697
|
+
"attribute": "year-aria-label",
|
|
698
|
+
"mutable": false,
|
|
699
|
+
"complexType": {
|
|
700
|
+
"original": "string",
|
|
701
|
+
"resolved": "string",
|
|
702
|
+
"references": {}
|
|
703
|
+
},
|
|
704
|
+
"required": false,
|
|
705
|
+
"optional": false,
|
|
706
|
+
"docs": {
|
|
707
|
+
"tags": [],
|
|
708
|
+
"text": "Defines label for the input for the year"
|
|
709
|
+
},
|
|
710
|
+
"getter": false,
|
|
711
|
+
"setter": false,
|
|
712
|
+
"reflect": true,
|
|
713
|
+
"defaultValue": "'Year'"
|
|
714
|
+
},
|
|
715
|
+
"valid": {
|
|
716
|
+
"type": "boolean",
|
|
717
|
+
"attribute": "valid",
|
|
718
|
+
"mutable": true,
|
|
719
|
+
"complexType": {
|
|
720
|
+
"original": "boolean",
|
|
721
|
+
"resolved": "boolean",
|
|
722
|
+
"references": {}
|
|
723
|
+
},
|
|
724
|
+
"required": false,
|
|
725
|
+
"optional": true,
|
|
726
|
+
"docs": {
|
|
727
|
+
"tags": [],
|
|
728
|
+
"text": "Visual indication of valid state"
|
|
729
|
+
},
|
|
730
|
+
"getter": false,
|
|
731
|
+
"setter": false,
|
|
732
|
+
"reflect": true
|
|
733
|
+
},
|
|
734
|
+
"invalid": {
|
|
735
|
+
"type": "boolean",
|
|
736
|
+
"attribute": "invalid",
|
|
737
|
+
"mutable": true,
|
|
738
|
+
"complexType": {
|
|
739
|
+
"original": "boolean",
|
|
740
|
+
"resolved": "boolean",
|
|
741
|
+
"references": {}
|
|
742
|
+
},
|
|
743
|
+
"required": false,
|
|
744
|
+
"optional": true,
|
|
745
|
+
"docs": {
|
|
746
|
+
"tags": [],
|
|
747
|
+
"text": "Validity indicator, serving to change UI of the component"
|
|
748
|
+
},
|
|
749
|
+
"getter": false,
|
|
750
|
+
"setter": false,
|
|
751
|
+
"reflect": true
|
|
752
|
+
},
|
|
753
|
+
"error": {
|
|
754
|
+
"type": "string",
|
|
755
|
+
"attribute": "error",
|
|
756
|
+
"mutable": false,
|
|
757
|
+
"complexType": {
|
|
758
|
+
"original": "string",
|
|
759
|
+
"resolved": "string",
|
|
760
|
+
"references": {}
|
|
761
|
+
},
|
|
762
|
+
"required": false,
|
|
763
|
+
"optional": true,
|
|
764
|
+
"docs": {
|
|
765
|
+
"tags": [],
|
|
766
|
+
"text": "The way to provide error message separately from Constraint Validation API."
|
|
767
|
+
},
|
|
768
|
+
"getter": false,
|
|
769
|
+
"setter": false,
|
|
770
|
+
"reflect": false
|
|
771
|
+
},
|
|
772
|
+
"disabled": {
|
|
773
|
+
"type": "boolean",
|
|
774
|
+
"attribute": "disabled",
|
|
775
|
+
"mutable": false,
|
|
776
|
+
"complexType": {
|
|
777
|
+
"original": "boolean",
|
|
778
|
+
"resolved": "boolean",
|
|
779
|
+
"references": {}
|
|
780
|
+
},
|
|
781
|
+
"required": false,
|
|
782
|
+
"optional": true,
|
|
783
|
+
"docs": {
|
|
784
|
+
"tags": [],
|
|
785
|
+
"text": "Prevents user interaction and applies disabled style"
|
|
786
|
+
},
|
|
787
|
+
"getter": false,
|
|
788
|
+
"setter": false,
|
|
789
|
+
"reflect": true
|
|
790
|
+
},
|
|
791
|
+
"readonly": {
|
|
792
|
+
"type": "boolean",
|
|
793
|
+
"attribute": "readonly",
|
|
794
|
+
"mutable": false,
|
|
795
|
+
"complexType": {
|
|
796
|
+
"original": "boolean",
|
|
797
|
+
"resolved": "boolean",
|
|
798
|
+
"references": {}
|
|
799
|
+
},
|
|
800
|
+
"required": false,
|
|
801
|
+
"optional": true,
|
|
802
|
+
"docs": {
|
|
803
|
+
"tags": [],
|
|
804
|
+
"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)."
|
|
805
|
+
},
|
|
806
|
+
"getter": false,
|
|
807
|
+
"setter": false,
|
|
808
|
+
"reflect": true
|
|
809
|
+
},
|
|
810
|
+
"required": {
|
|
811
|
+
"type": "boolean",
|
|
812
|
+
"attribute": "required",
|
|
813
|
+
"mutable": false,
|
|
814
|
+
"complexType": {
|
|
815
|
+
"original": "boolean",
|
|
816
|
+
"resolved": "boolean",
|
|
817
|
+
"references": {}
|
|
818
|
+
},
|
|
819
|
+
"required": false,
|
|
820
|
+
"optional": true,
|
|
821
|
+
"docs": {
|
|
822
|
+
"tags": [],
|
|
823
|
+
"text": "Specifies that an input is required/must be filled out"
|
|
824
|
+
},
|
|
825
|
+
"getter": false,
|
|
826
|
+
"setter": false,
|
|
827
|
+
"reflect": true
|
|
828
|
+
},
|
|
829
|
+
"valueMissingMessage": {
|
|
830
|
+
"type": "string",
|
|
831
|
+
"attribute": "value-missing-message",
|
|
832
|
+
"mutable": false,
|
|
833
|
+
"complexType": {
|
|
834
|
+
"original": "string",
|
|
835
|
+
"resolved": "string",
|
|
836
|
+
"references": {}
|
|
837
|
+
},
|
|
838
|
+
"required": false,
|
|
839
|
+
"optional": true,
|
|
840
|
+
"docs": {
|
|
841
|
+
"tags": [],
|
|
842
|
+
"text": "Set custom message for `valueMissing` property of a ValidityState object (set by `required`)"
|
|
843
|
+
},
|
|
844
|
+
"getter": false,
|
|
845
|
+
"setter": false,
|
|
846
|
+
"reflect": false
|
|
847
|
+
},
|
|
848
|
+
"invalidDateMessage": {
|
|
849
|
+
"type": "string",
|
|
850
|
+
"attribute": "invalid-date-message",
|
|
851
|
+
"mutable": false,
|
|
852
|
+
"complexType": {
|
|
853
|
+
"original": "string",
|
|
854
|
+
"resolved": "string",
|
|
855
|
+
"references": {}
|
|
856
|
+
},
|
|
857
|
+
"required": false,
|
|
858
|
+
"optional": true,
|
|
859
|
+
"docs": {
|
|
860
|
+
"tags": [],
|
|
861
|
+
"text": "Custom error message displayed when date is not valid."
|
|
862
|
+
},
|
|
863
|
+
"getter": false,
|
|
864
|
+
"setter": false,
|
|
865
|
+
"reflect": false
|
|
866
|
+
},
|
|
867
|
+
"min": {
|
|
868
|
+
"type": "string",
|
|
869
|
+
"attribute": "min",
|
|
870
|
+
"mutable": false,
|
|
871
|
+
"complexType": {
|
|
872
|
+
"original": "string",
|
|
873
|
+
"resolved": "string",
|
|
874
|
+
"references": {}
|
|
875
|
+
},
|
|
876
|
+
"required": false,
|
|
877
|
+
"optional": true,
|
|
878
|
+
"docs": {
|
|
879
|
+
"tags": [],
|
|
880
|
+
"text": "Minimum date value (in the same format as the date input).\nNote: When changing the `format` prop, ensure `min` is also updated to match the new format."
|
|
881
|
+
},
|
|
882
|
+
"getter": false,
|
|
883
|
+
"setter": false,
|
|
884
|
+
"reflect": true
|
|
885
|
+
},
|
|
886
|
+
"max": {
|
|
887
|
+
"type": "string",
|
|
888
|
+
"attribute": "max",
|
|
889
|
+
"mutable": false,
|
|
890
|
+
"complexType": {
|
|
891
|
+
"original": "string",
|
|
892
|
+
"resolved": "string",
|
|
893
|
+
"references": {}
|
|
894
|
+
},
|
|
895
|
+
"required": false,
|
|
896
|
+
"optional": true,
|
|
897
|
+
"docs": {
|
|
898
|
+
"tags": [],
|
|
899
|
+
"text": "Maximum date value (in the same format as the date input).\nNote: When changing the `format` prop, ensure `max` is also updated to match the new format."
|
|
900
|
+
},
|
|
901
|
+
"getter": false,
|
|
902
|
+
"setter": false,
|
|
903
|
+
"reflect": true
|
|
904
|
+
},
|
|
905
|
+
"rangeUnderflowMessage": {
|
|
906
|
+
"type": "string",
|
|
907
|
+
"attribute": "range-underflow-message",
|
|
908
|
+
"mutable": false,
|
|
909
|
+
"complexType": {
|
|
910
|
+
"original": "string",
|
|
911
|
+
"resolved": "string",
|
|
912
|
+
"references": {}
|
|
913
|
+
},
|
|
914
|
+
"required": false,
|
|
915
|
+
"optional": true,
|
|
916
|
+
"docs": {
|
|
917
|
+
"tags": [],
|
|
918
|
+
"text": "Custom error message displayed when date is before the minimum date."
|
|
919
|
+
},
|
|
920
|
+
"getter": false,
|
|
921
|
+
"setter": false,
|
|
922
|
+
"reflect": false
|
|
923
|
+
},
|
|
924
|
+
"rangeOverflowMessage": {
|
|
925
|
+
"type": "string",
|
|
926
|
+
"attribute": "range-overflow-message",
|
|
927
|
+
"mutable": false,
|
|
928
|
+
"complexType": {
|
|
929
|
+
"original": "string",
|
|
930
|
+
"resolved": "string",
|
|
931
|
+
"references": {}
|
|
932
|
+
},
|
|
933
|
+
"required": false,
|
|
934
|
+
"optional": true,
|
|
935
|
+
"docs": {
|
|
936
|
+
"tags": [],
|
|
937
|
+
"text": "Custom error message displayed when date is after the maximum date."
|
|
938
|
+
},
|
|
939
|
+
"getter": false,
|
|
940
|
+
"setter": false,
|
|
941
|
+
"reflect": false
|
|
942
|
+
},
|
|
943
|
+
"customErrorMessage": {
|
|
944
|
+
"type": "string",
|
|
945
|
+
"attribute": "custom-error-message",
|
|
946
|
+
"mutable": false,
|
|
947
|
+
"complexType": {
|
|
948
|
+
"original": "string",
|
|
949
|
+
"resolved": "string",
|
|
950
|
+
"references": {}
|
|
951
|
+
},
|
|
952
|
+
"required": false,
|
|
953
|
+
"optional": true,
|
|
954
|
+
"docs": {
|
|
955
|
+
"tags": [],
|
|
956
|
+
"text": "Custom error message displayed for any validation failures in the input."
|
|
957
|
+
},
|
|
958
|
+
"getter": false,
|
|
959
|
+
"setter": false,
|
|
960
|
+
"reflect": false
|
|
961
|
+
}
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
static get states() {
|
|
965
|
+
return {
|
|
966
|
+
"currentValues": {},
|
|
967
|
+
"delimiter": {},
|
|
968
|
+
"validityState": {},
|
|
969
|
+
"validityMessage": {},
|
|
970
|
+
"touched": {},
|
|
971
|
+
"dirty": {}
|
|
972
|
+
};
|
|
973
|
+
}
|
|
974
|
+
static get events() {
|
|
975
|
+
return [{
|
|
976
|
+
"method": "rValidate",
|
|
977
|
+
"name": "rValidate",
|
|
978
|
+
"bubbles": true,
|
|
979
|
+
"cancelable": true,
|
|
980
|
+
"composed": true,
|
|
981
|
+
"docs": {
|
|
982
|
+
"tags": [],
|
|
983
|
+
"text": "Emits event after each validation"
|
|
984
|
+
},
|
|
985
|
+
"complexType": {
|
|
986
|
+
"original": "{\n state: string,\n message: string\n }",
|
|
987
|
+
"resolved": "{ state: string; message: string; }",
|
|
988
|
+
"references": {}
|
|
989
|
+
}
|
|
990
|
+
}, {
|
|
991
|
+
"method": "rInput",
|
|
992
|
+
"name": "rInput",
|
|
993
|
+
"bubbles": true,
|
|
994
|
+
"cancelable": true,
|
|
995
|
+
"composed": true,
|
|
996
|
+
"docs": {
|
|
997
|
+
"tags": [],
|
|
998
|
+
"text": "Emits 'rInput' event when value of the component is changing"
|
|
999
|
+
},
|
|
1000
|
+
"complexType": {
|
|
1001
|
+
"original": "{\n element: HTMLRInputDateElement,\n value: any\n }",
|
|
1002
|
+
"resolved": "{ element: HTMLRInputDateElement; value: any; }",
|
|
1003
|
+
"references": {
|
|
1004
|
+
"HTMLRInputDateElement": {
|
|
1005
|
+
"location": "global",
|
|
1006
|
+
"id": "global::HTMLRInputDateElement"
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
}, {
|
|
1011
|
+
"method": "rChange",
|
|
1012
|
+
"name": "rChange",
|
|
1013
|
+
"bubbles": true,
|
|
1014
|
+
"cancelable": true,
|
|
1015
|
+
"composed": true,
|
|
1016
|
+
"docs": {
|
|
1017
|
+
"tags": [],
|
|
1018
|
+
"text": "Emits 'rChange' event when value of the component has been changed"
|
|
1019
|
+
},
|
|
1020
|
+
"complexType": {
|
|
1021
|
+
"original": "{\n element: HTMLRInputDateElement,\n value: any\n }",
|
|
1022
|
+
"resolved": "{ element: HTMLRInputDateElement; value: any; }",
|
|
1023
|
+
"references": {
|
|
1024
|
+
"HTMLRInputDateElement": {
|
|
1025
|
+
"location": "global",
|
|
1026
|
+
"id": "global::HTMLRInputDateElement"
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
}, {
|
|
1031
|
+
"method": "rReset",
|
|
1032
|
+
"name": "rReset",
|
|
1033
|
+
"bubbles": true,
|
|
1034
|
+
"cancelable": true,
|
|
1035
|
+
"composed": true,
|
|
1036
|
+
"docs": {
|
|
1037
|
+
"tags": [],
|
|
1038
|
+
"text": "Emits 'rReset' event when form containing the component was reset"
|
|
1039
|
+
},
|
|
1040
|
+
"complexType": {
|
|
1041
|
+
"original": "{\n element: HTMLRInputDateElement,\n value: any\n }",
|
|
1042
|
+
"resolved": "{ element: HTMLRInputDateElement; value: any; }",
|
|
1043
|
+
"references": {
|
|
1044
|
+
"HTMLRInputDateElement": {
|
|
1045
|
+
"location": "global",
|
|
1046
|
+
"id": "global::HTMLRInputDateElement"
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
}];
|
|
1051
|
+
}
|
|
1052
|
+
static get methods() {
|
|
1053
|
+
return {
|
|
1054
|
+
"getValue": {
|
|
1055
|
+
"complexType": {
|
|
1056
|
+
"signature": "() => Promise<string>",
|
|
1057
|
+
"parameters": [],
|
|
1058
|
+
"references": {
|
|
1059
|
+
"Promise": {
|
|
1060
|
+
"location": "global",
|
|
1061
|
+
"id": "global::Promise"
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
"return": "Promise<string>"
|
|
1065
|
+
},
|
|
1066
|
+
"docs": {
|
|
1067
|
+
"text": "Get the date value",
|
|
1068
|
+
"tags": []
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
"setValue": {
|
|
1072
|
+
"complexType": {
|
|
1073
|
+
"signature": "(value: string) => Promise<void>",
|
|
1074
|
+
"parameters": [{
|
|
1075
|
+
"name": "value",
|
|
1076
|
+
"type": "string",
|
|
1077
|
+
"docs": ""
|
|
1078
|
+
}],
|
|
1079
|
+
"references": {
|
|
1080
|
+
"Promise": {
|
|
1081
|
+
"location": "global",
|
|
1082
|
+
"id": "global::Promise"
|
|
1083
|
+
}
|
|
1084
|
+
},
|
|
1085
|
+
"return": "Promise<void>"
|
|
1086
|
+
},
|
|
1087
|
+
"docs": {
|
|
1088
|
+
"text": "Sets the date value",
|
|
1089
|
+
"tags": []
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
"getFormat": {
|
|
1093
|
+
"complexType": {
|
|
1094
|
+
"signature": "() => Promise<string>",
|
|
1095
|
+
"parameters": [],
|
|
1096
|
+
"references": {
|
|
1097
|
+
"Promise": {
|
|
1098
|
+
"location": "global",
|
|
1099
|
+
"id": "global::Promise"
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1102
|
+
"return": "Promise<string>"
|
|
1103
|
+
},
|
|
1104
|
+
"docs": {
|
|
1105
|
+
"text": "Gets the current date format",
|
|
1106
|
+
"tags": []
|
|
1107
|
+
}
|
|
1108
|
+
},
|
|
1109
|
+
"setFormat": {
|
|
1110
|
+
"complexType": {
|
|
1111
|
+
"signature": "(format: string) => Promise<void>",
|
|
1112
|
+
"parameters": [{
|
|
1113
|
+
"name": "format",
|
|
1114
|
+
"type": "string",
|
|
1115
|
+
"docs": ""
|
|
1116
|
+
}],
|
|
1117
|
+
"references": {
|
|
1118
|
+
"Promise": {
|
|
1119
|
+
"location": "global",
|
|
1120
|
+
"id": "global::Promise"
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
"return": "Promise<void>"
|
|
1124
|
+
},
|
|
1125
|
+
"docs": {
|
|
1126
|
+
"text": "Sets the date format",
|
|
1127
|
+
"tags": []
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
"isTouched": {
|
|
1131
|
+
"complexType": {
|
|
1132
|
+
"signature": "() => Promise<boolean>",
|
|
1133
|
+
"parameters": [],
|
|
1134
|
+
"references": {
|
|
1135
|
+
"Promise": {
|
|
1136
|
+
"location": "global",
|
|
1137
|
+
"id": "global::Promise"
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
"return": "Promise<boolean>"
|
|
1141
|
+
},
|
|
1142
|
+
"docs": {
|
|
1143
|
+
"text": "Gets the touched state (whether user has interacted with the input)",
|
|
1144
|
+
"tags": []
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
"isDirty": {
|
|
1148
|
+
"complexType": {
|
|
1149
|
+
"signature": "() => Promise<boolean>",
|
|
1150
|
+
"parameters": [],
|
|
1151
|
+
"references": {
|
|
1152
|
+
"Promise": {
|
|
1153
|
+
"location": "global",
|
|
1154
|
+
"id": "global::Promise"
|
|
1155
|
+
}
|
|
1156
|
+
},
|
|
1157
|
+
"return": "Promise<boolean>"
|
|
1158
|
+
},
|
|
1159
|
+
"docs": {
|
|
1160
|
+
"text": "Gets the dirty state (whether value has been changed by user)",
|
|
1161
|
+
"tags": []
|
|
1162
|
+
}
|
|
1163
|
+
},
|
|
1164
|
+
"markAsPristine": {
|
|
1165
|
+
"complexType": {
|
|
1166
|
+
"signature": "() => Promise<void>",
|
|
1167
|
+
"parameters": [],
|
|
1168
|
+
"references": {
|
|
1169
|
+
"Promise": {
|
|
1170
|
+
"location": "global",
|
|
1171
|
+
"id": "global::Promise"
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
"return": "Promise<void>"
|
|
1175
|
+
},
|
|
1176
|
+
"docs": {
|
|
1177
|
+
"text": "Resets touched and dirty states to pristine (untouched/clean)",
|
|
1178
|
+
"tags": []
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
"reset": {
|
|
1182
|
+
"complexType": {
|
|
1183
|
+
"signature": "() => Promise<void>",
|
|
1184
|
+
"parameters": [],
|
|
1185
|
+
"references": {
|
|
1186
|
+
"Promise": {
|
|
1187
|
+
"location": "global",
|
|
1188
|
+
"id": "global::Promise"
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
"return": "Promise<void>"
|
|
1192
|
+
},
|
|
1193
|
+
"docs": {
|
|
1194
|
+
"text": "Resets the component by clearing all input values and focusing the first input.",
|
|
1195
|
+
"tags": [{
|
|
1196
|
+
"name": "returns",
|
|
1197
|
+
"text": "Promise that resolves when reset is complete"
|
|
1198
|
+
}]
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
"setCustomValidity": {
|
|
1202
|
+
"complexType": {
|
|
1203
|
+
"signature": "(message: string) => Promise<void>",
|
|
1204
|
+
"parameters": [{
|
|
1205
|
+
"name": "message",
|
|
1206
|
+
"type": "string",
|
|
1207
|
+
"docs": ""
|
|
1208
|
+
}],
|
|
1209
|
+
"references": {
|
|
1210
|
+
"Promise": {
|
|
1211
|
+
"location": "global",
|
|
1212
|
+
"id": "global::Promise"
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
"return": "Promise<void>"
|
|
1216
|
+
},
|
|
1217
|
+
"docs": {
|
|
1218
|
+
"text": "Validates an element, displays provided message in case value is invalid.",
|
|
1219
|
+
"tags": []
|
|
1220
|
+
}
|
|
1221
|
+
},
|
|
1222
|
+
"checkValidity": {
|
|
1223
|
+
"complexType": {
|
|
1224
|
+
"signature": "() => Promise<boolean>",
|
|
1225
|
+
"parameters": [],
|
|
1226
|
+
"references": {
|
|
1227
|
+
"Promise": {
|
|
1228
|
+
"location": "global",
|
|
1229
|
+
"id": "global::Promise"
|
|
1230
|
+
}
|
|
1231
|
+
},
|
|
1232
|
+
"return": "Promise<boolean>"
|
|
1233
|
+
},
|
|
1234
|
+
"docs": {
|
|
1235
|
+
"text": "Validates the input date without triggering UI and returns a boolean indicating its validity.",
|
|
1236
|
+
"tags": [{
|
|
1237
|
+
"name": "returns",
|
|
1238
|
+
"text": "A boolean indicating whether the input date is valid."
|
|
1239
|
+
}]
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
static get elementRef() { return "host"; }
|
|
1245
|
+
static get watchers() {
|
|
1246
|
+
return [{
|
|
1247
|
+
"propName": "format",
|
|
1248
|
+
"methodName": "handleFormatChange"
|
|
1249
|
+
}, {
|
|
1250
|
+
"propName": "value",
|
|
1251
|
+
"methodName": "handleValueChange"
|
|
1252
|
+
}];
|
|
1253
|
+
}
|
|
1254
|
+
}
|