@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 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as r,H as n,g as e}from"./p-CTxpqopm.js";import{a}from"./p-DvLT8-y3.js";const s=class{constructor(r){t(this,r),this.rValidate=i(this,"rValidate"),this.rInput=i(this,"rInput"),this.rBlur=i(this,"rBlur"),this.rFocus=i(this,"rFocus"),this.rChange=i(this,"rChange"),this.rReset=i(this,"rReset"),this.type="text",this.value="",this.validityMarker=!0,this.validityState="",this.validityMessage="",this.touched=!1,this.dirty=!1,this.isResetting=!1,this.nativeElement=null,this.uniqueId=`r-input-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g,""),this.initial={},this.getValidityStateData=t=>{let i="",r="";if("email"===this.type&&this.pattern)return t.setCustomValidity(""),i=this.validEmailPattern?"valid":"patternMismatch",r=this.validEmailPattern?"":this.patternMismatchMessage,{validityState:i,validityMessage:r};for(const n in t.validity)if(t.validity[n]){i=n;const e=this[n+"Message"];return e?(r=e,{validityState:i,validityMessage:r}):(r=t.validationMessage,{validityState:i,validityMessage:r})}return{validityState:"valid",validityMessage:""}},this.validateFormElement=t=>{if(null===t)return;if(this.isNoValidate)return;if(this.error)return;t.checkValidity&&t.checkValidity();const{validityState:i,validityMessage:r}=this.getValidityStateData(t);this.validityState=i,this.validityMessage=r;const n="valid"===this.validityState;this.valid=n,this.invalid=!n,this.rValidate.emit({state:this.validityState,message:this.validityMessage})},this.onInput=t=>{if(this.readonly)return;this.value=t.target.value,this.touched=!0,this.dirty=!0;const{host:i,value:r}=this;this.rInput.emit({element:i,value:r})},this.onChange=t=>{if(this.readonly)return;this.value=t.target.value,this.touched=!0,this.dirty=!0;const{host:i,value:r}=this;this.rChange.emit({element:i,value:r})},this.onBlur=()=>{this.host.classList.remove("focused"),this.touched=!0,this.validateFormElement(this.nativeElement),this.rBlur.emit()},this.onFocus=()=>{this.host.classList.add("focused"),this.rFocus.emit()},this.contributeToFormData=t=>{a(this.nativeElement||this.host,t.formData)},this.onResetForm=()=>{if(this.readonly)return;this.isResetting=!0,this.markAsPristine(),this.validityState=null,this.validityMessage=null,this.nativeElement&&(this.nativeElement.value=this.initial.value||""),this.value=this.initial.value,this.invalid=this.initial.invalid,this.valid=!this.invalid,this.isResetting=!1;const{host:t,value:i}=this;this.rReset.emit({element:t,value:i})},this.onSubmitForm=t=>{this.isNoValidate||(this.touched=!0,this.validateFormElement(this.nativeElement),this.invalid&&(t.preventDefault(),t.stopPropagation()))},this.handleKeyup=t=>{var i,r;if(this.validateFormElement(this.nativeElement),(!this.invalid||this.isNoValidate)&&"Enter"===t.code){const t=this.host.querySelector('[type="submit"]')||(null===(i=this.parentFormEl)||void 0===i?void 0:i.querySelector('[type="submit"]'));t&&"triggerClick"in t?null==t||t.triggerClick():null===(r=this.parentFormEl)||void 0===r||r.requestSubmit()}},this.handleClick=()=>{this.host.shadowRoot.querySelector("input").focus()}}async setFocus(){var t;null===(t=this.nativeElement)||void 0===t||t.focus()}async setBlur(){var t;null===(t=this.nativeElement)||void 0===t||t.blur()}async select(){var t;null===(t=this.nativeElement)||void 0===t||t.select()}async getSelectionStart(){var t,i;return null!==(i=null===(t=this.nativeElement)||void 0===t?void 0:t.selectionStart)&&void 0!==i?i:null}async getSelectionEnd(){var t,i;return null!==(i=null===(t=this.nativeElement)||void 0===t?void 0:t.selectionEnd)&&void 0!==i?i:null}async setSelectionRange(t,i,r="none"){this.nativeElement&&this.nativeElement.setSelectionRange(t,i,r)}async getValue(){var t;return(null===(t=this.nativeElement)||void 0===t?void 0:t.value)||""}async setValue(t){this.nativeElement&&(this.nativeElement.value=t),this.value=t,this.validateFormElement(this.nativeElement)}async checkValidity(){const{validityState:t}=this.getValidityStateData(this.nativeElement);return"valid"===t}async isTouched(){return this.touched}async isDirty(){return this.dirty}async markAsPristine(){this.touched=!1,this.dirty=!1}get parentFormEl(){return this.host.closest("form")||document.querySelector(`#${this.form}`)||null}get ariaDescribedBy(){const t=`${this.uniqueId}-message`;return this.hint?`${this.uniqueId}-hint ${t}`:t}get hasError(){var t;return this.invalid&&!!(null===(t=this.error)||void 0===t?void 0:t.length)}get hasValidationError(){return("valid"!==this.validityState||this.invalid)&&!(!this.validityMessage&&!this.customErrorMessage)}get hasMessage(){return this.hasError||this.hasValidationError}get isNoValidate(){var t;return(null===(t=this.parentFormEl)||void 0===t?void 0:t.hasAttribute("novalidate"))||this.novalidate||!1}get hasTrailingSlot(){return!!this.host.querySelector('[slot="trailing"]')}get validEmailPattern(){return new RegExp(this.pattern,"u").test(this.value)}componentWillLoad(){this.initial.value=this.value,this.initial.invalid=this.invalid}connectFormEventListeners(){var t,i,r;null===(t=this.parentFormEl)||void 0===t||t.addEventListener("formdata",this.contributeToFormData),null===(i=this.parentFormEl)||void 0===i||i.addEventListener("submit",this.onSubmitForm,{capture:!0}),null===(r=this.parentFormEl)||void 0===r||r.addEventListener("reset",this.onResetForm)}disconnectFormEventListeners(){var t,i,r;null===(t=this.parentFormEl)||void 0===t||t.removeEventListener("formdata",this.contributeToFormData),null===(i=this.parentFormEl)||void 0===i||i.removeEventListener("submit",this.onSubmitForm),null===(r=this.parentFormEl)||void 0===r||r.removeEventListener("reset",this.onResetForm)}connectedCallback(){this.connectFormEventListeners(),this.autofocus&&queueMicrotask((()=>{var t;return null===(t=this.host.querySelector("input[autofocus]"))||void 0===t?void 0:t.focus({preventScroll:!0})}))}disconnectedCallback(){this.disconnectFormEventListeners()}handleValueChange(){this.isResetting||this.validateFormElement(this.nativeElement)}handleTypeChange(){this.setValue(this.nativeElement.value)}render(){const{name:t,placeholder:i,required:e,fieldIndicator:a,maxlength:s,minlength:o,min:l,max:u,value:p,disabled:h,form:c,pattern:d,invalid:v,valid:g,hint:m,label:b,internal:f,uniqueId:y,autocomplete:x,readonly:k,autofocus:w,passwordrules:C,enterkeyhint:D,spellcheck:F,autocapitalize:E,validityMarker:M}=this,$={disabled:h,readonly:k,required:e,label:b,name:t,placeholder:i,maxlength:s,minlength:o,min:l,max:u,form:c,pattern:d,autocomplete:x,autofocus:w||null,passwordrules:C,enterkeyhint:D,autocapitalize:E,spellcheck:F,inputmode:this.inputmode||null,id:y,"data-value":p,"aria-placeholder":i,"aria-invalid":`${v||!1}`,"aria-required":`${e||!1}`,"aria-describedby":this.ariaDescribedBy},z=b?{id:`${y}-label`,fieldIndicator:a}:{},S=Object.entries(this).reduce(((t,[i,r])=>("function"==typeof r&&i.startsWith("on")&&(t[i]=r),t)),{});return r(n,{onClick:this.handleClick,onKeyup:this.handleKeyup,"data-touched":`${this.touched}`,"data-dirty":`${this.dirty}`},r("div",{class:f?"visually-hidden":"r-input--label-container"},r("label",{htmlFor:y},b?r("r-label",Object.assign({class:"r-input--label"},z),b):r("slot",{name:"label"})),r("slot",{name:"popover"})),m&&r("r-hint",{id:`${y}-hint`,role:"note"},m),r("div",{class:"r-input--container"},r("slot",{name:"leading"}),r("input",Object.assign({class:"r-input--input",type:this.type},$,S,{ref:t=>this.nativeElement=t,value:this.value,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus})),r("div",{class:"r-input--trailing"},this.readonly&&r("r-icon",{class:"r-input--readonly-icon",name:"pen-disabled",size:"s"}),(()=>{const t=!!M&&!!v;return M&&g&&p||t?r("r-icon",{class:"r-input--validation-icon","aria-hidden":"true",size:"s",name:t?"circled-exclamation-mark":"circled-check",color:t?"--r-status-error-regular":"--r-status-success-regular"}):null})(),this.hasTrailingSlot&&r("slot",{name:"trailing"}))),r("div",{id:`${y}-message`,"aria-live":f?null:"polite",class:f?"visually-hidden":"r-input--message"},r("slot",{name:"message"},this.hasMessage&&r("r-hint",{variant:g?"success":"error"},this.hasError&&this.error,this.hasValidationError&&(this.customErrorMessage||this.validityMessage)))))}get host(){return e(this)}static get watchers(){return{value:["handleValueChange"],type:["handleTypeChange"]}}};s.style=':host{display:inline-flex;flex-direction:column;vertical-align:top;--r-label--margin-bottom:0}:host slot{display:contents}:host([readonly]:not([readonly=false])){--r-input--container--background-color:var(--r-background-soft, #f3f1f0);--r-input--container--border-color:transparent transparent var(--r-border-soft, #686868) transparent;--r-input--container--cursor:text}:host(:hover:not([disabled]:not([disabled=false])):not([readonly]:not([readonly=false]))){--r-input--container--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04))}:host(.focused){--r-input--container--box-shadow:0 0 0 6px var(--r-border-focused-outlined);--r-input--container--outline:2px solid var(--r-border-focused);--r-input--container--outline-offset:2px}:host(:active:not([disabled]:not([disabled=false])):not([readonly]:not([readonly=false]))){--r-input--container--background-color:var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12))}:host([expanded]:not([expanded=false])),:host([full-width]:not([full-width=false])){display:block}:host([disabled]:not([disabled=false])){--r-input--container--opacity:0.4;--r-input--container--cursor:not-allowed;--r-input--container--pointer-events:none;--r-input--container--background-color:transparent}:host([invalid]:not([invalid=false])){--r-input--container--border-color:var(--r-status-error-regular, #b00c15);--r-input--container--background-color:var(--r-status-error-soft, #fef6f6)}.r-input{display:var(--r-input--display, flex);flex:var(--r-input--flex, 1);flex-direction:var(--r-input--flex-direction, column);width:var(--r-input--width, auto);font-family:var(--r-input--font-family, system-ui);position:var(--r-input--position, relative);border-radius:var(--r-input--border-radius, 0);cursor:var(--r-input--cursor, inherit)}.r-input--label-container{display:var(--r-input--label-container--display, flex);gap:var(--r-input--label-container--gap, var(--r-spacing-100, 1rem));align-items:var(--r-input--label-container--align-items, center);justify-content:var(--r-input--label-container--align-items, space-between)}.r-input--label-container ::slotted([slot=popover]){display:var(--r-input--popover--display, inline-flex);height:var(--r-input--popover--height, var(--r-spacing-150, 1.5));align-items:var(--r-input--popover--align-items, center);justify-content:var(--r-input--popover--justify-content, center);margin-right:var(--r-input--popover--margin-right, -0.25rem);--r-popover--trigger--min-width:var(--r-input--popover-trigger--min-width, var(--r-spacing-150, 1.5));--r-popover--trigger--min-height:var(--r-input--popover--trigger--min-height, var(--r-spacing-150, 1.5))}.r-input--label{cursor:var(--r-input--label--cursor, inherit)}.r-input--input{font-family:var(--r-input--input--font-family, system-ui);font-size:var(--r-input--input--font-size, 1em);width:var(--r-input--input--width, 100%);max-width:var(--r-input--input--max-width, 100%);height:var(--r-input--input--height, var(--r-spacing-275, 2.75rem));border-radius:var(--r-input--input--border-radius, 0);border:var(--r-input--input--border, none);color:var(--r-input--input--color, var(--r-text-regular, #282828));background-color:var(--r-input--input--background-color, none);appearance:var(--r-input--input--appearance, none);box-sizing:var(--r-input--input--box-sizing, border-box);outline:var(--r-input--input--outline, none);cursor:var(--r-input--input--cursor, inherit);pointer-events:var(--r-input--input--pointer-events, auto)}.r-input--input:autofill,.r-input--input:-webkit-autofill{-webkit-background-clip:text !important}.r-input--input::-ms-reveal{display:var(--r-input--input--ms-reveal--display, none)}.r-input--input::placeholder{color:var(--r-input--input--placeholder--color, var(--r-text-soft, #686868))}.r-input--input[type=search]::-webkit-search-cancel-button{cursor:var(--r-input--input-clear--cursor, pointer);display:var(--r-input--input-clear--display, block);height:var(--r-input--input-clear--height, 0.875rem);width:var(--r-input--input-clear--width, 0.875rem);appearance:var(--r-input--input-clear--appearance, none);background-repeat:var(--r-input--input-clear--background-repeat, no-repeat);background-image:var(--r-input--input-clear--background-image, url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20viewBox%3D%220.75%200.75%2022.5%2022.5%22%3E%3Cpath%20id%3D%22Vector%202269%22%20stroke%3D%22currentColor%22%20d%3D%22M1.5%201.5L22.5%2022.5%22%2F%3E%3Cpath%20id%3D%22Vector%202270%22%20stroke%3D%22currentColor%22%20d%3D%22M22.5%201.5L1.5%2022.5%22%2F%3E%3C%2Fsvg%3E"));background-size:var(--r-input--input-clear--background-size, contain);margin-inline:var(--r-input--input-clear--margin-inline, 0);color:currentColor}.r-input--button{position:var(--r-input--icon-button--position, absolute);width:var(--r-input--icon-button--width, calc(1.125em + var(--r-input--icon--width)));height:var(--r-input--icon-button--height, 100%);top:var(--r-input--icon-button--top, 0);right:var(--r-input--icon-button--right, auto);bottom:var(--r-input--icon-button--bottom, auto);left:var(--r-input--icon-button--left, 0);cursor:var(--r-input--icon-button--cursor, inherit)}.r-input--container{position:var(--r-input--container--position, relative);display:var(--r-input--container--display, flex);align-items:var(--r-input--container--align-items, center);gap:var(--r-input--container--gap, 0.625rem);height:var(--r-input--container--height, var(--r-spacing-275, 2.75rem));background-color:var(--r-input--container--background-color, var(--r-background-softest, #fff));border-width:var(--r-input--container--border-width, 1px);border-style:var(--r-input--container--border-style, solid);border-color:var(--r-input--container--border-color, var(--r-border-soft, #686868));box-sizing:var(--r-input--container--box-sizing, border-box);box-shadow:var(--r-input--container--box-shadow, none);outline:var(--r-input--container--outline, none);outline-offset:var(--r-input--container--outline-offset, 0);padding-top:var(--r-input--container--padding-top, 0.6875rem);padding-right:var(--r-input--container--padding-right, var(--r-spacing-075, 0.75rem));padding-bottom:var(--r-input--container--padding-bottom, 0.6875rem);padding-left:var(--r-input--container--padding-left, var(--r-spacing-0275, 0.75rem));opacity:var(--r-input--container--opacity, 1);pointer-events:var(--r-input--container--pointer-events, auto);line-height:var(--r-input--container--line-height, 1);cursor:var(--r-input--container--cursor, inherit);margin-top:var(--r-input--container--margin-top, var(--r-spacing-025, 0.25rem))}.r-input--container slot[name=leading]{color:var(--r-input--container-leading--color, var(--r-icon-soft, #686868))}.r-input--message:has(r-hint),.r-input--message ::slotted([slot=message]){margin-top:var(--r-input--message--margin-top, var(--r-spacing-025, 0.25rem))}.r-input--trailing{display:var(--r-input--trailing--display, flex);margin-left:var(--r-input--trailing--margin-left, auto);align-items:var(--r-input--trailing--align-items, center);gap:var(--r-input--trailing--gap, 0.625rem)}.r-input--trailing:empty{--r-input--trailing--display:none}.r-input--validation-icon{display:var(--r-input--validation-icon--display, inline-block)}.r-input--readonly-icon{color:var(--r-input--readonly-icon--color, var(--r-icon-soft, #686868))}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}';export{s as r_input}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as r,H as s,g as i}from"./p-CTxpqopm.js";const a=class{constructor(s){t(this,s),this.variant="expanded",this.border="standard",this.scrollable=!1,this.firstItemVisible=!0,this.lastItemVisible=!1,this.initiatizeResizeObserver=()=>{this.containerRef&&!this.resizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.updateScrollState())),this.resizeObserver.observe(this.containerRef))},this.updateScrollState=()=>{if(!this.containerRef)return;const{scrollWidth:t,clientWidth:r}=this.containerRef,s=this.containerRef.getBoundingClientRect(),i=Array.from(this.tabElements);if(this.scrollable=t>r,!this.scrollable||0===i.length)return this.firstItemVisible=!0,void(this.lastItemVisible=!0);const a=i[0].getBoundingClientRect();this.firstItemVisible=a.left>=s.left-1;const o=i[i.length-1].getBoundingClientRect();this.lastItemVisible=o.right<=s.right+1},this.getVisibleTabOnLeft=()=>{if(!this.containerRef)return null;const t=this.containerRef.getBoundingClientRect(),r=Array.from(this.tabElements);for(const s of r)if(s.getBoundingClientRect().right>t.left+1)return s},this.getVisibleTabOnRight=()=>{if(!this.containerRef)return null;const t=this.containerRef.getBoundingClientRect(),r=Array.from(this.tabElements);for(let s=r.length-1;s>=0;s--){const i=r[s];if(i.getBoundingClientRect().left<t.right-1)return i}return null},this.scrollLeft=()=>{if(!this.containerRef)return;const t=this.getVisibleTabOnLeft();if(!t)return;const r=Array.from(this.tabElements),s=r.indexOf(t),i=s>0?r[s-1]:null;if(!i)return;const a=this.containerRef.getBoundingClientRect().left,o=i.getBoundingClientRect().left;this.containerRef.scrollBy({left:o-a,behavior:"smooth"})},this.scrollRight=()=>{if(!this.containerRef)return;const t=this.getVisibleTabOnRight();if(!t)return;const r=Array.from(this.tabElements),s=r.indexOf(t),i=s<r.length-1?r[s+1]:null;if(!i)return;const a=this.containerRef.getBoundingClientRect().right,o=i.getBoundingClientRect().right;this.containerRef.scrollBy({left:o-a,behavior:"smooth"})},this.scrollToActiveTab=t=>{if(!this.containerRef||!this.scrollable)return;const r=t||this.host.querySelector("r-tab[active]");if(!r)return;const s=this.containerRef.getBoundingClientRect(),i=r.getBoundingClientRect();i.left>=s.left&&i.right<=s.right||this.containerRef.scrollBy({left:i.left-s.left-s.width/2+i.width/2,behavior:"smooth"})},this.renderScrollButton=(t,s,i,a)=>{const o=r("r-icon-button",{onRClick:i,disabled:s,name:"left"===t?"angle-left":"angle-right",size:"s",rTabindex:-1,class:"r-tabs-list--scroll-button"});return a?r("r-tooltip",{text:a,position:"top"},o):o}}tabChangeAction(t){this.scrollToActiveTab(t.target)}get tabElements(){return this.host.querySelectorAll("r-tab")}componentDidLoad(){this.updateScrollState(),this.initiatizeResizeObserver(),this.scrollToActiveTab()}disconnectedCallback(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}render(){return r(s,{key:"19666af123fe058aa3e654c153ad84ec16861a59",scrollable:`${this.scrollable}`,role:"tablist"},r("div",{key:"5de7241f57b419133f81ae565bf517873a8e9268",class:"r-tabs-list"},this.scrollable&&r("div",{key:"ff5edcbb61dd4ba9be3e0baf22822edbcbf8ec6d","aria-hidden":"true",class:"r-tabs-list--scroll-button-container"},this.renderScrollButton("left",this.firstItemVisible,this.scrollLeft,this.scrollLeftTooltip),!this.firstItemVisible&&r("div",{key:"76fbeab529e2a7869ac7e946b1c0863969114888",class:"r-tabs-list--scroll-indicator"})),r("div",{key:"d520b386242700c000daf85eba8d50fb014fc616",class:"r-tabs-list--tabs-container",ref:t=>this.containerRef=t,onScroll:this.updateScrollState},r("slot",{key:"f8534275445ed4d32154519f0a8f592ee7ea3353"})),this.scrollable&&r("div",{key:"8ca03d4864eba5af975de4dd6dc6fd3c3e8be108","aria-hidden":"true",class:"r-tabs-list--scroll-button-container"},!this.lastItemVisible&&r("div",{key:"1a0534b79bbe3273a73f48530a3a17ccac0d7826",class:"r-tabs-list--scroll-indicator"}),this.renderScrollButton("right",this.lastItemVisible,this.scrollRight,this.scrollRightTooltip))))}get host(){return i(this)}};a.style=":host{display:block}:host([variant=compact]){--r-tabs-list--r-tab--margin-right:0;--r-tabs-list--r-tab--flex:1;--r-tab--width:100%}:host([scrollable=true]){--r-tabs-list--tabs-container--margin:-6px 4px}:host([border=branded]){--r-tab--marker--background-color:var(--r-border-brand-vanguard, #527a42)}.r-tabs-list{display:var(--r-tabs-list--display, flex);margin-bottom:var(--r-tabs-list--margin-bottom, var(--r-spacing-250, 2.5rem));border-bottom-width:var(--r-tabs-list--border-bottom-width, 1px);border-bottom-style:var(--r-tabs-list--border-bottom-style, solid);border-bottom-color:var(--r-tabs-list--border-bottom-color, var(--r-border-softer, #c9c9c9))}.r-tabs-list--scroll-button{--r-icon-button--border-radius:var(--r-tabs-list--border-radius, 0);--r-icon-button--width:var(--r-tabs-list--scroll-button--width, var(--r-spacing-200, 2rem));--r-icon-button--height:var(--r-tabs-list--scroll-button--height, var(--r-spacing-200, 2rem))}.r-tabs-list--tabs-container{display:var(--r-tabs-list--tabs-container--display, flex);flex:var(--r-tabs-list--tabs-container--flex, 1);overflow:var(--r-tabs-list--tabs-container--overflow, scroll hidden);scroll-snap-type:var(--r-tabs-list--tabs-container--scroll-snap-type, x proximity);scrollbar-width:var(--r-tabs-list--tabs-container--scrollbar-width, none);margin:var(--r-tabs-list--tabs-container--margin, -6px);padding:var(--r-tabs-list--tabs-container--padding, 6px)}.r-tabs-list--scroll-button-container{display:var(--r-tabs-list--scroll-button-container--display, flex);align-items:var(--r-tabs-list--scroll-button-container--align-items, start);gap:var(--r-tabs-list--scroll-button-container--gap, var(--r-spacing-025, 0.25rem))}.r-tabs-list--scroll-indicator{margin-top:var(--r-tabs-list--scroll-indicator--margin, 2px);width:var(--r-tabs-list--scroll-button--after--width, 1px);height:var(--r-tabs-list--scroll-button--after--height, var(--r-spacing-175, 1.75rem));background-color:var(--r-tabs-list----scroll-indicator--background-color, var(--r-border-softer, #c9c9c9));z-index:var(--r-tabs-list----scroll-indicator--z-index, 1)}.r-tabs-list ::slotted(r-tab){margin-right:var(--r-tabs-list--r-tab--margin-right, var(--r-spacing-250, 2.5rem));flex:var(--r-tabs-list--r-tab--flex, none)}.r-tabs-list ::slotted(r-tab:last-of-type){margin-right:var(--r-tabs-list--r-tab--last-of-type--margin-right, 0)}";export{a as r_tabs_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as d,h as t,H as s,g as e}from"./p-CTxpqopm.js";const o=class{constructor(t){d(this,t)}render(){return t(s,{key:"2f4f3dae827959cebf6a5b5797d8942b6fbbeded",slot:"leading"},t("div",{key:"6dfda6f9bf0c88056d3d46f095b1f30e615ac5d7",class:"r-radio-button-leading",style:{display:"contents"}},t("slot",{key:"d909c93595d5f43ad3d8b93262134b52fbfde23c"})))}get host(){return e(this)}};o.style=":host{color:var(--r-icon-soft, #686868)}";export{o as r_radio_button_leading}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,h as e,H as t,g as a}from"./p-CTxpqopm.js";const i=class{constructor(e){r(this,e)}get iconName(){if(this.icon)return this.icon;const r={error:"circled-exclamation-mark",warning:"circled-cross",success:"circled-check"};return this.variant in r?r[this.variant]:null}get hasIconSlot(){return!!this.host.querySelector('[slot="icon"]')}get hasIcon(){return this.hasIconSlot||null!==this.iconName}render(){return e(t,{key:"1cbe08b7b3b01fc7d870416a1b14e3b1b8525797"},e("div",{key:"17494f3ae8bdf394858e2f9337e54bd844a467d0",class:"r-hint"},this.hasIcon&&e("div",{key:"ed406c6ae45ea4c25e6735752ced3a988c2f2274",class:"r-hint--icon"},e("slot",{key:"9e93b83d3f9e71f722ffdb813d46b667eec556a5",name:"icon"},this.iconName&&e("r-icon",{key:"841c3e53381a21e1341191eb7a0b32fdd696c47f",name:this.iconName,size:"s"}))),e("div",{key:"946d0813297923053452519b9871cd9a0d04679f",class:"r-hint--text"},e("slot",{key:"f7343fcc6a4cbe9f5584f8d94feff33cfd8f2560"}))))}get host(){return a(this)}};i.style=":host{--r-hint--text--flex:1}:host([variant=information]){--r-hint--color:var(--r-text-soft, #686868)}:host([variant=success]),:host([success]){--r-hint--color:var(--r-status-success-regular, #298535)}:host([variant=warning]),:host([warning]){--r-hint--color:var(--r-status-warning-strong, #89411a)}:host([variant=error]),:host([invalid]){--r-hint--color:var(--r-status-error-regular, #b00c15)}:host([icon-position=end]){--r-hint--flex-direction:row-reverse}:host{display:block}.r-hint{display:var(--r-hint--display, flex);flex-direction:var(--r-hint--flex-direction, row);gap:var(--r-hint--gap, var(--r-spacing-050, 0.5rem));font-family:var(--r-hint--font-family, var(--r-font-family-text, system-ui));font-size:var(--r-hint--font-size, var(--r-font-size-300, 0.875rem));line-height:var(--r-hint--line-height, var(--r-line-height-m, 1.5));color:var(--r-hint--color, var(--r-text-soft, #686868));font-weight:var(--r-hint--font-weight, var(--r-font-weight-regular, 400));margin-top:var(--r-hint--margin-top, 0);margin-bottom:var(--r-hint--margin-bottom, 0)}.r-hint--icon{display:var(--r-hint--icon--display, flex);align-items:var(--r-hint--icon--align-items, start);min-width:var(--r-hint--icon--min-width, 1rem);margin-top:var(--r-hint--icon--margin-top, 0.15rem)}.r-hint--text{flex:var(--r-hint--text--flex, 1)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";const l=class{constructor(e){r(this,e)}render(){const{fieldIndicator:r}=this;return e(t,{key:"4a8c827bf39bac03424a1caefeb8795871b08276"},e("div",{key:"212ea6fc9e2476361083610c6b8801ea3a4d79e9",class:"r-label"},e("span",{key:"0bf0a1fc635553165fe02937626cba8a44854f3d",class:"r-label--slot"},e("slot",{key:"16165450aeffd754cbcac5640297ab4efe94bf4c"}),r&&e("span",{key:"34e19397cff4fa69839475ece1077c4271d9ceb4",class:"r-label--marker"},r))))}};l.style='@charset "UTF-8";:host([field-indicator]){--r-label--marker--display:inline}.r-label{display:var(--r-label--display, flex);flex-direction:var(--r-label--flex-direction, row);gap:var(--r-label--gap, var(--r-spacing-100, 1rem));cursor:var(--r-label--cursor, default);color:var(--r-label--color, var(--r-text-regular, #282828));margin-bottom:var(--r-label--margin-bottom, 0)}.r-label--slot{flex:var(--r-label--slot--flex, 1);line-height:var(--r-label--line-height, var(--r-line-height-m, 1.5));font-family:var(--r-label--font-family, var(--r-font-family-text, system-ui));font-size:var(--r-label--font-size, var(--r-font-size-regular, 1rem));font-weight:var(--r-label--font-weight, var(--r-font-weight-regular, 400))}.r-label--marker{display:var(--r-label--marker--display, none);color:var(--r-label--marker--color, var(--r-text-soft, #686868));font-size:var(--r-label--marker--font-size, var(--r-font-size-300, 0.875rem));font-style:var(--r-label--marker--font-style, normal);font-weight:var(--r-label--marker--font-weight, var(--r-font-weight-regular, 400));margin-left:var(--r-label--marker--margin-left, var(--r-spacing-075, 0.75rem))}.r-label--marker::before{content:var(--r-label--marker--before--content, "– ")}.r-label--tooltip-icon{color:var(--r-label--tooltip-icon--color, var(--r-text-regular, inherit));display:var(--r-label--tooltip-icon--display, inline-flex);line-height:var(--r-label--tooltip-icon--line-height, 1);align-items:var(--r-label--tooltip-icon--align-items, center);justify-content:var(--r-label--tooltip-icon--justify-content, center)}';export{i as r_hint,l as r_label}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as s,g as r}from"./p-CTxpqopm.js";import{a}from"./p-DvLT8-y3.js";import{S as l}from"./p-4Uv3PpKT.js";const o=class{constructor(s){t(this,s),this.rValidate=e(this,"rValidate"),this.rChange=e(this,"rChange"),this.rReset=e(this,"rReset"),this.fullWidth=!1,this.listboxPosition="bottom",this.toggleButtonAriaLabel="Toggle combobox",this.noResultsFound="No results found",this.validityState="",this.validityMessage="",this.isExpanded=!1,this.isReadonly=!1,this.currentValue="",this.valueToDisplay="",this.isInitializing=!1,this.isResetting=!1,this.focusedOption=null,this.isValueFocused=!1,this.isNoResultsFound=!1,this.touched=!1,this.dirty=!1,this.handleSlotChange=()=>{setTimeout((()=>{this.initialize(),this.defineHostWidth()}),0)},this.initial={},this.uniqueId=`r-select-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g,""),this.getValidityStateData=t=>{let e="",i="";for(const s in t.validity)if(t.validity[s]){if(e=s,this[s+"Message"])return i=this[s+"Message"],{validityState:e,validityMessage:i};i=t.validationMessage}return{validityState:e,validityMessage:i}},this.validateFormElement=(t=null)=>{if(null===t)return;if(this.isNoValidate)return;if(this.error)return;const{validityState:e,validityMessage:i}=this.getValidityStateData(t);this.validityState=e,this.validityMessage=i;const s="valid"===this.validityState;this.valid=s,this.invalid=!s,this.rValidate.emit({state:this.validityState,message:this.validityMessage})},this.typeaheadBuffer="",this.typeaheadTimeout=null,this.lastTypeaheadIndex=-1,this.contributeToFormData=t=>{a(this.nativeElement,t.formData)},this.onValueClick=t=>{var e;this.disabled||(t.preventDefault(),t.stopPropagation(),this.touched=!0,this.toggle(),this.isExpanded&&(this.combobox&&(null===(e=this.valueElement)||void 0===e||e.focus()),this.defineListboxPositionState()))},this.keyboardEventHandlerFactory=(t,e=!1)=>{switch(t){case"Enter":return()=>{var t;if(this.isExpanded){const e=(null===(t=this.focusedOption)||void 0===t?void 0:t.value)||"";return e!==this.currentValue&&(this.dirty=!0),void this.setValueFromUserInteraction(e)}this.expand(),this.setOptionFocus(this.selectedElement)};case"Escape":return()=>{this.collapse(),this.reportValidity()};case"ArrowUp":return()=>{var t;if(this.isExpanded){if(this.focusedOption&&e){const e=(null===(t=this.focusedOption)||void 0===t?void 0:t.value)||"";return e!==this.currentValue&&(this.dirty=!0),void this.setValueFromUserInteraction(e)}(this.combobox||this.focusedOption!==this.optionElements[0])&&(this.focusedOption?this.focusPrevOption():this.setOptionFocus(this.selectedElement||this.optionElements[0]))}else this.expand(),this.setOptionFocus(this.selectedElement||this.optionElements[this.combobox?this.optionElements.length-1:0])};case"ArrowDown":return()=>{if(this.isExpanded)(this.combobox||this.focusedOption!==this.optionElements[this.optionElements.length-1])&&(this.focusedOption?this.focusNextOption():this.setOptionFocus(this.selectedElement||this.optionElements[0]));else{if(this.expand(),e)return;this.setOptionFocus(this.selectedElement||this.optionElements[0])}};case"Home":return()=>{if(!this.isExpanded)return this.expand(),void this.setOptionFocus(this.selectedElement||this.optionElements[0]);this.setOptionFocus(this.optionElements[0])};case"End":return()=>{if(!this.isExpanded)return this.expand(),void this.setOptionFocus(this.selectedElement||this.optionElements[this.optionElements.length-1]);this.setOptionFocus(this.optionElements[this.optionElements.length-1])};case"PageUp":return()=>{if(!this.isExpanded)return;if(null===this.focusedOption)return;const t=this.optionElementsArray.indexOf(this.focusedOption);-1!==t&&this.setOptionFocus(this.optionElements[t-10>=0?t-10:0])};case"PageDown":return()=>{if(!this.isExpanded)return;if(null===this.focusedOption)return;const t=this.optionElementsArray.indexOf(this.focusedOption);if(-1===t)return;const e=this.optionElements.length-1;this.setOptionFocus(this.optionElements[t+10<=e?t+10:e])};case"Tab":return()=>{var t;const e=(null===(t=this.focusedOption)||void 0===t?void 0:t.value)||"";e!==this.currentValue&&(this.dirty=!0),this.setValueFromUserInteraction(e)};default:return()=>{}}},this.onValueKeydown=t=>{if(t.stopPropagation(),["ArrowUp","ArrowDown","Home","End","PageUp","PageDown","Space","Enter","Escape"].includes(t.code))t.preventDefault();else if(1===t.key.length&&!t.ctrlKey&&!t.metaKey&&!t.altKey)return this.isExpanded||this.expand(),void this.handleTypeahead(t.key);switch(t.code){case"Space":this.keyboardEventHandlerFactory("Enter")();break;case"Tab":if(null===this.focusedOption)break;this.keyboardEventHandlerFactory("Tab")();break;default:this.keyboardEventHandlerFactory(t.code,t.altKey)()}},this.onComboboxKeydown=t=>{switch(t.stopPropagation(),["ArrowUp","ArrowDown","Home","End","PageUp","PageDown","Enter","Escape"].includes(t.code)&&t.preventDefault(),t.code){case"Tab":if(null===this.focusedOption){this.collapse();break}this.keyboardEventHandlerFactory("Tab")();break;case"Escape":if(this.isExpanded)return void this.keyboardEventHandlerFactory("Escape")();this.valueElement.value="";const e="";e!==this.currentValue&&(this.dirty=!0),this.setValueFromUserInteraction(e),this.reportValidity();break;default:this.keyboardEventHandlerFactory(t.code,t.altKey)()}},this.onValueBlur=()=>{this.isValueFocused=!1;const{isBusy:t,isExpanded:e}=this;t||e||this.reportValidity()},this.onValueFocus=()=>{this.isValueFocused=!0,this.touched=!0},this.filterOptionsListByComboboxValue=(t="")=>{const e=Array.from(this.host.querySelectorAll('r-select-option:not([data-no-results="true"])'));e.forEach((e=>{var i,s;const r=-1!==(null===(s=null===(i=null==e?void 0:e.textContent)||void 0===i?void 0:i.trim())||void 0===s?void 0:s.toLowerCase()).search(t.toLowerCase());e.setAttribute("aria-hidden",`${!r}`)})),this.isNoResultsFound=e.every((t=>"true"===(null==t?void 0:t.getAttribute("aria-hidden")))),this.isNoResultsFound&&(this.statusElement.innerHTML=this.noResultsFound,setTimeout((()=>{this.statusElement.innerText=""}),1e3))},this.clearComboboxOptions=()=>{this.combobox&&this.filterOptionsListByComboboxValue()},this.onComboboxChange=t=>{this.filterOptionsListByComboboxValue(t.target.value)},this.onComboboxInput=t=>{this.filterOptionsListByComboboxValue(t.target.value),this.isExpanded||(this.expand(),this.defineListboxPositionState())},this.onSubmitForm=t=>{this.isNoValidate||(this.reportValidity(),this.invalid&&(t.preventDefault(),t.stopPropagation()))},this.onResetForm=()=>{this.resetValidation(),this.markAsPristine(),this.setValue(this.initial.value),this.rReset.emit({element:this.host,value:this.currentValue})},this.renderSelect=t=>{var e,s;return i("span",Object.assign({class:"r-select--value",role:"combobox"},t,{ref:t=>this.valueElement=t,onClick:this.isInteractive?this.onValueClick:null,onKeyDown:this.isInteractive?this.onValueKeydown:null,onBlur:this.isInteractive?this.onValueBlur:null,onFocus:this.isInteractive?this.onValueFocus:null}),i("span",{class:"r-select--value-display"},this.isLeadingSlotRendered?i("slot",{name:"leading"}):null,i("span",{class:"r-select--value-selected",innerHTML:(null===(s=null===(e=this.valueToDisplay)||void 0===e?void 0:e.trim)||void 0===s?void 0:s.call(e))||this.placeholder||""})),i("span",{class:"r-select--value-arrow"},i("r-icon",{class:"r-select--trailing-icon",name:"angle-down",size:"s"})))},this.renderCombobox=t=>{var e,s,r;return i("div",{class:"r-select--value",onClick:this.isInteractive?this.onValueClick:null,ref:t=>this.comboboxContainerElement=t},i("div",{class:"r-select--value-display"},this.isLeadingSlotRendered?i("slot",{name:"leading"}):null,i("input",Object.assign({role:"combobox",autocomplete:"off","aria-autocomplete":"list",disabled:this.disabled,readonly:this.readonly,type:"text"},t,{class:"r-select--input",ref:t=>this.valueElement=t,onKeyDown:this.isInteractive?this.onComboboxKeydown:null,onBlur:this.isInteractive?this.onValueBlur:null,onFocus:this.isInteractive?this.onValueFocus:null,onChange:this.isInteractive?this.onComboboxChange:null,onInput:this.isInteractive?this.onComboboxInput:null,placeholder:this.placeholder||"",value:(null===(r=null===(s=null===(e=this.selectedElement)||void 0===e?void 0:e.textContent)||void 0===s?void 0:s.trim)||void 0===r?void 0:r.call(s))||""}))),i("button",{"aria-label":this.toggleButtonAriaLabel,"aria-expanded":`${this.expanded||!1}`,"aria-controls":`${this.uniqueId}-list`,disabled:this.disabled,tabindex:"-1",class:"r-select--value-arrow-button r-select--value-arrow"},i("r-icon",{class:"r-select--trailing-icon",name:"angle-down",size:"s"})),i("div",{class:"visually-hidden",role:"status",ref:t=>this.statusElement=t}))}}async setReadonly(){this.collapse(),this.resetValidation(),this.isReadonly=!0}async clearReadonly(){this.isReadonly=!1}handleListboxPositionChange(){this.defineListboxPositionState()}handleExpandedChange(){this.expanded?this.expand():this.collapse()}handleReadonlyChange(){this.readonly?this.setReadonly():this.clearReadonly()}handleValueChange(t,e){this.isInitializing||void 0!==e&&e!==t&&(this._renderSelected(t,!1),this.clearComboboxOptions())}optionSelectAction(t){t.stopPropagation(),this.disabled||(t.target.value!==this.currentValue&&(this.dirty=!0),this.setValueFromUserInteraction(t.target.value))}tooltipFocusAction(){this.collapse(),this.reportValidity()}onMouseup(t){this.isExpanded&&(t.stopPropagation(),this.host.contains(t.target)||(this.collapse(),this.reportValidity()))}onKeyup(t){this.isExpanded&&(t.stopPropagation(),(t.composedPath?t.composedPath():[]).includes(this.host)||(this.collapse(),this.reportValidity()))}handleScrolling(){this.isExpanded&&this.defineListboxPositionState()}handleResizing(){this.isExpanded&&this.defineListboxPositionState()}async setValue(t=""){this.resetValidation(),this._renderSelected(t,!1),this.clearComboboxOptions()}setValueFromUserInteraction(t=""){this.resetValidation(),this._renderSelected(t,!0),this.clearComboboxOptions()}async getValue(){return this.currentValue||""}async reset(){if(this.resetValidation(),this.markAsPristine(),this.collapse(),this.clearComboboxOptions(),this.currentValue!==this.initial.value){if(""!==this.initial.value&&this.initiallySelectedElement)return this.isResetting=!0,this.setValue(this.initial.value),void(this.isResetting=!1);this.deselectOptions(),this.currentValue="",this.valueToDisplay=""}}async resetValidation(){this.validityMessage=null,this.validityState=null,this.invalid=this.initial.invalid,this.valid=!this.invalid}async isTouched(){return this.touched}async isDirty(){return this.dirty}async markAsPristine(){this.touched=!1,this.dirty=!1}async checkValidity(){const{validityState:t}=this.getValidityStateData(this.nativeElement);return"valid"===t}async reportValidity(){return this.validateFormElement(this.nativeElement),"valid"===this.validityState}async setFocus(){var t;null===(t=this.valueElement)||void 0===t||t.focus()}async setBlur(){var t;null===(t=this.valueElement)||void 0===t||t.blur()}async expand(){this.isExpanded=!0}async collapse(){this.isExpanded=!1,this.isBusy||(this.clearOptionsFocus(),this.setComboboxValueOnCollapse())}async getFocusedOption(){return this.host.querySelector('r-select-option[data-focused="true"]')||null}async setFocusedOption(t){return this.setOptionFocus(this.optionElements[t])}clearOptionsFocus(){var t;this.focusedOption=null;try{this.valueElement.ariaActiveDescendantElement=null}catch(e){null===(t=this.valueElement)||void 0===t||t.removeAttribute("aria-activedescendant")}this.focusedOptions.forEach((t=>t.setBlur()))}setComboboxValueOnCollapse(){var t,e,i;this.combobox&&(this.valueElement.value=(null===(i=null===(e=null===(t=this.selectedElement)||void 0===t?void 0:t.textContent)||void 0===e?void 0:e.trim)||void 0===i?void 0:i.call(e))||"",this.clearComboboxOptions())}get focusedOptions(){return Array.from(this.host.querySelectorAll('r-select-option[data-focused="true"]'))}toggle(){this.isExpanded=!this.isExpanded}get selectedElement(){return this.host.querySelector(`r-select-option[value="${this.currentValue}"]`)}get initiallySelectedElement(){return this.host.querySelector(`r-select-option[value="${this.initial.value}"]`)||null}get parentFormEl(){return this.host.closest("form")||document.querySelector(`#${this.form}`)||null}get isNoValidate(){var t;return(null===(t=this.parentFormEl)||void 0===t?void 0:t.hasAttribute("novalidate"))||this.novalidate||!1}get optionElements(){return this.host.querySelectorAll('r-select-option:not([disabled]:not([disabled="false"])):not([aria-hidden="true"])')||null}get optionElementsArray(){return Array.from(this.optionElements)}deselectOptions(){this.optionElements&&this.optionElements.forEach((t=>t.clearSelected()))}get isBusy(){return this.isInitializing||this.isResetting}_renderSelected(t="",e=!0){var i,s;this.currentValue=t,null===this.currentValue?this.host.removeAttribute("value"):this.host.setAttribute("value",this.currentValue);const r=this.host.querySelector(`r-select-option[value="${null===(i=this.currentValue)||void 0===i?void 0:i.trim()}"]`);this.valueToDisplay=(null==r?void 0:r.innerHTML)||(null==r?void 0:r.textContent)||this.currentValue||"",null===(s=this.optionElements)||void 0===s||s.forEach((e=>{e.value===t?e.setSelected():e.clearSelected()})),this._renderNativeOption(),this.isExpanded&&this.collapse(),this.isBusy||this.reportValidity(),e&&!this.isBusy&&this.dirty&&this.rChange.emit({element:this.host,value:t})}setOptionFocus(t=this.selectedElement){t&&null!==this.optionElements&&requestAnimationFrame((()=>{var e;this.clearOptionsFocus(),t.setFocus(),this.focusedOption=t;try{this.valueElement.ariaActiveDescendantElement=t}catch(i){null===(e=this.valueElement)||void 0===e||e.setAttribute("aria-activedescendant",t.id)}((t,e)=>{var i,s;if(!e)return;try{null===(i=t.scrollIntoView)||void 0===i||i.call(t,{block:"nearest",inline:"nearest"})}catch(e){null===(s=t.scrollIntoView)||void 0===s||s.call(t,!1)}const r=t.getBoundingClientRect(),a=e.getBoundingClientRect();(r.top<a.top||r.bottom>a.bottom)&&((t,e)=>{const i=t.offsetTop,s=i+t.offsetHeight,r=e.scrollTop,a=r+e.clientHeight;i<r?e.scrollTop=i:s>a&&(e.scrollTop=s-e.clientHeight)})(t,e)})(t,this.listboxElement)}))}focusPrevOption(t=this.focusedOption||this.selectedElement){if(null===this.optionElements)return;const e=this.optionElementsArray.indexOf(t)-1;this.setOptionFocus(e>=0?this.optionElements[e]:this.optionElements[this.optionElements.length-1])}focusNextOption(t=this.focusedOption||this.selectedElement){if(null===this.optionElements)return;const e=this.optionElementsArray.indexOf(t)+1;this.setOptionFocus(e<=this.optionElements.length-1?this.optionElements[e]:this.optionElements[0])}filterOptions(t,e){if(!e)return[];const i=e.toLowerCase();return t.filter((t=>!t.disabled&&(t.textContent||"").trim().toLowerCase().startsWith(i)))}getIndexByLetter(t,e,i=0){if(!t.length||!e)return-1;const s=[...t.slice(i),...t.slice(0,i)],r=this.filterOptions(s,e).sort(((t,e)=>(t.textContent||"").trim().toLowerCase().localeCompare((e.textContent||"").trim().toLowerCase()))),a=e.split("").every((t=>t===e[0]));if(r[0])return t.indexOf(r[0]);if(a){const i=this.filterOptions(s,e[0]);return i[0]?t.indexOf(i[0]):-1}return-1}handleTypeahead(t){clearTimeout(this.typeaheadTimeout);const e=this.optionElementsArray;let i;if(this.typeaheadBuffer+=t.toLowerCase(),this.typeaheadBuffer.split("").every((t=>t===this.typeaheadBuffer[0]))&&-1!==this.lastTypeaheadIndex)i=(this.lastTypeaheadIndex+1)%e.length;else{const t=e.indexOf(this.focusedOption||this.selectedElement);i=-1===t?0:(t+1)%e.length}const s=this.getIndexByLetter(e,this.typeaheadBuffer,i);if(-1!==s){this.lastTypeaheadIndex=s;const t=e[s];this.isExpanded||this.expand(),this.setOptionFocus(t)}this.typeaheadTimeout=setTimeout((()=>{this.typeaheadBuffer=""}),500)}connectFormEventListeners(){this.parentFormEl&&(this.parentFormEl.addEventListener("formdata",this.contributeToFormData),this.parentFormEl.addEventListener("submit",this.onSubmitForm,{capture:!0}),this.parentFormEl.addEventListener("reset",this.onResetForm))}disconnectFormEventListeners(){this.parentFormEl&&(this.parentFormEl.removeEventListener("formdata",this.contributeToFormData),this.parentFormEl.removeEventListener("submit",this.onSubmitForm),this.parentFormEl.removeEventListener("reset",this.onResetForm))}defineHostWidth(){if(this.fullWidth)return;const t=this.host.shadowRoot.querySelector(".r-select--native").getBoundingClientRect().width,e=(this.combobox?this.comboboxContainerElement:this.valueElement).getBoundingClientRect().width,i=this.listboxElement.getBoundingClientRect().width,s=Math.max(t,e,i);this.host.style.setProperty("--width",`${s}px`)}_renderNativeOption(){var t,e,i,s,r;const a=document.createElement("option"),l=document.createTextNode(null===(i=null===(e=null===(t=this.selectedElement)||void 0===t?void 0:t.textContent)||void 0===e?void 0:e.trim)||void 0===i?void 0:i.call(e));a.value=this.currentValue,a.selected=!0,a.appendChild(l),this.nativeElement&&(this.nativeElement.innerHTML="",null===(s=this.nativeElement)||void 0===s||s.appendChild(a),this.nativeElement.value=this.currentValue,null===(r=this.nativeElement)||void 0===r||r.setAttribute("value",this.currentValue))}notVisible(t){return"visible"!==getComputedStyle(t).overflow}findOverflowParent(t){var e,i;return(null===(e=t.parentNode)||void 0===e?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE?this.findOverflowParent(null===(i=t.parentNode)||void 0===i?void 0:i.host):this.notVisible(t)?t:t.parentElement?this.findOverflowParent(t.parentElement):null}get ariaDescribedBy(){const t=`${this.uniqueId}-message`;return this.hint?`${this.uniqueId}-hint ${t}`:t}get overflowedParent(){return this.findOverflowParent(this.host.parentElement)}get top(){var t,e;return this.overflowedParent?Math.abs(this.overflowedParent.getBoundingClientRect().top-(null===(e=this.valueElement)||void 0===e?void 0:e.getBoundingClientRect().top)):null===(t=this.valueElement)||void 0===t?void 0:t.getBoundingClientRect().top}get bottom(){var t;function e(t){return window.innerHeight-t.getBoundingClientRect().top-t.getBoundingClientRect().height}const i=window.getComputedStyle(this.messageContainer),s=(null===(t=this.messageContainer)||void 0===t?void 0:t.getBoundingClientRect().height)+parseFloat(i.marginTop),r=e(this.host)+s;return this.overflowedParent?Math.abs(e(this.overflowedParent)-r):r+s}defineListboxPositionState(){var t,e;const i=(null===(t=this.listboxElement)||void 0===t?void 0:t.offsetHeight)<this.bottom,s=(null===(e=this.listboxElement)||void 0===e?void 0:e.offsetHeight)<this.top;if("top"===this.listboxPosition&&(s||!i)||"bottom"===this.listboxPosition&&(i||!s))this.listboxPositionState=this.listboxPosition;else switch(this.listboxPosition){case"top":this.listboxPositionState=s?"top":"bottom";break;case"bottom":this.listboxPositionState=i?"bottom":"top"}}initialize(){var t;const e=this.value||"";if(this.initial.value=this.value||"",this.initial.invalid=this.invalid||!1,this.listboxPositionState=this.listboxPosition,this.optionElementsArray.find((t=>t.value.trim()===e)))return this.isInitializing=!0,this.setValue(e),void(this.isInitializing=!1);if(this.placeholder)return;if(this.combobox)return;const i=null===(t=this.optionElements)||void 0===t?void 0:t[0];i&&(this.isInitializing=!0,this.setValue(null==i?void 0:i.value),this.isInitializing=!1)}initializeStyleObserver(){!this.listboxWidthObserver&&this.listboxElement&&(this.listboxWidthObserver=new l((()=>{this.listboxElement&&(this.listboxElement.getBoundingClientRect().width<=this.host.getBoundingClientRect().width||this.defineHostWidth())})),this.listboxWidthObserver.observe([this.listboxElement],["width"]))}get hasError(){var t;return this.invalid&&(null===(t=this.error)||void 0===t?void 0:t.length)>0}get hasValidationError(){var t;return"valid"!==this.validityState&&(null===(t=this.validityMessage)||void 0===t?void 0:t.length)>0}get hasMessage(){return this.hasError||this.hasValidationError}get isInteractive(){return!this.disabled&&!this.isReadonly}get hasLeadingSlot(){return!!this.host.querySelector('[slot="leading"]')}get hasOptionIcon(){return!!this.optionElementsArray.find((t=>!!t.querySelector('[slot="icon"]')))}get isLeadingSlotRendered(){return this.hasLeadingSlot&&this.hasOptionIcon&&!this.currentValue}get isPlaceholder(){var t,e;const{placeholder:i}=this;return((null===(e=null===(t=this.valueToDisplay)||void 0===t?void 0:t.trim)||void 0===e?void 0:e.call(t))||i||"")===i}connectedCallback(){this.connectFormEventListeners()}disconnectedCallback(){this.disconnectFormEventListeners()}componentWillLoad(){this.isExpanded=this.expanded,this.isReadonly=this.readonly}componentDidLoad(){this.defineListboxPositionState(),this.initializeStyleObserver()}render(){var t;const{uniqueId:e,disabled:r,isExpanded:a,fieldIndicator:l,invalid:o,placeholder:n,required:h,hint:c,label:d,internal:v}=this,u=!!this.isInteractive&&!!h,p={id:`${e}-value`,tabindex:""+(r?-1:0),"aria-controls":`${e}-list`,"aria-describedby":this.ariaDescribedBy,"aria-disabled":`${r||!1}`,"aria-expanded":`${a||!1}`,"aria-invalid":`${o||!1}`,"aria-readonly":`${!this.isInteractive||!1}`,"aria-required":`${u}`,"aria-labelledby":`${e}-label`},f={"aria-label":d},b={placeholder:n,name:this.name,value:this.currentValue,"aria-hidden":"true",tabindex:"-1",invalid:o,disabled:r,required:u};return i(s,{key:"f52fa96bdacace6070cd2baa15f8fab939d05916","data-value":this.currentValue,expanded:!this.disabled&&this.isExpanded,"data-listbox-position":this.listboxPositionState,"data-initial-value":this.initial.value,"data-is-placeholder":`${!!this.isPlaceholder}`,"data-value-focused":`${!!this.isValueFocused}`,"data-option-focused":`${!!this.focusedOption}`,"data-validity-state":`${this.validityState||""}`,"data-validity-message":`${this.validityMessage||""}`,"data-readonly":`${!!this.isReadonly}`,"data-touched":`${this.touched}`,"data-dirty":`${this.dirty}`},i("div",{key:"80326d43674f8caac11678ca4d5a6ca8178f9454",class:"r-select--label "+(v?"":"r-select--label__margin-bottom")},i("div",{key:"25fa25960350a338c7c9156d38c974c0ad8a0861",class:v?"visually-hidden":"r-select--label-container"},i("label",{key:"b52ac4d91e32df39459492bbeaf166d2a71d165c",id:`${e}-label`,onClick:this.isInteractive?this.onValueClick:null},i("r-label",Object.assign({key:"ac75955086f424e781baf66e6853cbc89ec20d56"},d?{fieldIndicator:l}:{}),d)),i("slot",{key:"4cd953da5c64a473070ce4b8a3e5721a36561685",name:"popover"})),c&&i("r-hint",{key:"2d6a2e9eae51d56f31886725274c637e76ab4d75",id:`${e}-hint`,class:"r-select--hint"},c)),i("div",{key:"8107a1d2475d11d6e827d7394ade84f9c4c85ea5",class:"r-select"},i("select",Object.assign({key:"d7a60a4ff2f8f568da1ea90d859d5de78a1e73ef",class:"r-select--native",ref:t=>this.nativeElement=t},b)),i("div",{key:"9d49470c7e4cc179dfd93cb1233e2bbf86ac7641",class:"r-select--container"},this.combobox?this.renderCombobox(p):this.renderSelect(p),i("div",Object.assign({key:"9594f3439c7591a4e4ef359a205a55d1c56dbb80",role:"listbox",tabindex:"-1",id:`${e}-list`,class:"r-select--options",ref:t=>this.listboxElement=t},f),(this.isNoResultsFound||!(null===(t=this.optionElements)||void 0===t?void 0:t.length))&&i("r-select-option",{key:"ae0ef701ff3e7db4c17aba7d57265122c3bf6587","data-no-results":"true",value:"no_results"},this.noResultsFound),i("slot",{key:"012fcee55283c7bc5a3230ff23b692eca33d853b",onSlotchange:this.handleSlotChange})))),i("div",{key:"94fc769d8eeb0bd92f1d12d553b033a3de9ad8dc",id:`${e}-message`,"aria-live":"polite","aria-atomic":"true",ref:t=>this.messageContainer=t,class:this.hasMessage&&!v?"r-select--message":"visually-hidden"},this.hasMessage&&i("r-hint",{key:"881e60130bd3cbc9004aacbb027911357286a516",variant:this.invalid?"error":"success"},this.hasError&&this.error,this.hasValidationError&&this.validityMessage)))}get host(){return r(this)}static get watchers(){return{listboxPosition:["handleListboxPositionChange"],expanded:["handleExpandedChange"],readonly:["handleReadonlyChange"],value:["handleValueChange"]}}};o.style=":host{display:inline-flex;flex-direction:column;width:var(--width, auto);transition:width 0.2s ease-out;max-width:none;opacity:1;outline:none}:host slot{display:contents}:host(:hover:not([disabled]:not([disabled=false]))){--r-select--container--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04))}:host([expanded]:not([expanded=false])){--r-select--options--visibility:visible;--r-select--options--z-index:1;--r-select--background-color:var(--r-background-interactive-softest, #fff);--r-select--value--border-color:var(--r-border-soft, #686868);--r-select--value--background-color:var(--r-background-interactive-softest, #fff);--r-select--trailing-icon--transform:rotate(180deg)}:host([invalid]:not([invalid=false])){--r-select--container--background-color:var(--r-status-error-soft, #fef6f6);--r-select--value--border-color:var(--r-status-error-regular, #b00c15);--r-select--options--border-color:var(--r-status-error-regular, #b00c15)}:host([disabled]:not([disabled=false])){--r-select--opacity:0.4;--r-select--pointer-events:none;--r-select--cursor:not-allowed}:host([data-is-placeholder=true]){--r-select--value-diplay--color:var(--r-text-soft, #686868)}:host([data-max-width=set]){width:100%;--r-select--options--right:0}:host([full-width]){width:100%}:host([data-listbox-position=top]){--r-select--options--top:auto;--r-select--options--bottom:2.875em;--r-select--options--border-width:1px 1px 0 1px}:host([data-listbox-position=bottom]){--r-select--options--top:100%;--r-select--options--bottom:auto;--r-select--options--border-width:0 1px 1px 1px}:host([data-readonly=true]){--r-select--color:var(--r-text-soft, #686868);--r-select--value--background-color:var(--r-background-soft, #f3f1f0);--r-select--value--border-color:transparent transparent var(--r-border-soft, #686868) transparent;--r-select--value--cursor:text;--r-select--value-arrow--visiblility:hidden}.r-select{display:var(--r-select--display, flex);flex-grow:var(--r-select--flex-grow, 1);flex-direction:var(--r-select--flex-direction, column);position:var(--r-select--position, relative);box-sizing:var(--r-select--box-sizing, border-box);max-width:var(--r-select--max-width, 100%);min-width:var(--r-select--min-width, fit-content);font-family:var(--r-select--font-family, var(--r-font-family-text, system-ui));font-weight:var(--r-select--font-weight, var(--r-font-weight-regular, 400));font-size:var(--r-select--font-size, var(--r-font-size-400, 1rem));text-align:var(--r-select--text-align, left);color:var(--r-select--color, var(--r-text-regular, #282828));opacity:var(--r-select--opacity, 1);pointer-events:var(--r-select--pointer-events, auto);cursor:var(--r-select--cursor, pointer)}.r-select--label__margin-bottom{margin-bottom:var(--r-select--label--margin-bottom, var(--r-spacing-025, 0.25rem))}.r-select--label-container{display:var(--r-select--label-container--display, flex);gap:var(--r-select--label-container--gap, var(--r-spacing-100, 1rem));align-items:var(--r-select--label-container--align-items, center);justify-content:var(--r-select--label-container--align-items, space-between)}.r-select--label-container ::slotted([slot=popover]){display:var(--r-select--popover--display, inline-flex);height:var(--r-select--popover--height, var(--r-spacing-150, 1.5));align-items:var(--r-select--popover--align-items, center);justify-content:var(--r-select--popover--justify-content, center);margin-right:var(--r-select--popover--margin-right, -0.25rem);--r-popover--trigger--min-width:var(--r-select--popover-trigger--min-width, var(--r-spacing-150, 1.5));--r-popover--trigger--min-height:var(--r-select--popover--trigger--min-height, var(--r-spacing-150, 1.5))}.r-select--trailing-icon{transform:var(--r-select--trailing-icon--transform, rotate(0deg));transition:var(--r-select--trailing-icon--transition, transform 0.15s)}.r-select ::slotted([name=leading]){display:var(--r-select--value--leading-icon--display, flex);align-items:var(--r-select--value--leading-icon--align-items, center);color:var(--r-select--value--leading-icon--color, var(--r-icon-soft, #686868))}.r-select--container{background-color:var(--r-select--container--background-color, var(--r-background-softest, #fff));opacity:var(--r-select--container--opacity, 1);pointer-events:var(--r-select--container--pointer-events, auto)}.r-select--input{height:var(--r-select--input--height, 100%);width:var(--r-select--input--width, 100%);border:var(--r-select--input--border, none);outline:var(--r-select--input--outline, none);background-color:var(--r-select--input--background-color, inherit);color:var(--r-select--input--color, inherit);font-family:var(--r-select--input--font-family, inherit);font-size:var(--r-select--input--font-size, inherit);font-weight:var(--r-select--input--font-weight, inherit);padding:var(--r-select--input--padding, 0)}.r-select--native{position:var(--r-select--native--position, fixed);top:var(--r-select--native--top, -100vh);z-index:var(--r-select--native--z-index, -1);opacity:var(--r-select--native--opacity, 0);font-size:var(--r-select--native--font-size, 1rem);padding:var(--r-select--native--padding, 0 calc(48px + 0.75em) 0 0.75em)}.r-select--value:not([aria-readonly=true]):not(:has(input:read-only)):not(:has(input:disabled)):active{--r-select--value--background-color:var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12))}.r-select--value[aria-disabled=false]:focus,.r-select--value:has(input:focus){outline:var(--r-select--value--outline, none);--r-select--value--z-index:2;--r-select--value--box-shadow:0 0 0 6px var(--r-border-focused-outlined, #fff);--r-select--value--outline:2px solid var(--r-border-focused, #0071e3);--r-select--value--outline-offset:2px}.r-select--value{position:var(--r-select--value--position, relative);display:var(--r-select--value--display, inline-grid);grid-template-columns:var(--r-select--value--grid-template-columns, 1fr 1.75rem);box-sizing:var(--r-select--value--box-sizing, border-box);align-items:var(--r-select--value--align-items, center);justify-content:var(--r-select--value--justify-content, space-between);text-align:var(--r-select--value--text-align, left);min-width:var(--r-select--value--min-width, 100%);min-height:var(--r-select--value--min-height, var(--r-spacing-275, 2.75rem));padding:var(--r-select--value--padding, 0);white-space:var(--r-select--value--white-space, nowrap);background-color:var(--r-select--value--background-color, transparent);border-width:var(--r-select--value--border-width, 1px);border-style:var(--r-select--value--border-style, solid);border-color:var(--r-select--value--border-color, var(--r-border-soft, #686868));box-shadow:var(--r-select--value--box-shadow, none);outline:var(--r-select--value--outline, none);outline-offset:var(--r-select--value--outline-offset, 0);z-index:var(--r-select--value--z-index, 0);cursor:var(--r-select--value--cursor, inherit)}.r-select--value-display{display:var(--r-select--value-diplay--display, flex);gap:var(--r-select--value-diplay--gap, 0.5em);align-items:var(--r-select--value-diplay--align-tems, center);flex:var(--r-select--value-diplay--flex, 1);padding:var(--r-select--value-diplay--padding, 0 0.75em);overflow:var(--r-select--value-diplay--overflow, hidden);text-overflow:var(--r-select--value-diplay--text-overflow, ellipsis);color:var(--r-select--value-diplay--color, inherit);min-width:var(--r-select--value-diplay--min-width, fit-content);height:var(--r-select--value-diplay--height, 100%)}.r-select--value-selected{display:var(--r-select--value-diplay--display, flex);gap:var(--r-select--value-diplay--gap, 0.75em);align-items:var(--r-select--value-diplay--align-items, center)}.r-select--value-arrow{display:var(--r-select--value-arrow--display, flex);align-items:var(--r-select--value-arrow--align-items, center);justify-content:var(--r-select--value-arrow--justify-content, center);padding:var(--r-select--value-arrow--padding, 0 0.75em 0 0);visibility:var(--r-select--value-arrow--visiblility, visible)}.r-select--value-arrow-button{height:var(--r-select--value-arrow-button--height, 100%);background-color:var(--r-select--value-arrow-button--background-color, transparent);color:var(--r-select--value-arrow-button--color, inherit);border:var(--r-select--value-arrow-button--border, none);outline:var(--r-select--value-arrow-button--outline, none);cursor:var(--r-select--value-arrow-button--cursor, inherit)}.r-select--options{visibility:var(--r-select--options--visibility, hidden);position:var(--r-select--options--position, absolute);top:var(--r-select--options--top, 100%);right:var(--r-select--options--right, 0);bottom:var(--r-select--options--bottom, auto);left:var(--r-select--options--left, 0);margin:var(--r-select--options--margin, 0);padding:var(--r-select--options--padding, 0);list-style:var(--r-select--options--list-style, none);max-height:var(--r-select--options--max-height, 14.375em);min-width:var(--r-select--options--min-width, fit-content);overflow-y:var(--r-select--options--overflow-y, auto);background-color:var(--r-select--options--background-color, var(--r-background-interactive-softest, #fff));border-style:var(--r-select--options--border-style, solid);border-color:var(--r-select--options--border-color, var(--r-border-soft, #686868));border-width:var(--r-select--options--border-width, 0 1px 1px 1px);z-index:var(--r-select--options--z-index, -1)}.r-select--message{margin-top:var(--r-select--message--margin-top, var(--r-spacing-025, 0.25rem))}.hidden{display:none}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}@media (prefers-reduced-motion){:host{transition:none}}";export{o as r_select}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i,F as r,H as e,g as s}from"./p-CTxpqopm.js";const l=class{constructor(i){t(this,i),this.variant="list-item",this.expanded=!1,this.uniqueSubmitemsId=`r-list-item-subitems-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g,""),this.isEl=t=>null!==this.host.querySelector(t)}async toggleSubitems(){this.disabled||"subitem"!==this.variant&&(this.expanded=!this.expanded)}get isLeadingIcon(){return!!this.leadingIcon||!!this.leadingIconSrc}get isLeadingSlot(){return this.isEl('[slot="leading"]')}get isLeading(){return this.isLeadingIcon&&!this.hideLeadingIcon||this.isLeadingSlot}get isTrailingIcon(){var t,i;return(null===(t=this.trailingIcon)||void 0===t?void 0:t.length)>0||(null===(i=this.trailingIconSrc)||void 0===i?void 0:i.length)>0}get isTrailingSlot(){return this.isEl('[slot="trailing"]')}get isTrailing(){var t;return this.isTrailingIcon||(null===(t=this.trailingText)||void 0===t?void 0:t.length)>0||this.isTrailingSlot}get isTextSlot(){return this.isEl('[slot="text"]')}get isHeadlineSlot(){return this.isEl('[slot="headline"]')}get isDescriptionSlot(){return this.isEl('[slot="description"]')}get headlineContent(){var t;return(null===(t=this.host.querySelector('[slot="headline"]'))||void 0===t?void 0:t.textContent)||this.headline}get hasSubitems(){return this.isEl('[variant="subitem"]')}get subItems(){var t;return null===(t=this.host)||void 0===t?void 0:t.querySelectorAll('[variant="subitem"]')}setTabIndexOnSubItems(){this.hasSubitems&&this.subItems.forEach((t=>{var i;null===(i=t.shadowRoot.querySelector("a.r-list-item"))||void 0===i||i.setAttribute("tabindex",this.disabled?"-1":null)}))}componentDidLoad(){this.setTabIndexOnSubItems()}get tagName(){return this.hasSubitems?"button":this.href&&!this.disabled?"a":"div"}render(){const{leadingIcon:t,leadingIconSrc:s,trailingIcon:l,trailingIconSrc:a,headline:n,trailingText:o,description:d}=this,m=this.tagName,c=Object.assign(Object.assign(Object.assign({href:"a"===m?this.href:null,"aria-current":this.active&&"a"===m?"page":null},this.disabled?{role:"link","aria-disabled":"true"}:null),this.hasSubitems?{"aria-expanded":`${this.expanded}`}:null),this.hasSubitems?{"aria-controls":`${this.uniqueSubmitemsId}`}:null),h=i(m,Object.assign({class:"r-list-item"},c,{onClick:()=>this.hasSubitems&&this.toggleSubitems()}),this.isLeading&&i("span",{class:"r-list-item--leading"},i("slot",{name:"leading"},this.isLeadingIcon&&!this.hideLeadingIcon&&i("r-icon",{class:"r-list-item--leading-icon",name:t,src:s}))),i("span",{class:"r-list-item--text"},this.isTextSlot?i("slot",{name:"text"}):i(r,null,(this.isHeadlineSlot||n)&&i("span",{class:"r-list-item--headline"},i("slot",{name:"headline"},n)),(d||this.isDescriptionSlot)&&i("span",{class:"r-list-item--description"},i("slot",{name:"description"},d)))),i("span",{class:"r-list-item--sr-text visually-hidden"},this.headlineContent),this.isTrailing&&i("span",{class:"r-list-item--trailing"},i("slot",{name:"trailing"},this.isTrailingIcon&&!o&&i("r-icon",{class:"r-list-item--trailing-icon",name:l,src:a}),o&&!this.isTrailingIcon&&i("span",{class:"r-list-item--trailing-text"},o))));return i(e,null,this.hasSubitems?i("div",{class:"r-list-item-wrapper"},h,i("ul",{"aria-hidden":`${!this.expanded}`,id:this.uniqueSubmitemsId,class:"sub-items"},i("slot",null))):h)}get host(){return s(this)}};l.style=':host([alignment=top]){--r-list-item--trailing-text--font-weight:bold;--r-list-item--trailing--align-self:start}:host([alignment=bottom]) .r-list-item{--r-list-item--trailing--align-self:end}:host([divider]:not([divider=false])){--r-list-item--border-color:var(--r-border-soft, #686868);--r-list-item--border-width:0 0 1px 0}:host([active]) .r-list-item{--r-list-item--background-color:var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12))}:host([variant=navitem]:not([active]):hover:not([disabled]:not([disabled=false])))>.r-list-item,:host([href]:not([active]):hover:not([disabled]:not([disabled=false])))>.r-list-item{--r-list-item--cursor:pointer;--r-list-item--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04))}:host([variant=navitem][has-sub-items]:hover:not([disabled]:not([disabled=false])))>.r-list-item-wrapper>.r-list-item{--r-list-item--cursor:pointer;--r-list-item--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04))}:host([variant=navitem][has-sub-items]:has([active]):hover:not([disabled]:not([disabled=false])))>.r-list-item-wrapper>.r-list-item{--r-list-item--cursor:pointer;--r-list-item--background-color:transparent}:host([variant=navitem][expanded])>.r-list-item-wrapper>.r-list-item{--r-list-item--headline--font-weight:600;--r-list-item--trailing-icon--transform:rotate(180deg);--r-list-item--trailing-icon--color:var(--r-icon-regular, #282828)}:host([variant=navitem][active-parent]:not([expanded])),:host([variant=navitem][active]:not([expanded])){--r-list-item--background-color:var(--r-background-interactive-activated, rgba(40, 40, 40, 0.08))}:host([variant=subitem]) .r-list-item{--r-list-item--margin-left:27px;--r-list-item--border-width:0 0 0 1px;--r-list-item--border-color:var(--r-border-soft, #686868)}:host([variant=subitem][active]) .r-list-item{--r-list-item--background-color:var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12))}:host(:focus-within) .r-list-item[href]{--r-list-item--box-shadow:0 0 0 6px var(--r-border-focused-outlined, #fff);--r-list-item--outline:2px solid var(--r-border-focused, #0071e3);--r-list-item--outline-offset:2px}:host([disabled]:not([disabled=false])){cursor:not-allowed;--r-list-item--background-color:transparent}:host([disabled]:not([disabled=false])[divider]:not([divider=false])){--r-list-item--border-color:rgba(104,104,104, 0.4);--r-list-item--leading-icon--color:rgba(104,104,104, 0.4)}:host([truncate-description]:not([truncate-description=false])){--r-list-item--description--white-space:nowrap}:host{display:var(--display, block);pointer-events:var(--pointer-events, auto);outline:var(--outline, none);font-family:var(--font-family, var(--r-font-family-text, system-ui));line-height:var(--line-height, var(--r-line-height-m, 1.5));color:var(--color, var(--r-text-regular, #282828))}.r-list-item{display:var(--r-list-item--display, flex);align-items:var(--r-list-item--align-items, center);justify-content:var(--r-list-item--justify-content, center);gap:var(--r-list-item--gap, var(--r-spacing-100, 1rem));width:var(--r-list-item--width, inherit);padding:var(--r-list-item--padding, var(--r-spacing-100, 1rem));margin-left:var(--r-list-item--margin-left, 0);opacity:var(--r-list-item--opacity, 1);color:var(--r-list-item--color, inherit);box-shadow:var(--r-list-item--box-shadow, none);outline:var(--r-list-item--outline, none);outline-offset:var(--r-list-item--outline-offset, 0);text-decoration:var(--r-list-item--text-decoration, none);text-align:var(--r-list-item--text-align, left);background-color:var(--r-list-item--background-color, transparent);border-style:var(--r-list-item--border-style, solid);border-width:var(--r-list-item--border-width, 0);border-color:var(--r-list-item--border-color, transparent);cursor:var(--r-list-item--cursor, inherit);font-weight:var(--r-list-item--font-weight, var(--r-font-weight-regular, 400));font-family:var(--r-list-item--font-family, var(--r-font-family-text, system-ui))}.r-list-item:focus-visible{--r-list-item--box-shadow:0 0 0 6px var(--r-border-focused-outlined, #fff);--r-list-item--outline:2px solid var(--r-border-focused, #0071e3);--r-list-item--outline-offset:2px}.r-list-item--leading{display:var(--r-list-item--leading--display, flex);align-items:var(--r-list-item--leading--align-items, center);color:var(--r-list-item--leading--color, var(--r-icon-soft, #686868))}.r-list-item--leading-icon{color:var(--r-list-item--leading-icon--color, var(--r-icon-soft, #686868))}.r-list-item--trailing{display:var(--r-list-item--trailing--display, flex);align-self:var(--r-list-item--trailing--align-self, center);gap:var(--r-list-item--trailing--gap, var(--r-spacing-050, 0.5rem));color:var(--r-list-item--trailing--color, inherit)}.r-list-item--trailing-icon{transition:var(--r-list-item--trailing-icon--transition, transform 250ms ease-in-out);transform:var(--r-list-item--trailing-icon--transform, rotate(0deg));color:var(--r-list-item--trailing-icon--color, inherit)}.r-list-item--trailing-text{font-weight:var(--r-list-item--trailing-text--font-weight, 400);white-space:var(--r-list-item--trailing-text--white-space, nowrap)}.r-list-item--trailing ::slotted(*){display:var(--r-list-item--trailing-slotted--display, flex);gap:var(--r-list-item--trailing-slotted--display, var(--r-spacing-050, 0.5rem))}.r-list-item--text{display:var(--r-list-item--text--display, flex);flex-grow:var(--r-list-item--text--flex-grow, 1);flex-direction:var(--r-list-item--text--flex-direction, column);gap:var(--r-list-item--text--gap, 0.125rem);white-space:var(--r-list-item--text--white-space, normal);overflow:var(--r-list-item--text--overflow, hidden);text-overflow:var(--r-list-item--text--text-overflow, ellipsis);font-weight:var(--r-list-item--trailing-text--font-weight, inherit)}.r-list-item--sr-text{display:var(--r-list-item--sr-text--display, none)}.r-list-item--headline{font-size:var(--r-list-item--headline--font-size, 1rem);font-weight:var(--r-list-item--headline--font-weight, 600);line-height:var(--r-list-item--headline--line-height, 1.5);color:var(--r-list-item--headline--color, inherit)}.r-list-item--description{font-size:var(--r-list-item--description--font-size, 1rem);font-weight:var(--r-list-item--description--font-weight, 400);line-height:var(--r-list-item--description--line-height, 1.5);color:var(--r-list-item--description--color, var(--r-text-regular, #282828));white-space:var(--r-list-item--description--white-space, normal);overflow:var(--r-list-item--description--overflow, hidden);text-overflow:var(--r-list-item--description--text-overflow, ellipsis)}.r-list-item--description ::slotted(a){color:var(--r-list-item--description--color, inherit)}.r-list-item-wrapper{width:var(--r-list-item-wrapper--width, 100%)}.sub-items{margin:var(--r-sub-items--margin, 0);padding:var(--r-sub-items--padding, 0);list-style-type:var(--r-sub-items--list-style-type, "")}.sub-items[aria-hidden=true]{display:none}.visually-hidden{position:absolute;width:0.0625rem;height:0.0625rem;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;white-space:nowrap}@media (prefers-reduced-motion){.r-list-item--trailing-icon{transition:none}}';export{l as r_list_item}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,c as t,h as o,H as a,g as i}from"./p-CTxpqopm.js";const e=class{constructor(o){r(this,o),this.rChange=t(this,"rChange"),this.rReset=t(this,"rReset"),this.radioButtonClick=t(this,"radioButtonClick"),this.radioButtonKeydown=t(this,"radioButtonKeydown"),this.radioButtonDeselect=t(this,"radioButtonDeselect"),this.value=this.slotTextValue,this.autofocus=!1,this.uniqueId=`r-radio-button-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g,""),this.onClick=r=>{this.disabled||(r.stopPropagation(),r.preventDefault(),this.radioButtonClick.emit(r))},this.onKeydown=r=>{this.disabled||this.radioButtonKeydown.emit(r)},this.onFocus=()=>{this.host.classList.add("focused")},this.onBlur=()=>{this.host.classList.remove("focused")},this.applyAutofocus=()=>{queueMicrotask((()=>{this.setFocus()}))}}async setFocus(){var r;null===(r=this.nativeEl)||void 0===r||r.focus()}async setBlur(){var r;null===(r=this.nativeEl)||void 0===r||r.blur()}async select(){var r,t,o;if(this.checked)return;if(this.disabled)return;null===(r=this.radioElements)||void 0===r||r.forEach((r=>{r.checked=!1,r.shadowRoot.querySelector(".r-radio-button--input").setAttribute("tabindex","-1")})),this.checked=!0,null===(t=this.nativeEl)||void 0===t||t.setAttribute("tabindex","0"),null===(o=this.nativeEl)||void 0===o||o.focus();const{host:a,value:i,checked:e}=this;this.rChange.emit({element:a,value:i,checked:e})}get radioElements(){return this.groupEl?this.groupEl.querySelectorAll(":scope > r-radio-button"):this.parentFormEl?this.parentFormEl.querySelectorAll(`r-radio-button[name=${this.name}]`):document.querySelectorAll(`r-radio-button[name=${this.name}]`)}get slotTextValue(){return this.host.textContent||null}get groupEl(){return this.host.closest("r-radio-group")||null}get parentFormEl(){return this.host.closest("form")||null}get isLeading(){return void 0!==this.icon||null!==this.host.querySelector('[slot="leading"]')||null!==this.host.querySelector("r-radio-button-leading")}get isTrailing(){return null!==this.host.querySelector('[slot="trailing"]')||null!==this.host.querySelector("r-radio-button-trailing")}get shouldAutofocus(){return this.autofocus&&(!this.groupEl||!this.groupEl.autofocus)}componentWillLoad(){this.initialState||(this.initialState=this.checked),this.groupEl&&!this.name&&(this.name=this.groupEl.name)}componentDidLoad(){this.shouldAutofocus&&this.applyAutofocus()}render(){const{name:r,value:t,checked:i,disabled:e,hint:n,uniqueId:d,required:s,invalid:b,error:u,autofocus:l}=this;return o(a,{key:"cf6b1b5db202773a2c6eea4df6a9303275054a73"},o("label",{key:"4e203583a2b779e239c2893eadccc3514f84b0c4",class:"r-radio-button",onClick:this.onClick,onKeyDown:this.onKeydown},o("input",Object.assign({key:"14e89b050928abd51b66e8637c39bbd8da8e9856"},{type:"radio",tabindex:"-1",name:r,value:t,disabled:e,checked:i,required:s,autofocus:l},{id:`${d}-input`,class:"r-radio-button--input",ref:r=>this.nativeEl=r,onFocus:this.onFocus,onBlur:this.onBlur})),o("span",{key:"ee55afd60c5dbb947e9c12fffc401f7acfcefada",class:"r-radio-button--box"}),this.isLeading&&o("div",{key:"eabd27b399dee0bc2cef0fb7a92adad55095708b",class:"r-radio-button--leading"},o("slot",{key:"5ec99653141268456cf9c8b2398f70c7b1afd36d",name:"leading"},this.icon&&o("r-icon",{key:"47662e84ad1aac02e867ddd040b5b7e1890ba986",name:this.icon,size:"m"}))),o("div",{key:"bcaaf67c6cdf95a0bfa0dd5784d69c237e551a0e",class:"r-radio-button--text"},o("slot",{key:"a54f1823afe368d85f9bd4743ac0aa1df7298049",name:"title"},o("div",{key:"b531b659b920d7f064f10e622b83099d14270935",style:{display:"contents"}},o("slot",{key:"b51f3e83234681804c49cb1043d90de70e4929db"}))),o("slot",{key:"d217abfd3675898afd5b41a543200f7104019aed",name:"description"},this.description)),this.isTrailing&&o("div",{key:"664ddcc19dba3029343532caa13b05a6e3834977",class:"r-radio-button--trailing"},o("slot",{key:"b4ec626236a01c9c74b20ae09194ea414bc7699c",name:"trailing"}))),b&&u&&o("r-hint",{key:"bd60d4337984662f410613b470b6e3be695343f5",role:"alert",variant:"error",id:`${d}-hint`},this.error),n&&o("r-hint",{key:"31c5712fe6f2164219e28484a40ce5452a836743",role:"note",variant:"information",id:`${d}-hint`},n))}get host(){return i(this)}};e.style=':host{display:inline-flex;outline:none;position:relative;pointer-events:auto;border:0.0625rem solid transparent;cursor:pointer;min-width:17.5rem}:host slot{display:contents}:host(:hover:not([disabled]:not([disabled=false])):not([checked]:not([checked=false]))){--r-radio-button--cursor:pointer;--r-radio-button--box--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04))}:host(:active:not([disabled]:not([disabled=false])):not([checked]:not([checked=false]))){--r-radio-button--box--border-color:var(--r-border-regular, #282828);--r-radio-button--box--background-color:var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12))}:host(:focus-within),:host(.focused){--r-radio-button--box--box-shadow:0 0 0 4px var(--r-border-focused-outlined, #fff);--r-radio-button--box--outline:2px solid var(--r-border-focused, #0071e3);--r-radio-button--box--outline-offset:1px}:host([checked]:not([checked=false])),:host([checked]:not([checked=false]):hover){cursor:default;--r-radio-button--box--border-color:var(--r-border-regular, #282828);--r-radio-button--box--background-color:var(--r-background-interactive-softest, #fff);--r-radio-button--marker--transform:scale(1)}:host([invalid]:not([invalid=false])),:host([invalid]:not([invalid=false])[checked]:not([checked=false])){--r-radio-button--box--border-color:var(--r-status-error-regular, #b00c15);--r-radio-button--box--background-color:var(--r-status-error-soft, #fef6f6)}:host([disabled]:not([disabled=false])){--r-radio-button--box--opacity:0.4;cursor:not-allowed}.r-radio-button{display:var(--r-radio-button--display, flex);flex:var(--r-radio-button--flex, 1);gap:var(--r-radio-button--gap, var(--r-spacing-075, 0.75rem));position:var(--r-radio-button--position, relative);min-height:var(--r-radio-button--min-height, 24px);user-select:var(--r-radio-button--user-select, none);box-sizing:var(--r-radio-button--box-sizing, border-box);font-family:var(--r-radio-button--font-family, var(--r-font-family-text, system-ui));font-size:var(--r-radio-button--font-size, var(--r-font-size-400, 1rem));line-height:var(--r-radio-button--line-height, var(--r-line-height-m, 1.5rem));text-align:var(--r-radio-button--text-align, left);color:var(--r-radio-button--color, var(--r-text-regular, #282828));opacity:var(--r-radio-button--opacity, 1);box-shadow:var(--r-radio-button--box-shadow, none);outline:var(--r-radio-button--outline, none);cursor:var(--r-radio-button--cursor, inherit);padding:var(--r-radio-button--padding, var(--r-spacing-100, 1rem));margin:var(--r-radio-button--margin, 0);background-color:var(--r-radio-button--background-color, transparent);border-color:var(--r-radio-button--border-color, transparent);border-width:var(--r-radio-button--border-width, 0);border-style:var(--r-radio-button--border-style, solid)}.r-radio-button--input{position:var(--r-radio-button--input--position, absolute);z-index:var(--r-radio-button--input--z-index, -1);opacity:var(--r-radio-button--input--opacity, 0)}.r-radio-button--box{position:var(--r-radio-button--box--position, relative);display:var(--r-radio-button--box--display, block);top:var(--r-radio-button--box--top, 0);left:var(--r-radio-button--box--left, 0);width:var(--r-radio-button--box--width, 1.5rem);height:var(--r-radio-button--box--height, 1.5rem);background-color:var(--r-radio-button--box--background-color, var(--r-background-interactive-softest, #fff));border-width:var(--r-radio-button--box--border-width, 0.0625rem);border-style:var(--r-radio-button--box--border-style, solid);border-color:var(--r-radio-button--box--border-color, var(--r-border-soft, #686868));border-radius:var(--r-radio-button--box--border-radius, 50%);box-sizing:var(--r-radio-button--box--box-sizing, border-box);box-shadow:var(--r-radio-button--box--box-shadow, none);outline:var(--r-radio-button--box--outline, none);outline-offset:var(--r-radio-button--box--outline-offset, 0);cursor:var(--r-radio-button--box--cursor, inherit);opacity:var(--r-radio-button--box--opacity, 1)}.r-radio-button--box::before{content:var(--r-radio-button--marker--content, "");display:var(--r-radio-button--marker--display, block);width:var(--r-radio-button--marker--width, 0.75rem);height:var(--r-radio-button--marker--height, 0.75rem);position:var(--r-radio-button--marker--position, absolute);top:var(--r-radio-button--marker--top, calc(50% - 0.375rem));left:var(--r-radio-button--marker--left, calc(50% - 0.375rem));border-radius:var(--r-radio-button--marker--border-radius, 50%);background-color:var(--r-radio-button--marker--background-color, var(--r-background-interactive-regular, #282828));transition:var(--r-radio-button--marker--transition, 0.1s all);transform:var(--r-radio-button--marker--transform, scale(0));transform-origin:var(--r-radio-button--marker--transform-origin, center)}.r-radio-button--text{flex:var(--r-radio-button--text--flex, 1);display:var(--r-radio-button--text--display, flex);flex-direction:var(--r-radio-button--text--flex-direction, column);gap:var(--r-radio-button--text--gap, var(--r-spacing-025, 0.25rem));font-weight:var(--r-radio-button--text--font-weight, var(--r-font-weight-semibold, 600))}.r-radio-button--leading{min-height:var(--r-radio-button--leading--min-height, var(--r-spacing-150, 1.5rem));min-width:var(--r-radio-button--leading--min-width, calc(var(--r-spacing-150, 1.5rem) + 2 * var(--r-spacing-075, 0.75rem)));color:var(--r-radio-button--leading--color, var(--r-icon-soft, #686868));display:var(--r-radio-button--leading--display, flex);justify-content:var(--r-radio-button--leading--justify-content, center);align-items:var(--r-radio-button--leading--align-items, start)}';export{e as r_radio_button}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,h as o,H as e,g as s}from"./p-CTxpqopm.js";const t=class{constructor(o){r(this,o),this.designTokens=!1}renderDesignTokens(){return o(e,null,["r-color-green-vanguard","r-color-grey-charcoal","r-color-white-haze","r-color-orange-ember"].map((r=>o("div",{style:{backgroundColor:`var(--${r})`}},"This text should have ",o("code",null,r)," background color"))))}render(){return this.designTokens?this.renderDesignTokens():o(e,null)}get el(){return s(this)}};export{t as r_design_system_devtools}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as t}from"./p-4Uv3PpKT.js";const e=new Map,r=new WeakMap,n="--r-internal-theme-state",a=(a,o)=>{if(!o||!a)return;const s=r.get(o);if(null==s?void 0:s.has(a))return;s?s.add(a):r.set(o,new Set([a]));let i=e.get(o);if(i){const t=window.getComputedStyle(o).getPropertyValue(n),e=l(t);a.setAttribute("data-theme","dark"===e?"light":"dark")}else{const a=t=>{const e=t[0];if(!e)return;const n="dark"===l(e.value)?"light":"dark",a=r.get(o);null==a||a.forEach((t=>{t.setAttribute("data-theme",n)}))};i=new t(a,{target:o,properties:n}),e.set(o,i);const s=window.getComputedStyle(o).getPropertyValue(n);a([{target:o,property:n,value:s,oldValue:null}])}},o=(t,n)=>{if(!n||!t)return;const a=r.get(n);a&&a.has(t)&&(a.delete(t),0===a.size)&&(r.delete(n),e.get(n)&&e.delete(n))},l=t=>"dark"===(null==t?void 0:t.trim())?"dark":"light";export{o as a,a as s}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.t=t)},o=(t,e)=>e in t,l=(t,e)=>(0,console.error)(t,e),i=new Map,s=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="http://www.w3.org/1999/xlink",u="undefined"!=typeof window?window:{},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),h=!!d&&(()=>!!u.document&&Object.getOwnPropertyDescriptor(u.document.adoptedStyleSheets,"length").writable)(),p=!1,v=[],m=[],y=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&a.o?$(b):a.raf(b))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},b=()=>{w(v),w(m),(p=v.length>0)&&a.raf(b)},$=t=>f().then(t),g=y(m,!0),S=t=>"object"==(t=typeof t)||"function"===t;function j(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>C,unwrapErr:()=>M});var k=t=>({isOk:!0,isErr:!1,value:t}),O=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>k(t))):k(n)}if(t.isErr)return O(t.value);throw"should never get here"}var x,C=t=>{if(t.isOk)return t.value;throw t.value},M=t=>{if(t.isErr)return t.value;throw t.value};function P(){const t=this.attachShadow({mode:"open"});void 0===x&&(x=null),x&&(h?t.adoptedStyleSheets.push(x):t.adoptedStyleSheets=[...t.adoptedStyleSheets,x])}var N=new WeakMap,R=t=>"sc-"+t.i,D=(t,e,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!S(o))&&(o+=""),i&&s?r[r.length-1].u+=o:r.push(i?U(null,o):o),s=i)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,r,A);const u=U(t,null);return u.h=e,r.length>0&&(u.p=r),u.v=l,u},U=(t,e)=>({o:0,m:t,u:e,$:null,p:null,h:null,v:null}),W={},A={forEach:(t,e)=>t.map(F).forEach(e),map:(t,e)=>t.map(F).map(e).map(H)},F=t=>({vattrs:t.h,vchildren:t.p,vkey:t.v,vname:t.S,vtag:t.m,vtext:t.u}),H=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),D(t.vtag,e,...t.vchildren||[])}const e=U(t.vtag,t.vtext);return e.h=t.vattrs,e.p=t.vchildren,e.v=t.vkey,e.S=t.vname,e},L=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};L("::slotted"),L(":host"),L(":host-context");var T,q=(t,e)=>null==t||S(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,z=t=>{var n;return null==(n=e(t))?void 0:n.$hostElement$},V=(t,e)=>{const n=z(t);return{emit:t=>G(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},G=(t,e,n)=>{const o=a.ce(e,n);return t.dispatchEvent(o),o},I=(t,e,n,l,i,s)=>{if(n===l)return;let r=o(t,e),f=e.toLowerCase();if("class"===e){const e=t.classList,o=_(n);let i=_(l);e.remove(...o.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&l(t);else if(r||"o"!==e[0]||"n"!==e[1]){const o=S(l);if((r||o&&null!==l)&&!i)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}let u=!1;f!==(f=f.replace(/^xlink\:?/,""))&&(e=f,u=!0),null==l||!1===l?!1===l&&""!==t.getAttribute(e)||(u?t.removeAttributeNS(c,e):t.removeAttribute(e)):(!r||4&s||i)&&!o&&1===t.nodeType&&(l=!0===l?"":l,u?t.setAttributeNS(c,e,l):t.setAttribute(e,l))}else if(e="-"===e[2]?e.slice(3):o(u,f)?f.slice(2):f[2]+e.slice(3),n||l){const o=e.endsWith(B);e=e.replace(J,""),n&&a.rel(t,e,n,o),l&&a.ael(t,e,l,o)}},Y=/\s/,_=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Y):[]),B="Capture",J=RegExp(B+"$"),K=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.h||{},i=e.h||{};for(const t of Q(Object.keys(l)))t in i||I(o,t,l[t],void 0,n,e.o);for(const t of Q(Object.keys(i)))I(o,t,l[t],i[t],n,e.o)};function Q(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var X=!1,Z=(t,e,n)=>{const o=e.p[n];let l,i,s=0;if(null!==o.u)l=o.$=u.document.createTextNode(o.u);else{if(X||(X="svg"===o.m),!u.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.$=u.document.createElementNS(X?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),X&&"foreignObject"===o.m&&(X=!1),K(null,o,X),o.p)for(s=0;s<o.p.length;++s)i=Z(t,o,s),i&&l.appendChild(i);"svg"===o.m?X=!1:"foreignObject"===l.tagName&&(X=!0)}return l["s-hn"]=T,l},tt=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===T&&(r=r.shadowRoot);l<=i;++l)o[l]&&(s=Z(null,n,l),s&&(o[l].$=s,it(r,s,e)))},et=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;lt(e),t&&t.remove()}}},nt=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.v&&e.v&&(t.v=e.v),!0):t.v===e.v),ot=(t,e,n=!1)=>{const o=e.$=t.$,l=t.p,i=e.p,s=e.m,r=e.u;null===r?(K(t,e,X="svg"===s||"foreignObject"!==s&&X),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,v=o[0],m=o[p];for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==v)v=o[++c];else if(null==m)m=o[--p];else if(nt(d,v,l))ot(d,v,l),d=e[++r],v=o[++c];else if(nt(h,m,l))ot(h,m,l),h=e[--f],m=o[--p];else if(nt(d,m,l))ot(d,m,l),it(t,d.$,h.$.nextSibling),d=e[++r],m=o[--p];else if(nt(h,v,l))ot(h,v,l),it(t,h.$,d.$),h=e[--f],v=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].v&&e[a].v===v.v){u=a;break}u>=0?(s=e[u],s.m!==v.m?i=Z(e&&e[c],n,u):(ot(s,v,l),e[u]=void 0,i=s.$),v=o[++c]):(i=Z(e&&e[c],n,c),v=o[++c]),i&&it(d.$.parentNode,i,d.$)}r>f?tt(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&et(e,r,f)})(o,l,e,i,n):null!==i?(null!==t.u&&(o.textContent=""),tt(o,null,e,i,0,i.length-1)):!n&&null!==l&&et(l,0,l.length-1),X&&"svg"===s&&(X=!1)):t.u!==r&&(o.data=r)},lt=t=>{t.h&&t.h.ref&&t.h.ref(null),t.p&&t.p.map(lt)},it=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),st=(t,e)=>{if(e&&!t.j&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.j=()=>{e["s-p"].splice(n-1,1),o()})))}},rt=(t,e)=>{if(t.o|=16,4&t.o)return void(t.o|=512);st(t,t.k);const n=()=>ct(t,e);if(!e)return g(n);queueMicrotask((()=>{n()}))},ct=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.o|=256,t.O&&(t.O.map((([t,e])=>vt(o,t,e,n))),t.O=void 0),l=vt(o,"componentWillLoad",void 0,n)):l=vt(o,"componentWillUpdate",void 0,n),l=ut(l,(()=>vt(o,"componentWillRender",void 0,n))),ut(l,(()=>ft(t,o,e)))},ut=(t,e)=>at(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),at=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,ft=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.C,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=R(e),l=s.get(o);if(!u.document)return o;if(t=11===t.nodeType?t:u.document,l)if("string"==typeof l){let i,s=N.get(t=t.head||t);if(s||N.set(t,s=new Set),!s.has(o)){{i=u.document.createElement("style"),i.innerHTML=l;const o=null!=(n=a.M)?n:j(u.document);if(null!=o&&i.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),h?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(i)}else t.append(i);1&e.o&&t.insertBefore(i,null)}4&e.o&&(i.innerHTML+=r),s&&s.add(o)}}else t.adoptedStyleSheets.includes(l)||(h?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);dt(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>ht(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},dt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.C,i=t.P||U(null,null),s=(t=>t&&t.m===W)(e)?e:D(null,null,e);if(T=o.tagName,l.N&&(s.h=s.h||{},l.N.map((([t,e])=>s.h[e]=o[t]))),n&&s.h)for(const t of Object.keys(s.h))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.h[t]=o[t]);s.m=null,s.o|=4,t.P=s,s.$=i.$=o.shadowRoot||o,ot(i,s,n)})(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},ht=t=>{const e=t.$hostElement$,n=t.t,o=t.k;vt(n,"componentDidRender",void 0,e),64&t.o?vt(n,"componentDidUpdate",void 0,e):(t.o|=64,mt(e),vt(n,"componentDidLoad",void 0,e),t.R(e),o||pt()),t.D(e),t.j&&(t.j(),t.j=void 0),512&t.o&&$((()=>rt(t,!1))),t.o&=-517},pt=()=>{$((()=>G(u,"appload",{detail:{namespace:"web-components"}})))},vt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},mt=t=>t.classList.add("hydrated"),yt=(t,n,o,i)=>{const s=e(t);if(!s)return;if(!s)throw Error(`Couldn't find host element for "${i.i}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=s.$hostElement$,c=s.U.get(n),u=s.o,a=s.t;if(o=q(o,i.W[n][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(s.U.set(n,o),a)){if(i.A&&128&u){const t=i.A[n];t&&t.map((t=>{try{a[t](o,c,n)}catch(t){l(t,r)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,c,n))return;rt(s,!1)}}},wt=(t,n,o)=>{var l,i;const s=t.prototype;if(n.W||n.A||t.watchers){t.watchers&&!n.A&&(n.A=t.watchers);const r=Object.entries(null!=(l=n.W)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};i&&(n.W[t][0]|=2048),r&&(n.W[t][0]|=4096),(1&o||!i)&&Object.defineProperty(s,t,{get(){{if(!(2048&n.W[t][0]))return((t,n)=>e(this).U.get(n))(0,t);const o=e(this),l=o?o.t:s;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(i){const s=e(this);if(s){if(r){const e=32&l?this[t]:s.$hostElement$[t];return void 0===e&&s.U.get(t)?i=s.U.get(t):!s.U.get(t)&&e&&s.U.set(t,e),r.call(this,q(i,l)),void yt(this,t,i=32&l?this[t]:s.$hostElement$[t],n)}{if(!(1&o&&4096&n.W[t][0]))return yt(this,t,i,n),void(1&o&&!s.t&&s.F.then((()=>{4096&n.W[t][0]&&s.t[t]!==s.U.get(t)&&(s.t[t]=i)})));const e=()=>{const e=s.t[t];!s.U.get(t)&&e&&s.U.set(t,e),s.t[t]=q(i,l),yt(this,t,s.t[t],n)};s.t?e():s.F.then((()=>e()))}}}})}else 1&o&&64&l&&Object.defineProperty(s,t,{value(...n){var o;const l=e(this);return null==(o=null==l?void 0:l.H)?void 0:o.then((()=>{var e;return null==(e=l.t)?void 0:e[t](...n)}))}})})),1&o){const o=new Map;s.attributeChangedCallback=function(t,l,i){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))i=this[c],delete this[c];else{if(s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const o=e(this),s=null==o?void 0:o.o;if(o&&s&&!(8&s)&&128&s&&i!==l){const e=o.t,s=null==(r=n.A)?void 0:r[t];null==s||s.forEach((n=>{null!=e[n]&&e[n].call(e,i,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(s,c);(i=(null!==i||"boolean"!=typeof this[c])&&i)===this[c]||u.get&&!u.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=n.A)?i:{}),...r.filter((([t,e])=>31&e[0])).map((([t,e])=>{var l;const i=e[1]||t;return o.set(i,t),512&e[0]&&(null==(l=n.N)||l.push([t,i])),i}))]))}}return t},bt=(t,e)=>{vt(t,"connectedCallback",void 0,e)},$t=(t,e)=>{vt(t,"disconnectedCallback",void 0,e||t)},gt=(t,n={})=>{var o;if(!u.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const c=[],f=n.exclude||[],h=u.customElements,p=u.document.head,v=p.querySelector("meta[charset]"),m=u.document.createElement("style"),y=[];let w,b=!0;Object.assign(a,n),a.l=new URL(n.resourcesUrl||"./",u.document.baseURI).href;let $=!1;if(t.map((t=>{t[1].map((n=>{var o;const r={o:n[0],i:n[1],W:n[2],L:n[3]};4&r.o&&($=!0),r.W=n[2],r.L=n[3],r.N=[],r.A=null!=(o=n[4])?o:{};const u=r.i,p=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,C:e,U:new Map};n.H=new Promise((t=>n.D=t)),n.F=new Promise((t=>n.R=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,r),1&r.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.i}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else P.call(t,r)}connectedCallback(){const t=e(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,jt(this,t,r.L)),w&&(clearTimeout(w),w=null),b?y.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const n=e(t);if(!n)return;const o=n.C,r=()=>{};if(1&n.o)jt(t,n,o.L),(null==n?void 0:n.t)?bt(n.t,t):(null==n?void 0:n.F)&&n.F.then((()=>bt(n.t,t)));else{n.o|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){st(n,n.k=e);break}}o.W&&Object.entries(o.W).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.T){const s=((t,e)=>{const n=t.i.replace(/-/g,"_"),o=t.T;if(!o)return;const s=i.get(o);return s?s[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(s&&"then"in s){const t=()=>{};o=await s,t()}else o=s;if(!o)throw Error(`Constructor for "${n.i}#${e.q}" was not found`);o.isProxied||(n.A=o.watchers,wt(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,e.o|=128,r(),bt(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=R(n);if(!s.has(e)){const o=()=>{};((t,e,n)=>{let o=s.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,s.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.k,c=()=>rt(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,n,o)}r()}})(this))))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const n=e(t);(null==n?void 0:n.V)&&(n.V.map((t=>t())),n.V=void 0),(null==n?void 0:n.t)?$t(n.t,t):(null==n?void 0:n.F)&&n.F.then((()=>$t(n.t,t)))}N.has(t)&&N.delete(t),t.shadowRoot&&N.has(t.shadowRoot)&&N.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const n=e(this);if(!n)return;const o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==n?void 0:n.P)?void 0:t.$)instanceof Node&&!n.P.$.isConnected&&delete n.P.$}))}componentOnReady(){var t;return null==(t=e(this))?void 0:t.F}};r.T=t[0],f.includes(u)||h.get(u)||(c.push(u),h.define(u,wt(p,r,1)))}))})),c.length>0&&($&&(m.textContent+=r),m.textContent+=c.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const t=null!=(o=a.M)?o:j(u.document);null!=t&&m.setAttribute("nonce",t),p.insertBefore(m,v?v.nextSibling:p.firstChild)}b=!1,y.length?y.map((t=>t.connectedCallback())):a.jmp((()=>w=setTimeout(pt,30)))},St=(t,e)=>e,jt=(t,e,n)=>{n&&u.document&&n.map((([n,o,l])=>{const i=Ot(u.document,t,n),s=kt(e,l),r=Et(n);a.ael(i,o,s,r),(e.V=e.V||[]).push((()=>a.rel(i,o,s,r)))}))},kt=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.O=t.O||[]).push([e,n])}catch(e){l(e,t.$hostElement$)}},Ot=(t,e,n)=>4&n?t:8&n?u:e,Et=t=>({passive:!!(1&t),capture:!!(2&t)}),xt=t=>a.M=t;export{St as F,W as H,gt as b,V as c,z as g,D as h,f as p,n as r,xt as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o=()=>{};export{o as g}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function o(o,n){var i,c,e;const t=Array.isArray(o)?o:[o];for(const o of t){const t=o.name;if(!t)continue;if(o.disabled)continue;const f=null===(c=null===(i=o.tagName)||void 0===i?void 0:i.toUpperCase)||void 0===c?void 0:c.call(i);if("BUTTON"===f||"FIELDSET"===f)continue;let u="";switch(o.type){case"checkbox":case"radio":if(!o.checked)continue;u=o.value||"on";break;case"file":if(o.files&&o.files.length>0){for(const i of o.files)n.append(t,i);continue}n.append(t,new File([],""));continue;default:u=null!==(e=o.value)&&void 0!==e?e:""}n.append(t,u)}}export{o as a}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,g as a}from"./p-CTxpqopm.js";const r=class{constructor(s){t(this,s),this.rChange=i(this,"rChange"),this.activeTab=null}get tabElements(){var t;return null===(t=this.host.querySelector("r-tabs-list"))||void 0===t?void 0:t.querySelectorAll("r-tab")}get panelElements(){return this.host.querySelectorAll(":scope > r-tab-panel")}get activeTabElement(){return this.activeTab||this.host.querySelector("r-tab[active]")}get hasActiveTabElement(){return null!==this.activeTabElement}get isActiveTabElementDisabled(){var t;return(null===(t=this.activeTabElement)||void 0===t?void 0:t.disabled)||!1}get isStructureCorrect(){var t,i;return Boolean((null===(t=this.tabElements)||void 0===t?void 0:t.length)&&(null===(i=this.panelElements)||void 0===i?void 0:i.length))}get isMissingPanel(){var t,i;return(null===(t=this.panelElements)||void 0===t?void 0:t.length)<(null===(i=this.tabElements)||void 0===i?void 0:i.length)}get isDisabledPanel(){return Boolean(Array.from(this.panelElements).find((t=>t.hasAttribute("disabled"))))}_disableTabIfPanelMissing(){var t;this.isMissingPanel&&(null===(t=this.tabElements)||void 0===t||t.forEach(((t,i)=>{if(!this.panelElements[i])return t.disabled=!0,void t.setAttribute("disabled","true")})))}get tabGroupsAmount(){return document.querySelectorAll("r-tabs").length}markGroupsWithIndex(){document.querySelectorAll("r-tabs").forEach(((t,i)=>{t.setAttribute("data-group",`${i}`)}))}_connectTabsAndPanelsById(){this.markGroupsWithIndex(),this.tabElements.forEach(((t,i)=>{var s,e;const a=this.transliterateToKebabCase(t.textContent),r=`r-tab-${a}`,n=`r-tab-panel-${a}`;return t.setAttribute("id",r),t.setAttribute("panel-id",n),null===(s=this.panelElements[i])||void 0===s||s.setAttribute("tab-id",r),null===(e=this.panelElements[i])||void 0===e||e.setAttribute("id",n),this}))}_disableTabIfPanelDisabled(){this.isDisabledPanel&&this.panelElements.forEach((t=>{t.hasAttribute("disabled")&&Array.from(this.tabElements).find((i=>i.getAttribute("id")===t.getAttribute("tab-id"))).setAttribute("disabled","true")}))}transliterateToKebabCase(t){let i=t.normalize("NFD").replace(/[\u0300-\u036f]/g,"");return i=i.replace(/ß/g,"ss").replace(/æ/g,"ae").replace(/ø/g,"o").replace(/đ/g,"d").replace(/ł/g,"l"),i=i.toLowerCase(),i=i.replace(/[ _]+/g,"-"),i=i.replace(/[^a-z0-9-]/g,""),i=i.replace(/-+/g,"-").replace(/^-+|-+$/g,""),i}get tabIdFromUrl(){return new URL(window.location.href).searchParams.get("tab")||null}get tabsGroupFromUrl(){return new URL(window.location.href).searchParams.get("tabs-group")||"0"}get groupFromData(){return this.host.getAttribute("data-group")}_getTabElFromUrl(){if(!this.navigation)return;if(this.groupFromData!==this.tabsGroupFromUrl)return;return Array.from(this.tabElements).find((t=>t.id===this.tabIdFromUrl))||null}_defineInitiallyActiveTab(){return this.tabIdFromUrl?this._getTabElFromUrl():this.hasActiveTabElement&&!this.isActiveTabElementDisabled?this.activeTabElement:this.host.querySelector("r-tab:not([disabled])")}_selectInitialTabAndPanel(){const t=this._defineInitiallyActiveTab();t&&this._selectTab(t)}_selectTab(t){this.activeTab=t,this.tabElements.forEach((i=>{i.active=i.id===t.id,i.active?i.setAttribute("active",""):i.removeAttribute("active")})),this.panelElements.forEach((i=>{i.active=i.id===t.panelId,i.active?i.setAttribute("active",""):i.removeAttribute("active")})),this.tabIdFromUrl&&this.host.scrollIntoView({behavior:"smooth"})}handlePopState(t){var i,s;if(!this.navigation)return;const e=null===(i=t.state)||void 0===i?void 0:i.tabId,a=(null===(s=t.state)||void 0===s?void 0:s.tabsGroup)===this.host.getAttribute("data-group");if(e||window.location.reload(),!a)return;const r=Array.from(this.tabElements).find((t=>t.id===e));r&&this._selectTab(r)}handleHistory(t){const i=t.getAttribute("id"),s=t.closest("r-tabs").getAttribute("data-group"),e=new URL(window.location.href);e.searchParams.set("tab",i),this.tabGroupsAmount>1&&e.searchParams.set("tabs-group",s),history.pushState({tabId:i,tabsGroup:s},"",e.toString())}_changeFocusTab(t,i){const s=Array.from(this.tabElements).filter((t=>!t.disabled)),e=s.indexOf(t);let a;switch(i){case"ArrowLeft":a=0===e?s[s.length-1]:s[e-1];break;case"ArrowRight":a=e===s.length-1?s[0]:s[e+1];break;case"Home":a=s[0];break;case"End":a=s[s.length-1]}a&&(a.focus(),this.scrollTabIntoView(a))}scrollTabIntoView(t){var i;const s=this.host.querySelector("r-tabs-list");if(!s)return;const e=null===(i=s.shadowRoot)||void 0===i?void 0:i.querySelector(".r-tabs-list--tabs-container");if(!e)return;const a=e.getBoundingClientRect(),r=t.getBoundingClientRect();r.left>=a.left-1&&r.right<=a.right+1||e.scrollBy({left:r.left-a.left-a.width/2+r.width/2,behavior:"smooth"})}tabChangeAction(t){t.stopPropagation();const i=t.target;this._selectTab(i),this.navigation&&this.handleHistory(i),this.rChange.emit({element:i})}componentWillLoad(){this.isStructureCorrect&&(this._disableTabIfPanelMissing(),this._connectTabsAndPanelsById(),this._disableTabIfPanelDisabled(),this._selectInitialTabAndPanel())}connectedCallback(){window.addEventListener("popstate",this.handlePopState.bind(this))}disconnectedCallback(){window.removeEventListener("popstate",this.handlePopState.bind(this))}moveTabFocusAction(t){t.stopPropagation(),this._changeFocusTab(t.target,t.detail.keycode)}render(){return s(e,{key:"0737bf78e596f8fb9d4a2ec10f1503d1072f2683",class:"r-tabs"},s("slot",{key:"5bc87b17930c9ea159ef29335c6b11f0f4c7d43e"}))}get host(){return a(this)}};r.style=":host{display:block;margin-top:var(--r-spacing-150, 1.5rem)}";export{r as r_tabs}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,h as a,H as e}from"./p-CTxpqopm.js";const o=class{constructor(a){r(this,a),this.iconVisible=!1}get iconName(){switch(this.variant){case"information":default:return"circled-information-i";case"success":return"circled-check";case"warning":return"triangle-with-exclamation-mark";case"error":return"circled-exclamation-mark"}}render(){const{variant:r,iconVisible:o,iconAriaLabel:t}=this;return a(e,Object.assign({key:"414f16e5a8bde16b295420ea689be3b528b6b9d7"},{variant:r}),a("div",{key:"d06b6b22be283666817326c82503080c247b3cb7",class:"r-badge"},o&&a("slot",{key:"38e1c8768bbc6560294f798ba635bb6a1ecd5ee1",name:"icon"},a("r-icon",{key:"da0d4672b3fd929deb32944faeb2cf6676dd0751",size:"s",name:this.iconName,iconAriaLabel:t})),a("slot",{key:"f0c3ce3e33ddb887af28e03cbd9af75f0fe0346e"})))}};o.style=":host([variant=information]){--r-badge--icon--color:var(--r-status-info-regular, #3e5c73);--r-badge--border-color:var(--r-status-info-regular, #3e5c73);--r-badge--background-color:var(--r-status-info-soft, #f8fafb)}:host([variant=success]){--r-badge--icon--color:var(--r-status-success-regular, #298535);--r-badge--border-color:var(--r-status-success-regular, #298535);--r-badge--background-color:var(--r-status-success-soft, #f7fdf8)}:host([variant=warning]){--r-badge--icon--color:var(--r-status-warning-regular, #ff7429);--r-badge--border-color:var(--r-status-warning-regular, #ff7429);--r-badge--background-color:var(--r-status-warning-soft, #fef9f5)}:host([variant=error]){--r-badge--icon--color:var(--r-status-error-regular, #b00c15);--r-badge--border-color:var(--r-status-error-regular, #b00c15);--r-badge--background-color:var(--r-status-error-soft, #fef6f6)}:host{display:var(--display, inline-flex);line-height:var(--line-height, var(--r-line-height-s, 1.2))}.r-badge{display:var(--r-badge--display, inline-flex);justify-content:var(--r-badge--justify-content, center);align-items:var(--r-badge--align-items, center);gap:var(--r-badge--gap, var(--r-spacing-025, 0.25rem));padding:var(--r-badge--padding, 0.05rem 0.5rem);margin:var(--r-badge--margin, 0);color:var(--r-badge--text--color, var(--r-text-regular, #282828));border-width:var(--r-badge--border-width, 1.2px);border-style:var(--r-badge--border-style, solid);border-color:var(--r-badge--border-color, var(--r-status-info-regular, #3e5c73));border-radius:var(--r-badge--border-radius, var(--r-spacing-150, 1.5rem));background-color:var(--r-badge--background-color, var(--r-status-info-soft, #f8fafb));box-sizing:var(--r-badge--box-sizing, border-box);font-family:var(--r-badge--font-family, var(--r-font-family-text, system-ui));font-weight:var(--r-badge--font-weight, var(--r-font-weight-regular, 400));font-size:var(--r-badge--font-size, var(--r-font-size-300, 0.875rem));line-height:var(--r-badge--line-height, var(--r-line-height-m, 1.5));text-transform:var(--r-badge--text-transform, none)}.r-badge slot[name=icon]{color:var(--r-badge--icon--color, var(--r-status-info-regular, #3e5c73))}";export{o as r_badge}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,F as r,H as n,g as a}from"./p-CTxpqopm.js";import{a as s}from"./p-DvLT8-y3.js";function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var u,h,d={exports:{}},c=(u||(u=1,d.exports=function(){var t=6e4,i=36e5,e="millisecond",r="second",n="minute",a="hour",s="day",o="week",u="month",h="quarter",d="year",c="date",l="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var i=["th","st","nd","rd"],e=t%100;return"["+t+(i[(e-20)%10]||i[e]||i[0])+"]"}},g=function(t,i,e){var r=String(t);return!r||r.length>=i?t:""+Array(i+1-r.length).join(e)+t},m={s:g,z:function(t){var i=-t.utcOffset(),e=Math.abs(i),r=Math.floor(e/60),n=e%60;return(i<=0?"+":"-")+g(r,2,"0")+":"+g(n,2,"0")},m:function t(i,e){if(i.date()<e.date())return-t(e,i);var r=12*(e.year()-i.year())+(e.month()-i.month()),n=i.clone().add(r,u),a=e-n<0,s=i.clone().add(r+(a?-1:1),u);return+(-(r+(e-n)/(a?n-s:s-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:d,w:o,d:s,D:c,h:a,m:n,s:r,ms:e,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",y={};y[b]=v;var M="$isDayjsObject",w=function(t){return t instanceof x||!(!t||!t[M])},D=function t(i,e,r){var n;if(!i)return b;if("string"==typeof i){var a=i.toLowerCase();y[a]&&(n=a),e&&(y[a]=e,n=a);var s=i.split("-");if(!n&&s.length>1)return t(s[0])}else{var o=i.name;y[o]=i,n=o}return!r&&n&&(b=n),n||!r&&b},Y=function(t,i){if(w(t))return t.clone();var e="object"==typeof i?i:{};return e.date=t,e.args=arguments,new x(e)},k=m;k.l=D,k.i=w,k.w=function(t,i){return Y(t,{locale:i.$L,utc:i.$u,x:i.$x,$offset:i.$offset})};var x=function(){function v(t){this.$L=D(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[M]=!0}var g=v.prototype;return g.parse=function(t){this.$d=function(t){var i=t.date,e=t.utc;if(null===i)return new Date(NaN);if(k.u(i))return new Date;if(i instanceof Date)return new Date(i);if("string"==typeof i&&!/Z$/i.test(i)){var r=i.match(f);if(r){var n=r[2]-1||0,a=(r[7]||"0").substring(0,3);return e?new Date(Date.UTC(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(i)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===l)},g.isSame=function(t,i){var e=Y(t);return this.startOf(i)<=e&&e<=this.endOf(i)},g.isAfter=function(t,i){return Y(t)<this.startOf(i)},g.isBefore=function(t,i){return this.endOf(i)<Y(t)},g.$g=function(t,i,e){return k.u(t)?this[i]:this.set(e,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,i){var e=this,h=!!k.u(i)||i,l=k.p(t),f=function(t,i){var r=k.w(e.$u?Date.UTC(e.$y,i,t):new Date(e.$y,i,t),e);return h?r:r.endOf(s)},p=function(t,i){return k.w(e.toDate()[t].apply(e.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(i)),e)},v=this.$W,g=this.$M,m=this.$D,b="set"+(this.$u?"UTC":"");switch(l){case d:return h?f(1,0):f(31,11);case u:return h?f(1,g):f(0,g+1);case o:var y=this.$locale().weekStart||0,M=(v<y?v+7:v)-y;return f(h?m-M:m+(6-M),g);case s:case c:return p(b+"Hours",0);case a:return p(b+"Minutes",1);case n:return p(b+"Seconds",2);case r:return p(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,i){var o,h=k.p(t),l="set"+(this.$u?"UTC":""),f=(o={},o[s]=l+"Date",o[c]=l+"Date",o[u]=l+"Month",o[d]=l+"FullYear",o[a]=l+"Hours",o[n]=l+"Minutes",o[r]=l+"Seconds",o[e]=l+"Milliseconds",o)[h],p=h===s?this.$D+(i-this.$W):i;if(h===u||h===d){var v=this.clone().set(c,1);v.$d[f](p),v.init(),this.$d=v.set(c,Math.min(this.$D,v.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},g.set=function(t,i){return this.clone().$set(t,i)},g.get=function(t){return this[k.p(t)]()},g.add=function(e,h){var c,l=this;e=Number(e);var f=k.p(h),p=function(t){var i=Y(l);return k.w(i.date(i.date()+Math.round(t*e)),l)};if(f===u)return this.set(u,this.$M+e);if(f===d)return this.set(d,this.$y+e);if(f===s)return p(1);if(f===o)return p(7);var v=(c={},c[n]=t,c[a]=i,c[r]=1e3,c)[f]||1,g=this.$d.getTime()+e*v;return k.w(g,this)},g.subtract=function(t,i){return this.add(-1*t,i)},g.format=function(t){var i=this,e=this.$locale();if(!this.isValid())return e.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",n=k.z(this),a=this.$H,s=this.$m,o=this.$M,u=e.weekdays,h=e.months,d=function(t,e,n,a){return t&&(t[e]||t(i,r))||n[e].slice(0,a)},c=function(t){return k.s(a%12||12,t,"0")},f=e.meridiem||function(t,i,e){var r=t<12?"AM":"PM";return e?r.toLowerCase():r};return r.replace(p,(function(t,r){return r||function(t){switch(t){case"YY":return String(i.$y).slice(-2);case"YYYY":return k.s(i.$y,4,"0");case"M":return o+1;case"MM":return k.s(o+1,2,"0");case"MMM":return d(e.monthsShort,o,h,3);case"MMMM":return d(h,o);case"D":return i.$D;case"DD":return k.s(i.$D,2,"0");case"d":return String(i.$W);case"dd":return d(e.weekdaysMin,i.$W,u,2);case"ddd":return d(e.weekdaysShort,i.$W,u,3);case"dddd":return u[i.$W];case"H":return String(a);case"HH":return k.s(a,2,"0");case"h":return c(1);case"hh":return c(2);case"a":return f(a,s,!0);case"A":return f(a,s,!1);case"m":return String(s);case"mm":return k.s(s,2,"0");case"s":return String(i.$s);case"ss":return k.s(i.$s,2,"0");case"SSS":return k.s(i.$ms,3,"0");case"Z":return n}return null}(t)||n.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(e,c,l){var f,p=this,v=k.p(c),g=Y(e),m=(g.utcOffset()-this.utcOffset())*t,b=this-g,y=function(){return k.m(p,g)};switch(v){case d:f=y()/12;break;case u:f=y();break;case h:f=y()/3;break;case o:f=(b-m)/6048e5;break;case s:f=(b-m)/864e5;break;case a:f=b/i;break;case n:f=b/t;break;case r:f=b/1e3;break;default:f=b}return l?f:k.a(f)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return y[this.$L]},g.locale=function(t,i){if(!t)return this.$L;var e=this.clone(),r=D(t,i,!0);return r&&(e.$L=r),e},g.clone=function(){return k.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),S=x.prototype;return Y.prototype=S,[["$ms",e],["$s",r],["$m",n],["$H",a],["$W",s],["$M",u],["$y",d],["$D",c]].forEach((function(t){S[t[1]]=function(i){return this.$g(i,t[0],t[1])}})),Y.extend=function(t,i){return t.$i||(t(i,x,Y),t.$i=!0),Y},Y.locale=D,Y.isDayjs=w,Y.unix=function(t){return Y(1e3*t)},Y.en=y[b],Y.Ls=y,Y.p={},Y}()),d.exports),l=o(c),f={exports:{}},p=(h||(h=1,f.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,e=/\d/,r=/\d\d/,n=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},o=function(t){return(t=+t)+(t>68?1900:2e3)},u=function(t){return function(i){this[t]=+i}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var i=t.match(/([+-]|\d\d)/g),e=60*i[1]+(+i[2]||0);return 0===e?0:"+"===i[0]?-e:e}(t)}],d=function(t){var i=s[t];return i&&(i.indexOf?i:i.s.concat(i.f))},c=function(t,i){var e,r=s.meridiem;if(r){for(var n=1;n<=24;n+=1)if(t.indexOf(r(n,0,i))>-1){e=n>12;break}}else e=t===(i?"pm":"PM");return e},l={A:[a,function(t){this.afternoon=c(t,!1)}],a:[a,function(t){this.afternoon=c(t,!0)}],Q:[e,function(t){this.month=3*(t-1)+1}],S:[e,function(t){this.milliseconds=100*+t}],SS:[r,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[n,u("seconds")],ss:[n,u("seconds")],m:[n,u("minutes")],mm:[n,u("minutes")],H:[n,u("hours")],h:[n,u("hours")],HH:[n,u("hours")],hh:[n,u("hours")],D:[n,u("day")],DD:[r,u("day")],Do:[a,function(t){var i=s.ordinal,e=t.match(/\d+/);if(this.day=e[0],i)for(var r=1;r<=31;r+=1)i(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],w:[n,u("week")],ww:[r,u("week")],M:[n,u("month")],MM:[r,u("month")],MMM:[a,function(t){var i=d("months"),e=(d("monthsShort")||i.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],MMMM:[a,function(t){var i=d("months").indexOf(t)+1;if(i<1)throw new Error;this.month=i%12||i}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(t){this.year=o(t)}],YYYY:[/\d{4}/,u("year")],Z:h,ZZ:h};function f(e){var r;r=s&&s.formats;for(var n=(e=e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(i,e,n){var a=n&&n.toUpperCase();return e||r[n]||t[n]||r[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,i,e){return i||e.slice(1)}))}))).match(i),a=n.length,o=0;o<a;o+=1){var u=n[o],h=l[u],d=h&&h[1];n[o]=d?{regex:h&&h[0],parser:d}:u.replace(/^\[|\]$/g,"")}return function(t){for(var i={},e=0,r=0;e<a;e+=1){var s=n[e];if("string"==typeof s)r+=s.length;else{var o=s.regex,u=s.parser,h=t.slice(r),d=o.exec(h)[0];u.call(i,d),t=t.replace(d,"")}}return function(t){var i=t.afternoon;if(void 0!==i){var e=t.hours;i?e<12&&(t.hours+=12):12===e&&(t.hours=0),delete t.afternoon}}(i),i}}return function(t,i,e){e.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(o=t.parseTwoDigitYear);var r=i.prototype,n=r.parse;r.parse=function(t){var i=t.date,r=t.utc,a=t.args;this.$u=r;var o=a[1];if("string"==typeof o){var u=!0===a[2],h=!0===a[3],d=u||h,c=a[2];h&&(c=a[2]),s=this.$locale(),!u&&c&&(s=e.Ls[c]),this.$d=function(t,i,e,r){try{if(["x","X"].indexOf(i)>-1)return new Date(("X"===i?1e3:1)*t);var n=f(i)(t),a=n.year,s=n.month,o=n.day,u=n.hours,h=n.minutes,d=n.seconds,c=n.milliseconds,l=n.zone,p=n.week,v=new Date,g=o||(a||s?1:v.getDate()),m=a||v.getFullYear(),b=0;a&&!s||(b=s>0?s-1:v.getMonth());var y,M=u||0,w=h||0,D=d||0,Y=c||0;return l?new Date(Date.UTC(m,b,g,M,w,D,Y+60*l.offset*1e3)):e?new Date(Date.UTC(m,b,g,M,w,D,Y)):(y=new Date(m,b,g,M,w,D,Y),p&&(y=r(y).week(p).toDate()),y)}catch(t){return new Date("")}}(i,o,r,e),this.init(),c&&!0!==c&&(this.$L=this.locale(c).$L),d&&i!=this.format(o)&&(this.$d=new Date("")),s={}}else if(o instanceof Array)for(var l=o.length,p=1;p<=l;p+=1){a[1]=o[p-1];var v=e.apply(this,a);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}p===l&&(this.$d=new Date(""))}else n.call(this,t)}}}()),f.exports),v=o(p);const g=class{constructor(e){t(this,e),this.rValidate=i(this,"rValidate"),this.rInput=i(this,"rInput"),this.rChange=i(this,"rChange"),this.rReset=i(this,"rReset"),this.format="DD/MM/YYYY",this.value="",this.dayAriaLabel="Day",this.monthAriaLabel="Month",this.yearAriaLabel="Year",this.currentValues={},this.delimiter="/",this.validityState="",this.validityMessage="",this.touched=!1,this.dirty=!1,this.initial={},this.uniqueId=`r-input-date-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g,""),this.nativeElement=null,this.getDateComponent=t=>{switch(t.toUpperCase()){case"DD":return this.currentValues.day;case"MM":case"M":return this.currentValues.month;case"YYYY":case"YY":return this.currentValues.year;default:return""}},this.setDateComponent=(t,i)=>{switch(t.toUpperCase()){case"DD":this.currentValues.day=i;break;case"MM":case"M":this.currentValues.month=i;break;case"YYYY":case"YY":this.currentValues.year=i;break;default:return""}},this.getInputAttrs=t=>{const i=t.toUpperCase();return{placeholder:t,maxlength:t.length>2?t.length:2,size:t.length,inputmode:"numeric",disabled:this.disabled,required:this.required,readonly:this.readonly,"aria-label":(t=>{switch(t){case"DD":return this.dayAriaLabel;case"MM":case"M":return this.monthAriaLabel;case"YYYY":case"YY":return this.yearAriaLabel;default:return""}})(i),"data-date-type":i}},this.getDelimiter=t=>{var i;return(null===(i=t.replace(/[^.\-/]/g,""))||void 0===i?void 0:i.charAt(0))||"/"},this.updateValue=()=>{this.readonly||(this.delimiter=this.getDelimiter(this.format),this.value=this.value?this.inputOrder.map((t=>this.getDateComponent(t))).join(this.delimiter):"")},this.onHostClick=()=>{const t=this.firstEmptyInput||this.inputs[this.inputs.length-1];null==t||t.focus()},this.onInputClick=t=>{t.stopPropagation()},this.createKeyDownHandler=t=>i=>this.handleKeyDown(t,i),this.handleKeyDown=(t,i)=>{var e,r,n,a,s,o;if(!this.readonly){if("Enter"===i.code){if(this.touched=!0,this.validateFormElement(this.nativeElement),this.invalid&&!this.isNoValidate)return;const t=this.host.querySelector('[type="submit"]')||(null===(e=this.parentFormEl)||void 0===e?void 0:e.querySelector('[type="submit"]'));t&&"triggerClick"in t?null==t||t.triggerClick():null===(r=this.parentFormEl)||void 0===r||r.requestSubmit()}if("Backspace"===i.code&&0===(null===(n=this.inputs[t])||void 0===n?void 0:n.selectionStart)&&t>0&&(null===(a=this.inputs[t-1])||void 0===a||a.focus()),"ArrowLeft"===i.code){const i=this.inputs[t];if(0===(null==i?void 0:i.selectionStart)&&t>0){const i=this.inputs[t-1].value,e=null==i?void 0:i.length;null===(s=this.inputs[t-1])||void 0===s||s.focus(),e&&setTimeout((()=>{var i;null===(i=this.inputs[t-1])||void 0===i||i.setSelectionRange(e,e)}),0)}}if("ArrowRight"===i.code){const i=this.inputs[t],e=null==i?void 0:i.value;(!e||(null==i?void 0:i.selectionStart)===e.length)&&t<this.inputOrder.length-1&&(null===(o=this.inputs[t+1])||void 0===o||o.focus(),setTimeout((()=>{var i;null===(i=this.inputs[t+1])||void 0===i||i.setSelectionRange(0,0)}),0))}}},this.handlePaste=t=>{this.readonly||(this.value=t.clipboardData.getData("text"),this.touched=!0,this.dirty=!0,t.preventDefault())},this.createInputHandler=(t,i)=>e=>this.handleInput(t,i,e),this.handleInput=(t,i,e)=>{var r,n,a;if(this.readonly)return;const s=null===(r=e.target.value)||void 0===r?void 0:r.replace(/[^0-9]/g,"");e.target.value=s,this.setDateComponent(t,s),this.value=this.inputOrder.map((t=>this.getDateComponent(t))).join(this.delimiter),(null==s?void 0:s.length)===(null===(n=this.inputs[i])||void 0===n?void 0:n.maxLength)&&i<this.inputOrder.length-1&&(null===(a=this.inputs[i+1])||void 0===a||a.focus()),this.touched=!0,this.dirty=!0,this.rInput.emit({element:this.host,value:this.value}),this.validateFormElement(this.nativeElement)},this.createChangeHandler=t=>i=>this.handleChange(t,i),this.handleChange=(t,i)=>{var e;if(this.readonly)return;const r=null===(e=i.target.value)||void 0===e?void 0:e.replace(/[^0-9]/g,"");i.target.value=r,this.setDateComponent(t,r),this.value=this.inputOrder.map((t=>this.getDateComponent(t))).join(this.delimiter),this.touched=!0,this.dirty=!0,this.rChange.emit({element:this.host,value:this.value}),this.validateFormElement(this.nativeElement)},this.handleBlur=()=>{this.touched=!0,this.validateFormElement(this.nativeElement)},this.getValidityStateData=t=>{let i="",e="";if(this.required&&0===t.value.length)return i="valueMissing",e=this.valueMissingMessage,{validityState:i,validityMessage:e};const r=!this.value||l(this.value,this.format,!0).isValid();if(!r)return i="invalid",e=this.invalidDateMessage,{validityState:i,validityMessage:e};if(this.value&&r){const t=l(this.value,this.format,!0);if(this.min){const r=l(this.min,this.format,!0);if(r.isValid()&&t.isBefore(r,"day"))return i="rangeUnderflow",e=this.rangeUnderflowMessage,{validityState:i,validityMessage:e}}if(this.max){const r=l(this.max,this.format,!0);if(r.isValid()&&t.isAfter(r,"day"))return i="rangeOverflow",e=this.rangeOverflowMessage,{validityState:i,validityMessage:e}}}return i="valid",{validityState:i,validityMessage:e}},this.validateFormElement=t=>{if(null===t)return;if(this.isNoValidate)return;const{validityState:i,validityMessage:e}=this.getValidityStateData(t);this.validityState=i,this.validityMessage=e;const r="valid"===this.validityState;this.valid=r,this.invalid=!r,this.rValidate.emit({state:this.validityState,message:this.validityMessage})},this.onResetForm=async()=>{if(this.readonly)return;this.reset(),this.validityState=null,this.validityMessage=null,this.invalid=null,this.valid=null;const{host:t,value:i}=this;this.rReset.emit({element:t,value:i})},this.onSubmitForm=t=>{this.isNoValidate||this.disabled||(this.validateFormElement(this.nativeElement),this.invalid&&(t.preventDefault(),t.stopPropagation()))},this.contributeToFormData=t=>{s(this.nativeElement||this.host,t.formData)},this.setCurrentValues=()=>{var t;const i=this.getDelimiter(this.value),e=(null===(t=this.value)||void 0===t?void 0:t.split(i))||[];this.value=e.join(this.delimiter),this.inputOrder.forEach(((t,i)=>{this.setDateComponent(t,e[i]||"")}))}}handleFormatChange(){this.updateValue()}handleValueChange(){this.setCurrentValues(),this.touched&&this.validateFormElement(this.nativeElement)}async getValue(){return this.value}async setValue(t){this.nativeElement.value=t,this.value=t}async getFormat(){return this.format}async setFormat(t){this.format=t}async isTouched(){return this.touched}async isDirty(){return this.dirty}async markAsPristine(){this.touched=!1,this.dirty=!1}async reset(){this.readonly||(this.markAsPristine(),this.validityState=null,this.validityMessage=null,this.value=this.initial.value,this.invalid=this.initial.invalid,this.format=this.initial.format,this.valid=!this.invalid)}async checkValidity(){const{validityState:t}=this.getValidityStateData(this.nativeElement);return"valid"===t}get inputs(){return Array.from(this.host.shadowRoot.querySelectorAll("input[data-date-type]"))}get inputOrder(){return this.format.split(this.delimiter)}get message(){return this.invalid&&this.error?this.error:this.validityState&&"valid"!==this.validityState?this.customErrorMessage||this.validityMessage:null}get hasMessage(){return null!==this.message}get ariaDescribedBy(){const t=this.message?`${this.uniqueId}-message`:null;return this.hint?`${this.uniqueId}-hint ${t}`:t}get parentFormEl(){return this.host.closest("form")||document.querySelector(`#${this.form}`)||null}get isNoValidate(){var t;return(null===(t=this.parentFormEl)||void 0===t?void 0:t.hasAttribute("novalidate"))||this.novalidate||this.disabled||!1}get firstEmptyInput(){return this.inputs.find((t=>!t.value))||null}get hasTrailingSlot(){return!!this.host.querySelector('[slot="trailing"]')}componentWillLoad(){l.extend(v),this.delimiter=this.getDelimiter(this.format),this.initial.value=this.value,this.initial.invalid=this.invalid,this.initial.format=this.format,this.setCurrentValues()}connectFormEventListeners(){var t,i,e;null===(t=this.parentFormEl)||void 0===t||t.addEventListener("formdata",this.contributeToFormData),null===(i=this.parentFormEl)||void 0===i||i.addEventListener("submit",this.onSubmitForm,{capture:!0}),null===(e=this.parentFormEl)||void 0===e||e.addEventListener("reset",this.onResetForm)}disconnectFormEventListeners(){var t,i,e;null===(t=this.parentFormEl)||void 0===t||t.removeEventListener("formdata",this.contributeToFormData),null===(i=this.parentFormEl)||void 0===i||i.removeEventListener("submit",this.onSubmitForm),null===(e=this.parentFormEl)||void 0===e||e.removeEventListener("reset",this.onResetForm)}connectedCallback(){this.connectFormEventListeners()}disconnectedCallback(){this.disconnectFormEventListeners()}render(){const{form:t,name:i,required:a,disabled:s,label:o,fieldIndicator:u,hint:h,uniqueId:d,invalid:c,valid:l,readonly:f}=this,p={id:d,form:t,name:i,required:a,disabled:s,readonly:f,"aria-describedby":this.ariaDescribedBy},v=o?{id:`${d}-label`,fieldIndicator:u}:{};return e(n,{key:"1fe0cc5598857ca719ef334807da6e2540c4a399",onClick:this.onHostClick,"data-touched":`${this.touched}`,"data-dirty":`${this.dirty}`},e("fieldset",Object.assign({key:"a7ad4075376fc3d08cc59be2f4340c9327e05f82",class:"r-input-date"},{"aria-invalid":`${c||!1}`,"aria-describedby":this.ariaDescribedBy}),e("div",{key:"ec18205fad6069d54715807529a145d03f8bdebb",class:"r-input-date--legend-container"},e("legend",{key:"59c4384b37a3a845eb5cb0c2955b8a12777b2320",class:"r-input-date--legend"},e("label",{key:"8b5502aeb26daa26d3f32d3669406b87e2eb29ca",htmlFor:d},o?e("r-label",Object.assign({},v),o):e("slot",{name:"label"}))),e("slot",{key:"7a5b5ad6401bb8199d94c36383e4219fd3556db5",name:"popover"})),h&&e("r-hint",{key:"1226c6002eb581811e419db7518e02d5fbc18b5b",id:`${d}-hint`,role:"note"},h),e("div",{key:"5581e3cbb731a4a23a243118f2840563352e6df1",class:"r-input-date--container"},e("r-icon",{key:"e8b52fc6fcb1d4f22fd24e7e26e55218a1b6ee80",name:"calendar",size:"s",class:"r-input-date--calendar-icon"}),e("div",{key:"4b97bab9a65f4a9d1958287f23940b7ee4d7143e",class:"r-input-date--inputs"},this.inputOrder.map(((t,i)=>e(r,null,e("input",Object.assign({class:"r-input-date--input"},this.getInputAttrs(t),{key:t,value:this.getDateComponent(t),onInput:this.createInputHandler(t,i),onChange:this.createChangeHandler(t),onClick:this.onInputClick,onBlur:this.handleBlur,onKeyDown:this.createKeyDownHandler(i),onPaste:this.handlePaste})),i<this.inputOrder.length-1&&e("span",{"aria-hidden":"true",class:"r-input-date--delimiter"},this.delimiter)))),e("input",Object.assign({key:"fdebeb8a48fd0fc10233166db94e928fc4b424de",type:"hidden"},p,{value:this.value,ref:t=>this.nativeElement=t}))),e("div",{key:"4324ae4593512d0bd16f843e60c2058859cc1ba1",class:"r-input-date--trailing"},this.readonly&&e("r-icon",{key:"673fb144899c62d9b5d9267b35ce1f197b1f6549",class:"r-input-date--readonly-icon",name:"pen-disabled",size:"s"}),l&&e("r-icon",{key:"26828285dad4ccae6ebc8d29a2f4e1e6a5d92a6d",name:"circled-check",size:"s",color:"var(--r-status-success-regular)"}),this.hasTrailingSlot&&e("slot",{key:"bda392fa837a8fba6917fed22ff356c4e6f15b85",name:"trailing"}))),e("div",{key:"a6d891a2f2bf3456d5cbb3ec27c6cef0bce7d434",id:`${d}-message`,"aria-live":"polite",class:"r-input-date--message"},this.hasMessage&&e("r-hint",{key:"8a3316ce851bfa02b9ca1a1fad8fde6f48a7fab6",variant:"error"},this.message))))}get host(){return a(this)}static get watchers(){return{format:["handleFormatChange"],value:["handleValueChange"]}}};g.style=":host{display:inline-flex;flex-direction:column;vertical-align:top;--r-label--margin-bottom:0}:host slot{display:contents}:host([readonly]:not([readonly=false])){--r-input-date--container--background-color:var(--r-background-soft, #f3f1f0);--r-input-date--container--border-color:transparent transparent var(--r-border-soft, #686868) transparent;--r-input-date--container--cursor:text}:host(:hover:not([disabled]:not([disabled=false])):not([readonly]:not([readonly=false]))){--r-input-date--container--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04))}:host(:active:not([disabled]:not([disabled=false])):not([readonly]:not([readonly=false]))){--r-input-date--container--background-color:var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12))}:host([full-width]:not([full-width=false])){display:flex}:host([disabled]:not([disabled=false])){cursor:not-allowed;--r-input-date--container--opacity:0.4;--r-input-date--container--cursor:not-allowed;--r-input-date--container--pointer-events:none;--r-input-date--container--background-color:transparent}:host([invalid]:not([invalid=false])){--r-input-date--container--border-color:var(--r-status-error-regular, #b00c15);--r-input-date--container--background-color:var(--r-status-error-soft, #fef6f6)}.r-input-date{padding:var(--r-input-date--padding, 0);margin:var(--r-input-date--margin, 0);border:var(--r-input-date--border, none)}.r-input-date--legend-container{display:var(--r-input-date--legend-container--display, flex);gap:var(--r-input-date--legend-container--gap, var(--r-spacing-100, 1rem));align-items:var(--r-input-date--legend-container--align-items, center);justify-content:var(--r-input-date--label-container--align-items, space-between)}.r-input-date--legend-container ::slotted([slot=popover]){display:var(--r-input-date--popover--display, inline-flex);height:var(--r-input-date--popover--height, var(--r-spacing-150, 1.5));align-items:var(--r-input-date--popover--align-items, center);justify-content:var(--r-input-date--popover--justify-content, center);margin-right:var(--r-input-date--popover--margin-right, -0.25rem);--r-popover--trigger--min-width:var(--r-input-date--popover-trigger--min-width, var(--r-spacing-150, 1.5));--r-popover--trigger--min-height:var(--r-input-date--popover--trigger--min-height, var(--r-spacing-150, 1.5))}.r-input-date--legend{padding:var(--r-input-date--label--padding, 0)}.r-input-date--container{position:var(--r-input-date--container--position, relative);display:var(--r-input-date--container--display, flex);align-items:var(--r-input-date--container--align-items, center);height:var(--r-input-date--container--height, var(--r-spacing-275, 2.75rem));font-family:var(--r-input-date--container--font-family, var(--r-font-family-text, system-ui));background-color:var(--r-input-date--container--background-color, var(--r-background-softest, #fff));border-width:var(--r-input-date--container--border-width, 1px);border-style:var(--r-input-date--container--border-style, solid);border-color:var(--r-input-date--container--border-color, var(--r-border-soft, #686868));box-sizing:var(--r-input-date--container--box-sizing, border-box);box-shadow:var(--r-input-date--container--box-shadow, none);outline:var(--r-input-date--container--outline, none);outline-offset:var(--r-input-date--container--outline-offset, 0);padding-right:var(--r-input-date--container--padding-right, 0.7em);padding-left:var(--r-input-date--container--padding-left, 0.7em);opacity:var(--r-input-date--container--opacity, 1);pointer-events:var(--r-input-date--container--pointer-events, auto);cursor:var(--r-input-date--container--cursor, inherit);margin-top:var(--r-input-date--container--margin-top, var(--r-spacing-025, 0.25rem));gap:var(--r-input-date--leading--gap, 0.625rem)}.r-input-date--container:has(input:focus-within){--r-input-date--container--box-shadow:0 0 0 6px var(--r-border-focused-outlined);--r-input-date--container--outline:2px solid var(--r-border-focused);--r-input-date--container--outline-offset:2px}.r-input-date--calendar-icon{color:var(--r-input-date--leading--color, var(--r-icon-soft, #686868))}.r-input-date--inputs{display:var(--r-input-date--inputs--display, flex);align-items:var(--r-input-date--inputs--align-items, center)}.r-input-date--input{max-width:var(--r-input-date--input--max-width, 2.625rem);field-sizing:var(--r-input-date--input--field-sizing, content);outline:var(--r-input-date--input--outline, none);height:var(--r-input-date--input--height, 100%);font-family:var(--r-input-date--input--font-family, inherit);font-size:var(--r-input-date--input--font-size, var(--r-font-size-400, 1rem));background-color:var(--r-input-date--input--background-color, transparent);border:var(--r-input-date--input--border, none);padding:var(--r-input-date--input--padding, 0)}.r-input-date--input[data-date-type=DD]{--r-input-date--input--max-width:1.5rem}.r-input-date--input[data-date-type=MM]{--r-input-date--input--max-width:1.75rem}.r-input-date--delimiter{padding-inline:var(--r-input-date--delimiter--padding-inline, var(--r-spacing-025, 0.25rem));margin-top:var(--r-input-date--delimiter--margin-top, -0.25rem);color:var(--r-input-date--delimiter--color, var(--r-border-regular, #282828));font-size:var(--r-input-date--delimiter--font-size, var(--r-spacing-150, 1.5rem));font-weight:var(--r-input-date--delimiter--font-weight, 200)}.r-input-date--message{margin-top:var(--r-input-date--message--margin-top, var(--r-spacing-025, 0.25rem))}.r-input-date--message:empty{--r-input-date--message--margin-top:0}.r-input-date--trailing{display:var(--r-input-date--trailing--display, flex);margin-left:var(--r-input-date--trailing--margin-left, auto);align-items:var(--r-input-date--trailing--align-items, center);gap:var(--r-input-date--trailing--gap, 0.625rem)}.r-input-date--readonly-icon{color:var(--r-input-date--readonly-icon--color, var(--r-icon-soft, #686868))}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";export{g as r_input_date}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as r,h as e,H as i,g as a}from"./p-CTxpqopm.js";const o=class{constructor(e){t(this,e),this.rClickAlertTrailingIcon=r(this,"rClickAlertTrailingIcon"),this.status="info",this.announced=!0,this.leadingIconSize="m",this.leadingIconVisible=!0,this.trailingIcon="cross",this.trailingIconSize="m",this.target="_self",this.dismissButtonAriaLabel="Dismiss alert",this.isElContent=t=>{const r=this.host.querySelector(t);return null!==r&&(null==r?void 0:r.textContent.trim().length)>0},this.collapseAlert=()=>{this.host.setAttribute("aria-hidden","true")},this.startCollapseTimer=()=>{this.delayTimer=setTimeout((()=>{this.collapseAlert(),clearTimeout(this.delayTimer)}),1e3*this.delay)},this.handleTrailingButtonClick=()=>{this.rClickAlertTrailingIcon.emit(),this.collapseAlert()}}get isLeadingSlot(){return this.isElContent('[slot="leading"]')}get isLeading(){return this.leadingIconVisible||this.isLeadingSlot}get isTrailingIcon(){var t,r;return(null===(t=this.trailingIcon)||void 0===t?void 0:t.length)>0||(null===(r=this.trailingIconSrc)||void 0===r?void 0:r.length)>0}get isTrailingSlot(){return this.isElContent('[slot="trailing"]')}get isTrailing(){return this.isTrailingIcon||this.isTrailingSlot}get isHeadline(){var t;return(null===(t=this.headline)||void 0===t?void 0:t.length)>0}get isContent(){var t;return(null===(t=this.content)||void 0===t?void 0:t.length)>0}get isLink(){var t,r;return(null===(t=this.href)||void 0===t?void 0:t.length)>0&&(null===(r=this.linkText)||void 0===r?void 0:r.length)>0}get isSlot(){return this.host.textContent.trim().length>0}get isMain(){return this.isHeadline||this.isContent||this.isLink||this.isSlot}get isDelay(){return this.delay&&this.delay>=0}get headlineSlotContent(){var t;const r=this.host.querySelector('[slot="headline"]');return null===(t=null==r?void 0:r.textContent)||void 0===t?void 0:t.trim()}get hasHeadlineContent(){return!!this.headlineSlotContent||!!this.headline}get statusBasedLeadingIconName(){if(this.leadingIcon)return this.leadingIcon;switch(this.status){case"info":default:return"circled-information-i";case"warning":return"circled-exclamation-mark";case"error":return"triangle-with-exclamation-mark"}}componentDidLoad(){this.isDelay&&this.startCollapseTimer()}render(){const t={name:this.statusBasedLeadingIconName,src:this.leadingIconSrc,size:this.leadingIconSize},r={name:this.trailingIcon,src:this.trailingIconSrc,size:this.trailingIconSize};return e(i,Object.assign({key:"c15688c07ce4e954025a36400b922735b347e95f"},this.announced?{role:"alert","aria-live":"info"===this.status?"polite":"assertive"}:{role:"region","aria-label":this.headlineSlotContent||this.headline||null}),e("div",{key:"26babb75b7e859b21e59345c601d385662908d1d",class:"r-alert","data-has-headline":`${this.hasHeadlineContent}`},this.isLeading&&e("div",{key:"694567d018738c0e8a3eca4a084b38bfd7e81c91",class:"r-alert--leading"},e("slot",{key:"cfc91101ce17b01b76a4d860012e91a06e536d75",name:"leading"},this.leadingIconVisible&&e("r-icon",Object.assign({key:"bbbeaa680cd6e44e22d955896b7b20b37fdbbd7b"},t)))),this.isMain?e("div",{class:"r-alert--main"},e("slot",{name:"headline"},this.isHeadline&&e("h3",{class:"r-alert--headline"},this.headline)),e("slot",{name:"content"},this.isContent&&e("div",{class:"r-alert--content"},this.content)),e("slot",{name:"link"},this.isLink&&e("r-button",{class:"r-alert--link",variant:"text-inline",size:"small",href:this.href,target:this.target},this.linkText)),e("slot",null)):e("slot",null),this.isTrailing&&e("div",{key:"d75e4568127a9c493b998cb8b0b475c3009d007a",class:"r-alert--trailing"},e("slot",{key:"a8d14fb3e1b275e750505ca25124b61503addf1e",name:"trailing"},this.isTrailingIcon&&e("r-icon-button",{key:"2d259fdda1b57874d6e1430893798bdfe047d60a",name:this.trailingIconSrc?null:this.trailingIcon,onClick:this.handleTrailingButtonClick,label:this.dismissButtonAriaLabel},this.trailingIconSrc&&e("r-icon",Object.assign({key:"4e3ba02d4a2926c2f76000a685476cafad783d23"},r)))))))}get host(){return a(this)}};o.style=":host([status=info]){--color:var(--r-status-info-soft, #f8fafb);--background-color:var(--r-status-info-regular, #3e5c73)}:host([status=warning]){--color:var(--r-text-warning, #000000);--r-alert--leading-icon--color:var(--r-icon-warning, #000000);--background-color:var(--r-status-warning-regular, #ff7429)}:host([status=error]){--color:var(--r-status-error-soft, #fef6f6);--background-color:var(--r-status-error-regular, #b00c15)}:host([status=error]) r-icon-button:hover,:host([status=info]) r-icon-button:hover{--r-icon-button--background-color:var(--r-background-interactive-hovered-inverse, rgba(243, 241, 240, 0.04))}:host([status=error]) r-icon-button:active,:host([status=info]) r-icon-button:active{--r-icon-button--background-color:var(--r-background-interactive-pressed-inverse, rgba(243, 241, 240, 0.12))}:host([status=error]) .r-alert--link:hover,:host([status=error]) ::slotted(r-button:hover:not([disabled]):not([disabled=true])),:host([status=info]) .r-alert--link:hover,:host([status=info]) ::slotted(r-button:hover:not([disabled]):not([disabled=true])){--r-button--background-color:var(--r-background-interactive-hovered-inverse, rgba(243, 241, 240, 0.04))}:host([status=error]) .r-alert--link:active,:host([status=error]) ::slotted(r-button:active:not([disabled]):not([disabled=true])),:host([status=info]) .r-alert--link:active,:host([status=info]) ::slotted(r-button:active:not([disabled]):not([disabled=true])){--r-button--background-color--active:var(--r-background-interactive-pressed-inverse, rgba(243, 241, 240, 0.12))}:host([aria-hidden=true]){--transition:all 0.5s;--opacity:0;--display:none}:host{display:var(--display, block);color:var(--color, var(--r-status-info-soft, #f8fafb));background-color:var(--background-color, var(--r-status-info-regular, #3e5c73));position:var(--position, relative);width:var(--width, 100%);left:var(--left, 0);transition:var(--transition, none);transition-behavior:var(--transition-behavior, allow-discrete);visibility:var(--visibility, visible);opacity:var(--opacity, 1);z-index:var(--z-index, unset);font-family:var(--font-family, var(--r-font-family-text, system-ui));font-size:var(--font-size, var(--r-font-size-400, 1rem));font-weight:var(--font-weight, var(--r-font-weight-regular, 400))}@media (prefers-reduced-motion){:host{transition:none}}.r-alert{display:var(--r-alert--display, grid);grid-template-columns:var(--r-alert--grid-template-columns, auto 1fr auto);align-items:var(--r-alert--align-items, start);gap:var(--r-alert--gap, var(--r-spacing-100, 1rem));padding:var(--r-alert--padding, 16px);box-sizing:var(--r-alert--box-sizing, border-box)}.r-alert[data-has-headline=false]{--r-alert--align-items:center}.r-alert:empty{--r-alert--display:none}.r-alert--main{display:var(--r-alert--main--display, flex);flex-flow:var(--r-alert--main--flex-flow, column);gap:var(--r-alert--main--gap, var(--r-spacing-050))}.r-alert--headline{color:var(--r-alert--headline--color, var(--color));font-size:var(--r-alert--headline--font-size, var(--r-font-size-400, 1rem));font-weight:var(--r-alert--headline--font-weight, var(--r-font-weight-semibold, 600));line-height:var(--r-alert--headline--line-height, var(--r-line-height-m, 1.5));margin:var(--r-alert--headline--margin, 0)}.r-alert--leading{color:var(--r-alert--leading-icon--color, var(--color))}.r-alert--trailing r-icon-button{--r-button--padding:0;--r-button--color:var(--color)}.r-alert--content{margin-top:var(--r-alert--content--margin-top, 0)}.r-alert--link,.r-alert ::slotted(r-button){--r-button--background-color:transparent;--r-button--border-width:0;--r-button--color:var(--r-alert--link--color, var(--color));--r-button--padding:10px 2px 18px 2px;--r-button--slot--text-decoration:underline;--r-button--slot--text-underline-offset:9px}.r-alert--link:hover,.r-alert ::slotted(r-button:hover:not([disabled]):not([disabled=true])){--r-button--background-color:var(--r-background-interactive-hovered)}.r-alert--link:active,.r-alert ::slotted(r-button:active:not([disabled]):not([disabled=true])){--r-button--color--active:var(--r-alert--link--color, var(--color));--r-button--background-color--active:var(--r-background-interactive-pressed)}";export{o as r_alert}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as r,H as e,g as a}from"./p-CTxpqopm.js";const o=class{constructor(r){t(this,r)}render(){return r(e,{key:"628b87d2952aad3e25f8fd6b0b61c6db06a15959",slot:"trailing"},r("div",{key:"93d2888f3e10e6346fda143ba8d0757d2913a503",class:"r-radio-button-trailing",style:{display:"contents"}},r("slot",{key:"5929143a1c1b54e9e3f082dd54c2e1376a80dece"})))}get host(){return a(this)}};o.style=":host{font-weight:var(--r-font-weight-regular, 400);font-size:var(--r-font-size-400, 1rem);text-align:right;color:var(--r-text-regular, #282828)}";export{o as r_radio_button_trailing}
|