@riverty/web-components 6.2.0 → 6.3.0
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 +30 -0
- package/README.md +78 -0
- package/custom-elements.json +4 -0
- package/package.json +3 -2
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
- package/dist/cjs/focusable-Oll_rmtP.js +0 -28
- package/dist/cjs/formData-B2DZyLxP.js +0 -44
- package/dist/cjs/index-BnETQtSf.js +0 -1834
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -13
- package/dist/cjs/r-accordion-panel.cjs.entry.js +0 -24
- package/dist/cjs/r-accordion-section.cjs.entry.js +0 -125
- package/dist/cjs/r-accordion-trigger.cjs.entry.js +0 -93
- package/dist/cjs/r-accordion.cjs.entry.js +0 -20
- package/dist/cjs/r-alert.cjs.entry.js +0 -146
- package/dist/cjs/r-badge.cjs.entry.js +0 -40
- package/dist/cjs/r-button.cjs.entry.js +0 -149
- package/dist/cjs/r-checkbox-group.cjs.entry.js +0 -232
- package/dist/cjs/r-checkbox.cjs.entry.js +0 -269
- package/dist/cjs/r-design-system-devtools.cjs.entry.js +0 -31
- package/dist/cjs/r-dialog.cjs.entry.js +0 -107
- package/dist/cjs/r-hint_2.cjs.entry.js +0 -50
- package/dist/cjs/r-icon-button_2.cjs.entry.js +0 -467
- package/dist/cjs/r-icon.cjs.entry.js +0 -284
- package/dist/cjs/r-illustration.cjs.entry.js +0 -396
- package/dist/cjs/r-input-code.cjs.entry.js +0 -432
- package/dist/cjs/r-input-date.cjs.entry.js +0 -519
- package/dist/cjs/r-input-password.cjs.entry.js +0 -265
- package/dist/cjs/r-input-phone-number.cjs.entry.js +0 -2525
- package/dist/cjs/r-input.cjs.entry.js +0 -402
- package/dist/cjs/r-list-item.cjs.entry.js +0 -109
- package/dist/cjs/r-pagination.cjs.entry.js +0 -314
- package/dist/cjs/r-panel.cjs.entry.js +0 -184
- package/dist/cjs/r-popover-action.cjs.entry.js +0 -80
- package/dist/cjs/r-popover-content.cjs.entry.js +0 -62
- package/dist/cjs/r-popover-headline.cjs.entry.js +0 -28
- package/dist/cjs/r-popover-trigger.cjs.entry.js +0 -70
- package/dist/cjs/r-popover.cjs.entry.js +0 -347
- package/dist/cjs/r-progress-bar.cjs.entry.js +0 -25
- package/dist/cjs/r-radio-button-description.cjs.entry.js +0 -18
- package/dist/cjs/r-radio-button-leading.cjs.entry.js +0 -18
- package/dist/cjs/r-radio-button-title.cjs.entry.js +0 -18
- package/dist/cjs/r-radio-button-trailing.cjs.entry.js +0 -18
- package/dist/cjs/r-radio-button.cjs.entry.js +0 -139
- package/dist/cjs/r-radio-group.cjs.entry.js +0 -425
- package/dist/cjs/r-select-option.cjs.entry.js +0 -130
- package/dist/cjs/r-select.cjs.entry.js +0 -1101
- package/dist/cjs/r-skip-link.cjs.entry.js +0 -19
- package/dist/cjs/r-stepper-item.cjs.entry.js +0 -42
- package/dist/cjs/r-stepper.cjs.entry.js +0 -99
- package/dist/cjs/r-tab-panel.cjs.entry.js +0 -26
- package/dist/cjs/r-tab.cjs.entry.js +0 -62
- package/dist/cjs/r-tabs-list.cjs.entry.js +0 -175
- package/dist/cjs/r-tabs.cjs.entry.js +0 -277
- package/dist/cjs/r-textarea.cjs.entry.js +0 -270
- package/dist/cjs/r-toast-group.cjs.entry.js +0 -46
- package/dist/cjs/r-toast.cjs.entry.js +0 -306
- package/dist/cjs/style-observer-D9zSP9wP.js +0 -1118
- package/dist/cjs/theming-NqxjhVJS.js +0 -109
- package/dist/cjs/web-components.cjs.js +0 -25
- package/dist/collection/collection-manifest.json +0 -60
- package/dist/collection/components/accordion/accordion.css +0 -24
- package/dist/collection/components/accordion/accordion.js +0 -90
- package/dist/collection/components/accordion/exports.js +0 -1
- package/dist/collection/components/accordion-panel/accordion-panel.css +0 -50
- package/dist/collection/components/accordion-panel/accordion-panel.js +0 -86
- package/dist/collection/components/accordion-section/accordion-section.css +0 -27
- package/dist/collection/components/accordion-section/accordion-section.js +0 -235
- package/dist/collection/components/accordion-trigger/accordion-trigger.css +0 -93
- package/dist/collection/components/accordion-trigger/accordion-trigger.js +0 -220
- package/dist/collection/components/alert/alert.css +0 -119
- package/dist/collection/components/alert/alert.js +0 -526
- package/dist/collection/components/alert/exports.js +0 -2
- package/dist/collection/components/badge/badge.css +0 -52
- package/dist/collection/components/badge/badge.js +0 -120
- package/dist/collection/components/badge/exports.js +0 -1
- package/dist/collection/components/button/button.css +0 -180
- package/dist/collection/components/button/button.js +0 -510
- package/dist/collection/components/button/exports.js +0 -5
- package/dist/collection/components/checkbox/checkbox.css +0 -116
- package/dist/collection/components/checkbox/checkbox.js +0 -777
- package/dist/collection/components/checkbox-group/checkbox-group.css +0 -48
- package/dist/collection/components/checkbox-group/checkbox-group.js +0 -718
- package/dist/collection/components/design-system-devtools/design-system-devtools.js +0 -59
- package/dist/collection/components/dialog/dialog.css +0 -125
- package/dist/collection/components/dialog/dialog.js +0 -345
- package/dist/collection/components/dialog/exports.js +0 -9
- package/dist/collection/components/hint/exports.js +0 -1
- package/dist/collection/components/hint/hint.css +0 -63
- package/dist/collection/components/hint/hint.js +0 -114
- package/dist/collection/components/icon/all-kit.js +0 -2
- package/dist/collection/components/icon/data.js +0 -90
- package/dist/collection/components/icon/exports.js +0 -7
- package/dist/collection/components/icon/icon.css +0 -105
- package/dist/collection/components/icon/icon.js +0 -379
- package/dist/collection/components/icon/riverty-kit.js +0 -2
- package/dist/collection/components/icon-button/icon-button.css +0 -105
- package/dist/collection/components/icon-button/icon-button.js +0 -343
- package/dist/collection/components/illustration/data.js +0 -112
- package/dist/collection/components/illustration/exports.js +0 -3
- package/dist/collection/components/illustration/illustration.js +0 -540
- package/dist/collection/components/illustration/illustration.scss +0 -56
- package/dist/collection/components/illustration/illustrations-ui-kit.js +0 -2
- package/dist/collection/components/input/exports.js +0 -16
- package/dist/collection/components/input/input.css +0 -180
- package/dist/collection/components/input/input.js +0 -1572
- package/dist/collection/components/input-code/exports.js +0 -2
- package/dist/collection/components/input-code/input-code.css +0 -127
- package/dist/collection/components/input-code/input-code.js +0 -1139
- package/dist/collection/components/input-date/exports.js +0 -1
- package/dist/collection/components/input-date/input-date.css +0 -148
- package/dist/collection/components/input-date/input-date.js +0 -1228
- package/dist/collection/components/input-password/exports.js +0 -1
- package/dist/collection/components/input-password/input-password.css +0 -25
- package/dist/collection/components/input-password/input-password.js +0 -1051
- package/dist/collection/components/input-phone-number/input-phone-number.css +0 -61
- package/dist/collection/components/input-phone-number/input-phone-number.js +0 -874
- package/dist/collection/components/label/label.css +0 -38
- package/dist/collection/components/label/label.js +0 -47
- package/dist/collection/components/list-item/list-item/exports.js +0 -2
- package/dist/collection/components/list-item/list-item/list-item.css +0 -199
- package/dist/collection/components/list-item/list-item/list-item.js +0 -467
- package/dist/collection/components/pagination/exports.js +0 -3
- package/dist/collection/components/pagination/pagination.css +0 -118
- package/dist/collection/components/pagination/pagination.js +0 -799
- package/dist/collection/components/panel/exports.js +0 -1
- package/dist/collection/components/panel/panel.css +0 -192
- package/dist/collection/components/panel/panel.js +0 -473
- package/dist/collection/components/popover/exports.js +0 -3
- package/dist/collection/components/popover/popover.css +0 -251
- package/dist/collection/components/popover/popover.js +0 -741
- package/dist/collection/components/popover-action/popover-action.css +0 -21
- package/dist/collection/components/popover-action/popover-action.js +0 -150
- package/dist/collection/components/popover-content/popover-content.css +0 -9
- package/dist/collection/components/popover-content/popover-content.js +0 -130
- package/dist/collection/components/popover-headline/popover-headline.css +0 -7
- package/dist/collection/components/popover-headline/popover-headline.js +0 -28
- package/dist/collection/components/popover-trigger/exports.js +0 -1
- package/dist/collection/components/popover-trigger/popover-trigger.css +0 -4
- package/dist/collection/components/popover-trigger/popover-trigger.js +0 -163
- package/dist/collection/components/progress-bar/progress-bar.css +0 -41
- package/dist/collection/components/progress-bar/progress-bar.js +0 -71
- package/dist/collection/components/radio-button/radio-button.css +0 -126
- package/dist/collection/components/radio-button/radio-button.js +0 -559
- package/dist/collection/components/radio-button-description/radio-button-description.css +0 -5
- package/dist/collection/components/radio-button-description/radio-button-description.js +0 -22
- package/dist/collection/components/radio-button-leading/radio-button-leading.css +0 -3
- package/dist/collection/components/radio-button-leading/radio-button-leading.js +0 -22
- package/dist/collection/components/radio-button-title/radio-button-title.css +0 -8
- package/dist/collection/components/radio-button-title/radio-button-title.js +0 -22
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.css +0 -6
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +0 -22
- package/dist/collection/components/radio-group/exports.js +0 -1
- package/dist/collection/components/radio-group/radio-group.css +0 -65
- package/dist/collection/components/radio-group/radio-group.js +0 -1020
- package/dist/collection/components/select/exports.js +0 -1
- package/dist/collection/components/select/select.css +0 -247
- package/dist/collection/components/select/select.js +0 -2011
- package/dist/collection/components/select-option/select-option.css +0 -93
- package/dist/collection/components/select-option/select-option.js +0 -459
- package/dist/collection/components/skip-link/exports.js +0 -1
- package/dist/collection/components/skip-link/skip-link.css +0 -37
- package/dist/collection/components/skip-link/skip-link.js +0 -52
- package/dist/collection/components/stepper/stepper.css +0 -25
- package/dist/collection/components/stepper/stepper.js +0 -216
- package/dist/collection/components/stepper-item/stepper-item.css +0 -62
- package/dist/collection/components/stepper-item/stepper-item.js +0 -171
- package/dist/collection/components/tab/tab.css +0 -81
- package/dist/collection/components/tab/tab.js +0 -169
- package/dist/collection/components/tab-panel/tab-panel.css +0 -19
- package/dist/collection/components/tab-panel/tab-panel.js +0 -72
- package/dist/collection/components/tabs/tabs.css +0 -4
- package/dist/collection/components/tabs/tabs.js +0 -345
- package/dist/collection/components/tabs-list/exports.js +0 -2
- package/dist/collection/components/tabs-list/tabs-list.css +0 -58
- package/dist/collection/components/tabs-list/tabs-list.js +0 -294
- package/dist/collection/components/textarea/exports.js +0 -8
- package/dist/collection/components/textarea/textarea.css +0 -148
- package/dist/collection/components/textarea/textarea.js +0 -1055
- package/dist/collection/components/toast/exports.js +0 -3
- package/dist/collection/components/toast/toast.css +0 -179
- package/dist/collection/components/toast/toast.js +0 -812
- package/dist/collection/components/toast-group/exports.js +0 -1
- package/dist/collection/components/toast-group/toast-group.css +0 -37
- package/dist/collection/components/toast-group/toast-group.js +0 -49
- package/dist/collection/components/tooltip/exports.js +0 -3
- package/dist/collection/components/tooltip/tooltip.css +0 -106
- package/dist/collection/components/tooltip/tooltip.js +0 -500
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/focusable.js +0 -24
- package/dist/collection/utils/formData.js +0 -40
- package/dist/collection/utils/theming.js +0 -103
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- package/dist/esm/focusable-ky1yonnS.js +0 -26
- package/dist/esm/formData-DvLT8-y3.js +0 -42
- package/dist/esm/index-CTxpqopm.js +0 -1806
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -11
- package/dist/esm/r-accordion-panel.entry.js +0 -22
- package/dist/esm/r-accordion-section.entry.js +0 -123
- package/dist/esm/r-accordion-trigger.entry.js +0 -91
- package/dist/esm/r-accordion.entry.js +0 -18
- package/dist/esm/r-alert.entry.js +0 -144
- package/dist/esm/r-badge.entry.js +0 -38
- package/dist/esm/r-button.entry.js +0 -147
- package/dist/esm/r-checkbox-group.entry.js +0 -230
- package/dist/esm/r-checkbox.entry.js +0 -267
- package/dist/esm/r-design-system-devtools.entry.js +0 -29
- package/dist/esm/r-dialog.entry.js +0 -105
- package/dist/esm/r-hint_2.entry.js +0 -47
- package/dist/esm/r-icon-button_2.entry.js +0 -464
- package/dist/esm/r-icon.entry.js +0 -282
- package/dist/esm/r-illustration.entry.js +0 -394
- package/dist/esm/r-input-code.entry.js +0 -430
- package/dist/esm/r-input-date.entry.js +0 -517
- package/dist/esm/r-input-password.entry.js +0 -263
- package/dist/esm/r-input-phone-number.entry.js +0 -2523
- package/dist/esm/r-input.entry.js +0 -400
- package/dist/esm/r-list-item.entry.js +0 -107
- package/dist/esm/r-pagination.entry.js +0 -312
- package/dist/esm/r-panel.entry.js +0 -182
- package/dist/esm/r-popover-action.entry.js +0 -78
- package/dist/esm/r-popover-content.entry.js +0 -60
- package/dist/esm/r-popover-headline.entry.js +0 -26
- package/dist/esm/r-popover-trigger.entry.js +0 -68
- package/dist/esm/r-popover.entry.js +0 -345
- package/dist/esm/r-progress-bar.entry.js +0 -23
- package/dist/esm/r-radio-button-description.entry.js +0 -16
- package/dist/esm/r-radio-button-leading.entry.js +0 -16
- package/dist/esm/r-radio-button-title.entry.js +0 -16
- package/dist/esm/r-radio-button-trailing.entry.js +0 -16
- package/dist/esm/r-radio-button.entry.js +0 -137
- package/dist/esm/r-radio-group.entry.js +0 -423
- package/dist/esm/r-select-option.entry.js +0 -128
- package/dist/esm/r-select.entry.js +0 -1099
- package/dist/esm/r-skip-link.entry.js +0 -17
- package/dist/esm/r-stepper-item.entry.js +0 -40
- package/dist/esm/r-stepper.entry.js +0 -97
- package/dist/esm/r-tab-panel.entry.js +0 -24
- package/dist/esm/r-tab.entry.js +0 -60
- package/dist/esm/r-tabs-list.entry.js +0 -173
- package/dist/esm/r-tabs.entry.js +0 -275
- package/dist/esm/r-textarea.entry.js +0 -268
- package/dist/esm/r-toast-group.entry.js +0 -44
- package/dist/esm/r-toast.entry.js +0 -304
- package/dist/esm/style-observer-4Uv3PpKT.js +0 -1116
- package/dist/esm/theming-DD2IrjpG.js +0 -106
- package/dist/esm/web-components.js +0 -21
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/components/accordion/accordion.d.ts +0 -27
- package/dist/types/components/accordion/exports.d.ts +0 -2
- package/dist/types/components/accordion-panel/accordion-panel.d.ts +0 -10
- package/dist/types/components/accordion-section/accordion-section.d.ts +0 -36
- package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +0 -33
- package/dist/types/components/alert/alert.d.ts +0 -67
- package/dist/types/components/alert/exports.d.ts +0 -4
- package/dist/types/components/badge/badge.d.ts +0 -23
- package/dist/types/components/badge/exports.d.ts +0 -2
- package/dist/types/components/button/button.d.ts +0 -89
- package/dist/types/components/button/exports.d.ts +0 -10
- package/dist/types/components/checkbox/checkbox.d.ts +0 -136
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +0 -122
- package/dist/types/components/design-system-devtools/design-system-devtools.d.ts +0 -15
- package/dist/types/components/dialog/dialog.d.ts +0 -69
- package/dist/types/components/dialog/exports.d.ts +0 -10
- package/dist/types/components/hint/exports.d.ts +0 -2
- package/dist/types/components/hint/hint.d.ts +0 -20
- package/dist/types/components/icon/all-kit.d.ts +0 -2890
- package/dist/types/components/icon/data.d.ts +0 -145
- package/dist/types/components/icon/exports.d.ts +0 -152
- package/dist/types/components/icon/icon.d.ts +0 -37
- package/dist/types/components/icon/riverty-kit.d.ts +0 -139
- package/dist/types/components/icon-button/icon-button.d.ts +0 -69
- package/dist/types/components/illustration/data.d.ts +0 -52
- package/dist/types/components/illustration/exports.d.ts +0 -23
- package/dist/types/components/illustration/illustration.d.ts +0 -51
- package/dist/types/components/illustration/illustrations-ui-kit.d.ts +0 -21
- package/dist/types/components/input/exports.d.ts +0 -10
- package/dist/types/components/input/input.d.ts +0 -300
- package/dist/types/components/input-code/exports.d.ts +0 -4
- package/dist/types/components/input-code/input-code.d.ts +0 -175
- package/dist/types/components/input-date/exports.d.ts +0 -5
- package/dist/types/components/input-date/input-date.d.ts +0 -172
- package/dist/types/components/input-password/exports.d.ts +0 -1
- package/dist/types/components/input-password/input-password.d.ts +0 -184
- package/dist/types/components/input-phone-number/input-phone-number.d.ts +0 -128
- package/dist/types/components/label/label.d.ts +0 -9
- package/dist/types/components/list-item/list-item/exports.d.ts +0 -4
- package/dist/types/components/list-item/list-item/list-item.d.ts +0 -61
- package/dist/types/components/pagination/exports.d.ts +0 -6
- package/dist/types/components/pagination/pagination.d.ts +0 -140
- package/dist/types/components/panel/exports.d.ts +0 -2
- package/dist/types/components/panel/panel.d.ts +0 -56
- package/dist/types/components/popover/exports.d.ts +0 -6
- package/dist/types/components/popover/popover.d.ts +0 -131
- package/dist/types/components/popover-action/popover-action.d.ts +0 -24
- package/dist/types/components/popover-content/popover-content.d.ts +0 -22
- package/dist/types/components/popover-headline/popover-headline.d.ts +0 -6
- package/dist/types/components/popover-trigger/exports.d.ts +0 -2
- package/dist/types/components/popover-trigger/popover-trigger.d.ts +0 -31
- package/dist/types/components/progress-bar/progress-bar.d.ts +0 -10
- package/dist/types/components/radio-button/radio-button.d.ts +0 -92
- package/dist/types/components/radio-button-description/radio-button-description.d.ts +0 -8
- package/dist/types/components/radio-button-leading/radio-button-leading.d.ts +0 -8
- package/dist/types/components/radio-button-title/radio-button-title.d.ts +0 -8
- package/dist/types/components/radio-button-trailing/radio-button-trailing.d.ts +0 -8
- package/dist/types/components/radio-group/exports.d.ts +0 -2
- package/dist/types/components/radio-group/radio-group.d.ts +0 -178
- package/dist/types/components/select/exports.d.ts +0 -2
- package/dist/types/components/select/select.d.ts +0 -317
- package/dist/types/components/select-option/select-option.d.ts +0 -113
- package/dist/types/components/skip-link/exports.d.ts +0 -2
- package/dist/types/components/skip-link/skip-link.d.ts +0 -6
- package/dist/types/components/stepper/stepper.d.ts +0 -22
- package/dist/types/components/stepper-item/stepper-item.d.ts +0 -23
- package/dist/types/components/tab/tab.d.ts +0 -23
- package/dist/types/components/tab-panel/tab-panel.d.ts +0 -7
- package/dist/types/components/tabs/tabs.d.ts +0 -49
- package/dist/types/components/tabs-list/exports.d.ts +0 -4
- package/dist/types/components/tabs-list/tabs-list.d.ts +0 -41
- package/dist/types/components/textarea/exports.d.ts +0 -2
- package/dist/types/components/textarea/textarea.d.ts +0 -158
- package/dist/types/components/toast/exports.d.ts +0 -6
- package/dist/types/components/toast/toast.d.ts +0 -146
- package/dist/types/components/toast-group/exports.d.ts +0 -2
- package/dist/types/components/toast-group/toast-group.d.ts +0 -9
- package/dist/types/components/tooltip/exports.d.ts +0 -6
- package/dist/types/components/tooltip/tooltip.d.ts +0 -131
- package/dist/types/components.d.ts +0 -6286
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1732
- package/dist/types/types/jsx-shim.d.ts +0 -13
- package/dist/types/types/style-observer.d.ts +0 -20
- package/dist/types/utils/focusable.d.ts +0 -1
- package/dist/types/utils/formData.d.ts +0 -1
- package/dist/types/utils/theming.d.ts +0 -15
- package/dist/web-components/index.esm.js +0 -0
- package/dist/web-components/p-02b22f8e.entry.js +0 -1
- package/dist/web-components/p-075a8dc8.entry.js +0 -1
- package/dist/web-components/p-0a34d33b.entry.js +0 -1
- package/dist/web-components/p-10cc9983.entry.js +0 -1
- package/dist/web-components/p-253068b9.entry.js +0 -1
- package/dist/web-components/p-3b8c8951.entry.js +0 -1
- package/dist/web-components/p-3beacdab.entry.js +0 -1
- package/dist/web-components/p-4214867d.entry.js +0 -1
- package/dist/web-components/p-42c857e9.entry.js +0 -1
- package/dist/web-components/p-44f87e16.entry.js +0 -1
- package/dist/web-components/p-477614c5.entry.js +0 -1
- package/dist/web-components/p-495ba3d2.entry.js +0 -1
- package/dist/web-components/p-4Uv3PpKT.js +0 -1
- package/dist/web-components/p-4de76291.entry.js +0 -1
- package/dist/web-components/p-55600d47.entry.js +0 -1
- package/dist/web-components/p-562051aa.entry.js +0 -1
- package/dist/web-components/p-5b850e0f.entry.js +0 -1
- package/dist/web-components/p-6013dfc8.entry.js +0 -1
- package/dist/web-components/p-62e7ae04.entry.js +0 -1
- package/dist/web-components/p-71519d37.entry.js +0 -1
- package/dist/web-components/p-88f7b47f.entry.js +0 -1
- package/dist/web-components/p-8975a6a3.entry.js +0 -1
- package/dist/web-components/p-8e125826.entry.js +0 -1
- package/dist/web-components/p-91cc0bde.entry.js +0 -1
- package/dist/web-components/p-93435fcd.entry.js +0 -1
- package/dist/web-components/p-947969d7.entry.js +0 -1
- package/dist/web-components/p-95396b5c.entry.js +0 -1
- package/dist/web-components/p-9de3a1a5.entry.js +0 -1
- package/dist/web-components/p-9f583ed1.entry.js +0 -1
- package/dist/web-components/p-B9rsR6cQ.js +0 -1
- package/dist/web-components/p-CTxpqopm.js +0 -2
- package/dist/web-components/p-DQuL1Twl.js +0 -1
- package/dist/web-components/p-DvLT8-y3.js +0 -1
- package/dist/web-components/p-a1086abe.entry.js +0 -1
- package/dist/web-components/p-bbba6d79.entry.js +0 -1
- package/dist/web-components/p-bde44ec4.entry.js +0 -1
- package/dist/web-components/p-bfc7e6c0.entry.js +0 -1
- package/dist/web-components/p-c1030394.entry.js +0 -1
- package/dist/web-components/p-c1f59ed1.entry.js +0 -1
- package/dist/web-components/p-c80a5541.entry.js +0 -1
- package/dist/web-components/p-c96ee61a.entry.js +0 -1
- package/dist/web-components/p-caf8f067.entry.js +0 -1
- package/dist/web-components/p-cc363c3d.entry.js +0 -1
- package/dist/web-components/p-cf4ff357.entry.js +0 -1
- package/dist/web-components/p-d0310ed4.entry.js +0 -1
- package/dist/web-components/p-d1412932.entry.js +0 -1
- package/dist/web-components/p-d2447e30.entry.js +0 -1
- package/dist/web-components/p-dc9cca06.entry.js +0 -1
- package/dist/web-components/p-e5b943a2.entry.js +0 -1
- package/dist/web-components/p-e67b13df.entry.js +0 -1
- package/dist/web-components/p-efec231a.entry.js +0 -1
- package/dist/web-components/p-f867e4c3.entry.js +0 -1
- package/dist/web-components/p-ky1yonnS.js +0 -1
- package/dist/web-components/web-components.esm.js +0 -1
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
|
@@ -1,1228 +0,0 @@
|
|
|
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
|
-
/**
|
|
360
|
-
* Validates the input date without triggering UI and returns a boolean indicating its validity.
|
|
361
|
-
* @returns A boolean indicating whether the input date is valid.
|
|
362
|
-
*/
|
|
363
|
-
async checkValidity() {
|
|
364
|
-
const { validityState } = this.getValidityStateData(this.nativeElement);
|
|
365
|
-
return validityState === 'valid';
|
|
366
|
-
}
|
|
367
|
-
get inputs() {
|
|
368
|
-
return Array.from(this.host.shadowRoot.querySelectorAll('input[data-date-type]'));
|
|
369
|
-
}
|
|
370
|
-
get inputOrder() {
|
|
371
|
-
return this.format.split(this.delimiter);
|
|
372
|
-
}
|
|
373
|
-
get message() {
|
|
374
|
-
if (this.invalid && this.error) {
|
|
375
|
-
return this.error;
|
|
376
|
-
}
|
|
377
|
-
return (this.validityState && this.validityState !== 'valid' ?
|
|
378
|
-
(this.customErrorMessage || this.validityMessage)
|
|
379
|
-
: null);
|
|
380
|
-
}
|
|
381
|
-
get hasMessage() {
|
|
382
|
-
return this.message !== null;
|
|
383
|
-
}
|
|
384
|
-
get ariaDescribedBy() {
|
|
385
|
-
const messageId = this.message ? `${this.uniqueId}-message` : null;
|
|
386
|
-
return this.hint ? `${this.uniqueId}-hint ${messageId}` : messageId;
|
|
387
|
-
}
|
|
388
|
-
/** Identify wrapping form element */
|
|
389
|
-
get parentFormEl() {
|
|
390
|
-
return this.host.closest('form') || document.querySelector(`#${this.form}`) || null;
|
|
391
|
-
}
|
|
392
|
-
/**
|
|
393
|
-
* Determine whether this element should be ignored
|
|
394
|
-
* during Constraint Validation API validation.
|
|
395
|
-
* */
|
|
396
|
-
get isNoValidate() {
|
|
397
|
-
var _a;
|
|
398
|
-
return (((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.hasAttribute('novalidate')) ||
|
|
399
|
-
this.novalidate ||
|
|
400
|
-
this.disabled ||
|
|
401
|
-
false);
|
|
402
|
-
}
|
|
403
|
-
get firstEmptyInput() {
|
|
404
|
-
return this.inputs.find(input => !input.value) || null;
|
|
405
|
-
}
|
|
406
|
-
get hasTrailingSlot() {
|
|
407
|
-
return !!this.host.querySelector('[slot="trailing"]');
|
|
408
|
-
}
|
|
409
|
-
componentWillLoad() {
|
|
410
|
-
dayjs.extend(customParseFormat);
|
|
411
|
-
this.delimiter = this.getDelimiter(this.format);
|
|
412
|
-
this.initial['value'] = this.value;
|
|
413
|
-
this.initial['invalid'] = this.invalid;
|
|
414
|
-
this.initial['format'] = this.format;
|
|
415
|
-
this.setCurrentValues();
|
|
416
|
-
}
|
|
417
|
-
connectFormEventListeners() {
|
|
418
|
-
var _a, _b, _c;
|
|
419
|
-
(_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.addEventListener('formdata', this.contributeToFormData);
|
|
420
|
-
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.addEventListener('submit', this.onSubmitForm, { capture: true });
|
|
421
|
-
(_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.addEventListener('reset', this.onResetForm);
|
|
422
|
-
}
|
|
423
|
-
disconnectFormEventListeners() {
|
|
424
|
-
var _a, _b, _c;
|
|
425
|
-
(_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('formdata', this.contributeToFormData);
|
|
426
|
-
(_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('submit', this.onSubmitForm);
|
|
427
|
-
(_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('reset', this.onResetForm);
|
|
428
|
-
}
|
|
429
|
-
connectedCallback() {
|
|
430
|
-
this.connectFormEventListeners();
|
|
431
|
-
}
|
|
432
|
-
disconnectedCallback() {
|
|
433
|
-
this.disconnectFormEventListeners();
|
|
434
|
-
}
|
|
435
|
-
render() {
|
|
436
|
-
const { form, name, required, disabled, label, fieldIndicator, hint, uniqueId, invalid, valid, readonly } = this;
|
|
437
|
-
const groupAttrs = {
|
|
438
|
-
'aria-invalid': `${invalid || false}`,
|
|
439
|
-
'aria-describedby': this.ariaDescribedBy
|
|
440
|
-
};
|
|
441
|
-
const dateInputAttrs = {
|
|
442
|
-
id: uniqueId,
|
|
443
|
-
form,
|
|
444
|
-
name,
|
|
445
|
-
required,
|
|
446
|
-
disabled,
|
|
447
|
-
readonly,
|
|
448
|
-
'aria-describedby': this.ariaDescribedBy
|
|
449
|
-
};
|
|
450
|
-
const labelAttr = label ? {
|
|
451
|
-
id: `${uniqueId}-label`,
|
|
452
|
-
fieldIndicator
|
|
453
|
-
} : {};
|
|
454
|
-
return (h(Host, { key: '1fe0cc5598857ca719ef334807da6e2540c4a399', onClick: this.onHostClick, "data-touched": `${this.touched}`, "data-dirty": `${this.dirty}` }, h("fieldset", Object.assign({ key: 'a7ad4075376fc3d08cc59be2f4340c9327e05f82', class: "r-input-date" }, groupAttrs), h("div", { key: 'ec18205fad6069d54715807529a145d03f8bdebb', class: "r-input-date--legend-container" }, h("legend", { key: '59c4384b37a3a845eb5cb0c2955b8a12777b2320', class: "r-input-date--legend" }, h("label", { key: '8b5502aeb26daa26d3f32d3669406b87e2eb29ca', htmlFor: uniqueId }, label ?
|
|
455
|
-
h("r-label", Object.assign({}, labelAttr), label)
|
|
456
|
-
:
|
|
457
|
-
h("slot", { name: "label" }))), h("slot", { key: '7a5b5ad6401bb8199d94c36383e4219fd3556db5', name: "popover" })), hint &&
|
|
458
|
-
h("r-hint", { key: '1226c6002eb581811e419db7518e02d5fbc18b5b', id: `${uniqueId}-hint`, role: "note" }, hint), h("div", { key: '5581e3cbb731a4a23a243118f2840563352e6df1', class: "r-input-date--container" }, h("r-icon", { key: 'e8b52fc6fcb1d4f22fd24e7e26e55218a1b6ee80', name: "calendar", size: "s", class: "r-input-date--calendar-icon" }), h("div", { key: '4b97bab9a65f4a9d1958287f23940b7ee4d7143e', 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 &&
|
|
459
|
-
h("span", { "aria-hidden": "true", class: "r-input-date--delimiter" }, this.delimiter)))), h("input", Object.assign({ key: 'fdebeb8a48fd0fc10233166db94e928fc4b424de', type: "hidden" }, dateInputAttrs, { value: this.value, ref: (el) => this.nativeElement = el }))), h("div", { key: '4324ae4593512d0bd16f843e60c2058859cc1ba1', class: "r-input-date--trailing" }, this.readonly &&
|
|
460
|
-
h("r-icon", { key: '673fb144899c62d9b5d9267b35ce1f197b1f6549', class: "r-input-date--readonly-icon", name: "pen-disabled", size: "s" }), valid &&
|
|
461
|
-
h("r-icon", { key: '26828285dad4ccae6ebc8d29a2f4e1e6a5d92a6d', name: "circled-check", size: "s", color: "var(--r-status-success-regular)" }), this.hasTrailingSlot && h("slot", { key: 'bda392fa837a8fba6917fed22ff356c4e6f15b85', name: "trailing" }))), h("div", { key: 'a6d891a2f2bf3456d5cbb3ec27c6cef0bce7d434', id: `${uniqueId}-message`, "aria-live": "polite", class: "r-input-date--message" }, this.hasMessage && h("r-hint", { key: '8a3316ce851bfa02b9ca1a1fad8fde6f48a7fab6', variant: "error" }, this.message)))));
|
|
462
|
-
}
|
|
463
|
-
static get is() { return "r-input-date"; }
|
|
464
|
-
static get encapsulation() { return "shadow"; }
|
|
465
|
-
static get originalStyleUrls() {
|
|
466
|
-
return {
|
|
467
|
-
"$": ["input-date.css"]
|
|
468
|
-
};
|
|
469
|
-
}
|
|
470
|
-
static get styleUrls() {
|
|
471
|
-
return {
|
|
472
|
-
"$": ["input-date.css"]
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
|
-
static get properties() {
|
|
476
|
-
return {
|
|
477
|
-
"form": {
|
|
478
|
-
"type": "string",
|
|
479
|
-
"attribute": "form",
|
|
480
|
-
"mutable": false,
|
|
481
|
-
"complexType": {
|
|
482
|
-
"original": "string",
|
|
483
|
-
"resolved": "string",
|
|
484
|
-
"references": {}
|
|
485
|
-
},
|
|
486
|
-
"required": false,
|
|
487
|
-
"optional": true,
|
|
488
|
-
"docs": {
|
|
489
|
-
"tags": [],
|
|
490
|
-
"text": "Specifies the `id` of the `<form>` to which the element belongs"
|
|
491
|
-
},
|
|
492
|
-
"getter": false,
|
|
493
|
-
"setter": false,
|
|
494
|
-
"reflect": false
|
|
495
|
-
},
|
|
496
|
-
"novalidate": {
|
|
497
|
-
"type": "boolean",
|
|
498
|
-
"attribute": "novalidate",
|
|
499
|
-
"mutable": false,
|
|
500
|
-
"complexType": {
|
|
501
|
-
"original": "boolean",
|
|
502
|
-
"resolved": "boolean",
|
|
503
|
-
"references": {}
|
|
504
|
-
},
|
|
505
|
-
"required": false,
|
|
506
|
-
"optional": true,
|
|
507
|
-
"docs": {
|
|
508
|
-
"tags": [],
|
|
509
|
-
"text": "Specifies if element must be ignored during validation of the form elements"
|
|
510
|
-
},
|
|
511
|
-
"getter": false,
|
|
512
|
-
"setter": false,
|
|
513
|
-
"reflect": false
|
|
514
|
-
},
|
|
515
|
-
"name": {
|
|
516
|
-
"type": "string",
|
|
517
|
-
"attribute": "name",
|
|
518
|
-
"mutable": false,
|
|
519
|
-
"complexType": {
|
|
520
|
-
"original": "string",
|
|
521
|
-
"resolved": "string",
|
|
522
|
-
"references": {}
|
|
523
|
-
},
|
|
524
|
-
"required": false,
|
|
525
|
-
"optional": false,
|
|
526
|
-
"docs": {
|
|
527
|
-
"tags": [],
|
|
528
|
-
"text": "Specifies a name for a input"
|
|
529
|
-
},
|
|
530
|
-
"getter": false,
|
|
531
|
-
"setter": false,
|
|
532
|
-
"reflect": true
|
|
533
|
-
},
|
|
534
|
-
"format": {
|
|
535
|
-
"type": "string",
|
|
536
|
-
"attribute": "format",
|
|
537
|
-
"mutable": true,
|
|
538
|
-
"complexType": {
|
|
539
|
-
"original": "string",
|
|
540
|
-
"resolved": "string",
|
|
541
|
-
"references": {}
|
|
542
|
-
},
|
|
543
|
-
"required": false,
|
|
544
|
-
"optional": false,
|
|
545
|
-
"docs": {
|
|
546
|
-
"tags": [],
|
|
547
|
-
"text": "Specifies a date format"
|
|
548
|
-
},
|
|
549
|
-
"getter": false,
|
|
550
|
-
"setter": false,
|
|
551
|
-
"reflect": true,
|
|
552
|
-
"defaultValue": "'DD/MM/YYYY'"
|
|
553
|
-
},
|
|
554
|
-
"value": {
|
|
555
|
-
"type": "string",
|
|
556
|
-
"attribute": "value",
|
|
557
|
-
"mutable": true,
|
|
558
|
-
"complexType": {
|
|
559
|
-
"original": "string | null",
|
|
560
|
-
"resolved": "string",
|
|
561
|
-
"references": {}
|
|
562
|
-
},
|
|
563
|
-
"required": false,
|
|
564
|
-
"optional": true,
|
|
565
|
-
"docs": {
|
|
566
|
-
"tags": [],
|
|
567
|
-
"text": "The value of the date input"
|
|
568
|
-
},
|
|
569
|
-
"getter": false,
|
|
570
|
-
"setter": false,
|
|
571
|
-
"reflect": true,
|
|
572
|
-
"defaultValue": "''"
|
|
573
|
-
},
|
|
574
|
-
"label": {
|
|
575
|
-
"type": "string",
|
|
576
|
-
"attribute": "label",
|
|
577
|
-
"mutable": false,
|
|
578
|
-
"complexType": {
|
|
579
|
-
"original": "string",
|
|
580
|
-
"resolved": "string",
|
|
581
|
-
"references": {}
|
|
582
|
-
},
|
|
583
|
-
"required": true,
|
|
584
|
-
"optional": false,
|
|
585
|
-
"docs": {
|
|
586
|
-
"tags": [],
|
|
587
|
-
"text": "The text on the label"
|
|
588
|
-
},
|
|
589
|
-
"getter": false,
|
|
590
|
-
"setter": false,
|
|
591
|
-
"reflect": true
|
|
592
|
-
},
|
|
593
|
-
"fieldIndicator": {
|
|
594
|
-
"type": "string",
|
|
595
|
-
"attribute": "field-indicator",
|
|
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": "Text of an additional marker in the label"
|
|
607
|
-
},
|
|
608
|
-
"getter": false,
|
|
609
|
-
"setter": false,
|
|
610
|
-
"reflect": false
|
|
611
|
-
},
|
|
612
|
-
"hint": {
|
|
613
|
-
"type": "string",
|
|
614
|
-
"attribute": "hint",
|
|
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": "Optional hint, visually presented under the input,\ngiving additional context to the user"
|
|
626
|
-
},
|
|
627
|
-
"getter": false,
|
|
628
|
-
"setter": false,
|
|
629
|
-
"reflect": false
|
|
630
|
-
},
|
|
631
|
-
"fullWidth": {
|
|
632
|
-
"type": "boolean",
|
|
633
|
-
"attribute": "full-width",
|
|
634
|
-
"mutable": false,
|
|
635
|
-
"complexType": {
|
|
636
|
-
"original": "boolean",
|
|
637
|
-
"resolved": "boolean",
|
|
638
|
-
"references": {}
|
|
639
|
-
},
|
|
640
|
-
"required": false,
|
|
641
|
-
"optional": true,
|
|
642
|
-
"docs": {
|
|
643
|
-
"tags": [],
|
|
644
|
-
"text": "Defines if the component suppose to occupy 100% width"
|
|
645
|
-
},
|
|
646
|
-
"getter": false,
|
|
647
|
-
"setter": false,
|
|
648
|
-
"reflect": true
|
|
649
|
-
},
|
|
650
|
-
"dayAriaLabel": {
|
|
651
|
-
"type": "string",
|
|
652
|
-
"attribute": "day-aria-label",
|
|
653
|
-
"mutable": false,
|
|
654
|
-
"complexType": {
|
|
655
|
-
"original": "string",
|
|
656
|
-
"resolved": "string",
|
|
657
|
-
"references": {}
|
|
658
|
-
},
|
|
659
|
-
"required": false,
|
|
660
|
-
"optional": false,
|
|
661
|
-
"docs": {
|
|
662
|
-
"tags": [],
|
|
663
|
-
"text": "Defines label for the input for the day"
|
|
664
|
-
},
|
|
665
|
-
"getter": false,
|
|
666
|
-
"setter": false,
|
|
667
|
-
"reflect": true,
|
|
668
|
-
"defaultValue": "'Day'"
|
|
669
|
-
},
|
|
670
|
-
"monthAriaLabel": {
|
|
671
|
-
"type": "string",
|
|
672
|
-
"attribute": "month-aria-label",
|
|
673
|
-
"mutable": false,
|
|
674
|
-
"complexType": {
|
|
675
|
-
"original": "string",
|
|
676
|
-
"resolved": "string",
|
|
677
|
-
"references": {}
|
|
678
|
-
},
|
|
679
|
-
"required": false,
|
|
680
|
-
"optional": false,
|
|
681
|
-
"docs": {
|
|
682
|
-
"tags": [],
|
|
683
|
-
"text": "Defines label for the input for the month"
|
|
684
|
-
},
|
|
685
|
-
"getter": false,
|
|
686
|
-
"setter": false,
|
|
687
|
-
"reflect": true,
|
|
688
|
-
"defaultValue": "'Month'"
|
|
689
|
-
},
|
|
690
|
-
"yearAriaLabel": {
|
|
691
|
-
"type": "string",
|
|
692
|
-
"attribute": "year-aria-label",
|
|
693
|
-
"mutable": false,
|
|
694
|
-
"complexType": {
|
|
695
|
-
"original": "string",
|
|
696
|
-
"resolved": "string",
|
|
697
|
-
"references": {}
|
|
698
|
-
},
|
|
699
|
-
"required": false,
|
|
700
|
-
"optional": false,
|
|
701
|
-
"docs": {
|
|
702
|
-
"tags": [],
|
|
703
|
-
"text": "Defines label for the input for the year"
|
|
704
|
-
},
|
|
705
|
-
"getter": false,
|
|
706
|
-
"setter": false,
|
|
707
|
-
"reflect": true,
|
|
708
|
-
"defaultValue": "'Year'"
|
|
709
|
-
},
|
|
710
|
-
"valid": {
|
|
711
|
-
"type": "boolean",
|
|
712
|
-
"attribute": "valid",
|
|
713
|
-
"mutable": true,
|
|
714
|
-
"complexType": {
|
|
715
|
-
"original": "boolean",
|
|
716
|
-
"resolved": "boolean",
|
|
717
|
-
"references": {}
|
|
718
|
-
},
|
|
719
|
-
"required": false,
|
|
720
|
-
"optional": true,
|
|
721
|
-
"docs": {
|
|
722
|
-
"tags": [],
|
|
723
|
-
"text": "Visual indication of valid state"
|
|
724
|
-
},
|
|
725
|
-
"getter": false,
|
|
726
|
-
"setter": false,
|
|
727
|
-
"reflect": true
|
|
728
|
-
},
|
|
729
|
-
"invalid": {
|
|
730
|
-
"type": "boolean",
|
|
731
|
-
"attribute": "invalid",
|
|
732
|
-
"mutable": true,
|
|
733
|
-
"complexType": {
|
|
734
|
-
"original": "boolean",
|
|
735
|
-
"resolved": "boolean",
|
|
736
|
-
"references": {}
|
|
737
|
-
},
|
|
738
|
-
"required": false,
|
|
739
|
-
"optional": true,
|
|
740
|
-
"docs": {
|
|
741
|
-
"tags": [],
|
|
742
|
-
"text": "Validity indicator, serving to change UI of the component"
|
|
743
|
-
},
|
|
744
|
-
"getter": false,
|
|
745
|
-
"setter": false,
|
|
746
|
-
"reflect": true
|
|
747
|
-
},
|
|
748
|
-
"error": {
|
|
749
|
-
"type": "string",
|
|
750
|
-
"attribute": "error",
|
|
751
|
-
"mutable": false,
|
|
752
|
-
"complexType": {
|
|
753
|
-
"original": "string",
|
|
754
|
-
"resolved": "string",
|
|
755
|
-
"references": {}
|
|
756
|
-
},
|
|
757
|
-
"required": false,
|
|
758
|
-
"optional": true,
|
|
759
|
-
"docs": {
|
|
760
|
-
"tags": [],
|
|
761
|
-
"text": "The way to provide error message separately from Constraint Validation API."
|
|
762
|
-
},
|
|
763
|
-
"getter": false,
|
|
764
|
-
"setter": false,
|
|
765
|
-
"reflect": false
|
|
766
|
-
},
|
|
767
|
-
"disabled": {
|
|
768
|
-
"type": "boolean",
|
|
769
|
-
"attribute": "disabled",
|
|
770
|
-
"mutable": false,
|
|
771
|
-
"complexType": {
|
|
772
|
-
"original": "boolean",
|
|
773
|
-
"resolved": "boolean",
|
|
774
|
-
"references": {}
|
|
775
|
-
},
|
|
776
|
-
"required": false,
|
|
777
|
-
"optional": true,
|
|
778
|
-
"docs": {
|
|
779
|
-
"tags": [],
|
|
780
|
-
"text": "Prevents user interaction and applies disabled style"
|
|
781
|
-
},
|
|
782
|
-
"getter": false,
|
|
783
|
-
"setter": false,
|
|
784
|
-
"reflect": true
|
|
785
|
-
},
|
|
786
|
-
"readonly": {
|
|
787
|
-
"type": "boolean",
|
|
788
|
-
"attribute": "readonly",
|
|
789
|
-
"mutable": false,
|
|
790
|
-
"complexType": {
|
|
791
|
-
"original": "boolean",
|
|
792
|
-
"resolved": "boolean",
|
|
793
|
-
"references": {}
|
|
794
|
-
},
|
|
795
|
-
"required": false,
|
|
796
|
-
"optional": true,
|
|
797
|
-
"docs": {
|
|
798
|
-
"tags": [],
|
|
799
|
-
"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)."
|
|
800
|
-
},
|
|
801
|
-
"getter": false,
|
|
802
|
-
"setter": false,
|
|
803
|
-
"reflect": true
|
|
804
|
-
},
|
|
805
|
-
"required": {
|
|
806
|
-
"type": "boolean",
|
|
807
|
-
"attribute": "required",
|
|
808
|
-
"mutable": false,
|
|
809
|
-
"complexType": {
|
|
810
|
-
"original": "boolean",
|
|
811
|
-
"resolved": "boolean",
|
|
812
|
-
"references": {}
|
|
813
|
-
},
|
|
814
|
-
"required": false,
|
|
815
|
-
"optional": true,
|
|
816
|
-
"docs": {
|
|
817
|
-
"tags": [],
|
|
818
|
-
"text": "Specifies that an input is required/must be filled out"
|
|
819
|
-
},
|
|
820
|
-
"getter": false,
|
|
821
|
-
"setter": false,
|
|
822
|
-
"reflect": true
|
|
823
|
-
},
|
|
824
|
-
"valueMissingMessage": {
|
|
825
|
-
"type": "string",
|
|
826
|
-
"attribute": "value-missing-message",
|
|
827
|
-
"mutable": false,
|
|
828
|
-
"complexType": {
|
|
829
|
-
"original": "string",
|
|
830
|
-
"resolved": "string",
|
|
831
|
-
"references": {}
|
|
832
|
-
},
|
|
833
|
-
"required": false,
|
|
834
|
-
"optional": true,
|
|
835
|
-
"docs": {
|
|
836
|
-
"tags": [],
|
|
837
|
-
"text": "Set custom message for `valueMissing` property of a ValidityState object (set by `required`)"
|
|
838
|
-
},
|
|
839
|
-
"getter": false,
|
|
840
|
-
"setter": false,
|
|
841
|
-
"reflect": false
|
|
842
|
-
},
|
|
843
|
-
"invalidDateMessage": {
|
|
844
|
-
"type": "string",
|
|
845
|
-
"attribute": "invalid-date-message",
|
|
846
|
-
"mutable": false,
|
|
847
|
-
"complexType": {
|
|
848
|
-
"original": "string",
|
|
849
|
-
"resolved": "string",
|
|
850
|
-
"references": {}
|
|
851
|
-
},
|
|
852
|
-
"required": false,
|
|
853
|
-
"optional": true,
|
|
854
|
-
"docs": {
|
|
855
|
-
"tags": [],
|
|
856
|
-
"text": "Custom error message displayed when date is not valid."
|
|
857
|
-
},
|
|
858
|
-
"getter": false,
|
|
859
|
-
"setter": false,
|
|
860
|
-
"reflect": false
|
|
861
|
-
},
|
|
862
|
-
"min": {
|
|
863
|
-
"type": "string",
|
|
864
|
-
"attribute": "min",
|
|
865
|
-
"mutable": false,
|
|
866
|
-
"complexType": {
|
|
867
|
-
"original": "string",
|
|
868
|
-
"resolved": "string",
|
|
869
|
-
"references": {}
|
|
870
|
-
},
|
|
871
|
-
"required": false,
|
|
872
|
-
"optional": true,
|
|
873
|
-
"docs": {
|
|
874
|
-
"tags": [],
|
|
875
|
-
"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."
|
|
876
|
-
},
|
|
877
|
-
"getter": false,
|
|
878
|
-
"setter": false,
|
|
879
|
-
"reflect": true
|
|
880
|
-
},
|
|
881
|
-
"max": {
|
|
882
|
-
"type": "string",
|
|
883
|
-
"attribute": "max",
|
|
884
|
-
"mutable": false,
|
|
885
|
-
"complexType": {
|
|
886
|
-
"original": "string",
|
|
887
|
-
"resolved": "string",
|
|
888
|
-
"references": {}
|
|
889
|
-
},
|
|
890
|
-
"required": false,
|
|
891
|
-
"optional": true,
|
|
892
|
-
"docs": {
|
|
893
|
-
"tags": [],
|
|
894
|
-
"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."
|
|
895
|
-
},
|
|
896
|
-
"getter": false,
|
|
897
|
-
"setter": false,
|
|
898
|
-
"reflect": true
|
|
899
|
-
},
|
|
900
|
-
"rangeUnderflowMessage": {
|
|
901
|
-
"type": "string",
|
|
902
|
-
"attribute": "range-underflow-message",
|
|
903
|
-
"mutable": false,
|
|
904
|
-
"complexType": {
|
|
905
|
-
"original": "string",
|
|
906
|
-
"resolved": "string",
|
|
907
|
-
"references": {}
|
|
908
|
-
},
|
|
909
|
-
"required": false,
|
|
910
|
-
"optional": true,
|
|
911
|
-
"docs": {
|
|
912
|
-
"tags": [],
|
|
913
|
-
"text": "Custom error message displayed when date is before the minimum date."
|
|
914
|
-
},
|
|
915
|
-
"getter": false,
|
|
916
|
-
"setter": false,
|
|
917
|
-
"reflect": false
|
|
918
|
-
},
|
|
919
|
-
"rangeOverflowMessage": {
|
|
920
|
-
"type": "string",
|
|
921
|
-
"attribute": "range-overflow-message",
|
|
922
|
-
"mutable": false,
|
|
923
|
-
"complexType": {
|
|
924
|
-
"original": "string",
|
|
925
|
-
"resolved": "string",
|
|
926
|
-
"references": {}
|
|
927
|
-
},
|
|
928
|
-
"required": false,
|
|
929
|
-
"optional": true,
|
|
930
|
-
"docs": {
|
|
931
|
-
"tags": [],
|
|
932
|
-
"text": "Custom error message displayed when date is after the maximum date."
|
|
933
|
-
},
|
|
934
|
-
"getter": false,
|
|
935
|
-
"setter": false,
|
|
936
|
-
"reflect": false
|
|
937
|
-
},
|
|
938
|
-
"customErrorMessage": {
|
|
939
|
-
"type": "string",
|
|
940
|
-
"attribute": "custom-error-message",
|
|
941
|
-
"mutable": false,
|
|
942
|
-
"complexType": {
|
|
943
|
-
"original": "string",
|
|
944
|
-
"resolved": "string",
|
|
945
|
-
"references": {}
|
|
946
|
-
},
|
|
947
|
-
"required": false,
|
|
948
|
-
"optional": true,
|
|
949
|
-
"docs": {
|
|
950
|
-
"tags": [],
|
|
951
|
-
"text": "Custom error message displayed for any validation failures in the input."
|
|
952
|
-
},
|
|
953
|
-
"getter": false,
|
|
954
|
-
"setter": false,
|
|
955
|
-
"reflect": false
|
|
956
|
-
}
|
|
957
|
-
};
|
|
958
|
-
}
|
|
959
|
-
static get states() {
|
|
960
|
-
return {
|
|
961
|
-
"currentValues": {},
|
|
962
|
-
"delimiter": {},
|
|
963
|
-
"validityState": {},
|
|
964
|
-
"validityMessage": {},
|
|
965
|
-
"touched": {},
|
|
966
|
-
"dirty": {}
|
|
967
|
-
};
|
|
968
|
-
}
|
|
969
|
-
static get events() {
|
|
970
|
-
return [{
|
|
971
|
-
"method": "rValidate",
|
|
972
|
-
"name": "rValidate",
|
|
973
|
-
"bubbles": true,
|
|
974
|
-
"cancelable": true,
|
|
975
|
-
"composed": true,
|
|
976
|
-
"docs": {
|
|
977
|
-
"tags": [],
|
|
978
|
-
"text": "Emits event after each validation"
|
|
979
|
-
},
|
|
980
|
-
"complexType": {
|
|
981
|
-
"original": "{\n state: string,\n message: string\n }",
|
|
982
|
-
"resolved": "{ state: string; message: string; }",
|
|
983
|
-
"references": {}
|
|
984
|
-
}
|
|
985
|
-
}, {
|
|
986
|
-
"method": "rInput",
|
|
987
|
-
"name": "rInput",
|
|
988
|
-
"bubbles": true,
|
|
989
|
-
"cancelable": true,
|
|
990
|
-
"composed": true,
|
|
991
|
-
"docs": {
|
|
992
|
-
"tags": [],
|
|
993
|
-
"text": "Emits 'rInput' event when value of the component is changing"
|
|
994
|
-
},
|
|
995
|
-
"complexType": {
|
|
996
|
-
"original": "{\n element: HTMLRInputDateElement,\n value: any\n }",
|
|
997
|
-
"resolved": "{ element: HTMLRInputDateElement; value: any; }",
|
|
998
|
-
"references": {
|
|
999
|
-
"HTMLRInputDateElement": {
|
|
1000
|
-
"location": "global",
|
|
1001
|
-
"id": "global::HTMLRInputDateElement"
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
}, {
|
|
1006
|
-
"method": "rChange",
|
|
1007
|
-
"name": "rChange",
|
|
1008
|
-
"bubbles": true,
|
|
1009
|
-
"cancelable": true,
|
|
1010
|
-
"composed": true,
|
|
1011
|
-
"docs": {
|
|
1012
|
-
"tags": [],
|
|
1013
|
-
"text": "Emits 'rChange' event when value of the component has been changed"
|
|
1014
|
-
},
|
|
1015
|
-
"complexType": {
|
|
1016
|
-
"original": "{\n element: HTMLRInputDateElement,\n value: any\n }",
|
|
1017
|
-
"resolved": "{ element: HTMLRInputDateElement; value: any; }",
|
|
1018
|
-
"references": {
|
|
1019
|
-
"HTMLRInputDateElement": {
|
|
1020
|
-
"location": "global",
|
|
1021
|
-
"id": "global::HTMLRInputDateElement"
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
}, {
|
|
1026
|
-
"method": "rReset",
|
|
1027
|
-
"name": "rReset",
|
|
1028
|
-
"bubbles": true,
|
|
1029
|
-
"cancelable": true,
|
|
1030
|
-
"composed": true,
|
|
1031
|
-
"docs": {
|
|
1032
|
-
"tags": [],
|
|
1033
|
-
"text": "Emits 'rReset' event when form containing the component was reset"
|
|
1034
|
-
},
|
|
1035
|
-
"complexType": {
|
|
1036
|
-
"original": "{\n element: HTMLRInputDateElement,\n value: any\n }",
|
|
1037
|
-
"resolved": "{ element: HTMLRInputDateElement; value: any; }",
|
|
1038
|
-
"references": {
|
|
1039
|
-
"HTMLRInputDateElement": {
|
|
1040
|
-
"location": "global",
|
|
1041
|
-
"id": "global::HTMLRInputDateElement"
|
|
1042
|
-
}
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
}];
|
|
1046
|
-
}
|
|
1047
|
-
static get methods() {
|
|
1048
|
-
return {
|
|
1049
|
-
"getValue": {
|
|
1050
|
-
"complexType": {
|
|
1051
|
-
"signature": "() => Promise<string>",
|
|
1052
|
-
"parameters": [],
|
|
1053
|
-
"references": {
|
|
1054
|
-
"Promise": {
|
|
1055
|
-
"location": "global",
|
|
1056
|
-
"id": "global::Promise"
|
|
1057
|
-
}
|
|
1058
|
-
},
|
|
1059
|
-
"return": "Promise<string>"
|
|
1060
|
-
},
|
|
1061
|
-
"docs": {
|
|
1062
|
-
"text": "Get the date value",
|
|
1063
|
-
"tags": []
|
|
1064
|
-
}
|
|
1065
|
-
},
|
|
1066
|
-
"setValue": {
|
|
1067
|
-
"complexType": {
|
|
1068
|
-
"signature": "(value: string) => Promise<void>",
|
|
1069
|
-
"parameters": [{
|
|
1070
|
-
"name": "value",
|
|
1071
|
-
"type": "string",
|
|
1072
|
-
"docs": ""
|
|
1073
|
-
}],
|
|
1074
|
-
"references": {
|
|
1075
|
-
"Promise": {
|
|
1076
|
-
"location": "global",
|
|
1077
|
-
"id": "global::Promise"
|
|
1078
|
-
}
|
|
1079
|
-
},
|
|
1080
|
-
"return": "Promise<void>"
|
|
1081
|
-
},
|
|
1082
|
-
"docs": {
|
|
1083
|
-
"text": "Sets the date value",
|
|
1084
|
-
"tags": []
|
|
1085
|
-
}
|
|
1086
|
-
},
|
|
1087
|
-
"getFormat": {
|
|
1088
|
-
"complexType": {
|
|
1089
|
-
"signature": "() => Promise<string>",
|
|
1090
|
-
"parameters": [],
|
|
1091
|
-
"references": {
|
|
1092
|
-
"Promise": {
|
|
1093
|
-
"location": "global",
|
|
1094
|
-
"id": "global::Promise"
|
|
1095
|
-
}
|
|
1096
|
-
},
|
|
1097
|
-
"return": "Promise<string>"
|
|
1098
|
-
},
|
|
1099
|
-
"docs": {
|
|
1100
|
-
"text": "Gets the current date format",
|
|
1101
|
-
"tags": []
|
|
1102
|
-
}
|
|
1103
|
-
},
|
|
1104
|
-
"setFormat": {
|
|
1105
|
-
"complexType": {
|
|
1106
|
-
"signature": "(format: string) => Promise<void>",
|
|
1107
|
-
"parameters": [{
|
|
1108
|
-
"name": "format",
|
|
1109
|
-
"type": "string",
|
|
1110
|
-
"docs": ""
|
|
1111
|
-
}],
|
|
1112
|
-
"references": {
|
|
1113
|
-
"Promise": {
|
|
1114
|
-
"location": "global",
|
|
1115
|
-
"id": "global::Promise"
|
|
1116
|
-
}
|
|
1117
|
-
},
|
|
1118
|
-
"return": "Promise<void>"
|
|
1119
|
-
},
|
|
1120
|
-
"docs": {
|
|
1121
|
-
"text": "Sets the date format",
|
|
1122
|
-
"tags": []
|
|
1123
|
-
}
|
|
1124
|
-
},
|
|
1125
|
-
"isTouched": {
|
|
1126
|
-
"complexType": {
|
|
1127
|
-
"signature": "() => Promise<boolean>",
|
|
1128
|
-
"parameters": [],
|
|
1129
|
-
"references": {
|
|
1130
|
-
"Promise": {
|
|
1131
|
-
"location": "global",
|
|
1132
|
-
"id": "global::Promise"
|
|
1133
|
-
}
|
|
1134
|
-
},
|
|
1135
|
-
"return": "Promise<boolean>"
|
|
1136
|
-
},
|
|
1137
|
-
"docs": {
|
|
1138
|
-
"text": "Gets the touched state (whether user has interacted with the input)",
|
|
1139
|
-
"tags": []
|
|
1140
|
-
}
|
|
1141
|
-
},
|
|
1142
|
-
"isDirty": {
|
|
1143
|
-
"complexType": {
|
|
1144
|
-
"signature": "() => Promise<boolean>",
|
|
1145
|
-
"parameters": [],
|
|
1146
|
-
"references": {
|
|
1147
|
-
"Promise": {
|
|
1148
|
-
"location": "global",
|
|
1149
|
-
"id": "global::Promise"
|
|
1150
|
-
}
|
|
1151
|
-
},
|
|
1152
|
-
"return": "Promise<boolean>"
|
|
1153
|
-
},
|
|
1154
|
-
"docs": {
|
|
1155
|
-
"text": "Gets the dirty state (whether value has been changed by user)",
|
|
1156
|
-
"tags": []
|
|
1157
|
-
}
|
|
1158
|
-
},
|
|
1159
|
-
"markAsPristine": {
|
|
1160
|
-
"complexType": {
|
|
1161
|
-
"signature": "() => Promise<void>",
|
|
1162
|
-
"parameters": [],
|
|
1163
|
-
"references": {
|
|
1164
|
-
"Promise": {
|
|
1165
|
-
"location": "global",
|
|
1166
|
-
"id": "global::Promise"
|
|
1167
|
-
}
|
|
1168
|
-
},
|
|
1169
|
-
"return": "Promise<void>"
|
|
1170
|
-
},
|
|
1171
|
-
"docs": {
|
|
1172
|
-
"text": "Resets touched and dirty states to pristine (untouched/clean)",
|
|
1173
|
-
"tags": []
|
|
1174
|
-
}
|
|
1175
|
-
},
|
|
1176
|
-
"reset": {
|
|
1177
|
-
"complexType": {
|
|
1178
|
-
"signature": "() => Promise<void>",
|
|
1179
|
-
"parameters": [],
|
|
1180
|
-
"references": {
|
|
1181
|
-
"Promise": {
|
|
1182
|
-
"location": "global",
|
|
1183
|
-
"id": "global::Promise"
|
|
1184
|
-
}
|
|
1185
|
-
},
|
|
1186
|
-
"return": "Promise<void>"
|
|
1187
|
-
},
|
|
1188
|
-
"docs": {
|
|
1189
|
-
"text": "Resets the component by clearing all input values and focusing the first input.",
|
|
1190
|
-
"tags": [{
|
|
1191
|
-
"name": "returns",
|
|
1192
|
-
"text": "Promise that resolves when reset is complete"
|
|
1193
|
-
}]
|
|
1194
|
-
}
|
|
1195
|
-
},
|
|
1196
|
-
"checkValidity": {
|
|
1197
|
-
"complexType": {
|
|
1198
|
-
"signature": "() => Promise<boolean>",
|
|
1199
|
-
"parameters": [],
|
|
1200
|
-
"references": {
|
|
1201
|
-
"Promise": {
|
|
1202
|
-
"location": "global",
|
|
1203
|
-
"id": "global::Promise"
|
|
1204
|
-
}
|
|
1205
|
-
},
|
|
1206
|
-
"return": "Promise<boolean>"
|
|
1207
|
-
},
|
|
1208
|
-
"docs": {
|
|
1209
|
-
"text": "Validates the input date without triggering UI and returns a boolean indicating its validity.",
|
|
1210
|
-
"tags": [{
|
|
1211
|
-
"name": "returns",
|
|
1212
|
-
"text": "A boolean indicating whether the input date is valid."
|
|
1213
|
-
}]
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1217
|
-
}
|
|
1218
|
-
static get elementRef() { return "host"; }
|
|
1219
|
-
static get watchers() {
|
|
1220
|
-
return [{
|
|
1221
|
-
"propName": "format",
|
|
1222
|
-
"methodName": "handleFormatChange"
|
|
1223
|
-
}, {
|
|
1224
|
-
"propName": "value",
|
|
1225
|
-
"methodName": "handleValueChange"
|
|
1226
|
-
}];
|
|
1227
|
-
}
|
|
1228
|
-
}
|