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