@riverty/web-components 6.2.1 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +78 -0
- package/custom-elements.json +4 -0
- package/package.json +3 -2
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
- package/dist/cjs/focusable-Oll_rmtP.js +0 -28
- package/dist/cjs/formData-B2DZyLxP.js +0 -44
- package/dist/cjs/index-BnETQtSf.js +0 -1834
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -13
- package/dist/cjs/r-accordion-panel.cjs.entry.js +0 -24
- package/dist/cjs/r-accordion-section.cjs.entry.js +0 -125
- package/dist/cjs/r-accordion-trigger.cjs.entry.js +0 -93
- package/dist/cjs/r-accordion.cjs.entry.js +0 -20
- package/dist/cjs/r-alert.cjs.entry.js +0 -146
- package/dist/cjs/r-badge.cjs.entry.js +0 -40
- package/dist/cjs/r-button.cjs.entry.js +0 -149
- package/dist/cjs/r-checkbox-group.cjs.entry.js +0 -232
- package/dist/cjs/r-checkbox.cjs.entry.js +0 -269
- package/dist/cjs/r-design-system-devtools.cjs.entry.js +0 -31
- package/dist/cjs/r-dialog.cjs.entry.js +0 -107
- package/dist/cjs/r-hint_2.cjs.entry.js +0 -50
- package/dist/cjs/r-icon-button_2.cjs.entry.js +0 -467
- package/dist/cjs/r-icon.cjs.entry.js +0 -284
- package/dist/cjs/r-illustration.cjs.entry.js +0 -396
- package/dist/cjs/r-input-code.cjs.entry.js +0 -432
- package/dist/cjs/r-input-date.cjs.entry.js +0 -519
- package/dist/cjs/r-input-password.cjs.entry.js +0 -265
- package/dist/cjs/r-input-phone-number.cjs.entry.js +0 -2525
- package/dist/cjs/r-input.cjs.entry.js +0 -402
- package/dist/cjs/r-list-item.cjs.entry.js +0 -109
- package/dist/cjs/r-pagination.cjs.entry.js +0 -314
- package/dist/cjs/r-panel.cjs.entry.js +0 -184
- package/dist/cjs/r-popover-action.cjs.entry.js +0 -80
- package/dist/cjs/r-popover-content.cjs.entry.js +0 -62
- package/dist/cjs/r-popover-headline.cjs.entry.js +0 -28
- package/dist/cjs/r-popover-trigger.cjs.entry.js +0 -70
- package/dist/cjs/r-popover.cjs.entry.js +0 -347
- package/dist/cjs/r-progress-bar.cjs.entry.js +0 -25
- package/dist/cjs/r-radio-button-description.cjs.entry.js +0 -18
- package/dist/cjs/r-radio-button-leading.cjs.entry.js +0 -18
- package/dist/cjs/r-radio-button-title.cjs.entry.js +0 -18
- package/dist/cjs/r-radio-button-trailing.cjs.entry.js +0 -18
- package/dist/cjs/r-radio-button.cjs.entry.js +0 -139
- package/dist/cjs/r-radio-group.cjs.entry.js +0 -425
- package/dist/cjs/r-select-option.cjs.entry.js +0 -130
- package/dist/cjs/r-select.cjs.entry.js +0 -1101
- package/dist/cjs/r-skip-link.cjs.entry.js +0 -19
- package/dist/cjs/r-stepper-item.cjs.entry.js +0 -42
- package/dist/cjs/r-stepper.cjs.entry.js +0 -99
- package/dist/cjs/r-tab-panel.cjs.entry.js +0 -26
- package/dist/cjs/r-tab.cjs.entry.js +0 -62
- package/dist/cjs/r-tabs-list.cjs.entry.js +0 -175
- package/dist/cjs/r-tabs.cjs.entry.js +0 -277
- package/dist/cjs/r-textarea.cjs.entry.js +0 -270
- package/dist/cjs/r-toast-group.cjs.entry.js +0 -46
- package/dist/cjs/r-toast.cjs.entry.js +0 -306
- package/dist/cjs/style-observer-D9zSP9wP.js +0 -1118
- package/dist/cjs/theming-NqxjhVJS.js +0 -109
- package/dist/cjs/web-components.cjs.js +0 -25
- package/dist/collection/collection-manifest.json +0 -60
- package/dist/collection/components/accordion/accordion.css +0 -24
- package/dist/collection/components/accordion/accordion.js +0 -90
- package/dist/collection/components/accordion/exports.js +0 -1
- package/dist/collection/components/accordion-panel/accordion-panel.css +0 -50
- package/dist/collection/components/accordion-panel/accordion-panel.js +0 -86
- package/dist/collection/components/accordion-section/accordion-section.css +0 -27
- package/dist/collection/components/accordion-section/accordion-section.js +0 -235
- package/dist/collection/components/accordion-trigger/accordion-trigger.css +0 -93
- package/dist/collection/components/accordion-trigger/accordion-trigger.js +0 -220
- package/dist/collection/components/alert/alert.css +0 -119
- package/dist/collection/components/alert/alert.js +0 -526
- package/dist/collection/components/alert/exports.js +0 -2
- package/dist/collection/components/badge/badge.css +0 -52
- package/dist/collection/components/badge/badge.js +0 -120
- package/dist/collection/components/badge/exports.js +0 -1
- package/dist/collection/components/button/button.css +0 -180
- package/dist/collection/components/button/button.js +0 -510
- package/dist/collection/components/button/exports.js +0 -5
- package/dist/collection/components/checkbox/checkbox.css +0 -116
- package/dist/collection/components/checkbox/checkbox.js +0 -777
- package/dist/collection/components/checkbox-group/checkbox-group.css +0 -48
- package/dist/collection/components/checkbox-group/checkbox-group.js +0 -718
- package/dist/collection/components/design-system-devtools/design-system-devtools.js +0 -59
- package/dist/collection/components/dialog/dialog.css +0 -125
- package/dist/collection/components/dialog/dialog.js +0 -345
- package/dist/collection/components/dialog/exports.js +0 -9
- package/dist/collection/components/hint/exports.js +0 -1
- package/dist/collection/components/hint/hint.css +0 -63
- package/dist/collection/components/hint/hint.js +0 -114
- package/dist/collection/components/icon/all-kit.js +0 -2
- package/dist/collection/components/icon/data.js +0 -90
- package/dist/collection/components/icon/exports.js +0 -7
- package/dist/collection/components/icon/icon.css +0 -105
- package/dist/collection/components/icon/icon.js +0 -379
- package/dist/collection/components/icon/riverty-kit.js +0 -2
- package/dist/collection/components/icon-button/icon-button.css +0 -105
- package/dist/collection/components/icon-button/icon-button.js +0 -343
- package/dist/collection/components/illustration/data.js +0 -112
- package/dist/collection/components/illustration/exports.js +0 -3
- package/dist/collection/components/illustration/illustration.css +0 -52
- package/dist/collection/components/illustration/illustration.js +0 -540
- package/dist/collection/components/illustration/illustrations-ui-kit.js +0 -2
- package/dist/collection/components/input/exports.js +0 -16
- package/dist/collection/components/input/input.css +0 -180
- package/dist/collection/components/input/input.js +0 -1572
- package/dist/collection/components/input-code/exports.js +0 -2
- package/dist/collection/components/input-code/input-code.css +0 -127
- package/dist/collection/components/input-code/input-code.js +0 -1139
- package/dist/collection/components/input-date/exports.js +0 -1
- package/dist/collection/components/input-date/input-date.css +0 -148
- package/dist/collection/components/input-date/input-date.js +0 -1228
- package/dist/collection/components/input-password/exports.js +0 -1
- package/dist/collection/components/input-password/input-password.css +0 -25
- package/dist/collection/components/input-password/input-password.js +0 -1051
- package/dist/collection/components/input-phone-number/input-phone-number.css +0 -61
- package/dist/collection/components/input-phone-number/input-phone-number.js +0 -874
- package/dist/collection/components/label/label.css +0 -38
- package/dist/collection/components/label/label.js +0 -47
- package/dist/collection/components/list-item/list-item/exports.js +0 -2
- package/dist/collection/components/list-item/list-item/list-item.css +0 -199
- package/dist/collection/components/list-item/list-item/list-item.js +0 -467
- package/dist/collection/components/pagination/exports.js +0 -3
- package/dist/collection/components/pagination/pagination.css +0 -118
- package/dist/collection/components/pagination/pagination.js +0 -799
- package/dist/collection/components/panel/exports.js +0 -1
- package/dist/collection/components/panel/panel.css +0 -192
- package/dist/collection/components/panel/panel.js +0 -473
- package/dist/collection/components/popover/exports.js +0 -3
- package/dist/collection/components/popover/popover.css +0 -251
- package/dist/collection/components/popover/popover.js +0 -741
- package/dist/collection/components/popover-action/popover-action.css +0 -21
- package/dist/collection/components/popover-action/popover-action.js +0 -150
- package/dist/collection/components/popover-content/popover-content.css +0 -9
- package/dist/collection/components/popover-content/popover-content.js +0 -130
- package/dist/collection/components/popover-headline/popover-headline.css +0 -7
- package/dist/collection/components/popover-headline/popover-headline.js +0 -28
- package/dist/collection/components/popover-trigger/exports.js +0 -1
- package/dist/collection/components/popover-trigger/popover-trigger.css +0 -4
- package/dist/collection/components/popover-trigger/popover-trigger.js +0 -163
- package/dist/collection/components/progress-bar/progress-bar.css +0 -41
- package/dist/collection/components/progress-bar/progress-bar.js +0 -71
- package/dist/collection/components/radio-button/radio-button.css +0 -126
- package/dist/collection/components/radio-button/radio-button.js +0 -559
- package/dist/collection/components/radio-button-description/radio-button-description.css +0 -5
- package/dist/collection/components/radio-button-description/radio-button-description.js +0 -22
- package/dist/collection/components/radio-button-leading/radio-button-leading.css +0 -3
- package/dist/collection/components/radio-button-leading/radio-button-leading.js +0 -22
- package/dist/collection/components/radio-button-title/radio-button-title.css +0 -8
- package/dist/collection/components/radio-button-title/radio-button-title.js +0 -22
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.css +0 -6
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +0 -22
- package/dist/collection/components/radio-group/exports.js +0 -1
- package/dist/collection/components/radio-group/radio-group.css +0 -65
- package/dist/collection/components/radio-group/radio-group.js +0 -1020
- package/dist/collection/components/select/exports.js +0 -1
- package/dist/collection/components/select/select.css +0 -247
- package/dist/collection/components/select/select.js +0 -2011
- package/dist/collection/components/select-option/select-option.css +0 -93
- package/dist/collection/components/select-option/select-option.js +0 -459
- package/dist/collection/components/skip-link/exports.js +0 -1
- package/dist/collection/components/skip-link/skip-link.css +0 -37
- package/dist/collection/components/skip-link/skip-link.js +0 -52
- package/dist/collection/components/stepper/stepper.css +0 -25
- package/dist/collection/components/stepper/stepper.js +0 -216
- package/dist/collection/components/stepper-item/stepper-item.css +0 -62
- package/dist/collection/components/stepper-item/stepper-item.js +0 -171
- package/dist/collection/components/tab/tab.css +0 -81
- package/dist/collection/components/tab/tab.js +0 -169
- package/dist/collection/components/tab-panel/tab-panel.css +0 -19
- package/dist/collection/components/tab-panel/tab-panel.js +0 -72
- package/dist/collection/components/tabs/tabs.css +0 -4
- package/dist/collection/components/tabs/tabs.js +0 -345
- package/dist/collection/components/tabs-list/exports.js +0 -2
- package/dist/collection/components/tabs-list/tabs-list.css +0 -58
- package/dist/collection/components/tabs-list/tabs-list.js +0 -294
- package/dist/collection/components/textarea/exports.js +0 -8
- package/dist/collection/components/textarea/textarea.css +0 -148
- package/dist/collection/components/textarea/textarea.js +0 -1055
- package/dist/collection/components/toast/exports.js +0 -3
- package/dist/collection/components/toast/toast.css +0 -179
- package/dist/collection/components/toast/toast.js +0 -812
- package/dist/collection/components/toast-group/exports.js +0 -1
- package/dist/collection/components/toast-group/toast-group.css +0 -37
- package/dist/collection/components/toast-group/toast-group.js +0 -49
- package/dist/collection/components/tooltip/exports.js +0 -3
- package/dist/collection/components/tooltip/tooltip.css +0 -106
- package/dist/collection/components/tooltip/tooltip.js +0 -500
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/focusable.js +0 -24
- package/dist/collection/utils/formData.js +0 -40
- package/dist/collection/utils/theming.js +0 -103
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- package/dist/esm/focusable-ky1yonnS.js +0 -26
- package/dist/esm/formData-DvLT8-y3.js +0 -42
- package/dist/esm/index-CTxpqopm.js +0 -1806
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -11
- package/dist/esm/r-accordion-panel.entry.js +0 -22
- package/dist/esm/r-accordion-section.entry.js +0 -123
- package/dist/esm/r-accordion-trigger.entry.js +0 -91
- package/dist/esm/r-accordion.entry.js +0 -18
- package/dist/esm/r-alert.entry.js +0 -144
- package/dist/esm/r-badge.entry.js +0 -38
- package/dist/esm/r-button.entry.js +0 -147
- package/dist/esm/r-checkbox-group.entry.js +0 -230
- package/dist/esm/r-checkbox.entry.js +0 -267
- package/dist/esm/r-design-system-devtools.entry.js +0 -29
- package/dist/esm/r-dialog.entry.js +0 -105
- package/dist/esm/r-hint_2.entry.js +0 -47
- package/dist/esm/r-icon-button_2.entry.js +0 -464
- package/dist/esm/r-icon.entry.js +0 -282
- package/dist/esm/r-illustration.entry.js +0 -394
- package/dist/esm/r-input-code.entry.js +0 -430
- package/dist/esm/r-input-date.entry.js +0 -517
- package/dist/esm/r-input-password.entry.js +0 -263
- package/dist/esm/r-input-phone-number.entry.js +0 -2523
- package/dist/esm/r-input.entry.js +0 -400
- package/dist/esm/r-list-item.entry.js +0 -107
- package/dist/esm/r-pagination.entry.js +0 -312
- package/dist/esm/r-panel.entry.js +0 -182
- package/dist/esm/r-popover-action.entry.js +0 -78
- package/dist/esm/r-popover-content.entry.js +0 -60
- package/dist/esm/r-popover-headline.entry.js +0 -26
- package/dist/esm/r-popover-trigger.entry.js +0 -68
- package/dist/esm/r-popover.entry.js +0 -345
- package/dist/esm/r-progress-bar.entry.js +0 -23
- package/dist/esm/r-radio-button-description.entry.js +0 -16
- package/dist/esm/r-radio-button-leading.entry.js +0 -16
- package/dist/esm/r-radio-button-title.entry.js +0 -16
- package/dist/esm/r-radio-button-trailing.entry.js +0 -16
- package/dist/esm/r-radio-button.entry.js +0 -137
- package/dist/esm/r-radio-group.entry.js +0 -423
- package/dist/esm/r-select-option.entry.js +0 -128
- package/dist/esm/r-select.entry.js +0 -1099
- package/dist/esm/r-skip-link.entry.js +0 -17
- package/dist/esm/r-stepper-item.entry.js +0 -40
- package/dist/esm/r-stepper.entry.js +0 -97
- package/dist/esm/r-tab-panel.entry.js +0 -24
- package/dist/esm/r-tab.entry.js +0 -60
- package/dist/esm/r-tabs-list.entry.js +0 -173
- package/dist/esm/r-tabs.entry.js +0 -275
- package/dist/esm/r-textarea.entry.js +0 -268
- package/dist/esm/r-toast-group.entry.js +0 -44
- package/dist/esm/r-toast.entry.js +0 -304
- package/dist/esm/style-observer-4Uv3PpKT.js +0 -1116
- package/dist/esm/theming-DD2IrjpG.js +0 -106
- package/dist/esm/web-components.js +0 -21
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/components/accordion/accordion.d.ts +0 -27
- package/dist/types/components/accordion/exports.d.ts +0 -2
- package/dist/types/components/accordion-panel/accordion-panel.d.ts +0 -10
- package/dist/types/components/accordion-section/accordion-section.d.ts +0 -36
- package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +0 -33
- package/dist/types/components/alert/alert.d.ts +0 -67
- package/dist/types/components/alert/exports.d.ts +0 -4
- package/dist/types/components/badge/badge.d.ts +0 -23
- package/dist/types/components/badge/exports.d.ts +0 -2
- package/dist/types/components/button/button.d.ts +0 -89
- package/dist/types/components/button/exports.d.ts +0 -10
- package/dist/types/components/checkbox/checkbox.d.ts +0 -136
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +0 -122
- package/dist/types/components/design-system-devtools/design-system-devtools.d.ts +0 -15
- package/dist/types/components/dialog/dialog.d.ts +0 -69
- package/dist/types/components/dialog/exports.d.ts +0 -10
- package/dist/types/components/hint/exports.d.ts +0 -2
- package/dist/types/components/hint/hint.d.ts +0 -20
- package/dist/types/components/icon/all-kit.d.ts +0 -2890
- package/dist/types/components/icon/data.d.ts +0 -145
- package/dist/types/components/icon/exports.d.ts +0 -152
- package/dist/types/components/icon/icon.d.ts +0 -37
- package/dist/types/components/icon/riverty-kit.d.ts +0 -139
- package/dist/types/components/icon-button/icon-button.d.ts +0 -69
- package/dist/types/components/illustration/data.d.ts +0 -52
- package/dist/types/components/illustration/exports.d.ts +0 -23
- package/dist/types/components/illustration/illustration.d.ts +0 -51
- package/dist/types/components/illustration/illustrations-ui-kit.d.ts +0 -21
- package/dist/types/components/input/exports.d.ts +0 -10
- package/dist/types/components/input/input.d.ts +0 -300
- package/dist/types/components/input-code/exports.d.ts +0 -4
- package/dist/types/components/input-code/input-code.d.ts +0 -175
- package/dist/types/components/input-date/exports.d.ts +0 -5
- package/dist/types/components/input-date/input-date.d.ts +0 -172
- package/dist/types/components/input-password/exports.d.ts +0 -1
- package/dist/types/components/input-password/input-password.d.ts +0 -184
- package/dist/types/components/input-phone-number/input-phone-number.d.ts +0 -128
- package/dist/types/components/label/label.d.ts +0 -9
- package/dist/types/components/list-item/list-item/exports.d.ts +0 -4
- package/dist/types/components/list-item/list-item/list-item.d.ts +0 -61
- package/dist/types/components/pagination/exports.d.ts +0 -6
- package/dist/types/components/pagination/pagination.d.ts +0 -140
- package/dist/types/components/panel/exports.d.ts +0 -2
- package/dist/types/components/panel/panel.d.ts +0 -56
- package/dist/types/components/popover/exports.d.ts +0 -6
- package/dist/types/components/popover/popover.d.ts +0 -131
- package/dist/types/components/popover-action/popover-action.d.ts +0 -24
- package/dist/types/components/popover-content/popover-content.d.ts +0 -22
- package/dist/types/components/popover-headline/popover-headline.d.ts +0 -6
- package/dist/types/components/popover-trigger/exports.d.ts +0 -2
- package/dist/types/components/popover-trigger/popover-trigger.d.ts +0 -31
- package/dist/types/components/progress-bar/progress-bar.d.ts +0 -10
- package/dist/types/components/radio-button/radio-button.d.ts +0 -92
- package/dist/types/components/radio-button-description/radio-button-description.d.ts +0 -8
- package/dist/types/components/radio-button-leading/radio-button-leading.d.ts +0 -8
- package/dist/types/components/radio-button-title/radio-button-title.d.ts +0 -8
- package/dist/types/components/radio-button-trailing/radio-button-trailing.d.ts +0 -8
- package/dist/types/components/radio-group/exports.d.ts +0 -2
- package/dist/types/components/radio-group/radio-group.d.ts +0 -178
- package/dist/types/components/select/exports.d.ts +0 -2
- package/dist/types/components/select/select.d.ts +0 -317
- package/dist/types/components/select-option/select-option.d.ts +0 -113
- package/dist/types/components/skip-link/exports.d.ts +0 -2
- package/dist/types/components/skip-link/skip-link.d.ts +0 -6
- package/dist/types/components/stepper/stepper.d.ts +0 -22
- package/dist/types/components/stepper-item/stepper-item.d.ts +0 -23
- package/dist/types/components/tab/tab.d.ts +0 -23
- package/dist/types/components/tab-panel/tab-panel.d.ts +0 -7
- package/dist/types/components/tabs/tabs.d.ts +0 -49
- package/dist/types/components/tabs-list/exports.d.ts +0 -4
- package/dist/types/components/tabs-list/tabs-list.d.ts +0 -41
- package/dist/types/components/textarea/exports.d.ts +0 -2
- package/dist/types/components/textarea/textarea.d.ts +0 -158
- package/dist/types/components/toast/exports.d.ts +0 -6
- package/dist/types/components/toast/toast.d.ts +0 -146
- package/dist/types/components/toast-group/exports.d.ts +0 -2
- package/dist/types/components/toast-group/toast-group.d.ts +0 -9
- package/dist/types/components/tooltip/exports.d.ts +0 -6
- package/dist/types/components/tooltip/tooltip.d.ts +0 -131
- package/dist/types/components.d.ts +0 -6286
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1732
- package/dist/types/types/jsx-shim.d.ts +0 -13
- package/dist/types/types/style-observer.d.ts +0 -20
- package/dist/types/utils/focusable.d.ts +0 -1
- package/dist/types/utils/formData.d.ts +0 -1
- package/dist/types/utils/theming.d.ts +0 -15
- package/dist/web-components/index.esm.js +0 -0
- package/dist/web-components/p-02b22f8e.entry.js +0 -1
- package/dist/web-components/p-075a8dc8.entry.js +0 -1
- package/dist/web-components/p-0a34d33b.entry.js +0 -1
- package/dist/web-components/p-10cc9983.entry.js +0 -1
- package/dist/web-components/p-253068b9.entry.js +0 -1
- package/dist/web-components/p-3b8c8951.entry.js +0 -1
- package/dist/web-components/p-3beacdab.entry.js +0 -1
- package/dist/web-components/p-4214867d.entry.js +0 -1
- package/dist/web-components/p-42c857e9.entry.js +0 -1
- package/dist/web-components/p-44f87e16.entry.js +0 -1
- package/dist/web-components/p-477614c5.entry.js +0 -1
- package/dist/web-components/p-495ba3d2.entry.js +0 -1
- package/dist/web-components/p-4Uv3PpKT.js +0 -1
- package/dist/web-components/p-4de76291.entry.js +0 -1
- package/dist/web-components/p-55600d47.entry.js +0 -1
- package/dist/web-components/p-562051aa.entry.js +0 -1
- package/dist/web-components/p-5b850e0f.entry.js +0 -1
- package/dist/web-components/p-6013dfc8.entry.js +0 -1
- package/dist/web-components/p-62e7ae04.entry.js +0 -1
- package/dist/web-components/p-71519d37.entry.js +0 -1
- package/dist/web-components/p-88f7b47f.entry.js +0 -1
- package/dist/web-components/p-8975a6a3.entry.js +0 -1
- package/dist/web-components/p-8e125826.entry.js +0 -1
- package/dist/web-components/p-91cc0bde.entry.js +0 -1
- package/dist/web-components/p-93435fcd.entry.js +0 -1
- package/dist/web-components/p-947969d7.entry.js +0 -1
- package/dist/web-components/p-95396b5c.entry.js +0 -1
- package/dist/web-components/p-9de3a1a5.entry.js +0 -1
- package/dist/web-components/p-9f583ed1.entry.js +0 -1
- package/dist/web-components/p-B9rsR6cQ.js +0 -1
- package/dist/web-components/p-CTxpqopm.js +0 -2
- package/dist/web-components/p-DQuL1Twl.js +0 -1
- package/dist/web-components/p-DvLT8-y3.js +0 -1
- package/dist/web-components/p-a1086abe.entry.js +0 -1
- package/dist/web-components/p-bbba6d79.entry.js +0 -1
- package/dist/web-components/p-bde44ec4.entry.js +0 -1
- package/dist/web-components/p-bfc7e6c0.entry.js +0 -1
- package/dist/web-components/p-c1030394.entry.js +0 -1
- package/dist/web-components/p-c80a5541.entry.js +0 -1
- package/dist/web-components/p-c96ee61a.entry.js +0 -1
- package/dist/web-components/p-caf8f067.entry.js +0 -1
- package/dist/web-components/p-cc363c3d.entry.js +0 -1
- package/dist/web-components/p-cf4ff357.entry.js +0 -1
- package/dist/web-components/p-d0310ed4.entry.js +0 -1
- package/dist/web-components/p-d1412932.entry.js +0 -1
- package/dist/web-components/p-d2447e30.entry.js +0 -1
- package/dist/web-components/p-dc9cca06.entry.js +0 -1
- package/dist/web-components/p-e5b943a2.entry.js +0 -1
- package/dist/web-components/p-e67b13df.entry.js +0 -1
- package/dist/web-components/p-efec231a.entry.js +0 -1
- package/dist/web-components/p-f867e4c3.entry.js +0 -1
- package/dist/web-components/p-ff6b1b8f.entry.js +0 -1
- package/dist/web-components/p-ky1yonnS.js +0 -1
- package/dist/web-components/web-components.esm.js +0 -1
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
|
@@ -1,812 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
export class Toast {
|
|
3
|
-
constructor() {
|
|
4
|
-
/**
|
|
5
|
-
* Controls if toast is initially shown.
|
|
6
|
-
* */
|
|
7
|
-
this.open = true;
|
|
8
|
-
/** Defines the appearance of the dialog based on the message type.
|
|
9
|
-
* Options are: "info", "success", "warning", or "error".
|
|
10
|
-
* @default 'info' */
|
|
11
|
-
this.status = 'info';
|
|
12
|
-
/** Sets role="alert" and will be announced to screen reader users */
|
|
13
|
-
this.announced = true;
|
|
14
|
-
/**
|
|
15
|
-
* Defines whether the leading icon is visible.
|
|
16
|
-
* @default true
|
|
17
|
-
* */
|
|
18
|
-
this.leadingIconVisible = true;
|
|
19
|
-
/** Specifies an optional icon for the trailing slot of the dialog.
|
|
20
|
-
* @default 'cross'
|
|
21
|
-
* */
|
|
22
|
-
this.trailingIcon = 'cross';
|
|
23
|
-
/** Specifies the target for the linked URL when `href` is provided.
|
|
24
|
-
* Options are: "_blank", "_self", "_parent", or "_top".
|
|
25
|
-
* @default '_self' */
|
|
26
|
-
this.target = '_self';
|
|
27
|
-
/** Specifies the time in miliseconds before the alert automatically collapses.
|
|
28
|
-
* @default 3000
|
|
29
|
-
*/
|
|
30
|
-
this.delay = 3000;
|
|
31
|
-
/**
|
|
32
|
-
* Defines the behavior of the component's dismissing.
|
|
33
|
-
* - `auto`: The component will be dismissed automatically after number of ms set by `delay` property.
|
|
34
|
-
* - `manual`: The component requires explicit user action to close.
|
|
35
|
-
* @default "manual"
|
|
36
|
-
*/
|
|
37
|
-
this.dismissMode = 'manual';
|
|
38
|
-
/** Provides content for `aria-label` attribute of the dismiss button. */
|
|
39
|
-
this.dismissLabel = 'Dismiss the toast';
|
|
40
|
-
/** Defines amount of time im miliseconds before toast is removed from DOM.
|
|
41
|
-
* @default 300
|
|
42
|
-
* */
|
|
43
|
-
this.delayBeforeRemoval = 300;
|
|
44
|
-
this.animationCompleted = false;
|
|
45
|
-
/** Unique id for each accordion item/row */
|
|
46
|
-
this.uniqueId = `r-toast-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
47
|
-
this.hasElContent = (selector) => {
|
|
48
|
-
const el = this.host.querySelector(selector);
|
|
49
|
-
return el !== null && (el === null || el === void 0 ? void 0 : el.textContent.trim().length) > 0;
|
|
50
|
-
};
|
|
51
|
-
this.getElContent = (selector) => {
|
|
52
|
-
var _a;
|
|
53
|
-
const el = this.host.querySelector(selector);
|
|
54
|
-
return (_a = el === null || el === void 0 ? void 0 : el.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
55
|
-
};
|
|
56
|
-
this.startDelayTimer = () => {
|
|
57
|
-
const time = this.delay;
|
|
58
|
-
this.delayTimer = setTimeout(() => {
|
|
59
|
-
this.dismiss();
|
|
60
|
-
clearTimeout(this.delayTimer);
|
|
61
|
-
}, time);
|
|
62
|
-
};
|
|
63
|
-
this.handleAnimationEnd = (event) => {
|
|
64
|
-
if (event.animationName === 'fade-out') {
|
|
65
|
-
this.animationCompleted = true;
|
|
66
|
-
// Only emit if still connected to DOM
|
|
67
|
-
if (this.host.isConnected) {
|
|
68
|
-
this.toastDismissed.emit();
|
|
69
|
-
}
|
|
70
|
-
// Clear height after fade-out completes as final cleanup
|
|
71
|
-
this.host.style.setProperty('--r-toast--host--height-expanded', null);
|
|
72
|
-
}
|
|
73
|
-
else if (event.animationName === 'fade-in') {
|
|
74
|
-
// Clear height restriction after fade-in completes to allow natural resizing
|
|
75
|
-
// The toast can now grow/shrink dynamically without animation constraints
|
|
76
|
-
this.host.style.setProperty('--r-toast--host--height-expanded', null);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
this.handleTrailingButtonClick = () => {
|
|
80
|
-
this.rClickToastTrailingIcon.emit();
|
|
81
|
-
this.dismiss();
|
|
82
|
-
};
|
|
83
|
-
this.handleSlotChange = () => {
|
|
84
|
-
this.host.setAttribute('is-content', `${this.hasContent}`);
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Dismisses the toast notification by setting it to a hidden state and then
|
|
89
|
-
* removing it from the DOM after a short delay. This can be used to manually
|
|
90
|
-
* hide the toast before the auto-dismiss timer expires.
|
|
91
|
-
*/
|
|
92
|
-
async dismiss() {
|
|
93
|
-
// Re-measure height before fade-out to ensure smooth collapse animation
|
|
94
|
-
// This captures the current natural height for the animation
|
|
95
|
-
this.updateHeightVariable();
|
|
96
|
-
this.isOpen = false;
|
|
97
|
-
this.toastDismiss.emit();
|
|
98
|
-
this.animationCompleted = false;
|
|
99
|
-
if (this.removalTimer)
|
|
100
|
-
clearTimeout(this.removalTimer);
|
|
101
|
-
this.removalTimer = setTimeout(() => {
|
|
102
|
-
if (!this.animationCompleted && this.host.isConnected) {
|
|
103
|
-
this.toastDismissed.emit();
|
|
104
|
-
}
|
|
105
|
-
// Safely remove from DOM - check parent exists and contains this element
|
|
106
|
-
if (this.host.isConnected && this.host.parentNode) {
|
|
107
|
-
try {
|
|
108
|
-
this.host.remove();
|
|
109
|
-
}
|
|
110
|
-
catch (e) {
|
|
111
|
-
// In test environments, element may have already been removed
|
|
112
|
-
// or DOM structure changed - silently ignore
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}, this.delayBeforeRemoval);
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Reveals the toast notification by setting it to a visible state.
|
|
119
|
-
* If the auto-dismiss delay is enabled, it will start the timer to
|
|
120
|
-
* automatically dismiss the toast after the specified duration.
|
|
121
|
-
*/
|
|
122
|
-
async reveal() {
|
|
123
|
-
// Measure height for smooth fade-in animation
|
|
124
|
-
await this.measureAndPrepareHeight();
|
|
125
|
-
this.isOpen = true;
|
|
126
|
-
// Only emit if still connected to DOM
|
|
127
|
-
if (this.host.isConnected) {
|
|
128
|
-
this.toastReveal.emit();
|
|
129
|
-
}
|
|
130
|
-
if (this.delayTimer)
|
|
131
|
-
clearTimeout(this.delayTimer);
|
|
132
|
-
if (this.isDismissManual)
|
|
133
|
-
return;
|
|
134
|
-
if (this.hasDelay)
|
|
135
|
-
this.startDelayTimer();
|
|
136
|
-
return this;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Hides toast, keeps it in dom.
|
|
140
|
-
* */
|
|
141
|
-
async hide() {
|
|
142
|
-
this.updateHeightVariable();
|
|
143
|
-
this.isOpen = false;
|
|
144
|
-
// Only emit if still connected to DOM
|
|
145
|
-
if (this.host.isConnected) {
|
|
146
|
-
this.toastHide.emit();
|
|
147
|
-
}
|
|
148
|
-
return this;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Toggles visibility of the toast.
|
|
152
|
-
* */
|
|
153
|
-
async toggle() {
|
|
154
|
-
this.isOpen ? this.hide() : this.reveal();
|
|
155
|
-
return this;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Measures the natural height of toast and prepares it for reveal animation.
|
|
159
|
-
* This should be called on newly added toasts before they are revealed.
|
|
160
|
-
*/
|
|
161
|
-
async measureAndPrepareHeight() {
|
|
162
|
-
return new Promise((resolve) => {
|
|
163
|
-
requestAnimationFrame(() => {
|
|
164
|
-
// Temporarily override animation to prevent visual glitches during measurement
|
|
165
|
-
const tempStyle = this.host.style.cssText;
|
|
166
|
-
this.host.style.cssText = tempStyle + '; animation: none !important; max-height: none !important; height: auto !important;';
|
|
167
|
-
// Force reflow and measure
|
|
168
|
-
this.host.offsetHeight;
|
|
169
|
-
const height = this.host.scrollHeight;
|
|
170
|
-
// Restore original style
|
|
171
|
-
this.host.style.cssText = tempStyle;
|
|
172
|
-
// Set the measured height for animation
|
|
173
|
-
if (height > 0) {
|
|
174
|
-
this.host.style.setProperty('--r-toast--host--height-expanded', `${height}px`);
|
|
175
|
-
}
|
|
176
|
-
resolve();
|
|
177
|
-
});
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
handleOpenChange() {
|
|
181
|
-
this.isOpen ? this.hide() : this.reveal();
|
|
182
|
-
}
|
|
183
|
-
get hasLeadingSlot() {
|
|
184
|
-
return this.hasElContent('[slot="leading"]');
|
|
185
|
-
}
|
|
186
|
-
get hasLeading() {
|
|
187
|
-
return this.leadingIconVisible || this.hasLeadingSlot;
|
|
188
|
-
}
|
|
189
|
-
get hasTrailingSlot() {
|
|
190
|
-
return this.hasElContent('[slot="trailing"]');
|
|
191
|
-
}
|
|
192
|
-
get isDismissManual() {
|
|
193
|
-
return this.dismissMode === 'manual';
|
|
194
|
-
}
|
|
195
|
-
get hasTrailing() {
|
|
196
|
-
return this.hasTrailingSlot || this.isDismissManual;
|
|
197
|
-
}
|
|
198
|
-
get hasContent() {
|
|
199
|
-
var _a;
|
|
200
|
-
return ((_a = this.host.textContent) === null || _a === void 0 ? void 0 : _a.trim().length) > 0;
|
|
201
|
-
}
|
|
202
|
-
get hasActionLink() {
|
|
203
|
-
return typeof (this.href) == 'string' && typeof (this.action) == 'string';
|
|
204
|
-
}
|
|
205
|
-
get hasActionSlot() {
|
|
206
|
-
return this.hasElContent('[slot="action"]');
|
|
207
|
-
}
|
|
208
|
-
get hasAction() {
|
|
209
|
-
return this.hasActionLink || this.hasActionSlot;
|
|
210
|
-
}
|
|
211
|
-
get hasHeadlineSlot() {
|
|
212
|
-
return this.hasElContent('[slot="headline"]');
|
|
213
|
-
}
|
|
214
|
-
get hasHeadline() {
|
|
215
|
-
return typeof (this.headline) == 'string' || this.hasHeadlineSlot;
|
|
216
|
-
}
|
|
217
|
-
get hasDelay() {
|
|
218
|
-
return this.delay && this.delay > 0;
|
|
219
|
-
}
|
|
220
|
-
get isError() {
|
|
221
|
-
return this.status === 'error';
|
|
222
|
-
}
|
|
223
|
-
get leadingIconName() {
|
|
224
|
-
if (this.leadingIcon)
|
|
225
|
-
return this.leadingIcon;
|
|
226
|
-
switch (this.status) {
|
|
227
|
-
case 'info':
|
|
228
|
-
return 'circled-information-i';
|
|
229
|
-
case 'success':
|
|
230
|
-
return 'circled-check';
|
|
231
|
-
case 'warning':
|
|
232
|
-
return 'circled-exclamation-mark';
|
|
233
|
-
case 'error':
|
|
234
|
-
return 'triangle-with-exclamation-mark';
|
|
235
|
-
default:
|
|
236
|
-
return 'circled-information-i';
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
componentWillLoad() {
|
|
240
|
-
// Set initial state but don't trigger reveal yet - let mutation observer handle it
|
|
241
|
-
this.isOpen = this.open;
|
|
242
|
-
}
|
|
243
|
-
async componentDidLoad() {
|
|
244
|
-
this.host.addEventListener('animationend', this.handleAnimationEnd);
|
|
245
|
-
// Measure and store the toast height for smooth initial fade-in animation
|
|
246
|
-
await this.measureAndPrepareHeight();
|
|
247
|
-
// Start auto-dismiss timer if configured and toast is initially open
|
|
248
|
-
if (this.isOpen && !this.isDismissManual && this.hasDelay) {
|
|
249
|
-
this.startDelayTimer();
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
updateHeightVariable() {
|
|
253
|
-
// Use requestAnimationFrame to ensure the element is fully rendered
|
|
254
|
-
requestAnimationFrame(() => {
|
|
255
|
-
if (this.host.offsetHeight > 0) {
|
|
256
|
-
this.host.style.setProperty('--r-toast--host--height-expanded', `${this.host.offsetHeight}px`);
|
|
257
|
-
}
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
disconnectedCallback() {
|
|
261
|
-
this.host.removeEventListener('animationend', this.handleAnimationEnd);
|
|
262
|
-
}
|
|
263
|
-
render() {
|
|
264
|
-
const { headline, href, action, target, trailingIcon } = this;
|
|
265
|
-
const hostAttrs = this.announced ? {
|
|
266
|
-
role: 'alert',
|
|
267
|
-
'aria-live': this.isError ? 'assertive' : 'polite'
|
|
268
|
-
} : {
|
|
269
|
-
role: 'region',
|
|
270
|
-
'aria-label': this.getElContent('[slot="headline"]') || this.headline || null
|
|
271
|
-
};
|
|
272
|
-
const actionAttrs = { href, target };
|
|
273
|
-
const leadingIconAttrs = {
|
|
274
|
-
name: this.leadingIconName,
|
|
275
|
-
size: 'm'
|
|
276
|
-
};
|
|
277
|
-
const trailingIconAttrs = {
|
|
278
|
-
name: trailingIcon,
|
|
279
|
-
size: 'm'
|
|
280
|
-
};
|
|
281
|
-
return (h(Host, Object.assign({ key: '4fa8a3d2db292941933f73437d823f3f6581d626' }, hostAttrs, { id: this.uniqueId, "data-visually-hidden": `${this.isOpen ? 'false' : 'true'}`, style: { visibility: this.isOpen ? 'visible' : 'hidden' } }), h("div", { key: '20506092a2459d836918da00f1670cf18730a42c', class: "r-toast" }, this.hasLeading &&
|
|
282
|
-
h("div", { key: '384ce331ff3825bc01323bbb6f3972ccd4198223', class: "r-toast--leading" }, this.hasLeadingSlot && h("slot", { key: 'eb455c5729d37431b8576dfcaff6eceead5000bb', name: "leading" }), this.leadingIconVisible && h("r-icon", Object.assign({ key: '3b0b3e9d9516a072d5c3b5ca50ab3353cdf20053', class: "r-toast--leading-icon" }, leadingIconAttrs))), h("div", { key: 'dcfc949dda66a2437cbb4b3e2847266e55ab83d6', class: "r-toast--main" }, this.hasHeadline &&
|
|
283
|
-
h("h2", { key: 'c1abf4f2b6abc7b53db6727ff09f027d4b2a940d', class: "r-toast--headline" }, h("slot", { key: '9b6a57199eac2a4e0f96d38cc0b3d02adc2bb279', name: "headline" }, headline)), this.hasContent &&
|
|
284
|
-
h("div", { key: '6c182bd58efe6cd404ae7b20ee2464f3965b889d', class: "r-toast--content r-typography" }, h("slot", { key: 'a49fd6e859f1b512069fc3bed9c0c21da35d78cc', onSlotchange: this.handleSlotChange })), this.hasAction &&
|
|
285
|
-
h("div", { key: 'b0282c4677483b96b3eac7ddbdb2e13ae245ebe2', class: "r-toast--action" }, h("slot", { key: 'e267d02a4e39a443865c1c0a62f3d6ed06e2a319', name: "action" }, this.hasActionLink &&
|
|
286
|
-
h("r-button", Object.assign({ key: '8785094717619bd69c5e711873598b2fb7eeb5be', class: "r-toast--action-link", variant: "text-inline", size: "small" }, actionAttrs), action)))), this.hasTrailing &&
|
|
287
|
-
h("div", { key: '066ecbc6346ed516aa9dd193505a26544bbdf92f', class: "r-toast--trailing" }, this.hasTrailingSlot && h("slot", { key: '890fd983d1208ea514b89aeaf394ae82c1d1ec55', name: "trailing" }), this.isDismissManual &&
|
|
288
|
-
h("r-icon-button", Object.assign({ key: '2b9e06adc46cf1a726d5d78f7cedb2d1405b4c72' }, trailingIconAttrs, { class: "r-toast--trailing-button", onClick: this.handleTrailingButtonClick, label: this.dismissLabel }), h("slot", { key: '7349c7b3422f194852609c2cdf150a5dc4498aa9', name: "dismiss" }))))));
|
|
289
|
-
}
|
|
290
|
-
static get is() { return "r-toast"; }
|
|
291
|
-
static get encapsulation() { return "shadow"; }
|
|
292
|
-
static get originalStyleUrls() {
|
|
293
|
-
return {
|
|
294
|
-
"$": ["toast.css"]
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
static get styleUrls() {
|
|
298
|
-
return {
|
|
299
|
-
"$": ["toast.css"]
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
static get properties() {
|
|
303
|
-
return {
|
|
304
|
-
"open": {
|
|
305
|
-
"type": "boolean",
|
|
306
|
-
"attribute": "open",
|
|
307
|
-
"mutable": false,
|
|
308
|
-
"complexType": {
|
|
309
|
-
"original": "boolean",
|
|
310
|
-
"resolved": "boolean",
|
|
311
|
-
"references": {}
|
|
312
|
-
},
|
|
313
|
-
"required": false,
|
|
314
|
-
"optional": false,
|
|
315
|
-
"docs": {
|
|
316
|
-
"tags": [],
|
|
317
|
-
"text": "Controls if toast is initially shown."
|
|
318
|
-
},
|
|
319
|
-
"getter": false,
|
|
320
|
-
"setter": false,
|
|
321
|
-
"reflect": true,
|
|
322
|
-
"defaultValue": "true"
|
|
323
|
-
},
|
|
324
|
-
"status": {
|
|
325
|
-
"type": "string",
|
|
326
|
-
"attribute": "status",
|
|
327
|
-
"mutable": false,
|
|
328
|
-
"complexType": {
|
|
329
|
-
"original": "ToastStatus",
|
|
330
|
-
"resolved": "\"error\" | \"info\" | \"success\" | \"warning\"",
|
|
331
|
-
"references": {
|
|
332
|
-
"ToastStatus": {
|
|
333
|
-
"location": "import",
|
|
334
|
-
"path": "./exports",
|
|
335
|
-
"id": "src/components/toast/exports.ts::ToastStatus"
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
"required": false,
|
|
340
|
-
"optional": false,
|
|
341
|
-
"docs": {
|
|
342
|
-
"tags": [{
|
|
343
|
-
"name": "default",
|
|
344
|
-
"text": "'info'"
|
|
345
|
-
}],
|
|
346
|
-
"text": "Defines the appearance of the dialog based on the message type.\nOptions are: \"info\", \"success\", \"warning\", or \"error\"."
|
|
347
|
-
},
|
|
348
|
-
"getter": false,
|
|
349
|
-
"setter": false,
|
|
350
|
-
"reflect": true,
|
|
351
|
-
"defaultValue": "'info'"
|
|
352
|
-
},
|
|
353
|
-
"announced": {
|
|
354
|
-
"type": "boolean",
|
|
355
|
-
"attribute": "announced",
|
|
356
|
-
"mutable": false,
|
|
357
|
-
"complexType": {
|
|
358
|
-
"original": "boolean",
|
|
359
|
-
"resolved": "boolean",
|
|
360
|
-
"references": {}
|
|
361
|
-
},
|
|
362
|
-
"required": false,
|
|
363
|
-
"optional": false,
|
|
364
|
-
"docs": {
|
|
365
|
-
"tags": [],
|
|
366
|
-
"text": "Sets role=\"alert\" and will be announced to screen reader users"
|
|
367
|
-
},
|
|
368
|
-
"getter": false,
|
|
369
|
-
"setter": false,
|
|
370
|
-
"reflect": true,
|
|
371
|
-
"defaultValue": "true"
|
|
372
|
-
},
|
|
373
|
-
"leadingIcon": {
|
|
374
|
-
"type": "string",
|
|
375
|
-
"attribute": "leading-icon",
|
|
376
|
-
"mutable": false,
|
|
377
|
-
"complexType": {
|
|
378
|
-
"original": "IconName",
|
|
379
|
-
"resolved": "string",
|
|
380
|
-
"references": {
|
|
381
|
-
"IconName": {
|
|
382
|
-
"location": "import",
|
|
383
|
-
"path": "../icon/exports",
|
|
384
|
-
"id": "src/components/icon/exports.ts::IconName"
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
"required": false,
|
|
389
|
-
"optional": true,
|
|
390
|
-
"docs": {
|
|
391
|
-
"tags": [],
|
|
392
|
-
"text": "Specifies an optional icon for the leading slot of the dialog."
|
|
393
|
-
},
|
|
394
|
-
"getter": false,
|
|
395
|
-
"setter": false,
|
|
396
|
-
"reflect": false
|
|
397
|
-
},
|
|
398
|
-
"leadingIconVisible": {
|
|
399
|
-
"type": "boolean",
|
|
400
|
-
"attribute": "leading-icon-visible",
|
|
401
|
-
"mutable": false,
|
|
402
|
-
"complexType": {
|
|
403
|
-
"original": "boolean",
|
|
404
|
-
"resolved": "boolean",
|
|
405
|
-
"references": {}
|
|
406
|
-
},
|
|
407
|
-
"required": false,
|
|
408
|
-
"optional": false,
|
|
409
|
-
"docs": {
|
|
410
|
-
"tags": [{
|
|
411
|
-
"name": "default",
|
|
412
|
-
"text": "true"
|
|
413
|
-
}],
|
|
414
|
-
"text": "Defines whether the leading icon is visible."
|
|
415
|
-
},
|
|
416
|
-
"getter": false,
|
|
417
|
-
"setter": false,
|
|
418
|
-
"reflect": false,
|
|
419
|
-
"defaultValue": "true"
|
|
420
|
-
},
|
|
421
|
-
"trailingIcon": {
|
|
422
|
-
"type": "string",
|
|
423
|
-
"attribute": "trailing-icon",
|
|
424
|
-
"mutable": false,
|
|
425
|
-
"complexType": {
|
|
426
|
-
"original": "IconName",
|
|
427
|
-
"resolved": "string",
|
|
428
|
-
"references": {
|
|
429
|
-
"IconName": {
|
|
430
|
-
"location": "import",
|
|
431
|
-
"path": "../icon/exports",
|
|
432
|
-
"id": "src/components/icon/exports.ts::IconName"
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
},
|
|
436
|
-
"required": false,
|
|
437
|
-
"optional": false,
|
|
438
|
-
"docs": {
|
|
439
|
-
"tags": [{
|
|
440
|
-
"name": "default",
|
|
441
|
-
"text": "'cross'"
|
|
442
|
-
}],
|
|
443
|
-
"text": "Specifies an optional icon for the trailing slot of the dialog."
|
|
444
|
-
},
|
|
445
|
-
"getter": false,
|
|
446
|
-
"setter": false,
|
|
447
|
-
"reflect": false,
|
|
448
|
-
"defaultValue": "'cross'"
|
|
449
|
-
},
|
|
450
|
-
"headline": {
|
|
451
|
-
"type": "string",
|
|
452
|
-
"attribute": "headline",
|
|
453
|
-
"mutable": false,
|
|
454
|
-
"complexType": {
|
|
455
|
-
"original": "string",
|
|
456
|
-
"resolved": "string",
|
|
457
|
-
"references": {}
|
|
458
|
-
},
|
|
459
|
-
"required": true,
|
|
460
|
-
"optional": false,
|
|
461
|
-
"docs": {
|
|
462
|
-
"tags": [],
|
|
463
|
-
"text": "Specifies the headline text for the alert, summarizing its message or purpose."
|
|
464
|
-
},
|
|
465
|
-
"getter": false,
|
|
466
|
-
"setter": false,
|
|
467
|
-
"reflect": true
|
|
468
|
-
},
|
|
469
|
-
"href": {
|
|
470
|
-
"type": "string",
|
|
471
|
-
"attribute": "href",
|
|
472
|
-
"mutable": false,
|
|
473
|
-
"complexType": {
|
|
474
|
-
"original": "string",
|
|
475
|
-
"resolved": "string",
|
|
476
|
-
"references": {}
|
|
477
|
-
},
|
|
478
|
-
"required": false,
|
|
479
|
-
"optional": true,
|
|
480
|
-
"docs": {
|
|
481
|
-
"tags": [],
|
|
482
|
-
"text": "Specifies the URL for the call-to-action link."
|
|
483
|
-
},
|
|
484
|
-
"getter": false,
|
|
485
|
-
"setter": false,
|
|
486
|
-
"reflect": false
|
|
487
|
-
},
|
|
488
|
-
"action": {
|
|
489
|
-
"type": "string",
|
|
490
|
-
"attribute": "action",
|
|
491
|
-
"mutable": false,
|
|
492
|
-
"complexType": {
|
|
493
|
-
"original": "string",
|
|
494
|
-
"resolved": "string",
|
|
495
|
-
"references": {}
|
|
496
|
-
},
|
|
497
|
-
"required": false,
|
|
498
|
-
"optional": true,
|
|
499
|
-
"docs": {
|
|
500
|
-
"tags": [],
|
|
501
|
-
"text": "Specifies the text content for the call-to-action link."
|
|
502
|
-
},
|
|
503
|
-
"getter": false,
|
|
504
|
-
"setter": false,
|
|
505
|
-
"reflect": false
|
|
506
|
-
},
|
|
507
|
-
"target": {
|
|
508
|
-
"type": "string",
|
|
509
|
-
"attribute": "target",
|
|
510
|
-
"mutable": false,
|
|
511
|
-
"complexType": {
|
|
512
|
-
"original": "ToastActionTarget",
|
|
513
|
-
"resolved": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\"",
|
|
514
|
-
"references": {
|
|
515
|
-
"ToastActionTarget": {
|
|
516
|
-
"location": "import",
|
|
517
|
-
"path": "./exports",
|
|
518
|
-
"id": "src/components/toast/exports.ts::ToastActionTarget"
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
},
|
|
522
|
-
"required": false,
|
|
523
|
-
"optional": false,
|
|
524
|
-
"docs": {
|
|
525
|
-
"tags": [{
|
|
526
|
-
"name": "default",
|
|
527
|
-
"text": "'_self'"
|
|
528
|
-
}],
|
|
529
|
-
"text": "Specifies the target for the linked URL when `href` is provided. \nOptions are: \"_blank\", \"_self\", \"_parent\", or \"_top\"."
|
|
530
|
-
},
|
|
531
|
-
"getter": false,
|
|
532
|
-
"setter": false,
|
|
533
|
-
"reflect": false,
|
|
534
|
-
"defaultValue": "'_self'"
|
|
535
|
-
},
|
|
536
|
-
"delay": {
|
|
537
|
-
"type": "number",
|
|
538
|
-
"attribute": "delay",
|
|
539
|
-
"mutable": false,
|
|
540
|
-
"complexType": {
|
|
541
|
-
"original": "number",
|
|
542
|
-
"resolved": "number",
|
|
543
|
-
"references": {}
|
|
544
|
-
},
|
|
545
|
-
"required": false,
|
|
546
|
-
"optional": true,
|
|
547
|
-
"docs": {
|
|
548
|
-
"tags": [{
|
|
549
|
-
"name": "default",
|
|
550
|
-
"text": "3000"
|
|
551
|
-
}],
|
|
552
|
-
"text": "Specifies the time in miliseconds before the alert automatically collapses."
|
|
553
|
-
},
|
|
554
|
-
"getter": false,
|
|
555
|
-
"setter": false,
|
|
556
|
-
"reflect": false,
|
|
557
|
-
"defaultValue": "3000"
|
|
558
|
-
},
|
|
559
|
-
"dismissMode": {
|
|
560
|
-
"type": "string",
|
|
561
|
-
"attribute": "dismiss-mode",
|
|
562
|
-
"mutable": false,
|
|
563
|
-
"complexType": {
|
|
564
|
-
"original": "ToastDismissMode",
|
|
565
|
-
"resolved": "\"auto\" | \"manual\"",
|
|
566
|
-
"references": {
|
|
567
|
-
"ToastDismissMode": {
|
|
568
|
-
"location": "import",
|
|
569
|
-
"path": "./exports",
|
|
570
|
-
"id": "src/components/toast/exports.ts::ToastDismissMode"
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
},
|
|
574
|
-
"required": false,
|
|
575
|
-
"optional": false,
|
|
576
|
-
"docs": {
|
|
577
|
-
"tags": [{
|
|
578
|
-
"name": "default",
|
|
579
|
-
"text": "\"manual\""
|
|
580
|
-
}],
|
|
581
|
-
"text": "Defines the behavior of the component's dismissing.\n- `auto`: The component will be dismissed automatically after number of ms set by `delay` property.\n- `manual`: The component requires explicit user action to close."
|
|
582
|
-
},
|
|
583
|
-
"getter": false,
|
|
584
|
-
"setter": false,
|
|
585
|
-
"reflect": false,
|
|
586
|
-
"defaultValue": "'manual'"
|
|
587
|
-
},
|
|
588
|
-
"dismissLabel": {
|
|
589
|
-
"type": "string",
|
|
590
|
-
"attribute": "dismiss-label",
|
|
591
|
-
"mutable": false,
|
|
592
|
-
"complexType": {
|
|
593
|
-
"original": "string",
|
|
594
|
-
"resolved": "string",
|
|
595
|
-
"references": {}
|
|
596
|
-
},
|
|
597
|
-
"required": false,
|
|
598
|
-
"optional": false,
|
|
599
|
-
"docs": {
|
|
600
|
-
"tags": [],
|
|
601
|
-
"text": "Provides content for `aria-label` attribute of the dismiss button."
|
|
602
|
-
},
|
|
603
|
-
"getter": false,
|
|
604
|
-
"setter": false,
|
|
605
|
-
"reflect": false,
|
|
606
|
-
"defaultValue": "'Dismiss the toast'"
|
|
607
|
-
},
|
|
608
|
-
"delayBeforeRemoval": {
|
|
609
|
-
"type": "number",
|
|
610
|
-
"attribute": "delay-before-removal",
|
|
611
|
-
"mutable": false,
|
|
612
|
-
"complexType": {
|
|
613
|
-
"original": "number",
|
|
614
|
-
"resolved": "number",
|
|
615
|
-
"references": {}
|
|
616
|
-
},
|
|
617
|
-
"required": false,
|
|
618
|
-
"optional": false,
|
|
619
|
-
"docs": {
|
|
620
|
-
"tags": [{
|
|
621
|
-
"name": "default",
|
|
622
|
-
"text": "300"
|
|
623
|
-
}],
|
|
624
|
-
"text": "Defines amount of time im miliseconds before toast is removed from DOM."
|
|
625
|
-
},
|
|
626
|
-
"getter": false,
|
|
627
|
-
"setter": false,
|
|
628
|
-
"reflect": false,
|
|
629
|
-
"defaultValue": "300"
|
|
630
|
-
}
|
|
631
|
-
};
|
|
632
|
-
}
|
|
633
|
-
static get states() {
|
|
634
|
-
return {
|
|
635
|
-
"isOpen": {}
|
|
636
|
-
};
|
|
637
|
-
}
|
|
638
|
-
static get events() {
|
|
639
|
-
return [{
|
|
640
|
-
"method": "rClickToastTrailingIcon",
|
|
641
|
-
"name": "rClickToastTrailingIcon",
|
|
642
|
-
"bubbles": true,
|
|
643
|
-
"cancelable": true,
|
|
644
|
-
"composed": true,
|
|
645
|
-
"docs": {
|
|
646
|
-
"tags": [],
|
|
647
|
-
"text": "Event shall be emmited on trailing icon click"
|
|
648
|
-
},
|
|
649
|
-
"complexType": {
|
|
650
|
-
"original": "any",
|
|
651
|
-
"resolved": "any",
|
|
652
|
-
"references": {}
|
|
653
|
-
}
|
|
654
|
-
}, {
|
|
655
|
-
"method": "toastDismiss",
|
|
656
|
-
"name": "dismiss",
|
|
657
|
-
"bubbles": true,
|
|
658
|
-
"cancelable": true,
|
|
659
|
-
"composed": true,
|
|
660
|
-
"docs": {
|
|
661
|
-
"tags": [],
|
|
662
|
-
"text": "Emitted when the toast is dismissed and scheduled for removal from the DOM.\nFired by dismiss(), by the auto-dismiss timer (delay), and by the trailing\ndismiss button. Use this to react to permanent removal (contrast with\ntoastHide which only hides without removal)."
|
|
663
|
-
},
|
|
664
|
-
"complexType": {
|
|
665
|
-
"original": "any",
|
|
666
|
-
"resolved": "any",
|
|
667
|
-
"references": {}
|
|
668
|
-
}
|
|
669
|
-
}, {
|
|
670
|
-
"method": "toastReveal",
|
|
671
|
-
"name": "reveal",
|
|
672
|
-
"bubbles": true,
|
|
673
|
-
"cancelable": true,
|
|
674
|
-
"composed": true,
|
|
675
|
-
"docs": {
|
|
676
|
-
"tags": [],
|
|
677
|
-
"text": "Emitted when the toast transitions to an open (revealed) state and remains in the DOM.\nFired by reveal(), by toggle() when the resulting state is open, and when the\n'open' prop changes causing the toast to show. Not emitted by dismiss()\n(which removes the element) \u2014 use 'toastDismiss' for that case."
|
|
678
|
-
},
|
|
679
|
-
"complexType": {
|
|
680
|
-
"original": "any",
|
|
681
|
-
"resolved": "any",
|
|
682
|
-
"references": {}
|
|
683
|
-
}
|
|
684
|
-
}, {
|
|
685
|
-
"method": "toastHide",
|
|
686
|
-
"name": "hide",
|
|
687
|
-
"bubbles": true,
|
|
688
|
-
"cancelable": true,
|
|
689
|
-
"composed": true,
|
|
690
|
-
"docs": {
|
|
691
|
-
"tags": [],
|
|
692
|
-
"text": "Emitted when the toast transitions to a hidden state but remains in the DOM.\nFired by hide(), by toggle() when resulting state is hidden, and when the\n'open' prop changes causing the toast to hide. Not emitted on dismiss()\n(which removes the element) \u2014 use 'toastDismiss' for that case."
|
|
693
|
-
},
|
|
694
|
-
"complexType": {
|
|
695
|
-
"original": "any",
|
|
696
|
-
"resolved": "any",
|
|
697
|
-
"references": {}
|
|
698
|
-
}
|
|
699
|
-
}, {
|
|
700
|
-
"method": "toastDismissed",
|
|
701
|
-
"name": "dismissed",
|
|
702
|
-
"bubbles": true,
|
|
703
|
-
"cancelable": true,
|
|
704
|
-
"composed": true,
|
|
705
|
-
"docs": {
|
|
706
|
-
"tags": [],
|
|
707
|
-
"text": "Emitted when the dismiss toast animation is complete\nand the element has fully disappeared from the view.\nFired by dismiss(), by the auto-dismiss timer (delay), by changing open property, and by the trailing\ndismiss button."
|
|
708
|
-
},
|
|
709
|
-
"complexType": {
|
|
710
|
-
"original": "any",
|
|
711
|
-
"resolved": "any",
|
|
712
|
-
"references": {}
|
|
713
|
-
}
|
|
714
|
-
}];
|
|
715
|
-
}
|
|
716
|
-
static get methods() {
|
|
717
|
-
return {
|
|
718
|
-
"dismiss": {
|
|
719
|
-
"complexType": {
|
|
720
|
-
"signature": "() => Promise<void>",
|
|
721
|
-
"parameters": [],
|
|
722
|
-
"references": {
|
|
723
|
-
"Promise": {
|
|
724
|
-
"location": "global",
|
|
725
|
-
"id": "global::Promise"
|
|
726
|
-
}
|
|
727
|
-
},
|
|
728
|
-
"return": "Promise<void>"
|
|
729
|
-
},
|
|
730
|
-
"docs": {
|
|
731
|
-
"text": "Dismisses the toast notification by setting it to a hidden state and then \nremoving it from the DOM after a short delay. This can be used to manually \nhide the toast before the auto-dismiss timer expires.",
|
|
732
|
-
"tags": []
|
|
733
|
-
}
|
|
734
|
-
},
|
|
735
|
-
"reveal": {
|
|
736
|
-
"complexType": {
|
|
737
|
-
"signature": "() => Promise<this>",
|
|
738
|
-
"parameters": [],
|
|
739
|
-
"references": {
|
|
740
|
-
"Promise": {
|
|
741
|
-
"location": "global",
|
|
742
|
-
"id": "global::Promise"
|
|
743
|
-
}
|
|
744
|
-
},
|
|
745
|
-
"return": "Promise<this>"
|
|
746
|
-
},
|
|
747
|
-
"docs": {
|
|
748
|
-
"text": "Reveals the toast notification by setting it to a visible state. \nIf the auto-dismiss delay is enabled, it will start the timer to \nautomatically dismiss the toast after the specified duration.",
|
|
749
|
-
"tags": []
|
|
750
|
-
}
|
|
751
|
-
},
|
|
752
|
-
"hide": {
|
|
753
|
-
"complexType": {
|
|
754
|
-
"signature": "() => Promise<this>",
|
|
755
|
-
"parameters": [],
|
|
756
|
-
"references": {
|
|
757
|
-
"Promise": {
|
|
758
|
-
"location": "global",
|
|
759
|
-
"id": "global::Promise"
|
|
760
|
-
}
|
|
761
|
-
},
|
|
762
|
-
"return": "Promise<this>"
|
|
763
|
-
},
|
|
764
|
-
"docs": {
|
|
765
|
-
"text": "Hides toast, keeps it in dom.",
|
|
766
|
-
"tags": []
|
|
767
|
-
}
|
|
768
|
-
},
|
|
769
|
-
"toggle": {
|
|
770
|
-
"complexType": {
|
|
771
|
-
"signature": "() => Promise<this>",
|
|
772
|
-
"parameters": [],
|
|
773
|
-
"references": {
|
|
774
|
-
"Promise": {
|
|
775
|
-
"location": "global",
|
|
776
|
-
"id": "global::Promise"
|
|
777
|
-
}
|
|
778
|
-
},
|
|
779
|
-
"return": "Promise<this>"
|
|
780
|
-
},
|
|
781
|
-
"docs": {
|
|
782
|
-
"text": "Toggles visibility of the toast.",
|
|
783
|
-
"tags": []
|
|
784
|
-
}
|
|
785
|
-
},
|
|
786
|
-
"measureAndPrepareHeight": {
|
|
787
|
-
"complexType": {
|
|
788
|
-
"signature": "() => Promise<void>",
|
|
789
|
-
"parameters": [],
|
|
790
|
-
"references": {
|
|
791
|
-
"Promise": {
|
|
792
|
-
"location": "global",
|
|
793
|
-
"id": "global::Promise"
|
|
794
|
-
}
|
|
795
|
-
},
|
|
796
|
-
"return": "Promise<void>"
|
|
797
|
-
},
|
|
798
|
-
"docs": {
|
|
799
|
-
"text": "Measures the natural height of toast and prepares it for reveal animation.\nThis should be called on newly added toasts before they are revealed.",
|
|
800
|
-
"tags": []
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
};
|
|
804
|
-
}
|
|
805
|
-
static get elementRef() { return "host"; }
|
|
806
|
-
static get watchers() {
|
|
807
|
-
return [{
|
|
808
|
-
"propName": "open",
|
|
809
|
-
"methodName": "handleOpenChange"
|
|
810
|
-
}];
|
|
811
|
-
}
|
|
812
|
-
}
|